/* Parte pública: lo común a todas sus páginas — botón de WhatsApp,
   "volver arriba" y la cabecera (marca, organizadores, botones). */

.whatsapp-float-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    z-index: 1050;
    transition: transform .15s ease;
    animation: whatsapp-pulse 1.8s ease-out infinite;
}

.whatsapp-float-button:hover {
    transform: scale(1.06);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 6px 16px rgba(0, 0, 0, .25), 0 0 0 0 rgba(37, 211, 102, .55); }
    70% { box-shadow: 0 6px 16px rgba(0, 0, 0, .25), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 16px rgba(0, 0, 0, .25), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float-button svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.scroll-top-button {
    position: fixed;
    left: 50%;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(29, 63, 156, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(15, 32, 68, .16);
    cursor: pointer;
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, box-shadow .15s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.scroll-top-button:hover {
    box-shadow: 0 10px 26px rgba(15, 32, 68, .24);
    transform: translateX(-50%) translateY(-3px);
}

.scroll-top-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #1d3f9c;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 600px) {
    .scroll-top-button {
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

html:has(.ola2000-home) {
        margin: 0;
        padding: 0;
        background: #edf1f4;
    }

body:has(.ola2000-home) > #header {
    display: none !important;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    }

body:has(.ola2000-home) > #main {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    }

body {
        background: #edf1f4;
    margin: 0;
    padding: 0;
    border: 0;
    }

    #main {
        padding: 0;
    }

    .ola2000-home {
        width: 100%;
        background: #edf1f4;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: #1e1e1e;
        padding-top: 0;
    }

    .ola2000-shell {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        background: #f4f6f8;
        border-top: 0;
        border-bottom: 1px solid rgba(26, 43, 73, 0.08);
        box-shadow: inset 0 0 0 1px rgba(17, 34, 60, 0.02);
    }

    .ola2000-header-sticky {
        position: sticky;
        top: 0;
        z-index: 200;
        background: #f4f6f8;
        box-shadow: 0 2px 10px rgba(17, 34, 60, 0.08);
    }

    .ola2000-topbar {
        display: grid;
        grid-template-columns: auto auto auto;
        align-items: center;
        justify-content: center;
        column-gap: 100px;
        width: 100%;
        min-height: auto;
        padding: 14px 32px 14px 90px;
        background: #f4f6f8;
        border-bottom: 1px solid rgba(26, 43, 73, 0.08);
    }

    .ola2000-topbar-right {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-self: end;
    }

    .ola2000-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-action-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding: 11px 20px;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-decoration: none;
        transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
    }

    /* Bases y temarios: naranja, como el título "Elige tu concurso". */
    .header-action-bases {
        border: 1.5px solid #e2621b;
        background: linear-gradient(180deg, #f5893a 0%, #e2621b 100%);
        color: #fff;
        box-shadow: 0 6px 14px rgba(226, 98, 27, 0.28);
    }

    .header-action-bases:hover {
        background: linear-gradient(180deg, #ec7a2a 0%, #c95314 100%);
        color: #fff;
        transform: translateY(-1px);
    }

    .header-action-solid {
        border: 1.5px solid #e0263f;
        background: #e0263f;
        color: #fff;
    }

    .header-action-solid:hover {
        background: #b81b30;
        border-color: #b81b30;
        transform: translateY(-1px);
    }

    /* Acceso rápido a la credencial: el mismo verde de la tarjeta "Mi credencial". */
    .header-action-credencial {
        border: 1.5px solid #108b68;
        background: linear-gradient(180deg, #1aaa78 0%, #108b68 100%);
        color: #fff;
        box-shadow: 0 6px 14px rgba(16, 139, 104, 0.28);
    }

    .header-action-credencial:hover {
        background: linear-gradient(180deg, #16a06f 0%, #0d7a5b 100%);
        color: #fff;
        transform: translateY(-1px);
    }

    .header-action-primary {
        border: 1.5px solid #1d3f9c;
        background: linear-gradient(180deg, #2f63c9 0%, #1d3f9c 100%);
        color: #fff;
        box-shadow: 0 6px 14px rgba(29, 63, 156, 0.28);
    }

    .header-action-primary:hover {
        background: linear-gradient(180deg, #2856ad 0%, #163280 100%);
        transform: translateY(-1px);
    }

    .ola2000-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-self: start;
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }

    .brand-icon {
        width: 64px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .brand-logo-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        background: transparent;
    }

    .brand-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1;
    }

    .brand-title {
        font-size: clamp(1.5rem, 2.1vw, 2.4rem);
        font-weight: 900;
        letter-spacing: -0.07em;
        color: #1d3f9c;
    }

    .brand-subtitle {
        margin-top: 4px;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: clamp(0.7rem, 0.95vw, 0.95rem);
        font-family: inherit;
        font-weight: 700;
        letter-spacing: 0.05em;
        color: #718096;
    }

    .brand-location-icon {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
        fill: #ed3f4d;
        stroke: none;
    }

    .ola2000-organizer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #e34d69;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        white-space: nowrap;
        width: 100%;
        padding-left: 48px;
    }

    .organizer-line {
        width: 64px;
        height: 3px;
        background: linear-gradient(90deg, #e34d69, #f4b3c1);
        display: inline-block;
    }

    .ola2000-sponsors {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        justify-self: center;
    }

    .sponsor-logos {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .sponsor-badge {
        width: 128px;
        height: 62px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        overflow: hidden;
        background: transparent;
        box-shadow: none;
        border: 0;
        border-radius: 0;
    }

    .sponsor-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        background: transparent;
    }

    .sponsor-one .sponsor-logo {
        transform: scale(1.35);
    }

    .sponsor-two .sponsor-logo {
        transform: scale(1);
    }

    @media (max-width: 1100px) {
        .ola2000-topbar {
            grid-template-columns: 1fr;
            row-gap: 10px;
            justify-items: center;
            text-align: center;
            padding: 16px 14px;
        }

        .ola2000-brand,
        .ola2000-sponsors,
        .ola2000-topbar-right {
            justify-self: center;
        }

        .ola2000-brand {
            justify-content: center;
        }

        .ola2000-organizer {
            padding: 6px 0;
        }
    }

    @media (max-width: 640px) {
        body:has(.ola2000-home) {
            overflow-x: hidden;
        }

        .ola2000-topbar {
            grid-template-columns: 1fr;
            row-gap: 10px;
            justify-items: center;
            min-height: auto;
            padding: 12px;
            position: relative;
            z-index: 20;
        }

        .ola2000-home,
        .ola2000-shell {
            max-width: 100%;
            overflow-x: visible;
        }

        .ola2000-brand {
            justify-self: center;
            min-width: 0;
            gap: 10px;
            justify-content: center;
        }

        .ola2000-sponsors {
            display: none;
        }

        .ola2000-topbar-right {
            justify-self: center;
            width: 100%;
        }

        .ola2000-header-actions {
            justify-content: center;
            flex-wrap: wrap;
            row-gap: 8px;
        }

        .header-action-button {
            padding: 8px 14px;
            font-size: .7rem;
        }

        .brand-icon {
            width: 46px;
            height: 46px;
            font-size: 2.1rem;
        }

        .brand-title {
            font-size: 1.45rem;
            letter-spacing: -0.05em;
        }

        .brand-subtitle {
            margin-top: 4px;
            gap: 4px;
            font-size: 0.48rem;
            letter-spacing: 0.04em;
            font-weight: 700;
            color: #718096;
        }

        .brand-location-icon {
            width: 11px;
            height: 11px;
            flex-basis: 11px;
        }

        .ola2000-organizer {
            font-size: 0.72rem;
            letter-spacing: 0.08em;
            gap: 10px;
        }

        .organizer-line {
            width: 42px;
        }

        .sponsor-badge {
            width: 130px;
            height: 72px;
        }
    }
