/* Variables */
/* ======== FIX GLOBAL PARA EVITAR SCROLL HORIZONTAL ======== */
html, body {
  overflow-x: hidden;
}

/* Asegura que ningún elemento pueda medir más que la pantalla */
* {
  max-width: 100%;
  box-sizing: border-box;
}

:root {
    --azul: #00395f;
    --verde: #8dc63f;
    --blanco: #ffffff;
  }
  
  /* Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: var(--blanco);
  }
  
  /* HEADER */
  
  .header .container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    height: 50px;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  
  .nav a {
    color: var(--blanco);
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
  }

  .nav a:hover {
    opacity: 0.7;
  }
  
  .btn-contacto {
    padding: 7px 18px;
    background: var(--blanco);
    color: var(--azul) !important;
    border-radius: 20px;
    font-weight: 600;
  }
  
  /* HERO */
  .hero {
    height: 100vh;
    background: url('img/hero.jpg') center/cover no-repeat;
    position: relative;
  }
  
  .hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 57, 95, 0.75);
  }
  
  /* CONTENT GRID */
  .hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
    height: 100%;
    padding: 0 8%;
    color: var(--blanco);
  }
  
  /* COLUMNA IZQUIERDA */
  .years {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .years-img {
    width: 350px;
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
  }
  
  /* Botón */
  .btn-white {
    display: inline-block;
    padding: 12px 34px;
    background: var(--blanco);
    color: var(--azul);
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .btn-white:hover {
    transform: translateY(-3px);
  }
  
  /* COLUMNA DERECHA */
  .hero-text h1 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.25;
    max-width: 520px;
  }
  
  /* TEXTO INFERIOR DERECHA */
  .hero-bottom-text {
    margin-top: 32px;
    font-size: 0.95rem;
    letter-spacing: 3px;
    font-weight: 500;
    color: var(--blanco);
  }
  
  /* RESPONSIVE */
  @media(max-width: 900px) {
  
    .hero-content {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 40px;
      padding-top: 100px;
    }
  
    .hero-text h1 {
      margin: 0 auto;
      font-size: 2.2rem;
    }
  
    .hero-bottom-text {
      margin-top: 18px;
    }
  
    .years-img {
      width: 260px;
    }
  }
  
  @media(max-width: 500px) {
    .hero-text h1 {
      font-size: 1.8rem;
    }
  
    .years-img {
      width: 200px;
    }
  
    .hero-bottom-text {
      font-size: 0.75rem;
      letter-spacing: 2px;
    }
  }


  
  /* HAMBURGUESA (solo se muestra en móvil) */
  .hamburger {
    width: 32px;
    height: 22px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
  }
  .hamburger span {
    width: 100%;
    height: 3px;
    background: var(--blanco);
    transition: 0.3s;
  }

  .close-btn {
    display: none; /* Oculto por defecto */
  }
  
  
 /* MENU OFFCANVAS MOBILE */
@media(max-width: 850px) {

    .nav {
      position: fixed;
      right: -100%;
      top: 0;
      height: 100vh;
      width: 260px;
      background: var(--azul);
      display: flex;
      flex-direction: column;
      padding: 120px 30px;
      gap: 22px;
      transition: 0.35s;
    }
  
    .nav.show {
      right: 0;
    }
  
    .nav a {
      font-size: 1.2rem;
    }
  
    .hamburger {
      display: flex;
    }
  
    /* Animación del ícono */
    .hamburger.active span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }
  
    /* Botón para cerrar (solo móvil) */
    .close-btn {
        display: block; /* Aparece solo en móvil */
        position: absolute;
        top: 20px;
        right: 22px;
        font-size: 2.2rem;
        color: var(--blanco);
        cursor: pointer;
        transition: 0.3s;
      }
    
      .close-btn:hover {
        transform: scale(1.1);
      }
  }
/* SECCIÓN NOSOTROS */
.nosotros-section {
  background: url("img/Fondo textura.png") center/cover no-repeat;
  padding: 100px 8% 120px;
  color: var(--blanco);
}

.nosotros-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 90px;
}

/* Cada fila */
.nosotros-row {
  display: flex;                 /* ← IMPORTANTE */
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* Invertir la segunda fila */
.nosotros-row.reverse {
  flex-direction: row-reverse;   /* ← AQUÍ SE ARREGLA */
}

/* Imagen */
.nosotros-img img {
  width: 100%;
  max-width: 480px;
  border-radius: 18px;
}

/* Texto */
.nosotros-text {
  max-width: 610px;
  font-size: 1rem;
  line-height: 1.7;
}

.nosotros-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.nosotros-text h2 span {
  color: var(--verde);
}

/* LISTA BULLETS */
.nosotros-text ul {
  margin-top: 15px;
  padding-left: 20px;
}
.nosotros-text li {
  margin-bottom: 8px;
}

/* RESPONSIVE */
@media(max-width: 900px) {
  .nosotros-row,
  .nosotros-row.reverse {
    flex-direction: column;      /* En móvil siempre imagen arriba y texto abajo */
    text-align: center;
  }

  .nosotros-text ul {
    text-align: left;
  }
}
/* --- Ajuste para Tablets y pantallas medianas --- */
@media (max-width: 1200px) and (min-width: 768px) {

  .nosotros-row {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .nosotros-row.reverse {
    flex-direction: column; /* evita volteo raro en tablet */
  }

  .nosotros-text {
    max-width: 90%;
    margin: 0 auto;
    font-size: 1.05rem; /* ligera mejora de lectura */
  }

  .nosotros-image img {
    width: 65%;
    max-width: 450px;
    margin: 0 auto;
  }
}

/* header estado inicial: transparente */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 0;
  z-index: 9999;
  background: transparent !important;
  transition: transform 0.32s ease, background 0.32s ease, padding 0.32s ease;
  transform: translateY(0);
}

/* ocultar cuando baja */
.header.hide {
  transform: translateY(-110%);
}

/* cuando reaparece (scroll up) se muestra con fondo */
.header.scrolled {
  background: var(--azul) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  padding: 12px 0;
}
.resaltar {
  color: var(--verde);
  font-weight: 600;
}

/*Diseño para la seccion de mision y vision*/
.experiencia-section {
  background: url("img/Fondo-verde.png") center/cover no-repeat;
  position: relative;
  padding: 100px 8%;
  color: #fff;
}

.experiencia-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(142, 198, 63, 0);
  z-index: 0;
}

.experiencia-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* ENCABEZADO */
.experiencia-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 70px;
  gap: 40px;
}

.experiencia-left h2 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.experiencia-left h2 span {
  color: #003366; /* Azul oscuro */
}

.experiencia-right {
  flex: 1;
  max-width: 600px;
}

.experiencia-right p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* TARJETAS */
.experiencia-cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
  align-items: stretch; /* ← asegura que todas las tarjetas tengan la misma altura */
}

.experiencia-cards .card {
  flex: 1;
  min-width: 280px;
  background: rgba(65, 99, 60, 0.75); /* #41633c con transparencia */
  border: 2px solid #c6d4bd;
  border-radius: 14px;
  padding: 50px 30px 40px; /* más espacio arriba */
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* alinea texto arriba */
  min-height: 360px; /* altura más alta, más cercana al diseño original */
  box-sizing: border-box;
}

/* Títulos más grandes */
.experiencia-cards .card h3 {
  font-size: 2rem; /* antes 1.6rem */
  font-weight: 800;
  margin-bottom: 25px;
  color: #fff;
  text-transform: uppercase;
}

/* Texto base */
.experiencia-cards .card p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

/* Lista de valores */
.valores-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  columns: 2;
  column-gap: 40px;
}

.valores-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.valores-list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

/* RESPONSIVO */
@media (max-width: 992px) {
  .experiencia-header {
    flex-direction: column;
    text-align: center;
  }

  .experiencia-left h2 {
    font-size: 3rem;
  }

  .experiencia-cards {
    flex-direction: column;
    align-items: center;
  }

  .experiencia-cards .card {
    width: 100%;
    max-width: 600px;
    min-height: auto;
  }

  .valores-list {
    columns: 1;
  }
}

/* --- SECCIÓN SERVICIOS (ajustada al diseño original) --- */
.servicios {
  position: relative;
  text-align: center;
  background: url('img/Fondo-textura-blanco.png') no-repeat center center/cover;
  padding: 80px 0;
  overflow: hidden;
}

.servicios h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 60px;
  color: #7ac142;
}

.servicios h2 span {
  color: #003366;
}

/* --- Carrusel --- */
/* --- Carrusel ajustado a la mitad del tamaño --- */
.serviciosSwiper {
  width: 70%; /* antes 85%, deja más espacio a los lados */
  max-width: 1000px; /* límite para pantallas grandes */
  margin: 0 auto;
  overflow: visible !important;
  position: relative;
}

/* Slides */
.swiper-slide {
  height: auto !important;
  padding-bottom: 20px;
  position: relative;
  width: 35%; /* antes 50%, reduce visiblemente el tamaño */
  min-height: 420px; /* puedes ajustar este valor */
  border-radius: 25px;
  overflow: hidden;
  transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease;
  transform: scale(0.6); /* más pequeño por defecto */
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
  filter: brightness(60%);
}

/* Slide activo (central) */
.swiper-slide-active {
  transform: scale(0.95); /* ligeramente más grande */
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  filter: brightness(90%);
}

/* Slides laterales */
.swiper-slide-prev,
.swiper-slide-next {
  transform: scale(0.75); /* reduce un poco más las laterales */
  opacity: 0.8;
  z-index: 2;
  pointer-events: auto;
}

/* Imagen dentro del slide */
.swiper-slide img {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  object-fit: cover;
}

/* Texto sobre la imagen */
.servicio-texto {
  padding: 15px;
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  color: white;
  text-align: left;
}

.servicio-texto h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.servicio-texto p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Flechas */
/* Estilo base de los botones */
.swiper-button-prev,
.swiper-button-next {
    width: 60px !important;      /* Círculo perfecto */
    height: 60px !important;     /* Círculo perfecto */
    background: #8BC53F !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Efecto hover */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.08);
    box-shadow: 0px 6px 12px rgba(0,0,0,0.3);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: "" !important;
}

/* Flecha personalizada */
.swiper-button-prev::before,
.swiper-button-next::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    border-right: 4px solid white;
    border-bottom: 4px solid white;
    transform: rotate(315deg);
}

/* Rotación para la flecha izquierda */
.swiper-button-prev::before {
    transform: rotate(135deg);
}



/* Posición de las flechas */
.swiper-button-next {
  right: 5%;
}

.swiper-button-prev {
  left: 5%;
}
/* --- Botón inferior --- */
.btn-servicios {
  margin-top: 50px;
}

.btn-servicios a {
  background-color: #7ac142;
  color: white;
  padding: 15px 45px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-servicios a:hover {
  background-color: #5a9230;
}

/* --- Responsivo --- */
@media (max-width: 1024px) {
  .serviciosSwiper {
    width: 85%;
  }

  .swiper-slide {
    width: 50%;
  }

  .swiper-slide-active {
    transform: scale(0.9);
  }

  .swiper-slide-prev,
  .swiper-slide-next {
    transform: scale(0.7);
  }
}

@media (max-width: 768px) {
  .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
  .swiper-slide {
    width: 85%;
    aspect-ratio: 4 / 3;
  }

  .servicio-texto h3 {
    font-size: 18px;
    line-height: 1.2;
}

.servicio-texto p {
  font-size: 14px;
  line-height: 1.4;
  max-height: none; /* aseguramos que no se corte */
  overflow: visible;
}
}

/* --- Título principal de la sección --- */
.titulo-servicios {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 60px;
}

.titulo-servicios .azul {
  color: #00395f;
}

.titulo-servicios .verde {
  color: #8dc63f;
}

/* --- Texto dentro de las imágenes --- */
.servicio-texto {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  color: white;
  text-align: left;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.servicio-texto h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff; /* ← blanco */
}

.servicio-texto p {
  font-size: 1rem;
  line-height: 1.6;
  color: #fff; /* ← blanco */
}
/*------------------------*/
/* Sección verificacion */
/*------------------------*/
.unidad-verificacion {
  background: url('img/Fondo-textura-blanco.png') no-repeat center/cover;
  padding: 80px 0;
  text-align: center;
}

/* Título */
.titulo-unidad {
  font-size: 3rem;
  font-weight: 800;
  color: #003366; /* azul */
}

.titulo-unidad span {
  color: #7ac142; /* verde */
}

/* Descripción principal */
.unidad-desc {
  max-width: 900px;
  margin: 20px auto 60px;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
}

/* Contenedor de tarjetas */
.tarjetas-unidad {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Cada tarjeta */
.tarjeta {
  background: white;
  border: 2px solid rgba(219, 219, 219, 1);
  border-radius: 22px;
  width: 280px;
  padding: 35px 25px;
  box-shadow: 0 0 0 rgba(0,0,0,0); /* limpio */
  transition: transform .3s ease, box-shadow .3s ease;
}

.tarjeta:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Icono */
.tarjeta img {
  width: 60px;
  margin-bottom: 20px;
}

/* Título */
.tarjeta h3 {
  color: #003366;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 15px;
}

/* Texto */
.tarjeta p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.55;
}

/*-------------Seccion articulos--------------*/
.articulos-section {
  background: #7cc242; /* Fondo verde igual al diseño */
  padding: 80px 0;
  text-align: center;
}

.titulo-articulos {
  font-size: 48px;
  font-weight: 800;
  color: #00325b; /* Azul del diseño */
  margin-bottom: 50px;
}

.articulos-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.articulo-card {
  background: white;
  width: 520px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
}

.articulo-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.articulo-content {
  padding: 20px 25px 35px;
  text-align: left;
}

.articulo-titulo {
  font-size: 20px;
  font-weight: 700;
  color: #00325b;
  line-height: 1.3;
}

.articulo-fecha {
  margin: 10px 0 20px;
  font-size: 14px;
  color: #5a5a5a;
}

.leer-mas-btn {
  display: inline-block;
  padding: 8px 25px;
  background: #7cc242;
  color: white;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: .2s ease;
}

.leer-mas-btn:hover {
  background: #6bb338;
}
/* RESPONSIVE */

/* Tablets */
@media (max-width: 1024px) {
  .articulos-container {
      gap: 30px;
  }

  .articulo-card {
      width: 450px;
  }

  .articulo-img {
      height: 200px;
  }

  .titulo-articulos {
      font-size: 42px;
  }
}

/* Pantallas medianas */
@media (max-width: 768px) {
  .articulos-container {
      flex-direction: column;
      align-items: center;
  }

  .articulo-card {
      width: 90%;
  }

  .articulo-img {
      height: 200px;
  }

  .titulo-articulos {
      font-size: 36px;
  }
}

/* Celulares */
@media (max-width: 480px) {
  .titulo-articulos {
      font-size: 32px;
      margin-bottom: 40px;
  }

  .articulo-card {
      width: 92%;
      border-radius: 22px;
  }

  .articulo-img {
      height: 180px;
  }

  .articulo-content {
      padding: 18px 20px 28px;
  }

  .articulo-titulo {
      font-size: 18px;
  }

  .articulo-fecha {
      font-size: 12px;
      margin: 8px 0 18px;
  }

  .leer-mas-btn {
      padding: 7px 22px;
      font-size: 13px;
  }
}
/* ================================
   SECCIÓN TESTIMONIOS
=================================== */

.testimonios-section {
  background: #07345B;
  color: white;
  padding: 80px 0;
  display: flex;
  align-items: flex-start; /* que la columna izquierda no sea afectada por centrado vertical */
  gap: 50px;
  overflow: hidden; /* evita que las tarjetas se salgan y monten el texto */
  position: relative;
}

/* Columna izquierda */
.testimonios-izquierda {
  width: 35%;
  padding-left: 5%;
  box-sizing: border-box;
}

.testimonios-izquierda h2 {
  color: #7cc242;
  font-size: 48px;
  font-weight: 800;
  margin: 10px 0;
}

.testimonios-izquierda p {
  font-size: 20px;
  margin-top: 10px;
}

.comillas {
  width: 80px;
  display: block;
    margin: 0 auto;     /* centra la imagen */
}

/* Carrusel - swiper */
.testimoniosSwiper {
  width: 65%;
  padding: 40px 0; /* menos padding vertical para que no empuje */
  overflow: visible; /* permite que las flechas internas (posicionadas dentro) se muestren */
  position: relative;
  box-sizing: border-box;
}

/* Asegurar que el wrapper permita alturas variables */
.testimoniosSwiper .swiper-wrapper {
  align-items: stretch !important;
}

/* Slides */
.testimoniosSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;      /* que cada slide pueda estirarse verticalmente */
  height: auto !important;   /* evita recortes automáticos */
  box-sizing: border-box;
}

/* Tarjeta */
.testimonio-card {
  width: 90%;
  max-width: 650px;
  box-sizing: border-box;
  height: auto !important;   /* se adapta al contenido */
}

.testimonio-box {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 25px;
  padding: 40px;              /* un poco menos para mejorar responsividad */
  text-align: center;
  width: 100%;
  height: auto !important;
  box-sizing: border-box;
  transition: transform .22s ease;
}

.testimonio-box:hover {
  transform: scale(1.02);
}

.estrellas {
  color: #6ED34C;
  font-size: 32px;
  margin-bottom: 18px;
}

.testimonio-box p {
  font-size: 18.5px;   /* pequeño ajuste para mejor lectura en desktop y evitar overflow */
  line-height: 1.5;
  margin: 0;
}

.autor {
  display: block;
  font-weight: 600;
  margin-top: 18px;
}

/* ================================
   FLECHAS
=================================== */

/* Flechas: posicionadas dentro del contenedor swiper (no fuera) */
.testimonios-button-prev,
.testimonios-button-next {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  z-index: 9999 !important;
  box-sizing: border-box;
}

/* Iconos */
.testimonios-button-prev::after {
  content: "‹";
  font-size: 36px;
  color: #ffffff;
  font-weight: 700;
}

.testimonios-button-next::after {
  content: "›";
  font-size: 36px;
  color: #ffffff;
  font-weight: 700;
}

/* Posición pegada al borde interno del swiper (evita valores negativos que salen del layout) */
.testimonios-button-prev { left: 8px; }
.testimonios-button-next { right: 8px; }

/* ================================
   RESPONSIVE
=================================== */

/* Tablets */
@media (max-width: 992px) {

  .testimonios-section {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 60px 0;
  }

  .testimonios-izquierda {
    width: 100%;
    padding-left: 0;
  }

  .testimoniosSwiper {
    width: 100%;
    padding: 40px 0;         /* reduce padding para evitar recortes */
  }

  .testimonio-card {
    width: 100% !important;
  }
  .testimonio-box {
    padding: 40px;
  }

  /* mover ligeramente flechas para tablets */
  .testimonios-button-prev { left: 12px; }
  .testimonios-button-next { right: 12px; }
}

/* Móvil */
@media (max-width: 600px) {

  .testimonios-section {
    padding: 40px 16px;
  }

  .testimonios-izquierda {
    padding: 0;
  }

  .testimonio-box {
    padding: 28px;
  }

  .testimonio-card {
    width: 95%;
  }

  .estrellas {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .testimonio-box p {
    font-size: 16px;
  }

  /* Ocultar flechas en móvil para usar swipe nativo */
  .testimonios-button-prev,
  .testimonios-button-next {
    display: none !important;
  }
}
/* ================================
   SECCIÓN FAQ
==================================*/

.faq-section {
  padding: 60px 20px 100px;
  background-image: url('img/Fondo-textura-blanco.png'); /* tu imagen del mockup */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* TÍTULO */
.faq-titulo {
  text-align: center;
  color: #073B63;
  font-size: 42px;
  margin-bottom: 40px;
  font-weight: 800;
}

/* ================================
 BOTONES DE CATEGORÍA
==================================*/

.faq-categorias {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.faq-btn {
  background-color: #073B63;
  padding: 14px 35px;
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 600;
}

.faq-btn.activo {
  background-color: #8BC53F;
  color: white;
}

/* ================================
 LISTAS DE PREGUNTAS
==================================*/

.faq-lista {
  max-width: 1100px;
  margin: auto;
}

.oculto {
  display: none;
}

/* CONTENEDOR GENERAL */
.faq-item {
  margin-bottom: 22px;
  border-radius: 40px;            /* radio general */
  transition: .3s ease;
  animation: fadeIn .5s ease forwards;
  opacity: 0;
  transform: translateY(15px);
  overflow: visible;             /* importante: visible para permitir negative margin */
  position: relative;
}

/* PREGUNTA (borde gris) */
.faq-pregunta-box {
  background: white;
  border: 2px solid rgba(197,197,199,1);
  border-radius: 40px;           /* pregunta redondeada por completo */
  padding: 22px 35px;
  cursor: pointer;
  position: relative;
  z-index: 2;                    /* se superpone a la respuesta para ocultar seam */
}
.faq-pregunta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #073B63;
}

.faq-icon {
  transition: transform .3s ease;
}

.faq-item.activo .faq-icon {
  transform: rotate(180deg);
}

/* RESPUESTA (fondo gris claro como mockup) */
.faq-respuesta-box {
  max-height: 0;
  overflow: hidden;
  background: rgba(217,217,217,1);
  transition: max-height .35s ease, padding .35s ease, margin-top .2s ease;
  border-radius: 40px;          /* respuesta redondeada por completo */
  margin-top: 12px;             /* separacion cuando está cerrada */
  position: relative;
  z-index: 1;
}

.faq-respuesta {
  padding: 0 35px;
  color: black;
  font-size: 17px;
  line-height: 1.55;
}

/* Cuando está abierto */
.faq-item.activo .faq-respuesta-box {
  padding: 22px 35px;
  max-height: 500px;            /* suficiente para la mayoría de respuestas */
  margin-top: -10px;            /* se "sube" la respuesta para ocultar seam */
}

/* Animación de entrada */
@keyframes fadeIn {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* ================================
 RESPONSIVE
==================================*/

@media (max-width: 992px) {
  .faq-item {
      padding: 22px 28px;
      border-radius: 30px;
  }
  .faq-pregunta {
      font-size: 20px;
  }
}

@media (max-width: 600px) {
  .faq-btn {
      font-size: 17px;
      padding: 12px 25px;
  }
  .faq-item {
      padding: 20px 22px;
  }
  .faq-pregunta {
      font-size: 18px;
  }
}
/* ================================
   SECCIÓN CONTACTO
================================ */

.contacto-section {
  background-image: url('img/Fondo-textura-blanco.png');
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
}

/* PANEL AZUL */
.contacto-container {
  max-width: 1300px;
  margin: auto;
  background: #073B63;
  border-radius: 40px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  color: white;
  align-items: center;
}

/* ================================
 TEXTOS IZQUIERDA
================================ */

.contacto-titulo {
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
}

.contacto-titulo span {
  color: #8BC53F;
}

.contacto-descripcion {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 25px;
}
.contacto-datos {
    text-align: left !important;
}
/* DATOS DE CONTACTO */
.contacto-datos p {
  margin: 12px 0;
  text-align: left;
  font-size: 18px;
}

.contacto-datos i {
  color: #8BC53F;
  margin-right: 10px;
  font-size: 20px;
}

.contacto-datos a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}

/* ================================
 FORMULARIO
================================ */

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 18px 22px;
  border-radius: 40px;
  border: none;
  margin-bottom: 18px;
  font-size: 17px;
  outline: none;
}

.contacto-form textarea {
  height: 135px;
  resize: none;
}

/* CAMPOS DOBLES (Nombre / Empresa) */
.form-grupo.doble {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* BOTÓN */
.btn-enviar {
  background: #8BC53F;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 20px;
  border-radius: 40px;
  cursor: pointer;
  margin-top: 10px;
  transition: .3s ease;
  font-weight: 600;
}

.btn-enviar:hover {
  background: #7EB639;
}

/* ================================
 RESPONSIVE
================================ */

@media (max-width: 900px) {
  .contacto-container {
      grid-template-columns: 1fr;
      padding: 40px;
  }

  .contacto-titulo {
      font-size: 45px;
      text-align: center;
  }

  .contacto-descripcion,
  .contacto-datos {
      text-align: center;
  }

  .form-grupo.doble {
      grid-template-columns: 1fr;
  }
}

/* Animación de entrada */
.contacto-container {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeSlide 0.8s ease forwards;
}

@keyframes fadeSlide {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
.contacto-form input,
.contacto-form textarea {
    transition: all .25s ease;
    border: 2px solid transparent;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: #8BC53F;
    background: #f8fff2;
}
/*Loader animation*/
/* Fondo del loader */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Animación del loader */
.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #d1d1d1;
  border-top-color: #005eff;
  border-radius: 50%;
  animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* Cuando la página termine de cargar */
body.loaded #loader-wrapper {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
/* Modal general */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenido del modal */
.modal-content {
  background: #ffffff;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.modal-content h2,
.modal-content p {
    color: #000000 !important;
}

/* Estilo especial para modal de éxito */
.modal-content.success {
  border: 3px solid #8BC53F;
}

/* Animación */
@keyframes modalPop {
  from {
      transform: scale(0.85);
      opacity: 0;
  }
  to {
      transform: scale(1);
      opacity: 1;
  }
}

/* Botón cerrar */
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.close-modal:hover {
  color: black;
}
/* ===========================
   FOOTER SOLO FRANJA VERDE
=========================== */
.footer-min {
  background-color: #8BC53F; /* verde del mockup */
  color: white;
  text-align: center;
  padding: 18px 20px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
/*diseño responsivo*/
@media (max-width: 480px) {
  .header-logo img {
      width: 120px;
  }

  nav ul li a {
      font-size: 14px;
  }

  .menu-btn {
      font-size: 26px;
  }
}

@media (max-width: 360px) {
  nav ul li a {
      font-size: 13px;
  }
}
@media (max-width: 480px) {
  .hero-container {
      padding: 20px;
  }

  .hero-text h1 {
      font-size: 26px;
      line-height: 1.2;
  }

  .hero-text p {
      font-size: 15px;
  }
}

@media (max-width: 360px) {
  .hero-text h1 {
      font-size: 22px;
  }
}


@media (max-width: 360px) {
  .servicio-texto p {
      font-size: 13px;
  }
}
@media (max-width: 480px) {
  .nosotros-texto {
      padding: 20px;
      text-align: center;
  }

  .nosotros-texto h2 {
      font-size: 28px;
  }

  .nosotros-texto p {
      font-size: 15px;
  }
}
@media (max-width: 480px) {
  .testimonio-card {
      width: 90%;
      margin: auto;
  }

  .testimonio-box p {
      font-size: 15px;
      line-height: 1.45;
  }
}
@media (max-width: 480px) {
  .faq-pregunta {
      font-size: 16px;
  }

  .faq-respuesta {
      font-size: 15px;
  }
}
@media (max-width: 480px) {
  .form-grupo.doble {
      flex-direction: column;
      gap: 10px;
  }

  .contacto-form input,
  .contacto-form textarea {
      font-size: 15px;
      padding: 12px;
  }

  .contacto-titulo {
      font-size: 28px;
  }
}

@media (max-width: 360px) {
  .contacto-form input,
  .contacto-form textarea {
      font-size: 14px;
  }
}
/* === FIX CONTACTO EN MOVILES PEQUEÑOS === */
@media (max-width: 480px) {

  /* Ajustar el contenedor general */
  .contacto-section .contacto-container {
      width: 100%;
      padding: 0 15px;
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  /* El recuadro azul */
  .contacto-info {
      width: 100%;
      padding: 25px 20px;
      border-radius: 35px;
      box-sizing: border-box;
  }

  /* Evitar desbordamientos del texto */
  .contacto-info p,
  .contacto-info a {
      word-wrap: break-word;
      overflow-wrap: break-word;
      font-size: 14px;
      line-height: 1.4;
  }

  /* Ajuste del formulario */
  .contacto-form {
      width: 100%;
      margin-top: 25px;
      padding: 0 5px;
      box-sizing: border-box;
  }

  .contacto-form input,
  .contacto-form textarea {
      width: 100%;
      font-size: 15px;
  }

  .form-grupo.doble {
      flex-direction: column;
      gap: 10px;
  }
}
/* === FIX PARA ICONOS Y TEXTOS EN LA SECCIÓN CONTACTO === */
.contacto-datos p {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap; /* permite acomodar el correo si es MUY largo */
  justify-content: left; /* centra todo en mobile */
  text-align: left;
}

.contacto-datos i {
  font-size: 18px;
  color: #8BC53F;
  flex-shrink: 0; /* evita que el icono se deforme */
}

/* El correo muy largo puede romper diseño,
 así que permitimos el salto limpio */
.contacto-datos a {
  word-break: break-word;
  font-size: 15px;
}

/* Ajustes específicos para teléfonos de 375px y 320px */
@media (max-width: 480px) {
  .contacto-datos p {
      font-size: 14px;
      line-height: 1.35;
      gap: 6px;
  }

  .contacto-datos i {
      font-size: 16px;
  }

  .contacto-datos a {
      font-size: 14px;
  }
}

  /* ===========================================
   📱 OPTIMIZACIÓN DEL CARRUSEL PARA MÓVIL
=========================================== */
@media (max-width: 480px) {

  /* La tarjeta debe crecer según contenido */
  .swiper-slide {
    aspect-ratio: unset !important;
    height: auto !important;
    min-height: 380px;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  /* Imagen crece con el contenedor */
  .swiper-slide img {
    height: 260px; /* proporción bonita */
    width: 100%;
    object-fit: cover;
    border-radius: 25px 25px 0 0;
  }

  /* Texto integrado en el flujo */
  .servicio-texto {
    position: relative;
    transform: none;
    bottom: auto;
    left: auto;
    width: 100%;
    padding: 20px 15px;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.4),
      rgba(0,0,0,0.8)
    );
    border-radius: 0 0 25px 25px;
  }

  .servicio-texto h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .servicio-texto p {
    font-size: 14px;
    line-height: 1.35;
  }
}
