/* ===================================================================
   VARIABLES GLOBALES Y FUENTES
=================================================================== */
:root {
    --primary-bg-color: #121212;
    --secondary-bg-color: #1e1e1e;
    --card-bg-color: #2a2a2a;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #b0b0b0;
    --accent-color: #a2ff09;
    --accent-hover-color: #8bcc07;
    --border-color: #383838;
    --font-family-raleway: 'Raleway', sans-serif;
    --font-family-sporta: 'Sporta', sans-serif; 
    --font-family-hero-title: 'Oswald', sans-serif;
    --section-padding: 80px 20px;
    --container-width: 100%;
    --max-container-width: 1100px;
    --header-height: 70px;
    --logo-size-web: 100px;
    --logo-actual-overlap: calc(var(--logo-size-web) - var(--header-height));

    /* --- VARIABLE DE TEXTURA --- */
    --texture-pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@font-face {
    font-family: 'Sporta'; 
    src: url('../assets/fonts/Sporta.ttf') format('ttf'), 
         url('../assets/fonts/SportaRegular.ttf') format('ttf');  
    font-weight: normal;
    font-style: normal;
}

/* ===================================================================
   ESTILOS BASE Y PRELOADER
=================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: var(--font-family-raleway); 
    line-height: 1.6; 
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color); 
    font-weight: 400; 
    overflow-x: hidden; 
}
.container { width: var(--container-width); max-width: var(--max-container-width); margin: auto; }


body :is(h1, h2, h3) {
    font-family: var(--font-family-hero-title);
    font-weight: 700;
    text-transform: uppercase;
}

body :is(h1, h2, h3) {
    font-family: var(--font-family-hero-title);
    font-weight: 700;
    text-transform: uppercase;
}

body :is(h1) {
   font-size: clamp(2.5rem, 8vw, 4.5rem) !important; 
}

body :is(h2) {
   font-size: clamp(2.2rem, 8vw, 4.5rem) !important; 
}

body :is(h3) {
   font-size: clamp(1.5rem, 8vw, 1.5rem) !important; 
}


#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #0a0a0a; z-index: 9999; 
    display: flex; justify-content: center; align-items: center;
    opacity: 1; visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0s linear 0.8s; 
}
#preloader.preloader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo img {
    max-width: 150px;
    max-height: 150px;
    animation: pulseLogo 1.8s infinite ease-in-out;
}
@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}
/* ===================================================================
   Estilos para Cards del Editor de Ghost
=================================================================== */

/* Esta es tu clase principal para el contenido de los posts */
.post-content {
    max-width: 720px; /* Ajusta este valor al ancho de tu contenido principal */
    margin: 0 auto;
}

/* --- ESTILOS REQUERIDOS POR GHOST --- */

/* Para el ancho "Ancho" (Wide) */
.kg-width-wide {
    /* Hacemos que sea más ancho que el contenido normal */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Para el ancho "Completo" (Full) */
.kg-width-full {
    /* Rompemos el contenedor principal para que ocupe toda la pantalla */
    max-width: 100vw;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Asegurarnos de que las imágenes dentro de estos contenedores se comporten bien */
.kg-width-wide img,
.kg-width-full img {
    width: 100%;
    height: auto;
}
/* ===================================================================
   FONDOS CON TEXTURA
=================================================================== */
@keyframes animatedTexturePan { 0% { background-position: 0 0; } 100% { background-position: 250px 250px; } }

.textured-background { position: relative; z-index: 0; }
.textured-background::before {
    content: ""; 
    background-image: var(--texture-pattern-light);
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1; pointer-events: none; 
}
.texture-primary-fixed::before { 
    background-attachment: fixed; 
    background-position: center center; 
    background-repeat: repeat; 
    opacity: 1;
}
.texture-secondary-animated { overflow: hidden; }
.texture-secondary-animated::before { 
    background-repeat: repeat; 
    animation: animatedTexturePan 40s linear infinite; 
    opacity: 1;
}

/* ===================================================================
   HEADER Y NAVEGACIÓN
=================================================================== */
header#main-header { background-color: var(--secondary-bg-color); color: var(--primary-text-color); position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.5); height: var(--header-height); }
header#main-header .header-container { display: flex; align-items: center; height: 100%; padding: 0 20px; max-width: var(--max-container-width); margin: 0 auto; position: relative; }
.logo-container { position: absolute; left: 20px; top: 0; width: var(--logo-size-web); height: var(--logo-size-web); z-index: 1001; background-color: var(--secondary-bg-color); border-radius: 0 0 4px 4px; box-shadow: 0 4px 8px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; }
.logo-container img.main-logo { max-width: 100%; max-height: calc(100% - 10px); object-fit: contain; display: block; }
nav#main-nav { margin-left: calc(var(--logo-size-web) + 30px); display: flex; align-items: center; height: 100%; flex-grow: 1; justify-content: flex-end; }
nav ul { list-style: none; display: flex; align-items: center; }
nav ul li { margin-left: 5px; position: relative; }
nav ul li a { color: var(--primary-text-color); text-decoration: none; font-size: 0.95em; font-weight: 500; padding: 10px 12px; display: block; border-bottom: 3px solid transparent; transition: color 0.3s ease, border-bottom-color 0.3s ease; }
nav ul li a:hover, nav ul li a.active { color: var(--accent-color); border-bottom-color: var(--accent-color); background-color: transparent !important; }
nav ul li a.active { font-weight: 600; }
nav ul li ul.submenu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--secondary-bg-color); border: 1px solid var(--border-color); border-top: none; box-shadow: 0 4px 8px rgba(0,0,0,0.3); min-width: 200px; z-index: 1001; padding: 5px 0; }
nav ul li:hover > ul.submenu { display: block; }
nav ul li ul.submenu li { margin-left: 0; width: 100%; }
nav ul li ul.submenu li a { padding: 10px 15px; font-size: 0.9em; border-bottom: none; white-space: nowrap; }
nav ul li ul.submenu li a:hover, nav ul li ul.submenu li a.active { color: var(--accent-color); background-color: rgba(162, 255, 9, 0.1); border-bottom-color: transparent; }
.lang-switcher a { padding: 6px 10px !important; border: 1px solid var(--border-color); border-radius: 4px; font-weight: 600; margin-left: 15px; }
.lang-switcher a:hover, .lang-switcher a.active-lang { border-color: var(--accent-color); color: var(--accent-color); background-color: rgba(162, 255, 9, 0.1) !important; }
.menu-toggle { display: none; font-size: 1.8em; color: var(--primary-text-color); cursor: pointer; }

/* ===================================================================
   ESTILOS DE SECCIONES GENERALES
=================================================================== */
section { padding: var(--section-padding); overflow: hidden; }
section:not(#hero-video) { padding-top: calc(var(--logo-size-web) + 30px); }

#hero-video {
    height: 100vh; width: 100%; overflow: hidden; position: relative;
    background-color: #000; display: flex; align-items: center;
    justify-content: center; text-align: center; padding-top: 0 !important;
}
#hero-video video {
    position: absolute; top: 50%; left: 50%; min-width: 100%;
    min-height: 100%; width: auto; height: auto; z-index: 0;
    transform: translateX(-50%) translateY(-50%); object-fit: cover;
}
#hero-video .video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); z-index: 1;
}
#hero-video .hero-content {
    position: relative; z-index: 2; color: #ffffff; padding: 20px;
    display: flex; flex-direction: column; align-items: center; width: 100%;
}
.animated-title-container {
    position: relative; height: 250px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 40px; width: 100%;
}
#hero-video .hero-content h1 {
    font-family: var(--font-family-hero-title); font-weight: 700;
    text-transform: uppercase; line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); position: absolute;
    opacity: 0; transition: opacity 0.8s ease-in-out;
}
#title-part-1 { font-size: clamp(5rem, 10vw, 9rem) !important; }
#title-part-2 { font-size: clamp(4.5rem, 8vw, 7rem) !important; }
#hero-video .hero-content h1.is-visible { opacity: 1; }
.btn-video-reel {
    font-family: var(--font-family-body); background-color: var(--accent-color);
    color: var(--primary-bg-color); border: 2px solid var(--accent-color);
    border-radius: 10px; padding: 12px 30px; font-size: 1rem;
    font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease;
    position: relative; z-index: 5;
}
.btn-video-reel:hover {
    background-color: var(--accent-hover-color); border-color: var(--accent-hover-color);
    color: var(--primary-bg-color);
}

/* #introduccion { background-color: var(--primary-bg-color); } */ /* Eliminado para el nuevo diseño */
#que-hacemos { background-color: transparent !important; text-align: center; }
#youtube-video { background-color: var(--secondary-bg-color); text-align: center; display: none;}
#el-equipo { background-color: #000000 !important; }
#talentos { background-color: var(--secondary-bg-color); } 
#marcas-amigas { background-color: #000000 !important; height: 100vh !important;}
#proyectos { background-color: var(--secondary-bg-color); }
#noticias { background-color: var(--primary-bg-color); }
#galeria { background-color: #000000 !important; }

.section-title { text-align: center; font-size: 2.3em; margin-bottom: 50px; color: var(--primary-text-color); position: relative; font-weight: 600; }
.section-title::after { content: ''; display: block; width: 70px; height: 4px; background: var(--accent-color); margin: 10px auto 0; }


 /* ===================================================================
              LA CLASE PARA LA TRANSICIÓN DE FLECHA
=================================================================== */

.section-divider-arrow {
    position: relative; /* Necesario para un apilamiento correcto */
    
    /* Ajusta este padding para dar más o menos espacio a la flecha */
    padding-bottom: 120px !important; 
    background-color: #000 !important;
    
    /* La magia del recorte: se define la forma del polígono */
    /* Puntos: 
       1. Top-Left -> 2. Top-Right -> 3. Bottom-Right (antes de la flecha) -> 
       4. Base derecha de la flecha -> 5. Punta de la flecha -> 
       6. Base izquierda de la flecha -> 7. Bottom-Left (antes de la flecha) */
    clip-path: polygon(
        0% 0%, 
        100% 0%, 
        100% calc(100% - 50px), 
        55% calc(100% - 50px), 
        50% 100%, 
        45% calc(100% - 50px), 
        0% calc(100% - 50px)
    );
}

/* ===================================================================
   COMPONENTES ESPECÍFICOS
=================================================================== */

/* --- INICIO: NUEVOS ESTILOS SECCIÓN INTRODUCCIÓN --- */
#introduccion {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    overflow: hidden;
    background: none; /* Se elimina el color de fondo para que la capa de imagen funcione */
}

/* Capa de fondo con imagen y tinte */
.intro-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--primary-bg-color); /* Color de fallback */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax */
}
.intro-background-layer::after { /* Tinte oscuro */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(18, 18, 18, 0.7);
}

/* Contenedor principal del contenido */
.intro-content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 0;
}

/* Contenedor de la imagen protagonista */
.intro-hero-image-wrapper {
    position: relative;
    z-index: 10;
    align-self: center;
}
.intro-hero-image-wrapper img {
    width: 100%;
    max-width: 550px;
    height: auto;
    transform: scale(1.1) translateX(-5%);
    filter: drop-shadow(10px 8px 25px rgba(0,0,0,0.5));
}

/* Tarjeta de texto */
.intro-text-card {
    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    padding-left: 100px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

}

.intro-text-card h2 {
    font-family: var(--font-family-hero-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #fff;
}
.intro-text-card h2 span {
    color: var(--accent-color);
}
.intro-text-card h1::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--accent-color);
    margin-top: 15px;
}

.intro-text-card p {
    font-size: 1em;
    color: var(--primary-text-color);
    margin-bottom: 20px;
    max-width: 55ch;
}
.intro-text-card p:last-of-type {
    margin-bottom: 30px;
}
/* --- FIN: NUEVOS ESTILOS SECCIÓN INTRODUCCIÓN --- */


/* --- MÓDULO "¿QUÉ HACEMOS?" --- */
#que-hacemos {
    padding: 0; 
    padding-bottom: 80px; 
}
#que-hacemos .section-title {
    padding-top: 80px;
}
.services-interactive-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}
.service-item-interactive {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-item-interactive:hover {
    transform: scale(1.03);
    z-index: 5;
}
.service-item-interactive::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, transparent 100%);
    z-index: 1;
    transition: height 0.4s ease;
}
.service-item-interactive:hover::before {
    height: 70%;
}
.service-footer-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #fff;
    font-family: var(--font-family-sporta);
    font-size: clamp(1em, 2.5vw, 1.4em);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.plus-icon {
    font-size: 1.8em;
    font-weight: 300;
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}
.service-item-interactive:hover .plus-icon {
    color: var(--accent-color);
    transform: scale(1.2);
}
.service-overlay-content {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(18, 18, 18, 0.97);
    color: var(--primary-text-color); padding: 30px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; opacity: 0; visibility: hidden;
    transform: scale(1.1);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    z-index: 10;
}
.service-item-interactive.overlay-active .service-overlay-content {
    opacity: 1; visibility: visible; transform: scale(1);
}
.close-overlay-interactive-btn {
    position: absolute; top: 15px; right: 15px;
    background: transparent; border: none; color: var(--primary-text-color);
    font-size: 2.5em; line-height: 1; cursor: pointer;
    padding: 5px; transition: color 0.3s ease, transform 0.3s ease;
}
.close-overlay-interactive-btn:hover { color: var(--accent-color); transform: rotate(90deg); }
.overlay-title-interactive {
    font-family: var(--font-family-sporta); font-size: 1.8em;
    color: var(--accent-color); margin-bottom: 15px; font-weight: 700;
}
.overlay-description-interactive { font-size: 0.95em; line-height: 1.7; max-width: 90%; }


/* --- ESTILOS PARA TALENTOS (SE MANTIENEN SEPARADOS) --- */
.talents-interactive-row { display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; }
.talent-item-interactive { flex: 1 1 calc(25% - 20px); min-width: 220px; max-width: 280px; height: 450px; position: relative; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; cursor: pointer; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 5px 15px rgba(0,0,0,0.3); margin-bottom: 20px; }
.talent-item-interactive:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 12px 25px rgba(0,0,0,0.4); }
.talent-footer-title { position: absolute; bottom: 0; left: 0; width: 100%; background-color: rgba(0, 0, 0, 0.75); color: #fff; text-align: center; padding: 0 10px; font-weight: 600; font-size: 1.1em; transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; z-index: 5; display: flex; align-items: center; justify-content: center; min-height: 70px; box-sizing: border-box; }
.talent-overlay-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(18, 18, 18, 0.96); color: var(--primary-text-color); padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.4s ease-in-out; z-index: 10; box-sizing: border-box; }
.talent-item-interactive.overlay-active .talent-overlay-content { opacity: 1; visibility: visible; transform: translateY(0); }
.talent-item-interactive.overlay-active .talent-footer-title { opacity: 0; transform: translateY(100%); }
.overlay-title-talent { font-size: 1.5em; color: var(--accent-color); margin-bottom: 15px; font-weight: 700; }
.overlay-description-talent { font-size: 0.95em; line-height: 1.6; margin-bottom: 20px; max-height: 200px; overflow-y: auto; }
.close-overlay-talent-btn { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: var(--primary-text-color); font-size: 2em; line-height: 1; cursor: pointer; padding: 5px; transition: color 0.3s ease; }
.close-overlay-talent-btn:hover { color: var(--accent-color); }

/* --- Divisor con Iconos Sociales --- */
.social-divisor-container { display: flex; align-items: center; margin: 70px auto; padding: 0; }
.social-divisor-line { flex-grow: 1; height: 1px; background-color: var(--border-color); }
.social-divisor-icons { display: flex; gap: 20px; padding: 0 25px; }
.social-divisor-icons a { color: var(--secondary-text-color); font-size: 1.5em; transition: color 0.3s ease, transform 0.3s ease; }
.social-divisor-icons a:hover { color: var(--accent-color); transform: scale(1.1); }

/* --- Video de YouTube --- */
.youtube-video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 800px; margin: 20px auto; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.youtube-video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 80vh; border: none; }

/* --- SECCIÓN DE EQUIPO --- */
#el-equipo .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.team-member-card { background-color: var(--card-bg-color); border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.team-member-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); }
.team-member-image-container { position: relative; width: 100%; }
.team-member-image-container img { display: block; width: 100%; height: 450px; object-fit: cover; object-position: center center; }
.team-member-linkedin { position: absolute; bottom: 15px; right: 15px; background-color: rgba(0, 0, 0, 0.5); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1em; text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease; }
.team-member-linkedin:hover { background-color: var(--accent-color); color: var(--primary-bg-color); }
.team-member-linkedin i { line-height: 1; }
.team-member-info { padding: 25px; text-align: left; flex-grow: 1; display: flex; flex-direction: column; }
.team-member-name { font-family: var(--font-family-sporta); color: var(--accent-color); font-size: 1.6em; font-weight: 700; margin-bottom: 5px; }
.team-member-role { color: var(--primary-text-color); font-size: 1.1em; font-weight: 600; margin-bottom: 15px; line-height: 1.3; }
.team-member-description { font-size: 0.9em; color: var(--secondary-text-color); line-height: 1.6; font-weight: 400; flex-grow: 1; text-align: justify; }

/* --- Carrusel de Logos --- */
.carousel-container { overflow: hidden; padding: 20px 0; }
.logos-track { display: flex; gap: 40px; align-items: center; padding: 10px; }
/*.logo-item img { max-height: 50px; width: auto; filter: grayscale(80%) opacity(0.7); transition: filter 0.3s ease; }*/
.logo-item img:hover { filter: grayscale(0%) opacity(1); }

/* --- Slider de Proyectos --- */
.project-slider-wrapper { display: flex; align-items: center; justify-content: center; position: relative; max-width: 700px; width: 100%; margin: 30px auto; }
.slider-btn { background-color: rgba(30, 30, 30, 0.8); color: var(--accent-color); border: 1px solid var(--accent-color); font-size: 20px; font-weight: bold; cursor: pointer; border-radius: 50%; z-index: 20; transition: background-color 0.3s ease, color 0.3s ease; flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.slider-btn:hover { background-color: var(--accent-color); color: var(--primary-bg-color); }
.slider-btn.prev { margin-right: 10px; }
.slider-btn.next { margin-left: 10px; }
.project-slider-outer-container { flex-grow: 1; overflow: hidden !important; position: relative; width: 100%; }
.project-slider-inner-container { display: flex !important; flex-direction: row !important; width: fit-content; transition: transform 0.5s ease-in-out; }
.project-slide { width: 100%; min-width: 100%; flex-shrink: 0 !important; box-sizing: border-box; padding: 20px; background-color: var(--card-bg-color); border-radius: 8px; text-align: center; border: 1px solid var(--border-color); opacity: 1; }
.project-slide img { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; margin-bottom: 15px; }
.project-slide h3 { color: var(--accent-color); font-size: 1.5em; margin-bottom: 10px; font-weight: 600; }
.project-slide .project-short-desc { font-size: 0.95em; color: var(--secondary-text-color); margin-bottom: 10px; min-height: 50px; font-weight: 400; }
.project-slide .project-date { font-size: 0.8em; color: #888; display: block; margin-bottom: 15px; font-weight: 500; }
.project-slide .btn-saber-mas { background-color: var(--accent-color); color: var(--primary-bg-color); padding: 10px 20px; text-decoration: none; border-radius: 5px; font-weight: 600; transition: background-color 0.3s ease; display: inline-block; border: none; cursor: pointer; margin-bottom: 15px; }
.project-slide .btn-saber-mas:hover { background-color: var(--accent-hover-color); }

/* --- Lightbox de Proyectos y Modal de Video --- */
.lightbox-modal, .video-modal { 
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; 
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.92); 
    align-items: center; justify-content: center; 
}
.video-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.video-modal.is-active { opacity: 1; visibility: visible; }
.video-modal-content { position: relative; width: 90%; max-width: 960px; aspect-ratio: 16 / 9; }
.video-modal-content iframe { width: 100%; height: 80vh; border: none; }
.close-modal { position: absolute; top: -60px; right: 0; color: #fff; font-size: 3rem; font-weight: bold; cursor: pointer; transition: color 0.3s ease; }
.close-modal:hover { color: var(--accent-color); }

.lightbox-modal-content { position: relative; background-color: var(--card-bg-color); margin: auto; padding: 25px; border: 1px solid var(--border-color); width: 90%; max-width: 700px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); text-align: left; }
.lightbox-modal .close-lightbox-btn { color: var(--secondary-text-color); float: right; font-size: 30px; font-weight: bold; cursor: pointer; line-height: 1; }
.lightbox-modal .close-lightbox-btn:hover, .lightbox-modal .close-lightbox-btn:focus { color: var(--accent-color); text-decoration: none; }
.lightbox-modal img#lightboxProjectImage { width: 100%; max-height: 350px; object-fit: cover; border-radius: 6px; margin-bottom: 20px; }
.lightbox-modal h3#lightboxProjectTitle { color: var(--accent-color); font-size: 1.8em; margin-bottom: 10px; font-weight: 600; }
.lightbox-modal p#lightboxProjectDate { font-size: 0.9em; color: #999; margin-bottom: 15px; font-weight: 500; }
.lightbox-modal div#lightboxProjectFullDescription { font-size: 1em; color: var(--primary-text-color); line-height: 1.7; font-weight: 400; }

/* --- Noticias --- */
.news-language-container { display: none; }
html[lang="es"] #noticias .news-grid .lang-es, html[lang="en"] #noticias .news-grid .lang-en { display: contents; }
#noticias .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
#noticias .news-item { background: var(--card-bg-color); border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); overflow: hidden; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
#noticias .news-item-image-placeholder { height: 200px; background-color: #444; display: flex; justify-content: center; align-items: center; color: var(--secondary-text-color); font-style: italic; }
#noticias .news-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
#noticias .news-item h3 { font-size: 1.3em; color: var(--primary-text-color); margin-bottom: 10px; font-weight: 600; }
#noticias .news-item p { font-size: 0.9em; margin-bottom: 15px; color: var(--secondary-text-color); flex-grow: 1; font-weight: 400; }
#noticias .news-item .read-more { display: inline-block; color: var(--accent-color); text-decoration: none; font-weight: 600; transition: color 0.3s ease; align-self: flex-start; margin-bottom: 10px; }
#noticias .news-item .read-more:hover { color: var(--accent-hover-color); }
.share-buttons-container { margin-top: 10px; text-align: right; }
.share-btn { background: transparent; border: 1px solid var(--accent-color); color: var(--accent-color); padding: 6px 10px; border-radius: 4px; cursor: pointer; margin-left: 8px; font-size: 0.85em; transition: background-color 0.3s, color 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.share-btn i { font-size: 1em; }
.share-btn:hover { background-color: var(--accent-color); color: var(--primary-bg-color); }

/* --- Galería --- */
#galeria .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 30px; }
#galeria .gallery-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
#galeria .gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s ease; }
#galeria .gallery-item:hover img { transform: scale(1.05); }
#galeria .gallery-item .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); color: #fff; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; font-size: 1.5em; }
#galeria .gallery-item:hover .overlay { opacity: 1; }
.gallery-invitation { text-align: center; margin-bottom: 30px; font-size: 1.1em; color: var(--secondary-text-color); }
.gallery-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); align-items: center; justify-content: center; }
.gallery-modal-content { position: relative; margin: auto; padding: 0; width: 90%; max-width: 900px; }
.gallery-modal-content img#modalImage { width: 100%; height: auto; max-height: 80vh; object-fit: contain; display: block; margin: 0 auto; opacity: 1; transition: opacity 0.3s ease-in-out; }
.gallery-modal .close-btn { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 2001; }
.gallery-modal .close-btn:hover, .gallery-modal .close-btn:focus { color: var(--accent-color); text-decoration: none; }
.gallery-modal .prev-btn, .gallery-modal .next-btn { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -50px; color: white; font-weight: bold; font-size: 24px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; background-color: rgba(0,0,0,0.3); }
.gallery-modal .next-btn { right: 0 !important; border-radius: 3px 0 0 3px; }
.gallery-modal .prev-btn { left: 0 !important; border-radius: 3px 0 0 3px; }
.gallery-modal .prev-btn:hover, .gallery-modal .next-btn:hover { background-color: rgba(162, 255, 9, 0.5); }
.slide-counter { color: #f2f2f2; font-size: 12px; padding: 8px 12px; position: absolute; top: 0; left: 10px; z-index: 2001; }

/* --- Botones --- */
.all-news-button-container, .all-projects-button-container, .open-gallery-btn-container { text-align: center; margin-top: 40px; }
.btn-primary { background-color: var(--accent-color); color: var(--primary-bg-color) !important; padding: 12px 25px; text-decoration: none; border-radius: 5px; font-weight: 600; transition: background-color 0.3s ease, color 0.3s ease; display: inline-block; border: none; cursor: pointer; text-align: center; }
.btn-primary:hover { background-color: var(--accent-hover-color); color: var(--primary-bg-color) !important; }

/* --- Contacto --- */
#contacto { padding-top: calc(var(--logo-size-web) + 30px); background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95)), url('https://via.placeholder.com/1920x1080.png/1a1a1a/A2FF09?text=Stadium+Dark+Contact'); background-size: cover; background-position: center center; background-repeat: no-repeat; color: var(--primary-text-color); }
.contact-main-wrapper { display: flex; align-items: center; gap: 40px; }
.contact-image-column { flex-basis: 40%; max-width: 40%; }
.contact-image-column img { width: 100%; height: auto; max-height: 450px; object-fit: cover; border-radius: 8px; }
.contact-form-column { flex-basis: 60%; max-width: 60%; }
#contacto .contact-form-column .section-title { text-align: left; margin-left: 0; color: #fff; }
#contacto .contact-form-column .section-title::after { background: #fff; margin-left: 0; }
#contacto form { background: rgba(30, 30, 30, 0.88); padding: 35px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
#contacto .form-group { margin-bottom: 20px; }
#contacto label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-text-color); }
#contacto input[type="text"], #contacto input[type="email"], #contacto textarea { width: 100%; padding: 14px; border: 1px solid #555; border-radius: 4px; background-color: #333; color: var(--primary-text-color); font-size: 1em; font-weight: 400; }
#contacto input[type="text"]:focus, #contacto input[type="email"]:focus, #contacto textarea:focus { outline: none; border-color: var(--accent-color); background-color: #3a3a3a; }
#contacto textarea { min-height: 130px; resize: vertical; }
#contacto button[type="submit"] { display: block; width: 100%; padding: 14px; background-color: var(--accent-color); color: var(--primary-bg-color); border: none; border-radius: 4px; font-size: 1.1em; cursor: pointer; transition: background-color 0.3s ease; font-weight: 700; }
#contacto button[type="submit"]:hover { background-color: var(--accent-hover-color); }

/* ===================================================================
   FOOTER Y COOKIES
=================================================================== */
footer { text-align: center; padding: 30px 20px; background: #0a0a0a; color: #777; font-size: 0.9em; border-top: 1px solid var(--border-color); }
.social-links { margin-bottom: 15px; }
.social-links a { color: #aaa; margin: 0 12px; font-size: 1.6em; transition: color 0.3s ease; }
.social-links a:hover { color: var(--accent-color); }
.footer-legal-links { margin-top: 10px; margin-bottom:10px; font-size: 0.85em; }
.footer-legal-links a { color: #999; text-decoration: none; margin: 0 8px; }
.footer-legal-links a:hover { color: var(--accent-color); text-decoration: underline; }

.cookie-consent-banner { position: fixed; bottom: -200px; left: 0; width: 100%; background-color: var(--card-bg-color); color: var(--primary-text-color); padding: 15px 0; z-index: 2000; border-top: 1px solid var(--border-color); box-shadow: 0 -2px 10px rgba(0,0,0,0.3); transition: bottom 0.5s ease-in-out; }
.cookie-consent-banner.show { bottom: 0; }
.cookie-consent-content { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.cookie-consent-content p { margin: 0; font-size: 0.9em; flex-grow: 1; }
.cookie-consent-content p a { color: var(--accent-color); text-decoration: underline; }
.cookie-consent-content p a:hover { color: var(--accent-hover-color); }
.cookie-consent-banner button { background-color: var(--accent-color); color: var(--primary-bg-color); border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: 600; transition: background-color 0.3s ease; white-space: nowrap; }
.cookie-consent-banner button:hover { background-color: var(--accent-hover-color); }

/* ===================================================================
   ANIMACIONES Y CLASES DE UTILIDAD
=================================================================== */
.animate-on-scroll { opacity: 0; }
.animate-on-scroll.element-is-shown { opacity: 1; }

/* ===================================================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
=================================================================== */
@media (max-width: 992px) { 
    .logo-container { left: 15px; width: 120px; height: 120px; }
    nav#main-nav { margin-left: calc(120px + 20px); }
    nav ul li a { padding: 10px 6px; font-size: 0.85em; }
    .lang-switcher a { font-size: 0.8em; padding: 5px 8px !important; }
    :root { --logo-actual-overlap: calc(120px - var(--header-height)); }
    section:not(#hero-video) { padding-top: calc(120px + 20px); }

    /* --- REGLAS RESPONSIVAS: INTRODUCCIÓN --- */
    #introduccion .intro-content-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    #introduccion .intro-hero-image-wrapper {
        order: 1;
        text-align: center;
    }
    #introduccion .intro-hero-image-wrapper img {
        max-width: 400px;
        transform: none;
    }
    #introduccion .intro-text-card {
        order: 2;
        padding: 30px;
        text-align: center;
    }
    #introduccion .intro-text-card h1::after {
        margin-left: auto;
        margin-right: auto;
    }
    #introduccion .intro-text-card p {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* --- REGLAS RESPONSIVAS: QUÉ HACEMOS --- */
    .services-interactive-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .talent-item-interactive {
        flex-basis: calc(50% - 20px);
        max-width: calc(50% - 20px);
        margin-bottom: 20px;
    }

    .contact-main-wrapper { flex-direction: column; }
    .contact-image-column, .contact-form-column { flex-basis: 100%; max-width: 100%; }
    .contact-image-column { margin-bottom: 30px; max-width: 70%; margin-left: auto; margin-right: auto; }
    #contacto .contact-form-column .section-title { text-align: center; }
    #contacto .contact-form-column .section-title::after { margin: 10px auto 0; }
    .cookie-consent-content { flex-direction: column; text-align: center; }
    .cookie-consent-content p { margin-bottom: 10px; }
    .social-divisor-icons { gap: 15px; padding: 0 15px; }
    .social-divisor-icons a { font-size: 1.3em; }
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .team-member-image-container img { height: 400px; }
}

@media (max-width: 768px) { 
    :root { --header-height: 60px; }
    section:not(#hero-video) { padding-top: calc(var(--header-height) + 20px); } 
    header#main-header .header-container { justify-content: space-between; padding-left: 15px; }
    .logo-container { position: static; width: auto; height: var(--header-height); margin-right: auto; background-color: transparent; box-shadow: none; border-radius: 0;}
    .logo-container img.main-logo { width: auto; height: calc(var(--header-height) - 10px); border-radius: 4px; box-shadow: none; margin-top: 5px; }
    nav#main-nav { margin-left: 0; position: fixed; top: var(--header-height); left: 0; width: 100%; background-color: var(--secondary-bg-color); box-shadow: 0 2px 5px rgba(0,0,0,0.3); max-height: 0; height: 0; overflow-y: auto; transition: max-height 0.4s ease-in-out, height 0.4s ease-in-out; z-index: 999; }
    nav#main-nav.active { max-height: calc(100vh - var(--header-height)); height: calc(100vh - var(--header-height)); display: flex; flex-direction: column; justify-content: flex-start; padding-top: 20px; box-sizing: border-box; }
    .menu-toggle { display: block; position: static; transform: none; } 
    nav ul { flex-direction: column; width: 100%; padding: 0; }
    nav ul li { margin: 0; width: 100%; }
    nav ul li a { padding: 14px 20px; border-bottom: 1px solid var(--border-color); text-align: left; }
    nav ul li:last-child a { border-bottom: none; }
    .lang-switcher { width: 100%; text-align: center; }
    .lang-switcher a { display: inline-block; width: auto; margin: 10px auto; }
    
    .section-title { font-size: 1.8em; }
    #noticias .news-grid, #galeria .gallery-grid, #el-equipo .team-grid { grid-template-columns: 1fr; }
    .logos-track { overflow-x: auto; padding-bottom: 15px; justify-content: flex-start; }
    .gallery-modal-content { width: 95%; }
    .project-slider-wrapper { max-width: 95%; padding: 0; }
    .project-slider-outer-container { margin: 0 5px; }
    .slider-btn { padding: 6px 10px; font-size: 18px; width: 32px; height: 32px; }
    .lightbox-modal-content { width: 95%; padding: 20px; }
    .lightbox-modal img#lightboxProjectImage { max-height: 250px; }
    .lightbox-modal h3#lightboxProjectTitle { font-size: 1.5em; }

    /* --- REGLAS RESPONSIVAS: INTRODUCCIÓN --- */
    #introduccion {
        padding: 80px 15px;
        min-height: unset;
    }
    #introduccion .intro-hero-image-wrapper img {
        max-width: 320px;
    }

    /* --- REGLAS RESPONSIVAS: QUÉ HACEMOS --- */
    .services-interactive-row {
        grid-template-columns: 1fr;
    }
    #que-hacemos .section-title {
        padding-left: 20px;
        padding-right: 20px;
    }
    .talent-item-interactive {
        flex-basis: 100%;
        max-width: 100%;
        height: 400px;
    }
    .talent-footer-title {
        font-size: 1em;
        padding: 0 10px;
        min-height: 60px;
    }
    .overlay-title-talent {
        font-size: 1.3em;
    }
    .overlay-description-talent {
        font-size: 0.9em;
    }

    .contact-main-wrapper { flex-direction: column; }
    .contact-image-column, .contact-form-column { flex-basis: 100%; max-width: 100%; }
    .contact-image-column { margin-bottom: 30px; }
    #contacto form { width: 100%; max-width: none; padding: 25px; }
    .social-divisor-icons { gap: 10px; padding: 0 10px; }
    .social-divisor-icons a { font-size: 1.2em; }
    .team-member-image-container img { height: 350px; }
}

/* 1. El Overlay de fondo */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.contact-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* 2. El Botón Flotante (FAB) */
.contact-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: var(--accent-color);
    color: var(--primary-bg-color);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-family: var(--font-family-raleway);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.contact-fab:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-3px);
}
.contact-fab .fab-icon {
    display: none; /* Oculto en escritorio */
    font-size: 1.5rem;
}

/* 3. El Panel del Formulario */
.contact-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background-color: var(--secondary-bg-color);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    
    /* Estado inicial: oculto abajo */
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.contact-panel.is-open {
    transform: translateY(0);
}

.contact-panel-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.close-panel-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}
.close-panel-btn:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.contact-panel-content h2 {
    font-family: var(--font-family-sporta);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-text-color);
}
.contact-panel-content h2 span {
    color: var(--accent-color);
}

/* Estilos del formulario (reutilizados y adaptados) */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-text-color); }
.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 14px; 
    border: 1px solid #555; 
    border-radius: 4px; 
    background-color: #333; 
    color: var(--primary-text-color); 
    font-size: 1em; 
    font-family: var(--font-family-raleway);
}
.form-group input:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: var(--accent-color); 
    background-color: #3a3a3a; 
}
.form-group textarea { min-height: 120px; resize: vertical; }

.submit-btn { 
    display: block; 
    width: 100%; 
    padding: 14px; 
    background-color: var(--accent-color); 
    color: var(--primary-bg-color); 
    border: none; 
    border-radius: 4px; 
    font-size: 1.1em; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    font-weight: 700; 
    text-transform: uppercase;
}
.submit-btn:hover { background-color: var(--accent-hover-color); }

/* 4. Estilos Responsivos para Móvil */
@media (max-width: 768px) {
    .contact-fab {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    .contact-fab .fab-text {
        display: none; /* Oculta el texto en móvil */
    }
    .contact-fab .fab-icon {
        display: block; /* Muestra el ícono en móvil */
    }
}



/* ===================================================================
   ESTILOS DEL SLIDER DE MARCAS ESTILO PASARELA
=================================================================== */

#marcas-amigas {
    padding: 80px 0;
    overflow: hidden;
    height: 60vh !important;
}

.logo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* --- CORRECCIÓN PRINCIPAL --- */
    /* ELIMINADO: Las siguientes 2 líneas causaban el efecto de 'corte' o 'fade' en los bordes. */
    /* Al quitarlas, los logos se verán completos de borde a borde. */
    /* -webkit-mask-image: linear-gradient(...); */
    /* mask-image: linear-gradient(...); */
}

.logos-track {
    display: flex;
    width: max-content;
    /* Esta clase se añade con JS para evitar el salto inicial, es correcto. */
}

.logos-track.is-animating {
    animation: infinite-scroll 45s linear infinite;
}

.logo-carousel:hover .logos-track.is-animating {
    animation-play-state: paused;
}

/* --- ESTILOS BASE (MÓVIL) --- */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    /* MODIFICADO: Reducimos el tamaño en móvil para asegurar que se vean más logos a la vez
       y no se sientan tan grandes o cortados en pantallas estrechas. */
    flex: 0 0 150px; 
    /* Mantenemos un padding reducido para que estén juntos. */
    padding: 0 15px; 
}

.logo-item img {
    max-width: 100%;
    /* Mantenemos la altura para que los logos sean visibles. */
    height: 100px !important; 
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* --- ESTILOS PARA PANTALLAS GRANDES (DESKTOP) --- */
@media (min-width: 768px) {
    .logo-item {
        /* Mantenemos el tamaño de escritorio solicitado. */
        flex: 0 0 200px;
        padding: 0 30px; 
    }
    .logo-item img {
        height: 80px;
    }
}

@keyframes infinite-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }

}

/* ================================================================== */
/*         ESTILOS CORREGIDOS PARA LA SECCIÓN DE HIGHLIGHTS           */
/* ================================================================== */

/* --- Contenedor Principal de la sección --- */
/* Se elimina el fondo de aquí, ya que la sección contenedora (<section>) debe tenerlo. */
.highlights-section {
    width: 100%;
    /* El padding lo debe gestionar la <section> contenedora para consistencia */
}

/* --- Encabezado --- */
/* Reutilizamos la clase .section-title que ya tienes definida para el H2 */
.highlights-header {
    text-align: center;
    margin-bottom: 60px;
}

/* El estilo del H2 ya está definido globalmente por .section-title, aquí solo ajustamos el meta-text */
.highlights-header .meta-text {
    font-family: var(--font-family-raleway); /* Usamos la fuente correcta para párrafos/meta */
    color: var(--accent-color); /* Usamos tu color de acento */
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Grid de Proyectos (RESPONSIVO) --- */
.highlights-grid {
    display: grid;
    gap: 30px;
    /* MÓVIL (por defecto): 1 columna a full-canvas */
    grid-template-columns: 1fr;
}

/* WEB: 2 columnas a partir de 768px */
@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Cada Item del Grid --- */
.highlight-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Un radio sutil */
    border: 1px solid var(--border-color); /* Borde sutil para definir la tarjeta */
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    
    /* Transición suave para el efecto hover */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;

    /* Importante para que el texto se posicione correctamente */
    display: flex;
    align-items: flex-end;
}

.highlight-item:hover {
    transform: translateY(-8px); /* Efecto de elevación al pasar el ratón */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- Overlay de Información (Texto sobre la imagen) --- */
.highlight-info {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    /* Gradiente más pronunciado para mejor legibilidad */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0) 100%);
    transition: background 0.3s ease;
}

/* --- Estilos del Texto dentro de la tarjeta --- */
.highlight-info h3 {
    font-family: var(--font-family-hero-title); /* Usamos tu fuente para títulos */
    color: var(--accent-color); /* Usamos tu color de acento */
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Sombra para legibilidad */
}

.highlight-info p {
    font-family: var(--font-family-raleway); /* Usamos tu fuente para párrafos */
    color: var(--primary-text-color); /* Usamos tu color de texto principal */
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9; /* Ligera transparencia para diferenciarlo del título */
}


/* ================================================================== */
/*         NUEVO: ESTILOS PARA EL ÍCONO DE PLAY EN HTML               */
/* ================================================================== */

/* Se elimina por completo el pseudo-elemento ::after que causaba el error */

/* 1. ESTILO DEL ÍCONO DE PLAY */
.highlight-play-icon {
    position: absolute;
    z-index: 3; /* Encima de todo */
    
    /* Posición en la esquina superior derecha */
    top: 20px;
    right: 20px;

    /* Tamaño y color */
    width: 48px;
    height: 48px;
    color: var(--accent-color); /* Controla el color del SVG gracias a fill="currentColor" */
    
    /* Estado inicial: oculto y pequeño */
    opacity: 0;
    transform: scale(0.5);
    
    /* Animación suave */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 2. ESTADO :HOVER DE LA TARJETA COMPLETA */
.highlight-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

/* 3. HACEMOS VISIBLE EL ÍCONO CUANDO SE HACE HOVER EN LA TARJETA */
.highlight-item:hover .highlight-play-icon {
    opacity: 1;
    transform: scale(1);
}
/* ================================================================== */
/*                  ESTILOS PARA EL MODAL DE VIDEO                    */
/* ================================================================== */
/* Estos estilos están bien y no necesitan cambios, son genéricos. */

.video-modal-highlights {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.video-modal-highlights.is-active {
    display: flex;
}

.modal-content-highlights {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    padding: 5% !important;
}

.close-button-highlights {
    position: absolute;
    top: -10px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.close-button-highlights:hover {
    transform: scale(1.2);
}

#video-player-container-highlights {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* ================================================================== */
/*                      ESTILOS PARA POST.HBS                         */
/* ================================================================== */

/* --- Header Simple para Posts --- */
.post-simple-header {
    background-color: var(--primary-bg-color);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-simple-header-container {
    width: 100%;
    max-width: var(--max-container-width);
    padding: 0 20px;
}

.post-simple-logo-link {
    display: inline-block;
}

.post-simple-logo {
    height: 40px; /* Tamaño del logo ajustado para el header simple */
    width: auto;
}

/* --- Contenedor Principal del Post --- */
.site-main.outer {
    padding-top: var(--header-height); /* Espacio para el header fijo */
}

.post-full {
    max-width: 800px; /* Ancho ideal para la lectura */
    margin: 0 auto;
    padding: 60px 0;
}

/* --- Encabezado del Post --- */
.post-full-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-full-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color);
    color: var(--primary-bg-color);
    font-family: var(--font-family-raleway);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.post-full-title {
    font-family: var(--font-family-hero-title);
    font-size: 3rem;
    color: var(--primary-text-color);
    margin: 0 0 15px 0;
    line-height: 1.1;
}

.post-full-meta {
    font-family: var(--font-family-raleway);
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

.post-full-meta-byline {
    margin: 0 10px;
}

/* --- Imagen Destacada --- */
.post-full-image {
    margin: 0 0 40px 0;
    width: 100%;
}

.post-full-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* --- Contenido del Post --- */
.post-content {
    font-family: var(--font-family-raleway);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--primary-text-color);
    text-align: justify;
    line-break: normal;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-family-hero-title);
    color: var(--primary-text-color);
    margin: 40px 0 20px 0;
}

.post-content h2 { font-size: 2.2rem; }
.post-content h3 { font-size: 1.8rem; }

.post-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: all 0.2s ease;
}

.post-content a:hover {
    color: var(--accent-hover-color);
    border-bottom-color: var(--accent-hover-color);
}

.post-content blockquote {
    margin: 30px 0;
    padding: 10px 20px 10px 25px;
    border-left: 5px solid var(--accent-color);
    background-color: var(--secondary-bg-color);
    font-style: italic;
    color: var(--secondary-text-color);
}

.post-content ul,
.post-content ol {
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

/* --- Sección de Posts Relacionados --- */
.related-posts-section {
    background-color: var(--secondary-bg-color);
    padding: var(--section-padding);
    border-top: 1px solid var(--border-color);
}

.related-posts-title {
    font-family: var(--font-family-hero-title);
    text-align: center;
    font-size: 2rem;
    color: var(--primary-text-color);
    margin-bottom: 40px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-post-card {
    display: block;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.related-post-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--border-color); /* Fallback si no hay imagen */
}

.related-post-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text-color);
}

.related-post-card-placeholder svg {
    width: 50px;
    height: 50px;
}

.related-post-card-content {
    padding: 20px;
}

.related-post-card-title {
    font-family: var(--font-family-hero-title);
    font-size: 1.3rem;
    color: var(--primary-text-color);
    margin: 0 0 10px 0;
}

.related-post-card-excerpt {
    font-family: var(--font-family-raleway);
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.related-post-card-meta {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    font-weight: 700;
}

/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    .post-full-title {
        font-size: 2.2rem;
    }
    .post-content {
        font-size: 1rem;
    }
}

/* ================================================================== */
/*                      ESTILOS PARA TAG.HBS                          */
/* ================================================================== */

/* --- Header de la Página de Etiqueta --- */
.tag-header {
    padding: 60px 20px;
    margin-bottom: 50px;
    text-align: center;
    background-color: var(--secondary-bg-color);
    border-bottom: 1px solid var(--border-color);
}

.tag-header.with-feature-image {
    padding: 120px 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff; /* Texto blanco para mejor contraste sobre imagen */
}

/* Overlay para oscurecer la imagen de fondo y mejorar legibilidad */
.tag-header.with-feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.6); /* Overlay oscuro */
    z-index: 1;
}

.tag-header-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.tag-header h1 {
    font-family: var(--font-family-hero-title);
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    color: var(--primary-text-color);
}

.tag-header.with-feature-image h1 {
    color: #fff;
}

.tag-description {
    font-family: var(--font-family-raleway);
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.tag-header.with-feature-image .tag-description {
    color: rgba(255, 255, 255, 0.85);
}

.tag-meta .post-count {
    font-family: var(--font-family-raleway);
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- Cuadrícula de Posts (Post Feed) --- */
.post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

/* --- Tarjeta de Post (reutilizable) --- */
.post-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.post-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.post-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-bg-color);
    color: var(--secondary-text-color);
}

.post-card-placeholder svg {
    width: 60px;
    height: 60px;
}

.post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-tag {
    display: inline-block;
    font-family: var(--font-family-raleway);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.post-card-title {
    font-family: var(--font-family-hero-title);
    font-size: 1.4rem;
    color: var(--primary-text-color);
    margin: 0;
    line-height: 1.3;
}

.post-card-excerpt {
    font-family: var(--font-family-raleway);
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 15px 0;
    flex-grow: 1; /* Empuja el meta hacia abajo */
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-family-raleway);
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto; /* Se asegura de estar al final */
}

/* --- Estilos de Paginación --- */
.pagination {
    text-align: center;
    padding: 30px 0;
    font-family: var(--font-family-raleway);
}

.pagination a {
    color: var(--primary-text-color);
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin: 0 5px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg-color);
    border-color: var(--accent-color);
}

.pagination .page-number {
    color: var(--secondary-text-color);
    padding: 0 15px;
}

.pagination .older-posts, .pagination .newer-posts {
    font-weight: 700;
}

