/* ============================================================
   Babysec UltraSoft 2026 - Estilos generales
   ============================================================ */

@import url('../fonts/stylesheet.css');

:root {
    --purple: #2a1f5e;
    --purple-dark: #201549;
    --orange: #ff5c00;
    --orange-dark: #e35100;
    --teal: #2db0be;
    --blue-light: #b7e1f7;
    --blue-lighter: #cceaec;
    --gray-blue: #e1eff0;
    --input-bg: #cfe9f5;
    --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'VAGRounded BT', 'Trebuchet MS', sans-serif;
    font-weight: 400;
    color: var(--purple);
    background-color: var(--blue-light);
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, strong, b, .btn, th, label, .form-control, .form-label {
    font-weight: 400;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

img { max-width: 100%; display: block; }

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Botones ---------- */
.btn-babysec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: #fff;
    font-weight: 400;
    font-size: 1.15rem;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(230, 81, 0, .35);
    transition: transform .15s ease, background .15s ease;
    text-align: center;
}
.btn-babysec:hover { background: var(--orange-dark); transform: translateY(-2px); color: #fff; }
.btn-babysec:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-babysec-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--purple);
    color: #fff;
    font-weight: 400;
    font-size: 1.15rem;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background .15s ease;
}
.btn-babysec-dark:hover { background: var(--purple-dark); color: #fff; }
.btn-babysec-dark:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Navbar ---------- */
.topbar {
    background: #fff;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 30px;
    box-shadow: none;
    transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}

.topbar.is-scrolled {
    background: #fff;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(42, 31, 94, .12);
    padding: 10px 30px;
}

.topbar .logo img {
    position: absolute;
    top: -8px;
    left: 0;
    height: 7vw;
    transition: height .25s ease, top .25s ease;
}

.topbar.is-scrolled .logo img {
    height: 4.2vw;
    top: -4px;
}

.topbar-inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    transition: min-height .25s ease;
    padding-left: 9vw;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
}
.main-nav a {
    font-weight: 400;
    color: var(--purple);
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
}
.main-nav a.active { border: 2px solid var(--purple); }
.main-nav a:hover { background: rgba(42, 31, 94, .08); }

/* Los heroes llegan hasta arriba; el contenido interno deja aire bajo la cabecera fija */
.hero:not(.hero-inicio) > .container-narrow {
    padding-top: 8vw;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-blue);
    border-radius: 30px;
    padding: 6px 16px 6px 10px;
    font-weight: 400;
    white-space: nowrap;
    position: relative;
}

.user-pill .user-ico {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}

.user-pill .user-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-pill-float {
    position: fixed;
    top: 90px;
    right: max(30px, calc((100vw - 1400px) / 2 + 30px));
    z-index: 999;
    transition: top .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 14px rgba(42, 31, 94, .08);
}

.topbar.is-scrolled ~ .user-pill-float {
    top: 78px;
}
.user-pill-link { background: var(--orange); color: #fff; }
.user-pill-link:hover { background: var(--orange-dark); color: #fff; }

.user-menu {
    position: absolute; top: 110%; right: 0;
    background: #fff; border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    padding: 8px; min-width: 180px;
    display: none; z-index: 1100;
}
.user-menu.show { display: block; }
.user-menu a {
    display: block; padding: 10px 14px; border-radius: 8px; font-weight: 400;
}
.user-menu a:hover { background: var(--gray-blue); }

.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 6px; padding: 6px;
}
.nav-toggle span { width: 28px; height: 4px; background: var(--purple); border-radius: 4px; }

.mobile-menu { display: none; }

/* ---------- Hero genérico con imagen de fondo ---------- */
.hero {
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 60px;
}
.hero-titulo-img { max-width: 520px; margin-bottom: 10px; }

.hero-inicio {
    background-image: url('../im/inicio-bg-desk.jpg');
    background-position: center bottom;
    height: 65vw;
    min-height: unset;
    padding-bottom: 0;
    background-size: 100% auto;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.hero-inicio-content {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 20%);
    width: 100%;
    max-width: 1350px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 0 20px;
    pointer-events: none;
}

.hero-inicio-producto {
    width: 42vw;
    max-width: 807px;
    min-width: 260px;
    flex-shrink: 0;
    pointer-events: none;
}

.hero-inicio-participa {
    width: 30vw;
    max-width: 600px;
    min-width: 200px;
    flex-shrink: 0;
    margin-bottom: 11vw;
    pointer-events: auto;
    transition: transform .15s ease;
}

.hero-inicio-participa:hover {
    transform: translateY(-3px);
}

.hero-inicio-participa img {
    width: 100%;
}

.section-registro {
    background: #dbeef4;
    padding: 10vw 0 70px;
    position: relative;
    z-index: 0;
}

.registro-titulo {
    display: block;
    max-width: 320px;
    margin: 0 auto 24px;
}

.registro-card {
    max-width: 900px;
    margin: 0 auto;
}

.registro-login-hint {
    text-align: center;
    margin-top: 16px;
    font-weight: 400;
}

.registro-login-hint a {
    color: var(--orange);
    text-decoration: underline;
}
.hero-login      { background-image: url('../im/login-bg-desk.jpg'); min-height: 560px; }

.login-titulo {
    display: block;
    max-width: 300px;
    margin: 0 auto 30px;
}
.hero-codigo {
    background-image: url('../im/codigo-bg-desk.jpg');
    background-position: center bottom;
    height: auto;
    min-height: 45vw;
    padding-bottom: 3vw;
    padding-top: 4vw;
    background-size: 100% auto;
    overflow: visible;
}

.hero-codigo > .container-narrow > .row {
    align-items: flex-start;
}

.hero-codigo .codigo-form-col {
    position: relative;
    z-index: 2;
}

#productos {
    position: relative;
    z-index: 1;
    clear: both;
}

.codigo-titulo {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 22px;
}

.codigo-producto-label {
    font-weight: 400;
    font-size: 1.1rem;
    text-align: center;
    margin: 0 0 6px;
}

.codigo-lote-row {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.codigo-lote-group {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.codigo-hora-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.codigo-lote-row .codigo-lote-label {
    font-weight: 400;
    min-width: auto;
    margin: 0;
}

.codigo-lote-row .codigo-lote-field {
    flex: 0 0 auto;
    width: 120px;
    max-width: 120px;
}

.codigo-lote-row .codigo-hora-label {
    font-weight: 400;
    min-width: auto;
    margin: 0;
    text-align: center;
}

.codigo-lote-row .codigo-hora-field {
    flex: 0 0 auto;
    width: 120px;
    max-width: 120px;
}

.codigo-producto {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.section-productos {
    background: #fff;
    padding: 60px 0 0 0;
}

.productos-desk-img,
.productos-mobile-img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.section-como-participar {
    background-color: #00ade5;
    background-image: url('../im/como-partitipar-bg-desk.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 12vw 20px 90px;
    position: relative;
}
.hero-ganadores  { background-image: url('../im/ganadoers-bg-desk.jpg'); min-height: 300px; }

.ganadores-banner {
    border-radius: 24px;
    width: 100%;
    margin-bottom: 28px;
}

.ganadores-side-img {
    border-radius: 24px;
    max-width: 320px;
    margin: 0 auto;
}
.hero-bases      { background-image: url('../im/bases-bg-desk.jpg'); min-height: 420px; }
.hero-preguntas  { background-image: url('../im/preguntas-frecuentes-bg-desk.jpg'); min-height: 420px; }

@media (min-width: 992px) {
    .hero-bases > .container-narrow,
    .hero-preguntas > .container-narrow {
        padding-top: calc(155px + 4vw);
    }

    .hero-bases > .container-narrow > img,
    .hero-preguntas > .container-narrow > img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-bases .bases-box,
    .hero-preguntas .preguntas-content {
        max-width: 900px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .hero-inicio {
        background-image: url('../im/inicio-bg-mobile.jpg');
        height: 163.52vw;
        min-height: unset;
        background-size: 100% auto;
        background-position: top center;
        display: block;
    }

    .hero-inicio-content {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 42%);
        width: 100%;
        max-width: none;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: flex-start;
        padding: 0 24px;
        margin-top: 0;
        gap: 22px;
    }

    .hero-inicio-producto {
        width: min(82vw, 340px);
        max-width: none;
        min-width: 0;
    }

    .hero-inicio-participa {
        width: min(70vw, 280px);
        max-width: none;
        min-width: 0;
        margin-bottom: 4vw;
    }

    .section-registro {
        padding: 50vw 0 50px;
    }

    .registro-titulo {
        max-width: 260px;
        margin: 0 auto 18px;
    }

    .registro-card {
        padding: 28px 22px;
    }

    .registro-card .field {
        text-align: center;
    }

    .registro-card select.field {
        text-align: center;
        text-align-last: center;
    }
    .hero-login      { background-image: url('../im/login-bg-mobile.jpg'); min-height: 420px; }

    .login-titulo {
        max-width: 180px; /* 30% más chico que desk (300px) */
    }
    .hero-codigo {
        background-image: url('../im/codigo-bg-mobile.jpg');
        height: auto;
        min-height: 360px;
        background-size: cover;
    }

    .section-como-participar {
        background-image: url('../im/como-partitipar-bg-mobile.png');
        background-size: cover;
        background-position: top center;
    }

    .hero-ganadores {
        background-image: url('../im/ganadoers-bg-mobile.jpg');
        min-height: 100vh;
        min-height: 100dvh;
        background-size: cover;
        background-position: top center;
        padding-bottom: 40px;
    }

    .hero-ganadores .ganadores-banner {
        margin-bottom: 18px;
    }

    .hero-ganadores .ganadores-panel {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        padding: 18px 14px;
        overflow: hidden;
    }

    .ganadores-list {
        max-height: none;
        overflow-x: hidden;
        padding-right: 0;
        width: 100%;
    }

    .ganadores-row {
        gap: 6px;
        width: 100%;
        min-width: 0;
        margin-bottom: 10px;
    }

    .ganadores-row .nombre,
    .ganadores-row .lugar {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 12px;
        font-size: .82rem;
        border-radius: 20px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .ganadores-side-img {
        max-width: 100%;
    }
    .hero-bases      { background-image: url('../im/bases-bg-mobile.jpg'); min-height: 300px; }
    .hero-preguntas  { background-image: url('../im/preguntas-frecuentes-bg-mobile.jpg'); min-height: 300px; }
}

/* ---------- Tarjetas / formularios ---------- */
.card-form {
    background: rgba(255,255,255,.55);
    border-radius: 30px;
    padding: 40px;
}
.card-form.solid { background: #fff; }

.field {
    width: 100%;
    background: var(--input-bg);
    border: none;
    border-radius: 30px;
    padding: 16px 24px;
    font-family: inherit;
    font-weight: 400;
    color: var(--purple);
    font-size: 1rem;
    margin-bottom: 16px;
}
.field::placeholder { color: rgba(42,31,94,.55); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M1 1l7 7 7-7' stroke='%232a1f5e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 22px center; padding-right: 46px; }

.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }

.check-line { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 400; font-size: .8rem; flex-wrap: wrap; }
.check-line input { width: 18px; height: 18px; accent-color: var(--purple); }
.check-line a { color: var(--orange); text-decoration: underline; }

.upload-box {
    border: 2px dashed var(--purple);
    border-radius: 30px;
    padding: 16px 24px;
    text-align: center;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 16px;
    background: rgba(255,255,255,.4);
    display: block;
}
.upload-box input { display: none; }
.upload-box.has-file { border-style: solid; color: var(--teal); }

.error-msg { color: #c0392b; font-weight: 400; font-size: .85rem; margin: -8px 0 12px; display: none; }

/* Bloqueo del módulo de participación si no está logueado */
.locked-wrap { position: relative; }
.locked-wrap.is-locked .locked-target { opacity: .1; pointer-events: none; filter: grayscale(.3); user-select: none; }
.locked-overlay {
    display: none;
    position: absolute; inset: 0;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 16px; text-align: center; padding: 20px;
}
.locked-wrap.is-locked .locked-overlay { display: flex; }
.locked-overlay p {
    font-weight: 400; font-size: 1.2rem; max-width: 320px; margin: 0;
    background: #fff; padding: 14px 22px; border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* ---------- Preguntas frecuentes flotante ---------- */
.faq-float {
    position: fixed;
    bottom: 24px; right: 24px;
    background: #fff;
    border-radius: 30px;
    padding: 6px 12px 6px 6px ;
    font-weight: 400;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    z-index: 900;
}
.faq-float .ico { width: 1.35rem; height: auto; display: block; flex-shrink: 0; }
.faq-float .txt { display: inline; }

/* ---------- Accordion FAQ ---------- */
.faq-item {
    background: var(--purple);
    color: #fff;
    border-radius: 30px;
    padding: 16px 24px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    margin-bottom: 14px;
}
.faq-item .plus {
    width: 32px; height: 32px; min-width: 32px;
    background: var(--orange);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; line-height: 1;
    transition: transform .2s ease;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
    background: #fff;
    border-radius: 20px;
    padding: 20px 26px;
    margin: -4px 0 14px;
    font-weight: 400;
    display: none;
}
.faq-answer.show { display: block; }
.faq-answer a { color: var(--purple); text-decoration: underline; }
.faq-answer ol, .faq-answer ul { margin: 10px 0 12px; padding-left: 1.3em; }
.faq-answer li { margin: 6px 0; }

/* ---------- Ganadores ---------- */
.ganadores-panel { background: #fff; border-radius: 30px; padding: 30px; }
.ganadores-list { max-height: 420px; overflow-y: auto; padding-right: 0;}
.ganadores-row { display: flex; gap: 16px; margin-bottom: 14px; }
.ganadores-row .nombre, .ganadores-row .lugar {
    border-radius: 30px; padding: 14px 22px; font-weight: 400; flex: 1;
}
.ganadores-row .nombre { background: var(--input-bg); }
.ganadores-row .lugar { background: var(--purple); color: #fff; display: flex; align-items: center; gap: 8px; }

/* ---------- Bases y condiciones ---------- */
.bases-box {
    background: rgba(255,255,255,.7);
    border-radius: 30px;
    padding: 40px;
    max-height: 65vh;
    overflow-y: auto;
    font-weight: 400;
    line-height: 1.6;
}

.bases-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 18px 0 22px;
}

.bases-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    line-height: 1.35;
    background: rgba(255,255,255,.45);
}

.bases-table th,
.bases-table td {
    border: 1px solid rgba(42, 31, 94, .14);
    padding: 7px 10px;
    vertical-align: middle;
}

.bases-table th {
    background: rgba(42, 31, 94, .05);
    text-align: left;
    white-space: nowrap;
}

.bases-table td:nth-child(2),
.bases-table td:nth-child(3) {
    text-align: center;
    white-space: nowrap;
}

.bases-table td:nth-child(4) {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ---------- Modal de estado (popups) ---------- */
.modal-status-backdrop {
    position: fixed; inset: 0; background: rgba(173, 222, 244, .9);
    display: none; align-items: center; justify-content: center;
    z-index: 2000; padding: 20px;
}
.modal-status-backdrop.show { display: flex; }
.modal-status {
    background: var(--blue-lighter);
    border-radius: 30px;
    max-width: 520px; width: 100%;
    padding: 46px 40px 34px;
    position: relative;
    text-align: center;
}
.modal-status .close-x {
    position: absolute; top: -46px; right: 0;
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--purple); background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--purple); font-size: 1.1rem;
}
.modal-status .cloud-logo { height: 70px; margin: 0 auto 18px; }
.modal-status .icon-face { width: 64px; height: 64px; margin: 14px auto 0; }
.modal-status h3 {
    font-size: 1.9rem; font-weight: 400; margin: 0 0 18px;
    line-height: 1.25;
}
.modal-status .modal-note { font-size: .85rem; font-weight: 400; margin-top: 14px; }
.modal-status .modal-note a { color: var(--purple); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    font-size: .8rem;
    font-weight: 400;
    color: var(--purple);
    opacity: .7;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Desk intermedio: evita que el menú pise el logo y pase a 2 líneas */
@media (max-width: 1249px) and (min-width: 992px) {
    .topbar { padding: 14px 18px; }
    .topbar .logo img { height: 5.5vw; top: -4px; }
    .topbar-inner { gap: 12px; padding-left: 9vw; }
    .main-nav {
        flex-wrap: nowrap;
        gap: 2px;
        min-width: 0;
    }
    .main-nav a {
        font-size: .82rem;
        padding: 6px 8px;
    }
    .user-pill-float {
        top: 84px;
        right: 18px;
    }
    .topbar.is-scrolled ~ .user-pill-float {
        top: 72px;
    }
    .user-pill {
        padding: 5px 14px 5px 8px;
        font-size: .85rem;
    }
    .user-pill .user-name {
        max-width: 180px;
    }
}

@media (max-width: 991px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }

    .topbar-inner {
        padding-left: 0;
    }

    .user-pill-float {
        display: none;
    }

    .topbar {
        text-align: center;
        padding: 16px 20px;
        background: transparent;
        background-color: transparent;
        box-shadow: none;
    }

    .topbar.is-scrolled {
        background: #fff;
        background-color: #fff;
        padding: 6px 20px;
        box-shadow: 0 4px 16px rgba(42, 31, 94, .12);
    }

    .topbar-inner {
        justify-content: center;
        position: relative;
        min-height: 70px;
        padding-left: 0;
    }

    .topbar.is-scrolled .topbar-inner {
        min-height: 40px;
    }

    .topbar .logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .topbar .logo img {
        position: static;
        height: 64px;
        margin: 0 auto;
    }

    .topbar.is-scrolled .logo img {
        height: 36px;
        top: auto;
    }

    .nav-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

    /* En páginas que no son inicio, el contenido interno deja aire bajo el logo */
    .hero:not(.hero-inicio) > .container-narrow {
        padding-top: 120px;
    }

    body.page-inicio .hero-inicio {
        margin-top: 0;
    }

    .mobile-menu {
        background: var(--purple);
        padding: 10px 24px 24px;
    }
    .mobile-menu.show { display: block; }
    .mobile-menu a {
        display: block; color: #fff; font-weight: 400;
        padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.15);
    }
    .mobile-menu .mobile-user { color: #ffd8b0; padding-bottom: 14px; }

    .field-row { flex-direction: column; gap: 0; }
    .codigo-lote-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .codigo-lote-group,
    .codigo-hora-group {
        width: 100%;
        margin-left: 0;
    }

    .codigo-lote-row .codigo-lote-field,
    .codigo-lote-row .codigo-hora-field {
        flex: 1;
        width: auto;
        max-width: none;
        min-width: 0;
    }
    .card-form { padding: 24px; }
    .hero-titulo-img { max-width: 320px; }

    .faq-float {
        bottom: 16px; right: 16px;
        padding: 0; width: 52px; height: 52px;
        justify-content: center; border-radius: 50%;
    }
    .faq-float .txt { display: none; }
}

/* ---------- Animaciones reveal (fade-up) ---------- */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(56px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Popup de éxito con imagen (registro / participación) */
.modal-status.is-image-popup {
    background: transparent;
    padding: 0;
    max-width: min(560px, 92vw);
    box-shadow: none;
}

.modal-status.is-image-popup .close-x {
    top: -12px;
    right: -4px;
    background: #fff;
}

.modal-status-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    cursor: pointer;
}
