@media (max-width: 576px) {
  .proceso-nuestro {
    padding: 30px 5px;
  }
  .proceso-nuestro h2 {
    font-size: 2.1rem;
    margin-bottom: 12px;
    line-height: 1.1;
  }
  .proceso-nuestro p {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .contenedor-proceso {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .circulo-etapas {
    display: none !important;
  }
  .texto-etapas {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    text-align: center;
  }
  .lista-etapas {
    gap: 18px;
    margin: 0;
    padding: 0;
  }
  .item-etapa {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
    border-radius: 18px;
    padding: 12px 10px;
    font-size: 1rem;
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }
  .item-etapa [class^="contenido-etapa-"] {
    max-width: 100%;
    width: 100%;
    font-size: 1rem;
    margin: 0;
    border-radius: 10px;
    text-align: left;
    background: #00c8f8;
    color: #fff;
    padding: 10px 12px;
  }
  .item-etapa .check-animado {
    display: none !important;
  }
}
/* Optimización de rendimiento */
html {
  scroll-behavior: smooth;
}

/* === Estilos Generales === */
body {
  background: linear-gradient(to bottom, #fff 0%, #f5f7fa 10%, #e8ebf1 20%, #a7aad1 40%, #243389 70%, #004aad 100%);
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  transition: background 0.3s ease;
  will-change: background;
}


/* === Menú Principal === */
header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  gap: 800px;
  position: relative;
}

@media (max-width: 992px) {
  .container-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 10px 10px;
    background: white;
    position: relative;
    z-index: 1200;
  }

  header {
    background: white;
    z-index: 1200;
  }

  nav.menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 270px;
    height: 100%;
    background: #22336c;
    border-radius: 24px;
    margin: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    transition: left 0.3s ease;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    z-index: 1050;
  }
  nav.menu.open {
    left: 0;
  }
  .menu-toggle {
    color: #222;
    position: absolute;
    top: 24px;
    left: 8px;
    z-index: 1200;
    transition: color 0.3s, opacity 0.3s;
  }
  nav.menu.open ~ .menu-toggle {
    opacity: 0;
    pointer-events: none;
  }
}

.logo {
  height: 60px;
}

.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  position: absolute;
  left: 20px;
}

nav.menu {
  background: white;
}

nav.menu ul {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav.menu ul li {
  position: relative;
}

nav.menu li a {
  text-decoration: none;
  color: black;
  font-weight: 600;
  padding: 10px;
  display: block;
  transition: color 0.3s ease;
  font-size: 18px;
}

nav.menu li a:hover {
  color: #00bfff;
}

/* Submenús escritorio */
nav.menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 0;
  margin: 0;
  list-style: none;
  display: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 1000;
}

nav.menu li:hover > ul {
  display: block;
}

/* Separador debajo del menú */
.separador {
  width: 100%;
  height: 4px;
  background: #00bfff;
}

/* Menú Responsive */
@media (max-width: 992px) {
  .container-nav {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    margin-bottom: 10px;
  }

  .menu-toggle {
    display: block;
    z-index: 1100;
  }

  nav.menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 270px;
    height: 100%;
    background: #222;
    transition: left 0.3s ease;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 2px 0 12px rgba(0,0,0,0.4);
  }

  nav.menu.open {
    left: 0;
  }

  nav.menu ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  nav.menu ul li {
    width: 100%;
    text-align: left;
    position: relative;
  }

  nav.menu ul li a {
    color: #fff;
    padding: 15px 20px;
    font-size: 20px;
    border-bottom: 1px solid #444;
    background: none;
    display: flex;
    align-items: center;
    width: 100%;
  }

  nav.menu ul li a:hover {
    color: #00bfff;
    background: #222b;
  }

  nav.menu li.submenu > a::after {
    content: "▼";
    font-size: 14px;
    margin-left: auto;
    color: #ffffff;
  }

  /* Mostrar submenús solo si el padre tiene la clase open */
  nav.menu li.submenu ul {
    display: none !important;
    position: static;
    background: #333;
    box-shadow: none;
    min-width: 100%;
    padding-left: 20px;
    transition: max-height 0.3s;
    max-height: 0;
    overflow: hidden;
  }
  nav.menu li.submenu.open > ul {
    display: block !important;
    max-height: 500px;
    transition: max-height 0.3s;
  }
  nav.menu li.submenu ul li a {
    font-size: 18px;
    padding: 10px 30px;
    border-bottom: 1px solid #444;
    color: #fff;
    background: none;
  }
}

/* Botón Regresar */
.menu-header {
  display: none;
}

@media (max-width: 992px) {
  .menu-header {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    background: #222;
    padding: 10px 20px;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
  }

  .close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 1110;
  }
}


/* === Servicios === */
.servicios {
  padding: 60px 40px;
  /* background: linear-gradient(to bottom, #e8ebf1, #ffffff); */
  background: transparent;
  text-align: center;
}

.servicios h2 {
  font-size: 36px;
  color: #0a0a77;
  font-weight: 700;
  margin-bottom: 80px;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  justify-content: center;
  align-items: center;
}



.servicio {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
}

.circulo-icono {
  position: absolute;
  width: 80px;
  height: 80px;
  background: #5fa8dc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s;
}

.circulo-icono img {
  width: 40px;
  height: 40px;
}

.card-servicio {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #0a0a77;
  border-radius: 38px;
  width: 380px;
  height: 70px;
  padding-left: 110px;
  color: #ffffff;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.texto-servicio h3 {
  font-size: 14px;
  text-align: left;
  margin: 0;
  line-height: 1.2;
}

.servicio:hover .circulo-icono {
  transform: scale(1.1);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Tooltip como tarjeta */
.tooltip-pop {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(20, 20, 40, 0.97);
  color: #fff;
  padding: 28px 26px 22px 26px;
  border-radius: 22px;
  width: 280px;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,200,248,0.10);
  text-align: center;
  font-size: 15px;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servicio:hover .tooltip-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
  pointer-events: auto;
}

/* Flecha decorativa */
.tooltip-pop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 12px 0 12px;
  border-style: solid;
  border-color: rgba(20, 20, 40, 0.97) transparent transparent transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.tooltip-card img.tooltip-icono-grande {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px rgba(0,200,248,0.10));
}

.tooltip-card h4 {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #00c8f8;
}

.tooltip-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: #fff;
}

@media (max-width: 576px) {
  .tooltip-pop {
    background: #fff !important;
    color: #222 !important;
    border: 1.5px solid #cccccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    width: 98vw;
    max-width: 98vw;
    padding: 18px 6px 14px 6px;
    font-size: 15px;
  }
  .tooltip-pop::after {
    border-color: #fff transparent transparent transparent !important;
  }
  .tooltip-card img.tooltip-icono-grande {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }
  .tooltip-card h4 {
    font-size: 15px;
    color: #00c8f8 !important;
  }
  .tooltip-card p {
    color: #222 !important;
  }
}

.tooltip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}



/* === Tooltip visible (tablet/móvil) === */
.tooltip-visible {
  opacity: 1 !important;
  position: relative;
  transform: none !important;
  left: auto;
  bottom: auto;
  margin-top: 16px;
  background: #ffffff;
  color: #000000;
  border-radius: 10px;
  border: 1px solid #cccccc;
  font-size: 14px;
  padding: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}



/* Tablet: 2 columnas */
@media (max-width: 992px) {
  .grid-servicios {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Celular: 1 columna (1x8) */
@media (max-width: 576px) {
  .grid-servicios {
    grid-template-columns: 1fr !important;
  }

  .servicio {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
  }

  .circulo-icono {
    position: static;
    margin-bottom: 8px;
  }

  .card-servicio {
    padding-left: 0;
    justify-content: center;
    width: 100%;
    max-width: 260px;
    height: auto;
    min-height: 60px;
  }

  .texto-servicio h3 {
    text-align: center;
    font-size: 15px;
  }

  .tooltip-visible {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin-top: 10px;
  }

  .tooltip-icono {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }
}





/* === RANKING === */
/* === Ranking TOP 10 Sección === */
.ranking-top10 {
  /* background: linear-gradient(to bottom, #a7aad1, #243389); */
  background: transparent;
  padding: 60px 20px;
  color: #ffffff;
}

.ranking-top10-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.ranking-top10-texto {
  flex: 1 1 100%;
  text-align: center;
}

.ranking-top10-texto h2 {
  font-size: 80px;
  line-height: 1.2;
  margin-bottom: 30px;
}

.ranking-top10-texto h2 span {
  font-weight: bold;
}

.ranking-top10-texto h2 em {
  font-style: italic;
  font-weight: 300;
}

.ranking-top10-texto p {
  font-size: 22px;
  line-height: 1.5;
}

.ranking-top10-grid {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.ranking-top10-boton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid white;
  border-radius: 30px;
  padding: 10px;
  color: white;
  text-decoration: none;
  font-size: 10px;
  transition: 0.3s ease;
  text-align: center;
  min-height: 30px;
}

.ranking-top10-boton strong {
  font-size: 14px;
  display: block;
}

.ranking-top10-boton small {
  font-size: 10px;
  font-weight: 300;
}

.ranking-top10-boton:hover {
  background: white;
  color: #243389;
}

.ranking-top10-boton:hover small {
  color: #243389;
}

/* Desktop: texto a la izquierda y botones a la derecha */
@media (min-width: 992px) {
  .ranking-top10-container {
    flex-direction: row;
    text-align: left;
  }

  .ranking-top10-texto {
    flex: 1 1 45%;
  }

  .ranking-top10-grid {
    flex: 1 1 45%;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .ranking-top10-grid {
    grid-template-columns: 1fr;
  }
}

/* Celular: 2 columnas */
@media (max-width: 576px) {
  .ranking-top10-grid {
    grid-template-columns: 1fr;
  }
}






/* === PROCESO === */
.proceso {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.grid-proceso {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.paso {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* === QUIÉNES SOMOS === */
.quienes-somos {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

/* === PROBLEMÁTICAS SOCIALES === */
.problemas {
  padding: 60px 20px;
  background-color: #e9ecef;
  text-align: center;
}

/* === CONTACTO === */
.contacto {
  padding: 60px 20px;
  background-color: #004aad;
  color: white;
  text-align: center;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #32219C; /* Color de fondo (o transparente si quieres) */
  padding: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-top:hover {
  background: #00c8f8; /* Cambia a azul claro al pasar el mouse */
  transform: translateY(-5px);
}

/* === Responsive Slider === */
@media (max-width: 992px) {
  .slider-container {
    min-height: 300px;
    aspect-ratio: 16/9;
    max-height: 60vh;
  }
  .texto-slide h1 {
    font-size: 36px;
  }
  .texto-slide p {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .slider-container {
    min-height: 200px;
    aspect-ratio: 16/12;
    max-height: 50vh;
  }
  .texto-slide h1 {
    font-size: 28px;
  }
  .texto-slide p {
    font-size: 16px;
  }
  .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
  }
}


/* nuestros procesos */
/* nuestros procesos */
.proceso-nuestro {
  /* background: #004aad; */
  background: transparent;
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.proceso-nuestro h2 {
  font-size: 70px;
  font-weight: bold;
  margin-bottom: 10px;
}

.proceso-nuestro p {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.subtitulo-proceso {
  font-size: 14px;
  margin-bottom: 40px;
}

.contenedor-proceso {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
}

.circulo-etapas {
  width: 250px;
  height: 500px;
  border: 3px solid white;
  border-top-right-radius: 500px;
  border-bottom-right-radius: 500px;
  border-left: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 30px;
  position: relative;
  
}

.texto-etapas {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-weight: bold;
  font-size: 50px;
  margin-left: -200px;
}

.lista-etapas {
  display: flex;
  flex-direction: column;
  gap: 60px; /* Más espacio para alinear mejor */
  margin-left: 60px;
}

.item-etapa {
  display: flex;
  align-items: center;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s, color 0.3s;
  border-radius: 40px;
}

.item-etapa .check-animado {
  display: none;
  margin-left: 15px;
  font-size: 28px;
  color: #00c8f8;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
}

.item-etapa:hover {
  background: rgba(0,0,0,0.85);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
  color: #fff;
  font-size: 20px;
  text-align: left;
  max-width: 480px;
  width: 100%;
  transform: scale(1.03);
  border-radius: 40px;
}

.item-etapa:hover .check-animado {
  display: inline-block;
  opacity: 1;
  transform: scale(1);
}

.item-etapa:hover [class^="contenido-etapa-"] {
  background: transparent;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}

.contenido-etapa-1,
.contenido-etapa-2,
.contenido-etapa-3,
.contenido-etapa-4,
.contenido-etapa-5 {
  background: #00c8f8;
  padding: 15px 25px;
  border-radius: 50px;
  color: white;
  font-size: 20px;
  text-align: left;
  max-width: 450px;
  width: 100%;
}

.numero-circulo {
  width: 30px;
  height: 30px;
  background: white;
  color: #32219C;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linea-horizontal {
  width: 40px;
  height: 2px;
  background: white;
  margin-left: 5px;
}

/* RESPONSIVE para tablets y móviles */
@media (max-width: 1024px) {
  .contenedor-proceso {
    flex-direction: column;
    align-items: center;
  }

  .circulo-etapas {
    display: none;
  }

  .numero-circulo,
  .linea-horizontal,
  .numero-linea-1,
  .numero-linea-2,
  .numero-linea-3,
  .numero-linea-4,
  .numero-linea-5 {
    display: none;
  }

  .item-etapa {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin-bottom: 20px;
    border-radius: 30px;
    padding: 10px 0;
  }

  .item-etapa [class^="contenido-etapa-"] {
    max-width: 90%;
    width: 90%;
    font-size: 16px;
    margin: 10px 0;
    border-radius: 20px;
    text-align: center;
    margin-left: 0;
  }

  .texto-etapas {
    font-size: 32px;
    margin-left: 0;
    margin-bottom: 20px;
  }
}

/* Separar más los números de las etapas */
.numero-linea-1,
.numero-linea-2,
.numero-linea-3,
.numero-linea-4,
.numero-linea-5 {
  display: flex;
  align-items: center;
  margin-right: 35px; /* antes 15px */
}

/* Hover mejorado para item-etapa */
.item-etapa {
  display: flex;
  align-items: center;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s, color 0.3s;
  border-radius: 40px;
}

.item-etapa:hover {
  background: rgba(0,0,0,0.85);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
  color: #fff;
  font-size: 20px;
  text-align: left;
  max-width: 480px;
  width: 100%;
  transform: scale(1.03);
  border-radius: 40px;
}

.item-etapa:hover [class^="contenido-etapa-"] {
  background: transparent;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}

.item-etapa .check-animado {
  display: none;
  margin-left: 15px;
  font-size: 28px;
  color: #00c8f8;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
}

.item-etapa:hover .check-animado {
  display: inline-block;
  opacity: 1;
  transform: scale(1);
}

/* Ocultar número y raya al hacer hover en item-etapa */
.item-etapa:hover .numero-linea-1,
.item-etapa:hover .numero-linea-2,
.item-etapa:hover .numero-linea-3,
.item-etapa:hover .numero-linea-4,
.item-etapa:hover .numero-linea-5 {
  opacity: 0;
  transition: opacity 0.2s;
}

/* Centrar el texto cuando se oculta el número y la raya en hover */
.item-etapa:hover {
  justify-content: center;
}
.item-etapa:hover [class^="contenido-etapa-"] {
  text-align: center;
  margin-left: 0;
}

@media (max-width: 1024px) {
  .item-etapa .check-animado {
    display: none !important;
  }
}




/*contactenos*/
.quienes-somos {
  background: #bdbdbd;
  padding: 80px 20px;
  color: white;
  text-align: center;
}

.contenido-contacto {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

.info-contacto {
  flex: 1 1 50%;
  text-align: left;
  padding: 40px;
  box-sizing: border-box;
}

.info-contacto h2 {
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 50px;
}

.item-contacto {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.icono-contacto {
  width: 50px;
  margin-right: 20px;
}

.item-contacto p {
  font-size: 26px;
  color: white;
  margin: 0;
}

.mapa-contacto {
  flex: 1 1 50%;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.mapa-contacto iframe {
  width: 100%; /* ✅ que ocupe toda su columna */
  height: 500px;
  border-radius: 20px;
}

.boton-waze {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.boton-waze a {
  background: #00b3ff;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.boton-waze img {
  width: 30px;
}

/* ✅ RESPONSIVE para móviles */
@media (max-width: 1024px) {
  .contenido-contacto {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .info-contacto {
    flex: 1 1 100%;
    text-align: center;
    padding: 20px;
  }

  .info-contacto h2 {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .item-contacto {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .icono-contacto {
    width: 40px;
    margin-bottom: 10px;
    margin-right: 0;
  }

  .item-contacto p {
    font-size: 18px;
    text-align: center;
  }

  .mapa-contacto {
    flex: 1 1 100%;
    padding: 20px 0;
  }

  .mapa-contacto iframe {
    width: 90%;
    height: 300px;
  }

  .boton-waze {
    margin-top: 20px;
  }

  .boton-waze a {
    font-size: 18px;
    padding: 10px 18px;
  }

  .boton-waze img {
    width: 25px;
  }
}


  /* Modal fondo oscuro */
  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.6); /* gris translúcido */
    justify-content: center;
    align-items: center;
  }

  /* Contenedor del visor */
  .modal-contenido {
    width: 90%;
    max-width: 1000px;
    height: 90%;
    background: transparent;
    display: flex;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    border-radius: 8px;
  }

  /* Visor PDF fullscreen */
  .modal-contenido iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
  }

  @media (max-width: 768px) {
    .modal-contenido {
      width: 95%;
      height: 90%;
    }
  }

  /* mostrar el pdf el estilo */


  /* Estilo del fondo oscuro del popup */
.pdf-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center; justify-content: center;
  z-index: 1000;
}

/* Caja del PDF */
.pdf-modal {
  background: #fff;
  border-radius: 10px;
  width: 90%; height: 90%;
  max-width: 900px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: fadeIn .3s ease;
  overflow: hidden;
}

.pdf-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-modal-close {
  position: absolute;
  top: 10px; right: 15px;
  cursor: pointer;
  font-size: 30px;
  color: #888;
  z-index: 1001;
}

.pdf-modal-close:hover {
  color: #000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9);}
  to { opacity: 1; transform: scale(1);}
}

.degradado-seccion {
  display: none !important;
}

@media (max-width: 992px) {
  nav.menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 270px;
    height: 100%;
    background: #22336c;
    border-radius: 24px;
    margin: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    transition: left 0.3s ease;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    z-index: 1050;
  }
  nav.menu.open {
    left: 0;
  }
  .menu-toggle {
    color: #222;
    position: absolute;
    top: 24px;
    left: 8px;
    z-index: 1200;
    transition: color 0.3s, opacity 0.3s;
  }
  nav.menu.open ~ .menu-toggle {
    opacity: 0;
    pointer-events: none;
  }
  nav.menu ul li a {
    color: #fff;
    border-bottom: 2px solid #fff;
    background: none;
    font-size: 22px;
    font-weight: bold;
    border-radius: 0;
  }
  nav.menu ul li:last-child a {
    border-bottom: none;
  }
  nav.menu li.submenu ul {
    background: #fff;
    border-radius: 0 0 24px 24px;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
  nav.menu li.submenu ul li a {
    color: #22336c;
    background: none;
    border-bottom: 2px solid #22336c;
    font-size: 20px;
    font-weight: bold;
    border-radius: 0;
  }
  nav.menu li.submenu ul li:last-child a {
    border-bottom: none;
  }
  nav.menu {
    border-radius: 0 24px 24px 0;
  }
  nav.menu li.submenu ul {
    border-radius: 0 0 24px 0;
  }
}

/* Estilos para Modal Bootstrap PDF - Visor Integrado */
.modal-xl {
  max-width: 95%;
}

.modal-fullscreen-lg-down {
  max-width: 100%;
}

#pdfContainer {
  position: relative;
  overflow: hidden;
}

#pdfIframe {
  transition: transform 0.3s ease;
  transform-origin: top left;
}

#loadingSpinner {
  z-index: 1050;
}

.modal-header .btn-group {
  gap: 0.25rem;
}

.modal-footer .btn-group {
  gap: 0.25rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .modal-xl {
    max-width: 98%;
    margin: 10px;
  }
  
  .modal-dialog {
    margin: 10px;
  }
  
  .modal-body {
    padding: 0;
  }
  
  #pdfIframe {
    height: 70vh !important;
    min-height: 400px;
  }
  
  .modal-footer .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .modal-footer .btn-group {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .modal-xl {
    max-width: 100%;
    margin: 5px;
  }
  
  .modal-dialog {
    margin: 5px;
  }
  
  #pdfIframe {
    height: 60vh !important;
    min-height: 300px;
  }
  
  .modal-header {
    padding: 10px 15px;
  }
  
  .modal-footer {
    padding: 10px 15px;
  }
  
  .modal-footer .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Mejoras para iPhone */
@supports (padding: max(0px)) {
  .modal-xl {
    padding-left: max(5px, env(safe-area-inset-left));
    padding-right: max(5px, env(safe-area-inset-right));
  }
}

/* Animaciones suaves */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

/* Estilos para botones de control */
.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Optimizaciones para evitar warnings */
.modal {
  /* Evitar problemas de aria-hidden */
  will-change: opacity;
}

.modal.fade .modal-dialog {
  /* Optimización de GPU */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Optimización de fuentes */
body {
  font-display: swap;
  font-family: 'Roboto', 'Arial', sans-serif;
}

/* Optimización de iframe */
#pdfIframe {
  /* Evitar problemas de event listeners */
  pointer-events: auto;
  /* Optimización de GPU */
  transform: translateZ(0);
  will-change: transform;
}

/* Optimización de scroll */
html {
  scroll-behavior: smooth;
  /* Evitar warnings de event listeners no pasivos */
  overscroll-behavior: contain;
}

/* Optimización de performance */
* {
  /* Optimización de GPU para animaciones */
  backface-visibility: hidden;
}

.circulo-icono {
  width: 80px;
  height: 80px;
}

.circulo-icono img {
  width: 40px;
  height: 40px;
}

.texto-servicio h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

/* ========== SLIDER (único) ========== */

/* Contenedor principal */
.slider-container{
  position:relative;
  width:100%;
  aspect-ratio:15/4;          /* proporción igual al banner adjunto */
  min-height:220px;           /* piso en pantallas pequeñas */
  max-height:70vh;            /* tope visual */
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;            /* fondo blanco tras la imagen */
}

/* Slides con fade real (sin display:none) */
.slide{
  position:absolute; inset:0;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .8s ease, visibility 0s linear .8s;
  display:flex; align-items:center; justify-content:center;
  will-change:opacity;
}
.slide.active{
  opacity:1; visibility:visible; pointer-events:auto;
  transition:opacity .8s ease, visibility 0s;
}

/* Imagen dentro de cada slide */
.slide-image{
  width:100%; height:100%;
  object-fit:cover;           /* llena el contenedor manteniendo proporción */
  object-position:center;
  display:block;
  filter:brightness(.98);
  backface-visibility:hidden;
  transform:translateZ(0);
}

/* Botón CTA por slide: usa variables para posicionarlo en desktop/tablet */
.slide .btn-cta{
  position:absolute;
  left:var(--cta-left, 50%);      /* 0% izq → 100% der */
  top: var(--cta-top,  70%);      /* 0% arriba → 100% abajo */
  transform:translate(-50%, -50%);
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem;
  padding:12px 28px;
  border-radius:999px;
  background:#0b47a9;
  color:#fff; text-decoration:none; font-weight:700;
  border:2px solid #fff;          /* aro blanco tipo banner */
  letter-spacing:.5px;
  box-shadow:0 12px 28px rgba(0,0,0,.25);
  transition:transform .15s ease, box-shadow .15s ease, background-color .2s;
  white-space:nowrap; z-index:6;
}
.slide .btn-cta:hover{ transform:translate(-50%,-50%) scale(1.03); background:#0d54c7; }
.slide .btn-cta:active{ transform:translate(-50%,-50%) scale(.98); }
.slide .btn-cta:focus-visible{ outline:4px solid #60a5fa; outline-offset:2px; }

/* Flechas */
.arrow{
  position:absolute; z-index:5; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:9999px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.88);
  color:#cfd1d4; border:1px solid rgb(243, 242, 242);
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  backdrop-filter:saturate(1.2) blur(4px);
  transition:transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  cursor:pointer;
}
.arrow svg{ width:20px; height:20px; }
.arrow-left { left:clamp(8px, 2vw, 24px); }
.arrow-right{ right:clamp(8px, 2vw, 24px); }
.arrow:hover{ background:#fff; transform:translateY(-50%) scale(1.05); box-shadow:0 10px 24px rgba(0,0,0,.22); }
.arrow:active{ transform:translateY(-50%) scale(.96); }
.arrow:focus-visible{ outline:4px solid #60a5fa; outline-offset:2px; }
.arrow[disabled]{ opacity:.45; cursor:not-allowed; box-shadow:none; }
.arrow::after{ content:""; position:absolute; inset:-8px; } /* hitbox mayor */

/* Gradientes laterales sutiles para contraste (opcional) */
.slider-container::before,
.slider-container::after{
  content:""; position:absolute; top:0; bottom:0; width:120px; z-index:4; pointer-events:none;
}
.slider-container::before{ left:0;  background:linear-gradient(to right, rgba(0,0,0,.25), rgba(0,0,0,0)); }
.slider-container::after { right:0; background:linear-gradient(to left,  rgba(0,0,0,.25), rgba(0,0,0,0)); }

/* ===== Responsivo ===== */
@media (max-width: 992px){                 /* tablet */
  .slider-container{ min-height:200px; max-height:60vh; }
}

/* móvil: centra el CTA abajo para que no tape el arte; puedes afinar con --cta-left-m/--cta-bottom-m */
@media (max-width: 576px){
  .slider-container{ aspect-ratio:16/10; min-height:230px; max-height:50vh; }
  .slide .btn-cta{
    left: var(--cta-left-m, 50%) !important;
    top:auto !important;
    bottom: var(--cta-bottom-m, max(14px, env(safe-area-inset-bottom))) !important;
    transform:translateX(-50%) !important;
    font-size:14px; padding:10px 18px;
    max-width:calc(100% - 32px);
  }
  .arrow{ display:none; }  /* si prefieres verlas, borra esta línea */
  .slider-container::before, .slider-container::after{ width:80px; }
}

/* Dark mode opcional para flechas */
@media (prefers-color-scheme: dark){
  .arrow{ background:rgba(17,24,39,.7); color:#e5e7eb; border-color:rgba(255,255,255,.1); }
  .arrow:hover{ background:rgba(17,24,39,.9); }
}

/* Respeta usuarios con reducción de motion */
@media (prefers-reduced-motion: reduce){
  .slide, .slide.active{ transition:none !important; }
}
