/* ==========================================================================
   CSS Final y Unificado para Todo el Sitio
   ========================================================================== */

/* --- General Styles & Fonts --- */
body {
    font-family: "olimpico", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4, h5, h6, .hero-title, .section-title, header .logo a { font-family: "legitima", serif; font-weight: 500; font-style: normal; }
.agenda-item .date .day { font-family: "legitima", serif; }

/* --- Header & Navigation --- */
header { background-color: #000; color: #fff; padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 2px solid #ffeb3b; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
header nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header .logo img { height: 50px; width: auto; vertical-align: middle; }
header ul.nav-links { list-style: none; padding: 0; display: flex; align-items: center; margin: 0; }
header ul li { margin-left: 40px; }
header ul li a { color: #fff; text-decoration: none; transition: color 0.3s ease; font-size: 1.1rem; }
header ul li a:hover { color: #ffeb3b; }

/* CORREGIDO: Botón de Hamburguesa oculto por defecto en escritorio */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger .bar { display: block; width: 25px; height: 3px; background-color: #fff; margin: 5px auto; transition: all 0.3s ease-in-out; }

/* --- Hero Section --- */
#hero { height: 90vh; background: url('../img/hero1.gif') no-repeat center center/cover; display: flex; align-items: center; position: relative; color: #fff; }
.hero-content { animation: fadeIn 2s ease-in-out; text-align: right; width: 60%; max-width: 800px; margin-left: 0%; margin-top: -100px;}
.hero-title { font-size: 8rem; width: 800px; margin: 0; margin-right: 80%; }
.hero-title::after { content: ''; display: block; width: 64%; height: 8px; background-color: #ffeb3b; margin-top: 15px; margin-left: auto; }
.hero-subtitle { font-family: "olimpico", sans-serif; font-weight: 700; font-size: 2.5rem; margin: 20px 0 30px; }
.cta-button { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); font-family: "olimpico", sans-serif; font-weight: 700; font-size: 2rem; background-color: transparent; border: 2px solid #ffeb3b; color: #ffeb3b; box-shadow: 0 4px 15px rgba(0,0,0,0.2); padding: 15px 30px; text-decoration: none; border-radius: 13px; transition: all 0.3s ease; animation: buttonAppear 2s ease-in-out; }
.cta-button:hover { background-color: #ffeb3b; color: #333; }

/* --- Estilos de Secciones y Títulos --- */
section { padding: 80px 0; }
.section-title { text-align: left; font-size: 3rem; position: relative; padding-left: 35px; margin-bottom: 50px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 10px; height: 100%; background-color: #ffeb3b; }

/* CORREGIDO: Contenedor unificado para alinear títulos */
.about-wrapper, .agenda-wrapper, .media-wrapper, .contact-wrapper, .repertoire-wrapper { max-width: 800px; margin: 0 auto; }

/* --- About Section --- */
#about { padding: 100px 0; position: relative; z-index: 2; }
#about::before { content: ''; position: absolute; top: 0; left: 50%; transform: translate(-50%, -100%); width: 0; height: 0; border-left: 200px solid transparent; border-right: 200px solid transparent; border-bottom: 60px solid #f4f4f4; }
.about-content { max-width: 650px; margin-left: 80px; }
.about-main-text { text-align: center; font-size: 1.2rem; line-height: 1.7; color: #555; }
.about-bold-quote { text-align: center; font-family: "olimpico", sans-serif; font-weight: 700; font-size: 1.4rem; margin-top: 35px; }

/* --- Agenda Section --- */
#agenda {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 80px 0; /* Añadimos padding para un espaciado consistente */
}
#agenda .agenda-item { background-color: #ffeb3b; color: #333; border-radius: 15px; padding: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); width: 250px; height: 250px; display: flex; flex-direction: column; justify-content: center; text-align: left; box-sizing: border-box; }
#agenda .agenda-item .date .day { display: block; font-size: 4.5rem; font-weight: bold; line-height: 1; }
.agenda-carousel .swiper-slide .slide-content { opacity: 0.4; transform: scale(0.85); transition: opacity 0.4s ease, transform 0.4s ease; }
.agenda-carousel .swiper-slide-active .slide-content { opacity: 1; transform: scale(1); }

/* --- Repertoire Page --- */
.page-content { padding-top: 150px; padding-bottom: 80px; }
.repertoire-category h2 { font-family: "olimpico", sans-serif; font-weight: 700; font-size: 1.5rem; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; margin-top: 40px; margin-bottom: 20px; }
.repertoire-list { list-style: none; padding: 0; margin: 0; }
.repertoire-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 10px; border-bottom: 1px solid #e0e0e0; }
.repertoire-role { font-weight: 700; }
.repertoire-work { text-align: right; color: #555; }

/* --- Media Section --- */
#media { background-color: #000; color: #fff; }
#media::before { content: ''; position: absolute; top: 0; left: 50%; transform: translate(-50%, 0); z-index: 1; width: 0; height: 0; border-left: 200px solid transparent; border-right: 200px solid transparent; border-bottom: 60px solid #f4f4f4; }
.media-carousel-container { width: 100%; max-width: 100%; overflow: hidden; margin: 50px 0; position: relative; }
.media-carousel { display: flex; width: fit-content; animation: scroll 40s linear infinite; }
.media-carousel img { height: 40vh; width: auto; margin: 0 15px; border-radius: 5px; }

/* --- Contact Section --- */
#contact { padding: 80px 0; background-color: #000; color: #fff; }
#contact-form { max-width: 600px; margin: 40px auto; }
.form-group { margin-bottom: 25px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; background-color: #000; border: 2px solid #ffeb3b; border-radius: 8px; color: #fff; font-family: "olimpico", sans-serif; font-size: 1.1rem; box-sizing: border-box; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #ccc; }

/* --- Footer --- */
footer { background-color: #ffeb3b; color: #000; padding: 40px 0; text-align: center; font-size: 0.9rem; }
.footer-links a { color: #000; margin: 0 15px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.social-media { margin: 20px 0; }
.social-media a img { width: 30px; }

/* --- Estilos de Enlaces y Botones Unificados --- */
.about-link, .agenda-link, .section-link { display: block; text-align: center; margin-top: 45px; font-family: "legitima", serif; font-style: italic; font-size: 1.2rem; color: #333; text-decoration: none; transition: color 0.3s ease; padding-top: 40px;}
.about-link:hover, .agenda-link:hover, .section-link:hover { color: #ffeb3b; }
#media .section-link { color: #fff; }
#media .section-link:hover { color: #ffeb3b; }
.nav-contact-btn { display: inline-block; padding: 12px 28px; text-decoration: none; border-radius: 8px; transition: all 0.3s ease; border: none; cursor: pointer; font-family: "olimpico", sans-serif; font-weight: 700; font-size: 1.1rem; background-color: #ffeb3b; color: #333; }
#contact-form .nav-contact-btn { display: block; margin: 40px auto 0; }
.nav-contact-btn:hover { background-color: #fff; }

/* --- Animaciones --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes buttonAppear { 0% { opacity: 0; bottom: 10%; } 50% { opacity: 1; bottom: 22%; } 100% { opacity: 1; bottom: 20%; } }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }



/* ==========================================================================
   AÑADIDOS Y CORRECCIONES
   ========================================================================== */

/* CORRECCIÓN 1: Estilos para la página "About Me" para arreglar la imagen gigante */
.bio-layout {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-top: 50px;
}
.bio-photo {
    flex: 1;
    max-width: 350px;
}
.bio-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.bio-text {
    flex: 2;
}
.bio-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 25px 0;
}
.bio-quote {
    font-family: "legitima", serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #333;
    border-left: 4px solid #ffeb3b;
    padding-left: 25px;
    margin: 40px 0;
}

/* AÑADIDO 2: Estilos para la nueva página de Agenda (agenda.html) */
.agenda-month h2 {
    font-family: "olimpico", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 40px;
}
.agenda-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.agenda-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}
.agenda-table tr:hover {
    background-color: #fff;
}
.agenda-date {
    font-weight: 700;
    font-size: 1.1rem;
    width: 15%;
}
.agenda-event {
    font-weight: 500;
}
.agenda-venue {
    color: #555;
}
.agenda-location {
    text-align: right;
    color: #555;
    font-style: italic;
}

/* CORRECCIÓN 3: Contenedor unificado para alinear todos los títulos de sección */
.page-wrapper, .about-wrapper, .agenda-wrapper, .media-wrapper, .contact-wrapper, .repertoire-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* --- INICIO DE ESTILOS PARA PÁGINA "MEDIA" --- */

/* Subtítulos para "Photo Gallery" y "Video Gallery" */
.gallery-section h2 {
    font-family: "olimpico", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    border-bottom: 1px solid #555;
    padding-bottom: 15px;
}

/* Cuadrícula para las Fotos */
.photo-grid {
    display: grid;
    /* Crea columnas que se ajustan automáticamente */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.photo-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
    transition: transform 0.4s ease, filter 0.4s ease;
}
.photo-item:hover img {
    transform: scale(1.05); /* Efecto de zoom sutil */
    filter: brightness(1.1);
}

/* Cuadrícula para los Videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.video-wrapper {
    position: relative;
    /* Proporción 16:9 para videos */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FIN DE ESTILOS PARA PÁGINA "MEDIA" --- */
/* --- INICIO DE ESTILOS PARA PÁGINA "PRESS" --- */

.press-clips-container {
    margin-top: 50px;
}

.press-clip {
    background-color: #fff;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.press-clip blockquote {
    margin: 0;
    padding: 0;
    font-family: "legitima", serif;
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.6;
    border-left: 4px solid #ffeb3b;
    padding-left: 30px;
    color: #333;
}

.press-clip cite {
    display: block;
    text-align: right;
    font-family: "olimpico", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.1rem;
    margin-top: 20px;
    color: #555;
}

.press-clip .press-link {
    display: inline-block;
    margin-top: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-family: "olimpico", sans-serif;
    transition: color 0.3s ease;
}

.press-clip .press-link:hover {
    color: #ffeb3b;
}

.press-kit-section {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.press-kit-section h2 {
    font-family: "olimpico", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.press-kit-section p {
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: #555;
}



/* ==========================================================================
   DISEÑO RESPONSIVE UNIFICADO Y FINAL (Móvil y Tablets)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- MENÚ DE HAMBURGUESA --- */
    .hamburger { display: block; }
    header ul.nav-links { display: none; }
    header ul.nav-links.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: #1a1a1a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        animation: slideIn 0.3s ease-in-out;
    }
    @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
    header ul li { margin: 20px 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- SECCIÓN HERO --- */
    #hero {
        height: 85vh;
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/hero1.gif');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: 65% 30%;
    }
    .hero-content {
        width: 100%;
        max-width: 100%; /* Anula el max-width de escritorio */
        padding: 0 20px;
        box-sizing: border-box;
        margin: -40px auto 0;
        text-align: center;
    }
    .hero-title {
        font-size: 4rem;
        width: auto; /* Anula el width de escritorio */
        margin-right: 0; /* Anula el margen de escritorio */
        text-align: left;
        margin-top: -50px;
    }
    .hero-title::after {
        margin-left: 0;
        margin-right: auto;
    }
    .hero-subtitle {
        font-size: 1.5rem;
        padding-left: 0;
        text-align: left;
    }
    .cta-button {
        transform: translate(-50%, 40px);
    }
    
    /* --- SECCIONES GENERALES --- */
    #about { height: auto; }
    .about-content { margin-left: 0; }
    #agenda {
        height: auto;
        display: block;
        padding: 40px 0;
    }
    .about-wrapper, .media-wrapper, .contact-wrapper, .agenda-wrapper, .repertoire-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }
    .agenda-wrapper {
        overflow: hidden; /* Evita el scroll horizontal por el carrusel */
    }

    /* --- PÁGINAS INTERIORES (ABOUT, MEDIA, ETC.) --- */
    .page-content {
        padding-top: 100px;
    }
    .bio-layout {
        flex-direction: column;
        align-items: center;
    }
    .bio-photo {
        max-width: 90%;
        margin-bottom: 30px;
    }
    .bio-photo img {
        width: 100%;
        height: 40vh;
        object-fit: cover;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Media query para pantallas altas (más de 780px de alto) */
@media (min-height: 780px) {
    .cta-button {
        /* Mueve el botón 50px hacia abajo en estas pantallas */
        bottom: calc(20% - 50px);
    }
}