/* Variables CSS para colores y fuentes */
:root {
    --primary-color: #0056b3; /* Azul oscuro */
    --secondary-color: #28a745; /* Verde para llamadas a la acción secundarias */
    --accent-color: #ffc107; /* Amarillo para detalles */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --border-color: #dee2e6;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

p {
    font-size: 1.3em;
    margin-bottom: 15px;
}

/* Header */
.main-header {
    background-color: var(--bg-dark);
    color: var(--light-text-color);
    padding: 15px 0;
    border-bottom: 5px solid var(--primary-color);
    text-align: center; /* Centrar el logo si no hay nav a su lado */
}

.main-header .container {
    display: flex;
    justify-content: center; /* Centrar el logo */
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
}

.logo a {
    color: var(--light-text-color);
    text-decoration: none;
}

/* ESTILOS DEL MENÚ PRINCIPAL DESPUÉS DEL HERO */
.main-nav-after-hero {
    background-color: var(--primary-color); /* Un color de fondo para el menú */
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-nav-after-hero ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Centrar los ítems del menú */
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.main-nav-after-hero li {
    margin: 0 20px; /* Espaciado entre los ítems del menú */
}

.main-nav-after-hero a {
    color: var(--light-text-color);
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 1.4em;
}

.main-nav-after-hero a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-background.jpeg') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.hero-content {
    max-width: 950px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-dates {
    font-size: 1.2em;
    margin-bottom: 40px;
    font-weight: 700;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 10px;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.primary-button:hover {
    background-color: #003f80;
    border-color: #003f80;
    text-decoration: none;
}

.secondary-button {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    border: 2px solid var(--secondary-color);
}

.secondary-button:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
    text-decoration: none;
}

.outline-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.outline-button:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-decoration: none;
}


/* Secciones generales */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* Sección Sobre el Congreso */
.about-section p {
    max-width: 800px;
    margin: 0 auto 15px auto;
    text-align: center;
    font-size: 1.3em;
}

/* Programa Highlight Section */
.program-highlight-section .program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Esto creará 2 columnas de ancho igual */
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.program-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
}

.program-item h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.program-item h4 {
    font-size: 1.2em;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.program-item p {
    margin-bottom: 1px;
    margin-top: 1px;
}

/* Previous Section */
.previous-section .previous-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Esto creará 3 columnas de ancho igual */
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.previous-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
}

.previous-item h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.previous-item h4 {
    font-size: 1.2em;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.previous-item p {
    margin-bottom: 1px;
    margin-top: 1px;
}

.previous-item:hover {
    text-decoration: none;
    background-color: #ffda6a;
}

/* Speakers Preview Section */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.speaker-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.speaker-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.speaker-card h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.speaker-card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.speaker-card .speaker-bio-short {
    font-size: 0.85em;
    color: #555;
    margin-top: 10px;
}

/* Call to Action Banner */
.call-to-action-banner {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 60px 0;
}

.call-to-action-banner h2 {
    color: var(--light-text-color);
    font-size: 2.8em;
    margin-bottom: 20px;
}

.call-to-action-banner p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action-banner .button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.call-to-action-banner .button:hover {
    background-color: #ffda6a;
    border-color: #ffda6a;
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--light-text-color);
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--light-text-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--light-text-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.social-links a {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 8px 12px;
    border-radius: 5px;
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #003f80;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    /* Ajustes para el menú después del hero en móvil */
    .main-nav-after-hero ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav-after-hero li {
        margin: 10px 0;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .button {
        display: block;
        width: 80%;
        margin: 15px auto;
    }

    h2 {
        font-size: 2em;
    }

    .program-highlight-section .program-grid,
    .speakers-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .call-to-action-banner h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .main-nav-after-hero li {
        margin: 0 5px;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .section {
        padding: 50px 0;
    }
}



