/* Página de inicio: portadas, tarjetas de inscripción y credencial,
   modal de credencial, cuenta regresiva, cifras y preguntas frecuentes. */

    .ola2000-cover-wrap {
        width: 100%;
        background: #f3f3f3;
        padding: 0;
        line-height: 0;
        position: relative;
        aspect-ratio: 2048 / 768;
        overflow: hidden;
    }

    .ola2000-cover {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 1.2s ease;
    }

    .ola2000-cover-dots {
        position: absolute;
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        z-index: 5;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 10px;
        border-radius: 999px;
        background: rgba(17, 34, 60, 0.28);
        backdrop-filter: blur(3px);
    }

    .ola2000-cover-dot {
        width: 9px;
        height: 9px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.55);
        cursor: pointer;
        transition: background .2s ease, width .2s ease, transform .2s ease;
    }

    .ola2000-cover-dot:hover {
        background: rgba(255, 255, 255, 0.85);
    }

    .ola2000-cover-dot.is-active {
        width: 24px;
        background: #fff;
    }

    .ola2000-cover.is-active {
        opacity: 1;
    }

    /* Portadas celu.png/celu2.png (ver <picture> en site/index.php): son
       verticales, a diferencia de las de escritorio, así que la proporción
       del contenedor cambia junto con la imagen que el navegador elige. */
    @media (max-width: 768px) {
        .ola2000-cover-wrap {
            aspect-ratio: 1024 / 1536;
        }
    }

    .ola2000-features {
        width: 100%;
        max-width: 1200px;
        margin: 18px auto 0;
        padding: 20px 24px 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(420px, 1fr));
        gap: 24px;
        align-items: stretch;
        background: transparent;
    }

    .feature-card {
        border-radius: 28px;
        padding: 28px 28px 24px;
        aspect-ratio: 1.15 / 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        box-shadow: 0 16px 30px rgba(19, 36, 66, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
        overflow: hidden;
        isolation: isolate;
        cursor: pointer;
        transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
        animation: feature-card-enter .55s ease both;
    }

    .feature-card:nth-child(2) {
        animation-delay: .1s;
    }

    .feature-card:hover,
    .feature-card:focus-within {
        transform: translateY(-8px);
        border-color: rgba(255, 255, 255, .38);
        box-shadow: 0 24px 42px rgba(19, 36, 66, .22);
    }

    .feature-card::after {
        content: "";
        position: absolute;
        inset: -40% -20%;
        background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .24) 50%, transparent 62%);
        transform: translateX(-70%) rotate(8deg);
        opacity: 0;
        pointer-events: none;
        transition: transform .7s ease, opacity .25s ease;
        z-index: 0;
    }

    .feature-card:hover::after,
    .feature-card:focus-within::after {
        opacity: 1;
        transform: translateX(70%) rotate(8deg);
    }

    .feature-primary:hover,
    .feature-primary:focus-within {
        box-shadow: 0 24px 42px rgba(19, 36, 66, .24), 0 0 28px rgba(62, 145, 255, .32);
    }

    .feature-success:hover,
    .feature-success:focus-within {
        box-shadow: 0 24px 42px rgba(19, 36, 66, .22), 0 0 28px rgba(30, 220, 157, .28);
    }

    @keyframes feature-card-enter {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .feature-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(45deg, rgba(255,255,255,0.07) 1px, transparent 1px),
            linear-gradient(-45deg, rgba(255,255,255,0.05) 1px, transparent 1px),
            radial-gradient(circle at 80% 0%, rgba(255,255,255,0.14), transparent 34%);
        background-size: 42px 42px, 42px 42px, 100% 100%;
        pointer-events: none;
        opacity: .72;
        transition: opacity .28s ease, transform .5s ease;
    }

    .feature-card:hover::before,
    .feature-card:focus-within::before {
        opacity: 1;
        transform: scale(1.06);
    }

    .feature-primary {
        background: linear-gradient(180deg, #1f4f91 0%, #123d78 100%);
        color: #fff;
    }

    .feature-success {
        background: linear-gradient(180deg, #1aaa78 0%, #108b68 100%);
        color: #fff;
    }

    .feature-icon {
        width: 78px;
        height: 78px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        margin-bottom: 38px;
        position: relative;
        z-index: 1;
        color: #fff;
        font-weight: 700;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 20px rgba(0, 0, 0, .08);
        transition: transform .28s ease, background .28s ease;
    }

    .feature-card:hover .feature-icon,
    .feature-card:focus-within .feature-icon {
        transform: translateY(-3px) scale(1.04);
        background: rgba(255, 255, 255, .22);
    }

    .feature-icon-user {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 20px;
        background: rgba(255,255,255,0.16);
        color: #ffffff;
    }

    .feature-icon-user svg {
        width: 42px;
        height: 42px;
        display: block;
        color: #ffffff;
        stroke: currentColor;
        fill: none;
    }

    .feature-icon-card {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 20px;
        background: rgba(255,255,255,0.16);
        color: #ffffff;
    }

    .feature-icon-card svg {
        width: 42px;
        height: 42px;
        display: block;
        color: #ffffff;
        stroke: currentColor;
        fill: none;
    }

    .feature-label {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        font-weight: 800;
        text-transform: uppercase;
        opacity: 0.9;
        margin-bottom: 12px;
        padding: 6px 12px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        position: relative;
        z-index: 1;
    }

    .feature-card h3 {
        font-size: clamp(1.9rem, 2.2vw, 3.4rem);
        line-height: 1.08;
        letter-spacing: -0.06em;
        margin: 0 0 12px;
        text-align: left;
        font-weight: 900;
        position: relative;
        z-index: 1;
    }

    .feature-card p {
        margin: 0;
        text-align: left;
        font-size: 0.98rem;
        line-height: 1.5;
        opacity: 0.96;
        max-width: 520px;
        position: relative;
        z-index: 1;
    }

    .feature-card button {
        width: 100%;
        max-width: none;
        margin-top: auto;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255,255,255,0.32);
        color: #fff;
        font-weight: 800;
        letter-spacing: 0.03em;
        padding: 12px 16px 12px 22px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-transform: uppercase;
        text-align: left;
        font-size: 0.78rem;
        position: relative;
        z-index: 1;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
        transition: transform 0.2s ease, background 0.2s ease, box-shadow .2s ease;
    }

    .feature-card button:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.24);
        box-shadow: 0 12px 22px rgba(0, 0, 0, .12);
    }

    .feature-card button span {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        line-height: 1;
        position: relative;
        top: -2px;
    }

    body.credential-modal-open {
        overflow: hidden;
    }

    .credential-modal[hidden] {
        display: none;
    }

    .credential-modal {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        place-items: center;
        padding: 18px;
        overflow-y: auto;
    }

    .credential-modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(8, 22, 48, 0.62);
        backdrop-filter: blur(7px);
    }

    .credential-modal-dialog {
        position: relative;
        box-sizing: border-box;
        width: 100%;
        max-width: 650px;
        max-height: 100%;
        overflow-y: auto;
        padding: 32px 34px;
        border: 1px solid rgba(255, 255, 255, 0.76);
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 28px 70px rgba(8, 27, 58, 0.35);
        text-align: center;
        animation: credential-modal-enter .22s ease both;
    }

    .credential-modal .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    @keyframes credential-modal-enter {
        from { opacity: 0; transform: translateY(12px) scale(.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .credential-modal-close {
        position: absolute;
        top: 14px;
        right: 16px;
        width: 34px;
        height: 34px;
        border: 0;
        background: transparent;
        color: #7c8799;
        font-size: 1.9rem;
        line-height: 1;
        cursor: pointer;
    }

    .credential-modal-icon {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin: 0 auto 14px;
        color: #fff;
        background: #2855a4;
        border-radius: 50%;
        font-size: 1.05rem;
        font-weight: 900;
    }

    .credential-modal-dialog h2 {
        margin: 0;
        color: #151515;
        font-size: clamp(1.35rem, 3vw, 1.7rem);
        letter-spacing: -0.045em;
    }

    .credential-modal-subtitle {
        margin: 8px 0 24px;
        color: #7c7c7c;
        font-size: .76rem;
        line-height: 1.5;
    }

    .credential-search-form {
        display: flex;
        width: min(100%, 456px);
        height: 60px;
        margin: 0 auto;
        overflow: hidden;
        border: 2px solid #2f80ff;
        border-radius: 16px;
        background: #fff;
    }

    .credential-search-form input {
        min-width: 0;
        flex: 1;
        border: 0;
        outline: 0;
        padding: 0 18px;
        color: #777;
        font-size: 1.55rem;
        font-weight: 900;
        letter-spacing: .08em;
        text-align: center;
    }

    .credential-search-form input::placeholder {
        color: #7d7d7d;
        opacity: 1;
    }

    .credential-search-form button {
        width: 58px;
        border: 0;
        background: #2855a4;
        color: #fff;
        font-size: 1.8rem;
        cursor: pointer;
    }

    .credential-modal-error {
        min-height: 18px;
        margin-top: 12px;
        color: #bd4251;
        font-size: .72rem;
    }

    .credential-modal-error.is-success {
        min-height: 0;
    }

    .credential-success {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
        padding: 22px 20px 26px;
        background: linear-gradient(180deg, #eafbf3 0%, #dcf6ea 100%);
        border: 1px solid #bfead4;
        border-radius: 18px;
        text-align: center;
        animation: credential-success-in .35s ease;
    }

    .credential-success-icon {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 4px;
        background: linear-gradient(180deg, #1aaa78 0%, #108b68 100%);
        border-radius: 50%;
        color: #fff;
        font-size: 1.25rem;
        font-weight: 800;
    }

    .credential-success-title {
        margin: 0;
        color: #0f6b4d;
        font-size: 1.05rem;
        font-weight: 900;
        letter-spacing: .01em;
        line-height: 1.3;
    }

    .credential-success-subtitle {
        margin: 0 0 6px;
        color: #3f6355;
        font-size: .74rem;
        font-weight: 600;
    }

    .credential-success-reminder {
        max-width: 340px;
        margin: 16px 0 0;
        padding: 12px 14px;
        border: 1px solid #f3c48c;
        border-radius: 12px;
        background: #fff4e5;
        color: #8a5200;
        font-size: .7rem;
        line-height: 1.5;
    }

    .credential-success-reminder strong {
        display: block;
        margin-bottom: 2px;
        color: #7a3b00;
        font-size: .76rem;
    }

    .credential-success-button {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 6px;
        padding: 15px 38px;
        background: linear-gradient(180deg, #1aaa78 0%, #108b68 100%);
        border-radius: 999px;
        color: #fff;
        font-size: .92rem;
        font-weight: 900;
        letter-spacing: .03em;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 10px 22px rgba(16, 139, 104, .35);
        animation: credential-heartbeat 1.7s ease-in-out infinite, credential-pulse-ring 1.7s ease-out infinite;
    }

    .credential-success-button:hover,
    .credential-success-button:focus-visible {
        background: linear-gradient(180deg, #16a06f 0%, #0d7a5b 100%);
        animation-play-state: paused;
        transform: scale(1.05);
    }

    .credential-success-button::after {
        content: '↓';
        font-size: 1rem;
    }

    .credential-concurso-options {
        width: 100%;
        display: grid;
        gap: 10px;
    }

    .credential-concurso-option {
        position: relative;
        padding: 12px 44px 12px 16px;
        display: grid;
        gap: 2px;
        border: 1px solid rgba(16, 139, 104, .3);
        border-radius: 14px;
        background: #fff;
        text-align: left;
        text-decoration: none;
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .credential-concurso-option strong {
        color: #0d7a5b;
        font-size: .9rem;
        font-weight: 900;
    }

    .credential-concurso-option span {
        color: #5c6b83;
        font-size: .78rem;
    }

    .credential-concurso-option::after {
        content: '↓';
        position: absolute;
        top: 50%;
        right: 14px;
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        transform: translateY(-50%);
        border-radius: 50%;
        background: linear-gradient(180deg, #1aaa78 0%, #108b68 100%);
        color: #fff;
        font-weight: 900;
    }

    .credential-concurso-option:hover,
    .credential-concurso-option:focus-visible {
        border-color: #108b68;
        box-shadow: 0 8px 18px rgba(16, 139, 104, .18);
        transform: translateY(-2px);
        outline: 0;
    }

    @keyframes credential-success-in {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes credential-heartbeat {
        0%, 100% { transform: scale(1); }
        18% { transform: scale(1.08); }
        36% { transform: scale(1); }
        54% { transform: scale(1.06); }
        72% { transform: scale(1); }
    }

    @keyframes credential-pulse-ring {
        0% { box-shadow: 0 10px 22px rgba(16, 139, 104, .35), 0 0 0 0 rgba(26, 170, 120, .45); }
        70% { box-shadow: 0 10px 22px rgba(16, 139, 104, .35), 0 0 0 14px rgba(26, 170, 120, 0); }
        100% { box-shadow: 0 10px 22px rgba(16, 139, 104, .35), 0 0 0 0 rgba(26, 170, 120, 0); }
    }

    @media (prefers-reduced-motion: reduce) {
        .credential-success-button {
            animation: none;
        }
    }

    @media (max-width: 560px) {
        .credential-modal-dialog {
            padding: 28px 18px 22px;
            border-radius: 20px;
        }

        .credential-modal-icon {
            width: 38px;
            height: 38px;
            font-size: .92rem;
        }

        .credential-modal-dialog h2 {
            font-size: 1.2rem;
        }

        .credential-modal-subtitle {
            font-size: .7rem;
            margin: 6px 0 18px;
        }

        .credential-search-form {
            height: 52px;
        }

        .credential-search-form input {
            font-size: 1.15rem;
            letter-spacing: .04em;
            padding: 0 10px;
        }

        .credential-search-form button {
            width: 48px;
            font-size: 1.4rem;
        }

        .credential-success-reminder {
            max-width: 100%;
        }

        .credential-success-button {
            padding: 13px 26px;
            font-size: .85rem;
        }
    }

    .ola2000-countdown-section {
        max-width: 1280px;
        margin: 38px auto 0;
        padding: 0 24px 64px;
        text-align: center;
    }

    .ola2000-countdown-section h2 {
        margin: 0;
        font-size: clamp(2.8rem, 3.4vw, 5.2rem);
        font-weight: 900;
        letter-spacing: -0.06em;
        color: #1d3f9c;
        line-height: 1;
    }

    .countdown-rule {
        width: 170px;
        height: 4px;
        background: linear-gradient(90deg, #1d94e8, #1d94e8);
        border-radius: 999px;
        margin: 14px auto 28px;
    }

    .ola2000-banner {
        width: 100%;
        margin: 22px 0 0;
    }

    .ola2000-banner-image {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
        filter: brightness(0.45);
    }

    .ola2000-stats-carousel {
        width: 100%;
        overflow: hidden;
        background: #d7fa55;
        color: #111312;
        margin: 0;
        padding: 30px 0 28px;
    }

    .stats-track {
        display: flex;
        width: 200%;
        animation: stats-carousel-slide 22s linear infinite;
    }

    .ola2000-stats-carousel:hover .stats-track {
        animation-play-state: paused;
    }

    .stats-item {
        width: 12.5%;
        flex: 0 0 12.5%;
        min-height: 94px;
        padding: 0 36px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-right: 1px solid rgba(17, 19, 18, 0.25);
    }

    .stats-item strong {
        display: block;
        font-size: clamp(2.8rem, 4vw, 4.2rem);
        line-height: 0.9;
        letter-spacing: -0.06em;
        font-weight: 900;
    }

    .stats-item span {
        display: block;
        margin-top: 12px;
        font-size: 0.68rem;
        line-height: 1;
        letter-spacing: 0.08em;
        font-weight: 800;
    }

    @keyframes stats-carousel-slide {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-50%);
        }
    }

    .ola2000-faq {
        max-width: 1260px;
        margin: 0 auto;
        padding: 34px 26px 70px;
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: 40px;
        background: #fbfbfa;
        box-shadow: 0 0 0 100vmax #fbfbfa;
        clip-path: inset(0 -100vmax);
    }

    .faq-copy {
        padding-left: 20px;
    }

    .faq-kicker {
        color: #e25a5a;
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        margin-bottom: 12px;
    }

    .faq-copy h2 {
        margin: 0;
        font-size: clamp(3.3rem, 5vw, 8rem);
        line-height: 0.82;
        letter-spacing: -0.08em;
        color: #0b0b0d;
        font-weight: 900;
    }

    .faq-copy h2 span {
        display: block;
        color: #ee6a3a;
    }

    .faq-list {
        margin-top: 26px;
        border-top: 2px solid rgba(11, 45, 104, 0.18);
    }

    .faq-item {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 32px;
        align-items: center;
        gap: 18px;
        padding: 18px 0 16px;
        border-bottom: 2px solid rgba(11, 45, 104, 0.18);
    }

    .faq-item-inner {
        display: contents;
    }

    .faq-number {
        min-width: 42px;
        font-size: 0.72rem;
        line-height: 1;
        font-weight: 800;
        color: #1f4ba2;
        opacity: 0.9;
    }

    .faq-question {
        font-size: clamp(0.93rem, 1.1vw, 1.2rem);
        line-height: 1.4;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: #0d1d3d;
    }

    .faq-toggle {
        width: 24px;
        height: 24px;
        border: 0;
        background: transparent;
        color: #1f4ba2;
        font-size: 2.1rem;
        font-weight: 500;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .faq-toggle:focus {
        outline: 0;
    }

    .faq-toggle:focus-visible {
        outline: 2px solid rgba(31, 75, 162, .35);
        outline-offset: 3px;
    }

    .faq-answer {
        grid-column: 2 / 3;
        margin: 0;
        padding-top: 2px;
        color: #66758c;
        font-family: 'Courier New', monospace;
        font-size: .78rem;
        line-height: 1.7;
    }

    .faq-item.is-open .faq-toggle {
        color: #ed6848;
        transform: rotate(180deg);
    }

    .faq-illustration {
        position: relative;
        height: 440px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .faq-image {
        display: block;
        width: min(100%, 480px);
        max-width: 100%;
        height: auto;
        object-fit: contain;
        filter: none;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    @media (max-width: 900px) {
        .ola2000-features {
            grid-template-columns: minmax(0, 1fr);
        }

        .feature-card {
            width: min(100%, 560px);
            justify-self: center;
            aspect-ratio: auto;
            min-height: 420px;
        }
    }

    @media (max-width: 640px) {
        .ola2000-faq {
            grid-template-columns: minmax(0, 1fr);
            gap: 24px;
            padding: 28px 16px 46px;
        }

        .faq-copy {
            padding-left: 0;
        }

        .faq-copy h2 {
            font-size: clamp(2.6rem, 14vw, 3.3rem);
        }

        .faq-illustration {
            order: 2;
            height: auto;
            min-height: 180px;
        }

        .faq-image {
            width: min(100%, 320px);
            margin: 0 auto;
        }
    }

    @media (max-width: 640px) {
        .ola2000-stats-carousel {
            padding: 14px 0 12px;
        }

        .stats-track {
            width: 400%;
        }

        .stats-item {
            width: 12.5%;
            flex-basis: 12.5%;
            min-height: 60px;
            padding: 0 22px;
        }

        .stats-item strong {
            font-size: 2rem;
        }

        .stats-item span {
            font-size: 0.54rem;
            line-height: 1.2;
            margin-top: 6px;
        }

        .ola2000-countdown-section {
            padding: 0 16px 48px;
        }

        .ola2000-countdown-section h2 {
            font-size: 2.2rem;
        }
    }
