@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: var(--text-body);
}

.nosotros-page {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: var(--text-body);
  background: #fff;
  line-height: 1.6;
}

/* ========================= HERO NOSOTROS ========================= */
.hero-nosotros {
  position: relative;
  color: #fff;
  width: 100%;
  min-height: 52vh;
  overflow: hidden;
}

.hero-nosotros-bg {
  width: 100%;
  height: 52vh;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.70);
}

.hero-nosotros-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14%;
  text-align: center;
  max-width: 900px;
  padding: 0 16px;
}

.hero-nosotros h1 {
  font-size: 2.6rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  text-align: center;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ===== Responsive HERO ===== */
@media (max-width: 1024px) {
  .hero-nosotros {
    min-height: 50vh;
  }

  .hero-nosotros-bg {
    height: 50vh;
    object-position: center;
  }

  .hero-nosotros-content {
    bottom: 12%;
    max-width: 700px;
  }

  .hero-nosotros h1 {
    font-size: clamp(24px, 3.2vw, 40px);
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .hero-nosotros {
    min-height: 46vh;
  }

  .hero-nosotros-bg {
    height: 46vh;
    object-position: center center;
  }

  .hero-nosotros-content {
    bottom: 10%;
    padding: 0 24px;
    max-width: 600px;
  }

  .hero-nosotros h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }
}

@media (max-width: 480px) {
  .hero-nosotros {
    min-height: 42vh;
  }

  .hero-nosotros-bg {
    height: 42vh;
  }

  .hero-nosotros-content {
    bottom: 8%;
    padding: 0 18px;
    max-width: 90%;
  }

  .hero-nosotros h1 {
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 300;
  }
}

/* ========================= BOTÓN ========================= */
.btn-borde {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 173px;
  height: 54px;
  padding: 0 10px 0 32px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 300;
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(45, 116, 231, 0.25);
  white-space: nowrap;
}

.btn-borde:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(45, 116, 231, 0.4);
  background: var(--primary-blue-hover);
}

/* ========================= Secciones genéricas ========================= */
.problema,
.solucion,
.herramientas,
.validacion,
.vision,
.cta-final {
  padding: 80px 10%;
  text-align: center;
}

.problema h2 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 300;
  font-family: "Montserrat", sans-serif;
}

.problema p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #222;
  font-weight: 300;
  font-family: "Montserrat", sans-serif;
}

/* Problema responsive */
@media (max-width: 1024px) {
  .problema {
    padding: 70px 8%;
  }

  .problema h2 {
    font-size: 1.8rem;
  }

  .problema p {
    font-size: 1rem;
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .problema {
    padding: 60px 24px;
  }

  .problema h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .problema p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 32px;
  }

  .btn-borde {
    width: 160px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .problema {
    padding: 50px 16px;
  }

  .problema h2 {
    font-size: 1.4rem;
  }

  .problema p {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .btn-borde {
    width: 150px;
    height: 36px;
  }
}

/* ========================= SOLUCIÓN (BASE) ========================= */
.solucion {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.solucion-overlay {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.solucion-bg {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  border-radius: 16px;
  filter: brightness(0.85);
}

/* Velo base */
.solucion-overlay::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 16px;
  pointer-events: none;
}

/* Texto sobre la imagen (posición base) */
/* Texto arriba-derecha dentro del overlay */
.solucion-texto {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  left: auto;
  /* no lo ancles a la izquierda */
  bottom: auto;

  /* ancho cómodo, sin salirse del recuadro */
  width: min(680px, 48%);
  padding: clamp(12px, 2.5vw, 24px);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* pegado arriba */
  align-items: flex-end;
  /* alineación al borde derecho */
  text-align: left;
  /* texto alineado a la derecha */

  box-sizing: border-box;
  z-index: 2;
  color: #fff;

  /* evita desbordes de palabras largas */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Tipos ajustados y sin márgenes que empujen */
.solucion-texto h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 500;
  color: #fff;
  margin: 0 0 10px;
  max-width: 100%;
}

.solucion-texto p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
  color: #f0f0f0;
}

/* Por si en algún caso el overlay pierde el recorte */
.solucion-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* Cards (localized version) */
.solucion-card {
  flex: 0 0 auto;
  width: 340px;
  height: 165px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.solucion-card:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.sol_card_icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sol_card_icon svg {
  width: 100%;
  height: 100%;
}

.solucion-card h4 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.25;
}

.solucion-card p {
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #555;
  margin: 0;
}


.cards {
  margin-inline: auto;
  /* centra el bloque */
  justify-content: center;
  /* FLEX: centra los items en horizontal */
}

/* 2) Centrar cada icono dentro de su “celda” */
.solucion-card {
  display: flex;
  /* margin removed, flex handles it */
}

@media (max-width: 768px) {
  .solucion-texto {
    width: min(520px, 92%);
    right: 16px;
    top: 16px;
    padding: 12px 16px;
  }


  .solucion-card {
    width: 280px;
    height: 155px;
    padding: 20px;
  }



}

@media (min-width: 481px) {
  .solucion-texto {
    padding-right: 5%;
  }

  .solucion-texto>* {
    margin-left: 50%;
    max-width: 700px;
  }

  /* ===== Solución ≥769 — cards SOBRE el overlay ===== */
  .solucion {
    overflow: visible;
    position: relative;
  }

  .solucion-overlay {
    position: relative;
    display: grid;
    border-radius: 16px;
    overflow: hidden;
    /* recorta cualquier desborde */
  }



  /* Contenedor solo del carrusel (ancla de flechas) */
  .solucion-carousel {
    position: relative;
    z-index: 3;
    /* por encima del overlay */
    margin-top: -170px;
    /* súbelo sobre la imagen; ajusta si quieres */
    padding-inline: 0px;
    /* espacio para flechas y que no “corte” el 1º/último */
  }

  /* Cards por encima del velo */
  .cards {
    position: relative;
    z-index: 3;
    /* por encima del overlay/velo */
    margin-top: -190px;
    /* superpone sobre la imagen; ajusta si quieres */
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: flex-start;
    ;

    /* carrusel */
    overflow-x: auto;
    /* permite desplazamiento con flechas o rueda */
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 35px;
    /* respirito lateral para que no corte el 1º/último */
  }

  .card-svg:first-child {
    scroll-margin-left: 10%;
    /* mantiene el “gutter” visual pero no mueve el snap inicial */
  }

  .cards::-webkit-scrollbar {
    height: 0;
  }

  .solucion-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .solucion-arrows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* el contenedor no intercepta, solo los botones */
    z-index: 4;
    /* sobre cards */
  }

  .solucion-arrow {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(40, 127, 242, 0.95);
    color: #fff;
    font-size: 20px;
    line-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(40, 127, 242, .28);
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
  }

  .solucion-arrow:hover {
    transform: translateY(-50%) scale(1.05);
  }

  .solucion-arrow:active {
    transform: translateY(-50%) scale(0.98);
  }

  .solucion-arrow--prev {
    left: 18px;
  }

  .solucion-arrow--next {
    right: 18px;
  }


  .solucion-arrow.is-hidden,
  .solucion-arrow:disabled {
    opacity: 0;
    pointer-events: none;
    /* no clics */
  }


}


@media (max-width: 480px) {

  /* oculta flechas y dots */
  .solucion-arrows,
  .solucion-arrow,
  .solucion-dots {
    display: none !important;
  }

  /* por si algún botón suelto queda visible */
  .solucion-dots button {
    display: none !important;
  }

  /* evita huecos donde iban los dots/flechas */
  .solucion-dots {
    height: 0;
    margin: 0;
    padding: 0;
  }
}


@media (max-width: 768px) and (min-width: 450px) {

  /* el bloque de cards aparece debajo del overlay (sin negativos) */
  .solucion-carousel {
    display: block;
    position: relative;
    z-index: 3;
    margin-top: 14px;
    /* debajo de la imagen */
    padding-inline: 0;
  }

  /* carrusel horizontal con snap */
  .cards {
    margin: 0;
    width: 100%;
    padding: 0 40px;
    /* deja espacio para flechas */
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .cards::-webkit-scrollbar {
    height: 0;
  }

  /* cada card ocupa ~80% del viewport para que se vea 1 a la vez */
  .solucion-card {
    flex: 0 0 calc(85% - 12px);
    max-width: calc(85% - 12px);
    height: 150px;
    scroll-snap-align: center;
    display: flex;
    margin: 0 auto;
    padding: 18px;
  }

  /* flechas visibles y clicables */
  .solucion-arrows {
    display: block !important;
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* el contenedor no intercepta */
    z-index: 4;
  }

  .solucion-arrow {
    display: inline-flex !important;
    pointer-events: auto;
    /* los botones sí interceptan */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(40, 127, 242, 0.95);
    color: #fff;
    font-size: 18px;
    line-height: 40px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(40, 127, 242, .28);
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
  }

  .solucion-arrow--prev {
    left: 8px;
  }

  .solucion-arrow--next {
    right: 8px;
  }

  .solucion-dots,
  .solucion-dots *,
  .solucion-dots button {
    display: none !important;
  }

  /* evita que quede hueco */
  .solucion-dots {
    height: 0;
    margin: 0;
    padding: 0;
  }
}


/* ========================= HERRAMIENTAS ========================= */
.herramientas h3 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 60px;
}

.herramientas-list--mobile {
  display: none;
}

.herramientas-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 5%;
}

.herramientas-list--desktop {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.herramienta-item {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  min-height: 80px;
  cursor: pointer;
  background: #f9f9f9;
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.herramienta-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.herramienta-item.active {
  background: #f9f9f9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding-bottom: 30px;
  /* space for progress bar at bottom edge */
}

.herramienta-info {
  width: 100%;
}

.herramienta-title {
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
  transition: color 0.3s ease;
}

.herramienta-item.active .herramienta-title {
  color: #1a1a1a;
  margin-bottom: 12px;
}

.herramienta-desc {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.herramienta-item.active .herramienta-desc {
  height: auto;
  opacity: 1;
}

/* Plus Icon Button */
.plus-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(45, 116, 231, 0.25);
  transition: all 0.3s ease;
  z-index: 2;
}

.herramienta-item.active .plus-icon {
  opacity: 0;
  transform: translateY(-50%) rotate(45deg) scale(0);
}

.herramienta-item:hover .plus-icon {
  background: #0056ff;
}

/* Progress Bar at Bottom Edge */
.progress-bar-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--primary-blue);
  transition: width 0s linear;
  opacity: 0;
}

.herramienta-item.active .progress-bar-bottom {
  opacity: 1;
}

/* Mobile Progress */
.progress-container-mobile {
  width: 100%;
  height: 4px;
  background: #f0f4f8;
  margin-top: 10px;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-mobile {
  height: 100%;
  width: 0%;
  background: #287ff2;
}

.herramientas-imagen--clean {
  position: relative;
  width: 100%;
  max-width: 600px;
  /* Increased from 520px */
  margin-right: auto;
  /* Push to the left edge of right col */
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, .08);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.herramientas-imagen img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Mobile (≤768px) ===== */
@media (max-width: 768px) {
  .herramientas-list--desktop {
    display: none !important;
  }

  .herramientas-list--mobile {
    display: flex !important;
  }

  .herramientas-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 20px;
  }

  /* Mostrar versión mobile; ocultar desktop */
  .herramientas-list--desktop {
    display: none;
  }

  .herramientas-list--mobile {
    display: block;
    width: 100%;
  }

  .herramienta-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .herramienta-card .herramienta-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  }

  .herramientas-next {
    position: absolute;
    right: 10px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #287ff2;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(40, 127, 242, .35);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  }

  .herramientas-next:active {
    transform: translateY(1px) scale(.98);
  }

  @media (hover: hover) and (pointer: fine) {
    .herramientas-next:hover {
      filter: brightness(1.05);
    }
  }

  .herramientas-imagen {
    order: 1;
  }

  .herramientas-list--mobile {
    order: 2;
    margin-top: 12px;
  }

  /* Dots */
  .herramientas-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }

  .herramientas-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #dfe8fb;
  }

  .herramientas-dots .active {
    width: 8px;
    height: 8px;
    background: #287ff2;
  }

  .herramientas-imagen {
    border-radius: clamp(12px, 4vw, 18px);
    max-width: 100%;
  }

  .herramientas-imagen img {
    aspect-ratio: 4 / 3;
    /* puedes cambiar a 1 / 1 si necesitas más “cuadrado” */
  }

  .herramientas-imagen {
    overflow: hidden;
    background: #fff;
    /* mantiene la tarjeta “llena” */
  }

  .herramientas-imagen img {
    width: 100%;
    height: auto;
    /* deja que el alto sea natural */
    object-fit: contain;
    /* NO recorta */
    aspect-ratio: auto;
    /* quita el forzado */
    display: block;
  }

  /* Si tienes badges/chips dentro de .herramientas-imagen */
  .herramientas-imagen .badge,
  .herramientas-imagen .chip,
  .herramientas-imagen .etiqueta {
    transform-origin: top left;
    transform: scale(clamp(.75, 100vw / 480, 1));
  }

  .herramientas-imagen .badge--top-right {
    top: clamp(8px, 3vw, 16px);
    right: clamp(8px, 3vw, 16px);
    position: absolute;
  }

  .herramientas-imagen .badge--bottom-left {
    bottom: clamp(8px, 3vw, 16px);
    left: clamp(8px, 3vw, 16px);
    position: absolute;
  }
}


/* ========================= VALIDACIÓN ========================= */
.validacion {
  position: relative;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 80px;
}

.validacion-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

/* Fondo: altura fluida, se puede ajustar */
.val-bg {
  width: 100%;
  height: min(80vh, 720px);
  object-fit: cover;
  object-position: center 35%;
  /* sube/baja el encuadre si quieres */
  border-radius: 20px;
  filter: brightness(0.92);
}

/* Capa de contenido pegada al overlay, con grid para texto/espacio */
.validacion-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  /* texto | área stats */
  align-items: start;
  padding: clamp(28px, 5vw, 60px) 10% 0;
  z-index: 2;
  box-sizing: border-box;
}

/* Texto: deja aire abajo para no chocar con los logos anclados */
.validacion-texto {
  max-width: 540px;
  margin-top: 10px;
  padding-bottom: clamp(120px, 18vh, 220px);
  /* aire para los logos anclados */
}

.validacion-texto h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #fff;
}

.validacion-texto p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e9e9e9;
  margin-bottom: 24px;
}

/* --- LOGOS: anclados dentro del recuadro, abajo-izquierda --- */
.validacion-logos {
  position: absolute;
  left: 10%;
  bottom: clamp(16px, 4vh, 40px);
  display: flex;
  gap: clamp(16px, 4vw, 60px);
  align-items: center;
}

.validacion-logos img {
  width: clamp(120px, 18vw, 240px);
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
  transition: transform .25s ease;
}

.validacion-logos img:hover {
  transform: translateY(-4px);
}

/* --- STATS: anclados dentro, abajo-derecha --- */
.validacion-stats {
  position: absolute;
  right: 10%;
  bottom: clamp(16px, 4vh, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.5vh, 24px);
  align-items: flex-end;
  margin-top: 0;
  /* deja de depender de márgenes del flujo */
}

.validacion-stats img {
  width: clamp(200px, 28vw, 400px);
  max-width: 90%;
  height: auto;
  transition: transform .25s ease, filter .25s ease;
}

.validacion-stats img:hover {
  transform: translateY(-6px);
  filter: brightness(1.1);
}

/* ===== < 768px: logos sobre la foto; stats debajo ===== */


/* ===== 1400 → 769 px: afinados para que nada se toque ===== */
@media (max-width: 1400px) and (min-width: 769px) {

  /* un poco más de aire para logos en la foto */
  .validacion-logos {
    left: 8%;
    bottom: clamp(24px, 5vh, 52px);
    /* antes 16–40px */
    gap: clamp(14px, 2.8vw, 36px);
  }

  .validacion-logos img {
    width: clamp(120px, 14vw, 200px);
    /* reduce ligeramente en este rango */
  }

  /* stats algo más compactos y pegados al borde derecho */
  .validacion-stats {
    right: 8%;
    /* antes 10% */
    gap: clamp(10px, 1.8vh, 18px);
  }

  .validacion-stats img {
    width: clamp(220px, 24vw, 340px);
    /* baja ancho máximo para que no “invadan” */
  }

  /* el bloque de texto reserva un poco más de espacio para los logos */
  .validacion-texto {
    padding-bottom: clamp(140px, 20vh, 240px);
  }

  /* opcional: encuadre ligeramente más alto de la imagen para ganar aire abajo */
  .val-bg {
    object-position: center 32%;
  }
}

@media (max-width: 768px) {

  /* 1) Reserva espacio para los stats que irán “colgando” debajo */
  .validacion {
    position: relative;
    --stats-gap: clamp(12px, 2vw, 20px);
    --stats-h: clamp(260px, 52vw, 360px);
    /* alto aprox del grid (ajusta si hace falta) */
    padding-bottom: calc(var(--stats-gap) + var(--stats-h));
  }

  /* 2) La imagen sigue recortada, pero permite que algo salga por debajo */
  .validacion-overlay {
    overflow: visible;
    border-radius: 20px;
  }

  /* 3) CONTENIDO vuelve a ser overlay absoluto (texto encima de la foto) */
  .validacion-content {
    position: absolute;
    /* ¡importante! para no perder el overlay */
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    padding: clamp(20px, 5vw, 40px);
    box-sizing: border-box;
    z-index: 2;
  }

  /* 4) Logos anclados dentro de la imagen (abajo-izquierda) */
  .validacion-logos {
    position: absolute;
    left: 8%;
    bottom: clamp(12px, 4vh, 28px);
    display: flex;
    gap: clamp(12px, 4vw, 24px);
    align-items: center;
    z-index: 3;
  }

  .validacion-logos img {
    width: clamp(110px, 40vw, 180px);
    height: auto;
  }

  /* 5) Stats colocados DEBAJO de la imagen
        (se posicionan respecto a .validacion-content, que llena la foto) */
  .validacion-stats {
    position: absolute;
    top: calc(100% + var(--stats-gap));
    /* arranca justo al final de la foto */
    left: 8%;
    right: 8%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    z-index: 1;
  }

  .validacion-stats img {
    width: 100%;
    height: auto;
  }
}

/* ===== Columnas y altura reservada según ancho ===== */
@media (max-width: 560px) {
  .validacion {
    --stats-h: clamp(360px, 70vw, 460px);
  }

  .validacion-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .validacion {
    --stats-h: clamp(480px, 100vw, 580px);
  }

  .validacion-stats {
    grid-template-columns: 1fr;
  }
}

/* <= 550px: dos logos en una fila, tamaño fluido */
@media (max-width: 550px) {
  .validacion-logos {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(10px, 4vh, 24px);

    display: flex;
    flex-wrap: nowrap;
    /* ❗ no permitir salto a 2ª fila */
    justify-content: space-between;
    align-items: center;

    /* ancho del bloque dentro de la imagen */
    width: min(90%, 420px);
    /* gap fluido entre logos */
    --gap: clamp(10px, 4vw, 16px);
    column-gap: var(--gap);
  }

  .validacion-logos img {
    /* dos columnas iguales que se encogen automáticamente */
    flex: 0 1 calc((100% - var(--gap)) / 2);
    max-width: calc((100% - var(--gap)) / 2);
    height: auto;
  }
}


.titulo-herramientas .azul {
  color: #287ff2;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
}

.titulo-herramientas .gris {
  color: #555;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
}

/* ========================= VISIÓN ========================= */
.vision {
  text-align: center;
  padding: 80px 10%;
  background: #fff;
  color: #333;
}

.vision-titulo {
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 60px;
}

.vision-titulo .azul {
  color: #287ff2;
}

.vision-titulo .gris {
  color: #555;
}

.vision-boxes {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.vision-card {
  background: #f9f9f9;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 32px;
  text-align: left;
  flex: 1;
  max-width: 440px;
  transition: transform .3s ease;
}

.vision-card:hover {
  transform: translateY(-6px);
}

.vision-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
}

.vision-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.vision-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.vision-footer {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.5;
}

.btn-azul-demo {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  transition: transform .25s ease, filter .25s ease;
}

.btn-azul-demo:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.btn-demo-svg {
  width: 180px;
  height: auto;
}

/* Visión responsive */
@media (max-width: 1024px) {
  .vision {
    padding: 70px 8%;
  }

  .vision-titulo {
    font-size: 1.8rem;
    margin-bottom: 50px;
  }

  .vision-boxes {
    gap: 24px;
  }

  .vision-card {
    max-width: 400px;
    padding: 28px;
  }

  .vision-card h4 {
    font-size: 1.05rem;
  }

  .vision-card p {
    font-size: 0.95rem;
  }

  .btn-demo-svg {
    width: 170px;
  }
}

@media (max-width: 768px) {
  .vision {
    padding: 60px 6%;
  }

  .vision-titulo {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .vision-boxes {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
  }

  .vision-card {
    max-width: 500px;
    width: 100%;
    text-align: center;
    padding: 26px;
  }

  .vision-card h4 {
    font-size: 1.05rem;
  }

  .vision-card p {
    font-size: 0.9rem;
  }

  .vision-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }

  .vision-footer {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .btn-demo-svg {
    width: 160px;
  }
}

@media (max-width: 576px) {
  .vision {
    padding: 50px 5%;
  }

  .vision-titulo {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  .vision-card {
    padding: 22px;
  }

  .vision-card h4 {
    font-size: 1rem;
  }

  .vision-card p {
    font-size: 0.88rem;
  }

  .vision-icon {
    width: 30px;
    height: 30px;
  }

  .vision-footer {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .btn-demo-svg {
    width: 150px;
  }
}

@media (max-width: 400px) {
  .vision {
    padding: 45px 5%;
  }

  .vision-titulo {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .vision-card {
    padding: 18px;
  }

  .vision-card p {
    font-size: 0.83rem;
    line-height: 1.5;
  }

  .btn-demo-svg {
    width: 140px;
  }
}

/* ========================= CTA FINAL ========================= */
.cta-final {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  margin-top: 80px;
}

.cta-bg {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
  border-radius: 16px;
}

.cta-overlay {
  position: relative;
}

.cta-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
  max-width: 800px;
}

.cta-content h3 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.3;
}

.btn-contacto {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  transition: transform .3s ease, filter .3s ease;
}

.btn-contacto:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.cta-contacto-svg {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* CTA responsive */
@media (max-width: 1024px) {
  .cta-bg {
    height: 55vh;
    object-position: center center;
  }

  .cta-content h3 {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    max-width: 700px;
    margin-bottom: 24px;
  }

  .cta-contacto-svg {
    width: 170px;
  }
}

@media (max-width: 768px) {
  .cta-final {
    margin-top: 60px;
  }

  .cta-bg {
    height: 50vh;
    filter: brightness(0.8);
  }

  .cta-content {
    width: 90%;
    padding: 0 20px;
  }

  .cta-content h3 {
    font-size: 1.4rem;
    line-height: 1.35;
    margin-bottom: 20px;
  }

  .cta-contacto-svg {
    width: 150px;
  }
}

@media (max-width: 576px) {
  .cta-bg {
    height: 45vh;
    object-position: center top;
  }

  .cta-content {
    width: 92%;
    padding: 0 10px;
  }

  .cta-content h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 18px;
  }

  .cta-contacto-svg {
    width: 140px;
  }
}

@media (max-width: 400px) {
  .cta-bg {
    height: 42vh;
  }

  .cta-content h3 {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .cta-contacto-svg {
    width: 125px;
  }
}