@import "../../components/style.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ea7b81;
    color: #2E1810;
    font-family: var(--font-family-base, sans-serif);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(234, 123, 129, 0.82), rgba(234, 123, 129, 0.82)),
        url("/images/Untitled_Artwork 177.png"),                                
        url("/images/Texturelabs_Grunge_265L.jpg");                             
    background-size: cover, 100vw auto, 300px auto; 
    background-repeat: no-repeat, repeat-y, repeat;  
    background-position: center, left center, center;
    background-blend-mode: normal, multiply, normal;
}

/* ==========================================================================
   Header - Menú Superior (Actualizado con la Paleta Oficial del Manual)
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header-bg, #008a85) !important; /* 🎨 Cambiado al Jade Oficial (#008a85) */
    position: fixed !important;
    transform: none !important;
    top: 0 !important;
    width: 100%;
    height: 80px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid #005f5c !important; /* Borde sutil a juego con el Jade */
}

.main-header .nav-link, 
.main-header a {
    color: #f5efe0 !important;
    font-weight: 600 !important;
    transition: color 0.2s ease;
}

.main-header .nav-link:hover,
.main-header .nav-link.active {
    color: var(--honey-gold, #f9ec00) !important; /* 🎨 Cambiado al Amarillo Oficial (#f9ec00) */
}

/* ==========================================================================
   Contenedor Principal
   ========================================================================== */
.speakers-main {
    position: relative;
    width: 100%; 
    display: flex;
    justify-content: center;
    padding: 80px 24px;
}

.speakers-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Cabecera Principal
   ========================================================================== */
.speakers-header-block {
    margin-bottom: 50px;
    margin-top: 40px;
}

.experts-title {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
}

.experts-title-line {
    font-family: var(--font-family-heading, sans-serif);
    font-size: 3rem;
    font-weight: 900;
    color: #2E1810;
    letter-spacing: 1px;
    align-self: flex-start;
    position: relative;
    left: 100px;
}

.experts-title-main {
    font-family: var(--font-family-heading, sans-serif);
    font-size: 8rem;
    font-weight: 900;
    color: #ffffff; 
    letter-spacing: 1px;
    margin-top: -5px;
    align-self: center;
}

.experts-title-sub {
    font-family: var(--font-family-heading, sans-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: #2E1810;
    letter-spacing: 3px;
    margin-top: 8px;
    align-self: center;
}

/* ==========================================================================
   Secciones de Panelistas (Nacionales e Internacionales)
   ========================================================================== */
.experts-section {
    margin-bottom: 70px;
}

.experts-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    border-bottom: 2px solid #2E1810;
    padding-bottom: 12px;
}

.experts-label {
    font-family: var(--font-family-heading, sans-serif);
    font-size: 1.3rem;
    font-weight: 800;
    color: #2E1810;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Grilla estructurada de 4 columnas */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px;
}

.expert-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(46, 24, 16, 0.05);
    transition: transform 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
}

.expert-photo {
    width: 100%;
    aspect-ratio: 3 / 3.8; 
    background-color: #2E1810;
    background-size: cover;
    background-position: center top;
}

/* Caja de Información de la Tarjeta */
.expert-info-box {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    background-color: #ffffff;
}

.expert-name {
    font-family: var(--font-family-heading, sans-serif);
    font-size: 1.1rem;
    font-weight: 800;
    color: #2E1810;
    text-transform: uppercase;
    line-height: 1.2;
}

.expert-origin {
    font-family: var(--font-family-base, sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    color: #70625e;
}

.expert-link {
    font-family: var(--font-family-heading, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ea7b81; 
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.expert-link:hover {
    color: #2E1810;
}

/* ==========================================================================
   Sección 3: Speakers VIP (Al final)
   ========================================================================== */
.speakers-vip-section {
    text-align: left;
    padding-top: 60px;
    border-top: 2px dashed rgba(46, 24, 16, 0.15);
    margin-bottom: 40px;
}

.festival-title-block {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.title-stroke {
    font-family: var(--font-family-heading, sans-serif);
    font-size: 6.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1;
    text-transform: uppercase;
    -webkit-text-stroke: 2px #ffffff;
    color: transparent;
}

.title-filled-badge {
    position: absolute;
    bottom: -10px;
    right: -20px;
    background-color: #2E1810; 
    color: #ffffff; 
    font-family: var(--font-family-heading, sans-serif);
    font-size: 2.2rem;
    font-weight: 900;
    padding: 4px 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: rotate(-2deg); 
    box-shadow: 4px 4px 0px #ffffff; 
}

.section-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #4A3E3D; 
    max-width: 750px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.speaker-card {
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46, 24, 16, 0.04);
    border: 1px solid rgba(46, 24, 16, 0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(46, 24, 16, 0.1);
}

.speaker-image-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: #EFE8D8;
}

.speaker-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.speaker-card:hover .speaker-img {
    transform: scale(1.04);
}

.speaker-info {
    padding: 25px;
    background-color: #ffffff;
    border-top: 1px solid rgba(46, 24, 16, 0.05);
}

.speaker-name {
    font-family: var(--font-family-heading, sans-serif);
    font-size: 1.35rem;
    font-weight: 800;
    color: #2E1810;
    margin-bottom: 6px;
}

.speaker-role {
    font-size: 0.95rem;
    color: #ea7b81; 
    font-weight: 600;
}

/* ==========================================================================
   Responsive / Dispositivos Móviles
   ========================================================================== */
@media (max-width: 1024px) {
    .experts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .experts-title-main { font-size: 4.5rem; }
    .experts-title-line { font-size: 2rem; left: 40px; }

    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .title-stroke { font-size: 5rem; }
    .title-filled-badge { font-size: 1.8rem; right: 0; }
}

@media (max-width: 768px) {
    body {
        background-image: 
            linear-gradient(rgba(234, 123, 129, 0.82), rgba(234, 123, 129, 0.82)), 
            url("/images/Texturelabs_Grunge_265L.jpg");
        background-size: cover, 300px auto;
        background-repeat: no-repeat, repeat;
    }
    
    .experts-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .experts-title-main { font-size: 3.5rem; }
    .experts-title-line { font-size: 1.5rem; left: 20px; }
    .experts-title-sub { font-size: 1.1rem; }
    .experts-label { font-size: 1.05rem; }

    .speakers-grid {
        grid-template-columns: 1fr;
    }
    .title-stroke { font-size: 3.5rem; }
    .title-filled-badge { font-size: 1.4rem; bottom: -5px; right: 10px; padding: 2px 14px; }
    .speaker-image-wrapper { height: 320px; }
}

@media (max-width: 420px) {
    .experts-title-main { font-size: 2.8rem; }
    .experts-grid {
        grid-template-columns: 1fr; /* Colapsa a una única columna vertical en celulares compactos */
    }
}