/* =========================================
   VARIABLES GLOBALES
   ========================================= */
:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #630634d9;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #024d08d9;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
}

/* =========================================
   RESET Y BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

section {
    padding: 8rem 5% 6rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h1, h2, h3 {
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* =========================================
   CABECERA Y NAVEGACIÓN
   ========================================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: #f7b502d9;
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 75px;
    width: auto;
    display: block;
    transition: transform var(--transition-speed) ease-in-out;
}

.logo-img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color var(--transition-speed);
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* =========================================
   BOTONES GLOBALES
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease-in-out;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.secondary-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding-top: 7.5rem;
}

.hero h1 {
    font-size: clamp(4.5rem, 6vw, 7rem);
    line-height: 1; /* Reduce la caja del texto al mínimo necesario */
    margin-bottom: 0.2rem; /* Acerca el título al párrafo (puedes usar 0 si lo quieres totalmente pegado) */
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem; /* Corregido: tenías 15rem, lo cual empujaba el texto fuera de la pantalla */
}

/* =========================================
   BIOGRAFÍA
   ========================================= */
.bio-section {
    background-color: var(--bg-color);
}

.bio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    text-align: left;
}

.bio-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    height: 100%;
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform var(--transition-speed) ease-in-out;
}

.bio-image:hover .responsive-img {
    transform: scale(1.02);
}

.bio-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-primary);
}

.bio-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* =========================================
   EDUCACIÓN (ZIG-ZAG)
   ========================================= */
.education-section {
    background-color: var(--bg-color);
}

/* =========================================
   ENCABEZADOS DE SECCIÓN (Educación, Multimedia, Galería)
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

/* 1. Títulos más grandes e imponentes */
.section-header h2 {
    /* clamp() permite que el texto sea inmenso en monitores (4.5rem) pero se encoja proporcionalmente en tablets (3rem) */
    font-size: clamp(2rem, 5vw, 3rem); 
    
    /* Reducimos la caja invisible del texto para que no haya espacios en blanco excesivos */
    line-height: 1; 
    
    /* Ajustamos milimétricamente la separación entre el título y el subtítulo */
    margin-bottom: 0.5rem; 
}

/* 2. Subtítulos a una sola línea y control de interlineado */
.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    
    /* Eliminamos el embudo de 600px para que el texto pueda expandirse a los lados */
    max-width: 100%; 
    
    /* CRÍTICO: Fuerza al navegador a mantener el texto en una sola línea pase lo que pase */
    white-space: nowrap; 
    
    /* Al estar en una sola línea, el line-height define la altura de la "caja" del texto */
    line-height: 1; 
    
    margin: 0 auto;
}

.edu-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    margin-bottom: 6rem;
}

.edu-row:last-child {
    margin-bottom: 0;
}

.edu-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    height: 100%;
    min-height: 350px;
}

.edu-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.edu-content h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: none;
    line-height: 1.2;
}

.edu-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.edu-row.reverse .edu-content {
    order: -1;
}

/* =========================================
   MÚSICA Y PLATAFORMAS
   ========================================= */
.release-section {
    background-color: var(--bg-secondary);
}

.release-container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 4rem;
    align-items: center;
}

.release-cover {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.cover-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) ease-in-out;
}

.release-cover:hover .cover-img {
    transform: scale(1.03);
}

.release-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.release-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: none;
    margin-bottom: 0.5rem;
}

.streaming-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2.5rem;
    margin: 1.5rem 0 2.5rem;
    flex-wrap: wrap;
}

.platform-icon {
    display: inline-block;
    transition: transform var(--transition-speed) ease-in-out, opacity var(--transition-speed) ease-in-out;
    opacity: 0.65;
}

.platform-icon img {
    height: 32px;
    width: auto;
    display: block;
}

.platform-icon:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.05);
}

/* =========================================
   MULTIMEDIA Y GALERÍA
   ========================================= */
.video-section {
    background-color: var(--bg-color); /* Añadido fondo oscuro para contraste */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* =========================================
   CUADRÍCULA DE VIDEOS
   ========================================= */
.video-grid {
    display: grid;
    /* Crea columnas de al menos 400px. Si la pantalla es ancha, pone 2 o 3 al lado. */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem 2rem; /* 3rem de espacio vertical, 2rem horizontal */
    margin-top: 1rem;
}

.video-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Reducimos el margen superior original del wrapper porque ahora lo controla el grid */
.video-item .video-wrapper {
    margin-top: 0; 
}

.video-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1.2rem;
    text-transform: none; /* Mantiene la ortografía original de los títulos */
    line-height: 1.4;
    font-weight: 500;
}
.photos-section {
    background-color: var(--bg-color);
}

/* =========================================
   CARRUSEL DE GALERÍA (SCROLL SNAP DOS FILAS)
   ========================================= */
.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.photos-slider {
    /* Cambiamos Flexbox por Grid para un control absoluto de filas/columnas */
    display: grid;
    /* Crea 2 filas de igual altura */
    grid-template-rows: 1fr 1fr;
    /* Flujo en columnas: Mueve los elementos de arriba a abajo, luego a la siguiente columna */
    grid-auto-flow: column; 
    /* Cada columna (foto) ocupará 350px de ancho */
    grid-auto-columns: 350px; 
    gap: 20px; 
    
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    
    /* Calculamos una altura fija para las dos filas (ej. 300px por foto + 20px gap) */
    height: 620px; 
    width: 100%; /* Asegura que tome todo el ancho disponible */
    
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.photos-slider::-webkit-scrollbar {
    display: none;
}

.photo-item {
    /* Ya no necesitamos anchos ni altos locos con calc(), Grid se encarga */
    scroll-snap-align: start;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    /* Aseguramos que la etiqueta figure ocupe todo su espacio en la cuadrícula */
    width: 100%;
    height: 100%; 
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Este es el héroe que evita que se achaten */
    display: block;
    transition: transform var(--transition-speed) ease-in-out;
}



/* Diseño de los botones del carrusel */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05); /* Blanco casi invisible */
    backdrop-filter: blur(10px); /* El efecto de cristal exacto del menú */
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 4px; /* Puedes cambiarlo a 4px si prefieres cuadrados */
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-speed) ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}
.prev-btn {
    left: -20px; /* Saca el botón ligeramente hacia la izquierda */
}

.next-btn {
    right: -20px; /* Saca el botón ligeramente hacia la derecha */
}

.photo-item {
    margin: 0;
    overflow: hidden;
    border-radius: 4px; /* Unificado con el border-radius global */
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) ease-in-out; /* Añadido efecto a galería */
}


/* =========================================
   CONTACTO Y FOOTER
   ========================================= */
.contact-section {
    background-color: var(--bg-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.direct-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.contact-link:hover {
    color: var(--accent-color);
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    margin: 0.8rem 0;
    width: fit-content;
    padding: 0.6rem 1.8rem;
}

.btn-icon {
    height: 18px;
    width: auto;
    display: block;
}

.contact-form-wrapper {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 1.5rem;
}

.full-form input,
.full-form select,
.full-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    border-radius: 4px;
    transition: border-color var(--transition-speed);
}

.full-form input:focus,
.full-form select:focus,
.full-form textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-select {
    appearance: none;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.minimal-footer {
    padding: 2rem 5%;
    background: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.copyright p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
/* =========================================
   PÁGINA DE ERROR 404
   ========================================= */
.error-page {
    /* Toma el 100% de la altura de la pantalla */
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    padding: 0 5%;
}

.error-code {
    /* Un tamaño gigante que se adapta a celulares y monitores */
    font-size: clamp(6rem, 15vw, 12rem); 
    
    /* Usamos el color de acento o el amarillo de tu marca para que resalte */
    color: #f7b502d9; 
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -5px; /* Un toque de diseño editorial */
}

.error-page h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-page p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
/* =========================================
   MEDIA QUERIES (DISEÑO RESPONSIVO UNIFICADO)
   ========================================= */

/* TABLETS Y LAPTOPS PEQUEÑAS */
@media (max-width: 900px) {
    /* Biografía */
    .bio-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }
    
    .bio-content {
        order: 2;
    }
    
    .bio-image {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Educación */
    .edu-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        margin-bottom: 4rem;
    }

    .edu-content {
        align-items: center;
        order: 2 !important;
    }

    .edu-image {
        order: 1 !important;
        max-width: 600px;
        margin: 0 auto;
        min-height: 250px;
    }

    /* Música */
    .release-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .release-cover {
        max-width: 450px;
        margin: 0 auto;
    }

    .release-info {
        align-items: center;
        text-align: center;
    }

    .streaming-links {
        justify-content: center;
    }

    /* Contacto */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}
/* =========================================
   MENÚ HAMBURGUESA
   ========================================= */
.menu-toggle {
    display: none; /* Oculto en escritorio */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

/* Dibujo de las 3 líneas del menú usando CSS puro (sin imágenes) */
.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--bg-color); /* Oscuro para contrastar con el amarillo */
    transition: transform var(--transition-speed) ease-in-out, opacity var(--transition-speed) ease-in-out;
    border-radius: 2px;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0.5rem;
}

.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }

/* Animación: Transforma las 3 líneas en una "X" cuando está activo */
.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { transform: translateY(0) rotate(45deg); }
.menu-toggle.active .hamburger::after { transform: translateY(0) rotate(-45deg); }
/* MÓVILES */
@media (max-width: 768px) {
    .site-header {
        flex-direction: row; /* Mantiene el logo a la izquierda y el botón a la derecha */
        padding: 1rem 5%;
    }

    .logo-img {
        height: 50px; /* Logo ligeramente más compacto */
    }

    .menu-toggle {
        display: block; /* Muestra el botón en móviles */
    }

    /* El menú se convierte en una persiana oculta */
    .main-nav {
        position: absolute;
        top: 100%; /* Se ancla justo debajo de la línea del header */
        left: 0;
        width: 100%;
        background: #f7b502f5; /* Mismo amarillo pero sólido para que no se mezcle con el texto de abajo */
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
        
        /* Magia de la animación: Altura 0 por defecto */
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed) ease-in-out;
        margin-top: 0;
    }

    /* Cuando el menú se activa, se expande hacia abajo */
    .main-nav.active {
        max-height: 400px; /* Altura suficiente para mostrar todos los enlaces */
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.8rem;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        display: block;
    }
    
    section {
        padding: 8rem 5% 4rem; /* Restauramos los espacios normales */
    }
    /* Ajuste de videos en móviles */
    .video-grid {
        grid-template-columns: 1fr; /* Fuerza 1 sola columna */
        gap: 2.5rem;
}
/* Restauramos el carrusel a 1 sola fila en móviles */
    .photos-slider {
        grid-template-rows: 1fr; /* 1 sola fila */
        grid-auto-columns: 100%; /* Cada foto ocupa el 100% de la pantalla */
        height: auto; 
    }

    .photo-item {
        height: 350px; /* Altura controlada para celulares */
    }
    
    .slider-btn {
        display: none; 
    }
    .section-header p {
        /* Apagamos la línea única en celulares para que el texto fluya hacia abajo y no rompa la pantalla */
        white-space: normal; 
        
        /* Le damos un interlineado un poco más amplio para facilitar la lectura en bloques de texto apilados */
        line-height: 1.4; 
        
        /* Añadimos un pequeño margen lateral para que el texto no toque los bordes del teléfono */
        padding: 0 1rem; 
    }
    }
/* PANTALLAS MUY PEQUEÑAS */
@media (max-width: 600px) {
    .streaming-links {
        gap: 1.5rem;
    }
    
    .platform-icon img {
        height: 28px;
    }
}