@font-face {

    font-family: 'Ancial';
    src: local('Ancial'), local('Ancial-Regular'), url('../fonts/Ancial-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kikuta';
    src: local('Kikuta'), local('Kikuta-Regular'), url('../fonts/kikuta-variable-VF.ttf') format('truetype');
    /* Variable fonts support a range of weights */
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'StepsMono';
    /* Primero busca en el sistema del usuario, si no está, la descarga */
    src: local('Steps-Mono-Thin'),
    local('Steps Mono Thin'),
    url('../fonts/Steps-Mono-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Luculent';
    src: url('../fonts/luculent.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.header-container {
    text-align: center;
    padding: 60px 20px;
    background-color: #0d0d0d;
}

h1 {
    font-family: 'Luculent', monospace !important;
    font-weight: 600;
    font-size: 2.8rem; /* Al quitar las mayúsculas, quizás quieras subir un poco el tamaño */
    margin-bottom: 12px;


    /* CAMBIO 1: Cambiamos 'uppercase' por 'capitalize' o 'none' */
    text-transform: none;

    /* CAMBIO 2: Reducimos el espaciado, ya que en minúsculas 8px es demasiado */
    letter-spacing: 2px;

    color: transparent;
    -webkit-text-stroke: 0.8px rgba(241, 236, 236, 0.8);
    padding-left: 12px;
}

h2 {
    font-family: 'Luculent', monospace !important;
    font-weight: 400;

    /* AJUSTE DE TAMAÑO: Un escalón por debajo del h1 (2.8rem) */
    font-size: 1.5rem;

    margin-bottom: 25px; /* Más espacio inferior para separar del párrafo */
    text-transform: none;
    letter-spacing: 1px; /* Menos espacio para mejorar la lectura en bloques */

    /* ESTÉTICA: Blanco sólido con un toque de brillo sutil */
    color: white;
    -webkit-text-stroke: 0.4px rgba(241, 236, 236, 0.6);

    padding-left: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

p {
    font-family: 'Luculent', monospace !important;
    font-weight: 300;
    font-size: 0.95rem; /* Párrafo más pequeño en armonía */
    color: rgba(159, 135, 10, 0.8);
    max-width: 500px;
    margin: 0 auto;
    letter-spacing: 1px;
    line-height: 1.5;
}


/* Contenedor para los esquineros*/
.frame-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Importante para poder clickear lo que está debajo */
    z-index: 10;
    overflow: hidden;
}

.corner-svg {
    position: absolute;
    width:650px; /* Tamaño del esquinero */
    opacity: 0.8;
}

.left-corner {
    position: relative;
    overflow: hidden;
    top: -50px;
    left: -260px;
    /* Ajusta la rotación si el SVG no viene orientado como esquina */
    transform: rotate(0deg);
}

.right-corner {
    top: -50px;
    right: -260px;
    /* Invertimos el SVG horizontalmente para que haga espejo */
}

.corner-svg img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}


/* Contenedor principal del encabezado */
.main-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* MODIFICADO: Reducimos el padding superior y eliminamos el inferior */
    padding: 20px 0 0 0;
    position: relative;
    /* Asegura que no haya margen externo que empuje la escena */
    margin-bottom: 0;
}

/* Fila de botones */
.top-nav {
    display: flex;
    gap: 60px;
    /* MODIFICADO: Reducimos el espacio entre los botones y el título */
    margin-bottom: 20px;
}

/* Estilo individual del botón */
.source-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
    color: rgb(27, 26, 26);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Efectos de interacción */
.source-button:hover {
    opacity: 0.5;
    transform: translateY(-3px);
}
/* El número grande */
.source-button span {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

/* El texto pequeño debajo del número */
.source-button small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}



.styled-title {
    margin: 0; /* Elimina márgenes automáticos del H1 */
    padding-bottom: 10px; /* Un pequeño aire antes de la escena, ajustable */
}

.scene {
    margin-top: 0; /* Asegura que la escena no tenga margen superior */
}


.floating-sidebar {
    position: absolute;
    top: 0;
    width: 300px; /* Ancho de la zona de flotación lateral */
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Por detrás de los personajes para dar profundidad */
}

.left-side { left: -70px; }
.right-side { right: -50px; }

.extra-float {
    position: absolute;
    width: 250px; /* Ajusta el tamaño para que no sature */
    opacity: 0.6;
    filter: blur(1px); /* Ligero desenfoque para efecto 3D */
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2));
    will-change: transform; /* Mantiene la nitidez al escalar */
}

/* Personalización por objeto para mayor dinamismo */
.f1 { top: 5%; width: 200px; opacity: 0.4; filter: blur(3px); }
.f2 { top: 40%; width: 200px; opacity: 0.8; filter: blur(0px); z-index: 10; } /* El más grande y nítido */
.f3 { top: 75%; width: 280px; opacity: 0.5; filter: blur(1px); }

.f4 { top: 10%; width: 220px; opacity: 0.4; filter: blur(2px); }
.f5 { top: 45%; width: 380px; opacity: 0.7; filter: blur(0px); } /* Objeto masivo a la derecha */
.f6 { top: 80%; width: 240px; opacity: 0.5; }



#scrolly-section {
    position: relative;
}

.stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1; /* Behind the text triggers if preferred, or in front */
}

.character {
    /* Increase this percentage to give the SVG more "room" to grow */
    width: 45%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.character object {
    /* Change 100% to a larger fixed pixel value or a larger percentage */
    width: 725px; /* Adjust this number until you like the size */
    height: auto;
    transform: none;
}

/* The invisible triggers that drive the conversation */
.step {
    height: 80vh; /* Spaces out the conversation */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through to SVGs */
}

/* Speech Bubble Styling */
.bubble {
    opacity: 0;
    background: white;
    border: 2px solid black;
    border-radius: 15px;
    padding: 10px;
    margin-top: 20px;
    min-height: 40px;
    width: 370px;
}


.info-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background-color: rgb(27, 26, 26);
    color: #fff;
    z-index: 2000;
    transform: translateX(-100%); /* Oculto por defecto */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-right: 1px solid #333;
    padding: 0;
}
.info-sidebar p {
    color: rgba(216, 215, 212, 0.91); /* Blanco para que resalte sobre el fondo negro */
}

.info-sidebar.is-visible {
    transform: translateX(0); /* Se muestra al hacer click */
}

.close-area {
    width: 100%;
    background: rgba(83, 135, 130, 0.99); /* Color púrpura de tu captura */
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
}

.panel-content { padding: 20px; font-family: sans-serif; }
.data-row { margin: 10px 0; font-size: 0.9em; }

/* Aseguramos que solo el SVG reciba el click */
.left-char, .right-char { cursor: pointer; pointer-events: all; }

.active-character {
    /* Paso 1: Forzamos al navegador a renderizar el SVG como una sola capa */
    isolation: isolate;

    /* Paso 2: Aplicamos el filtro al contenedor, no a los elementos internos */
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.47));

    /* Paso 3: Aseguramos que el SVG interno sea tratado como un bloque sólido */
    paint-order: markers fill stroke;
}

/* Paso 4: Evitamos que partes internas del SVG hereden filtros extra */
.active-character svg * {
    filter: none !important;
}
/* Opcional: Cursor para indicar que es clickeable */
.left-char, .right-char {
    cursor: pointer;
    transition: transform 0.2s ease;
}
/* Personaje de la izquierda: mover a la derecha hacia el centro */
.left-char {
    transform: translateX(15%); /* Ajusta este % para acercarlo más o menos */
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Personaje de la derecha: mover a la izquierda hacia el centro */
.right-char {
    transform: translateX(-15%); /* Ajusta este % para acercarlo más o menos */
    transition: transform 0.3s ease, filter 0.3s ease;
}
.scene {
    position: relative;
    width: 100%;
    /* Esto crea el espacio para que los textos hagan scroll */
}

/* Opcional: Para que los personajes aparezcan/desaparezcan suavemente */
.stage {
    transition: opacity 0.5s ease;
}

/* Evitamos que los pasos de una escena choquen con otra */
.script {
    padding-bottom: 20vh;
}


.context-box {
    position: absolute; /* O 'fixed' si quieres que no se mueva con el scroll */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrado perfecto */
    width: 80%;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.95); /* Negro casi opaco */
    color: white;
    padding: 40px;
    border-radius: 4px;
    z-index: 100; /* Por encima de los personajes y burbujas */
    opacity: 0; /* Oculta por defecto para animarla con GSAP */
    pointer-events: none; /* Permite hacer clic a través de ella si es necesario */
    font-family: 'Cormorant Garamond', serif; /* La fuente elegante que elegiste */
    font-size: 1.5rem;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.context-box p {
    margin-bottom: 20px;
}


.year { font-weight: bold; font-size: 1.2rem; }
.place { font-size: 0.8rem; text-transform: uppercase; }


.timeline-group {
    position: fixed;
    right: 40px; /* Anclado a la derecha con margen */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-family: 'JetBrains Mono', monospace;
    text-align: right; /* Texto alineado a la derecha */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinea los bloques al final (derecha) */
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    max-width: 250px; /* Evita que el texto invada el centro del SVG */
}

.timeline-group.active-group {
    opacity: 1;
    visibility: visible;
}

.time-marker {
    opacity: 0.3;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 20px; /* Espacio para la línea divisoria */
    width: 100%; /* Ocupa el ancho del contenedor */
}

/* LA LÍNEA: Horizontal y ajustada a la derecha */
.time-marker:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;           /* Nace desde la derecha */
    bottom: 5px;        /* Ubicada entre bloques */
    width: 40px;        /* Línea corta para no invadir el centro */
    height: 1px;
    background-color: currentColor;
    opacity: 0.3;
}

.time-marker.active {
    opacity: 1;
    color: rgb(27, 26, 26);
    /* Se mueve un poco a la izquierda para "entrar" en escena */
    transform: translateX(-10px);
}

/* La línea se resalta cuando la fecha está activa */
.time-marker.active::after {
    opacity: 0.8;
    width: 55px; /* Crece ligeramente sin llegar al centro */
}


#timeline-container {
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
}

/* La clase que lo mata */
#timeline-container.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.source-button {
    top: 20px;
    right: 600px;
    z-index: 100;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'JetBrains Mono', monospace; /* Tu fuente mono */
    color: rgb(27, 26, 26); /* Color oscuro como tus fechas */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* La "pestaña" del archivador */
.folder-tab {
    width: 40px;
    height: 6px;
    background: rgb(27, 26, 26);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    margin-bottom: -1px; /* Unión perfecta con el cuerpo */
    transition: width 0.3s ease;
}

/* El cuerpo del botón */
.button-text {

    border: 1px solid rgb(27, 26, 26);
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px); /* Efecto cristal */
    transition: all 0.3s ease;
}

/* Efectos al pasar el mouse (Hover) */
.source-button:hover .folder-tab {
    width: 60px;
    background: rgba(255, 215, 0, 0.29); /* El color de destaque que usamos en el timeline */
}

.source-button:hover .button-text {
    background: rgb(27, 26, 26);
    color: #fff;
    border-color: rgba(255, 215, 0, 0.22);
}



/* Estado cuando el timeline está oculto (puedes añadir una clase con JS) */
.source-button.is-inactive {
    opacity: 0.5;
    filter: grayscale(1);
}
#mosaic-section {
    position: relative;
    background-color: black
}

.visualContainer {
    width: 100%;
    min-height: 100vh; /* Permite que crezca más allá de la pantalla */
    height: auto;      /* IMPORTANTE: Quitar el 100vh fijo */
    display: flex;
    flex-direction: column; /* Alinea controles, grid y leyenda verticalmente */
    align-items: center;
    justify-content: flex-start; /* Empieza desde arriba */

    overflow: visible; /* Asegura que nada se corte */


    background-color: var(--deep-black);
    min-height: 100vh;
    height: auto;
    padding: 80px 0;

    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px; /* Aumentamos un poco el espacio para que respiren */
    width: 95%;
    max-width: 1200px; /* Ampliamos el ancho máximo para que quepan bien */
    margin: 40px auto;
}

.zoomContainer {
    display: grid;
    /* auto-fit con un mínimo de 100px para que los cuadros sean estéticos */
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px; /* Espacio elegante entre recuadros */
    width: 95%;
    max-width: 1000px; /* Evita que se estiren demasiado en pantallas anchas */
    margin: 0 auto;
    padding: 100px 0
}
.person {
    width: 100%;       /* Deja que el Grid controle el ancho */
    aspect-ratio: 1 / 1; /* Mantiene el cuadrado perfecto automáticamente */
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #1a1a1a; /* Fondo oscuro coherente */
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.person:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
    z-index: 5;
}

.person .backgroundColor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 155%;
    z-index: 1;
}

.person img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2; /* La cara va por encima del color */
}

.legend-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--soft-white);
}

.legend-scale {
    display: flex;
    gap: 20px;
}

.scale-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}



.content-section {
    min-height: 100vh; /* Cada sección ocupa al menos toda la pantalla */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Separador sutil */
}

.section-container {
    max-width: 1000px;
    width: 100%;
}

.visual-placeholder {
    width: 100%;
    margin: 40px 0;
    text-align: center;
}

.visual-placeholder img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,900;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
    --deep-black: #0d0d0d;        /* Un negro mate, no puro */
    --soft-white: #f1ecec;        /* El blanco suave que tenías antes */
    --accent-gold: rgba(159, 135, 10, 0.8); /* El dorado editorial suave */
    --mosaic-bg: #1b1a1a;         /* Gris oscuro para los cuadros */
}

.content-section {
    background-color: var(--deep-black);
    color: var(--soft-white);
    font-family: 'Inter', sans-serif;
    padding: 150px 10%;
    border-bottom: 1px solid #222;
    position: relative;
    overflow: hidden;
}

.section-container h2 {
    font-size: clamp(3rem, 8vw, 6rem); /* Tamaño fluido */
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 50px;
    /* Efecto original: Letras huecas */
    color: transparent;
    -webkit-text-stroke: 1px var(--soft-white);
    transition: 0.5s ease;
}

/* Cuando el usuario llega a la sección, el título se rellena */
section:hover h2 {
    color: var(--soft-white);
}

.section-container h2::before {
    content: "SECTION";
    display: block;
    font-size: 1.5rem;
    font-family: 'Inter';
    letter-spacing: 5px;
    color: var(--accent-gold);
    margin-bottom: 10px;
    -webkit-text-stroke: 0;
}
.section-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1400px;
}

.section-container p {
    grid-column: 1 / span 7; /* El texto ocupa el lado izquierdo */
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    text-align: left;
    border-left: 1px solid var(--accent-gold);
    padding-left: 30px;
}

.visual-placeholder {
    grid-column: 8 / span 5; /* La imagen flota a la derecha */
    position: relative;
    display: flex;
    align-items: center;
}

.visual-placeholder img {
    width: 100%;
    filter: grayscale(1) brightness(0.8) contrast(1.2);
    transition: 0.8s filter;
    border: 1px solid #333;
}

.visual-placeholder:hover img {
    filter: grayscale(0) brightness(1);
}
.section-container::after {
    content: attr(data-number); /* Necesitas añadir data-number="01" en tu HTML */
    position: absolute;
    right: -20px;
    bottom: -50px;
    font-size: 20rem;
    font-family: 'Playfair Display';
    font-weight: 900;
    color: rgba(255,255,255,0.03); /* Casi invisible */
    z-index: 0;
    pointer-events: none;
}

:root {
    /* Fondos */
    --pudding-bg: #e3e4db;      /* El color hueso/crema original */
    --deep-black: #1a1a1a;      /* Negro tinta (no es #000) */

    /* Textos */
    --soft-white: #f1ecec;      /* Blanco roto para textos sobre fondo oscuro */
    --accent-gold: #c5a059;     /* Dorado editorial */

    /* Mosaico */
    --tile-bg: #d8d9cf;         /* Un tono más oscuro que el fondo para los cuadros */
    --border-ink: rgba(0, 0, 0, 0.1); /* Bordes muy suaves */
}
#mosaic-section {
    background-color: var(--pudding-bg); /* Fondo crema */
    color: var(--deep-black);
}

.visualContainer {
    background-color: var(--pudding-bg);
    min-height: 100vh;
    height: auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Los cuadros del mosaico */
.person {
    background-color: var(--tile-bg);
    border: 1px solid var(--border-ink);
    aspect-ratio: 1 / 1;
    transition: background-color 0.3s ease;
}

.person:hover {
    background-color: #ffffff; /* Brilla a blanco puro al tocarlo */
    border-color: var(--accent-gold);
}

/* Los controles (Botones) */
#cycle-criterio {
    background-color: var(--deep-black);
    color: var(--pudding-bg);
    border: none;
    padding: 10px 20px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    font-size: 0.75rem;
}

#current-label {
    color: var(--deep-black);
    font-family: 'JetBrains Mono', monospace;
}
#mosaic-section {
    position: relative;
    z-index: 100; /* Más alto que el timeline */
}

/* Esto SOLO afectará a la leyenda del mosaico */
#mosaic-legend .legend-header {
    color: #000000 !important; /* Negro */
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

#mosaic-legend .scale-item {
    color: #000000 !important; /* Los textos 0-20, 21-40, etc., en negro */
    font-weight: 600;
}

/* 2. Mantener los títulos de otras secciones en blanco */
.content-section h2,
#research-section h2,
#about-section h2,
#orgs-section h2 {
    color: transparent; /* Tu estilo original hueco */
    -webkit-text-stroke: 1px var(--soft-white);
}

/* 1. COMPORTAMIENTO GLOBAL PARA SECCIONES (Research, About, etc.) */
.content-section h2 {
    color: transparent;
    -webkit-text-stroke: 1px var(--soft-white);
    transition: all 0.5s ease;
}

/* El Hover: Esto es lo que se rompió y aquí lo restauramos */
.content-section:hover h2 {
    color: var(--soft-white) !important;
    -webkit-text-stroke: 1px transparent !important;
}

/* 2. EXCEPCIÓN PARA LA LEYENDA DEL MOSAICO (Para que no se vea afectada) */
#mosaic-legend .label-text {
    /* Aquí forzamos que sea negro y NO tenga el stroke blanco de los títulos */
    color: #000000 !important;
    -webkit-text-stroke: 0px transparent !important;
    text-transform: capitalize;
}

#mosaic-legend .legend-header {
    color: #000000 !important;
    -webkit-text-stroke: 0px transparent !important;
}

#scroll-path-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(13, 13, 13, 0.95); /* Tu negro mate con transparencia */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    border-bottom: 1px solid rgba(241, 236, 236, 0.1);
}

.path-line {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(241, 236, 236, 0.2); /* Línea base tenue */
}

#path-fill {
    position: absolute;
    height: 100%;
    width: 0%;
    background: var(--accent-gold); /* Tu dorado editorial */
    transition: width 0.1s ease-out;
}

#path-marker {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: var(--accent-gold);
    border: 2px solid #0d0d0d;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.1s ease-out;
}

.path-labels {
    position: relative;
    width: 100%;
    margin-top: 10px;
    height: 20px;
}

#scroll-path-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Usamos viewport width para asegurar el ancho total */
    height: 70px; /* Subimos un poco la altura para que las etiquetas no se corten abajo */
    background: rgba(13, 13, 13, 0.98);
    z-index: 9999 !important; /* Lo ponemos por encima de TODO */
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* El padding ahora se resta del 100%, no se suma */
    padding: 0 5%;
    box-sizing: border-box;

    border-bottom: 1px solid rgba(241, 236, 236, 0.1);
    pointer-events: all; /* Para que puedas interactuar si decides hacerlo clicable */
}
.path-labels {
    position: relative;
    width: 100%;
    margin-top: 15px; /* Más espacio respecto a la línea */
    height: 25px;
    /* Evita que la primera y última palabra se salgan de la pantalla */
    overflow: visible;
}

/* Ajuste para la primera y última ubicación para que no se peguen al borde */
.location:first-child { transform: translateX(0); }
.location:last-child { transform: translateX(-100%); }

#scroll-path-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 70px;
    background: rgba(13, 13, 13, 0.98);

    /* CAMBIO CLAVE: Bajamos el z-index para que el panel lo tape */
    z-index: 1000 !important;

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(241, 236, 236, 0.1);
}

.info-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background-color: rgb(27, 26, 26);
    color: #fff;

    /* ESTO DEBE SER MAYOR QUE 1000 */
    z-index: 2000 !important;

    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-right: 1px solid #333;
}

.location {
    position: absolute;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--soft-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.location.active {
    opacity: 1;
    color: var(--accent-gold);
}

/* Contenedor general de contenido */
.content-body {
    max-width: 800px;
    margin-top: 40px;
    color: var(--soft-white);
    line-height: 1.6;
}

.intro-text {

    font-family: 'Luculent', monospace !important;
    font-size: 1.4rem;

    color: var(--accent-gold);
    margin-bottom: 20px;
}

/* Enlaces estilo botón minimalista */
.editorial-link {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.editorial-link:hover {
    background: var(--accent-gold);
    color: #0d0d0d;
}

/* Cuadrícula de fuentes */
.link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.source-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-left: 3px solid var(--accent-gold);
}

.source-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.text-link {
    color: var(--soft-white);
    text-decoration: underline;
    font-size: 0.9rem;
}

/* Lista de organizaciones */
.org-list {
    list-style: none;
    padding: 0;
}

.org-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-link {
    text-decoration: none;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.icon-link:hover {
    filter: grayscale(0);
}

/* Contenedor general de contenido ampliado */
.content-body {
    max-width: 1000px; /* Aumentamos de 800px a 1000px para dar aire */
    margin-top: 40px;
    color: var(--soft-white);
    line-height: 1.8; /* Aumentamos el interlineado para evitar fatiga visual */
}

.content-body p {
    margin-bottom: 25px; /* Espacio entre párrafos para que respiren */
    font-size: 1.1rem;    /* Tamaño de lectura estándar editorial */
    text-align: justify;  /* Opcional: para un look de periódico muy limpio */
    hyphens: auto;        /* Evita espacios raros si usas justify */
}

/* El texto de introducción ahora ocupa más espacio visual */
.intro-text {
    font-size: 1.6rem;
    font-family: 'Luculent', monospace !important;
    color: var(--accent-gold);
    margin-bottom: 35px;
    line-height: 1.4;
    max-width: 90%; /* Que destaque pero que no se rompa tan pronto */
}

/* Ajuste de la cuadrícula de fuentes para que no sea tan comprimida */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

/* Aseguramos que la sección permita expansión */
.content-section {
    width: 100%;
    display: block; /* Cambiamos flex por block para evitar que los hijos se compriman */
    padding: 100px 0;
    overflow: hidden;
}

/* El contenedor que realmente manda en el ancho */
.section-container {
    width: 85% !important;   /* Ocupa el 85% de la pantalla */
    max-width: 1100px !important; /* Límite máximo para pantallas grandes */
    margin: 0 auto !important;    /* Centrado horizontal */
    text-align: left;        /* Asegura que el texto empiece a la izquierda */
}

/* El cuerpo del texto */
.content-body {
    width: 100% !important;
    display: block;
    margin-top: 50px;
}

.content-body p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 100%; /* Permite que el párrafo se expanda */
}


/* ESTILO EDITORIAL PARA SECCIONES */
.content-body p {
    max-width: 100% !important; /* Rompe cualquier restricción previa */
    text-align: left !important; /* Alineación de lectura natural */
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
    display: block;
}

/* Ajuste específico para la introducción */
.intro-text {
    font-size: 1.6rem !important;
    max-width: 90% !important;
    color: var(--accent-gold) !important;
    margin-bottom: 40px !important;
    font-family: 'Luculent', monospace !important;
}

/* Contenedor de la sección para asegurar expansión */
.section-container {
    display: block !important; /* Evita que el grid de arriba comprima el texto */
    width: 90% !important;
    max-width: 1100px !important;
}


/*probando solucionar el espacio blanco*/
main {
    overflow-x: clip; /* 'clip' is better than 'hidden' for vertical scrolling */
    width: 100%;
    position: relative;
    display: block;
}

/* Fix the specific elements that push to the right */
.floating-sidebar {
    position: absolute;
    top: 0;
    width: 300px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Eliminamos cualquier overflow: hidden de aquí si lo pusiste antes */
    overflow: visible !important;
}
.right-corner {
    top: -50px;
    right: 0; /* Pegado al borde */
    transform: translateX(30%); /* Desplazado visualmente hacia afuera */
}
/* 1. Estado Base: Letras huecas (Stroke) */
.section-container h2 {
    font-family: 'Luculent', monospace !important;

    /* AJUSTE DE TAMAÑO: Reducido para que sea elegante pero legible */
    font-size: 3.0rem !important;

    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: none;
    letter-spacing: 1px;

    /* EFECTO HUECO: Transparente con borde */
    color: transparent;
    -webkit-text-stroke: 0.5px var(--soft-white);

    /* Transición suave para el efecto de relleno */
    transition: all 0.5s ease;
}
/* Creamos una "Zona Prohibida" para el timeline */
.in-editorial-zone #timeline-container {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
/* 1. Cuando el mouse está sobre cualquier sección de contenido */
body:has(.content-section:hover) #timeline-container,
body:has(.content-section:hover) .timeline-group {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* 2. Específico para el Mosaico (que también es una sección de contenido) */
body:has(#mosaic-section:hover) #timeline-container,
body:has(#mosaic-section:hover) .timeline-group {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 3. Aseguramos que el timeline NO tenga un z-index más alto que las secciones cuando estas están activas */
.content-section:hover {
    z-index: 9999 !important;
    position: relative;
}
body, main {
    width: 100%;
    /* Corta el desbordamiento lateral sin romper el scroll vertical */
    overflow-x: clip;
    position: relative;
}
body {
    margin: 0;
    padding: 0;
    overflow-x: clip; /* Esto ayuda con el problema del espacio blanco que mencionaste antes */
}

.mosaic-controls {
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
    align-items: center;    /* Centra horizontalmente el botón y el texto */
    justify-content: center;
    text-align: center;     /* Centra el texto interno */
    gap: 20px;              /* Espaciado uniforme entre piezas */
    width: 100%;
}

.legend-scale {
    display: flex;
    flex-direction: row;    /* Mantiene los puntos en línea horizontal */
    justify-content: center; /* Centra la fila de puntos */
    gap: 25px;
    width: 100%;
}

.scale-item {
    display: flex;
    align-items: center;    /* Centra el punto con su texto */
    gap: 8px;
}

.mosaic-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;        /* Reducimos el espacio interno entre botón y puntos */
    width: 100%;
    margin-bottom: 15px; /* Reducimos drásticamente el espacio antes del grid */
}

.legend-scale {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.scale-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ajuste del contenedor del mosaico para que suba */
#mosaic-grid-container.zoomContainer {
    margin-top: 0;   /* Eliminamos cualquier margen superior residual */
    padding-top: 0;
}

/* Contenedor de la cuadrícula */
.source-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

/* Estilo de cada item con fondo para legibilidad */
.source-item {
    /* Fondo ligeramente más claro y semi-transparente */
    background: rgba(255, 255, 255, 0.85);
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Borde sutil */
    border-left: 4px solid #000;         /* Acento lateral negro */

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* Suaviza los bordes y añade profundidad */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(4px); /* Difumina un poco el fondo SVG de atrás */
}

.source-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    background: #000;
    color: #fff;
    padding: 3px 8px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.source-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1a1a1a; /* Gris casi negro para máxima legibilidad */
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif; /* O la fuente de cuerpo que uses */
}

.text-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
}

.text-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Responsividad para laptops y móviles */
@media (max-width: 1024px) {
    .source-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Cambia el color a blanco solo para Research y About */
#research-section p,
#about-section p {
    color: rgba(255, 215, 0, 0.47) !important; /* Forzamos el blanco */
    opacity: 0.7;             /* Opcional: un toque de transparencia para suavizar */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Opcional: ayuda a leer sobre fondos complejos */
}


.editorial-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #000000; /* Fondo negro por defecto */
    color: #ffffff;            /* Texto blanco */
    border: 1px solid #000000;
    border-left: 5px solid rgba(102, 102, 102, 0.54); /* Acento grueso blanco para que resalte sobre el negro */

    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: bold;

    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.1); /* Sombra clara */
}

.editorial-link:hover {
    background-color: #ffffff; /* Fondo blanco al pasar el mouse */
    color: #000000;            /* Texto negro */
    border: 1px solid #000000;
    border-left: 5px solid #000000; /* El acento cambia a negro */

    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2); /* Sombra oscura para resaltar sobre el fondo */
}

.org-list {
    list-style: none;
    padding: 0;
}

.org-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Nueva tipografía aplicada */
    font-family: 'Luculent', monospace !important;
    font-size: 0.9rem; /* Ajusta según prefieras, Luculent a veces se ve pequeña */
    letter-spacing: 0.7px;
    color: #ffffff; /* Aseguramos que sea blanca si está en About/Research */
}

/* Si tienes enlaces dentro de la lista, asegúrate que también hereden la fuente */
.org-list li a {
    font-family: 'Luculent', monospace !important;
    text-decoration: none;
    color: inherit;
}

/* Reducir texto en About y Research */
#about-section p,
#research-section p {
    font-size: 1.0rem; /* Ajusta este valor: menor número = más pequeña */
    line-height: 1.5;   /* Un poco de aire entre líneas ayuda a la lectura pequeña */
    color: #ffffff !important;
}

.org-list li {
    display: grid;
    /* Columna 1: Nombre (fijo o auto), Columna 2: Descripción (el resto), Columna 3: Icono */
    grid-template-columns: 220px 1fr auto;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}

.org-list li strong {
    white-space: nowrap;
    /* Opcional: si el nombre es muy largo, cortarlo con puntos suspensivos */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Para asegurar que el texto se justifique dentro de su columna */
.org-list li {
    text-align: justify;
}

.icon-link {
    justify-self: end; /* Empuja el emoji al final a la derecha */
    text-decoration: none;
}

.site-disclaimer {
    background-color: #000000;
    padding: 10px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Borde suave oscuro */
    margin-top: 1px;
    width: 100%;
    display: block;
    clear: both;
}

.site-disclaimer p {
    font-family: 'Luculent', monospace !important;
    font-size: 0.75rem;
    line-height: 1.6;
    /* Usamos un gris oscuro si el fondo es claro, o blanco si es oscuro */
    color: #666666;
    text-align: center; /* Centrado suele verse mejor para disclaimers */
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    font-family: 'Luculent', monospace !important;
    font-size: 0.85rem;
    color: white;
}

.contact-info em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

.separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

.linkedin-link {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.linkedin-link:hover {
    color: rgba(255, 215, 0, 0.47); /* El color corporativo de LinkedIn, pero solo en hover */
    border-bottom: 1px solid #0077b5;
    opacity: 1;
}

.stealth-link {
    color: inherit !important; /* Mantiene el color del texto del párrafo */
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* El borde sutil */
    transition: all 0.3s ease;
    display: inline-block; /* Ayuda a que el borde se posicione bien */
    line-height: 1;
}

.stealth-link:hover {
    color: #ffffff !important; /* Se ilumina un poco */
    border-bottom: 1px solid rgba(255, 255, 255, 0.6); /* El borde se nota más */
    opacity: 0.8;
    cursor: pointer;
}


.info-icon {
    font-family: 'Luculent', monospace !important;
    font-size: 1.3rem;
    font-weight: bold;
    color: rgb(27, 26, 26);
    border: 1px solid rgb(27, 26, 26);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Icono circular */
    transition: all 0.3s ease;
}

.info-popover {
    font-family: monospace !important;
    color: #1b1a1a;
    font-weight: bold;
}

.license-text {
    font-size: 0.7rem; /* Muy pequeña */
    opacity: 0.5;      /* Casi transparente para que no compita con el diseño */
    margin-top: 20px;
}

.license-text a {
    color: inherit;
    text-decoration: underline;
}