/* ========================================================================= */
/* 1. Reset Básico y Estilos Globales */
/* ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Forzar salto instantáneo (Resuelve el conflicto de scroll) */
html, body {
    scroll-behavior: auto !important;
}

/* ========================================================================= */
/* 2. Hero Header (Pantalla de inicio) */
/* ========================================================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Fondo */
    background-image: url("fondo.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    aspect-ratio: 16/9; /* Fuerza proporción correcta en monitores */
    /* Layout */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
    z-index: 0; /* Base: fondo */
}

/* Overlay (Capa oscura sobre la imagen) */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1; /* Detrás del texto, delante del fondo */
}

/* Contenido (Texto y botones) */
.hero-content {
    position: relative;
    z-index: 2; /* Encima del overlay */
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LOGOS FIJOS (Al frente de todo) */
.hero-logos-fixed {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
    pointer-events: none;
    z-index: 10; /* Máxima capa: encima de overlay y texto */
}

.hero-logos-fixed img {
    width: 150px;
    height: auto;
    pointer-events: auto;
}

.iyq-scale {
    transform: scale(1.5);
    transform-origin: top right;
}

/* Crédito de imagen */
.hero-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Imagen de Ley Koo */
.hero-image {
    width: 250px;
    height: auto;
    margin-top: 20px;
    border-radius: 10px;
}
.semblanza-link a {
    color: beige;
    font-weight: bold;
}

/* ========================================================================= */
/* 3. Tipografía del Hero (Tamaños finales) */
/* ========================================================================= */

/* Se eliminaron los estilos h1, h2 y h3 iniciales duplicados (líneas 70-79 del archivo original) */

.hero-content h1 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 20px; /* Añadido de la regla inicial */
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #f5f5dc;
}

.hero-content h3 {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: #f5f5dc;
}

.hero-content h4 {
    font-size: 1.8rem;
    font-weight: 400;
}

.hero-content h5 {
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
}


/* ========================================================================= */
/* 4. Navegación */
/* ========================================================================= */
.hero nav {
    position: absolute;
    top: 20px;
    width: 100%;
    z-index: 1;
}

.hero nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.hero nav ul li a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.hero nav ul li a:hover {
    color: #f5f5dc;
}

/* ========================================================================= */
/* 5. Contenido Principal y Tarjetas */
/* ========================================================================= */
main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Tarjetas modernas */
.card {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card h2 {
    margin-bottom: 20px;
    color: #f5f5dc;
    font-size: 2rem;
}

.card p, .card ul {
    font-size: 1.1rem;
}

.card ul li {
    margin-bottom: 10px;
}

.justificado {
    text-align: justify;
}

/* ========================================================================= */
/* 6. Botones (General y Hero) */
/* ========================================================================= */

.btn {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 15px;
    background-color: #f5f5dc;
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #e6c200;
}

/* Botón especial del Hero */
.hero-content .btn {
    padding: 15px 35px;
    font-size: 1.3rem;
    background-color: #f5f5dc;
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.hero-content .btn:hover {
    background-color: #162456;
}

/* ========================================================================= */
/* 7. Ponentes */
/* ========================================================================= */
.ponentes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.ponente {
    flex: 1 1 250px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s;
}

.ponente img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.ponente h3 {
    margin-bottom: 10px;
}

.ponente h3 a {
    color: #ffd700;
    text-decoration: none;
    transition: 0.3s;
}

.ponente h3 a:hover {
    color: #fff;
}

.ponente p {
    color: #f5f5dc;
}

.ponente:hover {
    transform: translateY(-10px);
}

/* ========================================================================= */
/* 8. Tabla Programa (Consolidado y limpio) */
/* ========================================================================= */
.programa table {
    width: 100%; /* Ocupa el 100% del contenedor */
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    /* >> CAMBIO AÑADIDO: Aumenta el tamaño de la letra general de la tabla << */
    font-size: 1.1em; 
}

.programa th, .programa td {
    border: 1px solid #333;
    /* >> CAMBIO AÑADIDO: Aumenta el padding para hacer las filas más altas << */
    padding: 12px 15px; 
    text-align: left;
}

.programa th {
    background-color: #f0f0f0;
    color: #000000;
    text-align: center;
    font-weight: bold;
}

.programa tr:nth-child(even) {
    background-color: #fafafa;
}

.programa tr:hover {
    background-color: #f1f7fc;
}

/* Estilo para filas que abarcan todo (ej. Coffee Break) */
.programa td[colspan="3"] {
    text-align: center;
    font-weight: bold;
    background-color: #e0e0e0;
}

/* ========================================================================= */
/* 9. Póster */
/* ========================================================================= */
.poster-section {
    padding: 40px 20px;
    text-align: center;
}

.poster-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.poster-viewer {
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.poster-download a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.poster-download a:hover {
    background-color: #0056b3;
}

/* ========================================================================= */
/* 10. Logos Sección Final */
/* ========================================================================= */
.logos-section {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(0,0,0,0.6);
    border-radius: 20px;
}

.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 150px;
}

.logos-container img {
    width: 150px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s;
}

.logos-container img:hover {
    transform: scale(1.1);
}

/* ========================================================================= */
/* 11. Footer */
/* ========================================================================= */
footer {
    text-align: center;
    padding: 25px;
    background-color: #162456;
}

/* ========================================================================= */
/* 12. Responsive */
/* ========================================================================= */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        aspect-ratio: auto;
        background-position: center top;
        min-height: auto; /* Permite que el hero se adapte a su contenido en móvil */
        padding-top: 100px; /* Espacio para logos fijos */
        padding-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
    .hero-content h3 {
        font-size: 1.2rem;
    }
    .hero-content .btn {
        font-size: 1rem;
        padding: 12px 25px;
    }

    /* Logos */
    .logos-container {
        gap: 50px;
    }
    .logos-container img {
        width: 120px;
        height: 80px;
    }

    /* Logos fijos en el Hero */
    .hero-logos-fixed {
        padding: 0 20px; /* Reducir padding en móvil */
        justify-content: space-around;
    }

    /* Nota: Se eliminó el media query complejo para la tabla que usaba `.tabla-programa`
       ya que la nueva tabla con `.programa` no lo necesita. */
}

.programa table {
    width: 100%; /* Hace que la tabla ocupe el 100% del ancho de su contenedor (.programa) */
    border-collapse: collapse; /* Para que las líneas de la tabla se vean mejor */
    font-size: 1.1em; /* Incrementa el tamaño de la letra un poco */
}

.programa th,
.programa td {
    padding: 12px 15px; /* Aumenta el espaciado interno (arriba/abajo: 12px, izquierda/derecha: 15px) */
    text-align: left;
}

