/* ==========================================================================
   EFB MASTER STYLESHEET - INTEGRATED VERSION
   ========================================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');

/* --- 1. CONFIGURACIÓN GLOBAL --- */
body { 
    font-family: 'Montserrat', sans-serif; 
    color: #333; 
    line-height: 1.6;
}

.text-justify { text-align: justify !important; }
.efb-blue { color: #00a0dc !important; }
.bg-efb-blue { background-color: #00a0dc !important; }

/* --- 2. NAVEGACIÓN PRINCIPAL (LIMPIEZA DE CUADROS SUPERPUESTOS) --- */
.navbar { 
    background-color: #8A8A8C !important; 
    border: none !important; /* Elimina cualquier borde de la barra */
    padding: 2px 0 !important;
}

/* 1. Limpiamos el contenedor del ítem para que no genere cuadros azules */
.navbar-nav .nav-item {
    background: none !important;
    border: none !important;
    padding: 0 2px;
}

/* 2. Configuramos el enlace como el ÚNICO elemento con forma de óvalo */
.navbar .nav-link { 
    color: #ffffff !important; 
    font-weight: 700 !important; 
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px 22px !important; 
    border-radius: 50px !important; /* El óvalo */
    transition: all 0.3s ease;
    border: 2px solid transparent !important; /* Evita que aparezcan líneas extra */
    background: none !important;
}

/* 3. El estado ACTIVO y HOVER ahora solo afecta al óvalo, sin cuadros extra */
.navbar-nav .nav-item.active > .nav-link,
.navbar .nav-link:hover {
    background-color: #00A1DF !important; /* Fondo azul del óvalo */
    color: #ffffff !important;
    border: 2px solid #00A1DF !important;
    border-bottom: none !important; /* ELIMINA EL CUADRO AZUL INFERIOR */
    box-shadow: none !important;
}

/* Forzamos la eliminación de la línea azul vieja si persiste */
.navbar-nav .nav-item.active {
    border-bottom: none !important;
}
/* --- 3. SUBMENÚS (PILLS) --- */
.nav-pills .nav-link {
    border-radius: 50px !important;
    border: 1px solid #00A1DF !important;
    color: #00A1DF !important;
    background-color: #ffffff !important;
    margin: 5px;
    font-weight: 600;
}

.nav-pills .nav-link.active {
    background-color: #00A1DF !important;
    color: #ffffff !important;
}

/* --- 4. LISTA DE ACTIVIDADES (SANGRÍA FRANCESA / HANGING INDENT) --- */
.efb-activity-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.efb-check {
    color: #00a0dc;
    margin-right: 12px;
    flex-shrink: 0;
    font-weight: bold;
}

.efb-activity-text {
    flex: 1;
    text-align: justify;
    font-size: 16px;
}

/* --- 5. COMPONENTES Y TARJETAS --- */
.home-card { 
    border: 1px solid #eef0f2; 
    transition: 0.3s; 
    border-radius: 12px; 
}

.home-card:hover { 
    border-color: #00A1DF !important; 
    transform: translateY(-5px); 
}

.btn-newsletter {
    background-color: #00a0dc;
    color: white !important;
    border-radius: 50px;
    font-weight: bold;
    padding: 12px 30px;
    display: inline-block;
    transition: 0.3s;
}

.btn-newsletter:hover {
    background-color: #0086b8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- 6. OPTIMIZACIÓN MÓVIL (390px / iPhone) --- */
@media (max-width: 480px) {
    h1 { font-size: 1.55rem !important; line-height: 1.2 !important; text-align: center; }
    .mobile-text-center { text-align: center !important; }
    .efb-activity-text { font-size: 14px !important; }
    .img-logo-mobile { max-width: 85% !important; height: auto !important; margin: 0 auto; }
    .container { padding-left: 20px; padding-right: 20px; }
    .card-title { font-size: 1.15rem !important; }
}
/* --- 5. COMPONENTES Y TARJETAS (ACTUALIZADO PARA IMÁGENES COMPLETAS) --- */
.news-card {
    border: 0;
    shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

/* Contenedor de imagen para que se vea COMPLETA */
.news-img-wrapper {
    width: 100%;
    height: 100px; /* Altura fija para mantener el grid alineado */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important; /* Fondo transparente */
    overflow: hidden;
}

.news-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* LA CLAVE: No recorta la imagen, la ajusta al espacio */
}

.news-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
/* --- 7. ALINEACIÓN MAESTRA (SISTEMA GRID RÍGIDO) --- */
.partners-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas exactamente iguales */
    gap: 20px;
    align-items: end; /* Alinea los títulos a la base para que empiecen igual */
    margin: 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 150px; /* Altura total del bloque para que sean espejos */
}

.partner-item h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    height: 40px; /* Forzamos la misma altura para el título */
    display: flex;
    align-items: center;
}

.logo-frame {
    width: 100%;
    height: 80px; /* El logo vive en este marco de 80px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-frame img {
    max-width: 90%; /* Evita que toquen los bordes */
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Ajuste para móviles de 390px */
@media (max-width: 480px) {
    .partners-wrapper { gap: 10px; margin: 20px auto; }
    .partner-item { height: 110px; }
    .partner-item h5 { font-size: 0.8rem; height: 30px; }
    .logo-frame { height: 60px; }
}
/* --- 9. GALERÍA DE BANNERS --- */
.hover-zoom {
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.efb-banner-feed img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 480px) {
    .efb-banner-feed .mb-5 {
        margin-bottom: 25px !important; /* Espacio más ajustado en iPhone */
    }
}
/* ==========================================================================
   EFB COLOR-ONLY PATCH (Safe Mode)
   Este código NO afecta dimensiones, solo tonalidades de texto.
   ========================================================================== */

/* 1. Clase de utilidad para textos específicos */
.efb-blue, 
.efb-blue.font-weight-bold {
    color: #00a0dc !important;
}

/* 2. Color de los enlaces del menú (sin tocar el óvalo ni el fondo) */
.navbar .nav-link {
    color: #ffffff !important; /* Mantenemos blanco por legibilidad sobre gris */
}

/* 3. Color del texto en estado activo o hover (Solo el texto) */
.navbar-nav .nav-item.active > .nav-link, 
.navbar .nav-link:hover {
    color: #ffffff !important; 
    /* Si quieres que el óvalo cambie de color sin mover nada: */
    background-color: #00a0dc !important; 
    border-color: #00a0dc !important;
}

/* 4. Color de títulos, iconos y enlaces específicos en el sitio */
h1, h2, h3, h4, h5, h6, .efb-check, .nav-pills .nav-link {
    color: #00a0dc; /* Cambia a azul solo si es un encabezado */
}

/* 5. Excepción para botones (solo color de fondo) */
.btn-newsletter, .nav-pills .nav-link.active {
    background-color: #00a0dc !important;
    color: #ffffff !important;
    border: none !important;
}
/* ==========================================================================
   FORCE COLOR ON LIST LINKS (EFB BRAND)
   ========================================================================== */

/* Esto obliga a que cualquier enlace dentro de un li tenga tu azul */
li a {
    color: #00a0dc !important;
    transition: color 0.3s ease;
}

/* Controlamos el estado hover para que no vuelva al azul de Bootstrap */
li a:hover {
    color: #0086b8 !important;
    text-decoration: underline; /* Mantiene la usabilidad */
}

/*=========================================================================
EFB PAST EVENTS
===========================================================================*/
.efb-past-events .efb-banner-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.efb-past-events .efb-banner-feed > div {
  margin-bottom: 0 !important;
}

.efb-past-events .efb-banner-feed img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .efb-past-events .efb-banner-feed {
    grid-template-columns: 1fr;
  }
}
