/* --- ESTILOS DEL BANNER CONGRESO (CORREGIDO) --- */
.congreso-banner-section {
    background-color: #e8f5e9; /* Verde claro pastel de fondo */
    /* MÁRGEN TIPO CLEARANCE: esto evita que el menú fijo tape el contenido */
    padding-top: 100px !important; 
    padding-bottom: 25px;
    padding-left: 15px;
    padding-right: 15px;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.congreso-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap; /* Evita que las columnas salten de linea en laptops */
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Columnas */
.congreso-col {
    flex: 1;
}

/* Columna 1: Imagen Logo */
.col-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 32%; /* Controla el ancho ocupado por el logo */
}

.congreso-img-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
}

/* Columna 2: Texto central y cajas doradas */
.col-center {
    text-align: center;
    flex: 0 0 38%;
}

.congreso-slogan {
    font-size: 1.05rem;
    color: #2c3e50;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.25;
}

.congreso-slogan span {
    font-weight: 800;
}

.congreso-badge {
    background-color: #e5a823; /* Dorado / Amarillo exacto */
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 5px 12px;
    margin: 4px auto;
    border-radius: 3px;
    max-width: 340px;
    letter-spacing: 0.5px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.badge-arrow {
    margin-right: 6px;
    font-weight: bold;
}

/* Columna 3: Estructura en 2 subcolumnas alineadas */
.col-right {
    flex: 0 0 32%;
}

.congreso-right-grid {
    display: flex;
    gap: 15px;
    width: 100%;
}

/* Cada bloque vertical (Texto + Botón centrado) */
.info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el título, texto y botón horizontalmente */
    text-align: center;
}

.border-left-custom {
    border-left: 1px solid #a3d9a5;
    padding-left: 15px;
}

/* Títulos con líneas decorativas laterales (como la imagen de referencia) */
.info-title {
    color: #009640;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
    white-space: nowrap;
}

.info-title::before,
.info-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #a3d9a5;
    margin: 0 5px;
}

.info-block p {
    font-size: 0.68rem;
    color: #2e7d32;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.mail-text {
    font-weight: bold;
}

/* Botones alineados al fondo de su contenedor */
.btn-congreso {
    margin-top: auto; /* Empuja los botones al fondo para que queden alineados a la misma altura */
    background-color: #009640;
    color: #ffffff !important;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.btn-congreso:hover {
    background-color: #007a33;
    transform: translateY(-2px);
}

/* Ajustes Responsive para pantallas más chicas */
@media (max-width: 1100px) {
    .congreso-container {
        flex-wrap: wrap;
    }
    .col-logo, .col-center, .col-right {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
}
/* --- AJUSTES DE IMAGEN EN MODAL --- */
.modal-programa-img {
    max-width: 100%;
    max-height: 80vh; /* La imagen nunca ocupará más del 80% del alto de la ventana */
    width: auto;
    height: auto;
    object-fit: contain; /* Garantiza que la imagen se ajuste completa sin recortar */
    margin: 0 auto;
    display: block;
}

/* Opcional: fondo oscuro en el cuerpo del modal para destacar el afiche si sobra espacio a los lados */
#modalPrograma .modal-body {
    background-color: #1a1a1a;
}