/* --- Estilos Globales --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* --- Header Styles --- */
header {
    background-color: #004080;
    color: white;
    padding: 20px 0;
    text-align: center; /* This centers the content block itself */
}

header h1 {
    margin: 0;
    font-size: 2.2em;
}

header p {
    font-size: 1.1em;
    margin-bottom: 5px;
}

/* New styles for horizontal alignment */
.header-content {
    display: flex; /* Enables Flexbox for horizontal layout */
    align-items: center; /* Vertically aligns items in the middle */
    justify-content: center; /* Horizontally centers items */
    flex-wrap: wrap; /* Allows items to wrap to the next line on smaller screens */
    gap: 20px; /* Adds space between items */
    max-width: 1200px; /* Optional: Constrain the width of the content */
    margin: 0 auto; /* Centers the content block if max-width is set */
}

.header-content img {
    max-height: 80px; /* Adjust as needed for your logos */
    width: auto; /* Maintain aspect ratio */
}

/* Optional: Adjust paragraph styling within header-content if needed */
.header-content p {
    margin-bottom: 0; /* Remove bottom margin if it creates unwanted space in the flex layout */
    text-align: center; /* Ensure text is centered if it wraps */
}

/* --- Contenedor Principal --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* --- Navegación --- */
nav {
    background-color: #333;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: flex-end; /* Alinea los elementos al final en desktop */
    align-items: center;
    width: 100%;
}

/* Menú para Desktop */
#navMenu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex; /* Se cambia a flex para controlar su visibilidad */
    flex-direction: row;
}

#navMenu li {
    display: inline;
    margin-right: 15px;
}

#navMenu li:last-child {
    margin-right: 0;
}

#navMenu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#navMenu li a:hover {
    background-color: #555;
}

/* --- Estilos para el menú de hamburguesa y overlay --- */
.hamburger {
    display: none; /* Oculto por defecto en desktop */
    cursor: pointer;
    z-index: 1010; /* Debe estar por encima del overlay */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}


/* --- Banner Principal --- */
.banner {
    background: url('https://aem-all.accor.com/content/dam/all/hubs/americas/latam/generic-images/all-magazine/lugares-turisticos-de-medellin-2024-1.jpg ') no-repeat center center/cover;
    height: 400px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner-text {
    background-color: rgba(0, 64, 128, 0.7);
    padding: 25px;
    border-radius: 10px;
}

.banner h2 {
    font-size: 2.3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: 1.4em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- Secciones Generales --- */
.section {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    color: #004080;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff8c00;
    display: inline-block;
    margin-bottom: 20px;
}

/* --- Botones de Acción (CTA) --- */
.cta-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.cta-buttons button {
    background-color: #ff8c00;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-buttons button:hover {
    background-color: #cc7000;
}

.cta-buttons button:active {
    transform: translateY(1px);
}

/* --- Contador Regresivo --- */
.countdown-section {
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.countdown {
    font-size: 1.8em;
    text-align: center;
    margin: 20px 0;
    color: #004080;
    font-weight: bold;
}

/* --- Logotipos --- */
.logos {
    text-align: center;
}

.logos img {
    margin: 10px 20px;
    height: 70px;
    vertical-align: middle;
}

/* --- Footer Styles --- */
footer {
    text-align: center;
    padding: 25px;
    background-color: #333;
    color: white;
    margin-top: 30px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #ff8c00;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Grid Layout --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.grid-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grid-item h3 {
    margin-top: 0;
    color: #0056b3;
    font-size: 1.2em;
}

.grid-item p {
    font-size: 0.95em;
}

/* --- Listas Estilizadas --- */
ul.styled-list {
    list-style-type: disc;
    margin-left: 20px;
}

ul.styled-list li {
    margin-bottom: 8px;
}

/* --- Formulario --- */
form div {
    margin-bottom: 15px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form button {
    background-color: #004080;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

form button:hover {
    background-color: #002a53;
}

/* --- Estilos para la galería de imágenes --- */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.image-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
     .nav-container {
        justify-content: flex-end; /* Alinea hamburguesa a la derecha */
    }

    /* Ocultamos el menú de escritorio y mostramos la hamburguesa */
    .hamburger {
        display: block;
    }

    #navMenu {
        display: block;
        position: fixed;
        top: 0;
        left: -280px; /* Oculto fuera de la pantalla */
        width: 250px;
        height: 100%;
        background-color: #333;
        padding: 60px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        transition: left 0.3s ease-in-out;
        z-index: 999;
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    }
    
    #navMenu.show {
        left: 0; /* Lo mostramos */
    }

    #navMenu li {
        display: block;
        width: 100%;
        margin: 15px 0;
    }

    #navMenu li a {
        display: block;
        padding: 10px;
        text-align: left;
    }

    #navMenu li a:hover {
        background-color: #555;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Banner móvil */
    .banner {
        height: 320px;
    }
    
    .banner h2 {
        font-size: 1.9em;
    }
    
    .banner p {
        font-size: 1.1em;
    }
    
    .banner-text {
        padding: 20px;
        margin: 0 10px;
    }
    
    /* Header móvil */
    header h1 {
        font-size: 1.8em;
    }
    
    header p {
        font-size: 1em;
    }
    
    /* Grid móvil */
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    /* Botones móvil */
    .cta-buttons button {
        display: block;
        width: 100%;
        margin: 10px 0;
        font-size: 1em;
        padding: 12px 20px;
    }
    
    /* Galería móvil */
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .image-gallery img {
        height: 250px;
    }
    
    /* Contenedor móvil */
    .container {
        width: 95%;
        padding: 15px;
    }
    
    /* Secciones móvil */
    .section {
        padding: 15px 0;
    }
    
    .section h2 {
        font-size: 1.5em;
    }
    
    /* Contador móvil */
    .countdown {
        font-size: 1.4em;
    }
    
    /* Formulario móvil */
    form input[type="text"],
    form input[type="email"],
    form textarea {
        width: calc(100% - 20px);
        padding: 8px;
    }
    
    form button {
        width: 100%;
        padding: 12px;
    }
}

/* --- Mejoras adicionales --- */
.section p {
    margin-bottom: 15px;
}

.section ul {
    margin-bottom: 15px;
}

/* --- Estilo para imagen de ponente --- */
.ponente-img {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Hace la imagen circular */
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
    margin: 20px auto; /* Centra la imagen horizontalmente y le da espacio vertical */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 3px solid #ff8c00; /* Borde naranja que combina con los botones */
}

.rigoberto-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: center;
}

.ponente-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Para móviles */
@media (max-width: 768px) {
    .rigoberto-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}