:root {
    --navy: #0a2540;
    --orange: #ff6b00;
    --green: #24b47e;
    --light: #f6f9fc;
    --border: #e3e8ee;
    --white: #ffffff;
    --shadow: 0 15px 35px rgba(50, 50, 93, .1), 0 5px 15px rgba(0, 0, 0, .07);
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--light);
    margin: 0;
    padding-bottom: 100px;
    color: var(--navy);
}

/* NAVBAR */
.navbar {
    background: var(--navy);
    padding: 1.2rem 20px;
    color: white;
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--orange);
}

.nav-btn-home {
    color: #adbdcc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* STEPPER */
.stepper {
    background: white;
    padding: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.25;
    transition: 0.4s;
}

.step.active {
    opacity: 1;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step.active .step-num {
    background: var(--navy);
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 15px;
}

/* LAYOUTS */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.layout-centered {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* CARDS VISITANTES */
.visitor-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    position: relative;
}

.card-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.v-header {
    font-weight: 800;
    color: var(--orange);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.input-pro,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
}

.input-pro:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.btn-card-del {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #cbd5e0;
    cursor: pointer;
}

/* BOTONES (ESTILO CORREGIDO) */
button {
    cursor: pointer;
    transition: 0.2s;
    border: none;
    font-family: inherit;
}

.btn-add-visitor {
    width: 100%;
    background: #fff;
    border: 2px dashed var(--border);
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 10px;
}

.btn-add-visitor:hover {
    border-color: var(--orange);
    background: #fffaf5;
}

.btn-main-action {
    background: var(--orange);
    color: white;
    padding: 18px;
    width: 100%;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    text-align: center;
    display: block;
}

.btn-main-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-text {
    background: none;
    color: #6b7280;
    text-decoration: underline;
    margin-top: 15px;
    width: 100%;
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
    position: sticky;
    top: 20px;
}

/* SIDEBAR SUMMARY */
.summary-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.s-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
}

.s-discount {
    color: var(--green);
}

.s-total {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    border-top: 1px solid var(--border);
    padding-top: 15px;
    margin-top: 10px;
}

/* NOTA LEGAL */
.legal-notice {
    background: #fff8eb;
    border: 1px solid #ffeeba;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #856404;
    line-height: 1.4;
    margin-top: 15px;
}

/* PAGO SEGURO */
.payment-card {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 35px;
}

.p-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.p-total {
    background: var(--navy);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 700;
}

.p-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

/* PANTALLA ÉXITO Y BOTONES FINALES */
.success-screen {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.success-icon {
    font-size: 4rem;
    color: var(--green);
    margin-bottom: 10px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-print-final {
    background: var(--navy);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
}

.btn-reload-final {
    background: #edf2f7;
    color: var(--navy);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
}

/* TICKETS */
.tickets-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 40px;
}

.ticket-card {
    width: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 0 #E0D9CA;
    text-align: left;
    background: #F7F4EE;
    display: flex;
    flex-direction: column;
}

.t-header-mini {
    background: linear-gradient(170deg, #1C1608 0%, #231D0A 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.t-num-mini .lbl {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2px;
}

.t-num-mini .val {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #fff;
    line-height: 1;
}

.t-tipo-badge {
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    align-self: flex-start;
}

.t-tipo-badge.premium { background: #8E1524; }
.t-tipo-badge.general { background: #17306E; }

.t-flag-mini {
    display: flex;
    height: 4px;
}
.t-flag-mini .fy { flex: 2; background: #C8980E; }
.t-flag-mini .fb { flex: 1; background: #17306E; }
.t-flag-mini .fr { flex: 1; background: #8E1524; }

.t-body-mini {
    padding: 16px 20px 10px;
    background: #F7F4EE;
    flex: 1;
}

.t-nombre-mini {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1A1510;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.t-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.t-meta-item {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6B6047;
    display: flex;
    align-items: center;
    gap: 5px;
}

.t-descuento-badge {
    margin-top: 8px;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #C8980E;
    background: rgba(200,152,14,0.1);
    border: 1.5px solid #C8980E;
    border-radius: 5px;
    padding: 3px 8px;
    display: inline-block;
}

.t-bottom-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 16px;
    background: #fff;
    border-top: 2px dashed #DDD5C0;
    margin-top: 10px;
}

.t-qr-mini {
    color: #1C1608;
    opacity: 0.75;
}

.btn-ver-boleto {
    background: #17306E;
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-ver-boleto:hover { background: #0d1e47; }

/* FOOTER FIJO CENTRADO */
.footer-fixed {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    border-top: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    z-index: 100;
}

.footer-fixed p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* OVERLAY CARGA CENTRADO ABSOLUTO */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 37, 64, 0.98);
    display: flex;
    align-items: center;
    /* Centrado vertical */
    justify-content: center;
    /* Centrado horizontal */
    z-index: 9999;
}

.loader-box {
    text-align: center;
    color: white;
}

.custom-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.badge-status {
    background: #fff3cd;
    color: #856404;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-block;
    margin-top: 10px;
}

/* Validación — estados de error */
.input-pro.input-error,
select.input-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.field-error-msg {
    color: #e53e3e;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
    min-height: 1em;
}

.field-wrap {
    display: flex;
    flex-direction: column;
}

.t-phone {
    font-size: 0.78rem;
    color: #64748b;
    margin: 2px 0;
}

/* Selector de evento */
.event-selector-wrap { margin-bottom: 24px; }

.event-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.event-card-opt { cursor: pointer; }
.event-card-opt input[type="radio"] { display: none; }

.event-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.event-card-opt:hover .event-card-body {
    border-color: #94a3b8;
}

.event-card-opt input:checked + .event-card-body {
    border-color: #003893;
    background: #eff6ff;
}

.ev-day {
    font-size: 2rem;
    font-weight: 900;
    color: #003893;
    line-height: 1;
}
.ev-month { font-size: 0.65rem; font-weight: 700; color: #64748b; letter-spacing: 0.05em; }
.ev-label { font-size: 0.78rem; font-weight: 600; color: #334155; margin-top: 4px; }

/* UI de pago Deuna */
.deuna-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #003893;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.deuna-qr-box {
    display: flex;
    justify-content: center;
    margin: 12px auto;
    max-width: 280px;
}
.deuna-qr-box svg { width: 100%; height: auto; }

.btn-deeplink {
    display: block;
    text-align: center;
    background: #003893;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin: 12px 0;
    transition: opacity 0.2s;
}
.btn-deeplink:hover { opacity: 0.88; }

.deuna-polling-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #64748b;
    justify-content: center;
    margin-top: 12px;
}

.deuna-pulse-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Selector de método de pago */
.pay-method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.pay-method-btn {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: white;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pay-method-btn:hover {
    border-color: #94a3b8;
}

.pay-method-btn.active {
    border-color: var(--navy);
    background: #f0f4ff;
    color: var(--navy);
}

/* Header sección PayPhone */
.pp-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
    justify-content: center;
    margin-bottom: 16px;
}

/* Contenedor widget PayPhone */
#pp-button {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin: 0 auto;
    max-width: 340px;
    overflow: hidden;
}

/* Texto interno del widget PayPhone */
#pp-button * {
    font-family: 'Inter', sans-serif !important;
}

#pp-button table {
    margin: 0 auto;
}

#pp-button a {
    color: var(--navy) !important;
    font-weight: 700;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* El sidebar baja debajo del formulario en tablet/móvil — sin sticky */
    .sidebar {
        position: static;
        align-self: auto;
    }

    .main-content {
        margin: 24px auto;
    }
}

/* =============================================
   RESPONSIVE — MÓVIL (≤ 600px)
   ============================================= */
@media (max-width: 600px) {
    body {
        padding-bottom: 80px;
    }

    /* Navbar */
    .navbar {
        padding: 1rem 16px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-btn-home {
        font-size: 0.82rem;
    }

    /* Stepper compacto */
    .stepper {
        padding: 16px 12px;
        gap: 0;
    }

    .step {
        gap: 6px;
    }

    .step span {
        font-size: 0.78rem;
    }

    .step-num {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .step-line {
        width: 20px;
        margin: 0 6px;
    }

    /* Contenido principal */
    .main-content {
        margin: 16px auto;
        padding: 0 12px;
    }

    /* Cards de visitante */
    .visitor-card {
        padding: 18px 14px;
    }

    .card-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Forzar ancho completo en campos que ya tienen grid-column:1/-1 */
    .card-form-grid .field-wrap[style*="grid-column"] {
        grid-column: 1 / -1;
    }

    /* Selector de evento */
    .event-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .event-card-body {
        padding: 12px 8px;
    }

    .ev-day {
        font-size: 1.6rem;
    }

    /* Resumen sidebar */
    .summary-box {
        padding: 20px 16px;
    }

    .s-total {
        font-size: 1.4rem;
    }

    /* Botón principal */
    .btn-main-action {
        font-size: 1rem;
        padding: 15px;
    }

    /* Tarjeta de pago */
    .payment-card {
        padding: 22px 16px;
        border-radius: 14px;
        max-width: 100%;
    }

    .p-header h2 {
        font-size: 1.1rem;
    }

    /* Widget PayPhone */
    #pp-button {
        max-width: 100%;
        padding: 12px 8px;
    }

    /* QR Deuna */
    .deuna-qr-box {
        max-width: 100%;
    }

    /* Pantalla de éxito */
    .success-screen {
        padding: 0 4px;
    }

    .success-screen h1 {
        font-size: 1.5rem;
    }

    .success-icon {
        font-size: 3rem;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-print-final,
    .btn-reload-final {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* Tickets generados */
    .tickets-wrap {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 24px;
    }

    .ticket-card {
        width: 100%;
        max-width: 360px;
    }

    /* Footer fijo */
    .footer-fixed {
        padding: 12px 16px;
    }

    .footer-fixed p {
        font-size: 0.72rem;
    }
}

/* =============================================
   RESPONSIVE — PANTALLA MUY PEQUEÑA (≤ 360px)
   ============================================= */
@media (max-width: 360px) {
    .step span {
        display: none; /* Oculta texto del stepper, solo muestra números */
    }

    .step-line {
        width: 14px;
        margin: 0 4px;
    }

    .event-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .payment-card {
        padding: 18px 12px;
    }
}

/* =============================================
   BOLETO IFRAME (usado en el overlay)
   ============================================= */
.boleto-wrap {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    height: 220px;
}

.boleto-iframe {
    width: 1080px;
    height: 3200px;
    border: none;
    transform-origin: top left;
    display: block;
}

/* =============================================
   OVERLAY VER ENTRADAS
   ============================================= */
.entradas-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(10, 37, 64, 0.97);
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.entradas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.entradas-header h2 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.entradas-close {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.entradas-close:hover { background: rgba(255, 255, 255, 0.22); }

.entradas-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.entradas-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

/* =============================================
   TARJETA PROGRAMACIÓN DEL DÍA
   ============================================= */
.schedule-card {
    margin-top: 16px;
    background: #0c0c0c;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    animation: scheduleSlideIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes scheduleSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Franja bandera Colombia en la parte superior */
.schedule-card::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(to right, #FFD200 50%, #003893 50% 75%, #CE1126 75%);
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.schedule-header > .fa-music {
    font-size: 1.2rem;
    color: #FFD200;
    flex-shrink: 0;
}

.schedule-title {
    font-size: 0.66rem;
    font-weight: 800;
    color: #FFD200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.schedule-subtitle {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 3px;
    line-height: 1;
}

.schedule-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.12s;
    position: relative;
}

.schedule-item:last-child { border-bottom: none; }
.schedule-item:hover { background: rgba(255, 255, 255, 0.04); }

.schedule-item.highlight {
    background: rgba(255, 210, 0, 0.05);
    border-left: 3px solid #FFD200;
}

.sched-time {
    font-size: 0.66rem;
    font-weight: 700;
    color: #FFD200;
    min-width: 86px;
    padding: 8px 10px 8px 16px;
    letter-spacing: 0;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    font-variant-numeric: tabular-nums;
}

.schedule-item.highlight .sched-time {
    padding-left: 13px;
}

.sched-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #f1f5f9;
    padding: 8px 14px;
    line-height: 1.25;
    flex: 1;
}

.schedule-item.highlight .sched-name {
    color: #ffffff;
    font-weight: 700;
}

.sched-icon {
    display: none;
}

.schedule-footer {
    padding: 8px 16px 12px;
    font-size: 0.67rem;
    color: rgba(255, 255, 255, 0.38);
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule-footer .fa-location-dot {
    color: #CE1126;
    font-size: 0.68rem;
}

/* =============================================
   TÉRMINOS Y CONDICIONES — CHECKBOX + MODAL
   ============================================= */
.terms-wrap {
    background: #eef3ff;
    border: 1.5px solid #c5d5f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.terms-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.4;
    user-select: none;
}

.terms-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--navy);
    cursor: pointer;
}

.terms-check-label span {
    flex: 1;
}

.terms-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--navy);
    font-weight: 700;
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}
.terms-link:hover { color: var(--orange); }

/* Overlay del modal */
.terms-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}
.terms-modal-overlay.hidden { display: none; }

.terms-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--navy);
    color: #fff;
    flex-shrink: 0;
}

.terms-modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-modal-close {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.terms-modal-close:hover { background: rgba(255,255,255,0.25); }

.terms-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.65;
}

.terms-modal-body h4 {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 20px 0 6px;
}
.terms-modal-body h4:first-child { margin-top: 0; }

.terms-modal-body p {
    margin: 0 0 8px;
}

.terms-modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.terms-modal-footer .btn-main-action {
    width: auto;
    padding: 12px 32px;
}