/* ==================================== */
/* 0. Variables Globales y Reset Básico */
/* ==================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f7f7f7;
    padding-top: 80px; /* Espacio para el header fijo */
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Contenedores centrales */
.header-content, .program-table-container, .speakers-grid, .info-content-grid, .organizers-grid, .contact-content, .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================== */
/* 1. Header Fijo (Fixed Header) */
/* ==================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: height 0.3s ease;
    height: 80px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px;
    vertical-align: middle;
    transition: height 0.3s ease;
}

.main-header.scrolled {
    height: 60px;
}

.main-header.scrolled .logo img {
    height: 40px;
}

/* Navegación */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav ul a {
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.95em;
}

.main-nav ul a:hover {
    color: #A31C1A; /* Color primario: Rojo */
}

.btn-registro {
    background-color: #A31C1A;
    color: #fff;
    padding: 10px 20px;
    margin-left: 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

.btn-registro:hover {
    background-color: #7a1513;
}

.menu-toggle {
    display: none;
}

/* ==================================== */
/* 2. Sección Hero (Banner) - Efecto Parallax */
/* ==================================== */
.hero-banner {
    background-image: url('../assets/hero-background.jpg'); /* Asegúrate de tener esta imagen en la carpeta assets */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 200px 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.hero-content hgroup .subtitle {
    font-size: 1.2em;
    font-weight: normal;
    letter-spacing: 2px;
    color: #FF7043; /* Color secundario: Naranja/Coral */
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4.5em;
    font-weight: 900;
    margin: 10px 0;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
}

.hero-content .speaker {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 30px;
    color: #eee;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1em;
    margin-left: 0;
    background-color: #fff;
    color: #A31C1A;
    border: 2px solid #A31C1A;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #A31C1A;
    color: #fff;
}

/* ==================================== */
/* 3. Secciones Generales de Contenido y Títulos */
/* ==================================== */
section {
    padding: 80px 0;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Fondo gris alternado */
section:nth-child(even):not(.organizers-section):not(.contact-section) { 
    background-color: #f0f0f0;
}

h2 {
    font-size: 2.5em;
    color: #A31C1A;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #333;
    margin: 15px auto 0;
}

/* ==================================== */
/* 4. Sección de Expositores */
/* ==================================== */

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    padding: 20px 0;
    align-items: stretch;
}

.speaker-card {
    background-color: #fff;
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.speaker-card img {
    width: 150px;       
    height: 150px;      
    border-radius: 50%; 
    object-fit: cover;  
    display: block;
    margin: 25px auto 15px auto; 
    border: 5px solid #A31C1A; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.speaker-card h3 {
    color: #A31C1A;
    margin: 20px 0 5px;
    font-size: 1.3em;
    padding: 0 15px;
    text-transform: uppercase;
}

.speaker-card p {
    flex-grow: 1; 
    padding: 0 15px 20px;
    color: #555;
    font-size: 0.9em;
    text-align: justify; 
}

/* ==================================== */
/* 5. Sección de Información (Info Evento) */
/* ==================================== */
.info-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center; 
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.info-dates-location h3, .includes-list h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: left; 
    text-transform: uppercase;
}

.info-dates-location p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.info-dates-location .location-text {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    color: #A31C1A;
}

.info-value-includes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-top: 15px;
}

.value-circle {
    width: 120px; 
    height: 120px;
    background-color: #A31C1A;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.value-circle span {
    text-transform: uppercase;
}

.value-circle strong {
    font-size: 2.2em;
    margin-top: 5px;
}

.includes-list ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.includes-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #444;
}

.includes-list small {
    display: block;
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
}

/* ==================================== */
/* 6. Sección Organizadores (Contraste Corregido y Enlace Funcional) */
/* ==================================== */
.organizers-section {
    text-align: center;
    background-color: #f7f7f7; /* Fondo gris claro de la sección */
}

.organizers-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.organizers-content {
    /* Base de la tarjeta (ahora es un enlace <a>) */
    flex: 1; 
    background-color: #fff; /* Fondo blanco para la tarjeta (Contraste para logos) */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
    transition: transform 0.3s ease;
    
    /* Asegura que el enlace se comporte como un contenedor */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.organizers-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.organizers-content img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 0;
    box-shadow: none;
    margin-left: auto;
    margin-right: auto;
}

.organizers-content p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

/* ==================================== */
/* 7. Sección Contacto (Diseño Completo) */
/* ==================================== */
.contact-section {
    padding: 80px 0;
    background-color: #333; /* Fondo oscuro */
    color: #fff; /* Texto blanco */
    text-align: center;
    margin-bottom: 0;
}

.contact-section h2 {
    color: #fff; /* Título blanco sobre fondo oscuro */
    margin-bottom: 30px;
    text-transform: uppercase;
}

.contact-section h2::after {
    background-color: #A31C1A; /* Línea decorativa roja */
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content > p {
    font-size: 1.1em;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; 
}

.method-card {
    flex: 0 0 280px; 
    background-color: #444; /* Fondo oscuro para la tarjeta */
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.method-card:hover {
    background-color: #A31C1A; /* Resalta con el color primario */
}

.method-card i {
    font-size: 2.5em;
    color: #FF7043; /* Color secundario para el ícono */
    margin-bottom: 15px;
}

.method-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #fff;
}

.method-card p a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

/* ==================================== */
/* 8. Footer */
/* ==================================== */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content {
    font-size: 0.9em;
}

/* ==================================== */
/* 9. Estilos Responsive General */
/* ==================================== */
@media (max-width: 900px) {
    
    /* Header Responsive */
    .main-header {
        height: 60px;
        padding: 10px 0;
    }

    .logo img {
        height: 40px;
    }
    
    /* Mostrar el menú cuando está activo */
    .main-nav.active {
        height: auto; 
        max-height: 400px;
        padding: 15px 0;
    }

    /* Expositores */
    .speakers-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Hero Section Responsive */
    .hero-banner {
        padding: 100px 0;
        height: 80vh; 
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
    
    body {
        padding-top: 60px;
    }

    /* Información de evento responsive */
    .info-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .includes-list ul {
        text-align: center; 
    }
    
    .value-circle {
        margin: 20px auto;
    }
    
    /* Menú Toggle */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #333;
        font-size: 1.5em;
        cursor: pointer;
        padding: 10px;
    }
    
    .main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-nav ul a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }

    .btn-registro {
        margin: 15px 20px;
        align-self: flex-start;
        width: calc(100% - 40px);
    }
    
    /* Organizadores y Contacto Responsive */
    .organizers-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .organizers-content {
        width: 100%;
        max-width: 400px;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .method-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 400px;
    }
}


/* ==================================== */
/* 10. Sección de Programa (TABLA) */
/* ==================================== */

.program-table-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    overflow-x: auto; /* Permite desplazamiento horizontal en móviles si es necesario */
}

.program-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden; 
}

.program-table th, .program-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}

.program-table th {
    background-color: #A31C1A; /* Color primario */
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Encabezados de Día */
.program-table .day-header td {
    background-color: #f0f0f0; /* Gris claro */
    font-weight: 900;
    color: #333;
    padding: 10px 15px;
    border-bottom: 2px solid #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Columna de Hora */
.program-table .time {
    font-weight: bold;
    color: #A31C1A;
    width: 130px;
}

/* Columna de Actividad */
.program-table .activity {
    font-weight: 600;
}

/* Columna de Expositor */
.program-table .speaker {
    font-size: 0.9em;
    color: #555;
    font-style: italic;
    width: 150px;
}

/* Filas Destacadas (Breaks, Almuerzos) */
.program-table .highlight {
    background-color: #f9f9f9;
    font-style: italic;
}

/* Filas de Evento Principal */
.program-table .main-event-row {
    background-color: #fff3e0; /* Un color suave para destacar */
    font-weight: 700;
    border-left: 5px solid #FF7043; /* Borde de color secundario */
}

/* ==================================== */
/* Media Query para Tablas en Móviles */
/* ==================================== */
@media (max-width: 700px) {
    
    .program-table-container {
        padding: 0 10px;
    }
    
    .program-table {
        /* Fuerza la tabla a tener un ancho mínimo para que sea desplazable horizontalmente */
        min-width: 600px; 
    }
    
    /* Asegura que el título del día ocupe todo el ancho */
    .program-table .day-header td {
        white-space: nowrap;
    }
}