/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #222;
    background-color: #fcfcfc;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;

    /* CAMBIOS AQUÍ: */
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.015) 1px, transparent 1px), /* Opacidad muy sutil (5%) */
        linear-gradient(to bottom, rgba(0,0,0,0.015) 1px, transparent 1px);
    
    background-size: 25px 25px; /* Cuadros de 25px (la mitad de tamaño) */
    background-position: center top;
    min-height: 100vh;
}

/* --- LAYOUT GRID --- */
.layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr 80px; 
    gap: 60px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 40px;
    /* Para que el grid de fondo se vea "detrás", no necesitamos background aquí */
}

/* --- IZQUIERDA: MENÚ --- */
.sidebar-left {
    position: sticky;
    top: 60px;
    height: fit-content;
    /* Opcional: Si quieres que el menú tape las líneas de fondo, descomenta esto: */
    /* background: rgba(255,255,255,0.8); padding: 10px; backdrop-filter: blur(2px); */
}

.artist-name {
    font-size: 1.4rem; /* Aumentado de 1.1rem a 1.4rem */
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.8px; /* Hace que las letras estén un poco más juntas, estilo Helvetica clásico */
    line-height: 1.1; /* Para que si el nombre se rompe en dos líneas no quede muy separado */
}

.main-nav ul { list-style: none; }
.main-nav li { margin-bottom: 0.6rem; }

.main-nav a {
    text-decoration: none;
    color: #888; /* Un poco más oscuro para contraste con el grid */
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #000;
}

/* --- CENTRO: CONTENIDO --- */
.content-feed {
    display: flex;
    flex-direction: column;
    /* gap: 140px;  <-- BORRA O COMENTA ESTA LÍNEA. Usaremos márgenes manuales. */
    padding-top: 0;
}

/* --- NUEVO: ESTILO DE LA BIO JUSTIFICADA --- */
.intro-bio {
    /* Usamos la misma fuente que el body */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 
    
    /* Ajuste de tamaño: La Helvética se lee muy bien, así que 1.15rem es suficiente */
    font-size: 1.15rem; 
    font-weight: 400; /* Peso normal */
    line-height: 1.5; /* Buen espacio entre líneas */
    color: #222;
    
    margin-bottom: 50px; /* Mantenemos tu margen corto hacia el video */
    max-width: 95%;
    
    /* Mantenemos la justificación que pediste */
    text-align: justify;
    text-justify: inter-word;
    hyphens: none; 
}

/* El bold en Helvética resalta mucho, se verá muy bien para tus palabras clave */
.intro-bio strong {
    font-weight: 700;
}

/* VIDEO WRAPPER */
.video-wrapper {
    width: 100%;
    background-color: #eee; /* Fondo mientras carga */
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
    /* Sombra sutil para despegar el video del fondo rayado */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
}

/* Agregamos "iframe" a la lista para que Vimeo se adapte al hueco */
.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none; /* Quitamos bordes feos del iframe */
}

/* El grid decorativo ENCIMA del video (el que pediste conservar en el 1er video) */
.placeholder-grid .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    /* Hacemos este grid un poco diferente al del fondo general para que se note que es overlay */
    background-image: 
        linear-gradient(#fff 1px, transparent 1px),
        linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 20px 20px; /* Más cerrado que el del fondo */
    opacity: 0.3;
    mix-blend-mode: overlay; /* Se mezcla bonito con el video */
    z-index: 5;
}

/* INFO DEL PROYECTO */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd; 
    padding-bottom: 10px;
    background-color: transparent; /* Deja ver el grid de fondo a través */
}

.project-header h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-right: 20px;
}

.tech-specs {
    font-size: 0.8rem;
    color: #777;
    font-family: "Courier New", Courier, monospace; 
}

.project-action {
    margin-bottom: 1rem;
}

.project-item {
    margin-bottom: 140px; /* Aquí mantenemos el aire "galería" entre proyectos */
    scroll-margin-top: 40px;
}

/* BOTÓN ESTILO CARGO */
.btn-cargo {
    display: inline-block;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #222;
    text-decoration: none;
    border: 1px solid #222;
    padding: 8px 16px;
    background: rgba(255,255,255,0.6); /* Ligeramente transparente */
    backdrop-filter: blur(2px); /* Efecto vidrio */
    transition: all 0.2s ease;
}

.btn-cargo:hover {
    background: #222;
    color: #fff;
    cursor: pointer;
}

.description {
    /* Tipografía igual al resto (Sans-serif) */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
    
    /* CAMBIO CLAVE: */
    max-width: 100%; /* Antes tenía límite, ahora se estira todo lo que mida el video */
    width: 100%;     /* Asegura que ocupe el ancho disponible */
    
    margin-top: 20px; /* Un poco de aire entre el botón y el texto */
    
    /* Opcional: Si quieres que el bloque de texto se vea "cuadrado"
       con el video, puedes justificarlo también. Si prefieres bandera
       izquierda (normal), borra las siguientes 3 líneas: */
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
}

/* --- DERECHA: THUMBNAILS --- */
.sidebar-right {
    position: sticky;
    top: 60px;
    height: fit-content;
}

.thumbnails-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb-nav {
    width: 50px;
    height: 30px;
    background-color: rgba(0,0,0,0.05); /* Gris sutil */
    display: block;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.thumb-nav.active {
    background-color: #666;
    border-color: #333;
}


.lang-switch {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    margin-bottom: 2rem; /* Separación antes del menú de navegación */
    color: #999;
}

.lang-switch a {
    text-decoration: none;
    color: #999;
    transition: color 0.2s;
}

.lang-switch a:hover {
    color: #000;
}

.lang-switch .active {
    color: #000; /* El idioma actual se ve negro */
    font-weight: 700;
    cursor: default;
}

.lang-switch .separator {
    margin: 0 5px;
    color: #ccc;
}

/* --- ESTILO "DOCUMENTO" (SERIF) PARA BIO & CV --- */

.bio-section {
    max-width: 750px;
    margin-bottom: 100px;
}

/* Títulos principales de sección (STATEMENT, BIO, CV) */
/* Estos los dejamos en Sans-Serif (Helvetica) para mantener estructura limpia */
.bio-section h3 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 35px;
}

/* AQUÍ ESTÁ EL CAMBIO: Todo el contenido ahora es Serif */
.bio-section p, 
.cv-category h4, 
.cv-item,
.cv-item .year,
.cv-item .detail {
    font-family: "Times New Roman", Times, Baskerville, Georgia, serif;
    color: #111;
}

/* Ajustes finos para que la Serif se vea bien */
.bio-section p {
    font-size: 1.3rem; /* Tamaño lectura cómodo */
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cv-category {
    margin-bottom: 50px;
}

.cv-category h4 {
    font-size: 1.1rem; /* Títulos de categoría un poco más grandes */
    font-weight: 700; /* Bold en Serif se ve muy bien */
    margin-bottom: 20px;
    font-style: italic; /* Un toque elegante extra (opcional) */
}

.cv-item {
    display: grid;
    grid-template-columns: 60px 1fr; 
    gap: 30px; /* Más aire entre año y texto */
    margin-bottom: 12px;
    font-size: 1.1rem; /* CV legible */
    line-height: 1.5;
}

.cv-item .year {
    color: #666;
    text-align: right;
    font-feature-settings: "tnum"; /* Números tabulares si la fuente lo soporta */
}

/* Mobile */
@media (max-width: 600px) {
    .cv-item {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-bottom: 20px;
    }
    .cv-item .year {
        text-align: left;
    }
}


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 40px;
    }
    
    .sidebar-left {
        position: relative;
        top: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        background: transparent;
    }

    .sidebar-right { display: none; }
    
    .intro-bio { 
        font-size: 1.15rem; 
        text-align: left; /* En móviles a veces "justify" se ve mal, mejor left */
    }
}
