* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #05070a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    width: 100%;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    scrollbar-width: thin;
    scrollbar-color: #00B3CD rgba(216, 224, 234, 0.1);
    position: relative;
    /* SIN perspective ni transform en body: rompen position:fixed de hijos */
}

/* ── Fondo: video Halloween ── */
#mundial-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: #05070a;
}

.mundial-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.mundial-bg-photo {
    position: absolute;
    inset: 0;
    background: transparent;
}

.mundial-bg-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Oscurece un poco el video sin taparlo del todo */
    background:
        linear-gradient(180deg,
            rgba(4, 6, 10, 0.35) 0%,
            rgba(6, 8, 14, 0.22) 40%,
            rgba(8, 10, 16, 0.28) 70%,
            rgba(2, 3, 6, 0.48) 100%);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .mundial-bg-video {
        display: none;
    }
    .mundial-bg-photo {
        background: #0a0c12;
    }
}

/* Scrollbar estilo colorida con colores personalizados */
body::-webkit-scrollbar {
    width: 14px;
}

body::-webkit-scrollbar-track {
    background: rgba(216, 224, 234, 0.1);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #006188 0%, #00B3CD 50%, #D8E0EA 100%);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #005070 0%, #0099B3 50%, #C8D0DA 100%);
}

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

/* Header */
.header {
    background: transparent;
    color: white;
    padding: 20px 0;
    padding-top: max(20px, env(safe-area-inset-top));
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none;
    width: 100%;
}

.header .container {
    max-width: 1400px;
}

.header .container > div,
.header .header-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-content {
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    min-width: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Botón hamburguesa (visible solo en móvil) */
.nav-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(0, 179, 205, 0.45);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(0, 179, 205, 0.28) 0%, rgba(0, 97, 136, 0.42) 100%);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.nav-menu-toggle:hover {
    background: linear-gradient(160deg, rgba(0, 179, 205, 0.38) 0%, rgba(0, 97, 136, 0.52) 100%);
    border-color: rgba(0, 179, 205, 0.65);
}

.nav-menu-toggle:active {
    transform: scale(0.94);
}

.nav-menu-toggle.is-open {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.2) 0%, rgba(0, 179, 205, 0.35) 100%);
    border-color: rgba(255, 255, 255, 0.45);
}

.nav-menu-toggle-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.nav-menu-bar {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    flex-shrink: 0;
}

.nav-menu-toggle.is-open .nav-menu-toggle-box {
    gap: 0;
}

.nav-menu-toggle.is-open .nav-menu-bar {
    position: absolute;
    top: 50%;
    margin-top: -1.25px;
}

.nav-menu-toggle.is-open .nav-menu-bar:nth-child(1) {
    transform: rotate(45deg);
}

.nav-menu-toggle.is-open .nav-menu-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-menu-toggle.is-open .nav-menu-bar:nth-child(3) {
    transform: rotate(-45deg);
}

/* Drawer móvil — chrome (oculto en escritorio) */
.nav-drawer-head,
.nav-drawer-foot,
.nav-link-icon,
.nav-link-go {
    display: none;
}

.nav-drawer-links {
    display: contents;
}

.nav-link-text {
    display: inline;
}

/* Capa oscura detrás del panel (móvil) */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 8, 24, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

body.nav-mobile-open {
    overflow: hidden;
    touch-action: none;
}

/* Bloquea scroll de la página cuando hay popup de felicitaciones / avisos */
body.landing-popup-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    touch-action: none;
    /* Sin perspective: los overlays fixed deben anclarse al viewport, no al body */
    perspective: none;
    -webkit-perspective: none;
}

html.landing-popup-open {
    overflow: hidden;
    height: 100%;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    --jubi-top-offset: clamp(84px, 18vh, 160px);
    gap: 8px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.5;
    box-sizing: border-box;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 10px 0;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dropdown-item-logo {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    --jubi-top-offset: clamp(84px, 18vh, 160px);
    padding: 15px 20px;
}

.dropdown-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.dropdown-item-logo:hover .dropdown-logo {
    transform: scale(1.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.what-link {
    display: inline-block;
    text-decoration: none;
}

.what-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.what-link:hover .what-img {
    transform: scale(1.1);
}

.btn-login {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Main Content */
.main-content {
    padding: 30px 20px;
}


/* Carrusel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* Scrollbar para elementos con scroll */
*::-webkit-scrollbar {
    width: 14px;
}

*::-webkit-scrollbar-track {
    background: rgba(216, 224, 234, 0.1);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #006188 0%, #00B3CD 50%, #D8E0EA 100%);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #005070 0%, #0099B3 50%, #C8D0DA 100%);
}

/* Entrada suave (sin slide largo desde fuera de pantalla — evita saltos y tirones) */
.carousel-slide {
    width: 100%;
    opacity: 0;
    animation: cardEnter 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.carousel-slide--promos {
    animation-duration: 0.78s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide--avisos {
    animation-duration: 0.68s;
}

/* Aviso ancho (quiniela): ocupa todo el grid */
.carousel-slide--destacado {
    grid-column: 1 / -1;
}

.promocion-imagen--contain {
    object-fit: contain;
    max-height: min(52vh, 520px);
    background: #fff;
}

.promocion-imagen-wrapper--clic {
    cursor: zoom-in;
}

.promocion-imagen-wrapper--clic:focus-visible {
    outline: 2px solid #00B3CD;
    outline-offset: 3px;
}

/* Lightbox al hacer clic en aviso ampliable */
.aviso-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 20, 35, 0.88);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.aviso-lightbox-overlay.activo {
    opacity: 1;
}

.aviso-lightbox-cerrar {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 10051;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease;
}

.aviso-lightbox-cerrar:hover {
    background: rgba(255, 255, 255, 0.28);
}

.aviso-lightbox-figura {
    margin: 0;
    max-width: min(96vw, 1400px);
    max-height: min(92vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aviso-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: min(92vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.promocion-imagen-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    /* Sin perspective 3D: menos repaints, hover más fluido */
}

.promocion-imagen {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    transform: translate3d(0, 0, 0);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        filter 0.4s ease;
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.35),
        0 8px 16px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    filter: brightness(1.03) contrast(1.03);
}

.promocion-imagen-wrapper:hover .promocion-imagen {
    transform: translate3d(0, 0, 0) scale(1.02) rotate(0deg);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.42),
        0 12px 24px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.18);
    filter: brightness(1.06) contrast(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .promocion-imagen {
        transition: none;
    }
    .promocion-imagen-wrapper:hover .promocion-imagen {
        transform: none;
    }
}


/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 50px 0 40px;
    margin-top: 60px;
    box-shadow: 
        0 -10px 30px rgba(0, 0, 0, 0.3),
        0 -5px 15px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    max-width: min(220px, 70vw);
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #0ea5e9;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 18px;
    font-weight: 700;
    line-height: 2;
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
}

.footer-bottom p {
    color: #ffffff !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    text-shadow: 
        0 3px 10px rgba(0, 0, 0, 1),
        0 2px 5px rgba(0, 0, 0, 0.8);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.footer-bottom a {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-shadow: 
        0 3px 10px rgba(0, 0, 0, 1),
        0 2px 5px rgba(0, 0, 0, 0.8);
    opacity: 1 !important;
    font-weight: 700;
    visibility: visible !important;
}

.footer-bottom a:hover {
    text-decoration: underline !important;
    opacity: 0.9 !important;
}

/* Página de Catálogos */
.catalogos-content {
    padding: 60px 0;
    min-height: 60vh;
}

.catalogos-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.catalogos-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 50px;
}

.avisos-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.promociones-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 30px;
}

/* Página de Recursos Internos */
.recursos-content {
    padding: 60px 0;
    min-height: 60vh;
}

.recursos-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.recursos-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 50px;
}

.recursos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    --jubi-top-offset: clamp(84px, 18vh, 160px);
    gap: 30px;
    margin-top: 40px;
}

.recurso-imagen-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    --jubi-top-offset: clamp(84px, 18vh, 160px);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.recurso-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.catalogo-card:hover .recurso-imagen {
    transform: scale(1.05);
}

.catalogos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    --jubi-top-offset: clamp(84px, 18vh, 160px);
    gap: 30px;
    margin-top: 40px;
}

.catalogo-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 450px;
    color: inherit;
}

.catalogo-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.catalogo-card h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.catalogo-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.catalogo-icon {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.catalogo-card:hover .catalogo-icon {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.catalogo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 300px;
}

.share-menu {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    --jubi-top-offset: clamp(84px, 18vh, 160px);
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.catalogo-wrapper:hover .share-menu {
    opacity: 1;
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.share-btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.logo-section a {
    text-decoration: none;
    display: inline-block;
}

/* ──────────────────────────────────────────────────────
   Popup de cumpleaños (landing pública)
   ────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════
   POPUP CUMPLEAÑOS — 5 diseños aleatorios
   ══════════════════════════════════════════════════════════════ */

/* ── Overlay base ── */
.cumpleanos-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: grid;
    place-items: center;
    z-index: 9999;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.cumpleanos-overlay.activo { opacity: 1; pointer-events: all; }

/* ── Popup base ── */
.cp-popup {
    max-width: 420px;
    width: 100%;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex-shrink: 0;
    margin: auto;
    transform: scale(0.96);
    transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    font-family: -apple-system, 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
}
.cumpleanos-overlay.activo .cp-popup { transform: scale(1); }

/* ── Botón cerrar base — sticky para que siga visible al hacer scroll dentro del popup ── */
.cp-cerrar {
    position: sticky;
    top: 8px;
    align-self: flex-end;
    margin: 0 0 -32px 0;
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 5; flex-shrink: 0;
}
.cp-cerrar:hover { background: rgba(255,255,255,0.3); }

/* ── Helper: lista de personas reutilizable ── */
.cp-avatar-emoji { font-size: 1.5rem; flex-shrink: 0; }
.cp-persona-info {
    display: flex; flex-direction: column; gap: 1px;
    flex: 1; min-width: 0; /* deja espacio para el botón Felicitar */
}

/* ── Animación de confeti pulsante ── */
@keyframes cpBounce { from { transform: scale(1); } to { transform: scale(1.18) rotate(6deg); } }

/* ══════════════════
   DISEÑO 1 — Festivo
   ══════════════════ */
.cp-d1 {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 22px; padding: 36px 30px; text-align: center;
    box-shadow: 0 20px 60px rgba(106,17,203,0.5), 0 4px 20px rgba(0,0,0,0.4);
    overflow-x: hidden;
}
.cp-d1::before {
    content: ''; position: absolute; top: -50px; right: -50px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255,255,255,0.07); pointer-events: none;
}
.cp-d1-confeti { font-size: 1rem; letter-spacing: 8px; margin-bottom: 8px; opacity: 0.9; }
.cp-d1-emoji { font-size: 3.2rem; display: block; margin-bottom: 8px; animation: cpBounce 1s ease infinite alternate; }
.cp-d1-titulo { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.cp-d1-personas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cp-d1-item {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.12); border-radius: 12px; padding: 10px 14px; text-align: left;
}
.cp-d1-nombre { font-size: 1rem; font-weight: 800; color: #ffd700; }
.cp-d1-puesto { font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.cp-d1-depto  { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.cp-d1-sub { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 18px; }
.cp-d1-btn {
    background: #fff; color: #6a11cb; border: none;
    padding: 11px 32px; border-radius: 50px; font-weight: 800;
    cursor: pointer; font-size: 0.92rem; transition: transform 0.2s;
}
.cp-d1-btn:hover { transform: scale(1.05); }

/* ═══════════════════════
   DISEÑO 2 — Minimalista
   ═══════════════════════ */
.cp-d2 {
    background: #fff; border-radius: 18px;
    border-top: 5px solid #c8a84b;
    padding: 36px 30px; text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.cp-d2-cerrar { color: #888; background: rgba(0,0,0,0.06); }
.cp-d2-cerrar:hover { background: rgba(0,0,0,0.12); }
.cp-d2-emoji { font-size: 2.8rem; display: block; margin-bottom: 10px; animation: cpBounce 1s ease infinite alternate; }
.cp-d2-eyebrow { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: #c8a84b; font-weight: 700; margin-bottom: 8px; }
.cp-d2-titulo { font-size: 1rem; color: #333; font-weight: 600; margin-bottom: 14px; }
.cp-d2-personas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.cp-d2-item {
    display: flex; align-items: center; gap: 10px;
    background: #faf8f2; border: 1px solid #f0e8cc;
    border-radius: 10px; padding: 10px 14px; text-align: left;
}
.cp-d2-nombre { font-size: 1.05rem; font-weight: 800; color: #1a1a1a; }
.cp-d2-puesto { font-size: 0.76rem; color: #c8a84b; font-weight: 600; }
.cp-d2-depto  { font-size: 0.72rem; color: #999; }
.cp-d2-btn {
    background: #c8a84b; color: #fff; border: none;
    padding: 11px 0; border-radius: 8px; font-weight: 700;
    cursor: pointer; font-size: 0.9rem; width: 100%;
}
.cp-d2-btn:hover { opacity: 0.88; }

/* ════════════════════════
   DISEÑO 3 — Card Avatar
   ════════════════════════ */
.cp-d3 { background: #fff; border-radius: 24px; overflow-x: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.cp-d3 .cp-cerrar { margin-bottom: -28px; }
.cp-d3-header {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    padding: 26px 24px 48px; text-align: center;
}
.cp-d3-emojis { font-size: 1.8rem; margin-bottom: 4px; }
.cp-d3-htitulo { color: #fff; font-size: 0.95rem; font-weight: 700; opacity: 0.9; }
.cp-d3-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    border: 4px solid #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: -36px auto 0; position: relative; z-index: 1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    animation: cpBounce 1s ease infinite alternate;
}
.cp-d3-body { padding: 14px 24px 26px; }
.cp-d3-personas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cp-d3-item {
    display: flex; align-items: center; gap: 10px;
    background: #fdf4f4; border-radius: 10px; padding: 10px 14px;
}
.cp-d3-nombre { font-size: 1rem; font-weight: 800; color: #1a1a1a; }
.cp-d3-puesto { font-size: 0.75rem; color: #f5576c; font-weight: 600; }
.cp-d3-depto  { font-size: 0.72rem; color: #999; }
.cp-d3-mensaje { font-size: 0.83rem; color: #666; line-height: 1.5; margin-bottom: 16px; text-align: center; }
.cp-d3-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff; border: none; padding: 11px 0;
    border-radius: 50px; font-weight: 700; cursor: pointer;
    font-size: 0.9rem; width: 100%;
}
.cp-d3-btn:hover { opacity: 0.9; }

/* ══════════════════
   DISEÑO 4 — Neón
   ══════════════════ */
.cp-d4 {
    background: #111; border-radius: 20px; padding: 34px 28px; text-align: center;
    border: 1px solid rgba(0,255,136,0.2);
    box-shadow: 0 0 40px rgba(0,255,136,0.12), 0 16px 50px rgba(0,0,0,0.6);
}
.cp-d4::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 55%; height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    pointer-events: none;
}
.cp-d4-cerrar { color: #00ff88; background: rgba(0,255,136,0.1); }
.cp-d4-cerrar:hover { background: rgba(0,255,136,0.2); }
.cp-d4-sparkles { color: #00ff88; font-size: 0.85rem; letter-spacing: 8px; margin-bottom: 6px; }
.cp-d4-emoji { font-size: 3rem; display: block; margin-bottom: 10px; filter: drop-shadow(0 0 10px #00ff88); animation: cpBounce 1s ease infinite alternate; }
.cp-d4-eyebrow { font-size: 0.68rem; letter-spacing: 4px; text-transform: uppercase; color: #00ff88; font-weight: 700; margin-bottom: 12px; }
.cp-d4-personas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.cp-d4-item {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,255,136,0.05); border: 1px solid rgba(0,255,136,0.12);
    border-radius: 10px; padding: 10px 14px; text-align: left;
}
.cp-d4-nombre { font-size: 1rem; font-weight: 800; color: #fff; }
.cp-d4-puesto { font-size: 0.75rem; color: #00ff88; }
.cp-d4-depto  { font-size: 0.72rem; color: #555; }
.cp-d4-btn {
    background: transparent; color: #00ff88; border: 1px solid #00ff88;
    padding: 10px 0; border-radius: 8px; font-weight: 700;
    cursor: pointer; font-size: 0.9rem; width: 100%; transition: background 0.2s;
}
.cp-d4-btn:hover { background: rgba(0,255,136,0.1); }

/* ════════════════════════
   DISEÑO 5 — Corporativo
   ════════════════════════ */
.cp-d5 { background: #fff; border-radius: 20px; overflow-x: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.cp-d5-banner {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 20px 20px; display: flex; align-items: center; gap: 12px;
}
.cp-d5-logo {
    width: 44px; height: 44px; background: rgba(255,255,255,0.15);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0; animation: cpBounce 1s ease infinite alternate;
}
.cp-d5-banner-text { flex: 1; }
.cp-d5-banner-text h2 { color: #fff; font-size: 0.92rem; font-weight: 700; }
.cp-d5-banner-text p  { color: rgba(255,255,255,0.65); font-size: 0.75rem; }
.cp-d5-cerrar { position: static; width: 26px; height: 26px; flex-shrink: 0; }
.cp-d5-body { padding: 20px 20px 22px; }
.cp-d5-personas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cp-d5-item {
    display: flex; align-items: center; gap: 12px;
    background: #f8f9fb; border-radius: 10px; padding: 12px 14px;
}
.cp-d5-item .cp-avatar-emoji { font-size: 1.6rem; }
.cp-d5-nombre { font-size: 1rem; font-weight: 800; color: #1a1a1a; }
.cp-d5-puesto { font-size: 0.75rem; color: #1e3c72; font-weight: 600; }
.cp-d5-depto  { font-size: 0.72rem; color: #999; }
.cp-d5-mensaje { font-size: 0.83rem; color: #666; line-height: 1.5; margin-bottom: 16px; }
.cp-d5-btns { display: flex; gap: 10px; }
.cp-d5-btn-pri {
    background: #1e3c72; color: #fff; border: none;
    padding: 10px 0; border-radius: 8px; font-weight: 700;
    cursor: pointer; font-size: 0.87rem; flex: 1;
}
.cp-d5-btn-sec {
    background: #f1f3f5; color: #555; border: none;
    padding: 10px 0; border-radius: 8px; font-weight: 600;
    cursor: pointer; font-size: 0.87rem; flex: 1;
}
.cp-d5-btn-pri:hover { opacity: 0.9; }
.cp-d5-btn-sec:hover { background: #e5e8ec; }

/* ── Botón Felicitar (compartido) ── */
.cp-felicitar-btn {
    border: none; border-radius: 20px;
    padding: 5px 12px; font-size: 0.72rem; font-weight: 700;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    margin-left: auto; /* siempre visible al final de la fila */
    transition: opacity 0.2s, transform 0.15s;
}
.cp-felicitar-btn:hover:not(:disabled) { opacity: 0.85; transform: scale(1.04); }
.cp-felicitar-btn:disabled { cursor: default; }

/* Variantes por diseño */
.cp-felicitar-d1 { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.cp-felicitar-d2 { background: #c8a84b; color: #fff; }
.cp-felicitar-d3 { background: linear-gradient(135deg, #f093fb, #f5576c); color: #fff; }
.cp-felicitar-d4 { background: transparent; color: #00ff88; border: 1px solid #00ff88; }
.cp-felicitar-d5 { background: #1e3c72; color: #fff; }

/* Móvil / iPhone: menú hamburguesa y panel lateral */
@media (max-width: 899px) {
    .header {
        padding: 10px 0;
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .header .container {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .header .container > div,
    .header .header-content {
        padding: 8px 10px 8px 14px;
        border-radius: 18px;
        gap: 8px;
        align-items: center;
    }

    .logo-section {
        flex: 1;
        min-width: 0;
    }

    .logo-img {
        height: 36px;
        max-width: min(180px, 48vw);
    }

    .header-actions {
        gap: 6px;
        align-items: center;
    }

    .header-right {
        gap: 6px;
        align-items: center;
    }

    .nav-menu-toggle {
        display: inline-flex;
        z-index: 1002;
    }

    .nav-backdrop {
        display: block;
        pointer-events: none;
        z-index: 1000;
    }

    .nav-backdrop.is-open {
        pointer-events: auto;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(92vw, 340px);
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        background:
            linear-gradient(175deg, rgba(6, 18, 48, 0.99) 0%, rgba(4, 12, 32, 0.99) 55%, rgba(2, 8, 22, 1) 100%);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border-left: 1px solid rgba(0, 179, 205, 0.22);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
        transform: translateX(105%);
        transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1001;
        overflow: hidden;
        visibility: hidden;
    }

    .header-nav.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-drawer-head,
    .nav-drawer-foot,
    .nav-link-icon,
    .nav-link-go {
        display: block;
    }

    .nav-link-go {
        display: flex;
    }

    .nav-drawer-head {
        position: relative;
        padding: calc(18px + env(safe-area-inset-top)) 20px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background:
            linear-gradient(135deg, rgba(0, 179, 205, 0.12) 0%, rgba(0, 97, 136, 0.06) 100%);
        flex-shrink: 0;
    }

    .nav-drawer-accent {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #006188, #00B3CD, #D8E0EA);
    }

    .nav-drawer-brand {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .nav-drawer-logo {
        height: 38px;
        width: auto;
        max-width: 200px;
        object-fit: contain;
        display: block;
    }

    .nav-drawer-tagline {
        margin: 0;
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.55);
        font-weight: 600;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    .nav-drawer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 16px 12px;
    }

    .header-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
        padding: 13px 14px;
        font-size: 15px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transform: none;
        opacity: 0;
        animation: navItemIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .header-nav.is-open .nav-link:nth-child(1) { animation-delay: 0.04s; }
    .header-nav.is-open .nav-link:nth-child(2) { animation-delay: 0.08s; }
    .header-nav.is-open .nav-link:nth-child(3) { animation-delay: 0.12s; }
    .header-nav.is-open .nav-link:nth-child(4) { animation-delay: 0.16s; }
    .header-nav.is-open .nav-link:nth-child(5) { animation-delay: 0.20s; }
    .header-nav.is-open .nav-link:nth-child(6) { animation-delay: 0.24s; }

    @keyframes navItemIn {
        from {
            opacity: 0;
            transform: translateX(14px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-link-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        flex-shrink: 0;
        background: linear-gradient(145deg, rgba(0, 179, 205, 0.22), rgba(0, 97, 136, 0.35));
        border: 1px solid rgba(0, 179, 205, 0.28);
    }

    .nav-link-text {
        flex: 1;
        min-width: 0;
        font-weight: 600;
        line-height: 1.25;
    }

    .nav-link-go {
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.45);
        flex-shrink: 0;
    }

    .header-nav .nav-link.is-active {
        background: linear-gradient(135deg, rgba(0, 179, 205, 0.22) 0%, rgba(0, 97, 136, 0.18) 100%);
        border-color: rgba(0, 179, 205, 0.45);
        box-shadow: 0 4px 16px rgba(0, 179, 205, 0.15);
    }

    .header-nav .nav-link.is-active .nav-link-icon {
        background: linear-gradient(145deg, rgba(0, 179, 205, 0.45), rgba(0, 97, 136, 0.55));
        border-color: rgba(0, 179, 205, 0.55);
    }

    .header-nav .nav-link:active {
        background: rgba(255, 255, 255, 0.14);
        transform: scale(0.98);
    }

    @media (prefers-reduced-motion: reduce) {
        .header-nav .nav-link {
            animation: none;
            opacity: 1;
            transform: none;
        }
    }

    .nav-drawer-foot {
        flex-shrink: 0;
        padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(0, 0, 0, 0.22);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .nav-drawer-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 18px;
        border-radius: 14px;
        background: linear-gradient(135deg, #00B3CD 0%, #006188 100%);
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 6px 20px rgba(0, 179, 205, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-drawer-cta:active {
        opacity: 0.92;
        transform: scale(0.98);
    }

    .nav-drawer-secondary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 11px 16px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.88rem;
    }

    .nav-drawer-secondary img {
        display: block;
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .what-img {
        height: 34px;
        width: 34px;
    }

    .btn-login {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 18px;
        white-space: nowrap;
        line-height: 1.2;
    }
}

@media (max-width: 420px) {
    .header .container > div,
    .header .header-content {
        padding-right: 8px;
    }

    .what-link {
        display: none;
    }

    .btn-login {
        padding: 8px 10px;
        font-size: 11px;
    }

    .nav-menu-toggle {
        width: 44px;
        height: 44px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 12px 12px 20px;
    }

    .carousel-container {
        padding: 8px 0 12px;
    }

    .carousel-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .logo-section h1 {
        font-size: 24px;
    }

    .footer {
        margin-top: 28px;
        padding: 32px 0 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-social {
        flex-direction: row;
        gap: 15px;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 16px;
        font-size: 15px;
    }

    .catalogos-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalogo-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .catalogos-title,
    .avisos-title {
        font-size: 32px;
    }

    .catalogos-description {
        font-size: 16px;
    }

    /* Popup cumpleaños — centrado con margen cómodo */
    .cumpleanos-overlay {
        padding: max(20px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
    }

    .cumpleanos-overlay .cp-popup {
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px);
    }

    .cp-d1 { padding: 22px 16px 20px; }
    .cp-d2 { padding: 22px 16px 20px; }
    .cp-d3-header { padding: 20px 16px 40px; }
    .cp-d3-body { padding: 12px 16px 18px; }
    .cp-d4 { padding: 22px 16px 18px; }
    .cp-d5-body { padding: 14px 14px 16px; }

    .cp-d1-titulo { font-size: 1.12rem; margin-bottom: 12px; }
    .cp-d1-emoji,
    .cp-d2-emoji,
    .cp-d4-emoji { font-size: 2.4rem; }
    .cp-d3-avatar { width: 60px; height: 60px; font-size: 1.5rem; margin-top: -30px; }

    .cp-d1-item,
    .cp-d2-item,
    .cp-d3-item,
    .cp-d4-item,
    .cp-d5-item {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 12px;
    }

    .cp-felicitar-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        white-space: normal;
        padding: 7px 10px;
        font-size: 0.75rem;
    }

    .cp-d1-nombre,
    .cp-d2-nombre,
    .cp-d3-nombre,
    .cp-d4-nombre,
    .cp-d5-nombre {
        font-size: 0.92rem;
    }

    .cp-cerrar {
        top: 8px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

/* ──────────────────────────────────────────────────────
   Popup jubilación — Arcelia Gómez Ibarra (landing)
   ────────────────────────────────────────────────────── */
.jubi-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(8, 18, 32, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.jubi-overlay.activo {
    opacity: 1;
    pointer-events: all;
}

.jubi-card {
    position: relative;
    max-width: 760px;
    width: min(96vw, 760px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex-shrink: 0;
    margin: auto;
    padding: 2.6rem 2.4rem 2.1rem;
    border-radius: 4px;
    background:
        linear-gradient(165deg, #fdfbf7 0%, #f5f0e8 45%, #ebe4d8 100%);
    border: 1px solid rgba(180, 145, 85, 0.55);
    box-shadow:
        0 0 0 3px rgba(212, 175, 95, 0.35),
        0 24px 64px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transform: scale(0.98);
    transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
    font-family: Georgia, 'Times New Roman', serif;
    color: #2c2416;
}
.jubi-overlay.activo .jubi-card {
    transform: scale(1);
}

.jubi-cerrar {
    position: sticky;
    top: 0;
    float: right;
    width: 36px;
    height: 36px;
    margin: -0.5rem 0 0.5rem auto;
    border: none;
    border-radius: 50%;
    background: rgba(44, 36, 22, 0.1);
    color: #5c4f3d;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 3;
}
.jubi-cerrar:hover {
    background: rgba(44, 36, 22, 0.18);
    color: #1a1510;
}

.jubi-festivo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 4px;
}
.jubi-confeti {
    position: absolute;
    top: -12%;
    font-size: 1rem;
    opacity: 0.85;
    animation: jubiCaerConfeti linear infinite;
    filter: drop-shadow(0 0 6px rgba(212, 175, 95, 0.5));
}
.jubi-confeti:nth-child(1) { left: 8%; animation-duration: 5.4s; animation-delay: 0s; }
.jubi-confeti:nth-child(2) { left: 20%; animation-duration: 4.8s; animation-delay: 0.9s; }
.jubi-confeti:nth-child(3) { left: 36%; animation-duration: 6.1s; animation-delay: 0.4s; }
.jubi-confeti:nth-child(4) { left: 53%; animation-duration: 5.2s; animation-delay: 1.2s; }
.jubi-confeti:nth-child(5) { left: 68%; animation-duration: 6.4s; animation-delay: 0.7s; }
.jubi-confeti:nth-child(6) { left: 82%; animation-duration: 5.6s; animation-delay: 1.5s; }
.jubi-confeti:nth-child(7) { left: 93%; animation-duration: 6.9s; animation-delay: 0.2s; }

.jubi-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 7px;
    pointer-events: none;
    box-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
    animation: jubiBrilloMarco 2.6s ease-in-out infinite;
}
@keyframes jubiCaerConfeti {
    0% { transform: translateY(-10%) rotate(0deg); opacity: 0; }
    12% { opacity: 0.9; }
    100% { transform: translateY(115vh) rotate(360deg); opacity: 0; }
}
@keyframes jubiBrilloMarco {
    0%, 100% { box-shadow: 0 0 18px rgba(201, 162, 39, 0.25); }
    50% { box-shadow: 0 0 30px rgba(201, 162, 39, 0.5); }
}

.jubi-ornamento {
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.85em;
    color: #a67c32;
    margin-bottom: 0.35rem;
    opacity: 0.9;
}

.jubi-rubrica {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: #6b5a42;
    margin-bottom: 0.65rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

.jubi-titulo {
    font-size: clamp(1.75rem, 4.6vw, 2.2rem);
    font-weight: 400;
    text-align: center;
    color: #1a1510;
    margin-bottom: 1.15rem;
    line-height: 1.25;
    font-style: italic;
}

.jubi-cuerpo {
    font-size: clamp(1.08rem, 2.25vw, 1.2rem);
    line-height: 1.74;
    text-align: justify;
    hyphens: auto;
}
.jubi-cuerpo p {
    margin-bottom: 0.9rem;
}
.jubi-cuerpo p:last-of-type {
    margin-bottom: 0;
}
.jubi-cierre {
    text-align: center !important;
    font-size: clamp(1.25rem, 2.8vw, 1.45rem);
    font-weight: 700;
    color: #7a5c20;
    margin-top: 1rem !important;
    font-style: italic;
}

.jubi-firma {
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a4238;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.jubi-firma-line {
    display: block;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b49155, transparent);
    margin: 0 auto 0.75rem;
}
.jubi-firma-bold {
    font-weight: 700;
    color: #2c2416;
    margin-top: 0.25rem;
}

.jubi-logo-wrap {
    margin-top: 1.35rem;
    text-align: center;
}
.jubi-logo {
    max-width: min(300px, 78%);
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

@media (max-width: 768px) {
    .jubi-overlay {
        padding: max(20px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom));
    }
    .jubi-card {
        width: 100%;
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px);
        padding: 1.35rem 1rem 1rem;
    }
    .jubi-rubrica {
        letter-spacing: 0.1em;
        font-size: 0.68rem;
    }
    .jubi-titulo {
        font-size: clamp(1.35rem, 6.2vw, 1.75rem);
    }
    .jubi-cuerpo {
        font-size: clamp(0.99rem, 3.7vw, 1.08rem);
        line-height: 1.62;
        text-align: left;
    }
    .jubi-cierre {
        font-size: clamp(1.1rem, 4.8vw, 1.25rem);
    }
    .jubi-logo {
        max-width: min(260px, 85%);
    }
}

/* ──────────────────────────────────────────────────────
   Popup Día de las Madres 2026 (landing)
   ────────────────────────────────────────────────────── */
.mama-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(46, 16, 36, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.mama-overlay.activo {
    opacity: 1;
    pointer-events: all;
}

.mama-card {
    position: relative;
    max-width: 760px;
    width: min(96vw, 760px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex-shrink: 0;
    margin: auto;
    padding: 2.6rem 2.4rem 2.1rem;
    border-radius: 6px;
    background:
        linear-gradient(165deg, #fff8fb 0%, #fde7ef 45%, #f9d3e0 100%);
    border: 1px solid rgba(199, 108, 142, 0.55);
    box-shadow:
        0 0 0 3px rgba(232, 152, 184, 0.4),
        0 24px 64px rgba(40, 8, 28, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transform: scale(0.98);
    transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
    font-family: Georgia, 'Times New Roman', serif;
    color: #4a1f33;
}
.mama-overlay.activo .mama-card {
    transform: scale(1);
}

.mama-cerrar {
    position: sticky;
    top: 0;
    float: right;
    width: 36px;
    height: 36px;
    margin: -0.5rem 0 0.5rem auto;
    border: none;
    border-radius: 50%;
    background: rgba(74, 31, 51, 0.1);
    color: #7a3a55;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 3;
}
.mama-cerrar:hover {
    background: rgba(74, 31, 51, 0.18);
    color: #2e0f24;
}

.mama-festivo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 6px;
}
.mama-petalo {
    position: absolute;
    top: -12%;
    font-size: 1.05rem;
    opacity: 0.9;
    animation: mamaCaerPetalo linear infinite;
    filter: drop-shadow(0 0 6px rgba(232, 152, 184, 0.55));
}
.mama-petalo:nth-child(1) { left: 6%; animation-duration: 6.2s; animation-delay: 0s; }
.mama-petalo:nth-child(2) { left: 18%; animation-duration: 5.4s; animation-delay: 1.1s; }
.mama-petalo:nth-child(3) { left: 30%; animation-duration: 6.8s; animation-delay: 0.5s; }
.mama-petalo:nth-child(4) { left: 44%; animation-duration: 5.8s; animation-delay: 1.6s; }
.mama-petalo:nth-child(5) { left: 58%; animation-duration: 7.0s; animation-delay: 0.3s; }
.mama-petalo:nth-child(6) { left: 72%; animation-duration: 5.6s; animation-delay: 1.3s; }
.mama-petalo:nth-child(7) { left: 84%; animation-duration: 6.4s; animation-delay: 0.8s; }
.mama-petalo:nth-child(8) { left: 94%; animation-duration: 7.2s; animation-delay: 0.1s; }

.mama-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 9px;
    pointer-events: none;
    box-shadow: 0 0 24px rgba(217, 115, 158, 0.35);
    animation: mamaBrilloMarco 2.6s ease-in-out infinite;
}
@keyframes mamaCaerPetalo {
    0% { transform: translateY(-10%) rotate(0deg); opacity: 0; }
    12% { opacity: 0.95; }
    100% { transform: translateY(115vh) rotate(360deg); opacity: 0; }
}
@keyframes mamaBrilloMarco {
    0%, 100% { box-shadow: 0 0 18px rgba(217, 115, 158, 0.3); }
    50% { box-shadow: 0 0 30px rgba(217, 115, 158, 0.55); }
}

.mama-ornamento {
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.6em;
    color: #c76c8e;
    margin-bottom: 0.45rem;
    opacity: 0.95;
}

.mama-rubrica {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: #8a3957;
    margin-bottom: 0.65rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

.mama-titulo {
    font-size: clamp(1.85rem, 4.8vw, 2.35rem);
    font-weight: 400;
    text-align: center;
    color: #2e0f24;
    margin-bottom: 1.15rem;
    line-height: 1.25;
    font-style: italic;
}

.mama-cuerpo {
    font-size: clamp(1.05rem, 2.2vw, 1.18rem);
    line-height: 1.74;
    text-align: justify;
    hyphens: auto;
}
.mama-cuerpo p {
    margin-bottom: 0.9rem;
}
.mama-cuerpo p:last-of-type {
    margin-bottom: 0;
}
.mama-cierre {
    text-align: center !important;
    font-size: clamp(1.25rem, 2.8vw, 1.45rem);
    font-weight: 700;
    color: #b53b73;
    margin-top: 1rem !important;
    font-style: italic;
}

.mama-firma {
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #5a2a40;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.mama-firma-line {
    display: block;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c76c8e, transparent);
    margin: 0 auto 0.75rem;
}
.mama-firma-bold {
    font-weight: 700;
    color: #2e0f24;
    margin-top: 0.25rem;
}

.mama-logo-wrap {
    margin-top: 1.35rem;
    text-align: center;
}
.mama-logo {
    max-width: min(300px, 78%);
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

@media (max-width: 768px) {
    .mama-overlay {
        padding: max(20px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom));
    }
    .mama-card {
        width: 100%;
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px);
        padding: 1.35rem 1rem 1rem;
    }
    .mama-rubrica {
        letter-spacing: 0.1em;
        font-size: 0.68rem;
    }
    .mama-titulo {
        font-size: clamp(1.4rem, 6.4vw, 1.85rem);
    }
    .mama-cuerpo {
        font-size: clamp(0.99rem, 3.7vw, 1.08rem);
        line-height: 1.62;
        text-align: left;
    }
    .mama-cierre {
        font-size: clamp(1.1rem, 4.8vw, 1.25rem);
    }
    .mama-logo {
        max-width: min(260px, 85%);
    }
}

/* ── Popup capacitación EssilorLuxottica ── */
.essilor-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.72);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.essilor-overlay.activo {
    opacity: 1;
    visibility: visible;
}
.essilor-card {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 48px);
    overflow-y: auto;
    margin: auto;
    background: #f7f4ef;
    border-radius: 16px;
    padding: 1.5rem 1.35rem 1.25rem;
    transform: scale(0.96);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 93, 170, 0.18);
}
.essilor-overlay.activo .essilor-card {
    transform: scale(1);
}
.essilor-cerrar {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}
.essilor-cerrar:hover {
    background: #005daa;
}
.essilor-rubrica {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #005daa;
}
.essilor-titulo {
    margin: 0 0 14px;
    clear: both;
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.essilor-flyer-wrap {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.essilor-flyer {
    display: block;
    width: 100%;
    height: auto;
}
.essilor-aviso {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f5b915;
    color: #1e293b;
}
.essilor-aviso p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 500;
}
.essilor-aviso a {
    color: #003d73;
    font-weight: 800;
    text-decoration: underline;
}
.essilor-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.essilor-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    background: #128c7e;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
}
.essilor-whatsapp:hover {
    background: #0d6e63;
}
.essilor-omitir {
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.essilor-meta {
    margin: 12px 0 0;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 768px) {
    .essilor-overlay {
        padding: max(16px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom));
    }
    .essilor-card {
        width: 100%;
        padding: 1.15rem 0.9rem 1rem;
    }
    .essilor-aviso p {
        font-size: 0.88rem;
    }
    .essilor-acciones {
        flex-direction: column;
    }
    .essilor-whatsapp,
    .essilor-omitir {
        width: 100%;
        text-align: center;
    }
}

