/* --- CONFIGURACIÓN GENERAL --- */
:root {
    --color-background: #0a0a0a;
    --color-text: #e5e5e5;
    --color-surface: #010912;
    --color-accent: #fca311;
    --color-white: #ffffff;
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--color-background); color: var(--color-text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; min-height: 500px; position: relative; }

/* CORRECCIÓN DEFINITIVA DEL FONDO: Aplicado al body entero */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: linear-gradient(-45deg, #0a0a0a, #1a1100, #2c1e00, #0a0a0a);
    background-size: 400% 400%;
    animation: background-pan 25s ease-in-out infinite alternate;
}
@keyframes background-pan { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* --- LOGOS --- */
.logo-main { width: clamp(60px, 10vw, 120px); height: clamp(60px, 10vw, 120px); margin-bottom: 2vh; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1)); border-radius: 50%; object-fit: cover; }
.logo-footer { width: clamp(50px, 6vw, 80px); height: clamp(50px, 6vw, 80px); margin-top: 3rem; opacity: 0.6; transition: opacity 0.3s ease; border-radius: 50%; object-fit: cover; }
.logo-footer:hover { opacity: 1; }

/* --- ESTRUCTURA DE PANELES --- */
.left-panel { position: fixed; top: 0; left: 0; width: 25%; height: 100vh; background-color: rgba(1, 9, 18, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-right: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2vh 2vw; z-index: 100; overflow: hidden; transition: backdrop-filter 0.5s ease-in-out, box-shadow 0.5s ease-in-out; }
.left-panel::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(rgba(229, 229, 229, 0.05) 1px, transparent 0); background-size: 15px 15px; opacity: 0.5; z-index: -1; pointer-events: none; }
.left-panel:hover { backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: inset -7px 0 25px rgba(0,0,0,0.4); }
.left-panel:hover::after { opacity: 1; }

.right-panel { margin-left: 25%; width: 75%; position: relative; background: transparent; }

/* --- UBICACIÓN (NUEVO) --- */
.location-badge {
    position: absolute;
    top: 2vh;
    right: 2vw;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.6rem, 0.8vw, 0.8rem);
    color: var(--color-text);
    opacity: 0.7;
    font-weight: 300;
}
.location-badge i {
    color: var(--color-accent);
    font-size: 1rem;
}
.location-badge img {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

/* --- ESTILOS DE CONTENIDO --- */
.panel-content h1 { font-size: clamp(1.2rem, 3.5vw, 3rem); margin-bottom: 1vh; color: var(--color-white); text-shadow: 0 0 10px rgba(255,255,255,0.2); }
.panel-content .tagline { font-size: clamp(0.6rem, 1.2vw, 1rem); font-weight: 400; letter-spacing: 1px; margin-bottom: 4vh; color: var(--color-accent); opacity: 1; }
.panel-content nav a { display: block; color: var(--color-text); text-decoration: none; font-size: clamp(0.8rem, 1.4vw, 1.2rem); margin: 2.5vh 0; position: relative; transition: all 0.3s ease; }
.panel-content nav a:hover { color: var(--color-white); letter-spacing: 2px; text-shadow: 0 0 8px var(--color-accent); }
.contact-button-main { display: inline-block; border: 2px solid var(--color-accent); color: var(--color-accent); padding: clamp(0.5rem, 0.8vw, 0.7rem) clamp(1.2rem, 1.8vw, 1.8rem); text-decoration: none; font-weight: 500; border-radius: 5px; margin-top: 4vh; transition: all 0.3s; box-shadow: 0 0 15px rgba(252, 163, 17, 0); font-size: clamp(0.7rem, 1vw, 0.9rem); }
.contact-button-main:hover { background-color: var(--color-accent); color: var(--color-background); box-shadow: 0 0 20px rgba(252, 163, 17, 0.5); transform: translateY(-3px); }

.content-wrapper { max-width: 900px; margin: 0 auto; padding: 0 4vw; }
section { padding: 4vh 0 8vh 0; border-bottom: 1px solid #333; }
section:last-of-type { border-bottom: none; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 2rem; text-align: left; color: var(--color-accent); text-shadow: 0 0 15px rgba(0,0,0,0.5); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 1rem; color: var(--color-accent); }
h4 { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--color-accent); margin-bottom: 0.5rem; font-weight: 500; }
body { font-size: clamp(0.9rem, 1.5vw, 1rem); }

.card { background-color: var(--color-surface); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 2.5vw; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease; transform-style: preserve-3d; }
.right-panel { perspective: 1500px; }
.card:hover { transform: translateY(-10px) rotateX(5deg) rotateY(-5deg) scale(1.03); box-shadow: 0 0 25px rgba(252, 163, 17, 0.2), 0 20px 40px rgba(0,0,0,0.5); }

/* --- SECCIÓN MÚSICA (VIDEO COLLAGE AJUSTADO) --- */
.video-collage { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: auto; 
    gap: 15px; 
    padding: 0; 
    width: 75%; 
    max-width: 1200px; 
    margin: 0 auto 5vh auto; 
}

/* MEDIA QUERY ESPECÍFICA PARA PANTALLAS GIGANTES */
@media (min-width: 1600px) {
    .video-collage {
        max-width: 1200px; 
    }
}

.video-container { background: #000; overflow: hidden; border-radius: 8px; box-shadow: 0 0 15px rgba(0,0,0,0.5); aspect-ratio: 16 / 9; width: 100%; }
.video-container video { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.vc-1 { grid-column: 1 / 3; } 
.vc-2 { grid-column: 1 / 2; } 
.vc-3 { grid-column: 2 / 3; } 

.card .youtube-container { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; border-radius: 6px; }
.card > .youtube-container { margin: -2.5vw; width: calc(100% + 5vw); height: calc(100% + 5vw); }
.youtube-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.audio-player.card { margin-top: 2rem; padding: 1.5rem; }
.track-list { margin-bottom: 1.5rem; }
.track { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; cursor: pointer; transition: background-color 0.3s; border-radius: 5px; margin-bottom: 4px; }
.track-title { font-size: clamp(0.8rem, 1.1vw, 0.9rem); font-weight: 500; }
.track-duration { font-size: clamp(0.7rem, 1vw, 0.8rem); opacity: 0.6; font-family: 'Courier New', monospace; }
.track:hover { background-color: rgba(252, 163, 17, 0.1); }
.track.active { background-color: var(--color-accent); color: var(--color-background); font-weight: 500; box-shadow: 0 0 15px rgba(252, 163, 17, 0.4); }
.track.active .track-duration { opacity: 1; }
.player-controls { display: flex; align-items: center; gap: 1rem; }
#play-pause-btn { background: var(--color-accent); border: none; color: var(--color-background); width: clamp(35px, 4vw, 40px); height: clamp(35px, 4vw, 40px); border-radius: 50%; font-size: clamp(0.8rem, 1vw, 1rem); cursor: pointer; transition: transform 0.2s; flex-shrink: 0; }
#play-pause-btn:hover { transform: scale(1.1); }
.progress-container { flex-grow: 1; background: #444; height: 5px; cursor: pointer; border-radius: 2.5px; }
.progress-bar { background: var(--color-accent); width: 0; height: 100%; border-radius: 2.5px; }
.time-display { font-family: 'Courier New', monospace; font-size: clamp(0.75rem, 1vw, 0.85rem); opacity: 0.8; }

.trio-description { max-width: 700px; margin-bottom: 1.5rem; opacity: 0.9; }
.features-header { border-left: 3px solid var(--color-accent); padding-left: 1.5rem; margin: 4rem 0 2rem 0; }
.members-grid { display: flex; flex-direction: column; gap: 2rem; }
.member { display: flex; align-items: center; gap: 2.5vw; padding: 2vw; }
.member img { width: clamp(150px, 18vw, 250px); height: clamp(150px, 18vw, 250px); border-radius: 50%; object-fit: cover; box-shadow: 0 0 25px rgba(0,0,0,0.6); }
.member-info { flex: 1; }
.member-info span { display: block; font-weight: 500; color: var(--color-accent); margin-bottom: 1rem; }
.member.member-reverse { flex-direction: row-reverse; }
.member.member-reverse .member-info { text-align: right; }

#parallax-separator { min-height: 40vh; background-image: url('assets/images/trio_azotea_bw.jpg'); background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; padding: 0; border-bottom: none; position: relative; }
#parallax-separator::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }

#contact { background-image: url('assets/images/trio_azotea_bw.jpg'); background-size: cover; background-position: center; position: relative; text-align: center; }
.footer-content { background: rgba(0,0,0,0.85); padding: 8vh 2vw; }
.booking-info { display: flex; justify-content: center; gap: 2vw; max-width: 800px; margin: 2rem auto 3rem auto; text-align: left; }
.info-block { flex: 1; }
.info-block.card:hover { box-shadow: 0 0 25px rgba(252, 163, 17, 0.3), 0 20px 40px rgba(0,0,0,0.5); }
.info-block ul { list-style: none; padding: 0; }
.info-block li { margin-bottom: 0.5rem; opacity: 0.8; }
.contact-button { display: inline-block; background-color: var(--color-accent); color: var(--color-background); padding: 1rem 2.5rem; text-decoration: none; font-weight: bold; border-radius: 5px; margin: 1rem 0 2rem 0; transition: all 0.3s; box-shadow: 0 0 20px rgba(252, 163, 17, 0); }
.contact-button:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 0 30px rgba(252, 163, 17, 0.5); }
.social-links a { color: var(--color-white); font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 1rem; transition: color 0.3s; }
.social-links a:hover { color: var(--color-accent); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   DISEÑO RESPONSIVO Y CORRECCIÓN PARA MONITORES "CHATOS" (19")
   ========================================================================== */

/* CORRECCIÓN DE ALTURA PARA MONITORES 19" Y LAPTOPS */
@media (min-width: 901px) and (max-height: 850px) {
    .left-panel { padding: 1vh 2vw; } 
    .logo-main { width: 100px; height: 100px; margin-bottom: 1.5vh; }
    .panel-content h1 { font-size: 2rem; margin-bottom: 0.5vh; } 
    .panel-content .tagline { font-size: 0.9rem; margin-bottom: 2vh; }
    .panel-content nav a { font-size: 1rem; margin: 1.5vh 0; }
    .contact-button-main { margin-top: 2vh; padding: 0.6rem 1.5rem; font-size: 0.85rem; }
    
    /* Ajuste para que la ubicación no quede muy pegada en pantallas bajas */
    .location-badge { top: 1.5vh; right: 1.5vw; font-size: 0.7rem; }
}

@media (max-width: 1200px) {
    .video-collage { max-width: 90%; gap: 10px; } 
    .content-wrapper { padding: 0 2rem; }
}

@media (max-width: 900px) {
    .left-panel { position: relative; width: 100%; height: auto; padding: 3rem 1rem; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .right-panel { margin-left: 0; width: 100%; }
    .video-collage { display: flex; flex-direction: column; height: auto; padding: 1.5rem; max-width: 100%; width: 100%; }
    .vc-1, .vc-2, .vc-3 { width: 100%; }
    .booking-info { flex-direction: column; }
    .member, .member.member-reverse { flex-direction: column; text-align: center; }
    .member.member-reverse .member-info { text-align: center; }
    /* Ajuste de ubicación en móvil para que no estorbe */
    .location-badge { top: 1rem; right: 1rem; }
}