/* =========================================
   VARIABLES Y ESTILOS BASE
   ========================================= */
:root {
    --black: #000;
    --white: #fff;
    --gold: #cca300;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: var(--font-sans); 
    color: #333; 
    overflow-x: hidden; 
    background: var(--white); 
}

/* REGLA GENERAL PARA IMÁGENES (Mueve esto aquí arriba para evitar problemas) */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Ayuda a evitar huecos extraños */
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* =========================================
   HEADER Y NAVEGACIÓN
   ========================================= */
.main-header { background: var(--black); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.brand-block { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--white); }
.logo-img { height: 60px; width: auto; transition: 0.3s; }
.brand-name { font-family: var(--font-serif); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 2px; color: var(--white); transition: 0.3s; }

/* Menú oculto por defecto (ESTILO MÓVIL BASE) */
.nav-toggle { background: none; border: none; cursor: pointer; padding: 10px; display: block; z-index: 1001; }
.hamburger, .hamburger::before, .hamburger::after { display: block; width: 25px; height: 2px; background: var(--white); position: relative; transition: 0.3s; }
.hamburger::before { content: ''; position: absolute; top: -8px; left: 0; }
.hamburger::after { content: ''; position: absolute; top: 8px; left: 0; }
.toggle-active .hamburger { background: transparent; }
.toggle-active .hamburger::before { transform: rotate(45deg); top: 0; }
.toggle-active .hamburger::after { transform: rotate(-45deg); top: 0; }

.main-nav { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--black); transition: 0.4s; padding-top: 100px; }
.main-nav.nav-open { right: 0; }
.main-nav ul { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.main-nav a { color: #999; text-decoration: none; text-transform: uppercase; font-size: 1.1rem; }
.main-nav a.active { color: var(--white); border-bottom: 2px solid var(--white); }

/* =========================================
   BANNER / SLIDER (Home)
   ========================================= */
.slider-container { position: relative; width: 100%; height: 600px; background: var(--black); overflow: hidden; }
.slide { display: none; width: 100%; height: 100%; }
.slide.active { display: block; animation: fadeIn 0.8s ease; }
.slide-inner { position: relative; width: 100%; height: 100%; }

/* Importante: height 100% aquí asegura que cubra el fondo */
.slide-img { width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }

.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); display: flex; align-items: center; z-index: 2; }
.text-container-banner { display: flex; justify-content: flex-end; width: 100%; }
.slide-content { max-width: 550px; color: var(--white); text-align: left; }
.slide-content h2 { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1.05; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.author-label { color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 15px; font-weight: 500; }
.slide-content p { font-size: 1.1rem; margin-bottom: 25px; opacity: 0.95; }
.stats { font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; color: rgba(255,255,255,0.8); }
.btn-info { display: inline-block; padding: 12px 35px; border: 1px solid var(--white); border-radius: 50px; color: var(--white); text-decoration: none; transition: 0.3s; background: rgba(0,0,0,0.3); backdrop-filter: blur(5px); }
.btn-info:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: rgba(255,255,255,0.4); font-size: 3.5rem; cursor: pointer; z-index: 10; }
.prev-arrow { left: 20px; } .next-arrow { right: 20px; }

/* =========================================
   SECCIÓN PROPÓSITOS (Home)
   ========================================= */
.purpose-section { padding: 100px 0; text-align: center; }
.section-title { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 400; color: #333; }
.pre-title { color: #999; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }
.separator-line { width: 50px; height: 2px; background: var(--gold); margin: 25px auto 60px auto; }
.purpose-rows-container { display: flex; flex-direction: column; gap: 20px; }
.purpose-row { display: flex; justify-content: center; align-items: flex-start; gap: 60px; margin-bottom: 30px; }
.purpose-item { flex: 1; display: flex; align-items: center; gap: 20px; }
.purpose-item.left { text-align: right; justify-content: flex-end; }
.purpose-item.right { text-align: left; justify-content: flex-start; }
.purpose-item.empty { visibility: hidden; }
.number { min-width: 42px; height: 42px; border: 1px solid #e0e0e0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 0.9rem; transition: 0.3s ease; flex-shrink: 0; }
.text { font-size: 1.05rem; color: #555; line-height: 1.7; }
.center-line { width: 1px; background: #eee; align-self: stretch; }
.purpose-item:hover .number { background: var(--gold); color: var(--white); border-color: var(--gold); transform: scale(1.1); }

/* =========================================
   ESTILOS BIOGRAFÍA (Página Interna)
   ========================================= */
.page-header { background-color: var(--white); padding: 60px 0 20px 0; text-align: center; }
.bio-content-section { padding: 10px 0 100px 0; background-color: #fcfcfc; }
.bio-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.bio-text-content { text-align: left; }
.bio-title { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 30px; line-height: 1.2; }
.separator-line-left { width: 60px; height: 3px; background: var(--gold); margin-bottom: 30px; }
.btn-text-gold { color: var(--gold); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid transparent; transition: 0.3s; }
.btn-text-gold:hover { border-bottom: 1px solid var(--gold); }

/* --- FOTO BIOGRAFÍA --- */
.bio-image-container { position: relative; max-width: 400px; margin: 0 auto; border: 2px solid var(--gold); padding: 15px; background-color: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.bio-frame-decoration { display: none; }
.bio-img { width: 100%; height: auto; display: block; border: 1px solid #eee; }

/* TEASER HOME */
.teaser-container { display: flex; align-items: center; gap: 60px; }
.teaser-image { flex: 1; }
.teaser-img { width: 100%; max-width: 400px; display: block; margin: 0 auto; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.teaser-text { flex: 1; text-align: left; }

/* FOOTER Y CONTACTO */
.contact-section { padding: 100px 0; text-align: center; background: #fafafa; }
.email-link { font-size: 2.2rem; color: var(--gold); text-decoration: none; font-family: var(--font-serif); font-weight: 700; transition: font-size 0.3s; }
.main-footer { background: var(--black); color: #888; padding: 40px 0; text-align: center; font-size: 0.8rem; letter-spacing: 1px; }

/* =========================================
   ESTILOS SECCIÓN MÚSICA
   ========================================= */
.album-section { padding: 20px 0 100px 0; background-color: #fcfcfc; }
.album-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.album-cover-container { text-align: center; position: sticky; top: 100px; }
.album-cover-img { width: 100%; max-width: 450px; height: auto; box-shadow: 0 15px 40px rgba(0,0,0,0.2); display: block; margin: 0 auto; border-radius: 10px; }
.album-actions { margin-top: 30px; }
.release-date { font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; color: #999; margin-bottom: 20px; }
.btn-spotify { display: inline-block; background: #1DB954; color: #fff; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
.btn-spotify:hover { background: #1ed760; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(29, 185, 84, 0.4); }

.album-info { padding-top: 10px; }
.album-title { font-family: var(--font-serif); font-size: 3rem; line-height: 1.1; margin-bottom: 25px; color: var(--black); }
.album-description { font-size: 1.1rem; line-height: 1.7; color: #555; margin-bottom: 40px; }
.album-description p { margin-bottom: 15px; }

.tracklist-header { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: #999; margin-bottom: 20px; border-bottom: 2px solid var(--black); padding-bottom: 10px; display: inline-block; }
.tracklist { list-style: none; width: 100%; }
.track-item { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; transition: 0.3s; }
.track-item:hover { padding-left: 10px; background-color: #fff; }
.track-number { font-size: 0.9rem; color: #bbb; width: 40px; font-family: monospace; }
.track-name { flex: 1; font-size: 1.05rem; color: #444; font-weight: 500; }
.track-item:hover .track-name { color: var(--gold); }
.play-btn { background: none; border: 1px solid #ddd; width: 30px; height: 30px; border-radius: 50%; color: #999; cursor: pointer; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.track-item:hover .play-btn { border-color: var(--gold); color: var(--gold); transform: scale(1.1); }

/* =========================================
   ESTILOS SECCIÓN LIBROS
   ========================================= */
.book-section { padding: 30px 0 100px 0; background-color: #fcfcfc; }
.book-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; }
.book-cover-col { text-align: center; position: sticky; top: 100px; }
.book-cover-img { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; border-radius: 10px; box-shadow: 10px 20px 40px rgba(0,0,0,0.2); transition: transform 0.3s ease; }
.book-cover-img:hover { transform: translateY(-5px); }

.book-actions { margin-top: 40px; padding: 30px; background: #fff; border: 1px solid rgba(0,0,0,0.05); border-top: 3px solid var(--gold); border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); max-width: 380px; margin-left: auto; margin-right: auto; }
.format-badge { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--black); margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; text-align: center; }
.availability-text { font-size: 0.9rem; color: #777; margin-bottom: 20px; font-family: var(--font-serif); font-style: italic; }
.btn-amazon { display: block; width: 100%; background-color: var(--black); color: #fff; padding: 15px 0; border-radius: 2px; text-decoration: none; font-weight: 500; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; transition: 0.3s; }
.btn-amazon:hover { background-color: var(--gold); color: var(--black); }
.ku-text { margin-top: 20px; font-size: 0.8rem; color: #999; }

.book-title { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1.1; margin-bottom: 30px; color: var(--black); }
.book-synopsis { font-size: 1.15rem; line-height: 1.8; color: #444; }
.book-synopsis p { margin-bottom: 25px; }
.highlight-text { font-family: var(--font-serif); font-size: 1.5rem; color: var(--black); border-left: 2px solid var(--gold); padding-left: 30px; margin: 40px 0 !important; font-style: italic; }
.composers-list { font-family: var(--font-serif); font-size: 1.2rem; color: #666; margin-bottom: 30px; padding: 20px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }

.qr-feature-box { display: flex; align-items: center; gap: 25px; background: var(--black); padding: 30px; border-radius: 4px; margin: 40px 0; position: relative; overflow: hidden; border-left: 5px solid var(--gold); }
.qr-feature-box::after { content: ''; position: absolute; top: -50%; right: -10%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(204, 163, 0, 0.15) 0%, transparent 70%); z-index: 0; }
.qr-icon { font-size: 2.5rem; filter: grayscale(100%) brightness(200%); position: relative; z-index: 1; }
.qr-text { font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.6; position: relative; z-index: 1; }
.qr-text strong { color: var(--gold); display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.call-to-action { font-family: var(--font-serif); font-weight: 700; color: var(--black); font-size: 1.3rem; margin-top: 40px; text-align: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   MEDIA QUERIES (CONTROL DEL RESPONSIVE)
   ========================================= */

/* ESCRITORIO (Pantallas mayores de 900px) */
@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .main-nav { position: static; height: auto; width: auto; background: transparent; padding-top: 0; }
    .main-nav ul { flex-direction: row; gap: 30px; }
    .main-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.7); letter-spacing: 1px; }
    .main-nav a:hover, .main-nav a.active { color: var(--white); }
}

/* MÓVIL (Pantallas menores de 900px) */
@media (max-width: 899px) {
    /* CABECERA Y LOGO AJUSTADOS */
    .header-content { padding: 0 20px; }
    .brand-block { gap: 10px; max-width: 75%; }
    .logo-img { height: 40px; }
    .brand-name { font-size: 0.9rem; letter-spacing: 1px; line-height: 1.2; }

    /* --- ARREGLO DEL BANNER MÓVIL (TEXTO Y FOTO) --- */
    .slider-container { 
        height: 100vh; /* Ocupa pantalla completa, queda mejor */
        max-height: 600px; /* Pero no infinito */
    }
    
    .text-container-banner { 
        justify-content: center; 
        width: 100%;
        padding: 0; /* Reseteamos para que mande el hijo */
    }

    /* AQUÍ SE ARREGLA EL TEXTO PEGADO A LOS BORDES */
    .slide-content { 
        text-align: center; 
        width: 100%;
        max-width: 100%; 
        padding: 0 30px; /* ¡Esto da el aire a los lados! */
        box-sizing: border-box; 
    }
    
    .slide-content h2 { font-size: 2rem; line-height: 1.2; }
    
    .slide-overlay { background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); }
    
    /* AQUÍ SE ARREGLA LA FOTO DE FONDO CORTADA */
    .slide-img {
        height: 100%; 
        width: 100%;
        object-fit: cover;
        object-position: center top; /* Centrada en vertical */
    }
    
    .slider-arrow { font-size: 2rem; }
    .prev-arrow { left: 10px; } .next-arrow { right: 10px; }

    /* PROPÓSITOS */
    .purpose-row { flex-direction: column; gap: 40px; align-items: center; }
    .center-line { display: none; }
    .purpose-item { flex-direction: row-reverse; justify-content: flex-end; text-align: left; width: 100%; }
    .purpose-item.left { text-align: left; justify-content: flex-end; }
    .purpose-item.empty { display: none; }
    
    /* EMAIL RESPONSIVE */
    .email-link { font-size: 1.4rem; word-break: break-all; }
    
    /* AJUSTES GENERALES */
    .bio-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
    .teaser-container { flex-direction: column; }
    .bio-text-content, .teaser-text { text-align: center; }
    .separator-line-left { margin: 0 auto 30px auto; }

    /* MÚSICA Y LIBROS */
    .album-grid, .book-grid { grid-template-columns: 1fr; gap: 50px; padding: 0 20px; }
    .album-cover-container, .book-cover-col { position: static; order: -1; margin-bottom: 20px; }
    .album-title, .book-title { font-size: 2.5rem; text-align: center; }
    .pre-title, .album-description, .book-synopsis { text-align: center; }
    .tracklist-header { display: block; text-align: center; margin: 0 auto 20px auto; width: max-content; }
    .qr-feature-box { flex-direction: column; text-align: center; }
}