@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Montserrat:wght@100;300;400;700&display=swap');

:root {
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-main: #1D1D1D;
    --text-light: #7A7A7A;
    --accent: #C29B57;
    --accent-rgb: 194, 155, 87;
    --secondary: #1F242A;
    --secondary-rgb: 31, 36, 42;
    --nav-bg: rgba(250, 250, 250, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    /* Ligeramente más visible para compensar falta de sombras */
    --shadow: none;
    --shadow-hover: none;
    --transition-main: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- EFECTOS PREMIUM --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--text-main);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
}

.repres-card,
.monument-card,
.book-card,
.event-card-grid,
.btn,
.search-trigger,
.theme-toggle,
.social-icon {
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
    will-change: transform;
}

/* --- DINAMISMO CINEMÁTICO --- */
.repres-grid,
.monument-grid {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-out-left {
    opacity: 0;
    transform: translateX(-30px);
}

.slide-out-right {
    opacity: 0;
    transform: translateX(30px);
}

.slide-in-left {
    animation: slideInL 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-in-right {
    animation: slideInR 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInL {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInR {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.year-btn {
    position: relative;
    overflow: hidden;
}

.year-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    animation: scaleLine 0.4s ease forwards;
}

@keyframes scaleLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    background: radial-gradient(circle, var(--accent), transparent);
    animation: moveGlow 20s infinite alternate ease-in-out;
    pointer-events: none;
    /* Asegura que no bloquee clics ni scroll */
}

/* Ocultar barra de scroll nativa para un look ultra-minimalista */
/* --- SCROLLBAR ELEGANTE --- */
/* Restauramos el scroll pero con un look premium */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-color);
}

body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

body {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-color);
}

.glow-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--secondary), transparent);
}

.glow-2 {
    width: 500px;
    height: 500px;
    bottom: -10%;
    right: -10%;
}

@keyframes moveGlow {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 50px) scale(1.2);
    }
}

.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    /* Evita que las orbes creen scroll extra */
}

[data-theme="dark"] .ambient-glow {
    opacity: 0.3;
}

/* --- INTERACTIVE SPARKS --- */
#sparks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}


[data-theme="dark"] {
    --bg-color: #0d0d0d;
    --card-bg: #151515;
    --text-main: #EAEAEA;
    --text-light: #888888;
    --accent: #D4AF37;
    --secondary: #E8E8E8;
    --nav-bg: rgba(13, 13, 13, 0.85);
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* =========================================
   ACCESIBILIDAD Y FOCO
   ========================================= */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: var(--accent);
    color: #000;
    padding: 10px 20px;
    z-index: 10000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* =========================================
   PRELOADER CINEMATOGRÁFICO
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.preloader-content {
    text-align: center;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}


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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    touch-action: manipulation;
    /* Evitar 300ms delay en Android/iOS */
    overflow-x: hidden;
    /* Corta cualquier cosa que sobresalga por los lados */
    position: relative;
    padding-top: 70px;
}

img,
iframe,
video {
    max-width: 100%;
    height: auto;
    display: block;
    /* Evita huecos extraños debajo de las imágenes */
}

button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.img-zoom-btn {
    width: 100%;
    height: 100%;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.img-zoom-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: white;
    z-index: 2100;
    line-height: 1;
}

html {
    overflow-x: hidden;
}

.container {
    max-width: 1800px;
    width: 100%;
    /* Ocupa todo el ancho disponible */
    margin: 0 auto;
    padding: 1rem 20px;
    /* En móvil, 20px de margen a los lados es suficiente */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- NAVEGACIÓN --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
    background: var(--bg-color);
    position: fixed;
    /* Bloqueado fijo arriba */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    border-bottom: 1px solid var(--border-color);
    transition: none;
    /* Sin transiciones de tamaño */
}

/* Efectos de scroll eliminados para mantener nav estático y fijo */


/* Botones de Utilidad (Nav) */
.nav-utils {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 30px;
}

.search-trigger,
.theme-toggle {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0.6;
}

.search-trigger:hover,
.theme-toggle:hover {
    background: transparent;
    color: var(--text-main);
    transform: translateY(-2px);
    opacity: 1;
    box-shadow: none;
}

/* Selector de Idioma */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.lang-selector button {
    opacity: 0.5;
    transition: all 0.3s ease;
    padding: 2px 5px;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.lang-selector button:hover {
    opacity: 1;
    color: var(--accent);
}

[lang="es"] #lang-es,
[lang="va"] #lang-va {
    opacity: 1;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.lang-sep {
    opacity: 0.2;
}

/* --- BUSCADOR GLOBAL OVERLAY --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-modal {
    width: 90%;
    max-width: 800px;
    background: var(--bg-color);
    border-radius: 0;
    padding: 40px;
    position: relative;
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.search-overlay.active .search-modal {
    transform: translateY(0);
}

.close-search {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.close-search:hover {
    color: var(--danger);
}

.search-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.search-icon {
    font-size: 1.8rem;
    color: var(--secondary);
}

#global-search-input {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
}

#global-search-input::placeholder {
    color: var(--text-light);
    opacity: 0.5;
}

.mic-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px;
}

.mic-btn:hover {
    color: var(--accent);
}

.mic-btn.recording {
    color: var(--danger);
    animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.search-results::-webkit-scrollbar {
    width: 5px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

.search-placeholder {
    padding: 60px 0;
    text-align: center;
    color: var(--text-light);
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.search-suggestions span {
    background: transparent;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.search-suggestions span:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

/* Cartas de resultado */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 0;
    margin-bottom: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: left;
}

.search-result-item:hover {
    background: var(--bg-color);
    border-color: var(--text-main);
    transform: translateX(5px);
    box-shadow: none;
}

.res-img {
    width: 60px;
    height: 60px;
    border-radius: 0;
    object-fit: cover;
    background: #eee;
}

.res-info {
    flex: 1;
}

.res-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.res-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.res-category {
    padding: 2px 8px;
    border-radius: 0;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-right: 8px;
    display: inline-block;
    border: 1px solid currentColor;
}

.cat-rep {
    background: rgba(212, 175, 55, 0.1);
    color: #b8962d;
}

.cat-mon {
    background: rgba(30, 58, 95, 0.1);
    color: #1e3a5f;
}

.cat-cal {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.cat-lib {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Responsive Search */
@media (max-width: 1024px) {}

@media (max-width: 768px) {
    .search-modal {
        padding: 20px;
        border-radius: 20px;
        width: 95%;
    }

    #global-search-input {
        font-size: 1.1rem;
    }

    .res-img {
        width: 50px;
        height: 50px;
    }

    .res-title {
        font-size: 1rem;
    }
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #ffcc00;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

.logo {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 0.85;
    letter-spacing: -0.05em;
}

.logo-text span {
    color: var(--accent);
    font-weight: 800;
}

.escudo-logo {
    display: none;
    height: 38px;
    width: auto;
}

.hamburger {
    display: none;
}



.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-main);
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- BOTONES Y ANIMACIONES --- */
.btn {
    padding: 0.8rem 2.5rem;
    background: var(--text-main);
    color: var(--bg-color);
    border-radius: 0;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--text-main);
}

.btn:hover {
    transform: translateY(-2px);
    background: transparent;
    color: var(--text-main);
}



/* --- REVELADO --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- IMAGE SKELETON / SHIMMER --- */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

[data-theme="dark"] img {
    background: linear-gradient(90deg, #1a1a1c 25%, #222225 50%, #1a1a1c 75%);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--text-main);
    color: var(--bg-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--bg-color);
    border-color: var(--accent);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
    }
}

/* --- VISOR DE FOTOS (LIGHTBOX) --- */
.lightbox {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.social-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon:hover {
    background: var(--text-main);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* --- ESTILO LOGO CON ESCUDO --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
}

.logo span {
    color: var(--accent);
}

.escudo-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover .escudo-logo {
    transform: scale(1.1) rotate(5deg);
}



/* =========================================
   ESTILOS DE LLIBRETS (Estantería y Visor)
   ========================================= */

/* --- Hero Section --- */
.llibrets-hero,
.eventos-hero,
.social-hero,
.archivo-hero,
.monumentos-hero,
.repres-hero {
    padding: 30px 20px 20px;
    text-align: center;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Fondo de cuadrícula arquitectónica muy sutil */
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: center bottom;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--border-color);
}

/* Estilo de scroll eliminado */

/* Línea vertical dorada eliminada */

/* Cleanup de línea is-scrolled eliminada */

.llibrets-hero .category-eyebrow,
.eventos-hero .category-eyebrow,
.social-hero .category-eyebrow,
.archivo-hero .category-eyebrow,
.monumentos-hero .category-eyebrow,
.repres-hero .category-eyebrow {
    margin-bottom: 10px;
}

.hero-content-mini {
    max-width: 1600px;
    /* Aumentado para permitir palabras largas en una línea */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.category-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.8em;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    opacity: 1;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    /* Ajustado de 9rem a 4.5rem para mayor elegancia */
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--text-main);
    text-transform: uppercase;
    margin-bottom: 5px;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reducción de título en scroll eliminada */

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

/* --- Estantería --- */
.llibret-shelf-container {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
}

.llibret-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 80px 60px;
    padding: 15px 5% 150px;
    max-width: 1900px;
    margin: 0 auto;
}

.book-card {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.book-card.active {
    opacity: 1;
    transform: translateY(0);
}

.book-cover {
    width: 100%;
    aspect-ratio: 1 / 1.41;
    overflow: hidden;
    position: relative;
    background: #000;
    border: none;
    cursor: pointer;
    /* Efectos de Transformación 3D */
    perspective: 1500px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    box-shadow: var(--shadow);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(15%) contrast(1.1) brightness(0.9);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

/* Brillo que sigue al ratón ajustable */
.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.3) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 4;
}

.book-cover:hover::after {
    opacity: 1;
}

.book-cover:hover {
    transform: translateY(-25px) rotateY(12deg) rotateX(3deg);
    border: 1px solid var(--accent);
}

.book-cover:hover img {
    filter: sepia(0%) contrast(1.15) brightness(1.1);
    transform: scale(1.15);
}

.book-content {
    margin-top: 50px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.book-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 5px;
}

.book-year {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: -0.05em;
    line-height: 0.8;
}

.book-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    font-weight: 800;
    opacity: 0.8;
}

.book-title-lema {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0;
}

.book-awards {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 400;
    padding-left: 0;
    position: relative;
    margin-top: 5px;
}

.book-awards i {
    display: none;
}



@media (max-width: 768px) {
    .llibrets-hero {
        padding: 100px 20px 20px;
    }

    .llibret-shelf {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        gap: 80px;
    }

    .book-year {
        font-size: 2.5rem;
    }

    .book-title-lema {
        font-size: 1.2rem;
    }

    .book-content {
        margin-top: 30px;
    }
}

/* --- Visor PDF (Lightbox) --- */
.pdf-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdf-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.pdf-container {
    width: 90%;
    height: 90vh;
    background: var(--bg-color);
    border: none;
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.pdf-lightbox.active .pdf-container {
    transform: translateY(0) scale(1);
}

.pdf-header {
    height: 90px;
    padding: 0 50px;
    background: rgba(var(--secondary-rgb), 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    z-index: 10;
}

.pdf-header span {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    opacity: 0.8;
}

.close-pdf-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 50px;
    height: 50px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.close-pdf-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.pdf-frame {
    flex-grow: 1;
    border: none;
    background: #fff;
}

iframe.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Iconos Sociales en el Nav */
.social-nav {
    display: flex;
    gap: 15px;
    /* Espacio entre iconos */
    margin-right: auto;
    /* IMPORTANTE: Empuja el resto del menú a la derecha */
    margin-left: 30px;
    /* El margen que pediste */
    align-items: center;
}

.social-nav .social-icon {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: 0.2s;
}

/* =========================================
   EVENTOS EN GRID (4 COLUMNAS)
   ========================================= */
.eventos-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1200px;
    margin: 0.5rem auto;
    padding: 0 40px;
}

.event-card-grid {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
    display: grid;
    grid-template-columns: 200px 1fr 350px;
    gap: 60px;
    align-items: flex-start;
    transition: var(--transition-main);
}

.event-card-grid:hover {
    border-bottom-color: var(--text-main);
}

.event-img-header {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.event-img-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    cursor: zoom-in;
}

.event-card-grid:hover .event-img-header img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.event-date-badge {
    position: relative;
    text-align: left;
    padding: 0;
    border: none;
}

.event-date-badge .day {
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.8;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.event-date-badge .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.2rem;
    margin-top: 10px;
}

.event-body h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.event-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.7;
    margin-bottom: 0;
    max-width: 500px;
}

.event-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
    font-weight: 600;
}

.event-meta-info i {
    width: 20px;
    color: var(--accent);
}

/* RESPONSIVE DINÁMICO (Eventos Grid) */
@media (max-width: 900px) {
    .event-card-grid {
        grid-template-columns: 120px 1fr;
        gap: 20px;
    }

    .event-img-header {
        display: none;
    }

    .event-date-badge .day {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .event-card-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 0;
    }

    .event-date-badge {
        text-align: center;
    }

    .event-body p {
        margin: 0 auto;
    }
}

/* =========================================
   MENÚ MÓVIL (HAMBURGUESA) - Añadir al final
   ========================================= */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    margin-left: auto;
    padding-right: 20px;
}

/* --- ESTILOS DE REPRESENTANTES (TIMELINE Y TARJETAS) --- */

/* 1. Barra de Años (Estilo Apple / Matas) */
.apple-timeline-nav {
    position: sticky;
    top: 70px;
    /* Alineado con el nuevo nav fixed de 70px */
    z-index: 950;
    background: var(--nav-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 0.5px solid var(--border-color);
    padding: 0;
    /* Reducido al mínimo */
    width: 100%;
}

.year-scroller {
    display: flex;
    gap: 20px;
    padding: 5px 30px;
    /* Reducido de 10px a 5px */
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    justify-content: flex-start;
    width: 100%;
}

.year-scroller::-webkit-scrollbar {
    display: none;
}

.year-btn {
    flex-shrink: 0;
    padding: 5px 0;
    /* Reducido de 10px a 5px */
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    opacity: 0.6;
}

[data-theme="dark"] .year-btn {
    background: transparent;
}

.year-btn:hover {
    color: var(--text-main);
    opacity: 1;
}

[data-theme="dark"] .year-btn:hover {
    background: transparent;
}

.year-btn.active {
    background: transparent;
    color: var(--text-main);
    border-bottom: 2px solid var(--accent);
    opacity: 1;
    transform: none;
    font-weight: 600;
}

[data-theme="dark"] .year-btn.active {
    background: transparent;
    color: var(--text-main);
}

/* En móvil siempre alineado a la izquierda */
@media (max-width: 1024px) {
    .apple-timeline-nav {
        top: 70px;
        /* Ajustado al nuevo alto del nav móvil */
    }

    .year-scroller {
        justify-content: flex-start;
        padding: 5px 25px;
    }
}

/* --- CUADRÍCULAS DE CONTENIDO (Representantes y Monumentos) --- */
.repres-grid,
.monument-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px 20px 120px;
    max-width: 100%;
    /* Permitir que ocupe todo el ancho disponible */
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    /* Permitir siempre que bajen si no caben */
    align-items: flex-start;
}

@media (min-width: 1024px) {

    .repres-grid,
    .monument-grid {
        flex-wrap: wrap;
        /* Asegurar que no se corten en pantallas medianas */
        gap: 60px;
    }
}

.repres-card,
.monument-card {
    width: 380px;
    flex-shrink: 1;
    min-width: 280px;
    background: transparent;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

.repres-card:hover,
.monument-card:hover {
    transform: translateY(-5px);
}

.repres-img-container,
.monument-img-container {
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.repres-img-container img,
.monument-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(20%);
}

.repres-card:hover .repres-img-container,
.monument-card:hover .monument-img-container {
    box-shadow: none;
    /* Sin sombras baratas, solo cambio de borde/filtro */
    border-color: var(--text-main);
}

.repres-card:hover .repres-img-container img,
.monument-card:hover .monument-img-container img {
    transform: scale(1.05);
    /* Efecto zoom sutíl */
    filter: grayscale(0%);
}

.repres-info,
.monument-info {
    padding: 24px 0px;
    /* Alineado a la izquierda perfecto */
}

.repres-info h3,
.monument-info h3 {
    font-size: 0.70rem;
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* --- ELEMENTOS DE DISEÑO MONUMENTOS --- */

/* 1. Etiqueta de Sección (Glassmorphism sobre imagen) */
.card-section-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 0;
    color: var(--text-main);
    font-size: 0.7rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    pointer-events: none;
    box-shadow: none;
}

[data-theme="dark"] .card-section-tag {
    background: var(--bg-color);
    border-color: var(--border-color);
}

/* 2. Lista de Premios */
.monument-awards-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.info-award-item {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
    background: var(--card-bg);
    padding: 6px 14px;
    border-radius: 0;
    /* Radical Minimalism */
    border: 1px solid var(--border-color);
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.info-award-item i {
    font-size: 1.1rem;
}

/* Rank Colors */
.info-award-item.rank-gold {
    color: #b8860b;
    background: linear-gradient(135deg, #fff9e6 0%, #ffe082 100%);
    border-color: #ffd54f;
}

.info-award-item.rank-gold i {
    color: #d4af37;
}

.info-award-item.rank-silver {
    color: #546e7a;
    background: linear-gradient(135deg, #ffffff 0%, #eceff1 100%);
}

.info-award-item.rank-silver i {
    color: #90a4ae;
}

.info-award-item.rank-bronze {
    color: #8d6e63;
    background: linear-gradient(135deg, #efebe9 0%, #d7ccc8 100%);
}

.info-award-item.rank-bronze i {
    color: #cd7f32;
}

.info-award-item.rank-ig {
    color: #b71c1c;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.info-award-item.rank-ig i {
    color: #f44336;
}

.info-award-item.rank-pintura {
    color: #1b5e20;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.info-award-item.rank-pintura i {
    color: #4caf50;
}

[data-theme="dark"] .info-award-item {
    background: rgba(255, 255, 255, 0.05);
}

/* 3. Estilo Bocetos */
.boceto-lema {
    font-style: italic;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 8px;
    font-size: 0.9rem;
    padding-left: 10px;
    border-left: 2px solid var(--accent);
}

.repres-info p,
.monument-info p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* --- RESPONSIVE (MÓVIL) --- */
/* --- ESTILO LLIBRETS (ESTANTERÍA PREMIUM) --- */
.llibret-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    padding: 60px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.book-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    perspective: 1000px;
}

.book-cover {
    width: 100%;
    aspect-ratio: 1 / 1.4;
    border-radius: 0;
    position: relative;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.book-card:hover .book-cover {
    transform: translateY(-8px);
    box-shadow: none;
    border-color: var(--text-main);
}

/* Efecto de brillo dinámico */
.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.book-card:hover .book-cover::after {
    opacity: 1;
}

.book-premio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--accent), #b8860b);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.book-premio i {
    flex-shrink: 0;
}

.book-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
}

.book-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* VISOR PDF PREMIUM */
.pdf-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pdf-lightbox.active {
    display: flex;
    opacity: 1;
}

.pdf-container {
    width: 90%;
    height: 90%;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdf-lightbox.active .pdf-container {
    transform: scale(1);
}

.pdf-header {
    padding: 15px 25px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-header span {
    font-weight: 800;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 768px) {

    .repres-grid,
    .monument-grid {
        gap: 30px;
        padding: 0 20px 40px 20px;
    }

    .repres-card,
    .monument-card {
        width: 100%;
        max-width: 100%;
    }

    .repres-img-container,
    .monument-img-container {
        height: 480px;
        border-radius: 24px;
    }

    .repres-info p,
    .monument-info p {
        font-size: 1.15rem;
    }
}

/* =========================================
   DISEÑO APP: [MENÚ - LOGO - MÚSICA]
   ========================================= */

@media (max-width: 1024px) {

    /* 1. CONTENEDOR DE LA BARRA (NAV) */
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        gap: 15px;
        height: 70px;
        /* Consistencia con desktop */
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        position: fixed !important;
        top: 0 !important;
        left: 0;
        width: 100%;
        z-index: 2000;
    }

    /* 2. MENÚ HAMBURGUESA (Izquierda) */
    .hamburger {
        display: block;
        position: relative;
        z-index: 2001;
        background: none;
        box-shadow: none;
        border: none;
        width: auto;
        height: auto;
        font-size: 1.4rem;
        color: var(--text-main);
        cursor: pointer;
        margin: 0;
        order: 1;
        /* A la izquierda */
    }

    .logo {
        order: 2;
        margin-right: auto;
        /* Empuja utils y lang a la derecha */
        gap: 8px;
    }

    .logo-text {
        display: none;
    }

    .escudo-logo {
        display: block;
    }

    /* 3. UTILIDADES Y LENGUAJE (Derecha) */
    .nav-utils {
        order: 3;
        display: flex;
        gap: 5px;
        align-items: center;
        margin-left: 0;
    }

    .nav-utils a,
    .search-trigger,
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .lang-selector {
        order: 4;
        margin-left: 8px;
        gap: 4px;
        font-size: 0.75rem;
    }

    .lang-selector button {
        padding: 2px 4px;
    }

    /* Eliminados overrides redundantes de héroes en responsive */

    body.is-scrolled .hero-title {
        font-size: clamp(1.8rem, 6.4vw, 4rem) !important;
        margin-bottom: 5px !important;
    }

    body.is-scrolled .category-eyebrow,
    body.is-scrolled .hero-subtitle {
        display: block !important;
    }

    .apple-timeline-nav {
        top: 0 !important;
    }

    /* Menú móvil desplegable */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        max-width: 100%;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding-top: 0;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1500;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-family: 'Outfit', sans-serif;
        color: var(--text-main);
        font-weight: 500;
        display: inline-block;
        padding: 10px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
    }

    .social-nav {
        display: none !important;
    }


}

/* --- ESTILOS DE LA CUENTA ATRÁS (EVENTOS) --- */
.event-timer {
    background: rgba(212, 175, 55, 0.1);
    /* Fondo dorado suave */
    color: var(--secondary);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    margin-top: auto;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: center;
    gap: 10px;
}

.timer-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    min-width: 40px;
}

.timer-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    font-variant-numeric: tabular-nums;
    /* Evita que los números bailen */
}

.timer-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 4px;
    letter-spacing: 1px;
}

.no-events-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* --- ESTILOS DE LA SECCIÓN DE BIENVENIDA --- */
.welcome-section {
    padding: 5rem 2rem;
    max-width: 1800px;
    margin: 0 auto;
    text-align: center;
}

/* --- NUEVO GRID DE CARACTERÍSTICAS (ICONOS) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-item {
    padding: 3.5rem 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    transition: transform 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feature-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
    gap: 8px;
}

.feature-link:hover {
    gap: 12px;
}

/* --- ESTILO DE FOOTER RADICAL MINIMALISM --- */
.main-footer {
    background-color: var(--secondary);
    color: #ffffff;
    padding: 100px 20px 0;
    margin-top: 0; /* Pegado al carrusel de transición */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Restablecimiento de la línea de acento superior minimalista */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.2;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 120px;
}

/* Bloque Izquierda: Marca y Newsletter */
.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-escudo {
    height: 90px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: -0.05em;
    line-height: 0.9;
    text-transform: uppercase;
}

.brand-name span {
    color: var(--accent);
    font-weight: 800;
    display: block;
}

.brand-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-top: 15px;
}

.footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 2;
    max-width: 450px;
    font-weight: 300;
}

/* Newsletter Section - Ultra Radical */
.footer-newsletter {
    background: transparent;
    padding: 0;
    border: none;
    max-width: 400px;
}

.newsletter-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 25px;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.newsletter-form .input-group {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    transition: border-color 0.4s ease;
}

.newsletter-form .input-group:focus-within {
    border-color: var(--accent);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 0;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 300;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    background: transparent;
    color: var(--accent);
    border: none;
    padding: 0 10px;
    cursor: pointer;
    transition: transform 0.4s ease;
    font-size: 1.2rem;
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* Grilla de Enlaces */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.footer-title {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.contact-info li a {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.6;
}

.contact-info i {
    color: var(--accent);
    margin-top: 5px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* App Buttons - Minimalist Cards */
.footer-app-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    border-radius: 0;
}

.app-btn i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.app-btn-text {
    display: flex;
    flex-direction: column;
}

.app-btn-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.app-btn-main {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 1px;
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--accent);
    transform: translateX(5px);
}

/* Publicidad Minimalista */
.footer-ads {
    max-width: 1600px;
    margin: 20px auto 0;
    padding: 2px;
}

/* Bottom Footer - Flush with design */
.footer-bottom {
    margin-top: 100px;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-links a:hover {
    color: var(--accent);
}

.separator {
    color: rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE FOOTER RADICAL */
@media (max-width: 1400px) {
    .footer-container {
        gap: 80px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .footer-brand-section {
        align-items: flex-start;
        text-align: left;
    }

    .footer-logo {
        flex-direction: row;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-newsletter {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 80px 20px 0;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .footer-bottom-container {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .legal-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}


/* --- MONUMENTOS (NUEVO ESTILO POR BLOQUES) ---*/
#spotlightContent {
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.no-data-msg {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
}

/* --- SECCIÓN INTRODUCCIÓN --- */
.intro-history {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    max-width: 1600px !important;
    margin: 0 auto;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content .section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--secondary);
    letter-spacing: -1px;
}

.highlight {
    color: var(--accent);
}

.intro-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* --- SECCIÓN ESTADÍSTICAS --- */
.history-stats {
    background: var(--secondary);
    padding: 100px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* --- SECCIÓN VALORES --- */
.history-values {
    padding: 80px 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: transparent;
    padding: 40px;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.5s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.05);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Ajustes Responsive Stats/Values */
@media (max-width: 1024px) {

    .stats-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-content .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 30px 20px;
    }
}

/* --- MILESTONE LIBRARY (Formerly Timeline) --- */
.timeline-container {
    padding: 2rem 5%;
    background: transparent;
    position: relative;
    overflow: hidden;
    /* Eliminamos mask-image por rendimiento: causa lag extremo al hacer scroll */
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1800px;
    margin: 0 auto;
}

.timeline-date {
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--text-main);
    background: var(--bg-color);
    padding: 6px 14px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    box-shadow: none;
    text-transform: uppercase;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.4s ease;
    height: 100%;
    position: relative;
    width: 100%;
    border: none;
}

.timeline-item:hover {
    transform: translateY(-8px);
}

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

.content-header h3 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

.timeline-content {
    padding: 20px 10px;
}

.timeline-img-box {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    order: -1;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-in;
    filter: grayscale(15%);
}

.timeline-item:hover .timeline-img-box {
    box-shadow: none;
    border-color: var(--text-main);
}

.timeline-item:hover .timeline-img {
    transform: scale(1.05);
    filter: none;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* --- RESPONSIVE TIMELINE GRID --- */
@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .timeline {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .timeline-container {
        padding: 40px 20px;
    }

    /* Stats & Values Mobile (Keep strictly for mobile phones) */
    .stats-grid,
    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .history-stats {
        padding: 60px 20px;
    }

    .stat-number {
        font-size: 3rem;
    }

}

/* --- HERITAGE CTA --- */
.heritage-cta {
    position: relative;
    padding: 150px 20px 0;
    background: url('img/historia7.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--secondary) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.heritage-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.heritage-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-gold {
    background: var(--text-main);
    color: var(--bg-color);
    padding: 15px 35px;
    border-radius: 0;
    font-weight: 700;
}

.btn-outline {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    padding: 13px 35px;
    border-radius: 0;
    font-weight: 700;
}

.btn-outline:hover {
    background: white;
    color: var(--secondary);
}

/* RESPONSIVE HERITAGE CTA */
@media (max-width: 768px) {
    .heritage-cta {
        padding: 80px 20px 60px;
        /* Reduce padding significantly */
    }

    .heritage-cta h2 {
        font-size: 2rem;
        /* Smaller headline */
        margin-bottom: 20px;
    }

    .heritage-cta p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .cta-btns {
        flex-direction: column;
        /* Stack buttons vertically */
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 15px;
    }

    .btn-gold,
    .btn-outline {
        width: 100%;
        /* Full width for easier tapping */
        text-align: center;
        padding: 12px 20px;
    }
}

/* --- CLASE PARA LECTORES DE PANTALLA (Accesibilidad) --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   CUENTA ATRÁS SIGLO 22 (MINIMALISMO RADICAL)
   ========================================= */

.header-22 {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 10%, var(--card-bg) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.elegant-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: luxuriousGlow 15s infinite alternate ease-in-out;
}

@keyframes luxuriousGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

.content-22 {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}

/* Timer Minimalista Flotante */
.timer-22 {
    display: flex;
    gap: 8rem;
    align-items: flex-end;
}

.unit-22 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.num-22 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(5rem, 15vw, 13rem);
    font-weight: 300;
    line-height: 0.85;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    min-width: 1.5em;
    text-align: center;

    /* El gradiente de texto premium para el countdown */
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.label-22 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    color: var(--accent);
    text-transform: uppercase;
    margin-top: 2rem;
    opacity: 0.9;
}

.title-22 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.6em;
    color: var(--text-main);
    opacity: 0.5;
    text-transform: uppercase;
    margin-top: 3rem;
    text-align: center;

    transition: opacity 0.5s;
}

.header-22:hover .title-22 {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .timer-22 {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .timer-22>.unit-22 {
        width: 40%;
    }

    .num-22 {
        font-size: 4rem;
    }
}


#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    perspective: 800px;
}

.ember {
    position: absolute;
    border-radius: 50%;
    background: #ffcc00;
    opacity: 0;
}

.layer-far {
    filter: blur(4px);
    z-index: 1;
}

.layer-mid {
    filter: blur(1px);
    z-index: 4;
}

.layer-close {
    filter: blur(8px);
    z-index: 20;
}

/* =========================================
   PUBLICACIONES NACIONALES (ACTUALIDAD)
   ========================================= */
.news-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(230, 126, 34, 0.3);
}

.news-media-wrapper {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.news-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-media {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 2;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
}

.news-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-family: 'Inter', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   CAROUSEL DE SPONSORS (TRANSICIÓN DE ALTA GAMA)
   ========================================= */
.sponsors-section {
    width: 100%;
    background-color: var(--bg-color); /* Fondo claro de la página */
    border-top: 1px solid var(--border-color);
}

.sponsors-carousel {
    width: 100%;
    overflow: hidden;
    padding: 60px 0; /* Mucho aire para lujo */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.sponsors-track {
    display: flex;
    align-items: center;
    gap: 250px;
    padding-right: 250px;
    /* Igual al gap para mantener proporción */
    width: max-content;
    animation: scrollSponsors 90s linear infinite;
    will-change: transform;
}

.sponsors-track:hover {
    animation-play-state: paused;
}

.sponsor-logo {
    height: 55px; /* Más pequeño = más sofisticado */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(25%); /* Casi imperceptibles, sello de calidad */
    transition: filter 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    cursor: pointer;
}

.sponsor-logo:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.1);
}

@keyframes scrollSponsors {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustment for sponsors */
@media (max-width: 768px) {
    .sponsors-carousel {
        padding: 40px 0;
    }

    .sponsors-track {
        gap: 120px;
        padding-right: 120px;
    }

    .sponsor-logo {
        height: 40px;
    }
}