/* --- 1. NAV principal --- */
  nav {
   background-color: orange;
    padding: 30px 20px;
    display: flex; /*active flexbox*/
    justify-content: space-between;/*Coloca los elementos (botón y menú) a los extremos del nav. */
    align-items: right;
    position: relative; /* posiciona los elementos del menu segun el nav */
  }

  /* --- 2. BOTÓN TOGGLER --- */
  .toggler {
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    z-index: 2; /* Asegura que esté encima del menú al desplegarlo */
  }

  /* --- 3. MENÚ OCULTO POR DEFECTO --- */
  .menu {
    list-style: none;/*quita el tipo de lista*/
    padding: 0;
    margin: 0;
    position: absolute; /*Hace que el menú se posicione respecto al nav*/
    top: 90px;/*Coloca el menú justo debajo del nav*/
    left: 0;
    width: 100%;
    background-color:orangered;
    flex-direction: column;/*Organiza los elementos uno debajo del otro (vertical).*/
    align-items: left;
    gap: 10px;/* Espacio entre cada opción (li).*/
    z-index: 999;
    
    /* ANIMACIÓN: inicia oculto */
    max-height: 0; /* Lo “aplasta” para que esté cerrado inicialmente.*/
    overflow: hidden; /*Oculta el contenido que sobrepasa el alto*/
    opacity: 0; /*Lo vuelve invisible mientras está cerrado.*/
    transition: all 0.4s ease; /* Duración y suavidad */
  }

  /* --- 4. MENÚ ACTIVO (VISIBLE) --- */
  .menu.active {
    max-height: 450px; /* Altura máxima del contenido visible */
    opacity: 1;
  }

  /* --- 5. ESTILO DE LOS ELEMENTOS DEL MENÚ --- */
  .menu li {
    color: rgb(0, 0, 0);
    padding: 10px 0;
    width: 100%;
    text-align: center;

  }

  /* --- 6. VERSIÓN ESCRITORIO --- */
  @media (min-width: 768px) {
    .toggler {
      display: none;
    }
    .menu {
      position: static;
      display: flex;
      flex-direction: row;
      max-height: none; /* Desactiva animación */
      opacity: 1;
      background: none;
      gap: 20px;
      width: auto;
    }
    .menu li {
      border: none;
    }
  }
  
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slider-text {
  font-size: 7vh;
  color: white;
  text-align: center;
  line-height: 1.3;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

/* Botón */
.btn-discover {
  display: inline-block;
  margin-top: 30px;
  background-color: #ff4d00;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-discover:hover {
  background-color: #e34300;
  transform: translateY(-3px);
}

/* Controles */
.controls {
  position: absolute;
  bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 10;
}

.controls span {
  cursor: pointer;
  font-size: 40px;
  color: white;

}

/* === AJUSTE PARA PANTALLAS PEQUEÑAS === */
@media screen and (max-width: 768px) {

  /* reduce altura general */
  .slider {
    height: 65vh;
  }

  .slide {
    height: 65vh;
  }

  /* elimina márgenes <br> */
  .slide table {
    width: 100%;
  }

  .slide td {
    width: 100% !important;
    padding: 20px 15px;
  }

  /* texto más pequeño y centrado */
  .slider-text {
    font-size: 4.5vh !important;
    text-align: center !important;
    padding: 0 20px;
  }

  /* botón más compacto */
  .btn-discover {
    font-size: 0.5rem;
   height: 52px;
    margin-top: 15px;
  }

  /* ajusta las flechas */
  .controls {
    bottom: 10px;
    padding: 0 15px;
  }

  .controls span {
    font-size: 30px;
  }

  /* elimina <br> repetidos si los tienes */
  br {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .espacio-arriba {
    margin-top: 100px;
  }
}

@media screen and (max-width: 768px) {
  .espacio-arriba-2 {
    margin-top: 60px;
  }
}
@media screen and (max-width: 768px) {
  .espacio-arriba-3 {
    margin-top: 40px;
  }
}

    /*  Control del tamaño general del carrusel */
  #carouselExampleFade {
    height: 85vh;
    max-width: 100%;      /* ancho máximo en PC */
    width: 100%;           /* se adapta al ancho de la pantalla */
    margin: 0 auto;        /* centra el carrusel */
  }

  /*  Control de altura adaptable */
  #carouselExampleFade img {
    width: 100%;
    height: 85vh;          /* altura dinámica = 50% de la altura de la pantalla */
    object-fit: cover;     /* evita deformaciones */
   

  }

  /*  En pantallas pequeñas (celulares) */
  @media (max-width: 768px) {
    #carouselExampleFade img {
      height: 32vh;        /* más pequeño en celulares */
    }
  }
  .bg-color{
    background-color: rgb(248, 248, 248);
  }

  .lista-servicios {
  list-style: none;         /* Quita los puntos normales */
  padding: 0;
  margin: 0;
}

.lista-servicios li {
  display: flex;            /* Alinea imagen + texto */
  align-items: center;      /* Centra verticalmente */
  background: url('type_li.png') no-repeat left center;
  background-size: 3vh ; /* Tamaño del icono */
  padding-left: 30px;       /* Espacio para el icono */
  margin-bottom: 12px;      /* Espaciado entre elementos */
}

.lista-servicios a {
  color: black;
  text-decoration: none;
  padding: 5px;
  transition: color 0.3s;
}

.bg-div {
  background-image: url('img_1.png');
  height: 80vh;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* hace que la imagen llene todo */
}

.bg-color-foot{

    background-color: #ffc408;
}

#marg{
    border-radius: 100px;
}

#marg-2{
    border-radius: 0;
}

 a.texto-2{
        color: rgb(255, 255, 255);
        font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease; /* animación suave */
    }
   .texto-2:hover {
  color: rgb(0, 0, 0);            /* color al pasar el cursor */
}

.slider-text{
        font-size: 9vh;
    }

.btn-outline-warning{
    background-color: rgb(2, 2, 77);
}

.bg-div-2{
    background-color: rgb(247, 247, 247);
}

.service{
    font-size: 10vh;
}

.service-cont{
  font-size: 7vh;
}

body {

  background-color: #fff;
  margin: 0;
  padding: 0;
}

.servicios {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.servicios h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.servicio-card {
  background-color: #f5f5f5;
  width: 300px;
  padding: 40px 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.servicio-card .icono {
  font-size: 2rem;
  margin-bottom: 20px;
}

.servicio-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.servicio-card p {
  color: gray;
  margin-bottom: 30px;
}

.servicio-card .arrow {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: inherit;
}

/* Efecto hover */
.servicio-card:hover,
.servicio-card.active {
  background-image: url("Servicios/imgs_cards/fondo_card.png");
  background-size: cover;       /* ajusta la imagen */
  background-position: center;  /* centra la imagen */
  background-repeat: no-repeat; /* evita repeticiones */
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.servicio-card:hover .arrow,
.servicio-card.active .arrow {
  color: rgb(255, 255, 255);
}

.bg-body {
  background-image: url("Servicios/fondo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 📱 Fondo para teléfonos */
@media (max-width: 768px) {
  .bg-body {
    background-image: url("Servicios/fondo_tel.png");
    height: 100vh;
    background-size: cover;
    background-position: center;
  }
}

.bg-body-2{
    background-color: rgb(247, 247, 247) ;
}

.bg-body-pqn{
    background-image: url(Por_que_tasfal/banner.png);
    background-position: top ;
    background-repeat: no-repeat;
    width: 100%;
    height: 97vh;
    background-size: cover;    
}

a.texto-c{
        color: rgb(255, 255, 255);
        font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease; /* animación suave */
    }

    .bg-div-3{
    background-color: rgb(255, 255, 255);
}


.banner {
  background-image: url(Servicios/serv_1/banner.png);
    width: 100%;
    height: 100vh;    
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* 📱 Fondo para teléfonos */
@media (max-width: 768px) {
  .banner {
    background-image: url("Servicios/serv_1/banner.png");
    height: 100vh;
    background-size: cover;
    background-position: center;
  }
}

.banner-2 {
  background-image: url(Servicios/serv_1/banner_2.png);
    width: 100%;
    height: 100vh;    
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* 📱 Fondo para teléfonos */
@media (max-width: 768px) {
  .banner-2 {
    background-image: url("Servicios/serv_1/banner_2.png");
    height: 100vh;
    background-size: cover;
    background-position: center;
  }
}

.banner-3 {
  background-image: url(Servicios/serv_1/banner_3.png);
    width: 100%;
    height: 100vh;    
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Fondo para teléfonos */
@media (max-width: 768px) {
  .banner-3 {
    background-image: url("Servicios/serv_1/banner_3.png");
    height: 100vh;
    background-size: cover;
    background-position: center;
  }
}

.banner-4 {
  background-image: url(Servicios/serv_1/banner_4.png);
    width: 100%;
    height: 100vh;    
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* 📱 Fondo para teléfonos */
@media (max-width: 768px) {
  .banner-4 {
    background-image: url("Servicios/serv_1/banner_4.png");
    height: 100vh;
    background-size: cover;
    background-position: center;
  }
}

.banner-contacto{
    background-image: url(Contacto/banner.png);
    width: 100%;
    height: 135vh;    
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; 
}


.bg-transparent {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.bg-nav {
  background-color: transparent;
  transition: background-color 0.4s ease, color 0.4s ease;
  padding: 20px 0;
  z-index: 1000;
}

/* Color del texto por defecto (cuando está transparente) */
.bg-nav .texto {
  color: #D3D3D3;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.4s ease;
}

/* Cambia el fondo y el color de texto al hacer scroll */
.bg-nav.scrolled {
  background-color: #ff6600; /* anaranjado */
}

/* Cambia el color de las letras al hacer scroll */
.bg-nav.scrolled .texto {
  color: #000000;
  font-weight: bold;
}

@-webkit-keyframes rotate-in-2-cw {
  0% {
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
    opacity: 1;
  }
}
@keyframes rotate-in-2-cw {
  0% {
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
    opacity: 1;
  }
}

.rotate-in-2-cw {
	-webkit-animation: rotate-in-2-cw 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: rotate-in-2-cw 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-in-bck-center {
  0% {
    -webkit-transform: translateZ(600px);
            transform: translateZ(600px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
}
@keyframes slide-in-bck-center {
  0% {
    -webkit-transform: translateZ(600px);
            transform: translateZ(600px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
}



.slide-in-bck-center {
	-webkit-animation: slide-in-bck-center 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: slide-in-bck-center 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
a.texto-n{
        color: #000000;
  text-decoration: none;
  transition: 0.3s;
    }

.texto-n:hover{
        color: orange;
  text-decoration: none;
    }

    .texto-n-2{
        color: #000000;
  text-decoration: none;
  transition: 0.3s;
    }

.texto-n-2:hover{
        color: rgb(250, 250, 250);
  text-decoration: none;
    }


    .hr-color{
      color: black;
    }

    

    .img-circle {
  animation: flotar 3s ease-in-out infinite;
}

@keyframes flotar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animated-title {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.animated-text {
  text-align: justify;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* Estado visible al hacer scroll */
.show {
  opacity: 1;
  transform: translateY(0);
}

.dual-image-section {
  position: relative;
  width: 100%;
  height: auto;
  padding: 120px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenedor principal */
.image-container {
  position: relative;
  width: 800px;
  max-width: 95%;
}

/* Fondo naranja detrás del conjunto */
.image-container::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Imagen superior izquierda */
.image-top {
  position: relative;
  z-index: 1;
  width: 70%;
}

.image-top img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Imagen inferior derecha (encima) */
.image-bottom {
  position: absolute;
  bottom: -120px;
  right: -100px;
  z-index: 2;
  width: 70%;
}

.image-bottom img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Responsivo */
@media (max-width: 768px) {
  .dual-image-section {
    padding: 80px 0;
  }

  .image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .image-container::before {
    display: none;
  }

  .image-top,
  .image-bottom {
    position: relative;
    width: 90%;
    right: 0;
    bottom: 0;
    margin-bottom: 30px;
  }
}

.btn-discover {
  display: inline-block;
  background-color: #ff4d00; /* Naranja */
  color: #ffffff; /* Texto blanco */
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  position: relative;
}

.btn-discover .dash {
  margin-right: 10px;
  font-weight: 400;
}

.btn-discover:hover {
  background-color: #e34300; /* tono más oscuro al pasar el cursor */
  transform: translateY(-3px); /* leve elevación */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.flote {
  animation: flotar 3s ease-in-out infinite;
}

@keyframes flotar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.counter-box {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    min-width: 160px;
  }

  .counter {
    display: block;
    font-size: 3rem;
    color: #ff4d00;
    margin-bottom: 10px;
    transition: all 0.3s ease;
  }

  .counter-box p {
    margin: 0;
    font-size: 1rem;
    color: #ccc;
  }

.bg-div-conts {
  background-image: url("Nosotros/fondo_contadores.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Imagen de fondo diferente para pantallas pequeñas */
@media (max-width: 768px) {
  .bg-div-conts {
    background-image: url("Nosotros/fondo_contadores_movil.png");
    width: 100%;
    background-size: cover;
    background-position: center;
  }
}

/* Contenedor que agrupa imagen + número */
.stat-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  text-align: left;
  margin-bottom: 40px;
}

/* Imagen de icono */
.stat-icon {
  width: 60px;   /* ajusta el tamaño de la imagen */
  height: auto;
  border-radius: 10px; /* opcional, redondea esquinas */
}

/* Estilo del número */
.stat-item h2 {
  margin: 0;
  font-size: 2.5rem;
  color: black;
  font-weight: bold;
}

  .timeline {
      position: relative;
      max-width: 800px;
      margin: 0 auto;
    }

    /* Línea central */
    .timeline::after {
      content: '';
      position: absolute;
      width: 4px;
      background-color: #ff4d00;
      top: 0;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
    }

    /* Contenedor del evento */
    .timeline-container {
      padding: 20px 40px;
      position: relative;
      width: 50%;
    }

    /* Alinear alternadamente izquierda/derecha */
    .timeline-container.left {
      left: 0;
    }

    .timeline-container.right {
      left: 50%;
    }

    /* Tarjeta del evento */
    .content {
      padding: 20px;
      background-color: #fff;
      position: relative;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Circulito marcador */
    .timeline-container::before {
      content: '';
      position: absolute;
      width: 18px;
      height: 18px;
      right: -9px;
      background-color: #ff4d00;
      border-radius: 50%;
      top: 25px;
      z-index: 1;
    }

    .timeline-container.right::before {
      left: -9px;
    }

    /* Animación sutil */
    .content:hover {
      transform: scale(1.03);
      transition: all 0.3s ease;
    }

    /* Responsivo */
    @media screen and (max-width: 768px) {
      .timeline::after {
        left: 20px;
      }

      .timeline-container {
        width: 100%;
        padding-left: 60px;
        padding-right: 25px;
      }

      .timeline-container.right {
        left: 0;
      }

      .timeline-container::before {
        left: 15px;
      }
    }



    /* Contenedor general */
  .linea-proceso {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
  }

  /* Línea vertical central */
  .linea-proceso::after {
    content: '';
    position: absolute;
    width: 5px;
    background-color: #ff4d00;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Bloques de contenido */
  .bloque-proceso {
    position: relative;
    width: 50%;
    padding: 30px 40px;
    box-sizing: border-box;
  }

  /* Lados */
  .bloque-proceso.izquierda {
    left: 0;
  }

  .bloque-proceso.derecha {
    left: 50%;
  }

  /* Tarjetas */
  .card-proceso {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
  }

  .card-proceso:hover {
    transform: scale(1.03);
  }

  /* Puntos perfectamente centrados */
  .bloque-proceso::before {
    content: '';
    position: absolute;
    top: 35px;
    width: 22px;
    height: 22px;
    background-color: #ff4d00;
    border-radius: 50%;
    z-index: 2;
  }

  .bloque-proceso.izquierda::before {
    right: -11px; /* mitad del tamaño del punto */
  }

  .bloque-proceso.derecha::before {
    left: -11px; /* mitad del tamaño del punto */
  }

  /* Responsivo */
  @media screen and (max-width: 768px) {
    .linea-proceso::after {
      left: 20px;
    }

    .bloque-proceso {
      width: 100%;
      padding-left: 60px;
      padding-right: 25px;
    }

    .bloque-proceso.derecha {
      left: 0;
    }

    .bloque-proceso::before {
      left: 12px;
      right: auto;
    }
  }


.texto-c-2 {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.texto-c-2 img {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%);
}

/* Animación al pasar el mouse */
.social-item:hover img {
  transform: scale(1.2);
  filter: grayscale(0%) brightness(1.1);
}

.social-item:hover {
  color: #ff4d00;
  transform: translateY(-5px);
}

/* Contadores: texto siempre blanco */
.animated-counters,
.animated-counters-phone {
  color: white !important;
}

/* Asegura que los números no cambien de color al actualizar */
#counter1, #counter2, #counter3,
#counter1m, #counter2m, #counter3m {
  color: white !important;
}

/* Asegura que los textos debajo también sigan blancos */
.animated-counters h4,
.animated-counters p,
.animated-counters-phone h4,
.animated-counters-phone p {
  color: white !important;
}

/* Elimina márgenes en el contenedor padre */
.video-wrap {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

/* Video responsivo */
.video-full {
  width: 50%;
  height: 100%;
  max-height: 90vh; /* evita estirarse demasiado */
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 10px;
}

/* En celular */
@media (max-width: 768px) {
  .video-full {
    width: 80%;
    height: auto;  
    max-height: none;
  }
}