/* =========================================================
   SUPER PROMO MAGISTRAL — estilos generales
   Tipografía: Gotham (provista por el cliente en assets/fonts)
   ========================================================= */
@import url('../fonts/stylesheet.css');

:root {
    --orange-1: #ea661c;
    --orange-2: #f9cf38;
    --orange-3: #fbe38a;
    --navy: #0445a4;
    --navy-dark: #033a8a;
    --navy-darker: #062c63;
    --yellow: #ffd400;
    --gray-bg: #f4f5f7;
    --radius-lg: 26px;
    --radius-md: 16px;
    font-size: 16px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    color: var(--navy);
    background: #fff;
    margin: 0;
    padding-top: 92px;
}
@media (max-width: 991px) {
    body { padding-top: 78px; }
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }
.container-xl { max-width: 1320px; }

h1, h2, h3, h4 {
    font-family: 'Gotham Ultra', 'Gotham', sans-serif;
    font-weight: 800;
    color: var(--navy);
}

.sunburst-bg {
    background:
        radial-gradient(ellipse 75% 60% at 50% 38%, var(--orange-3) 0%, var(--orange-2) 38%, var(--orange-1) 78%, var(--orange-1) 100%);
}

/* ---------- BOTONES ---------- */
.btn-magistral-navy {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 15px 38px;
    font-size: 1.05rem;
    letter-spacing: .2px;
    transition: background .15s ease, transform .1s ease;
    box-shadow: 0 8px 20px rgba(4,69,164,.3);
}
.btn-magistral-navy:hover { background: var(--navy-dark); color: #fff; transform: translateY(-1px); }
.btn-magistral-navy:disabled, .btn-magistral-navy.disabled {
    background: #a9b3c9; box-shadow: none; cursor: not-allowed; transform: none;
}
.btn-magistral-yellow {
    background: var(--yellow);
    color: var(--navy);
    border: none;
    border-radius: 999px;
    font-weight: 800;
    padding: 15px 38px;
    font-size: 1.05rem;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(255,212,0,.35);
}
.btn-magistral-yellow:hover { color: var(--navy); filter: brightness(.96); }
.btn-magistral-outline {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
    border-radius: 999px;
    font-weight: 700;
    padding: 10px 28px;
}

/* ---------- HEADER ---------- */
header.site-header {
    background: var(--orange-1);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    transition: background-color .25s ease;
}
body.page-home header.site-header,
body.page-carga header.site-header,
body.page-ganadores header.site-header,
body.page-bases header.site-header {
    background: transparent;
}
body.page-home header.site-header.is-scrolled,
body.page-home header.site-header.is-open,
body.page-carga header.site-header.is-scrolled,
body.page-carga header.site-header.is-open,
body.page-ganadores header.site-header.is-scrolled,
body.page-ganadores header.site-header.is-open,
body.page-bases header.site-header.is-scrolled,
body.page-bases header.site-header.is-open {
    background: var(--orange-1);
}
header.site-header .navbar { padding-top: 0; padding-bottom: 0; }
header.site-header .container-xl {
    position: relative;
    min-height: 76px;
    display: flex;
    align-items: center;
    max-width: 1320px;
    padding-top: .6rem !important;
    padding-bottom: .6rem !important;
}
header.site-header .navbar-brand { padding: 0; margin: 0 1rem 0 0; line-height: 0; }
header.site-header .navbar-brand img { height: 52px; width: auto; display: block; }

header.site-header .navbar-collapse {
    min-width: 0;
}
header.site-header .navbar-nav {
    flex-wrap: nowrap;
}
header.site-header .nav-link {
    font-family: 'Gotham', sans-serif;
    font-weight: 700;
    color: #fff !important;
    font-size: .92rem;
    padding: .5rem .65rem !important;
    text-align: center;
    line-height: 1.15;
    text-shadow: 0 1px 3px rgba(0,0,0,.18);
    white-space: nowrap;
}
@media (min-width: 992px) {
    header.site-header .navbar {
        padding-left: 24px;
        padding-right: 24px;
    }
    header.site-header .container-xl {
        max-width: 1320px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    header.site-header .navbar-brand { margin-right: .75rem; }
    header.site-header .navbar-brand img { height: 44px; }
    header.site-header .nav-item { flex-shrink: 0; }
    header.site-header .nav-link {
        font-size: .8rem;
        padding: .38rem .5rem !important;
    }
    header.site-header .navbar-nav { gap: .45rem !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    header.site-header .navbar-brand img { height: 38px; }
    header.site-header .nav-link {
        font-size: .72rem;
        padding: .32rem .4rem !important;
    }
    header.site-header .navbar-nav { gap: .28rem !important; }
}
header.site-header .nav-link:hover {
    color: #fff !important;
    background: rgba(4, 69, 164, .35);
    border-radius: 999px;
    text-shadow: none;
}
header.site-header .nav-link.active {
    color: #fff !important;
    background: var(--navy);
    border-radius: 999px;
    text-shadow: none;
}

.user-icon-btn {
    min-width: 46px; height: 46px;
    border-radius: 999px;
    background: #fde8d0;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    border: none;
    padding: 6px 16px 6px 12px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--navy);
    font-size: .85rem;
    white-space: nowrap;
}
.user-icon-btn:not(:has(.user-icon-name)) { padding: 6px; width: 46px; }
.user-dropdown-menu {
    min-width: 220px;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    padding: .5rem;
}
.user-dropdown-menu .user-name { font-weight: 800; color: var(--navy); padding: .5rem .75rem 0; font-size: .95rem; }
.user-dropdown-menu .user-dni { color: #7c8296; font-size: .8rem; padding: 0 .75rem .5rem; }

/* =========================================================
   INICIO
   ========================================================= */
html:has(body.page-home),
html:has(body.page-carga),
html:has(body.page-ganadores),
html:has(body.page-bases),
body.page-home,
body.page-carga,
body.page-ganadores,
body.page-bases {
    background-color: var(--orange-1);
    background-image: url('../img/inicio-bg-desk.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body.page-home,
body.page-carga,
body.page-ganadores,
body.page-bases {
    min-height: 100vh;
}
body.page-ganadores {
    display: flex;
    flex-direction: column;
}
body.page-home .header-user-dropdown { display: none; }

.hero-wrap { padding: 18px 24px 0; background: transparent; }
.hero-card {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
}
.hero-fg-link {
    position: relative;
    z-index: 1;
    display: block;
    padding: 100px 32px 56px 32px;
}
.hero-fg-img { width: 100%; height: auto; display: block; }

.hero-user-wrap {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 3;
}
.hero-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fde8d0;
    color: var(--navy);
    border: none;
    border-radius: 999px;
    padding: 8px 16px 8px 10px;
    font-family: 'Gotham', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    line-height: 1;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .hero-wrap { padding: 12px 12px 0; }
    .hero-card { border-radius: 28px; }
    .hero-fg-link { padding: 28px 16px; }
    .hero-user-wrap { top: 12px; right: 12px; }
    .hero-user-chip { font-size: .78rem; padding: 6px 12px 6px 8px; }
}

/* ---------- REGISTRO (inline en Inicio) ---------- */
.registro-section {
    background: transparent;
    padding: 22px 24px 36px;
    margin-top: 0;
    position: relative;
    scroll-margin-top: 92px;
}
.registro-card {
    background: var(--navy);
    border-radius: 40px;
    padding: 48px 56px 40px;
    max-width: 1320px;
    margin: 0 auto;
}
.registro-section h2 {
    color: #fff;
    text-align: center;
    font-size: clamp(3.2rem, 7vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
}
.registro-form-box { max-width: 860px; margin: 0 auto; }
.registro-form-box .form-row-2 { display: flex; gap: 18px; margin-bottom: 18px; }
.registro-form-box .form-row-2 .form-control,
.registro-form-box .form-row-2 .form-select { flex: 1; min-width: 0; }
.registro-form-box .form-control,
.registro-form-box .form-select {
    border: 1.5px solid rgba(255,255,255,.45);
    border-radius: 999px;
    padding: 15px 24px;
    font-weight: 600;
    color: #fff;
    background: #1a5fc4;
    width: 100%;
    box-shadow: none;
}
.registro-form-box .form-control::placeholder { color: rgba(255,255,255,.78); }
.registro-form-box .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 14px;
    padding-right: 2.6rem;
}
.registro-form-box .form-select option { color: var(--navy); background: #fff; }
.registro-form-box .form-control:focus,
.registro-form-box .form-select:focus {
    color: #fff;
    background: #1a5fc4;
    border-color: #fff;
    box-shadow: 0 0 0 .2rem rgba(255,255,255,.18);
}
.registro-form-box .form-control:-webkit-autofill,
.registro-form-box .form-control:-webkit-autofill:hover,
.registro-form-box .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    box-shadow: 0 0 0 1000px #1a5fc4 inset;
    transition: background-color 9999s ease-out;
}
.registro-checks { margin: 6px 0 8px; }
.registro-form-box .form-check-magistral {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .92rem; color: #fff;
}
.registro-form-box .form-check-magistral input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.registro-form-box .form-check-magistral input:checked {
    background: var(--yellow);
    box-shadow: inset 0 0 0 3px var(--navy);
    border-color: #fff;
}
.registro-form-box .form-check-magistral a { color: #fff; font-weight: 700; text-decoration: underline; }
.registro-form-box .btn-magistral-yellow {
    display: block;
    width: 100%;
    margin: 18px auto 0;
    padding: 16px 38px;
    font-size: 1.15rem;
}
.registro-login-hint {
    color: #fff;
    text-align: center;
    margin: 18px 0 0;
}
.registro-login-hint a {
    color: var(--yellow);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.registro-form-box .form-error {
    background: #fff2ee;
    color: #a3221c;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: none;
}
.registro-form-box .form-error.show { display: block; }
@media (max-width: 767px) {
    .registro-section { padding: 16px 12px 28px; }
    .registro-card { padding: 32px 18px 28px; border-radius: 28px; }
    .registro-form-box .form-row-2 { flex-direction: column; gap: 14px; margin-bottom: 14px; }
}

/* =========================================================
   CARGÁ LOTE
   ========================================================= */
.carga-hero {
    padding: 22px 24px 0;
    background: transparent;
    scroll-margin-top: 92px;
}
.carga-hero .container-xl {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, .45);
    border-radius: 40px;
    padding: 48px 56px;
}
.carga-hero .producto-img { flex: 1 1 42%; max-width: 420px; margin: 0 auto; }
.carga-form-box { flex: 1 1 46%; min-width: 280px; max-width: 520px; margin: 0 auto; }
.carga-form-box h2 { font-size: 1.8rem; margin-bottom: 1.2rem; color: var(--navy); }
.carga-form-box label.field-label { display: block; font-weight: 700; font-size: .82rem; color: var(--navy); margin: 0 0 6px 4px; text-transform: uppercase; }
.carga-form-box .form-select,
.carga-form-box .form-control {
    border: 2px solid var(--navy);
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 700;
    color: var(--navy);
    width: 100%;
    margin-bottom: 16px;
}
.carga-soc-fields[hidden],
.carga-compra-fields[hidden] { display: none !important; }
.lote-inputs { display: flex; gap: 14px; }
.lote-inputs .form-control { flex: 1; min-width: 0; }

.ticket-dropzone {
    border: 2px dashed var(--navy);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    text-align: center;
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background .15s ease, border-color .15s ease;
}
.ticket-dropzone:hover,
.ticket-dropzone.is-dragover { background: #eef4ff; }
.ticket-dropzone.has-file { border-style: solid; background: #eef9f0; border-color: #1e9e4d; color: #1e9e4d; }
.ticket-dropzone .dz-icon { font-size: 1.4rem; margin-right: 8px; }
.ticket-dropzone input[type="file"] { display: none; }

.carga-form-box .form-check-magistral {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: .86rem; color: var(--navy);
}
.carga-form-box .form-check-magistral input { margin-top: 4px; accent-color: var(--navy); }
.carga-form-box .form-check-magistral a { color: var(--navy); font-weight: 800; text-decoration: underline; }
.carga-form-box .form-error {
    background: #fff2ee;
    color: #a3221c;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: none;
}
.carga-form-box .form-error.show { display: block; }

.locked-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff6f2;
    border: 1.5px dashed var(--orange-1);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-top: 6px;
    font-weight: 700;
    color: var(--navy);
}
.locked-note svg { flex-shrink: 0; }
.locked-note button {
    margin-left: auto;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 800;
    font-size: .85rem;
    white-space: nowrap;
}
.carga-lockable.is-locked { opacity: .4; pointer-events: none; filter: grayscale(.35); }

@media (max-width: 767px) {
    .carga-hero { padding: 14px 12px 0; }
    .carga-hero .container-xl { flex-direction: column; text-align: center; padding: 32px 22px; border-radius: 28px; }
    .carga-hero .producto-img { max-width: 260px; }
    .carga-form-box { width: 100%; text-align: left; }
    .lote-inputs { flex-direction: column; }
}

body.page-carga > section + section {
    margin-top: 100px;
}

.productos-strip-section {
    padding: 0;
    text-align: center;
    background: transparent;
    scroll-margin-top: 92px;
}
.productos-strip-section .productos-titulo {
    margin: 0 auto 18px;
    max-width: 640px;
    width: 100%;
}
.productos-visual {
    position: relative;
}
.productos-yellow-band {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    bottom: 0;
    background: var(--yellow);
    pointer-events: none;
}
.productos-visual .container-xl {
    position: relative;
    z-index: 1;
    padding-left: 24px;
    padding-right: 24px;
}
.productos-visual img {
    margin: 0 auto;
    max-width: 1100px;
    width: 100%;
    display: block;
}

.como-participar-section {
    padding: 0 24px;
    text-align: center;
    background: transparent;
    scroll-margin-top: 92px;
}
.como-participar-section img { margin: 0 auto; max-width: 1200px; width: 100%; }

.premios-teaser-section {
    padding: 0 24px 50px;
    text-align: center;
    background: transparent;
    scroll-margin-top: 92px;
}
.premios-teaser-section .premios-teaser-img {
    display: block;
}
.premios-teaser-section img { margin: 0 auto; max-width: 1200px; width: 100%; }

/* =========================================================
   PRODUCTOS PARTICIPANTES
   ========================================================= */
body.page-productos { background: #fff; }
.productos-page-hero { padding: 40px 0 10px; text-align: center; }
.productos-page-hero img.titulo { max-width: 640px; margin: 0 auto 20px; }
.productos-page-hero img.productos-foto { max-width: 1200px; margin: 0 auto; }
.productos-tabla-section { padding: 30px 0 60px; }
.productos-tabla-section table { width: 100%; border-collapse: collapse; background: #fff; }
.productos-tabla-section th {
    background: var(--navy); color: #fff; text-transform: uppercase; font-size: .8rem;
    padding: 12px 16px; text-align: left;
}
.productos-tabla-section td { padding: 12px 16px; border-bottom: 1px solid #eef0f4; font-size: .92rem; }
.productos-tabla-section tr:nth-child(even) td { background: #f8f9fc; }
.badge-doble-chance {
    background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .72rem;
    border-radius: 999px; padding: 3px 10px; margin-left: 8px; white-space: nowrap;
}
@media (max-width: 767px) {
    .productos-page-hero { padding: 24px 16px 6px; }
    .productos-tabla-section { padding: 20px 16px 40px; overflow-x: auto; }
    .productos-tabla-section table { min-width: 560px; }
}

/* =========================================================
   PREMIOS
   ========================================================= */
body.page-premios { background: #fff; }
.premios-page-hero { padding: 40px 0 20px; text-align: center; }
.premios-page-hero img { margin: 0 auto; max-width: 1100px; width: 100%; }
.premios-detalle-section { padding: 20px 0 60px; }
.premios-detalle-section .container-xl { max-width: 1000px; }
.premio-card {
    background: var(--gray-bg);
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    margin-bottom: 22px;
}
.premio-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.premio-card .monto { color: var(--orange-1); font-size: 2rem; font-weight: 800; }
.premio-card.premio-final { background: linear-gradient(135deg, var(--orange-1), var(--orange-2)); color: #fff; }
.premio-card.premio-final h3, .premio-card.premio-final .monto { color: #fff; }
@media (max-width: 767px) {
    .premios-page-hero { padding: 24px 16px 12px; }
    .premio-card { padding: 24px 22px; }
}

/* =========================================================
   GANADORES
   ========================================================= */
.ganadores-hero {
    padding: 24px 24px 0;
    text-align: center;
    background: transparent;
}
.ganadores-hero img { margin: 0 auto 48px; max-width: 1400px; width: 100%; }
.ganadores-list-section {
    background: var(--navy);
    padding: 50px 0 60px;
    flex: 1 0 auto;
}
.ganadores-list-section h2 { color: #fff; text-align: center; font-size: 2.2rem; margin-bottom: 2rem; }
.ganadores-list { max-width: 780px; margin: 0 auto; }
.ganadores-list .item {
    background: #fff;
    color: var(--orange-1);
    border-radius: 999px;
    padding: 16px 28px;
    margin-bottom: 14px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.ganadores-list .item span { font-weight: 600; color: var(--navy); font-size: .85rem; }
@media (max-width: 767px) {
    .ganadores-hero { padding: 16px 12px 0; }
    .ganadores-hero img { margin-bottom: 32px; }
    .ganadores-list-section { padding: 36px 16px 40px; }
    .ganadores-list .item { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* =========================================================
   PÁGINA: BASES Y CONDICIONES
   ========================================================= */
body.page-bases {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.page-bases .bases-page {
    flex: 1 0 auto;
    padding-bottom: 40px;
}
.bases-hero { padding: 40px 0 24px; text-align: center; }
.bases-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.05; margin: 0; }
.bases-content {
    background: #fff;
    border-radius: 28px;
    padding: 48px 56px;
    margin: 0 auto 40px;
    max-width: 1100px;
    font-size: .93rem;
    line-height: 1.75;
    color: #1a1a1a;
}
.bases-content p { margin-bottom: 1.1rem; }
.bases-content p:last-child { margin-bottom: 0; }
.bases-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .85rem; }
.bases-content th { background: var(--navy); color: #fff; padding: 8px 12px; text-align: left; }
.bases-content td { padding: 8px 12px; border-bottom: 1px solid #eef0f4; }
@media (max-width: 767px) {
    .bases-content { padding: 28px 22px; border-radius: 22px; }
    .bases-hero { padding: 28px 0 16px; }
}

/* =========================================================
   PÁGINA: PREGUNTAS FRECUENTES
   ========================================================= */
body.page-faq {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.page-faq .faq-page {
    flex: 1 0 auto;
    padding-bottom: 48px;
}
.faq-hero { color: #fff; padding: 28px 0 28px; text-align: center; }
.faq-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: .02em; margin: 0; }
.faq-list { max-width: 920px; margin: 0 auto; padding: 4px 4px 12px; }
.faq-item { margin-bottom: 14px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--navy);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-family: 'Gotham', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    text-align: left;
    line-height: 1.25;
    cursor: pointer;
    transition: background .15s ease;
}
.faq-question:hover { background: var(--navy-dark); }
.faq-icon {
    position: relative; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
    background-color: rgba(255,255,255,.18);
}
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute; background: #fff; border-radius: 2px;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
.faq-item.is-open .faq-icon::after { opacity: 0; }
.faq-question-text { flex: 1; }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-answer {
    background: #fff;
    border-radius: 22px;
    margin-top: 10px;
    padding: 22px 32px;
    color: #1a1a1a;
    font-size: .93rem;
    font-weight: 500;
    line-height: 1.6;
}
.faq-answer a { color: var(--navy); font-weight: 800; text-decoration: underline; }
.faq-answer p { margin: 0 0 .75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { margin: 0 0 .75rem; padding-left: 1.3rem; }
.faq-answer li { margin-bottom: .35rem; }
@media (max-width: 767px) {
    .faq-question { font-size: .86rem; padding: 12px 18px; gap: 12px; }
    .faq-answer { padding: 18px 18px; border-radius: 18px; }
}

/* ---------- FOOTER ---------- */
footer.site-footer {
    background: var(--navy-darker);
    color: #000;
    font-size: .72rem;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    padding: 20px 18px;
    line-height: 1.5;
}
footer.site-footer a { color: #000; text-decoration: underline; }
body.page-home footer.site-footer,
body.page-carga footer.site-footer,
body.page-bases footer.site-footer {
    background: transparent;
    color: #000;
    text-shadow: none;
}
body.page-ganadores footer.site-footer {
    background: var(--navy);
    color: #000;
}

/* =========================================================
   MODALES
   ========================================================= */
body.modal-open, .modal-open header.site-header, .modal { padding-right: 0 !important; }
html.has-modal, html.has-modal body { overflow: hidden; }

body:has(.modal-magistral.show) .modal-backdrop {
    opacity: 0 !important;
}
.modal-magistral {
    --bs-modal-bg: transparent;
}
.modal-magistral::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('../img/bg-popup.jpg') center center / cover no-repeat;
    opacity: .95;
    pointer-events: none;
    z-index: 0;
}
.modal-magistral .modal-dialog {
    position: relative;
    z-index: 1;
    background: none !important;
    box-shadow: none;
    overflow: visible;
    padding-top: 36px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.modal-magistral .modal-content {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 28px;
    box-shadow: none;
    overflow: visible;
    padding: 56px 40px 36px;
    text-align: center;
    position: relative;
}
.modal-magistral .modal-logo {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -52%);
    height: 78px;
    width: auto;
    margin: 0;
    z-index: 5;
}
.modal-magistral .modal-close-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    z-index: 6;
}
.modal-magistral h3 {
    font-family: 'Gotham Ultra', 'Gotham', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    margin: 8px 0 1.4rem;
    line-height: 1.1;
}
.modal-magistral .modal-subtitle {
    color: #fff;
    margin: -.4rem 0 1.1rem;
    font-size: .95rem;
    font-weight: 600;
}

.modal-magistral .form-control, .modal-magistral .form-select {
    border: none;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .7);
    margin-bottom: 14px;
    width: 100%;
}
.modal-magistral .form-control::placeholder,
.modal-magistral .form-select::placeholder {
    color: rgba(255, 255, 255, .92);
}
.modal-magistral .form-control:focus,
.modal-magistral .form-select:focus {
    background: rgba(0, 0, 0, .78);
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .2);
}
.modal-magistral .form-row-2 { display: flex; gap: 12px; }
.modal-magistral .form-row-2 .form-control { flex: 1; min-width: 0; }
.modal-magistral .form-error {
    background: rgba(0, 0, 0, .55);
    color: #ffd4d1;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: none;
}
.modal-magistral .form-error.show { display: block; }
.modal-magistral .link-switch {
    color: var(--navy);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: uppercase;
}

.modal-backdrop.backdrop-navy { background-color: var(--navy-darker); opacity: .82 !important; }

#modalLogin h3 {
    font-size: clamp(2.4rem, 5vw, 3.1rem);
    line-height: 1;
}
#modalLogin .modal-login-hint {
    color: #fff;
    margin: 22px 0 0;
    font-weight: 600;
}

.modal-result-img .modal-dialog,
.modal-premio .modal-dialog {
    max-width: min(520px, calc(100% - 1.5rem));
    padding-top: 8px;
}
.modal-result-img .modal-content,
.modal-premio .modal-content {
    border: none;
    padding: 0 0 10px;
    background: transparent;
}
.modal-result-img .result-img,
.modal-premio img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    background: transparent;
}
.modal-result-img .btn-magistral-navy {
    margin-top: 8px;
    width: calc(100% - 48px);
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.modal-result-img .modal-close-x,
.modal-premio .modal-close-x {
    top: 20px;
    right: 12px;
}
.modal-premio .modal-content {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}
.modal-premio img {
    max-height: 82vh;
    width: auto;
    max-width: 100%;
}

@media (max-width: 575px) {
    .modal-magistral .modal-dialog { --bs-modal-margin: .75rem; max-width: calc(100% - 1.5rem); width: calc(100% - 1.5rem); }
    .modal-magistral .modal-content { padding: 50px 22px 28px; }
    .modal-magistral .modal-logo { height: 64px; }
    .modal-magistral .form-row-2 { flex-direction: column; gap: 0; }
    #modalLogin h3 { font-size: 2.2rem; }
    .modal-result-img .modal-content,
    .modal-premio .modal-content { padding: 0 0 8px; }
}

/* ---------- Loading spinner en botones ---------- */
.btn-magistral-navy .spinner-border,
.btn-magistral-yellow .spinner-border { width: 1rem; height: 1rem; margin-right: 8px; display: none; }
.btn-magistral-navy.is-loading .spinner-border,
.btn-magistral-yellow.is-loading .spinner-border { display: inline-block; }
.btn-magistral-navy.is-loading .btn-text,
.btn-magistral-yellow.is-loading .btn-text { opacity: .85; }

/* ---------- Fade-up al cargar / scrollear ---------- */
.fade-up {
    opacity: 0;
    transform: translate3d(0, 60px, 0);
    transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
    transition-delay: var(--fade-delay, 0ms);
    will-change: opacity, transform;
}
.fade-up.is-inview { opacity: 1; transform: translate3d(0,0,0); }
@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
}
