/* =========================================
   VARIABLES & GLOBALES (Heredadas)
   ========================================= */
:root {
    --bg-dark: #071324;
    --player-bg: #0b1a30;
    --card-dark: #050d18;
}
body { background-color: white; }
.text-cyan { color: var(--accent-cyan); }

/* =========================================
   1. HERO HIMNO (Ahora al 100vh)
   ========================================= */
.himno-hero {
    position: relative; width: 100%; 
    height: 100vh; /* Cambiado a 100vh para igualar al index */
    min-height: 600px;
    background-color: var(--bg-dark); display: flex; align-items: center;
    padding: 0 var(--page-padding-mobile); overflow: hidden;
}
.hero-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('resources/Hero-himno.png');
    background-size: cover; background-position: center; opacity: 0.35; z-index: 1; filter: grayscale(100%) contrast(1.2);
}
.hero-overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(3, 44, 101, 0.4) 0%, var(--bg-dark) 100%); z-index: 2;
}
.himno-watermark {
    position: absolute; top: 50%; right: -5%; transform: translateY(-50%);
    font-family: var(--font-heading); font-size: 18vw; font-weight: 900; color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.03); z-index: 2; pointer-events: none;
}
.himno-hero-content { 
    position: relative; z-index: 5; width: 100%; max-width: 1200px; 
    margin: 50px auto 0; 
    /* Centrado Flex para móvil */
    display: flex; flex-direction: column; align-items: center; text-align: center; 
}
.himno-hero-content .section-label-light { justify-content: center !important; }
.himno-title { font-family: var(--font-heading); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900; color: white; line-height: 1.1; margin-bottom: 30px; text-transform: uppercase; text-align: center; }
.himno-subtitle-box { 
    display: flex; gap: 15px; max-width: 500px; 
    /* En móvil se apila y se centra */
    flex-direction: column; align-items: center; text-align: center; 
}
.vertical-line { width: 50px; height: 3px; background-color: var(--accent-cyan); border-radius: 2px; }
.subtitle-text h3 { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.subtitle-text p { color: var(--text-silver); font-size: 0.95rem; line-height: 1.6; }

/* =========================================
   2. SECCIÓN PRINCIPAL (Fondo Blanco)
   ========================================= */
.himno-main-section { 
    background-color: white; 
    padding: 80px var(--page-padding-mobile); 
}
.lyrics-container { 
    width: 100%; max-width: 1200px; margin: 0 auto; 
    display: flex; flex-direction: column; gap: 60px; /* Separación entre el reprodutor y la letra */
}

/* Reproductor Premium */
.player-card {
    width: 100%; /* Ocupa el mismo ancho que las letras abajo */
    background: linear-gradient(135deg, #102442 0%, var(--card-dark) 100%);
    border: 1px solid rgba(0,0,0,0.1); border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); padding: 40px;
    display: flex; flex-direction: column; gap: 40px; align-items: center;
}

/* Controles */
.player-controls { width: 100%; color: white; }
.player-label { font-size: 0.75rem; font-weight: 800; color: var(--accent-cyan); letter-spacing: 0.1em; }
.player-controls h2 { font-family: var(--font-heading); font-size: 2rem; margin: 5px 0; }
.player-controls p { color: var(--text-silver); font-size: 0.9rem; margin-bottom: 30px; }

.audio-interface { display: flex; align-items: center; gap: 25px; margin-bottom: 20px;}
.btn-play-circle {
    width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--accent-cyan), var(--brand-blue));
    color: white; font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3); transition: transform 0.2s; flex-shrink: 0;
}
.btn-play-circle:hover { transform: scale(1.05); }

/* Visualizador de Ondas CSS */
.wave-visualizer { flex: 1; display: flex; align-items: center; gap: 4px; height: 25px; }
.wave-visualizer span { width: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; height: 10%; transition: height 0.1s ease; }
.wave-visualizer.playing span { background: var(--accent-cyan); box-shadow: 0 0 8px rgba(0,212,255,0.5); }
.wave-visualizer.playing span:nth-child(even) { animation: soundBounce 0.5s infinite alternate ease-in-out; }
.wave-visualizer.playing span:nth-child(odd) { animation: soundBounce 0.6s infinite alternate-reverse ease-in-out; }
@keyframes soundBounce { 0% { height: 20%; } 100% { height: 100%; } }

.audio-time { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-silver); font-weight: 600; margin-bottom: 8px; }
.progress-bar-bg { 
    width: 100%; height: 6px; background: rgba(255,255,255,0.1); 
    border-radius: 3px; overflow: hidden; 
    cursor: pointer; /* Agregado para indicar que es clickeable */
}
.progress-bar-fill { width: 0%; height: 100%; background: var(--accent-cyan); border-radius: 3px; transition: width 0.1s linear; }

/* Vinilo y Carátula */
.player-visual { position: relative; width: 250px; height: 250px; display: flex; align-items: center; }
.album-cover {
    width: 200px; height: 200px; background: var(--primary-navy); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; position: absolute; left: 0; z-index: 5;
    box-shadow: 10px 0 20px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
}
.album-cover img { width: 80px; filter: brightness(0) invert(1); opacity: 0.8; }

.vinyl-record {
    width: 190px; height: 190px; border-radius: 50%; position: absolute; left: 0; z-index: 1;
    background: radial-gradient(circle at center, #000 0%, #1a1a1a 80%, #000 100%);
    border: 4px solid #111; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.vinyl-record::before { content: ''; position: absolute; width: 85%; height: 85%; border-radius: 50%; border: 1px solid rgba(255,255,255,0.05); }
.vinyl-record::after { content: ''; position: absolute; width: 65%; height: 65%; border-radius: 50%; border: 1px solid rgba(255,255,255,0.05); }

.vinyl-center { width: 60px; height: 60px; border-radius: 50%; background: var(--brand-blue); border: 2px solid #000; display: flex; align-items: center; justify-content: center; }
.vinyl-center img { width: 30px; filter: brightness(0) invert(1); }

/* Animación Vinilo girando */
.player-visual.is-playing .vinyl-record { transform: translateX(55%) rotate(360deg); animation: spin 4s linear infinite 0.5s; }
@keyframes spin { 100% { transform: translateX(55%) rotate(720deg); } }


/* BLOQUE LETRAS Y SIDEBAR */
.lyrics-layout { display: flex; flex-direction: column; gap: 50px; }
.lyrics-content { flex: 1; }
.lyrics-header { 
    color: var(--brand-blue); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; 
    display: flex; align-items: center; gap: 10px; margin-bottom: 40px; 
    justify-content: center; /* Centrado en móvil */
}
.lyrics-grid { 
    display: grid; grid-template-columns: 1fr; gap: 40px; 
    text-align: center; /* Centra las estrofas en móvil */
}
.stanza { margin-bottom: 35px; }
.stanza h4 { font-family: var(--font-heading); color: var(--brand-blue); font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.stanza p { color: var(--primary-navy); font-size: 1rem; line-height: 1.8; font-weight: 500; }

/* Sidebar Oscuro (Igual altura) */
.lyrics-sidebar { width: 100%; max-width: 350px; margin: 0 auto; display: flex; }
.info-card-dark {
    width: 100%; background: var(--card-dark); border: 1px solid rgba(0, 212, 255, 0.2); 
    border-radius: 16px; padding: 40px 30px; text-align: center; color: white; 
    box-shadow: 0 20px 40px rgba(10,30,54,0.15);
    /* Flexbox para centrar verticalmente si la letra es más larga */
    display: flex; flex-direction: column; justify-content: center;
}
.ic-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(0, 212, 255, 0.1); color: var(--accent-cyan); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px; }
.info-card-dark h4 { color: var(--accent-cyan); font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; line-height: 1.3; margin-bottom: 20px; letter-spacing: 0.05em; }
.info-card-dark p { color: var(--text-silver); font-size: 0.9rem; line-height: 1.6; margin-bottom: 30px; }
.ic-footer { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 0.8rem; color: var(--brand-blue); }
.ic-footer .line { height: 1px; width: 30px; background: rgba(255,255,255,0.1); }

/* =========================================
   NUEVO: RECUADRO DE VALORES (HIMNO)
   ========================================= */
.values-card {
    position: relative; width: 100%; overflow: hidden;
    background: linear-gradient(135deg, #0b1a30 0%, var(--card-dark) 100%);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); color: white;
}
.values-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('resources/LogoClub.png');
    background-size: cover; background-position: center; opacity: 0.3; mix-blend-mode: overlay;
}
.values-content { position: relative; z-index: 2; padding: 40px; }

.values-header { text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; margin-bottom: 30px; }
.v-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 800; color: var(--accent-cyan); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.values-header h2 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; }
.values-header p { color: var(--text-silver); font-size: 1rem; }

.values-grid { display: grid; grid-template-columns: 1fr; gap: 30px; text-align: center; }
.v-item { padding: 15px; }

/* Contenedor forzado para los iconos */
.v-icon { display: flex; justify-content: center; margin-bottom: 15px; }
.v-icon i { font-size: 3rem; color: var(--accent-cyan); }

.v-item h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 10px; }
.v-item p { color: var(--text-silver); font-size: 0.85rem; line-height: 1.6; }

/* =========================================
   3. FRASE FINAL (Tarjeta Apaisada EXACTA a la referencia)
   ========================================= */
.himno-quote-section {
    background-color: var(--bg-dark); 
    padding: 80px var(--page-padding-mobile);
    display: flex; justify-content: center;
}

.quote-card {
    width: 100%; max-width: 1100px; /* Tarjeta ancha */
    background: linear-gradient(135deg, #0d1e34 0%, #081220 100%);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 40px 30px;
    display: flex; flex-direction: column; /* Columna en móvil por espacio */
    align-items: center; justify-content: space-between; gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.quote-mark {
    font-size: 4rem; /* Tamaño de las comillas gigantes */
    color: rgba(0, 212, 255, 0.08); /* Color azul tenue/transparente */
    line-height: 1; display: flex; align-items: center;
}
.quote-mark.left { align-self: flex-start; }
.quote-mark.right { align-self: flex-end; transform: rotate(180deg); }

.quote-content { text-align: center; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.q-subtitle { color: var(--text-silver); font-size: 1rem; font-weight: 400; }
.q-title { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: white; line-height: 1.2; }
.q-desc { color: var(--accent-cyan); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 10px; }


/* =========================================
   MEDIA QUERIES DESKTOP
   ========================================= */
@media (min-width: 1024px) {
    .himno-hero { padding: 0 var(--page-padding-desktop); }
    
    .himno-main-section { padding: 100px var(--page-padding-desktop); }
    
    .himno-hero-content { align-items: flex-start; text-align: left; }
    .himno-hero-content .section-label-light { justify-content: flex-start !important; }
    .himno-title { text-align: left; }
    .himno-subtitle-box { flex-direction: row; align-items: stretch; text-align: left; }
    .vertical-line { width: 3px; height: auto; }
    /* Reproductor Desktop */
    .player-card { 
        flex-direction: row; 
        justify-content: space-between; 
        padding: 50px 60px; 
    }
    .player-controls { 
        width: 85%; /* Esto hace la barra de progreso mucho más larga */
    }
    .player-visual { width: 30%; justify-content: center; }
    
    /* Layout Letras y Sidebar Desktop (Stretch = Mismo Alto) */
    .lyrics-layout { flex-direction: row; align-items: stretch; gap: 60px; }
    .lyrics-content { width: 65%; }
    .lyrics-header { justify-content: flex-start; }
    .lyrics-grid { grid-template-columns: 1fr 1fr; gap: 60px; text-align: left; }
    .lyrics-sidebar { width: 35%; margin: 0; } 
    
    /* Layout Recuadro Valores Desktop */
    .values-content { padding: 50px 60px; }
    .values-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
    .v-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.1); }
    .v-item { padding: 0 30px; }

    /* Tarjeta Quote Final Desktop (Alineación Horizontal) */
    .quote-card { 
        flex-direction: row; /* Coloca todo en una sola fila */
        padding: 60px 80px; 
    }
    .quote-mark { font-size: 8rem; } /* Comillas aún más gigantes en PC */
    .quote-mark.left { align-self: center; } /* Centrado vertical */
    .quote-mark.right { align-self: center; } /* Centrado vertical */
    .quote-content { padding: 0 40px; } /* Da respiro entre el texto y las comillas */
}