:root {
  --color-primary: #112e58;
  --color-secondary: #112e58;
  --color-accent: #1ddf61;
  --color-text: #333;
  --color-white: #fff;
  --font-primary: 'Arial', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --transition-speed: 0.3s;
  --header-height: 60px;
}

/* ==================================================================================================================================================*/
/* ===== ESTILOS GENERALES ===== *********************************************************************************************************************/
/* ==================================================================================================================================================*/

body {
  font-family: var(--font-primary), system-ui, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  
}

/* ==================================================================================================================================================*/
/* ===== HEADER Y NAVEGACIÓN ===== *******************************************************************************************************************/
/* ==================================================================================================================================================*/

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(0, 51, 102, 0.2); /* Fondo transparente inicial */
  z-index: 1000;
  transition: all var(--transition-speed) ease-in-out;
}

header.solid {
  background: #112f58d9; /* Fondo sólido al hacer scroll */
  backdrop-filter: blur(10px); /* Efecto de desenfoque más fuerte */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  margin-top: 10px;
}

.logo img {
  height: 40px;
  width: auto;
  transition: all var(--transition-speed) ease;
}

/* Menú principal */
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 25px;
  margin-top: 5px;
}

.nav-links li a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  transition: opacity var(--transition-speed) ease;
  position: relative;
}

.nav-links li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
  margin-top: 5px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Estilos para el menú hamburguesa */
.menu-icon {
  display: none;
  font-size: 24px;
  color: var(--color-white);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 1010;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-primary);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease-in-out;
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .nav-links li {
    margin: 15px 0;
    font-size: 1.2rem;
    text-align: center;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active li:nth-child(1) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.4s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.5s; }
  .nav-links.active li:nth-child(5) { animation-delay: 0.6s; }
}

/* ESTILOS PARA EL MENÚ DESPLEGABLE */

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown button */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-toggle i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  color: var(--color-primary);
  padding: 8px 20px;
  display: block;
  transition: all 0.3s ease;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: rgba(17, 46, 88, 0.05);
  color: var(--color-accent);
  padding-left: 25px;
}

/* Versión móvil */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 300px;
    padding: 10px 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  .dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
  }
  
  .dropdown-menu a {
    padding: 8px 30px;
    color: white;
  }
  
  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
  }
}

/* ===== ESTRUCTURA PRINCIPAL DEL CARRUSEL ===== */
.carousel {
  position: relative;
  height: 100vh;
  margin-top: var(--carousel-margin);
  overflow: hidden;
  min-height: 600px;
  z-index: 900;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==================================================================================================================================================*/
/* ===== CONTENIDO DEL CARRUSEL =====================================================================================================================*/
/* ==================================================================================================================================================*/

.logo-portada {
  margin-top: -50px;
  max-width: 35%;
  height: auto;
  margin-bottom: 90px;
}

.texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(50px);
  color: var(--color-white);
  z-index: 10;
  width: 90%;
  max-width: 1200px;
  padding: 0 20px;
  box-sizing: border-box;
}

.texto h1 {
  font-size: 2.5rem;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  font-weight: 600;
}

.texto p {
  font-family: 'Abel', sans-serif;
  font-size: 1.7rem;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

/* ===== ELEMENTOS INTERACTIVOS ===== */
.btn-conocenos {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 40px;
  border: 2px solid var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
  z-index: 10;
}

.btn-conocenos:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.texto .btn-conocenos {
  margin-top: 50px;
}

.btn-icono {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid transparent; /* Borde transparente por defecto */
}

.btn-icono:hover {
  border-color: #1ddf61; /* Borde verde al pasar el cursor */
  transform: translateY(3px); /* Movimiento sutil hacia abajo */
  box-shadow: 0 4px 12px rgba(29, 223, 97, 0.3); /* Sombra verde */
}

.texto .btn-icono {
  margin-top: 80px;
}

@keyframes flotar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 900;
}

.carousel-indicators span {
  width: 12px;
  height: 12px;
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid transparent; /* Borde transparente por defecto */
}

.carousel-indicators span.active {
  background-color: var(--color-primary);
  transform: scale(1.5);     /* Ligero aumento de tamaño */
  border-color: white;       /* Borde blanco para destacar */
}

.carousel-indicators span:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* === RESPONSIVO GENERAL PARA DESKTOP MEDIO === */
/* Tablets y laptops medianas */
@media (min-width: 768px) and (max-width: 1199px) {
  .texto {
    width: 85%;
    margin: 0 auto;
    text-align: center;
  }
}

/* Móviles y tablets hasta 768px */
@media (max-width: 768px) {
  .logo-portada {
    min-width: 50px;
    max-width: 45%; /* reducido para pegar más */
    height: auto;
    margin-bottom: 15px; /* antes 20px → pegamos al título */
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-icono {
    display: none !important;
  }

  .texto {
    width: 85%;
    padding: 0 10px;
    transform: translate(-50%, -45%) !important; /* subimos ligeramente */
    margin: 0 auto;
    text-align: center;
    line-height: 1.2;
  }

  .texto h1 {
    font-size: 1.8rem;
    margin-bottom: 6px; /* pegamos más al párrafo */
    line-height: 1.2;
  }

  .texto p {
    font-size: 1.1rem;
    margin-bottom: 12px; /* reducimos espacio al siguiente elemento */
    line-height: 1.2;
  }
}

/* Móviles pequeños <480px */
@media (max-width: 480px) {
  .logo-portada {
    width: 45vw; /* más pegado aún */
    margin-bottom: 12px; /* pegamos más al título */
  }

  .texto {
    width: 85%;
    padding: 0 10px;
    transform: translate(-50%, -44%) !important; /* ajustamos posición */
    margin: 0 auto;
    text-align: center;
    line-height: 1.2;
  }

  .texto h1 {
    font-size: 1.7rem;
    margin-bottom: 5px;
    line-height: 1.2;
  }

  .texto p {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }
}

/* ==================================================================================================================================================*/
/* ===== BANNER DE REDES SOCIALES ===================================================================================================================*/
/* ==================================================================================================================================================*/

.redes-banner {
  background: var(--color-primary);
  padding: 0.8rem 0;
  text-align: center;
}

.redes-banner .redes-sociales {
  display: flex;
  justify-content: center;
  gap: 45px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.redes-banner .redes-sociales .social-icon {
  color: var(--color-white);
  font-size: 2rem;
  transition: color 0.2s ease;
  text-decoration: none !important;
}

.redes-banner .redes-sociales .social-icon:hover {
  color: var(--color-accent);
  background: transparent !important; /* Fuerza fondo transparente */
  transform: none !important; /* Elimina cualquier transformación */
}

/* ===== RESPONSIVE GENERAL PARA TABLETS Y MÓVILES ===== */
@media (max-width: 768px) {
  .redes-banner {
    padding: 0.6rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
  }

  .redes-banner .redes-sociales {
    display: inline-flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 0 15px;
    margin: 0 auto;
    align-items: center;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .redes-banner .redes-sociales::-webkit-scrollbar {
    display: none;
  }

  .redes-banner .redes-sociales .social-icon {
    font-size: 2rem;
    padding: 0 6px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== MÓVILES PEQUEÑOS < 480px ===== */
@media (max-width: 480px) {
  .redes-banner .redes-sociales {
    gap: 12px;
    padding: 0 10px;
  }

  .redes-banner .redes-sociales .social-icon {
    font-size: 1.9rem;
    padding: 0 3px;
  }
}

/* ===== IPHONE 16 PRO & DISPOSITIVOS ALTOS CON NOTCH ===== */
@media (width: 430px) and (height: 932px) {
  .redes-banner {
    padding: 0.6rem 0.2rem;
  }
}

/* ===== GALAXY S21 - AJUSTE ESPACIADO ===== */
@media (width: 412px) and (height: 915px) {
  .redes-banner .redes-sociales {
    gap: 14px;
    padding: 0 10px;
  }
}

/* ==================================================================================================================================================*/
/* ===== ESTILOS MISIÓN Y VISIÓN ====================================================================================================================*/
/* ==================================================================================================================================================*/

.mision-vision {
  position: relative;
  padding: 4rem 0;
  margin-top: 0rem;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(img/fondo\ M.jpg) no-repeat center center/cover;
  z-index: 1;
  opacity: 0.2;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Contenido principal */
.texto-principal {
  text-align: center;
  margin-bottom: 1rem;
  margin-top: -1rem; /* Reducido */
  padding: 0 20px; /* Añadido para consistencia */
}

.texto-principal p {
  font-family: 'Abel', sans-serif;
  font-size: 1.5rem;
  color: var(--color-text);
  line-height: 1.2;
  text-align: center;
}

/* Cajas de contenido */
.contenido-cajas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.2rem;
  margin: 5rem auto;
}

.caja-contenido {
  background: #112f58ef;
  padding: 2rem;
  position: relative;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.caja-contenido:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Iconos */
.icono-circulo {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: var(--color-white);
  border: 5px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--color-white);
  z-index: 2;
}

.icono-circulo i {
  font-size: 2rem;
  color: var(--color-primary);
}

/* Texto dentro de cajas */
.caja-contenido h3 {
  font-size: 1.1rem;
  color: var(--color-white);
  margin: 4rem 0 1rem;
  text-align: center;
  line-height: 1.2;
}

.caja-contenido p {
  font-family: 'Abel', sans-serif;
  font-size: 1.2rem;
  color: var(--color-white);
  line-height: 1.2;
  text-align: center;
}

/* Botón principal */
.boton-saber-mas {
  text-align: center;
  margin: 3rem auto; /* Espacio equilibrado arriba/abajo */
  padding: 0 20px; /* Añadido para consistencia */
  position: relative;
  z-index: 3; /* Asegura visibilidad */
}

.btn-simple {
  font-family: 'Abel', sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  border: 2px solid transparent; /* Borde transparente por defecto */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-simple:hover {
  border-color: #1ddf61; /* Borde verde al pasar el cursor */
  transform: translateY(3px); /* Mismo efecto que el botón de portada */
  box-shadow: 0 4px 12px rgba(29, 223, 97, 0.3); /* Sombra verde */
}

/* Indicadores */
.indicadores-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.indicador {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.indicador:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.indicador i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.indicador-info {
  display: flex;
  flex-direction: column;
}

.indicador-titulo {
  font-size: 0.9rem;
  color: var(--color-text);
  opacity: 0.8;
}

.indicador-valor {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
}

.indicador-fecha {
  font-size: 0.8rem;
  color: var(--color-text);
  opacity: 0.7;
}

/* ===== RESPONSIVE MISIÓN Y VISIÓN OPTIMIZADO ===== */
@media (max-width: 768px) {
  .mision-vision {
    padding-top: 2.5rem;
    margin-top: 0rem; /* Subimos más en móviles */
  }

  .texto-principal {
    margin-top: -1rem; /* Subimos más el texto en móviles */
    margin-bottom: 0.5rem;
  }

  .texto-principal p {
    font-size: 1.2rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.2;
  }

  .contenido-cajas {
    grid-template-columns: 1fr;
    width: 95%;
    gap: 1;
    margin: 4rem auto;
  }

  .caja-contenido {
    padding: 1.5rem;
    transform: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 0;
  }

  .caja-contenido:hover {
    transform: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  }

  .icono-circulo {
    top: -30px;
    width: 70px;
    height: 70px;
  }

  .icono-circulo i {
    font-size: 1.8rem;
  }

  .caja-contenido h3 {
    font-size: 1.2rem;
    margin-top: 3rem;
  }

  .caja-contenido p {
    font-size: 1rem;
    line-height: 1.2;
  }

  .boton-saber-mas {
    margin: 1rem 0 2rem;
  }

  .btn-icono-dinamico {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .indicadores-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .indicador {
    padding: 0.8rem;
  }

  .indicador i {
    font-size: 1.2rem;
  }

  .indicador-titulo {
    font-size: 0.8rem;
  }

  .indicador-valor {
    font-size: 1rem;
  }

  .indicador-fecha {
    font-size: 0.7rem;
  }
}

/* ==================================================================================================================================================*/
/* ===== BANNER LLAMADO A LA ACCION =================================================================================================================*/
/* ==================================================================================================================================================*/

.banner-llamada-accion {
  background: var(--color-primary); /* Color sólido principal */
  padding: 4rem 0;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  position: relative;
}

/* Efecto de profundidad sutil */
.banner-llamada-accion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 75% 30%,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 40%
  );
  pointer-events: none;
}

.banner-contenido {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.texto-banner {
  text-align: center;
  margin-bottom: 1.5rem;
}

.banner-llamada-accion h2 {
  font-size: 2.5rem;
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
  margin: 0 auto;
  max-width: 1100px;
}

.banner-llamada-accion p {
  font-family: 'Abel', sans-serif;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  margin: 0 auto;
  max-width: 1100px;
}

/* Iconos con efecto invertido */
.iconos-horizontales {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .25rem 0;
}

.icono-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  justify-content: center; /* Nueva línea para alinear verticalmente */
  padding: 0.2rem; /* Padding interno reducido */
}

.icono-item i {
  font-size: 1.2rem;
  color: var(--color-primary);
  background: white;
  width: 45px;
  height: 45px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
  transition: all 0.3s ease;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.icono-item:hover i {
  color: white;
  background: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.icono-item span {
  font-size: 0.75rem;
  color: white;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* ===== RESPONSIVE BANNER LLAMADO A LA ACCIÓN OPTIMIZADO ===== */
@media (max-width: 1024px) {
  .banner-llamada-accion {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .banner-contenido {
    width: 90%;
  }

  .banner-llamada-accion h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    max-width: 100%;
    margin: 0 auto 1rem;
  }

  .banner-llamada-accion p {
    font-size: 1.3rem;
    line-height: 1.3;
    max-width: 100%;
    margin: 0 auto 1rem;
  }

  .iconos-horizontales {
    gap: 0.5rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .icono-item {
    min-width: 80px;
    padding: 0.2rem;
  }

  .icono-item i {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .icono-item span {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .banner-llamada-accion {
    padding: 2.5rem 1rem;
  }

  .banner-llamada-accion h2 {
    font-size: 2rem;
  }

  .banner-llamada-accion p {
    font-size: 1.2rem;
  }

  .icono-item {
    min-width: 70px;
  }

  .icono-item i {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .banner-contenido {
    width: 95%;
  }

  .banner-llamada-accion h2 {
    font-size: 1.8rem;
  }

  .banner-llamada-accion p {
    font-size: 1.1rem;
  }

  .iconos-horizontales {
    gap: 0.6rem;
  }

  .icono-item {
    min-width: 60px;
  }

  .icono-item i {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .icono-item span {
    font-size: 0.7rem;
  }
}

/* ==================================================================================================================================================*/
/* BANNER FINANCIERO RESPONSIVE Y CORREGIDO ========================================================================================================*/
/* ==================================================================================================================================================*/

.pizarra-bursatil {
  background: #112e58;
  padding: 2rem 0;
  margin: 4rem 0;
  font-family: 'Roboto Mono', monospace;
  overflow-x: hidden;
}

.pizarra-contenedor {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Fila de tasas e índices */
.fila-tasas,
.fila-indices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Estilos compartidos */
.item-tasa,
.item-indice {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.tasa-label,
.indice-label {
  display: block;
  font-size: 1.1rem;
  color: #a0aec0;
  margin-bottom: 0.5rem;
}

.tasa-valor {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1ddf61;
}

.indice-valor {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  display: block;
}

.indice-variacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

/* Flechas */
.variacion-icono {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.variacion-icono.positivo {
  border-bottom: 10px solid #1ddf61;
}

.variacion-icono.negativo {
  border-top: 10px solid #ff4d4d;
}

.variacion-porcentaje.positivo {
  color: #1ddf61;
}

.variacion-porcentaje.negativo {
  color: #ff4d4d;
}

/* ========== MEDIA QUERIES OPTIMIZADAS ========== */
@media (max-width: 992px) {
  .item-tasa,
  .item-indice {
    padding: 1.2rem;
  }

  .tasa-valor {
    font-size: 1.5rem;
  }

  .indice-valor {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .pizarra-contenedor {
    padding: 0 1rem;
  }

  .item-tasa,
  .item-indice {
    padding: 1rem;
  }

  .tasa-valor {
    font-size: 1.3rem;
  }

  .indice-valor {
    font-size: 1.1rem;
  }

  .indice-variacion {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .pizarra-contenedor {
    padding: 0 0.5rem;
  }

  .tasa-label,
  .indice-label {
    font-size: 1rem;
  }

  .tasa-valor {
    font-size: 1.2rem;
  }

  .indice-valor {
    font-size: 1rem;
  }

  .indice-variacion {
    font-size: 0.85rem;
    gap: 0.3rem;
  }
}

/* ==================================================================================================================================================*/
/* ===== BANNER DE LOGOS ACTUALIZADO =================================================================================================================*/
/* ==================================================================================================================================================*/

.moving-banner-logos {
  background: #e3e3e3 !important; /* Fuerza color azul cielo */
  padding: 1.3rem;
  overflow: hidden;
  position: relative; 
  margin: 0.5rem 0 2rem 0;
  top: 3.5rem; /* Levanta ligeramente el banner */
  z-index: 2; /* Mayor que elementos circundantes */
  margin-top: -5rem; /* Pegado superior */
  margin-bottom: 0; /* Elimina margen inferior */
}

.moving-banner-logos h2 {
  font-size: 2rem;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary); /* Título en color blanco */
  margin-bottom: 0rem;
  padding: 0 20px;
}

.logos-container {
  all: initial; /* Reset completo */
  display: flex; /* Aseguramos que los logos estén en fila */
  gap: 3rem;
  align-items: center;
  padding: 1rem 0;
  animation: moveLogos 120s linear infinite;
  will-change: transform; /* Optimización de animación */
}

.logos-container img {
  height: 170px; /* Ajustamos el tamaño de los logos */
  width: auto;
  object-fit: contain; /* Mejor visualización de los logos */
  opacity: 1; /* Aseguramos que los logos sean completamente visibles */
  filter: none !important;
  opacity: 1 !important;
}

/* Animación del banner */
@keyframes moveLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RESPONSIVE BANNER DE LOGOS (OPTIMIZADO) ===== */
@media (max-width: 768px) {
  .moving-banner-logos {
    margin: -3rem 0 1rem 0; /* Ajuste de margen superior e inferior en móviles */
    padding: 1rem;
  }

  .moving-banner-logos h2 {
    font-size: 1.6rem;
    line-height: 1.2;
    padding: 0 10px;
  }

  .logos-container {
    gap: 1.5rem;
    animation-duration: 30s; /* Animación más lenta para móviles */
  }

  .logos-container img {
    height: 80px;
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .moving-banner-logos {
    margin: -2rem 0 1rem 0;
    padding: 0.8rem;
  }

  .moving-banner-logos h2 {
    font-size: 1.4rem;
    line-height: 1.2;
    padding: 0 8px;
  }

  .logos-container {
    gap: 1rem;
    animation-duration: 25s; /* Un poco más lenta aún en pantallas pequeñas */
  }

  .logos-container img {
    height: 80px;
    max-width: 100px;
  }
}


/* ==================================================================================================================================================*/
/* ===== SECCIÓN SERVICIOS ===== *************************************************************************************************************========/
/* ==================================================================================================================================================*/
.servicios-dinamicos {
  width: 100%;
  min-height: 80vh;
  padding: 3rem 0 0.5rem;
  margin-bottom: -2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 2;
}

.servicios-dinamicos h2 {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.servicios-dinamicos p {
  font-family: 'Abel', sans-serif;
  color: var(--color-text);
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
  text-align: center;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 2rem;
  padding: 0 5% !important;
  box-sizing: border-box;
}

/* Filtros */
.filtro-sectores {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filtro-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--color-primary);
  border-radius: 30px;
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.filtro-btn.active {
  background: var(--color-primary);
  color: white;
}

/* Contenedor de servicios */
.servicios-sector {
  display: none;
  width: 100%;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-content: center;
}

.servicios-sector.active {
  display: grid;
}

/* Tarjetas de servicio */
.servicio-icono {
  flex: 1;
  min-height: 280px;
  padding: 2rem 1.5rem;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.servicio-icono i {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
}

.servicio-icono h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  padding: 0 0.5rem;
  transition: all 0.4s ease;
}

/* Tooltip hover */
.servicio-icono::after {
  content: attr(data-cta);
  font-family: 'Abel', sans-serif;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: var(--color-primary);
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Estados hover */
.servicio-icono:hover {
  background: white;
  border-color: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.servicio-icono:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.servicio-icono:hover i,
.servicio-icono:hover h4 {
  opacity: 0;
  transform: translateY(-20px);
}

/* Botón principal */
.boton-servicios {
  text-align: center;
  margin: 3rem 0 1rem;
  position: relative;
  z-index: 2;
}

.btn-servicios-economicos {
  display: inline-flex;
  align-items: center;
  padding: 1.1rem 3rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #14325a 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-family: 'Abel', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none !important;
  box-shadow: 0 5px 20px rgba(17, 46, 88, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn-servicios-economicos:hover {
  background: linear-gradient(135deg, #14325a 0%, var(--color-primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(29, 223, 97, 0.4);
  border-color: var(--color-accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .servicios-sector.active {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .8rem;
    padding: 0 20px;
  }
  
  .servicio-icono {
    min-height: 250px;
    padding: 1.5rem 1rem;
    margin-bottom: 0.5rem; /* Reducido de 1.5rem */
  }
}

@media (max-width: 768px) {
  .servicios-dinamicos {
    padding: 0 10px;
    overflow-x: hidden !important;
  }
  
  .servicios-dinamicos h2 {
    font-size: 2rem !important;
    line-height: 1.2;
    /* Mantenemos tu estilo original del título */
  }
  
  .servicios-dinamicos p {
    font-size: 1.2rem !important;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    /* Mantenemos tu estilo original del subtítulo */
  }

  .servicios-dinamicos .container {
    width: 100% !important;
    padding: 0 10px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  
  .servicios-sector.active {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    display: grid !important;
    justify-items: center !important;
    box-sizing: border-box !important;
    gap: 0.5rem; /* Reducido de .8rem */
  }

  .servicio-icono {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto 0.8rem !important; /* Reducido de 1.5rem */
    transform: none !important;
    left: 0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  }

  .servicio-icono::after {
    padding: 1rem !important;
    font-size: 1.4rem !important;
    overflow-y: auto !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }
  
  .btn-servicios-economicos {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .servicios-sector.active {
    gap: 0.4rem; /* Reducido de .8rem */
  }

  .servicio-icono {
    margin: 0 auto 0.6rem !important; /* Reducido de 1.2rem */
  }
}

/* Ajuste extra para pantallas muy pequeñas (ej. 375px) */
@media (max-width: 375px) {
  .servicio-icono {
    margin: 0 auto 0.5rem !important; /* Reducido de 0.7rem */
  }
}

/* ==================================================================================================================================================*/
/* ===== SECCIÓN LOGROS MEJORADA ====================================================================================================================*/
/* ==================================================================================================================================================*/

.logros-section {
  padding: 30px 0 60px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
  position: relative;
  margin-top: -60px;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin: 10px auto 2.5rem;
  padding: 10px 1rem 0;
}

.section-header h2 {
  font-size: 2rem;
  color: #112e58;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header .subtitle {
  font-family: 'Abel', sans-serif;
  font-size: 1.5rem;
  color: #4a5568;
  margin: 0 auto;
  line-height: 1.2;
  width: 100% !important;
  max-width: none !important;
}

.header-divider {
  display: none;
}

.logros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logro-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, opacity 0.3s;
  box-shadow: 0 12px 24px -6px rgba(17,46,88,0.1);
  border: 1px solid rgba(17,46,88,0.08);
}

.logro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(17,46,88,0.15);
}

.logro-grafico {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 1.5rem;
}

.logro-grafico canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.logro-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-primary);
  z-index: 3;
  text-align: center;
  width: 100%;
}

.logro-number span {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-left: 2px;
  display: inline-block;
}

.logro-card h3 {
  font-size: 1.2rem;
  color: #112e58;
  margin: 1rem 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.logro-card p {
  font-size: 1.1rem;
  font-family: 'Abel', sans-serif;
  color: #4a5568;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.logro-tendencia {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(0,204,102,0.1);
  color: #00cc66;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== SECCIÓN TIMELINE FINAL CORREGIDA ===== */
.timeline-container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px 0 60px !important;
  position: relative;
  background: transparent;
}

.timeline-header {
  text-align: center;
  padding-top: 0 !important;
}

.timeline-header h3 {
  font-size: 1.8rem;
  line-height: 1.2;
  color: #112e58;
}

.timeline-scroll {
  overflow-x: auto;
  padding: 0 80px;
  scroll-behavior: smooth;
  position: relative;
  background: transparent;
}

.timeline-scroll::-webkit-scrollbar {
  display: none;
}

.timeline-track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
  min-width: max-content;
  margin-left: 0;
  padding: 0;
  overflow: visible !important;
}

.timeline-track > .hito-card:first-child {
  margin-left: -30px;
}
.timeline-track > .hito-card:last-child {
  margin-right: -30px;
}

.hito-card {
  flex: 0 0 300px;
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(17,46,88,0.08);
  transition: all 0.3s;
  position: relative;
  opacity: 0.85;
  transform: scale(0.96);
  overflow: visible !important;
}

.hito-card.active {
  opacity: 1;
  transform: scale(1);
  background: #112e58;
  color: white;
  box-shadow: 0 8px 30px rgba(17,46,88,0.15);
}

.hito-card.active h4,
.hito-card.active p,
.hito-card.active span,
.hito-card.active li,
.hito-card.active .hito-content,
.hito-card.active .hito-list li {
  color: #ffffff !important;
}

.hito-card p,
.hito-card ul,
.hito-card li {
  font-family: 'Abel', sans-serif !important;
  line-height: 1.2;
  font-size: 1.3rem;
}

.hito-marcador {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background: #1ddf61;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #1ddf61;
  z-index: 2;
}

.hito-año {
  display: block;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: -30px;
}

.hito-titulo {
  display: block;
  font-size: 1.5rem;
  color: var(--font-primary);
  margin-top: -2px;
}

.hito-content h4 {
  margin-top: 45px !important;
  color: #112e58;
  line-height: 1.2;
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 600;
  text-align: center;
}

.hito-content p,
.hito-list li {
  font-family: "abel", sans-serif !important;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 15px;
  text-align: center;
}

.hito-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.hito-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #4a5568;
}

.hito-list li i {
  color: #1ddf61;
  font-size: 1rem;
}

.timeline-nav {
  position: absolute;
  top: 55%;
  left: -70px;
  right: -70px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.timeline-nav button {
  pointer-events: all;
  background: #112e58;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timeline-nav button:hover {
  background: #1ddf61;
  transform: scale(1.1);
}

.timeline-nav button i {
  color: white !important;
  font-size: 1.2rem;
}

/* ===== GRÁFICOS ===== */
#satisfaccionChart, 
#proyectosChart, 
#capitalChart,
#eficienciaChart, 
#alianzasChart, 
#fondosChart {
  width: 100% !important;
  height: 100% !important;
  padding: 10px !important;
}

/* ===== RESPONSIVE LOGROS Y TIMELINE ===== */
@media (max-width: 1024px) {
  /* === SECCIÓN LOGROS === */
  .logros-section {
    margin-top: -60px !important;    /* Elimina espacio blanco arriba */
    padding-top: 4px !important;    /* Ajuste interno para que no quede pegado */
  }

  .section-header h2 {
    width: 100%;
    text-align: center;
    padding: 0 10px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    line-height: 1.2;
  }

  .section-header .subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }

  .logros-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: -50px; /* Nuevo: sube las cajas hacia el título */
  }

  /* === TIMELINE === */
  .section-header {
    width: 100%;
    max-width: 100%; /* Asegura que no tenga limitación de ancho */
    margin: 0 auto !important;
    padding: 0 20px !important; /* Aumentado padding lateral */
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box; /* Incluye padding en el ancho total */
    margin-bottom: 3rem !important; /* Aumenta este valor */
    padding-bottom: 1rem !important; /* Espacio extra debajo */
  }

  .timeline-container {
    padding: 5px 0px 30px !important;
    width: 100%;
    margin-left: calc(-50vw + 50%); /* Centrado absoluto */
    left: 11.5%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px !important; /* Reduce el padding inferior del contenedor */
    background: transparent !important; /* Fondo transparente para heredar el color */
  }

  .timeline-header {
    width: 100%;
    max-width: 100%; /* Ocupa todo el ancho disponible */
    text-align: center;
    margin: -5px auto 8px; /* Centrado horizontal */
    padding: 0 20px; /* Aumentado padding lateral */
    box-sizing: border-box;
  }

  .timeline-header h3 {
    width: 100%;
    line-height: 1.2;
    max-width: calc(100% - 40px);
    text-align: center !important;
    padding: 0 20px;
    margin: 0 auto 2rem !important;
    font-size: 2rem; /* Tamaño ajustable */
    line-height: 1.2;
    box-sizing: border-box;
    display: block;
    position: relative;
    left: -6.5%; /* Compensación manual */
    width: max-content;
    margin: 2.5rem auto 2rem !important; /* Nuevo: empuja el título hacia abajo */
  }

  .timeline-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 5px 0 15px;
    position: static;
    transform: none;
    pointer-events: auto;
    position: relative;
    left: -6.5%; /* Mismo porcentaje que header */
  }

  .timeline-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  }

  .timeline-nav button:hover {
    background: var(--color-accent);
    transform: scale(1.05);
  }

  .timeline-scroll {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 15px 20px;
    -webkit-overflow-scrolling: touch;
    margin-bottom: -10px !important; /* Compensa cualquier margen residual */
  }

  .timeline-scroll::-webkit-scrollbar {
    display: none;
  }

  .timeline-track {
    display: flex;
    gap: 15px;
    padding: 0 45px;
    width: max-content;
    margin: 0 auto;
  }

  .hito-card {
    scroll-snap-align: center;
    width: calc(100vw - 60px);
    max-width: 400px;
    margin: 0 15px 0 9.5px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    transform: translateX(20px);
  }

  .timeline-track::after {
    content: '';
    min-width: 15px;
    height: 1px;
    flex-shrink: 0;
  }

  /* Ajuste para tablet (768px - 1024px) */
  @media (min-width: 768px) {
    .hito-card {
      width: calc(80vw - 60px);
      padding: 30px;
      margin: 0 20px 0 10px;
      transform: translateX(15px);
    }

    .section-header {
      padding: 0 30px !important;
    }

    .timeline-header {
      padding: 0 30px;
    }

    .timeline-header h3 {
    margin-bottom: 2.5rem !important; /* Más espacio en tablet */
    }

    .timeline-track {
      padding: 0 40px;
    }
  }
}

/* === MÓVILES PEQUEÑOS (480px o menos) === */
@media (max-width: 480px) {
  .logro-grafico {
    width: 150px;
    height: 150px;
  }

  .logro-number {
    font-size: 1.8rem;
  }

  .logro-number span {
    font-size: 1rem;
  }
}

/* ================================================================= */
/* SECCIÓN DE CONTACTO REDISEÑADA - PROFESIONAL Y ELEGANTE */
/* ================================================================= */

.contact-section {
  position: relative;
  padding: 80px 0;
  color: white;
  overflow: hidden;
  background: rgba(17, 47, 88, 0.32); /* Fondo sólido con opacidad */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#contact-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Video más oscuro */
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.contact-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  margin: 20px auto 0;
}

.contact-header p {
  font-family: 'Abel', sans-serif;
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Formulario de contacto */
.contact-form-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(29, 223, 97, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group label {
  position: absolute;
  left: 20px;
  top: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  pointer-events: none;
  font-family: 'Abel', sans-serif;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  background: var(--color-primary);
  padding: 0 8px;
  border-radius: 20px;
  color: white;
}

.submit-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  align-self: flex-start;
  box-shadow: 0 4px 15px rgba(29, 223, 97, 0.3);
}

.submit-btn:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(29, 223, 97, 0.4);
}

/* Información de contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

.contact-details {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  flex: 1;
}

.contact-details h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.contact-details h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--color-accent);
}

.contact-details p {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-family: 'Abel', sans-serif;
}

.contact-details i {
  font-size: 1.3rem;
  color: var(--color-accent);
  min-width: 25px;
  text-align: center;
}

.map-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  flex: 1;
}

#mexico-map {
  height: 300px;
  width: 100%;
  background: #f5f5f5;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-family: 'Abel', sans-serif;
}

.legend-color {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-grid {
    gap: 30px;
  }
  
  .contact-form-container,
  .contact-details,
  .map-container {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-header h2 {
    font-size: 2rem;
  }
  
  .contact-header p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .contact-form-container,
  .contact-details,
  .map-container {
    padding: 25px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
  }
  
  .submit-btn {
    width: 100%;
    padding: 14px;
  }
}

/* ===== Banner reflexion ================================================================================================================= */
.banner-reflexion {
  color: #ffffff;
  padding: 5px 20px 40px; /* antes era 50px 20px */
  text-align: center;
  font-family: 'Abel', sans-serif;
}

.banner-reflexion .banner-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 0px; /* añade un pequeño empuje para centrar mejor */
}

.frase-reflexiva {
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: #4a5568;
}

.frase-secundaria {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: #4a5568;
}

.btn-banner {
  background: #112e58;
  color: white;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Abel', sans-serif;
}

.btn-banner:hover {
  background: #1ddf61;
  color: #112e58;
}

/* ================================================================= */
/* FOOTER REDISEÑADO - ELEGANTE Y PROFESIONAL */
/* ================================================================= */

.footer {
  background: var(--color-primary);
  color: white;
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('img/footer-pattern.png') center/cover;
  opacity: 0.05;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-column {
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-about p {
  font-family: 'Abel', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.9;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Abel', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-links a::before {
  content: '→';
  color: var(--color-accent);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-info i {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-contact-info span {
  font-family: 'Abel', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

.footer-newsletter p {
  font-family: 'Abel', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px;
  font-family: 'Abel', sans-serif;
  font-size: 0.9rem;
}

.newsletter-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: white;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copyright {
  font-family: 'Abel', sans-serif;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 15px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Abel', sans-serif;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.footer-legal a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer {
    padding: 60px 0 30px;
  }
  
  .footer-container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-newsletter {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-newsletter {
    grid-column: span 1;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-title {
    margin-bottom: 20px;
  }
}