vamos a hacer una prubea parniformes@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Outfit:wght@100..900&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & THEMES
   ========================================================================== */

:root {
    /* Day Theme (Light) Colors */
    --bg-primary: #fbfbfd;
    --bg-secondary: #f0f3fa;
    --text-primary: #2d3142;
    --text-secondary: #5c627a;
    --card-bg: rgba(255, 255, 255, 0.94);
    --card-border: rgba(226, 232, 240, 0.8);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);

    /* Global Brand Accents (Jardín Psicopedagógico Bebés Disney - Castillo Real Palette) */
    --primary: hsl(224, 85%, 42%);
    /* Azul Zafiro Castillo Real (Almenas) */
    --primary-hover: hsl(224, 85%, 34%);
    --secondary: hsl(275, 75%, 52%);
    /* Púrpura Mágico Ventana */
    --secondary-hover: hsl(275, 75%, 44%);
    --yellow: hsl(38, 98%, 50%);
    /* Amarillo Oro Sol Sillar */
    --wood: hsl(26, 78%, 38%);
    /* Madera Roble Portón Medieval */
    --sky: hsl(199, 89%, 60%);
    /* Celeste Cielo de Cuento */
    --green: hsl(152, 68%, 42%);
    /* Verde Esperanza & PNL */
    --purple: hsl(268, 65%, 55%);
    /* Creative Purple */

    /* Fonts */
    --font-title: 'Fredoka', 'Quicksand', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Layout */
    --header-height: 72px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* Safety Seals Colors */
    --safe-green: #2ec4b6;
    --hero-overlay-bg: rgba(251, 251, 253, 0.78);
    --hero-content-bg: rgba(251, 251, 253, 0.45);
}

[data-theme="dark"] {
    /* Night Theme (Dark) Colors */
    --bg-primary: #0b0c10;
    --bg-secondary: #1f2833;
    --text-primary: #e5f1f4;
    --text-secondary: #95a5a6;
    --card-bg: rgba(30, 41, 59, 0.94);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --hero-overlay-bg: rgba(11, 12, 16, 0.82);
    --hero-content-bg: rgba(11, 12, 16, 0.45);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 100vw;
    overflow-x: clip;
    transition: var(--transition);
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Seguridad extra: el texto del sitio no se puede seleccionar. Se
   reactiva en campos de formulario (comportamiento nativo, no se ve
   afectado por lo de arriba) y en los datos de contacto del pie de
   página, para que los padres puedan copiar el teléfono/correo. */
input,
textarea,
[contenteditable="true"],
.footer-info a,
.contact-details,
.contact-details * {
    -webkit-user-select: text;
    user-select: text;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    color: var(--text-primary);
    font-weight: 600;
}

.font-title {
    font-family: var(--font-title);
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

li {
    list-style: none;
}

button,
input,
select {
    font-family: inherit;
    outline: none;
    border: none;
}

/* Gradients and Text Accents */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent {
    color: var(--secondary);
}

.accent-blue {
    color: var(--primary);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 60%, transparent 100%);
    border-bottom: none;
    box-shadow: none;
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .main-header {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.82) 60%, transparent 100%);
}

.main-header.scrolled {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.header-container {
    max-width: 1420px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
    text-decoration: none;
}

.main-header .logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Sombras en el texto del menú cuando la cabecera está sobre el vídeo */
.main-header:not(.scrolled) .nav-link,
.main-header:not(.scrolled) .logo-text {
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8), 0 0 2px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .main-header:not(.scrolled) .nav-link,
[data-theme="dark"] .main-header:not(.scrolled) .logo-text {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 1;
}

.nav-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.35rem 0.45rem;
    position: relative;
    white-space: nowrap;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link-icon {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.control-btn:hover {
    transform: scale(1.08);
    background-color: var(--primary);
    color: white;
}

.lang-text {
    font-size: 0.8rem;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 1.05rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: var(--primary);
    color: white;
}

/* Breakpoint para pantallas medianas (laptops / tablets horizontales) */
@media (max-width: 1250px) {
    .header-container {
        padding: 0 0.8rem;
        gap: 0.4rem;
    }

    .logo-area {
        margin-right: 0.3rem;
        gap: 0.5rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .main-header .logo-img {
        height: 42px;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-link {
        font-size: 0.77rem;
        padding: 0.3rem 0.3rem;
    }
}

/* Breakpoint para colapsar en menú hamburguesa */
@media (max-width: 1100px) {
    .menu-toggle {
        display: flex !important;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--header-height) + 6px);
        right: 12px;
        left: auto;
        width: clamp(220px, 52vw, 270px);
        max-height: calc(82vh - var(--header-height));
        overflow-y: auto;
        background: var(--bg-primary);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid var(--card-border);
        border-radius: 18px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
        flex-direction: column;
        align-items: stretch;
        padding: 0.7rem;
        gap: 0.35rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform-origin: top right;
        transform: scale(0.92) translateY(-8px);
        transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
        z-index: 1001;
    }

    .nav-menu.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: scale(1) translateY(0) !important;
        display: flex !important;
    }

    .nav-menu .nav-link {
        font-size: 0.88rem;
        font-weight: 600;
        padding: 0.58rem 0.85rem;
        border-radius: 10px;
        background: var(--bg-secondary);
        color: var(--text-primary);
        display: flex;
        align-items: center;
        text-shadow: none !important;
        gap: 0.5rem;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: linear-gradient(135deg, rgba(234, 115, 141, 0.15), rgba(115, 143, 234, 0.15));
        color: var(--secondary);
    }
}

/* ==========================================================================
   BUTTONS & CARDS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(234, 115, 141, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(234, 115, 141, 0.45);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

.card-sub {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
}

/* ==========================================================================
   GRID SYSTEM & LAYOUT
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section.hero-stacked {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 0;
    min-height: auto;
    overflow: hidden;
    position: relative;
}

.hero-video-wrapper {
    width: 100%;
    height: 88vh;
    /* Altura de página completa (casi 90vh) */
    min-height: 480px;
    max-height: 820px;
    overflow: hidden;
    position: relative;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Gradiente muy pequeño en la parte inferior para no tapar los detalles del vídeo */
.hero-video-wrapper::after {
    display: block;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Gradiente muy pequeño/sutil */
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
    pointer-events: none;
    z-index: 2;
    transition: var(--transition);
}

.hero-video-pure {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none;
    /* Video nativo en 16:9 exacto */
    transform-origin: center;
}

.hero-content-wrapper {
    background-color: var(--hero-content-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.2rem 1.5rem;
    border-top: 1px solid var(--card-border);
    transition: var(--transition);
}

.hero-content-stacked {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.hero-content-stacked .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-primary);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hero-content-stacked .hero-title {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-content-stacked .hero-text {
    font-size: 1.45rem;
    font-style: italic;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-stacked .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}



.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--bg-secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1px solid var(--card-border);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Image Stack decoration */
.hero-media {
    position: relative;
    height: 450px;
    width: 100%;
}

.image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.stack-img {
    position: absolute;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: var(--transition);
}

.img-1 {
    width: 70%;
    height: 70%;
    top: 5%;
    left: 5%;
    z-index: 2;
}

.img-2 {
    width: 65%;
    height: 65%;
    bottom: 5%;
    right: 5%;
    z-index: 3;
}

.img-1:hover,
.img-2:hover {
    transform: scale(1.05);
    z-index: 10;
}

.decorative-blob {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(234, 115, 141, 0.15) 0%, rgba(98, 190, 232, 0.15) 100%);
    border-radius: 50% 30% 70% 40% / 50% 60% 30% 60%;
    z-index: 1;
    animation: blobAnimate 12s ease-in-out infinite;
}

@keyframes blobAnimate {

    0%,
    100% {
        border-radius: 50% 30% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        border-radius: 30% 60% 40% 70% / 60% 30% 60% 30%;
    }
}

/* ==========================================================================
   PEI SECTION (DIMENSIONES DEL DESARROLLO)
   ========================================================================== */

.pei-section .container {
    max-width: 1280px;
}

.pei-section #peiGrid,
.pei-section .grid-5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
}

.pei-card,
.PAI-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    box-shadow: var(--card-shadow);
    padding: 1.45rem 1.05rem 1.35rem 1.05rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Subtle top color strip indicator for each dimension */
.pei-card::before,
.PAI-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.85;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.pei-card:nth-child(1)::before,
.PAI-card:nth-child(1)::before {
    background: var(--primary);
}

.pei-card:nth-child(2)::before,
.PAI-card:nth-child(2)::before {
    background: var(--secondary);
}

.pei-card:nth-child(3)::before,
.PAI-card:nth-child(3)::before {
    background: var(--yellow);
}

.pei-card:nth-child(4)::before,
.PAI-card:nth-child(4)::before {
    background: var(--green);
}

.pei-card:nth-child(5)::before,
.PAI-card:nth-child(5)::before {
    background: var(--purple);
}

.pei-card:hover,
.PAI-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.pei-card:hover::before,
.PAI-card:hover::before {
    height: 6px;
    opacity: 1;
}

.pei-card .card-icon,
.PAI-card .card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: white;
    margin: 0 auto 0.85rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pei-card:hover .card-icon,
.PAI-card:hover .card-icon {
    transform: scale(1.12) rotate(6deg);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1.5rem auto;
}

.icon-blue {
    background-color: var(--primary);
}

.icon-pink {
    background-color: var(--secondary);
}

.icon-yellow {
    background-color: var(--yellow);
}

.icon-green {
    background-color: var(--green);
}

.icon-purple {
    background-color: var(--purple);
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pei-card .card-title,
.PAI-card .card-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.65rem;
    min-height: 2.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    hyphens: none;
    word-break: normal;
}

.pei-card .card-text,
.PAI-card .card-text {
    font-size: 0.81rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

/* Responsive Grid for PEI Section */
@media (max-width: 1100px) and (min-width: 768px) {

    .pei-section #peiGrid,
    .pei-section .grid-5 {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }

    .pei-section #peiGrid> :nth-child(1),
    .pei-section #peiGrid> :nth-child(2),
    .pei-section #peiGrid> :nth-child(3) {
        grid-column: span 2;
    }

    .pei-section #peiGrid> :nth-child(4) {
        grid-column: 2 / span 2;
    }

    .pei-section #peiGrid> :nth-child(5) {
        grid-column: 4 / span 2;
    }
}

@media (max-width: 767px) and (min-width: 520px) {

    .pei-section #peiGrid,
    .pei-section .grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.95rem;
    }

    .pei-section #peiGrid> :nth-child(5) {
        grid-column: 1 / -1;
        max-width: 360px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 519px) {

    .pei-section #peiGrid,
    .pei-section .grid-5 {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .pei-card,
    .PAI-card {
        padding: 1.3rem 1.1rem;
    }

    .pei-card .card-title,
    .PAI-card .card-title {
        min-height: auto;
    }
}

/* ==========================================================================
   CIRCULARES Y DOCUMENTOS OFICIALES SECTION
   ========================================================================== */

.circulares-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
}

.doc-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    box-shadow: var(--card-shadow);
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.09);
    border-color: rgba(98, 190, 232, 0.4);
}

.doc-card .card-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.45rem;
    margin: 0 auto 1.2rem auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.doc-card:hover .card-icon {
    transform: scale(1.12) rotate(6deg);
}

.doc-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.doc-card .card-text {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.2rem;
}

.doc-card .btn {
    width: 100%;
    border-radius: 14px;
    padding: 0.75rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: var(--transition);
}

@media (max-width: 991px) and (min-width: 641px) {
    .circulares-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 780px;
    }

    .circulares-grid> :nth-child(3) {
        grid-column: 1 / -1;
        max-width: 380px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .circulares-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .doc-card {
        padding: 1.6rem 1.2rem;
    }
}

/* ==========================================================================
   MENU SECTION
   ========================================================================== */

/* ==========================================================================
   CINEMATIC GALLERY SECTION
   ========================================================================== */

:root {
    --mr-gold: hsl(45, 95%, 55%);
    --mr-gold-soft: hsl(45, 95%, 68%);
}

.gallery-section {
    position: relative;
    overflow: hidden;
}

/* ---------- Marquee tag & floating sparkles ---------- */

.gallery-marquee-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.3rem;
    margin-bottom: 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #6b4a06;
    background: linear-gradient(135deg, var(--mr-gold-soft), var(--mr-gold));
    box-shadow: 0 6px 18px rgba(234, 179, 8, 0.35);
}

.mr-gallery-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.mr-gallery-sparkles i {
    position: absolute;
    color: var(--mr-gold);
    opacity: 0.55;
    animation: mrSparkleFloat 6s ease-in-out infinite;
}

.mr-gallery-sparkles i:nth-child(1) {
    top: 6%;
    left: 6%;
    font-size: 1.1rem;
    animation-delay: 0s;
}

.mr-gallery-sparkles i:nth-child(2) {
    top: 18%;
    right: 9%;
    font-size: 0.9rem;
    animation-delay: -2s;
    color: var(--secondary);
}

.mr-gallery-sparkles i:nth-child(3) {
    bottom: 22%;
    left: 12%;
    font-size: 1.3rem;
    animation-delay: -4s;
}

.mr-gallery-sparkles i:nth-child(4) {
    bottom: 10%;
    right: 15%;
    font-size: 1rem;
    animation-delay: -1s;
    color: var(--primary);
}

@keyframes mrSparkleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.35;
    }

    50% {
        transform: translateY(-14px) rotate(15deg);
        opacity: 0.9;
    }
}

/* ---------- Galería Mágica & Pantalla del Álbum — Estilo Castillo Bebés Disney ---------- */

.gallery-section {
    position: relative;
    padding: 5.5rem 0 6rem;
    overflow: hidden;
}

.gallery-marquee-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(37, 99, 235, 0.15));
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.gallery-marquee-tag i {
    color: #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

/* Selector de álbumes del castillo (Pestañas) */
.gallery-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.gallery-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.6rem 0.9rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 60px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .gallery-tabs {
    background: rgba(15, 23, 42, 0.68);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.folder-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    background: transparent;
    border: 1.5px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.folder-item i {
    font-size: 1.05rem;
    color: #f59e0b;
    transition: transform 0.35s ease, color 0.35s ease;
}

.folder-item:hover {
    color: var(--text-primary);
    background: rgba(245, 158, 11, 0.12);
    transform: translateY(-2px);
}

.folder-item.active {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 0 0 2px rgba(245, 158, 11, 0.35) !important;
    transform: translateY(-3px) scale(1.02);
}

.folder-item.active i {
    color: #fde047 !important;
    filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.85));
    transform: scale(1.15);
}

/* ==========================================================================
   PANTALLA DEL CASTILLO (VISOR PRINCIPAL DEL ÁLBUM)
   ========================================================================== */
.gallery-spotlight.gallery-castle-screen {
    position: relative;
    height: 64vh;
    min-height: 440px;
    max-height: 600px;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 3.5px solid #f59e0b;
    background: #1e293b;
    box-shadow:
        0 25px 60px -15px rgba(15, 23, 42, 0.45),
        0 0 35px rgba(245, 158, 11, 0.28),
        inset 0 0 30px rgba(0, 0, 0, 0.4);
    isolation: isolate;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.gallery-spotlight.gallery-castle-screen:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px #2563eb, 0 0 40px rgba(245, 158, 11, 0.5);
}

.spotlight-slides {
    position: absolute;
    inset: 0;
    cursor: zoom-in;
}

.spotlight-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.spotlight-slide.active {
    opacity: 1;
    transform: scale(1);
    animation: mrKenBurns 10s ease-in-out forwards;
}

.spotlight-slide-blur-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.65);
    transform: scale(1.15);
    opacity: 0.5;
}

.spotlight-slide-fg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes mrKenBurns {
    0% {
        transform: scale(1.04) translate(0, 0);
    }

    100% {
        transform: scale(1.01) translate(-0.6%, -0.6%);
    }
}

.gallery-castle-screen .spotlight-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
            rgba(15, 23, 42, 0.0) 0%,
            rgba(15, 23, 42, 0.15) 55%,
            rgba(15, 23, 42, 0.45) 100%),
        linear-gradient(to top,
            rgba(15, 23, 42, 0.55) 0%,
            rgba(15, 23, 42, 0.10) 30%,
            rgba(15, 23, 42, 0.0) 50%,
            rgba(15, 23, 42, 0.30) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Botones de navegación lateral en la pantalla */
.screen-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(245, 158, 11, 0.75);
    color: #fde047;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.screen-nav-btn:hover {
    background: #f59e0b;
    color: #0f172a;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
}

.screen-nav-prev {
    left: 1.5rem;
}

.screen-nav-next {
    right: 1.5rem;
}

/* Barra superior de la pantalla */
.screen-top-bar {
    position: absolute;
    top: 1.5rem;
    left: 1.8rem;
    right: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

.screen-top-bar>* {
    pointer-events: auto;
}

.screen-top-bar .spotlight-badge {
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(245, 158, 11, 0.65);
    color: #fef08a;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.screen-top-bar .spotlight-badge i {
    color: #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
}

.screen-photo-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.screen-photo-counter i {
    color: #38bdf8;
}

/* Pie de foto y controles inferiores de la pantalla */
.gallery-castle-screen .spotlight-caption {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 1.8rem;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.6rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.screen-caption-text {
    max-width: 78%;
}

.gallery-castle-screen .spotlight-title {
    font-size: clamp(1.3rem, 2.8vw, 2.1rem);
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.spotlight-subtitle {
    font-size: 0.95rem;
    color: #fde047;
    margin: 0;
    font-weight: 600;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Botón de Zoom / Pantalla completa */
.screen-expand-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(245, 158, 11, 0.75);
    color: #fef08a;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.35s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.screen-expand-btn:hover {
    background: #f59e0b;
    color: #0f172a;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.85);
}

/* Indicadores de fotos (Dots) en la barra superior */
.gallery-castle-screen .spotlight-dots {
    position: absolute;
    top: 1.8rem;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-castle-screen .spotlight-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.35s ease;
}

.gallery-castle-screen .spotlight-dot.active {
    width: 26px;
    border-radius: 12px;
    background: #f59e0b;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.85);
}

/* ==========================================================================
   PANEL Y GRILLA DE FOTOS DEL ÁLBUM
   ========================================================================== */
.photos-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--card-bg);
    border: 2px solid rgba(245, 158, 11, 0.28);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.08);
    padding: 2.2rem;
}

.photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1.5px solid rgba(245, 158, 11, 0.2);
    padding-bottom: 1.2rem;
}

.active-folder-path {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.active-folder-path i {
    color: #f59e0b;
}

.photos-header-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.photos-instruction-hint {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.photos-instruction-hint i {
    color: #2563eb;
}

.sync-badge {
    padding: 0.35rem 0.9rem;
    background-color: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

[data-theme="dark"] .sync-badge {
    background-color: rgba(37, 99, 235, 0.22);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    grid-auto-flow: dense;
    gap: 1.3rem;
}

.photo-card {
    border-radius: 20px;
    overflow: hidden;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
    border: 2.5px solid transparent;
    position: relative;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    animation: mrPhotoReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

@keyframes mrPhotoReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.photo-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #f59e0b;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(245, 158, 11, 0.18);
    z-index: 2;
}

/* Tarjeta activa proyectándose en la pantalla superior */
.photo-card.is-active-screen {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4), 0 16px 30px rgba(245, 158, 11, 0.35) !important;
    transform: translateY(-6px) scale(1.03) !important;
    z-index: 3;
}

.photo-card.is-active-screen::after {
    content: "En pantalla";
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
    pointer-events: none;
}

.photo-card video,
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.1) 60%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay-view-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fde047;
    background: rgba(15, 23, 42, 0.75);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.photo-overlay-zoom-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.25s ease, background 0.25s ease;
}

.photo-overlay-zoom-icon:hover {
    background: #f59e0b;
    color: #0f172a;
    transform: scale(1.15);
}

/* Ajustes Responsive para Pantalla y Galería */
@media (max-width: 1024px) {
    .gallery-spotlight.gallery-castle-screen {
        height: 52vh;
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .gallery-spotlight.gallery-castle-screen {
        height: 380px;
        min-height: 320px;
        border-radius: 24px;
        border-width: 2.5px;
        margin-bottom: 2rem;
    }

    .screen-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .screen-nav-prev {
        left: 0.8rem;
    }

    .screen-nav-next {
        right: 0.8rem;
    }

    .screen-top-bar {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .screen-top-bar .spotlight-badge {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }

    .screen-photo-counter {
        padding: 0.35rem 0.8rem;
        font-size: 0.78rem;
    }

    .gallery-castle-screen .spotlight-caption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 0.85rem 1.1rem;
        border-radius: 16px;
    }

    .screen-caption-text {
        max-width: 82%;
    }

    .gallery-castle-screen .spotlight-title {
        font-size: 1.2rem;
    }

    .spotlight-subtitle {
        font-size: 0.82rem;
    }

    .gallery-castle-screen .spotlight-dots {
        top: 1.15rem;
        bottom: auto;
    }

    .photos-panel {
        padding: 1.3rem;
        border-radius: 24px;
    }

    .photos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    .photo-card {
        height: 160px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-spotlight.gallery-castle-screen {
        height: 310px;
        min-height: 270px;
    }

    .photos-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }

    .photo-card {
        height: 145px;
    }

    .photo-overlay-view-hint {
        display: none;
    }
}


/* ---------- Lightbox cinematográfico ---------- */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.gallery-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(20, 20, 25, 0.96) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(6px);
}

.lightbox-stage {
    position: relative;
    z-index: 1;
    max-width: min(88vw, 1000px);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.gallery-lightbox.open .lightbox-stage {
    transform: scale(1);
    opacity: 1;
}

.lightbox-frame {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
    background-position: center;
    background-size: cover;
    background-color: #111;
}

.lightbox-frame img,
.lightbox-frame video {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 14px;
}

.lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.9;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--secondary);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin: 0 1.5rem;
}

.lightbox-nav:hover {
    background: var(--mr-gold);
    color: #2d3142;
    transform: scale(1.1);
}

/* ==========================================================================
   ZONA DOCENTES SECTION
   ========================================================================== */

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
}

.panel-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary);
}

.drop-zone {
    border: 2px dashed var(--primary);
    border-radius: 15px;
    padding: 2.5rem 1rem;
    text-align: center;
    background-color: rgba(98, 190, 232, 0.03);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.drop-zone:hover {
    background-color: rgba(98, 190, 232, 0.08);
}

.drop-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.drop-text {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-preview-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-secondary);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--card-border);
}

.preview-filename {
    font-weight: 600;
    font-size: 0.9rem;
}

.remove-file-btn {
    background: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.1rem;
}

.console-log {
    background-color: #1e1e24;
    color: #abb2bf;
    padding: 1rem;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    height: 120px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #282c34;
}

.log-line {
    margin-bottom: 0.4rem;
}

.text-green {
    color: #98c379;
}

.text-yellow {
    color: #d19a66;
}

.db-visual-area {
    display: flex;
    flex-direction: column;
}

.db-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.db-table th,
.db-table td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.db-table th {
    font-weight: 700;
    color: var(--text-secondary);
}

/* ==========================================================================
   QR DEMO SECTION
   ========================================================================== */

.qr-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 850px;
    margin: 0 auto;
}

.qr-demo-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-box-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.qr-box-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.qr-code-interactive {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    background-color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--bg-secondary);
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.qr-code-interactive:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.qr-graphic {
    font-size: 8rem;
    color: #2d3142;
}

.qr-badge {
    position: absolute;
    bottom: -15px;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#giftQrCode .qr-badge {
    background-color: var(--secondary);
}

#reviewQrCode .qr-badge {
    background-color: var(--yellow);
    color: #2d3142;
}

.id-selection-panel {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
}

.review-prompt {
    margin-top: 2rem;
    font-weight: 700;
    color: var(--yellow);
}

/* ==========================================================================
   FOOTER AREA
   ========================================================================== */

.main-footer {
    background-color: #1a1e29;
    color: #abb2bf;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 4rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1.5rem 0 2rem 0;
    max-width: 320px;
}

.security-seal {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 320px;
    cursor: pointer;
    transition: var(--transition);
}

.security-seal:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.seal-icon {
    font-size: 2rem;
    color: var(--safe-green);
}

.seal-text {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

.seal-text strong {
    color: white;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.footer-title {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 1.5rem;
}

.contact-details li {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-details i {
    margin-top: 0.2rem;
    color: var(--primary);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding: 2rem 2rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: white;
}

.text-white {
    color: white;
}

/* ==========================================================================
   SIMULATED CHATBOT NOVA (FLOATING)
   ========================================================================== */

.chatbot-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.chatbot-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(234, 115, 141, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.chatbot-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
}

.pulse-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background-color: var(--safe-green);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    height: 450px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    display: none;
    /* Controlled by JS */
}

.chat-window.open {
    display: flex;
    animation: openWindow 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes openWindow {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar-img-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid white;
}

.agent-name-area {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-size: 0.95rem;
}

.agent-status {
    font-size: 0.7rem;
    opacity: 0.9;
}

.close-chat-btn {
    background: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-secondary);
}

.msg {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.msg-bot {
    background-color: var(--card-bg);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: var(--card-shadow);
}

.msg-user {
    background-color: var(--secondary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    background-color: var(--card-bg);
    border-top: 1px solid var(--card-border);
    gap: 0.8rem;
}

.chat-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.send-message-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.send-message-btn:hover {
    background-color: var(--secondary-hover);
}

/* ==========================================================================
   MODALS AREA
   ========================================================================== */

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    max-width: 550px;
    width: 90%;
    background-color: var(--bg-primary);
    padding: 2.5rem;
    animation: modalScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
    0% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    color: var(--secondary);
    transform: scale(1.15) rotate(90deg);
}

.modal-text-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.modal-text-content::-webkit-scrollbar {
    width: 6px;
}

.modal-text-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
}

.modal-text-content::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.gift-landing-simulation {
    text-align: center;
}

.gift-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(234, 115, 141, 0.15);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gift-heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.video-simulator-box {
    width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--card-border);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    gap: 0.8rem;
}

.play-icon-big {
    font-size: 3.5rem;
    color: var(--secondary);
    transition: var(--transition);
}

.video-overlay:hover .play-icon-big {
    transform: scale(1.1);
}

.simulated-video {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Simulated video playing animations */
.simulated-video.playing .pulse-animation-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: radarRing 3s ease-out infinite;
}

@keyframes radarRing {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.gift-letter-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.5;
    font-style: italic;
}

.social-share-area {
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
}

.social-share-area span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-share {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.share-whatsapp {
    background-color: #25d366;
}

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.max-w-md {
    max-width: 650px;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.8rem;
}

.modal-text-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-height: 350px;
    overflow-y: auto;
    text-align: justify;
    line-height: 1.6;
}

.modal-text-content p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   TRAYECTORIA SECTION (MISIÓN, VISIÓN, TRAYECTORIA & CALIDAD)
   ========================================================================== */

.trayectoria-section .container {
    max-width: 1280px;
}

.trayectoria-section.section-padding {
    padding: 2.8rem 0;
}

.trayectoria-section .section-header {
    margin-bottom: 2rem;
}

.trayectoria-section #trayectoriaGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    align-items: stretch;
}

.tray-card {
    text-align: left;
    height: 100%;
    padding: 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.tray-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Subtle top color strip indicator */
.tray-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.9;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: height 0.25s ease;
}

.tray-card:hover::before {
    height: 6px;
}

/* Card Specific Themes & Subtle Pastel Gradients */
.tray-card--mision::before {
    background: linear-gradient(90deg, #ff6b8b, #ff8fa3);
}

.tray-card--mision {
    background: linear-gradient(180deg, rgba(255, 107, 139, 0.05) 0%, var(--card-bg) 65%);
}

.tray-card--vision::before {
    background: linear-gradient(90deg, #3a86ff, #60a5fa);
}

.tray-card--vision {
    background: linear-gradient(180deg, rgba(58, 134, 255, 0.05) 0%, var(--card-bg) 65%);
}

.tray-card--trayectoria::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.tray-card--trayectoria {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, var(--card-bg) 65%);
}

.tray-card--calidad::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.tray-card--calidad {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--card-bg) 65%);
}

/* Header Row with Icon and Badge */
.tray-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.tray-card .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.tray-card-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.tray-card--mision .tray-card-badge {
    background: rgba(255, 107, 139, 0.12);
    color: #e63946;
    border: 1px solid rgba(255, 107, 139, 0.25);
}

.tray-card--vision .tray-card-badge {
    background: rgba(58, 134, 255, 0.12);
    color: #0077b6;
    border: 1px solid rgba(58, 134, 255, 0.25);
}

.tray-card--trayectoria .tray-card-badge {
    background: rgba(251, 191, 36, 0.15);
    color: #b45309;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tray-card--calidad .tray-card-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.tray-card .card-title {
    margin-bottom: 0.5rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.tray-card .card-text {
    line-height: 1.52;
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex: 1;
    margin: 0;
}

/* Responsive Tablets */
@media (max-width: 1024px) {
    .trayectoria-section #trayectoriaGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

/* Responsive Mobile */
@media (max-width: 640px) {
    .trayectoria-section.section-padding {
        padding: 2.2rem 0;
    }

    .trayectoria-section .section-header {
        margin-bottom: 1.4rem;
    }

    .trayectoria-section #trayectoriaGrid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tray-card {
        padding: 1.25rem 1.1rem;
    }
}

@media (max-width: 768px) {
    .trayectoria-section.section-padding {
        padding: 2.5rem 0;
    }

    .trayectoria-section .section-header {
        margin-bottom: 1.75rem;
    }

    .tray-card {
        padding: 1.25rem 1.5rem;
    }
}

/* ==========================================================================
   CRONOGRAMA SECTION (ACTIVITIES GRID - SIMILAR TO ORIGINAL SITE)
   ========================================================================== */

.crono-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.crono-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.crono-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.crono-card:hover .crono-img {
    transform: scale(1.08);
}

.crono-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.crono-card:nth-child(even) .crono-badge {
    background-color: var(--secondary);
}

.crono-card:nth-child(3n) .crono-badge {
    background-color: var(--yellow);
    color: #2d3142;
}

.crono-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.crono-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-primary);
}

.crono-card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* Video Hero Styles */
.video-container-hero {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: var(--transition);
    z-index: 2;
}

.video-container-hero:hover {
    transform: scale(1.03);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================================
   SERVICIOS SECTION
   ========================================================================== */

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.3rem 1rem;
    height: 100%;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
}

.service-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.service-card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.service-card-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Wiggle animation for WhatsApp */
@keyframes whatsapp-wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(8deg);
    }

    45% {
        transform: rotate(-4deg);
    }

    60% {
        transform: rotate(4deg);
    }

    75% {
        transform: rotate(-2deg);
    }

    90% {
        transform: rotate(2deg);
    }
}

.chatbot-bubble:hover {
    animation: whatsapp-wiggle 1s ease-in-out infinite;
    transform: scale(1.05);
}


/* ==========================================================================
   UBICACIÓN / MAPA SECTION
   ========================================================================== */

.location-section {
    background-color: transparent;
}

.map-container {
    position: relative;
    height: 420px;
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 8px solid var(--card-bg);
    background-color: var(--card-bg);
    transition: var(--transition);
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-tap-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 0 1.5rem 0;
    background: transparent;
    border: none;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background var(--transition);
}

.map-tap-overlay:hover,
.map-tap-overlay:focus-visible {
    background: rgba(0, 0, 0, 0.08);
}

.map-tap-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--card-border);
}

.map-tap-hint i {
    color: var(--primary);
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}

/* ---------- Modal: elegir Google Maps o Waze ---------- */

.map-choice-content {
    text-align: center;
}

.map-choice-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.map-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.share-gmaps {
    background-color: #4285f4;
}

.share-waze {
    background-color: #05c3de;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-text {
        margin: 0 auto 2rem auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .gallery-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .qr-demo-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}



@media (max-width: 768px) {
    .section-padding {
        padding: 2.8rem 0 !important;
    }

    .section-header {
        margin-bottom: 1.8rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
    }

    .section-subtitle {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
        padding: 0 0.4rem !important;
    }

    .container {
        padding: 0 1.15rem !important;
    }

    .header-container {
        padding: 0 0.75rem !important;
        gap: 0.35rem !important;
    }

    .logo-area {
        gap: 0.45rem !important;
        margin-right: 0.2rem !important;
    }

    .logo-text {
        font-size: 1.05rem !important;
    }

    .logo-img {
        height: 38px !important;
    }

    .control-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .menu-toggle {
        width: 36px !important;
        height: 36px !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    .grid-5 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.1rem !important;
    }

    .service-card {
        padding: 1.4rem 1.2rem !important;
    }

    .uniform-schedule-bar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
        width: 100% !important;
        margin: 0 auto 1.8rem auto !important;
        padding: 0 !important;
    }

    .uniform-schedule-item {
        width: 100% !important;
        padding: 0.55rem 0.3rem !important;
        border-radius: 12px !important;
        gap: 0.25rem !important;
    }

    .schedule-day-badge {
        font-size: 0.58rem !important;
        padding: 0.18rem 0.35rem !important;
        white-space: nowrap !important;
        letter-spacing: 0px !important;
        line-height: 1.15 !important;
    }

    .schedule-day-badge i {
        font-size: 0.55rem !important;
    }

    .schedule-uniform-name {
        font-size: 0.68rem !important;
        line-height: 1.15 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.15rem !important;
    }

    .schedule-uniform-name i {
        font-size: 0.75rem !important;
    }

    .uniforms-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .chat-window {
        width: 90vw;
        right: -15px;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 2.2rem 0 !important;
    }

    .section-header {
        margin-bottom: 1.4rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .logo-text {
        font-size: 0.95rem !important;
    }

    .logo-img {
        height: 34px !important;
    }

    .header-controls {
        gap: 0.3rem !important;
    }

    .control-btn {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ---------- Menú de Alimentación Infantil (Estructurado, Armonioso y Responsivo) ---------- */
.menu-main-container {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) 1.3fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

.menu-cloud-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--card-border);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.6rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
}

[data-theme="dark"] .menu-cloud-panel {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
}

.menu-panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}

.menu-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-panel-title {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.menu-selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.menu-selector-label-wrap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.selector-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.selector-label i {
    font-size: 1rem;
    color: var(--primary);
}

.menu-selector-group:nth-of-type(2) .selector-label i {
    color: var(--secondary);
}

.selector-helper-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 500;
}

.menu-pills {
    width: 100%;
}

.menu-pills-weeks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.55rem;
}

.menu-pills-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.45rem;
}

.menu-pill-btn {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.3rem;
    border-radius: 14px;
    border: 1.5px solid var(--card-border);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-family: var(--font-title);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-pill-btn:hover {
    transform: translateY(-2px);
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Active State for Week Selectors (Blue Accent) */
.menu-pill-btn.week-btn.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
    font-weight: 700;
}

/* Active State for Day Selectors (Pink Accent) */
.menu-pill-btn.day-btn.active {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #ffffff;
    border-color: #ec4899;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
    transform: translateY(-2px);
    font-weight: 700;
}

.menu-today-row {
    display: flex;
    justify-content: center;
    margin-top: 0.4rem;
}

.menu-today-reset-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.72rem 1.4rem;
    border-radius: 16px;
    border: 1.5px solid var(--card-border);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-title);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-today-reset-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.menu-display-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
}

.menu-item-box {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.8rem 2.2rem;
    border-radius: 28px;
    border: 1.5px solid var(--card-border);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 190px;
    height: 100%;
}

[data-theme="dark"] .menu-item-box {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
}

.menu-item-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(98, 190, 232, 0.5);
}

.menu-item-refrigerio:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.menu-item-almuerzo:hover {
    border-color: rgba(244, 63, 94, 0.5);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
}

.menu-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 1.1rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.tag-blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tag-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.menu-schedule-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
}

.menu-food-body {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
}

.menu-item-box .menu-food-content {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 600;
    margin: 0;
}

.menu-item-footer {
    margin-top: 0.8rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--card-border);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.menu-footer-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsividad Tablet y Mobile para el Menú */
@media (max-width: 992px) {
    .menu-main-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 680px;
    }

    .menu-cloud-panel {
        padding: 1.8rem 2rem;
    }

    .menu-display-grid {
        grid-template-rows: auto auto;
        gap: 1.3rem;
    }
}

@media (max-width: 580px) {
    .menu-main-container {
        gap: 1.25rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .menu-cloud-panel {
        padding: 1.3rem 1rem;
        border-radius: 20px;
        gap: 1.2rem;
        width: 100%;
        max-width: 100%;
    }

    .menu-panel-title {
        font-size: 1.15rem;
    }

    .menu-pills-weeks {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.35rem;
        width: 100%;
    }

    .menu-pills-weeks .menu-pill-btn {
        padding: 0.55rem 0.12rem;
        font-size: 0.78rem;
    }

    .menu-pills-days {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.25rem;
        width: 100%;
    }

    .menu-pills-days .menu-pill-btn {
        padding: 0.55rem 0.08rem;
        font-size: 0.69rem;
        letter-spacing: -0.2px;
    }

    .menu-item-box {
        padding: 1.3rem 1.15rem;
        border-radius: 20px;
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }

    .menu-item-box .menu-food-content {
        font-size: 1.05rem;
        line-height: 1.42;
    }

    .menu-schedule-tag {
        font-size: 0.76rem;
        padding: 0.25rem 0.6rem;
    }

    .menu-type-tag {
        font-size: 0.8rem;
        padding: 0.32rem 0.8rem;
    }

    .menu-footer-hint {
        font-size: 0.75rem;
    }
}

@media (max-width: 380px) {
    .menu-pills-weeks {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .menu-pills-days {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #25d366;
    animation: whatsapp-pulse 2s infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ---------- Mobile Safety and Responsive Alignments ---------- */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    position: relative;
    width: 100vw;
}

/* Ensure all images and videos are scale-safe */
img,
video,
iframe,
canvas {
    max-width: 100%;
}

/* Constrain video and background objects on small viewports */
@media (max-width: 768px) {

    /* Prevent the hero section content from overflowing or being shifted */
    .hero-section.hero-stacked {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .hero-video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: 55vh;
        /* Scaled down slightly for mobile to keep better spacing */
        min-height: auto;
    }

    /* Ensure the body and containers fit precisely in screen */
    .container {
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .main-header {
        max-width: 100% !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    .logo-text {
        font-size: 1.15rem !important;
        /* Slightly smaller for mobile logo text */
    }

    /* Force columns to 1fr to prevent inline grid properties from causing overflow */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .circulares-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Constrain the celestial background elements */
    .mr-celestial {
        max-width: 80px !important;
        max-height: 80px !important;
        top: 2% !important;
        right: 2% !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.8rem !important;
    }

    .logo-img {
        height: 40px !important;
    }

    .main-header .logo-img {
        height: 44px !important;
    }

    .logo-text {
        font-size: 1rem !important;
    }

    .control-btn {
        width: 32px !important;
    }
}

/* ==========================================================================
   CINEMATIC GALLERY SECTION
   ========================================================================== */

.gallery-section {
    position: relative;
    background-color: transparent;
}

/* Floating magical sparkles */
.mr-gallery-sparkles {
    position: absolute;
    top: 5%;
    right: 8%;
    display: flex;
    gap: 1.5rem;
    pointer-events: none;
}

.mr-gallery-sparkles i {
    font-size: 1.2rem;
    opacity: 0.25;
    animation: magicPulse 3s infinite ease-in-out;
}

.mr-gallery-sparkles i:nth-child(2) {
    animation-delay: 0.8s;
    color: var(--secondary);
}

.mr-gallery-sparkles i:nth-child(3) {
    animation-delay: 1.5s;
    color: var(--yellow);
}

.mr-gallery-sparkles i:nth-child(4) {
    animation-delay: 2.2s;
    color: var(--primary);
}

.gallery-marquee-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background-color: rgba(234, 115, 141, 0.12);
    border: 1px solid rgba(234, 115, 141, 0.25);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   SELECTOR MÁGICO DE ÁLBUMES DEL CASTILLO (CÁPSULA ENCANTADA)
   Diseño temático: Dock de cristal pulido con halo dorado del castillo,
   sin cinta de película ni perforaciones de video.
   ========================================================================== */
.gallery-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 5;
}

.gallery-tabs {
    position: relative;
    max-width: 860px;
    margin: 0 auto 2rem auto;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08),
        0 0 20px rgba(251, 191, 36, 0.2);
    overflow: visible;
    scrollbar-width: none;
    transition: all 0.3s ease;
}

.gallery-tabs::-webkit-scrollbar {
    display: none;
}

/* Eliminación total y garantizada de cinta de video y perforaciones */
.gallery-tabs::before,
.gallery-tabs::after {
    display: none !important;
    content: none !important;
}

[data-theme="dark"] .gallery-tabs {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(251, 191, 36, 0.25);
}

.folder-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.68rem 1.45rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    z-index: 3;
    font-family: var(--font-title);
    font-size: 0.96rem;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .folder-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

.folder-item i {
    font-size: 1.05rem;
    transition: transform 0.25s ease;
    color: #0284c7;
}

[data-theme="dark"] .folder-item i {
    color: #38bdf8;
}

.folder-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.96);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.18);
}

[data-theme="dark"] .folder-item:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fef08a;
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.folder-item.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: 1.2px solid rgba(254, 240, 138, 0.85) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45),
        0 0 14px rgba(254, 240, 138, 0.4) !important;
    transform: translateY(-2px) scale(1.02);
}

.folder-item.active i {
    color: #fef08a !important;
    filter: drop-shadow(0 0 5px rgba(254, 240, 138, 0.9)) !important;
}

/* Alternate folder colors for custom reel feel */
.folder-item:nth-child(2).active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(98, 190, 232, 0.4);
}

.folder-item:nth-child(3).active {
    background: linear-gradient(135deg, var(--purple), hsl(265, 60%, 45%));
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.folder-item:nth-child(4).active {
    background: linear-gradient(135deg, var(--green), hsl(145, 60%, 35%));
    border-color: var(--green);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.folder-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

/* Photos Display Panel */
.photos-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    border-radius: 28px;
    padding: 2.2rem;
    transition: var(--transition);
}

.photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed var(--card-border);
    padding-bottom: 1.2rem;
    margin-bottom: 1.8rem;
}

.active-folder-path {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-folder-path i {
    color: var(--secondary);
}

.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--safe-green);
    background-color: rgba(46, 196, 182, 0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.sync-badge i {
    animation: rotateSync 3s infinite linear;
}

@keyframes rotateSync {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Photos Grid & Photo Cards */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
}

.photo-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 4px solid var(--card-bg);
    background-color: var(--bg-secondary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.photo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(234, 115, 141, 0.25);
}

.photo-card:nth-child(even):hover {
    border-color: rgba(98, 190, 232, 0.25);
}

.photo-card .protected-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.photo-card:hover .protected-media {
    transform: scale(1.06);
}

/* Glassy Video Badge in the center */
.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.7rem;
    z-index: 5;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.photo-card:hover .video-badge {
    background-color: var(--secondary);
    border-color: var(--secondary);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(234, 115, 141, 0.4);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(234, 115, 141, 0.5) 0%, rgba(98, 190, 232, 0.15) 100%);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 6;
    transition: opacity 0.4s ease;
}

.photo-overlay i {
    font-size: 1.8rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-card:hover .photo-overlay i {
    transform: scale(1);
}

/* ==========================================================================
   CINEMATIC LIGHTBOX
   ========================================================================== */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 12, 16, 0.88);
    backdrop-filter: blur(16px);
    z-index: -1;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-close:hover {
    background-color: rgba(234, 115, 141, 0.8);
    border-color: var(--secondary);
    transform: rotate(90deg) scale(1.05);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(4px);
}

.lightbox-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 85%;
    max-height: 85vh;
    gap: 1.5rem;
    z-index: 5;
}

.lightbox-frame {
    background-color: #000;
    border: 6px solid #fff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* Opening scale transition */
.gallery-lightbox.open .lightbox-frame {
    animation: zoomLightboxFrame 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomLightboxFrame {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-frame img,
.lightbox-frame video {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
}

[data-theme="dark"] .lightbox-frame {
    border-color: #1e293b;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* Responsive constraints */
@media (max-width: 992px) {
    .gallery-spotlight {
        height: 380px;
        /* Incrementado de 320px */
    }

    .lightbox-nav {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }

    .lightbox-stage {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .gallery-spotlight {
        height: 300px;
        /* Incrementado de 240px */
        border-radius: 20px;
        border-width: 4px;
        margin-bottom: 2rem;
    }

    .spotlight-title {
        font-size: 1.3rem;
    }

    .spotlight-caption {
        padding: 2rem 1.2rem 1.2rem 1.2rem;
    }

    .gallery-tabs {
        padding: 0.9rem 0.6rem;
        border-radius: 50px;
        margin-bottom: 1.8rem;
        gap: 0.5rem;
    }

    .folder-item {
        padding: 0.45rem 0.95rem;
        border-radius: 50px;
        font-size: 0.8rem;
    }

    .folder-name {
        font-size: 0.8rem;
        text-align: center;
    }

    .photos-panel {
        padding: 1.1rem 0.9rem;
        border-radius: 20px;
    }

    .photos-header {
        margin-bottom: 1.2rem;
    }

    .active-folder-path {
        font-size: 0.95rem;
    }

    .photos-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    .photo-card {
        border-radius: 14px !important;
        border-width: 2px !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
        width: 100% !important;
        position: relative !important;
    }

    .photo-card .protected-media {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .video-badge {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .crono-img-wrapper {
        height: 180px !important;
        min-height: 180px !important;
        width: 100% !important;
    }

    .crono-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
}

/* ==========================================================================
   COOKIE CONSENT BANNER (NeoGen IA Compliance Suite)
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 720px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 1.1rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 9999;
    animation: slideUpCookie 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-banner.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
    pointer-events: none;
}

@keyframes slideUpCookie {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-icon {
    font-size: 1.6rem;
    color: var(--secondary);
    display: inline-flex;
    animation: rotateCookie 6s infinite ease-in-out;
}

@keyframes rotateCookie {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg) scale(1.1);
    }
}

.cookie-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.45;
    margin: 0;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

.cookie-btn-decline {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-btn-decline:hover {
    color: var(--text-primary);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(234, 115, 141, 0.25);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 15px rgba(234, 115, 141, 0.4);
}

/* Alternate glow for dark mode */
[data-theme="dark"] .cookie-banner {
    background: rgba(31, 40, 51, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        padding: 1.2rem;
        gap: 1rem;
        text-align: center;
        bottom: 15px;
    }

    .cookie-content {
        flex-direction: column;
        gap: 0.6rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
        gap: 1.2rem;
    }

    .cookie-btn-accept {
        flex: 1;
        max-width: 150px;
        text-align: center;
    }
}

/* ==========================================================================
   UNIFORMES INSTITUCIONALES SECTION (Compact, Subtle & Highly Polished)
   ========================================================================== */

.uniformes-section {
    position: relative;
    padding: 4.5rem 0;
    background: transparent;
}

.uniformes-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Barra de Horario Semanal Sutil */
.uniform-schedule-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto 2.5rem auto;
}

.uniform-schedule-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 0.85rem 1.2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.uniform-schedule-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.schedule-day-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    background: rgba(115, 143, 234, 0.15);
    color: var(--primary);
}

.schedule-day-badge.badge-sport {
    background: rgba(234, 115, 141, 0.15);
    color: var(--secondary);
}

.schedule-day-badge.badge-friday {
    background: rgba(255, 209, 102, 0.25);
    color: #b45309;
}

[data-theme="dark"] .schedule-day-badge.badge-friday {
    color: #fbbf24;
}

.schedule-uniform-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Grid de Tarjetas de Uniformes Compacto y Elegante */
.uniforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.uniform-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.uniform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(234, 115, 141, 0.4);
}

.uniform-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.uniform-card-badge.badge-sport {
    background: rgba(234, 115, 141, 0.9);
}

.uniform-card-badge.badge-guide {
    background: rgba(46, 196, 182, 0.9);
}

.uniform-img-wrap {
    position: relative;
    width: 100%;
    height: 255px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
}

[data-theme="dark"] .uniform-img-wrap {
    background: #1e293b;
}

.uniform-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.uniform-img.img-diario {
    object-position: center 35%;
}

.uniform-img.img-sudadera {
    object-position: center 40%;
}

.uniform-img.img-guia {
    object-position: center 18%;
    background: #0f172a;
}

.uniform-card:hover .uniform-img {
    transform: scale(1.06);
}

.uniform-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.uniform-img-wrap:hover .uniform-zoom-overlay {
    opacity: 1;
}

.zoom-btn {
    background: #ffffff;
    color: #1e293b;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transform: translateY(8px);
    transition: var(--transition);
}

.uniform-img-wrap:hover .zoom-btn {
    transform: translateY(0);
}

.uniform-card-content {
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.uniform-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.uniform-subtitle-tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    line-height: 1.4;
}

.uniform-details-list {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
}

.uniform-detail-item {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.uniform-detail-item strong {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 0.25rem;
    color: var(--text-primary);
}

.uniform-detail-item span {
    color: var(--text-secondary);
}

/* Banner de Viernes Particular Sutil */
.friday-special-banner {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(234, 115, 141, 0.08));
    border: 1px dashed rgba(255, 209, 102, 0.6);
    border-radius: 18px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    max-width: 860px;
    margin: 0 auto;
    transition: var(--transition);
}

.friday-special-banner:hover {
    transform: translateY(-2px);
    border-color: var(--secondary);
}

.friday-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow), var(--secondary));
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(234, 115, 141, 0.25);
}

.friday-content {
    flex: 1;
}

.friday-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.friday-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Modal Lightbox de Uniformes */
.uniform-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

.uniform-modal.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.uniform-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.uniform-modal-content {
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: modalPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.uniform-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: var(--transition);
}

.uniform-modal-close:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.uniform-modal-img-box {
    width: 100%;
    max-height: 56vh;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.uniform-modal-img-box img {
    max-width: 100%;
    max-height: 56vh;
    object-fit: contain;
    display: block;
}

.uniform-modal-info {
    padding: 1.4rem 1.8rem;
}

.uniform-modal-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.uniform-modal-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .uniforms-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .uniform-schedule-bar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        max-width: 100% !important;
    }

    .uniform-schedule-item {
        padding: 0.6rem 0.35rem !important;
    }

    .uniform-img-wrap {
        height: 240px;
    }

    .friday-special-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }

    .friday-title {
        justify-content: center;
    }
}




/* NeoGen IA Kids demo: logo cuadrado en el footer */
.footer-info .logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}


/* Mejoras de legibilidad sobre el fondo interactivo del castillo */
.section-title {
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .section-title {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.section-subtitle {
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .section-subtitle {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.trayectoria-section.section-padding {
    padding: 3.8rem 0;
}

.pei-section.section-padding {
    padding: 4.5rem 0;
}


/* ==========================================================================
   TIPOGRAFÍA Y ESTILO DE MARCA OFICIAL: BEBÉS DISNEY
   Fiel a las letras del Logo: tipografía burbuja suave (DynaPuff),
   amarillo sol radiante con borde azul del escudo y destello mágico sutil.
   ========================================================================== */

.logo-text.font-brand,
.font-brand {
    font-family: 'DynaPuff', 'Fredoka', cursive, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.52rem !important;
    letter-spacing: 0.35px !important;
    color: #FFD200 !important;
    text-shadow:
        -1.8px -1.8px 0 #0284c7,
        1.8px -1.8px 0 #0284c7,
        -1.8px 1.8px 0 #0284c7,
        1.8px 1.8px 0 #0284c7,
        0 3px 0 #0369a1,
        0 4px 8px rgba(2, 132, 199, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: transform 0.25s ease, filter 0.25s ease !important;
}

.logo-text.font-brand:hover,
.font-brand:hover {
    transform: scale(1.03) translateY(-1px) !important;
    filter: drop-shadow(0 0 10px rgba(255, 210, 0, 0.75)) !important;
}

/* Destello Mágico Sutil estilo Disney */
.magic-sparkle {
    display: inline-block !important;
    margin-left: 5px !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    filter: drop-shadow(0 0 5px #ffea00) drop-shadow(0 0 10px #38bdf8) !important;
    animation: magicGlow 3s ease-in-out infinite !important;
}

@keyframes magicGlow {

    0%,
    100% {
        transform: scale(0.9) rotate(0deg);
        opacity: 0.85;
        filter: drop-shadow(0 0 4px #ffea00);
    }

    50% {
        transform: scale(1.22) rotate(16deg);
        opacity: 1;
        filter: drop-shadow(0 0 10px #ffea00) drop-shadow(0 0 14px #38bdf8);
    }
}

/* Responsividad para móviles y pantallas pequeñas */
@media (max-width: 768px) {

    .logo-text.font-brand,
    .font-brand {
        font-size: 1.25rem !important;
    }

    .magic-sparkle {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {

    .logo-text.font-brand,
    .font-brand {
        font-size: 1.15rem !important;
    }

    .magic-sparkle {
        font-size: 0.85rem !important;
        margin-left: 3px !important;
    }
}

/* CABECERA MÁGICA BEBÉS DISNEY */

/* ==========================================================================
   CABECERA MÁGICA BEBÉS DISNEY (DynaPuff + Toque Mágico & Colores Disney)
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    border-bottom: 2px solid rgba(2, 132, 199, 0.22) !important;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    z-index: 1000;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, height 0.35s ease !important;
}

[data-theme="dark"] .main-header {
    background: rgba(10, 18, 38, 0.88) !important;
    border-bottom: 2px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(2, 132, 199, 0.15) !important;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 8px 30px rgba(2, 132, 199, 0.14) !important;
    border-bottom-color: rgba(255, 210, 0, 0.45) !important;
}

[data-theme="dark"] .main-header.scrolled {
    background: rgba(10, 18, 38, 0.97) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7) !important;
    border-bottom-color: rgba(254, 240, 138, 0.45) !important;
}

/* Enlaces de Navegación con Tipografía DynaPuff y Toque Mágico */
.nav-link {
    font-family: 'DynaPuff', 'Fredoka', cursive, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    color: #0369a1 !important;
    /* Azul Rey Disney */
    padding: 0.45rem 0.7rem !important;
    border-radius: 20px !important;
    position: relative !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9) !important;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

[data-theme="dark"] .nav-link {
    color: #e0f2fe !important;
    /* Blanco Azulado Estelar */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(56, 189, 248, 0.3) !important;
}

/* Hover Mágico: Rebote lúdico, halo dorado y destello */
.nav-link:hover {
    color: #FFD200 !important;
    /* Amarillo Sol Bebés Disney */
    background: rgba(2, 132, 199, 0.10) !important;
    transform: translateY(-2px) scale(1.05) !important;
    text-shadow:
        -1.2px -1.2px 0 #0284c7,
        1.2px -1.2px 0 #0284c7,
        -1.2px 1.2px 0 #0284c7,
        1.2px 1.2px 0 #0284c7,
        0 3px 6px rgba(2, 132, 199, 0.45) !important;
}

[data-theme="dark"] .nav-link:hover {
    color: #fef08a !important;
    background: rgba(56, 189, 248, 0.16) !important;
    transform: translateY(-2px) scale(1.05) !important;
    text-shadow:
        -1.2px -1.2px 0 #0369a1,
        1.2px -1.2px 0 #0369a1,
        -1.2px 1.2px 0 #0369a1,
        1.2px 1.2px 0 #0369a1,
        0 0 12px rgba(254, 240, 138, 0.8) !important;
}

/* Enlace Activo: Cápsula Mágica Disney */
.nav-link.active {
    color: #FFD200 !important;
    background: rgba(2, 132, 199, 0.14) !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.22), inset 0 0 0 1.5px rgba(255, 210, 0, 0.6) !important;
    text-shadow:
        -1.2px -1.2px 0 #0284c7,
        1.2px -1.2px 0 #0284c7,
        -1.2px 1.2px 0 #0284c7,
        1.2px 1.2px 0 #0284c7,
        0 3px 6px rgba(2, 132, 199, 0.4) !important;
}

[data-theme="dark"] .nav-link.active {
    color: #fef08a !important;
    background: rgba(56, 189, 248, 0.20) !important;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.35), inset 0 0 0 1.5px rgba(254, 240, 138, 0.7) !important;
    text-shadow:
        -1.2px -1.2px 0 #0369a1,
        1.2px -1.2px 0 #0369a1,
        -1.2px 1.2px 0 #0369a1,
        1.2px 1.2px 0 #0369a1,
        0 0 14px rgba(254, 240, 138, 0.85) !important;
}

/* Indicador de barra mágica debajo */
.nav-link::after {
    display: none !important;
    /* Reemplazado por la cápsula mágica */
}

/* Botón de acceso a Zona Docentes */
.nav-link-icon {
    font-size: 1.05rem !important;
    padding: 0.45rem 0.65rem !important;
}

/* Botones de Control (Idioma y Modo Día/Noche) */
.header-controls .control-btn {
    border: 1.5px solid rgba(2, 132, 199, 0.3) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12) !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

[data-theme="dark"] .header-controls .control-btn {
    border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.header-controls .control-btn:hover {
    transform: scale(1.12) rotate(5deg) !important;
    border-color: #FFD200 !important;
    box-shadow: 0 0 14px rgba(255, 210, 0, 0.6) !important;
}

.lang-text {
    font-family: 'DynaPuff', 'Fredoka', cursive, sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    color: #0284c7 !important;
}

[data-theme="dark"] .lang-text {
    color: #38bdf8 !important;
}

/* Adaptabilidad Responsiva para pantallas compactas */
@media (max-width: 1250px) {
    .nav-link {
        font-size: 0.82rem !important;
        padding: 0.35rem 0.45rem !important;
    }
}

/* AJUSTES RESPONSIVOS MÁGICOS (TABLET & MÓVIL) */

/* ==========================================================================
   AJUSTES RESPONSIVOS MÁGICOS (TABLET & MÓVIL) - BEBÉS DISNEY
   ========================================================================== */

/* 1. Botón Hamburguesa con Estilo Mágico */
.menu-toggle {
    border: 1.5px solid rgba(2, 132, 199, 0.35) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

[data-theme="dark"] .menu-toggle {
    border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
    background: rgba(15, 23, 42, 0.9) !important;
    color: #38bdf8 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.menu-toggle:hover {
    transform: scale(1.12) !important;
    border-color: #FFD200 !important;
    color: #FFD200 !important;
    box-shadow: 0 0 14px rgba(255, 210, 0, 0.6) !important;
}

/* 2. Breakpoint Tablet & Laptops compactas (<= 1180px) */
@media (max-width: 1180px) {
    .menu-toggle {
        display: flex !important;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed !important;
        top: calc(var(--header-height) + 8px) !important;
        right: 14px !important;
        left: auto !important;
        width: clamp(250px, 45vw, 310px) !important;
        max-height: calc(85vh - var(--header-height)) !important;
        overflow-y: auto !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(25px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
        border: 2px solid rgba(2, 132, 199, 0.25) !important;
        border-radius: 22px !important;
        box-shadow: 0 16px 40px rgba(2, 132, 199, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.85rem 0.75rem !important;
        gap: 0.45rem !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform-origin: top right;
        transform: scale(0.92) translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease !important;
        z-index: 1001 !important;
    }

    [data-theme="dark"] .nav-menu {
        background: rgba(10, 18, 38, 0.96) !important;
        border: 2px solid rgba(56, 189, 248, 0.35) !important;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 20px rgba(2, 132, 199, 0.2) !important;
    }

    .nav-menu.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: scale(1) translateY(0) !important;
        display: flex !important;
    }

    /* Enlaces dentro del cajón móvil / tablet */
    .nav-menu .nav-link {
        font-family: 'DynaPuff', 'Fredoka', cursive, sans-serif !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        padding: 0.65rem 1rem !important;
        border-radius: 14px !important;
        background: rgba(2, 132, 199, 0.06) !important;
        border: 1px solid rgba(2, 132, 199, 0.10) !important;
        color: #0369a1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-shadow: none !important;
        gap: 0.6rem !important;
        white-space: nowrap !important;
        width: 100% !important;
        transition: all 0.22s ease !important;
    }

    [data-theme="dark"] .nav-menu .nav-link {
        background: rgba(56, 189, 248, 0.08) !important;
        border: 1px solid rgba(56, 189, 248, 0.18) !important;
        color: #e0f2fe !important;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: linear-gradient(135deg, rgba(255, 210, 0, 0.22), rgba(2, 132, 199, 0.18)) !important;
        border-color: #FFD200 !important;
        color: #b45309 !important;
        /* Ámbar/dorado cálido en día */
        transform: translateX(4px) !important;
        box-shadow: 0 4px 14px rgba(255, 210, 0, 0.25) !important;
    }

    [data-theme="dark"] .nav-menu .nav-link:hover,
    [data-theme="dark"] .nav-menu .nav-link.active {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(254, 240, 138, 0.20)) !important;
        border-color: #fef08a !important;
        color: #fef08a !important;
        box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3) !important;
    }
}

/* 3. Ajustes específicos para Móviles (<= 480px y pantallas estrechas) */
@media (max-width: 480px) {
    .main-header {
        height: 60px !important;
        width: 100% !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }

    .header-container {
        padding: 0 0.5rem !important;
        gap: 0.25rem !important;
        height: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .logo-area {
        gap: 0.35rem !important;
        margin-right: 0 !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .main-header .logo-img {
        height: 34px !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }

    .logo-text.font-brand,
    .font-brand {
        font-size: 1.02rem !important;
        letter-spacing: -0.2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .magic-sparkle {
        font-size: 0.8rem !important;
        margin-left: 2px !important;
    }

    .header-controls {
        gap: 0.25rem !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-controls .control-btn,
    .menu-toggle {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.88rem !important;
        flex-shrink: 0 !important;
    }

    .lang-text {
        font-size: 0.72rem !important;
    }

    .nav-menu {
        top: calc(60px + 6px) !important;
        right: 8px !important;
        width: calc(100vw - 16px) !important;
        max-width: 310px !important;
    }
}

@media (max-width: 360px) {
    .header-container {
        padding: 0 0.35rem !important;
        gap: 0.2rem !important;
    }

    .main-header .logo-img {
        height: 30px !important;
    }

    .logo-text.font-brand,
    .font-brand {
        font-size: 0.9rem !important;
    }

    .magic-sparkle {
        font-size: 0.72rem !important;
    }

    .header-controls {
        gap: 0.2rem !important;
    }

    .header-controls .control-btn,
    .menu-toggle {
        width: 29px !important;
        height: 29px !important;
        font-size: 0.8rem !important;
    }
}

/* 4. Ajustes Mágicos Adicionales para Hero, Álbumes y Cookies en Móvil */
@media (max-width: 580px) {
    .hero-content-stacked .hero-text {
        font-size: 1.05rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.3rem !important;
        padding: 0 0.5rem !important;
        max-width: 100% !important;
    }

    .hero-content-stacked .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.65rem !important;
    }

    .hero-content-stacked .hero-buttons .btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.75rem 1.2rem !important;
    }

    .hero-content-wrapper {
        padding: 1.4rem 0.8rem !important;
    }
}

@media (max-width: 540px) {
    .gallery-tabs {
        border-radius: 20px !important;
        padding: 0.45rem 0.6rem !important;
        gap: 0.45rem !important;
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
    }

    .folder-item {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.84rem !important;
        border-radius: 16px !important;
        flex: 1 1 auto !important;
    }
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        width: calc(100% - 24px) !important;
        left: 12px !important;
        right: 12px !important;
        transform: none !important;
        padding: 1rem !important;
        bottom: 10px !important;
        border-radius: 16px !important;
    }

    .cookie-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }

    .cookie-buttons {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        gap: 0.8rem !important;
    }

    .cookie-btn-accept {
        flex: 1 !important;
        max-width: 160px !important;
    }
}


/* ==========================================================================
   PERFECCIONAMIENTO ESTÉTICO DE ALTA GAMA: BOTONES E ÍCONOS VIBRANTES & TARJETAS LIMPIAS
   ========================================================================== */

/* 1. HERO BUTTONS: AZUL REAL BRILLANTE Y CONOCE MÁS MAGISTRAL */
.btn-primary,
#btnAgendaTour,
.hero-buttons .btn-primary {
    background: linear-gradient(135deg, hsl(224, 88%, 52%), hsl(224, 85%, 38%)) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover,
#btnAgendaTour:hover,
.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, hsl(224, 92%, 58%), hsl(224, 88%, 42%)) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.6) !important;
}

.btn-secondary,
.hero-buttons .btn-secondary {
    background: #ffffff !important;
    color: hsl(224, 85%, 42%) !important;
    border: 2px solid hsl(224, 85%, 52%) !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-secondary:hover,
.hero-buttons .btn-secondary:hover {
    background: hsl(224, 85%, 42%) !important;
    color: #ffffff !important;
    border-color: hsl(224, 85%, 42%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35) !important;
}

/* 2. BOTONES EN MODO NOCHE (VIVOS, BRILLANTES Y CON COLOR GLOW) */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] #btnAgendaTour,
[data-theme="dark"] .hero-buttons .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.65), 0 6px 18px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .hero-buttons .btn-secondary {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #93c5fd !important;
    border: 2px solid #60a5fa !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.35), 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .hero-buttons .btn-secondary:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8) !important;
}

/* 3. HERO CONTENT WRAPPER: ADIÓS AL FONDO BORROSO SUCIO */
.hero-content-wrapper {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .hero-content-wrapper {
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* 4. TARJETAS ULTRA-NÍTIDAS (PEI, TRAYECTORIA, SERVICIOS, CRONOGRAMA, ETC.) */
/* Modo Día: Fondo blanco puro de alta gama, sin blur sucio */
.card,
.pei-card,
.PAI-card,
.tray-card,
.services-card,
.cronograma-card,
.menu-card,
.uniform-card,
.doc-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.07), 0 4px 10px rgba(15, 23, 42, 0.03) !important;
    border-radius: 22px !important;
}

/* Modo Noche: Azul pizarra oscuro de lujo tecnológico, sin blur */
[data-theme="dark"] .card,
[data-theme="dark"] .pei-card,
[data-theme="dark"] .PAI-card,
[data-theme="dark"] .tray-card,
[data-theme="dark"] .services-card,
[data-theme="dark"] .cronograma-card,
[data-theme="dark"] .menu-card,
[data-theme="dark"] .uniform-card,
[data-theme="dark"] .doc-card {
    background: #182030 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.65) !important;
}

/* 5. CÍRCULOS DE ÍCONOS VIBRANTES, COLORIDOS Y VIVOS */
.card-icon,
.pei-card .card-icon,
.PAI-card .card-icon,
.tray-card .card-icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem auto !important;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease !important;
    opacity: 1 !important;
}

.card-icon i,
.pei-card .card-icon i,
.PAI-card .card-icon i,
.tray-card .card-icon i {
    font-size: 1.4rem !important;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28)) !important;
}

/* Colores alegres con gradientes luminosos y sombras profundas */
.icon-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
}

.icon-pink {
    background: linear-gradient(135deg, #ec4899, #db2777) !important;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4) !important;
}

.icon-yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4) !important;
}

.icon-green {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}

.icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4) !important;
}

/* Micro-animación al pasar el ratón */
.card:hover .card-icon,
.pei-card:hover .card-icon,
.PAI-card:hover .card-icon,
.tray-card:hover .card-icon {
    transform: scale(1.15) rotate(6deg) !important;
}

/* ==========================================================================
   AJUSTES DEFINITIVOS: HERO BOTONES CENTRADOS, MENÚ EN PARALELO, UNIFORMES Y FOOTER PERGAMINO
   ========================================================================== */

/* 1. HERO PERGAMINO: BOTONES PERFECTAMENTE CENTRADOS */
.hero-pergamino-card .hero-buttons,
.hero-buttons.hero-buttons-centered {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.2rem !important;
    margin: 0 auto !important;
    width: 100% !important;
    text-align: center !important;
}

@media (max-width: 600px) {
    .hero-pergamino-card .hero-buttons,
    .hero-buttons.hero-buttons-centered {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    .hero-pergamino-card .hero-buttons .btn {
        width: 100% !important;
        max-width: 280px !important;
    }
}

/* 2. MENÚ: PROGRAMACIÓN NUTRICIONAL ARRIBA + REFRIGERIO Y ALMUERZO EN PARALELO */
.menu-layout-stacked {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

/* Tarjeta Superior de Control */
.menu-top-control-card {
    background: #ffffff !important;
    border: 2px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 28px !important;
    padding: 2.2rem 2.5rem !important;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 0 25px rgba(245, 158, 11, 0.08) !important;
    text-align: center !important;
}

.menu-top-header {
    margin-bottom: 1.8rem !important;
}

.menu-disney-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 0.35rem 1.1rem !important;
    border-radius: 50px !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25) !important;
    margin-bottom: 0.6rem !important;
}

.menu-top-title {
    font-size: 1.65rem !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.4rem !important;
}

.menu-top-subtitle {
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
}

.menu-selectors-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.3fr !important;
    gap: 1.8rem !important;
    align-items: center !important;
    background: var(--bg-secondary) !important;
    padding: 1.4rem 1.8rem !important;
    border-radius: 20px !important;
    border: 1px solid var(--card-border) !important;
    margin-bottom: 1.5rem !important;
}

.menu-selector-box {
    text-align: left !important;
}

.menu-selector-box .menu-selector-label-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.65rem !important;
}

.menu-selector-box .selector-label {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

.menu-selector-box .selector-helper-hint {
    font-size: 0.76rem !important;
    color: var(--text-secondary) !important;
}

.menu-pills {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

.menu-pill-btn {
    background: #ffffff !important;
    border: 1.5px solid var(--card-border) !important;
    color: var(--text-primary) !important;
    padding: 0.45rem 0.9rem !important;
    border-radius: 50px !important;
    font-family: var(--font-title) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.menu-pill-btn:hover {
    border-color: #2563eb !important;
    transform: translateY(-2px) !important;
}

.menu-pill-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.menu-today-bar {
    display: flex !important;
    justify-content: center !important;
}

.menu-today-reset-btn {
    background: #ffffff !important;
    border: 1.5px solid var(--card-border) !important;
    color: #2563eb !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04) !important;
}

.menu-today-reset-btn:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3) !important;
}

/* Platos en Paralelo */
.menu-parallel-dishes {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.8rem !important;
    align-items: stretch !important;
}

.menu-parallel-dishes .menu-item-box {
    background: #ffffff !important;
    border: 2px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 26px !important;
    padding: 2rem 2.2rem !important;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 220px !important;
    transition: all 0.3s ease !important;
}

.menu-parallel-dishes .menu-item-refrigerio {
    border-top: 5px solid #2563eb !important;
}

.menu-parallel-dishes .menu-item-almuerzo {
    border-top: 5px solid #ec4899 !important;
}

.menu-parallel-dishes .menu-item-box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12) !important;
}

.menu-parallel-dishes .menu-food-content {
    font-size: 1.35rem !important;
    line-height: 1.55 !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    margin: 1.2rem 0 !important;
}

/* Mobile Menú */
@media (max-width: 860px) {
    .menu-selectors-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        padding: 1.2rem !important;
    }
    .menu-parallel-dishes {
        grid-template-columns: 1fr !important;
        gap: 1.4rem !important;
    }
    .menu-top-control-card {
        padding: 1.6rem 1.2rem !important;
    }
}

/* 3. UNIFORMES: DISEÑO MÁGICO DE CASTILLO DISNEY */
.uniform-schedule-bar {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.4rem !important;
    max-width: 980px !important;
    margin: 0 auto 3rem auto !important;
}

.uniform-schedule-item {
    background: #ffffff !important;
    border-radius: 22px !important;
    padding: 1.4rem 1.2rem !important;
    text-align: center !important;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.07) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.uniform-schedule-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 35px -5px rgba(15, 23, 42, 0.12) !important;
}

.uniform-schedule-item.item-diario {
    border: 2px solid rgba(37, 99, 235, 0.35) !important;
    border-top: 5px solid #2563eb !important;
}

.uniform-schedule-item.item-sport {
    border: 2px solid rgba(236, 72, 153, 0.35) !important;
    border-top: 5px solid #ec4899 !important;
}

.uniform-schedule-item.item-friday {
    border: 2px solid rgba(245, 158, 11, 0.45) !important;
    border-top: 5px solid #f59e0b !important;
}

.schedule-day-badge {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 0.3rem 0.9rem !important;
    border-radius: 50px !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin-bottom: 0.3rem !important;
}

.schedule-day-badge.badge-diario {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #1d4ed8 !important;
}

.schedule-day-badge.badge-sport {
    background: rgba(236, 72, 153, 0.1) !important;
    color: #be185d !important;
}

.schedule-day-badge.badge-friday {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
}

.schedule-uniform-name {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
}

.schedule-note {
    font-size: 0.8rem !important;
    color: #64748b !important;
}

/* Banner de Viernes Mágico */
.friday-special-banner {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%) !important;
    border: 2px dashed #f59e0b !important;
    border-radius: 26px !important;
    padding: 1.8rem 2.2rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.6rem !important;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    transition: var(--transition) !important;
}

.friday-special-banner:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.2) !important;
}

.friday-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    background: rgba(245, 158, 11, 0.15) !important;
    color: #b45309 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.85rem !important;
    border-radius: 50px !important;
    margin-bottom: 0.4rem !important;
}

.friday-icon-box {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f59e0b, #ec4899) !important;
    color: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 1.6rem !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35) !important;
}

.friday-title {
    font-size: 1.25rem !important;
    color: #1e293b !important;
    margin-bottom: 0.4rem !important;
}

.friday-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .uniform-schedule-bar {
        grid-template-columns: 1fr !important;
        gap: 0.9rem !important;
    }
    .friday-special-banner {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.5rem !important;
    }
}

/* 4. FOOTER: "EL PERGAMINO REAL FLOTANTE DEL CASTILLO" */
.footer-pergamino-wrapper {
    background: transparent !important;
    padding: 2rem 1.5rem 3rem 1.5rem !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center !important;
}

.footer-pergamino-card {
    position: relative !important;
    max-width: 1140px !important;
    width: 100% !important;
    background: linear-gradient(135deg, #0e1a38 0%, #152449 50%, #0a1226 100%) !important;
    border: 2px solid rgba(245, 158, 11, 0.5) !important;
    border-radius: 36px !important;
    padding: 3.5rem 3rem 2.2rem 3rem !important;
    box-shadow: 0 25px 60px -10px rgba(10, 20, 50, 0.6), 
                0 0 40px rgba(245, 158, 11, 0.2) !important;
    color: #cbd5e1 !important;
    transition: var(--transition) !important;
}

.footer-pergamino-crest {
    display: flex !important;
    justify-content: center !important;
    margin-top: -4.8rem !important;
    margin-bottom: 2rem !important;
}

.footer-pergamino-crest .crest-badge {
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: 50px !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.45) !important;
}

.footer-pergamino-card .logo-text {
    font-size: 1.8rem !important;
    color: #ffffff !important;
}

.footer-pergamino-card .footer-desc {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    margin: 1.2rem 0 !important;
}

.footer-pergamino-card .footer-title {
    color: #ffffff !important;
    font-size: 1.35rem !important;
    margin-bottom: 1.2rem !important;
}

.footer-pergamino-card .contact-details li {
    font-size: 0.95rem !important;
    color: #e2e8f8 !important;
}

.footer-wa-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    padding: 0.65rem 1.4rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4) !important;
    transition: all 0.3s ease !important;
}

.footer-wa-btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.6) !important;
}

.footer-pergamino-card .footer-social-links a {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(37, 99, 235, 0.25) !important;
    border: 1.5px solid rgba(96, 165, 250, 0.35) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
}

.footer-pergamino-card .footer-social-links a:hover {
    background: #2563eb !important;
    border-color: #60a5fa !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
}

.footer-pergamino-card .security-seal {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    border-radius: 16px !important;
}

.footer-pergamino-card .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    padding-top: 1.5rem !important;
    margin-top: 2.2rem !important;
}

.footer-pergamino-card .footer-bottom-links a {
    color: #93c5fd !important;
}

@media (max-width: 768px) {
    .footer-pergamino-card {
        padding: 2.5rem 1.4rem 1.8rem 1.4rem !important;
    }
    .footer-pergamino-card .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}


/* ==========================================================================
   ESTRUCTURA Y DISEÑO COMPLETO DEL PERGAMINO REAL FLOTANTE DEL CASTILLO
   ========================================================================== */
.hero-pergamino-wrapper {
    position: relative !important;
    z-index: 25 !important;
    width: 100% !important;
    padding: 0 1.5rem !important;
    margin-top: -65px !important;
    margin-bottom: 2.5rem !important;
    display: flex !important;
    justify-content: center !important;
}

.hero-pergamino-card {
    position: relative !important;
    max-width: 880px !important;
    width: 100% !important;
    background: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf8 50%, #f6f9ff 100%) !important;
    border: 2.5px solid rgba(245, 158, 11, 0.55) !important;
    border-radius: 32px !important;
    padding: 2.8rem 2.8rem 2.4rem 2.8rem !important;
    text-align: center !important;
    box-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.18), 
                0 0 35px rgba(245, 158, 11, 0.15), 
                0 6px 18px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: var(--transition) !important;
}

.pergamino-crest {
    display: flex !important;
    justify-content: center !important;
    margin-top: -4.2rem !important;
    margin-bottom: 1.2rem !important;
}

.crest-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    padding: 0.55rem 1.6rem !important;
    border-radius: 50px !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 8px 22px rgba(30, 58, 138, 0.4) !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
}

.pergamino-body {
    position: relative !important;
    margin-bottom: 1.8rem !important;
    padding: 0 1.5rem !important;
}

.hero-pergamino-card .hero-text {
    font-size: clamp(1.15rem, 2.2vw, 1.38rem) !important;
    font-style: italic !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.65 !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
}

.pergamino-quote-mark {
    position: absolute !important;
    font-size: 5.5rem !important;
    font-family: 'Fredoka', serif !important;
    color: rgba(245, 158, 11, 0.2) !important;
    line-height: 1 !important;
    pointer-events: none !important;
    user-select: none !important;
    z-index: 1 !important;
}

.pergamino-quote-mark.left {
    top: -28px !important;
    left: -10px !important;
}

.pergamino-quote-mark.right {
    bottom: -45px !important;
    right: -10px !important;
}

/* Modo Noche Pergamino */
[data-theme="dark"] .hero-pergamino-card {
    background: linear-gradient(135deg, #131c31 0%, #0d1527 100%) !important;
    border: 2.5px solid rgba(245, 158, 11, 0.65) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.75), 
                0 0 35px rgba(245, 158, 11, 0.25) !important;
}

[data-theme="dark"] .hero-pergamino-card .hero-text {
    color: #f1f5f9 !important;
}

@media (max-width: 680px) {
    .hero-pergamino-wrapper {
        margin-top: -45px !important;
        padding: 0 1rem !important;
    }
    .hero-pergamino-card {
        padding: 2.2rem 1.4rem 1.8rem 1.4rem !important;
        border-radius: 24px !important;
    }
    .pergamino-crest {
        margin-top: -3.5rem !important;
    }
    .crest-badge {
        font-size: 0.8rem !important;
        padding: 0.45rem 1.1rem !important;
    }
    .pergamino-body {
        padding: 0 !important;
    }
    .pergamino-quote-mark {
        display: none !important;
    }
}


/* ==========================================================================
   PERFECCIONAMIENTO MODO NOCHE (DARK THEME) PARA COMPONENTES REALES DISNEY
   ========================================================================== */

/* Hero Pergamino Real en Modo Noche */
[data-theme="dark"] .hero-pergamino-card {
    background: linear-gradient(135deg, #141e33 0%, #18253d 50%, #101726 100%) !important;
    border: 2.5px solid rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 0 35px rgba(245, 158, 11, 0.22) !important;
}
[data-theme="dark"] .hero-pergamino-card .hero-text {
    color: #f1f5f9 !important;
}
[data-theme="dark"] .hero-pergamino-card .hero-buttons .btn-secondary {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #93c5fd !important;
    border-color: rgba(147, 197, 253, 0.45) !important;
}
[data-theme="dark"] .hero-pergamino-card .hero-buttons .btn-secondary:hover {
    background: #1e293b !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}

/* Menú Institucional en Modo Noche */
[data-theme="dark"] .menu-top-control-card {
    background: #182338 !important;
    border: 2px solid rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65) !important;
}
[data-theme="dark"] .menu-top-title {
    color: #ffffff !important;
}
[data-theme="dark"] .menu-top-subtitle {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .menu-selectors-grid {
    background: #101726 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .menu-selector-box .selector-label {
    color: #f8fafc !important;
}
[data-theme="dark"] .menu-selector-box .selector-helper-hint {
    color: #94a3b8 !important;
}
[data-theme="dark"] .menu-pill-btn {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
[data-theme="dark"] .menu-pill-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}
[data-theme="dark"] .week-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
}
[data-theme="dark"] .day-btn.active {
    background: linear-gradient(135deg, #ec4899, #db2777) !important;
    color: #ffffff !important;
    border-color: #f472b6 !important;
}
[data-theme="dark"] .menu-today-reset-btn {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .menu-today-reset-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}
[data-theme="dark"] .menu-parallel-dishes .menu-item-box {
    background: #182338 !important;
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65) !important;
}
[data-theme="dark"] .menu-parallel-dishes .menu-food-content {
    color: #f8fafc !important;
}
[data-theme="dark"] .menu-parallel-dishes .menu-item-refrigerio {
    border-top: 5px solid #3b82f6 !important;
}
[data-theme="dark"] .menu-parallel-dishes .menu-item-almuerzo {
    border-top: 5px solid #ec4899 !important;
}
[data-theme="dark"] .menu-schedule-tag {
    background: rgba(30, 41, 59, 0.7) !important;
    color: #cbd5e1 !important;
}

/* Uniformes y Viernes Particular en Modo Noche */
.uniform-schedule-item {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.friday-special-banner {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
[data-theme="dark"] .uniform-schedule-item {
    background: #182338 !important;
    box-shadow: 0 14px 32px -4px rgba(0, 0, 0, 0.55) !important;
}
[data-theme="dark"] .uniform-schedule-item.item-diario {
    border: 2px solid rgba(59, 130, 246, 0.4) !important;
    border-top: 5px solid #3b82f6 !important;
}
[data-theme="dark"] .uniform-schedule-item.item-sport {
    border: 2px solid rgba(236, 72, 153, 0.4) !important;
    border-top: 5px solid #ec4899 !important;
}
[data-theme="dark"] .uniform-schedule-item.item-friday {
    border: 2px solid rgba(245, 158, 11, 0.5) !important;
    border-top: 5px solid #f59e0b !important;
}
[data-theme="dark"] .schedule-uniform-name {
    color: #f8fafc !important;
}
[data-theme="dark"] .schedule-note {
    color: #94a3b8 !important;
}
[data-theme="dark"] .friday-special-banner {
    background: linear-gradient(135deg, #182338 0%, #151d2e 100%) !important;
    border: 2px dashed #f59e0b !important;
}
[data-theme="dark"] .friday-title {
    color: #f8fafc !important;
}
[data-theme="dark"] .friday-text {
    color: #cbd5e1 !important;
}


/* ==========================================================================
   AJUSTES SOLICITADOS: SOMBRA BLANCA AMPLIA EN TODOS LOS TÍTULOS Y ÁLBUM ULTRA-NÍTIDO
   ========================================================================== */

/* 1. SOMBRA BLANCA AMPLIA Y LUMINOSA EN TODOS LOS TÍTULOS Y SUBTÍTULOS SOBRE EL CASTILLO */
.section-title,
h2.section-title,
.section-header .section-title {
    color: #0f172a !important;
    text-shadow: 
        0 0 10px #ffffff,
        0 0 20px #ffffff,
        0 0 35px #ffffff,
        0 0 55px rgba(255, 255, 255, 0.95),
        0 0 75px rgba(255, 255, 255, 0.9),
        0 2px 5px rgba(255, 255, 255, 0.98),
        0 -2px 5px rgba(255, 255, 255, 0.98),
        2px 0 5px rgba(255, 255, 255, 0.98),
        -2px 0 5px rgba(255, 255, 255, 0.98) !important;
}

.section-subtitle,
p.section-subtitle,
.section-header .section-subtitle {
    color: #1e293b !important;
    font-weight: 600 !important;
    text-shadow: 
        0 0 8px #ffffff,
        0 0 16px #ffffff,
        0 0 30px #ffffff,
        0 0 50px rgba(255, 255, 255, 0.95),
        0 1px 4px #ffffff,
        0 -1px 4px #ffffff,
        1px 0 4px #ffffff,
        -1px 0 4px #ffffff !important;
}

/* En Modo Noche: Sombra profunda y aura luminosa para máxima legibilidad sobre el cielo nocturno */
[data-theme="dark"] .section-title,
[data-theme="dark"] h2.section-title,
[data-theme="dark"] .section-header .section-title {
    color: #f8fafc !important;
    text-shadow: 
        0 0 15px rgba(0, 0, 0, 0.95),
        0 0 30px rgba(0, 0, 0, 0.9),
        0 0 55px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(59, 130, 246, 0.35),
        0 4px 12px #000000 !important;
}

[data-theme="dark"] .section-subtitle,
[data-theme="dark"] p.section-subtitle,
[data-theme="dark"] .section-header .section-subtitle {
    color: #e2e8f0 !important;
    text-shadow: 
        0 0 12px rgba(0, 0, 0, 0.95),
        0 0 25px rgba(0, 0, 0, 0.85),
        0 2px 6px #000000 !important;
}

/* 2. ÁLBUM DEL CASTILLO: PANEL DE FOTOS ULTRA-NÍTIDO, ELEGANTE Y DE MÁXIMA CALIDAD */
.gallery-tabs {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 2px solid rgba(245, 158, 11, 0.45) !important;
    border-radius: 60px !important;
    box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.1), 0 0 20px rgba(245, 158, 11, 0.1) !important;
}

[data-theme="dark"] .gallery-tabs {
    background: #182338 !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6) !important;
}

.photos-panel {
    background: linear-gradient(135deg, #ffffff 0%, #fffefb 50%, #f7f9ff 100%) !important;
    border: 2.5px solid rgba(245, 158, 11, 0.55) !important;
    border-top: 5px solid #f59e0b !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 32px !important;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.12), 0 0 30px rgba(245, 158, 11, 0.12) !important;
    padding: 2.2rem 2.4rem !important;
}

[data-theme="dark"] .photos-panel {
    background: linear-gradient(135deg, #141e33 0%, #18253d 50%, #101726 100%) !important;
    border: 2.5px solid rgba(245, 158, 11, 0.55) !important;
    border-top: 5px solid #f59e0b !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 0 30px rgba(245, 158, 11, 0.2) !important;
}

.photos-header {
    border-bottom: 2px solid rgba(245, 158, 11, 0.3) !important;
    padding-bottom: 1.3rem !important;
    margin-bottom: 1.6rem !important;
}

.active-folder-path {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

[data-theme="dark"] .active-folder-path {
    color: #93c5fd !important;
}

.active-folder-path i {
    color: #f59e0b !important;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4)) !important;
}

.photos-instruction-hint {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: #f1f5f9 !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: 50px !important;
    border: 1px solid #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

[data-theme="dark"] .photos-instruction-hint {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.sync-badge {
    padding: 0.45rem 1.15rem !important;
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: #ffffff !important;
    border: 1.5px solid #f59e0b !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.28) !important;
}

.photo-card {
    border-radius: 20px !important;
    border: 3.5px solid #ffffff !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .photo-card {
    border-color: #1e293b !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5) !important;
}

.photo-card:hover {
    transform: translateY(-8px) scale(1.03) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22), 0 0 25px rgba(245, 158, 11, 0.4) !important;
}

.photo-card.is-active-screen {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 4px #f59e0b, 0 18px 38px rgba(245, 158, 11, 0.45) !important;
    transform: translateY(-6px) scale(1.03) !important;
}

.photo-card.is-active-screen::after {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}


/* ==========================================================================
   PERFECCIONAMIENTO COMPACTO: MENÚ SIN ESPACIOS VACÍOS & UBICACIÓN SHOWCASE
   ========================================================================== */

/* 1. MENÚ NUTRICIONAL: REORGANIZACIÓN ARMÓNICA Y COMPACTA (CERO ESPACIO PERDIDO) */
.menu-section {
    padding: 3.5rem 0 !important;
}

.menu-top-control-card {
    background: #ffffff !important;
    border: 2px solid rgba(245, 158, 11, 0.4) !important;
    border-radius: 26px !important;
    padding: 1.5rem 2rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 0 25px rgba(245, 158, 11, 0.08) !important;
    text-align: center !important;
}

.menu-top-header {
    margin-bottom: 1.1rem !important;
}

.menu-disney-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 0.3rem 1rem !important;
    border-radius: 50px !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25) !important;
    margin-bottom: 0.4rem !important;
}

.menu-top-title {
    font-size: 1.45rem !important;
    color: #0f172a !important;
    margin-bottom: 0.25rem !important;
}

.menu-top-subtitle {
    font-size: 0.9rem !important;
    color: #475569 !important;
    max-width: 650px !important;
    margin: 0 auto !important;
}

.menu-selectors-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.35fr !important;
    gap: 1.5rem !important;
    align-items: center !important;
    background: #f8fafc !important;
    padding: 1rem 1.4rem !important;
    border-radius: 18px !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    margin-bottom: 1rem !important;
}

.menu-selector-box {
    text-align: left !important;
}

.menu-selector-box .menu-selector-label-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.5rem !important;
}

.menu-selector-box .selector-label {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

.menu-selector-box .selector-helper-hint {
    font-size: 0.74rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

/* Grillas horizontales compactas: semanas en 4 cols, días en 5 cols */
.menu-pills {
    display: grid !important;
    width: 100% !important;
}

.menu-pills-weeks {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
}

.menu-pills-days {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.4rem !important;
    width: 100% !important;
}

.menu-pill-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.55rem 0.25rem !important;
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-family: var(--font-title) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
}

.menu-pill-btn:hover {
    border-color: #2563eb !important;
    color: #1e3a8a !important;
    transform: translateY(-2px) !important;
}

.menu-pill-btn.week-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.menu-pill-btn.day-btn.active {
    background: linear-gradient(135deg, #ec4899, #db2777) !important;
    color: #ffffff !important;
    border-color: #db2777 !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35) !important;
}

.menu-today-bar {
    margin-top: 0.6rem !important;
}

.menu-today-reset-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    padding: 0.4rem 1.1rem !important;
    border-radius: 50px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    transition: all 0.25s ease !important;
}

.menu-today-reset-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Platos en Paralelo Compactos y Armónicos */
.menu-parallel-dishes {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
}

.menu-parallel-dishes .menu-item-box {
    background: #ffffff !important;
    border: 2px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 22px !important;
    padding: 1.5rem 1.8rem !important;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 180px !important;
    transition: all 0.3s ease !important;
}

.menu-parallel-dishes .menu-food-content {
    font-size: 1.22rem !important;
    line-height: 1.5 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    margin: 0.9rem 0 !important;
}

/* Responsive Menú Mobile */
@media (max-width: 860px) {
    .menu-selectors-grid {
        grid-template-columns: 1fr !important;
        gap: 1.1rem !important;
        padding: 1rem !important;
    }
    .menu-parallel-dishes {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .menu-top-control-card {
        padding: 1.3rem 1.1rem !important;
    }
    .menu-pill-btn {
        padding: 0.5rem 0.15rem !important;
        font-size: 0.78rem !important;
    }
}

/* 2. UBICACIÓN SHOWCASE CARD (100% OPERATIVA, ROBUSTA Y SIN ERRORES DE IFRAME) */
.location-section {
    padding: 4rem 0 !important;
}

.location-card-showcase {
    background: #ffffff !important;
    border: 2.5px solid rgba(245, 158, 11, 0.5) !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.12), 0 0 30px rgba(245, 158, 11, 0.12) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.location-card-showcase:hover {
    box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.16), 0 0 35px rgba(245, 158, 11, 0.2) !important;
}

.location-map-frame {
    position: relative !important;
    height: 380px !important;
    width: 100% !important;
    background: #e2e8f0 !important;
}

.location-map-frame iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
}

.location-details-bar {
    padding: 1.6rem 2.2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1.4rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%) !important;
    border-top: 2px solid rgba(245, 158, 11, 0.25) !important;
}

.location-info-block h3 {
    font-size: 1.25rem !important;
    color: #1e3a8a !important;
    margin: 0 0 0.35rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.location-info-block p {
    margin: 0 0 0.25rem 0 !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.location-nav-buttons {
    display: flex !important;
    gap: 0.8rem !important;
    flex-wrap: wrap !important;
}

.btn-nav-gmaps {
    background: linear-gradient(135deg, #1a73e8, #1557b0) !important;
    color: #ffffff !important;
    padding: 0.65rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3) !important;
    transition: all 0.25s ease !important;
}

.btn-nav-gmaps:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.45) !important;
}

.btn-nav-waze {
    background: linear-gradient(135deg, #33ccff, #0099ff) !important;
    color: #ffffff !important;
    padding: 0.65rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 153, 255, 0.3) !important;
    transition: all 0.25s ease !important;
}

.btn-nav-waze:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 153, 255, 0.45) !important;
}

.btn-nav-wa {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    color: #ffffff !important;
    padding: 0.65rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.25s ease !important;
}

.btn-nav-wa:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45) !important;
}

@media (max-width: 768px) {
    .location-details-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.3rem 1.2rem !important;
    }
    .location-nav-buttons {
        width: 100% !important;
        justify-content: stretch !important;
    }
    .location-nav-buttons a {
        flex: 1 !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        padding: 0.6rem 0.8rem !important;
    }
    .location-map-frame {
        height: 290px !important;
    }
}

/* Modo Noche para Ubicación */
[data-theme="dark"] .location-card-showcase {
    background: #182338 !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.75) !important;
}

[data-theme="dark"] .location-details-bar {
    background: #141e33 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .location-info-block h3 {
    color: #93c5fd !important;
}

[data-theme="dark"] .location-info-block p {
    color: #cbd5e1 !important;
}


/* ==========================================================================
   CONEXIÓN MÁGICA DISNEY: PERGAMINO REAL EN AMARILLO PÁLIDO / MARFIL DORADO
   Fiel al estilo de cuento de hadas medieval del Castillo Bebés Disney
   ========================================================================== */

.hero-pergamino-card {
    background: linear-gradient(135deg, #fffef5 0%, #fef8e1 45%, #fef0be 100%) !important;
    border: 2.5px solid rgba(245, 158, 11, 0.75) !important;
    border-radius: 32px !important;
    box-shadow: 
        inset 0 0 35px rgba(254, 243, 199, 0.7),
        0 22px 55px -10px rgba(15, 23, 42, 0.14), 
        0 0 40px rgba(245, 158, 11, 0.28),
        0 6px 18px rgba(0, 0, 0, 0.06) !important;
}

.hero-pergamino-card .hero-text {
    color: #0f172a !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6) !important;
}

.pergamino-quote-mark {
    color: #d97706 !important;
    opacity: 0.4 !important;
}

.hero-pergamino-card .hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1e3a8a !important;
    border: 2px solid #2563eb !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15) !important;
}

.hero-pergamino-card .hero-buttons .btn-secondary:hover {
    background: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25) !important;
}

/* Toque sutil de pergamino cálido marfil en paneles destacados */
.menu-top-control-card,
.photos-panel {
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 45%, #fefcf0 100%) !important;
}




/* ==========================================================================
   BANNER DE COOKIES MÁGICO DISNEY (AZUL ZAFIRO REAL + ORO RADIANTE)
   100% Sólido, Ultra-Legible y Alineado a la Identidad del Castillo Disney
   ========================================================================== */

.cookie-banner {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 32px) !important;
    max-width: 760px !important;
    background: linear-gradient(135deg, #091734 0%, #112855 50%, #061025 100%) !important;
    border: 2px solid #f59e0b !important;
    border-radius: 22px !important;
    padding: 1.1rem 1.6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.4rem !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(245, 158, 11, 0.35) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.cookie-banner.fade-out {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(30px) !important;
    pointer-events: none !important;
}

.cookie-content {
    display: flex !important;
    align-items: center !important;
    gap: 1.1rem !important;
    flex: 1 !important;
}

.cookie-icon {
    font-size: 1.85rem !important;
    color: #f59e0b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.6)) !important;
    flex-shrink: 0 !important;
}

.cookie-text {
    font-size: 0.88rem !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.cookie-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 1.2rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.cookie-btn-decline {
    background: none !important;
    border: none !important;
    color: #93c5fd !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    transition: all 0.2s ease !important;
    padding: 0.4rem 0.5rem !important;
}

.cookie-btn-decline:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(147, 197, 253, 0.8) !important;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 40%, #f59e0b 100%) !important;
    color: #061025 !important;
    border: 1.5px solid #fef08a !important;
    border-radius: 50px !important;
    padding: 0.65rem 1.65rem !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.45) !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
}

.cookie-btn-accept::before {
    content: "✨" !important;
    font-size: 0.95rem !important;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.65) !important;
    background: linear-gradient(135deg, #fef08a 0%, #fcd34d 40%, #fbbf24 100%) !important;
    color: #000000 !important;
}

.cookie-btn-accept:active {
    transform: translateY(0) scale(0.98) !important;
}

@media (max-width: 680px) {
    .cookie-banner {
        flex-direction: column !important;
        padding: 1.25rem 1.15rem !important;
        gap: 1rem !important;
        text-align: center !important;
        bottom: 12px !important;
        border-radius: 18px !important;
    }
    .cookie-content {
        flex-direction: column !important;
        gap: 0.55rem !important;
        align-items: center !important;
    }
    .cookie-buttons {
        width: 100% !important;
        justify-content: center !important;
        gap: 1.1rem !important;
    }
    .cookie-btn-accept {
        flex: 1 !important;
        max-width: 180px !important;
        padding: 0.6rem 1.2rem !important;
    }
}


/* ==========================================================================
   FOTO PRINCIPAL DEL VISOR DEL CASTILLO (GARANTÍA 100% VISIBLE Y NÍTIDA)
   ========================================================================== */
.spotlight-slide-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 2 !important;
    display: block !important;
    pointer-events: none !important;
    border-radius: inherit !important;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}


/* ==========================================================================
   CANVAS DE CHISPAS MÁGICAS Y EFECTO CLIC (POR ENCIMA DE TODO)
   ========================================================================== */
.mr-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 9999999 !important;
}
