/*
 * custom.css
 * Versión: 14.0 (Implementación de blur en capas para tarjetas)
 */

body {
    background-color: var(--color-primary);
    margin: 0;
    overflow-x: hidden; /* Evita el desbordamiento horizontal */
}

#page-wrapper {
    padding: 15px;
    width: 100%;
    height: 100svh; /* <-- LA SOLUCIÓN */
    box-sizing: border-box;
}

/* ————————————————————————————————————————
   SECCIÓN HERO (SLIDER)
   ———————————————————————————————————————— */
.hero-section {
    position: relative;
    height: 100%;
    background-image: url('images/slider/the-last-of-us.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,   /* inicia con negro 50% opacidad */
    rgba(0, 0, 0, 0.3) 50%, /* punto medio más suave */
    rgba(0, 0, 0, 0.1) 100%  /* termina con negro 20% opacidad */
    );
    z-index: 1;
}

.top-bar-wrapper, .hero-content, .slider-arrow, .bottom-bar, .bottom-content {
    position: relative;
    z-index: 2;
}

/* ————————————————————————————————————————
   BARRA SUPERIOR (NUEVO DISEÑO FLOTANTE)
   ———————————————————————————————————————— */
.top-bar-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding-top: 25px;
}
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Estilo base para los nuevos contenedores flotantes */
.logo, .social-icons {
    height: 60px; /* CAMBIO: Altura fija de 60px */
    backdrop-filter: blur(15px);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Contenedor del Logo */
.logo {
    padding: 0 20px 0 12px; /* Ajuste de padding para la nueva altura */
    gap: 12px;
}
.logo-avatar {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid;
}
.logo-text {
    height: 22px;
    width: auto;
}

/* Contenedor de Redes Sociales */
.social-icons {
    width: 356px; /* CAMBIO: Ancho fijo de 356px */
    padding: 0 25px; /* Ajuste de padding */
    gap: 1.5rem;
}
.social-icons a {
    font-size: 1.2rem;
    transition: color 0.2s, transform 0.2s;
}
.social-icons a:hover {
    text-decoration: none;
    transform: scale(1.1);
}


/* ————————————————————————————————————————
   CONTENIDO CENTRAL Y SLIDER
   ———————————————————————————————————————— */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 100%;
    text-align: center;
    margin-top: -5%;
}

/* Estilos base para botones con desenfoque */
.play-button, .slider-arrow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    background: rgba(15, 10, 5, 0.5); /* Fondo semitransparente */
    backdrop-filter: blur(10px); /* Efecto de desenfoque */
}

.slider-arrow:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary) !important;
    text-decoration: none;
}

/* Hover específico para el botón de play */
.play-button:hover {
    background-color: var(--color-light);
    color: var(--color-dark); /* Color oscuro/negro igual al botón "Conocer más" */
}

/* Estilos específicos para el botón de Play */
.play-button {
    width: 70px; /* Agrandado más */
    height: 70px; /* Agrandado más */
    font-size: 2rem; /* Ícono aún más grande */
    border: none; /* Eliminamos el borde */
    background-color: var(--color-primary); /* Color de fondo por defecto */
    color: var(--color-light); /* Color del ícono por defecto */
}
.play-button .fa-play { margin-left: 5px; }

/* Estilos específicos para las flechas */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    border: none; /* Eliminamos el borde */
    margin-top: -5%;
}
.arrow-left { left: 4rem; }
.arrow-right { right: 4rem; }

/* ————————————————————————————————————————
   BARRA INFERIOR (TARJETAS Y NAV) - ESTRUCTURA MODIFICADA
   ———————————————————————————————————————— */

/*
 * .bottom-bar ahora es SOLO el fondo visual.
 * Se posiciona absolutamente en la parte inferior del hero-section.
 */
.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 190px;
    z-index: 1; /* Detrás del contenido */

    /* Estilos de la franja visual */
    background: rgba(15, 10, 5, 0.5);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--color-primary);
}

/*
 * .bottom-content es ahora un bloque independiente después del header.
 */
.bottom-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2; /* Encima del fondo borroso */
    display: flex;
    flex-direction: column;
}

.card-deck {
    width: 100%;
    /* Truco para el solapamiento: margen negativo hacia arriba */
    margin-top: -70px;
}

.card-deck .grid {
    grid-gap: 20px;
}

.info-card {
    /* ¡Magia! Ahora cada tarjeta tiene su propio backdrop-filter */
    background: rgba(45, 39, 39, 0.6);
    backdrop-filter: blur(20px);

    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    height: 140px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
}

.info-card p { margin: 0; line-height: 1.2; }

/* Estilos internos de las tarjetas (sin cambios) */
.card-date { justify-content: space-between; }
.date-box { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 0.9; width: 125px; height: 110px; }
.date-box .day { font-size: 4.5rem; font-weight: 300; }
.date-box .month { font-size: 1.25rem; font-weight: 700; letter-spacing: 1px; margin-top: 5px; }
.info-box { display: flex; flex-direction: column; align-items: flex-start; text-align: left; height: auto; }
.year-location { font-size: 0.975rem; }
.year-location .year { display: block; color: var(--color-muted); }
.year-location .location { font-weight: 700; }
.tag { background-color: var(--color-primary); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; margin: auto 0; }
.card-album .album-art { width: 110px; height: 110px; border-radius: 8px; flex-shrink: 0; }
.card-album .album-info { text-align: left; }
.card-award .award-logo { width: 100px; height: auto; flex-shrink: 0; }
.card-award .award-info { text-align: left; }

.card-player {
    padding: 10px;
    overflow: hidden;
    /* Aplicamos los mismos estilos que las otras tarjetas para consistencia */
    background-color: rgba(45, 39, 39, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-player iframe {
    width: 100%;
    height: 80px;
}

/* ————————————————————————————————————————
   NAVEGACIÓN PRINCIPAL (VERSIÓN CENTRADA Y CORREGIDA)
   ———————————————————————————————————————— */
.main-nav {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 500;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
}

/* NUEVA REGLA PARA QUITAR EL SUBRAYADO AL PASAR EL MOUSE */
.main-nav a:hover {
    text-decoration: none;
}

/* Estilos específicos para el selector de idioma */
.nav-lang-selector {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 2.5rem;
}

.nav-lang-selector a {
    font-weight: 400;
}

.nav-lang-selector .fa-globe {
    margin-right: 8px;
}

/* === CÓDIGO AÑADIDO PARA SLIDER Y TEMAS === */

/* ————————————————————————————————————————
   CLASE PARA ACCESIBILIDAD (SEO)
   ———————————————————————————————————————— */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ————————————————————————————————————————
   ESTILOS DEL SLIDER
   ———————————————————————————————————————— */
.slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}


/* ————————————————————————————————————————
   ESTILOS PARA VIDEO DE FONDO DEL SLIDER
   ———————————————————————————————————————— */
.slide-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0; /* Se coloca detrás del contenido pero encima del background-image del slide */

    /* Para la transición suave desde el poster */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-background-video.is-playing {
    opacity: 1;
}

/* ————————————————————————————————————————
   ESTILOS DEL LIGHTBOX
   ———————————————————————————————————————— */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;

    /* Oculto por defecto y centrado */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Transición para aparición suave */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1001;
    width: 90%;
    max-width: 960px; /* Ancho máximo del video */
    padding: 20px;
}

/* Contenedor para mantener la proporción 16:9 del video */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lightbox-close-btn {
    position: absolute;
    top: -10px;
    right: 0;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.lightbox-close-btn:hover {
    transform: scale(1.1);
    background-color: var(--color-primary);
    color: #fff;
}

/* === CÓDIGO AÑADIDO PARA BOTÓN DE ENLACE === */

.hero-link-button {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px; /* Estilo cápsula */
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero-link-button:hover {
    transform: scale(1.05);
    text-decoration: none;
}

/* Estilos del Link Button para cada tema */
.hero-section.theme-dark .hero-link-button {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.hero-section.theme-dark .hero-link-button:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.hero-section.theme-light .hero-link-button {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.hero-section.theme-light .hero-link-button:hover {
    background-color: var(--color-dark);
    color: var(--color-light);
}

/* ————————————————————————————————————————
   ESTILOS DINÁMICOS POR TEMA (VERSIÓN CONSOLIDADA)
   ———————————————————————————————————————— */

/* === TEMA OSCURO === */
.hero-section.theme-dark .logo,
.hero-section.theme-dark .social-icons {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-section.theme-dark .logo-avatar {
    border-color: var(--color-light);
}
.hero-section.theme-dark .social-icons a {
    color: var(--color-light);
}
.hero-section.theme-dark .social-icons a:hover {
    color: var(--color-primary);
}
.hero-section.theme-dark .hero-content p,
.hero-section.theme-dark .hero-content h2 {
    color: var(--color-light);
}
.hero-section.theme-dark .main-nav a,
.hero-section.theme-dark .lang-selector a { /* .lang-selector a es residual, pero no daña */
    color: var(--color-light); /* Reposo: light */
}
/* AÑADIDO: Color del hover para la navegación en tema oscuro */
.hero-section.theme-dark .main-nav a:hover {
    color: var(--color-primary); /* Hover: primary */
}
.hero-section.theme-dark .play-button {
    color: var(--color-light);
}
.hero-section.theme-dark .play-button:hover {
    color: var(--color-dark);
    text-decoration: none;
    transform: scale(1.05);
}
.hero-section.theme-dark .slider-arrow {
    color: var(--color-light);
    background: rgba(0,0,0,0.3);
}
.hero-section.theme-dark .info-card {
    background: rgba(45, 39, 39, 0.6);
    color: var(--color-light);
}
.hero-section.theme-dark .bottom-bar {
    background: rgba(15, 10, 5, 0.5);
    border-top-color: var(--color-primary);
}


/* === TEMA CLARO === */
.hero-section.theme-light .logo,
.hero-section.theme-light .social-icons {
    background: rgba(240, 236, 227, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-section.theme-light .logo-avatar {
    border-color: var(--color-dark);
}
.hero-section.theme-light .social-icons a {
    color: var(--color-primary);
}
.hero-section.theme-light .social-icons a:hover {
    color: var(--color-dark);
}
.hero-section.theme-light .hero-content p,
.hero-section.theme-light .hero-content h2 {
    color: var(--color-dark);
}
.hero-section.theme-light .main-nav a,
.hero-section.theme-light .lang-selector a {
    color: var(--color-dark); /* Reposo: dark */
}
/* AÑADIDO: Color del hover para la navegación en tema claro */
.hero-section.theme-light .main-nav a:hover {
    color: var(--color-primary); /* Hover: primary */
}
.hero-section.theme-light .play-button {
    color: var(--color-dark);
}
.hero-section.theme-light .play-button:hover {
    color: var(--color-dark);
    text-decoration: none;
    transform: scale(1.05);
}
.hero-section.theme-light .slider-arrow {
    color: var(--color-dark);
    background: rgba(255,255,255,0.3);
}
.hero-section.theme-light .info-card {
    background: rgba(240, 236, 227, 0.5);
    color: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-section.theme-light .info-card p,
.hero-section.theme-light .event-name,
.hero-section.theme-light .info-card .album-info h6 {
    color: var(--color-dark);
}
.hero-section.theme-light .info-card .year-location .year {
    color: #555;
}
.hero-section.theme-light .bottom-bar {
    background: rgba(240, 236, 227, 0.9);
    border-top-color: var(--color-primary);
}
.hero-section.theme-light .nav-lang-selector {
    border-left-color: rgba(0, 0, 0, 0.2);
}

/* ————————————————————————————————————————
   BLOQUE RESPONSIVE PARA TABLET HORIZONTAL (1199px) - v3 DEFINITIVO
   ———————————————————————————————————————— */

@media (max-width: 1199px) {

    /* --- PADDINGS GENERALES Y FLECHAS --- */
    #page-wrapper {
        height: 100svh !important;
        padding: 15px !important;
    }
    .top-bar,
    .card-deck,
    .main-nav .container {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }
    .arrow-left { left: 30px !important; }
    .arrow-right { right: 30px !important; }


    /* === FIX 1: SOLUCIONAR EN CIMAMIENTO SUPERIOR === */
    .logo {
        /* Reducimos el padding interno del logo para ganar espacio */
        padding: 0 15px 0 10px !important;
    }
    .social-icons {
        /* Forzamos el ancho a auto y reducimos el gap drásticamente */
        width: auto !important;
        gap: 1rem !important; /* Equivalente a 16px */
    }
    .social-icons a {
        font-size: 1.1rem !important; /* Hacemos los íconos un poco más pequeños */
    }


    /* === FIX 2: CENTRADO VERTICAL CORRECTO DE TARJETAS === */
    .bottom-bar {
        height: 150px !important;
    }
    .info-card {
        height: 120px !important;
        padding: 10px !important;
        gap: 10px !important; /* Reducimos el espacio interno de las tarjetas */
    }
    .card-player {
        padding: 0 !important;
    }
    .card-deck {
        grid-gap: 15px !important;
        /* Usamos transform para un posicionamiento más robusto y predecible */
        transform: translateY(-30px) !important;
        /* Importante: Comentamos o eliminamos el margin-top para que no interfiera */
        /* margin-top: -60px !important; */
    }
    .date-box {
        width: 40% !important; /* Reducimos el ancho del contenedor de fecha */
    }
    .date-box .day {
        font-size: 3rem !important;
    }
    .card-album .album-art {
        width: 100px !important;
        height: 100px !important;
    }


    /* === FIX 3: NAVEGACIÓN PRINCIPAL === */
    .main-nav {
        height: 90px !important;
        /* Con este margen negativo, subimos la botonera para cerrar el hueco
           creado por el "transform" de las tarjetas. */
        margin-top: -30px;
    }
    .main-nav ul {
        /* Reducimos drásticamente el espacio entre links */
        gap: 1.25rem !important; /* Equivalente a 20px */
        justify-content: center;
        width: 100%;
    }
    .main-nav a {
        /* Reducimos el espaciado entre letras, que ocupaba mucho espacio */
        letter-spacing: 1px !important;
        font-size: 0.75rem !important;
    }
    .nav-lang-selector {
        /* Reducimos drásticamente el padding izquierdo del selector de idioma */
        padding-left: 1.25rem !important;
        border-left-width: 1px !important;
    }

    /* === FIX 4: AJUSTE DE TIPOGRAFÍA EN TARJETAS === */
    .info-card .event-name,
    .info-card .album-info p {
        font-size: 0.75rem !important; /* Reducimos el tamaño del texto descriptivo */
        line-height: 1.3 !important;   /* Juntamos un poco las líneas */
        -webkit-hyphens: auto; /* Activamos corte de sílabas si es necesario */
        -ms-hyphens: auto;
        hyphens: auto;
    }

    .info-card .album-info h6 {
        font-size: 1rem !important; /* Reducimos el tamaño del título "LEGADO" */
        margin-bottom: 2px !important;
    }

    .info-card .year-location {
        font-size: 0.8rem !important; /* Reducimos "AVEIRO, PORTUGAL" */
    }
}





/*
=================================================================
 VISTA MÓVIL (≤ 767px) - EMPEZANDO DE NUEVO
=================================================================
*/

/* --- PASO 1: OCULTAR ELEMENTOS MÓVIL POR DEFECTO --- */
.mobile-menu-trigger,
.mobile-social-bar { /* <-- Añade esta línea */
    display: none;
}

/* --- PASO 2: ESTILOS PARA LA PANTALLA MÓVIL --- */
@media (max-width: 768px) {

    /* --- Ocultamos los CARDS --- */
    .bottom-content {
        display: none;
    }

    .letter-spacing-2   { letter-spacing: 0.2rem !important; }

    /* --- Ocultar elementos de escritorio --- */
    .main-nav,
    .top-bar .social-icons,
    .bottom-bar {
        display: none !important;
    }

    /* --- Ajuste de tamaño para las flechas en móvil --- */
    .slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .slider-arrow.arrow-left {
        left: 15px; /* Ajustamos posición */
    }

    .slider-arrow.arrow-right {
        right: 15px; /* Ajustamos posición */
    }

    /* --- Ajuste de tamaño para el botón de Play en móvil --- */
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* --- Eliminar el "marco dorado" en móvil --- */
    #page-wrapper {
        padding: 0 !important;
    }
    .hero-section {
        border-radius: 0 !important;
    }

    /* --- Barra Superior Flotante --- */
    .top-bar-wrapper {
        /* Posiciona el contenedor de la barra a 54px del borde superior */
        top: 34px;
        padding-top: 0;
        /* Hacemos que ocupe todo el ancho para poder centrar la barra adentro */
        left: 0;
        width: 100%;
    }

    .top-bar {
        /* Centramos la barra y le damos el ancho que resulta de los 54px de margen */
        /* width: calc(100% - 108px);  54px a cada lado */
        margin: 0 auto;

        /* Estilos visuales de la barra */
        height: 64px;
        background: rgba(15, 10, 5, 0.5);
        backdrop-filter: blur(10px);
        border-radius: 50px;
        padding: 0 34px 0 18px !important; /* Padding interno como en tu diseño */

        /* ▼▼▼ LÍNEAS AÑADIDAS PARA LA ALINEACIÓN ▼▼▼ */
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* --- Contenido de la Barra Superior --- */

    /* Hacemos visible el trigger del menú móvil */
    .mobile-menu-trigger {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 1.5px;
    }

    .mobile-menu-toggle {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        padding: 0;
        cursor: pointer;
    }
    .mobile-menu-toggle .fa-times {
        display: none; /* La 'X' para cerrar la ocultamos por ahora */
    }

    /* Ajuste del logo para que encaje bien */
    .logo {
        border: none !important;
        backdrop-filter: none !important;
        background: none !important;
        height: 100% !important;
        padding: 0 !important;
        gap: 10px !important;
    }
    .logo-avatar {
        height: 40px !important;
        width: 40px !important;
    }
    .logo-text {
        height: 20px !important;
    }

    /* ▼▼▼ AÑADE ESTE NUEVO BLOQUE AL FINAL, DENTRO DE LA MEDIA QUERY ▼▼▼ */
    /* --- Posicionamiento de Contenido Principal y Tarjetas --- */
    .hero-content {
        transform: translate(-50%, -50%); /* Ajustamos el centrado vertical */
        width: 80vw;
    }

    .bottom-content {
        /* Lo sacamos del fondo y lo posicionamos en la parte inferior de la pantalla */
        position: absolute;
        top: 52%; /* Hacemos que empiece justo debajo de la mitad */
        bottom: auto; /* Anulamos la regla que lo pegaba abajo */
        height: auto;
        width: 100%;
    }

    /* Apilamos las tarjetas (esto puede que ya lo tengas, pero asegúrate) */
    .card-deck {
        margin-top: 0 !important; /* Reseteamos cualquier margen negativo de la vista de escritorio */
        transform: none !important; /* Reseteamos cualquier transformación */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px !important;
        padding: 0 24px !important;
    }
    /* --- ▲▲▲ FIN DEL CÓDIGO A AÑADIR ▲▲▲ --- */

    .card-deck .grid {
        grid-gap: 5px;
    }

    /* --- 6. ESTILOS PARA EL CONTENIDO INTERNO DE LAS TARJETAS --- */

    .info-card {
        /* Ajustamos el padding interno para que coincida con el nuevo layout */
        max-width: 354px !important;
        padding: 10px 10px !important;
        gap: 20px !important;
    }

    /* --- Estilos específicos para la tarjeta de la fecha --- */
    .card-date .date-box {
        width: auto; /* Dejamos que el ancho sea flexible */
        line-height: 1;
        height: auto;
    }

    .card-date .date-box .month,
    .card-date .date-box .year {
        font-size: 1rem !important; /* Achicamos "SET" y "2025" */
        font-weight: normal !important;
        text-align: center;
    }

    .card-date .date-box .day {
        font-size: 2.5rem !important; /* Hacemos el día el elemento principal */
        line-height: 1;
    }

    .card-date .info-box {
        height: auto;
        justify-content: center; /* Centramos verticalmente el contenido */
        gap: 8px;
    }

    .card-date .info-box .tag {
        margin: 0; /* Reseteamos el margen automático */
    }

    /* --- Ajustes de tipografía para las otras tarjetas --- */
    .info-card .album-info h6 {
        font-size: 1rem !important;
    }
    .info-card .album-info p,
    .info-card .event-name {
        font-size: 0.8rem !important;
        line-height: 1.3;
    }

    /* ▼▼▼ AÑADE ESTE NUEVO BLOQUE AL FINAL, DENTRO DE LA MEDIA QUERY ▼▼▼ */
    /* --- Barra Social Inferior Flotante --- */
    .mobile-social-bar {
        display: flex; /* Hacemos que se muestre en móvil */
        align-items: center;
        justify-content: center;
        gap: 1.5rem;

        position: absolute; /* La posicionamos sobre el hero-section */
        bottom: 54px; /* A 54px del borde inferior, como en tu diseño */
        left: 50%;
        transform: translateX(-50%);

        width: calc(100% - 60px); /* Ancho total menos un poco de margen */
        max-width: 354px; /* Ancho máximo igual a las tarjetas */
        height: 60px;

        background: rgba(15, 10, 5, 0.5);
        backdrop-filter: blur(10px);
        border-radius: 50px;
        z-index: 100; /* Aseguramos que esté por encima de otros elementos */
    }
    .mobile-social-bar a {
        color: var(--color-primary);
        font-size: 1.3rem;
    }
    /* --- ▲▲▲ FIN DEL CÓDIGO A AÑADIR ▲▲▲ --- */
}

/* Custom: escondemos por defecto el panel de menú móvil */
#mobile-nav-panel {
    display: none;
}

/* Custom: quitamos bullets de la lista del menú móvil */
.mobile-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ————————————————————————————————————————
   MOBILE NAV PANEL – FULLSCREEN OVERLAY
   ———————————————————————————————————————— */
#mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background-color: var(--color-primary);
    z-index: 999;
    overflow-y: auto;
}

#mobile-nav-panel.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Contenedor interior centrado */
.mobile-nav-content {
    width: 100%;
    max-width: 354px;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

/* Menú propiamente dicho */
.mobile-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-main-nav ul li {
    margin: 0.6rem 0;
    text-align: center;
}
.mobile-main-nav ul li a {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-main-nav ul li a:hover {
    color: var(--color-secondary);
}

/* Redes sociales al pie */
.mobile-panel-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.mobile-panel-social a {
    color: var(--color-light);
    font-size: 1.5rem;
}

/* Toggle icons: mostrar “×” cuando esté abierto */
.mobile-menu-toggle.open .fa-bars {
    display: none !important;
}
.mobile-menu-toggle.open .fa-times {
    display: inline !important;
}

/* ————————————————————————————————————————
   MOBILE PANEL HEADER (pill con avatar, logo, título y close)
   ———————————————————————————————————————— */
#mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100svh;
    background-color: var(--color-primary);
    z-index: 999;
    overflow-y: auto;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

#mobile-nav-panel.active {
    display: flex;
}

/* Cabecera estilo "capsule" */
.mobile-panel-header {
    width: 100%;
    max-width: 354px;
    background-color: var(--color-dark);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    margin-top: 2rem;
    box-sizing: border-box;
}

.mobile-panel-header .logo-avatar {
    height: 32px;
    width: 32px;
    border-radius: 50%;
}

.mobile-panel-header .logo-text {
    height: 18px;
    margin-left: -0.1rem;
}

.mobile-panel-title {
    color: var(--color-light);
    font-size: 1rem;
    letter-spacing: .2em;
    font-family: 'Cinzel', serif;
}

#mobile-panel-close {
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    letter-spacing: .2em;
    cursor: pointer;
}

/* ————————————————————————————————————————
   CONTENIDO DEL MENÚ
   ———————————————————————————————————————— */
.mobile-nav-content {
    width: 100%;
    max-width: 354px;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.mobile-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-main-nav li {
    margin: 1rem 0;
}
.mobile-main-nav a {
    font-size: 1.5rem;
    letter-spacing: .2em;
    color: var(--color-light);
    text-decoration: none;
    transition: color .2s;
}
.mobile-main-nav a:hover {
    color: var(--color-primary);
}

/* ————————————————————————————————————————
   BARRA SOCIAL INFERIOR
   ———————————————————————————————————————— */
.mobile-panel-social {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}
.mobile-panel-social a {
    color: var(--color-light);
    font-size: 1.5rem;
}

/* ————————————————————————————————————————
   ICONO DE TOGGLE (show × cuando el menú esté abierto)
   ———————————————————————————————————————— */
.mobile-menu-toggle.open .fa-bars {
    display: none !important;
}
.mobile-menu-toggle.open .fa-times {
    display: inline !important;
}


/*
=================================================================
 ELEMENTO BREADCRUMB
=================================================================
*/


/*
 * LA SOLUCIÓN: Usar Flexbox en el contenedor principal.
 * Esto alinea a sus hijos directos (el enlace <a> y el <span>).
*/
.breadcrumb {
    font-size: 0.8em;
    display: flex;             /* 1. Activa el modo Flexbox. */
    justify-content: center;   /* 2. Centra todo el bloque horizontalmente (reemplaza a text-center). */
    align-items: center;       /* 3. ¡LA CLAVE! Aliena verticalmente los elementos al centro. */
    gap: 0.5em;                /* 4. Crea un espacio consistente entre el enlace y el texto. */
}

/*
 * Estilos para el enlace (<a>).
 * Esto alinea lo que está DENTRO del enlace (el ícono y la palabra "INICIO").
*/
.breadcrumb a {
    display: inline-flex;      /* Sigue siendo útil para alinear el ícono y el texto. */
    align-items: center;
    gap: 8px;                  /* Espacio entre el ícono y la palabra "INICIO". */

    color: var(--color-primary); /* Tu color original. */
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Estado hover, como lo pediste anteriormente. */
.breadcrumb a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Estilo para la parte activa/actual de la miga de pan. */
.breadcrumb .active { /* Tu HTML tiene "ative", si lo cambias a "active", actualiza este selector. */
    color: var(--color-secondary); /* Color para el texto que no es un enlace. */
    font-weight: bold; /* Opcional: para darle más énfasis. */

    text-decoration: underline; /* Indica que se usará un subrayado */
    text-underline-offset: 6px; /* Desplaza el subrayado 5 píxeles hacia abajo */
    text-decoration-thickness: 2px; /* Establece el grosor de la línea a 2 píxeles */
}

/* Opcional: Asegurarse de que el ícono no se encoja. */
.home-icon {
    flex-shrink: 0;
}


/*
=================================================================
 SECCIÓN BIOGRAFÍA
=================================================================
*/

/*
=================================================================
  ESTRUCTURA DE PÁGINAS INTERIORES (VERSIÓN SCROLL INTERNO)
=================================================================
*/

/* PASO 1: El contenedor exterior se convierte en un marco fijo.
   Ocupa el 100% de la pantalla y no permite que nada se desborde.
*/
#page-wrapper {
    padding: 15px;
    width: 100%;
    height: 100svh;         /* FIJA la altura a la de la pantalla */
    box-sizing: border-box;
    overflow: hidden;       /* OCULTA todo lo que intente salirse (incluido el scroll del body) */
}


/* PASO 2: El contenedor del contenido se hace responsable del scroll.
   Ocupa el 100% del espacio interno del marco y gestiona su propio desborde.
*/
.main-content-area {
    background-color: #fff;
    border-radius: 16px;
    height: 100%;           /* Ocupa el 100% de la altura de su padre (#page-wrapper) */
    overflow-y: auto;       /* ¡LA MAGIA! Añade un scroll vertical SÓLO si el contenido es más alto */
}

/* Opcional: Para que el scroll se vea un poco mejor en navegadores Webkit (Chrome, Safari, Edge) */
.main-content-area::-webkit-scrollbar {
    width: 8px;
}
.main-content-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.main-content-area::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.main-content-area::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

.bio-section {
    background-color: var(--color-light); /* Color de fondo general de la sección */
    padding: 100px 0;                     /* Espaciado vertical para 'respirar' */
    position: relative;                   /* Necesario para posicionar el texto de fondo */
    overflow: hidden;                     /* Evita que el texto de fondo genere scrollbars */
}

/* Texto gigante decorativo en el fondo */
.bio-background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(12rem, 28vw, 22rem); /* Tamaño gigante y responsive */
    font-weight: 700;
    color: rgba(0, 0, 0, 0.04);           /* Color muy sutil */
    z-index: 1;
    user-select: none;                    /* Evita que el usuario pueda seleccionarlo */
    pointer-events: none;                 /* Permite hacer clic 'a través' de él */
    text-transform: uppercase;
    line-height: 1;
}

/* La caja de contenido principal */
.bio-content-box {
    max-width: 1024px;
    background-color: #ffffff;
    padding: 8rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* Sombra suave para darle profundidad */
    position: relative; /* Asegura que esté por encima del texto de fondo */
    z-index: 2;
    margin: auto;
}

.bio-content-box p {
    font-weight: 500;
}

/* Estilo del título principal dentro de la caja */
.bio-content-box h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

/* Línea divisoria decorativa */
.divider {
    border: none;
    height: 2px;
    width: 60px;
    background-color: var(--color-primary);
    margin: 1rem 0 2rem 0; /* Espaciado antes y después */
}

/* Título 'Berta Rojas' */
.bio-content-box h3 {
    font-size: 1.75rem;
    color: var(--color-dark);
    font-weight: 500; /* Un poco menos pesado que el H1 */
    margin-bottom: 0.25rem;
}

/* Estilo para los subtítulos (rol, universidad) */
.bio-subtitle {
    font-style: italic;
    color: var(--color-secondary);
    line-height: 1.4;
    margin-bottom: 2rem;
}

/* Estilos para los párrafos de la biografía */
.bio-content-box p {
    line-height: 1.8; /* Aumentamos el interlineado para mejor legibilidad */
    color: #333;      /* Un negro un poco más suave */
    text-align: justify;
}

/* Ajustes responsivos para la sección de biografía */
@media (max-width: 767px) {
    .container {
        margin: 0 1rem;
    }
    .bio-section {
        padding: 60px 0; /* Menos padding en móvil */
    }

    .bio-content-box {
        padding: 4rem; /* Menos padding interno en la caja */
    }

    .bio-content-box p {
        line-height: 1.6;
        text-align: left;
        font-size: 0.9rem;
    }

    .bio-content-box h1 {
        font-size: 2rem; /* Título un poco más pequeño */
    }
}


/* Móviles */
@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
        margin-bottom: .3em;
    }
    .container {
        margin: 0 .3rem;
    }
    .breadcrumb {
        font-size: 0.7em;
    }
    .bio-section {
        padding: 60px 0; /* Menos padding en móvil */
    }

    .bio-content-box {
        padding: 2rem; /* Menos padding interno en la caja */
    }

    .bio-content-box p {
        line-height: 1.6;
        text-align: left;
        font-size: 0.9rem;
    }

    .bio-content-box h1 {
        font-size: 2rem; /* Título un poco más pequeño */
    }

}

/* Eliminar subrayado de links en cards */
.card-deck a {
    text-decoration: none !important;
}

.card-deck a:hover,
.card-deck a:focus,
.card-deck a:active {
    text-decoration: none !important;
}

/* Móviles Extra Pequeños */
@media (max-width: 480px){
    
    .hero-content {
        transform: translate(-50%, -50%); /* Ajustamos el centrado vertical */
        width: 65vw;
    }
    .arrow-left {
        left: 20px !important;
    }
    .arrow-right {
        right: 20px !important;
    }
    h2 {
        font-size: clamp(2.3rem, 4.5vw, 3rem);
        margin-bottom: .3em;
    }

}

