/* ========================
   ESTILOS GENERALES
======================== */
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #333;
    background-color: #fafafa;
}

h1, h2, h3 {
    color: #1f1f1f;
    text-align: center;
}

p {
    line-height: 1.6;
    margin-bottom: 1em;
}

/* ========================
   HEADER Y NAVEGACIÓN
======================== */
header {
    position: relative;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-container {
    width: 100%;
    overflow: hidden;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

.navbar {
    background-color: #343a40; /* Cambiado a gris oscuro elegante */
}

.navbar ul {
    list-style: none;
    font-size: 120%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.navbar li {
    margin: 0;
}

.navbar a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: background 0.3s ease;
}

.navbar a:hover {
    background-color: #212529; /* Gris aún más oscuro al pasar el ratón */
}

/* ========================
   SECCIÓN PRINCIPAL
======================== */
.hero-section {
    position: relative;
    height: 80vh;
    background-image: url('img/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 32, 64, 0.5);
    background: #f2ece0;
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 20px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5em;
}

.hero-text h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1em;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
}

.hero-quote {
    font-style: italic;
    margin: 1.5rem 0;
    border-left: 4px solid #555;
    padding-left: 1rem;
    color: #444;
}

.hero-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-weight: 500;
    color: #666;
}

.hero-content {
    flex: 0 0 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    z-index: 2;
}

/* Bloque de imagen (20%) fijo a la derecha */
.hero-image {
    flex: 0 0 20%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image img {
    height: auto;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.btn {
    background-color: #343a40; /* Cambiado a gris oscuro */
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #495057; /* Cambiado a gris medio */
    color: #ffffff;
}

/* ========================
   CONTENIDO Y FOOTER
======================== */
.content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.presentacion {
    font-size: 120%;
}

.imagen-conferencia {
    float: left; /* Hace que la imagen se posicione a la izquierda */
    margin-right: 20px; /* Espacio entre la imagen y el texto */
    width: 150px; /* Ajusta el tamaño de la imagen */
    height: auto; /* Mantiene la relación de aspecto */
    margin-top: 10px;
}

.conferencia {
    clear: both; /* Asegura que el contenedor se acomode alrededor de la imagen flotante */
    margin-bottom: 30px;
    border-bottom: medium;
    min-height: 200px;
    border-bottom-color: #495057; /* Cambiado a gris medio */
    border-bottom-style: dotted;
}

/* Estilos para el programa y conferencias */
.programa, .conferencias {
    font-size: 120%;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
}

.programa h2, .conferencias h2 {
    text-align: center;
    color: #343a40; /* Cambiado a gris oscuro */
}

.contenido {
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
    text-align: justify;
    font-size: 120%;
}

.contenido ul {
    list-style: none;  /* Elimina los iconos por defecto */
    padding-left: 20px;  /* Espacio a la izquierda */
}

.contenido ul li {
    position: relative;  /* Permite posicionar el icono personalizado */
    padding-left: 25px;  /* Espacio para que el icono no quede pegado */
    margin-bottom: 10px;
    font-size: 100%;
}

/* Personaliza el icono antes de cada <li> */
.contenido ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    transform: translateY(-30%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #495057;  /* Cambiado a gris medio */
}

.tablacom {
    width: 70%; 
    border-collapse: collapse; 
    font-family: Arial, sans-serif;
}

footer {
    background-color: #343a40; /* Cambiado a gris oscuro */
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    margin-top: 60px;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .navbar a {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .hero-content {
        flex-direction: column; /* Pone los divs en vertical */
        text-align: center;
        margin-top: 100%;
    }

    .hero-image {
        order: -1; /* Hace que la imagen esté antes del texto */
        width: 100%;
        margin-bottom: 15px;
    }

    .hero-text {
        width: 100%;
    }
    
    .overlay {
        height: 155%;
    }

    #presenta {
        margin-top: 100%;
    }

    .tablacom {
        width: 95%;
    }

    .contenido {
        margin: 3%;
        font-size: 100%;
    }

    .opiniones-container {
        height: 250px;
    }
}