/* Tipografía personalizada (asegúrate de tener la fuente cargada) */
/* =========================================
   REEMPLAZO DE FUENTES (Mismos nombres, 2 archivos)
   ========================================= */

@font-face {
  font-family: 'Raleway-Light';
  /* Textos generales apuntan a Bahnschrift */
  src: url('../fonts/bahnschrift.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sheepman-Bold';
  /* Títulos apuntan a Bebas Neue Pro Middle */
  src: url('../fonts/Bebas Neue Pro Middle.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sheepman-Slanted-Light';
  src: url('../fonts/Bebas Neue Pro Middle.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sheepman-Slanted-Regular';
  src: url('../fonts/Bebas Neue Pro Middle.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sheepman-Regular';
  src: url('../fonts/Bebas Neue Pro Middle.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sheepman-Slanted-Bold';
  src: url('../fonts/Bebas Neue Pro Middle.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
}



body {
  font-family: 'Raleway-Light', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 17px;
  background-color: white;
}

/* --- HEADER --- */
header {
  position: fixed;
  top:40px; /* o por ejemplo: top: 10px; si quieres un margen arriba */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background-color: #fff;
  box-shadow: 10px 10px 20px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 5px 20px;
  border-radius: 20px; /* opcional: si quieres esquinas redondeadas */
}


/* Animación Header */


header,
.redes {
  transition: opacity 0.5s ease, filter 0.5s ease, visibility 0.5s ease;
  will-change: op acity, filter;
}

/* Estado oculto: opacidad 0 + blur */
.hidden-on-scroll {
  opacity: 0;
  visibility: hidden;
}

header{
  animation: slideDown 0.6s ease-out;
  -webkit-animation: slideDown 0.6s ease-out;
}

.redes{
  animation: slideDown2 0.6s ease-out;
  -webkit-animation: slideDown2 0.6s ease-out;
}



@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes slideDown2 {
  from {
    opacity: 0;
    transform: translate(0%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(0%, 0);
  }
}











/* Resto del menú (igual que antes) */
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
}

.logo img {
  height: 90px;
}

.menu_hamburguesa {
  display: none;
}

.label_hamburguesa {
  display: none;
  cursor: pointer;
}

.list_icon {
  color: black;
}

.ul_links {
  display: flex;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.li_links .link {
  position: relative;
  display: inline-block;
  color: black;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 5px;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: 13px;
}

.li_links .link::after{
  content: "";
  position: absolute;
  bottom: 4px;             
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;               /* más delgado */
  background-color: black;    /* más suave que negro */
  transition: width 0.3s ease;
  border-radius: 1px;
}

.ul_links .li_links:nth-child(2) .link::after {
  display: none;
}


.li_links .link:hover::after {
  width: 80%;                /* más corto */
}


.li_links .link.active {
  color: black; /* o el color que desees */
}

/* Subrayado pequeño para el activo */
.li_links .link.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;               /* igual que el hover */
  height: 1px;
  background-color: black ;   /* puede ser un color de acento */
  border-radius: 1px;
}


/* Estilos base para la lista */
.ul_links {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

/* Dropdown */
.dropdown {
  position: relative;
}

/* Submenú con estilo flotante */


/* SUBMENÚ DETRÁS DEL HEADER */
/* ==========================================================================
   SUBMENÚ "LA FEC" (Ajuste de posición anclada a la derecha)
   ========================================================================== */
.fec-container {
  position: relative; 
}

/* ==========================================================================
   SUBMENÚ "LA FEC" (Posicionamiento Dinámico Perfecto)
   ========================================================================== */
.submenu-behind {
  position: fixed;
  top: 90px; /* La altura desde arriba */
  z-index: 666;
  background-color: white;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 10px 10px;
  padding: 15px 10px 10px 10px;
  min-width: 150px;
  text-align: center;

  /* Estado oculto */
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  
  /* IMPORTANTE: Mantenemos el translateX(-50%) para centrarlo respecto al botón */
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

/* Mostrar cuando está activa */
.submenu-behind.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.submenu-behind li {
  padding: 10px 10px;
  list-style: none;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  width: 80%;
  box-sizing: border-box;
  margin: 0 auto;
}

.submenu-behind li:last-child {
  border-bottom: none;
}

.submenu-behind li a {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  color: black;
  text-decoration: none;
  font-size: 13px;
}

.submenu-behind li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: black;
  transition: width 0.3s ease;
  border-radius: 1px;
}

.submenu-behind li a:hover::after {
  width: 70%;
}

@keyframes slideDown3 {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}





/* Responsive */
@media (max-width: 768px) {
  .label_hamburguesa {
    display: block;
  }

  .ul_links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #fff;
    display: none;
    padding: 10px 20px;
    box-shadow: 10px 10px 24px rgba(0,0,0,0.5);
  }

  .ul_links .li_links {
    margin: 10px 0;
  }

  .menu_hamburguesa:checked + .ul_links {
    display: flex;
  }

/* ==========================================================================
     ESTILO PREMIUM: SUBMENÚ MÓVIL (Tarjeta Flotante)
     ========================================================================== */
  .submenu-behind {
      /* Cambio clave: Centrado absoluto en la pantalla */
      position: fixed !important; 
      top: 50% !important; 
      left: 50% !important; 
      transform: translate(-50%, -50%) !important; 
      
      z-index: 999999 !important; /* Prioridad máxima */
      
      background: #ffffff !important;
      padding: 10px 20px !important;
      border-radius: 15px !important;
      box-shadow: 0 15px 50px rgba(0,0,0,0.4) !important;
      text-align: center !important;
      width: 85% !important; 
      max-width: 320px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 5px !important;
      
      /* Aseguramos que empiece invisible */
      opacity: 0 !important;
      pointer-events: none !important;
      visibility: hidden !important;
      transition: all 0.3s ease !important;
  }

  /* Estado visible (se mantiene centrado con el transform) */
  .submenu-behind.active {
      opacity: 1 !important;
      pointer-events: auto !important;
      visibility: visible !important;
      transform: translate(-50%, -50%) !important; 
  }

  
  .submenu-behind li {
      list-style: none !important;
      margin: 0 !important;
      width: 100% !important;
      border-bottom: 1px solid #f0f0f0 !important;
  }

  .submenu-behind li:last-child {
      border-bottom: none !important;
  }

  .submenu-behind a {
      font-family: 'Sheepman-Bold', sans-serif !important;
      font-size: 20px !important;
      color: #25282A !important;
      text-decoration: none !important;
      display: block !important;
      padding: 15px !important;
  }

  /* Efecto al tocar la pantalla */
  .submenu-behind a:active {
      background: #FFD901 !important; /* Amarillo FEC */
      color: #223B7F !important; /* Azul FEC */
      border-radius: 8px !important;
  }
  
}

/* ===========================================
   2. Redes
=========================================== */

/* Contenedor de íconos */
.redes {
  position: fixed;
  top: 150px;
  left: 82%;
  z-index: 777;
}

/* Lista horizontal */
.redes-lista {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 10px 10px;
}

/* Íconos */
.redes-lista img {
  margin-top: 25px;
  width: 30px;
  padding: 10px;
  transition: transform 0.2s ease;
}

.redes-lista img:hover {
  transform: scale(1.1);
}


/* ===========================================
   2. Footer
=========================================== */

.footer {
  background: white;
  font-family: sans-serif;
  padding: 60px 20px 0;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
  margin-bottom: 50px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1600px;
  margin: auto;
  gap: 40px;
}

.footer-left {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
  gap: 80px;
  align-items: flex-start;
}

.footer-left .logo {
  max-height: 120px;
  object-fit: contain;
}

.footer-right {
  flex: 1 1 60%;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-left: 200px;
  margin-bottom: 30px;
  transform: translateY(-20px);
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  color: red;
  font-size: 18px;
  margin-bottom: 10px;
  font-family: 'Sheepman-Bold';
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-col ul li a {
  text-decoration: none;
  color: inherit;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

/* Contactos con íconos */
.contact-list li {
  display: flex;
  align-items: center;
}

.icono {
  width: 16px;
  height: 16px;
  margin-right: 25px;
  object-fit: contain;
}

/* Franja tricolor inferior */
.footer-bar {
  width: 100%;
  display: flex; /* si quieres que los divs internos estén en fila */
  height: 25px;  /* altura que desees */
}

.footer-bar .color {
  flex: 1;
}

.amarillo {
  background-color: #FFD901;
}

.azul {
  background-color: #223B7F;
}

.rojo {
  background-color: #CA141F;
}


/* ==========================================================================
   AGREGAR AL FINAL DEL ARCHIVO: SECCIÓN NOTICIAS FEC (CORREGIDO)
   ========================================================================== */

/* 1. Contenedor Maestro con los márgenes de 80px */
.modulo-presentacion {
  padding: 0 80px; 
  max-width: 1600px; 
  margin: 80px auto; 
  box-sizing: border-box;
}

/* 2. Caja Flex Principal */
.modulo-grid {
  display: flex;
  gap: 50px; 
  align-items: center; /* Centrado vertical para equilibrar con la foto izquierda */
}

/* 3. Columna de la Imagen (Izquierda) */
.modulo-imagen {
  flex: 0.8; /* Le bajamos un toque para que la tarjeta de la derecha tenga más aire */
}

.modulo-imagen img {
  width: 100%;
  height: 60vh; /* Altura más controlada y minimalista */
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

/* 4. Columna del Contenido (Derecha) */
.modulo-contenido {
  flex: 1.2; 
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-sizing: border-box;
}

.modulo-titulo {
  font-family: 'Sheepman-Slanted-Bold', sans-serif;
  font-size: 50px; /* Un poco más pequeño y elegante */
  margin-top: 0;
  margin-bottom: 10px;
  color: #223B7F;
}

.modulo-descripcion {
  font-size: 15px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 30px;
}

/* ==========================================================================
   CONTROL DEFINITIVO DE LAS 3 TARJETAS EN FILA (CSS GRID)
   ========================================================================== */

.modulo-tarjetas {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Forzamos una rejilla exacta de 3 columnas */
.tarjetas {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* Crea 3 columnas idénticas */
  gap: 25px !important; /* Espacio real entre tarjetas para que NO se peguen */
  width: 100% !important;
  margin-bottom: 30px !important;
}

/* Reseteamos por completo las tarjetas individuales */
.tarjeta-info {
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
  float: none !important; /* Elimina cualquier float viejo que las pegue */
  margin: 0 !important;   /* Limpia márgenes residuales */
}

/* Las imágenes internas de las miniaturas */
.tarjeta-imagen {
  width: 100% !important;
  height: 160px !important; /* Altura compacta y uniforme */
  border-radius: 10px !important;
  background-size: cover !important;
  background-position: center !important;
  margin-bottom: 12px !important;
}

/* El texto debajo de cada miniatura */
.tarjeta-texto {
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #333 !important;
  margin: 0 !important;
}

/* Contenedor del botón CONOCE MÁS */
.boton-contenedor {
  display: flex !important;
  justify-content: flex-end !important; /* Lo empuja a la derecha */
  width: 100% !important;
  margin-top: 10px !important;
}