/* ============================================================
   XCC — Estilos para formularios públicos de inscripción
   4M Colombia / Xtreme Character Challenge
   ============================================================ */

/* ── Reset / base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Open Sans', Arial, sans-serif; color: #333; background: #fff; }
a { color: inherit; text-decoration: none; }

/* ── Navbar ────────────────────────────────────────────────── */
.xcc-nav {
    background: #111;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.xcc-nav-logo img { height: 38px; display: block; }
.xcc-nav-logo span {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.xcc-nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.xcc-nav-links a { color: #fff; font-size: 0.9rem; font-weight: 500; }
.xcc-nav-links a:hover { color: #ccc; }

/* ── Hero ──────────────────────────────────────────────────── */
.xcc-hero {
    position: relative;
    height: 340px;
    background-size: cover;
    background-position: center;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.xcc-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.xcc-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 0 20px;
}
.xcc-hero-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.xcc-hero-content p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* ── Banner rojo ───────────────────────────────────────────── */
.xcc-banner {
    background: #c0392b;
    color: #fff;
    text-align: center;
    padding: 18px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
}
.xcc-banner-inner {
    max-width: 860px;
    margin: 0 auto;
}
.xcc-banner strong { font-weight: 700; }
.xcc-banner-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

/* ── Contenedor principal del formulario ───────────────────── */
.xcc-wrapper {
    max-width: 700px;
    margin: 32px auto 48px;
    padding: 40px 32px 56px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 28px rgba(0,0,0,0.09);
}

/* ── Campos con error de validación ────────────────────────── */
.xcc-field-error > label { color: #c0392b; }
.xcc-invalid {
    border-color: #e74c3c !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.15) !important;
    animation: xcc-shake .3s ease;
}
.xcc-invalid-group {
    outline: 2px solid #e74c3c;
    outline-offset: 5px;
    border-radius: 4px;
}
@keyframes xcc-shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

/* ── Encabezado del formulario ─────────────────────────────── */
.xcc-form-header { text-align: center; margin-bottom: 28px; }
.xcc-form-header h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 10px; }
.xcc-form-header hr {
    border: none;
    border-top: 2px solid #c0392b;
    width: 80px;
    margin: 0 auto 8px;
}
.xcc-form-header p { color: #666; font-size: 0.88rem; margin: 0; }

/* ── Indicador de pasos ────────────────────────────────────── */
.xcc-steps {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 28px;
}
.xcc-step-tab {
    flex: 1;
    padding: 11px 6px;
    text-align: center;
    font-size: 0.82rem;
    color: #888;
    border-right: 1px solid #e0e0e0;
    background: #f8f8f8;
    cursor: default;
}
.xcc-step-tab:last-child { border-right: none; }
.xcc-step-tab.active { color: #c0392b; font-weight: 700; background: #fff; }

/* ── Alerta lista de espera ────────────────────────────────── */
.xcc-alert-espera {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #92400e;
    font-size: 0.9rem;
}

/* ── Campos del formulario ─────────────────────────────────── */
.xcc-field {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 8px;
    align-items: start;
    margin-bottom: 16px;
}
.xcc-field label {
    font-size: 0.9rem;
    font-weight: 500;
    padding-top: 8px;
}
.xcc-field label .req { color: #c0392b; }
.xcc-field input[type="text"],
.xcc-field input[type="email"],
.xcc-field input[type="date"],
.xcc-field input[type="number"],
.xcc-field textarea,
.xcc-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
}
.xcc-field input:focus,
.xcc-field textarea:focus,
.xcc-field select:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192,57,43,0.12);
}
.xcc-field small { color: #888; font-size: 0.78rem; display: block; margin-top: 3px; }
.xcc-field-hint { color: #888; font-size: 0.78rem; margin-top: 3px; }

/* Phone field — código + número */
.xcc-phone { display: flex; gap: 8px; }
.xcc-phone select { width: 155px; flex: 0 0 auto; }
.xcc-phone input  { flex: 1; min-width: 0; }

/* ── Radio / checkbox groups ───────────────────────────────── */
.xcc-options { display: flex; flex-wrap: wrap; gap: 10px; }
.xcc-options.vertical { flex-direction: column; gap: 6px; }
.xcc-options label { display: flex; align-items: flex-start; gap: 7px; cursor: pointer; font-size: 0.88rem; font-weight: normal; }
.xcc-options label input { margin-top: 3px; flex-shrink: 0; accent-color: #c0392b; }
.xcc-check label { display: flex; align-items: flex-start; gap: 8px; font-size: 0.88rem; cursor: pointer; line-height: 1.5; }
.xcc-check input { margin-top: 4px; flex-shrink: 0; accent-color: #c0392b; }

/* ── Sección heading dentro del form ───────────────────────── */
.xcc-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 28px 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.xcc-divider { border: none; border-top: 1px solid #e0e0e0; margin: 24px 0; }

/* ── Caja legal ────────────────────────────────────────────── */
.xcc-legal {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
}

/* ── Botones de navegación ─────────────────────────────────── */
.xcc-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.xcc-btn {
    padding: 12px 36px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}
.xcc-btn:hover { opacity: 0.88; }
.xcc-btn-primary { background: #c0392b; color: #fff; }
.xcc-btn-secondary { background: #555; color: #fff; }
.xcc-btn-submit {
    background: #c0392b;
    color: #fff;
    width: 100%;
    max-width: 400px;
}
.xcc-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Footer ────────────────────────────────────────────────── */
.xcc-footer {
    background: #111;
    color: #888;
    text-align: center;
    padding: 24px 20px;
    font-size: 0.8rem;
    line-height: 1.8;
}
.xcc-footer img { height: 32px; margin-bottom: 8px; opacity: 0.7; }

/* ── Landing de Crew ───────────────────────────────────────── */
.xcc-crew-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 20px 60px;
}
.xcc-crew-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    max-width: 280px;
    flex: 1;
    min-width: 220px;
}
.xcc-crew-card img { width: 72px; height: 72px; margin-bottom: 12px; }
.xcc-crew-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.xcc-crew-card p { font-size: 0.82rem; color: #666; margin: 0 0 16px; }
.xcc-crew-card .xcc-crew-btn {
    display: inline-block;
    padding: 10px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}
.xcc-crew-btn-nuevo   { background: #27ae60; }
.xcc-crew-btn-repetir { background: #c0392b; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .xcc-field { grid-template-columns: 1fr; }
    .xcc-field label { padding-top: 0; }
    .xcc-hero-content h1 { font-size: 1.6rem; letter-spacing: 1px; }
    .xcc-steps { flex-direction: column; }
    .xcc-step-tab { border-right: none; border-bottom: 1px solid #e0e0e0; }
}
