.prepared {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 70px 7vw;
}
.prepared h2 {
  font-size: clamp(26px, 4.2vw, 42px);
  margin: 0 0 40px;
  font-weight: 900;
}
.prepared-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: auto;
}
.prepared-card {
  background: linear-gradient(180deg, #87a820 0%, #003d20 100%);
  border-radius: 12px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 126px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}
.prepared-card img {
  height: 48px;
  width: auto;
}
.prepared-card span {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-align: center;
}

.sol-head {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 40px;
  align-items: start;
}
.vertical-strip {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.vertical-strip img {
  height: 220px;
  width: 90px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(-35px) scale(0.95);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.vertical-strip.in-view img {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition-delay: 3s;
}
.vertical-strip.in-view img:nth-child(2) {
  transition-delay: 3.15s;
}
.vertical-strip.in-view img:nth-child(3) {
  transition-delay: 3.3s;
}
.vertical-strip.in-view img:nth-child(4) {
  transition-delay: 3.45s;
}
.vertical-strip.in-view img:nth-child(5) {
  transition-delay: 3.6s;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 70px auto 85px;
  max-width: 980px;
}
.service-card {
  border: 2px solid #111;
  border-radius: 22px;
  min-height: 205px;
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.28s;
  background: #fff;
}
.service-card img {
  height: 58px;
  width: auto;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 900;
}
.service-card p {
  font-size: 16px;
  line-height: 1.15;
  margin: 0;
}
.service-card:hover,
.service-card.active {
  background: var(--grad);
  color: #fff;
  transform: translateY(-7px);
  box-shadow: 0 18px 34px rgba(14, 86, 216, 0.28);
  border-color: transparent;
}

.digital-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 52px;
  align-items: center;
  margin-top: 40px;
}
.digital-strip {
  display: flex;
  gap: 10px;
  min-width: 0;
}
.digital-strip img {
  height: 210px;
  width: 110px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transform: translateX(35px) scale(0.96);
  transition: 0.7s;
}
.digital-strip.in-view img {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.digital-strip.in-view img:nth-child(1) {
  transition-delay: 0.1s;
}
.digital-strip.in-view img:nth-child(2) {
  transition-delay: 0.25s;
}
.digital-strip.in-view img:nth-child(3) {
  transition-delay: 0.4s;
}
.digital-buttons {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 35px;
}
.digital-btn {
  border: 2px solid #111;
  border-radius: 18px;
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 22px 14px;
  transition: 0.25s;
  background: #fff;
}
.digital-btn img {
  max-width: 75%;
  max-height: 80px;
}
.digital-btn span {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  color: var(--text);
}
.digital-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
}
.empresa-cta {
  grid-column: 1 / 3;
  text-align: center;
  margin-top: 10px;
}
.empresa-cta p {
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 auto 22px;
  max-width: 720px;
  line-height: 1.35;
}

.easy {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 65px 7vw;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.easy .container {
  width: 100%;
}
.easy h2 {
  font-size: clamp(26px, 4.5vw, 44px);
  margin: 0 0 48px;
  font-weight: 900;
}
.flow {
  display: grid;
  grid-template-columns: 1fr 260px 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
  min-height: 170px;
}
.flow-word {
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 900;
  transition: 0.4s;
  min-height: 100px;
  line-height: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.flow-sub {
  font-size: 24px;
  margin-top: 14px;
}
.lucy-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lucy-center::before,
.lucy-center::after {
  content: "";
  height: 3px;
  background: #fff;
  flex: 1;
  position: absolute;
  width: 92px;
  top: 50%;
}
.lucy-center::before {
  right: 178px;
}
.lucy-center::after {
  left: 178px;
}
.lucy-center img {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  padding: 6px;
  z-index: 2;
}

.providers {
  padding-top: 80px;
  text-align: center;
}
.providers .lead {
  margin: auto;
  max-width: 950px;
}
.provider-content {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
  text-align: left;
}
.map-wrap {
  position: relative;
  aspect-ratio: 1000 / 1100;
  width: 100%;
  max-width: 590px;
  margin: auto;
}
.map-wrap .map {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pro-dot {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
/* Posiciones de los .pro-dot: definidas en src/js/proveedores.js (arreglo DOTS) */

.count-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
}
.counter {
  font-size: clamp(46px, 7.5vw, 78px);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -3px;
}
.count-label {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 900;
  line-height: 0.95;
}

.slider-card {
  border: 2px solid #111;
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.slide-track {
  display: flex;
  transition: transform 0.55s ease;
}
.slide-track img {
  min-width: 100%;
  height: auto;
}
.tabs {
  text-align: center;
  margin-top: 18px;
  font-size: 20px;
}
.tabs button {
  border: 0;
  background: none;
  color: #777;
  font-size: 20px;
  cursor: pointer;
  padding: 12px 8px;
  min-height: 44px;
}
.tabs button.active {
  color: var(--blue);
  font-weight: 900;
}

.logo-marquee {
  margin-top: 82px;
  overflow: hidden;
  padding-top: 18px;
}
.logo-marquee h3 {
  font-size: clamp(22px, 3vw, 32px);
  text-align: center;
  margin: 10px 0 24px;
  font-weight: 900;
  line-height: 1.12;
}
.logo-marquee p {
  text-align: center;
  font-size: 18px;
  margin: 0 0 25px;
}
.marquee-row {
  display: flex;
  gap: 45px;
  align-items: center;
  width: max-content;
  margin: 18px 0;
  animation: marquee 28s linear infinite;
}
.marquee-row.reverse {
  animation-direction: reverse;
}
.logo-box {
  height: 50px;
  min-width: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-box img {
  max-height: 46px;
  max-width: 190px;
  object-fit: contain;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.proveedores-nota {
  display: flex;
  align-items: center;
  max-width: 900px;
  margin: 44px auto 0;
}
.proveedores-nota img {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  object-fit: contain;
  position: relative;
  z-index: 2;
}
.proveedores-nota p {
  margin: 0 0 0 -30px;
  background: #e9e9e9;
  border-radius: 40px;
  padding: 22px 32px 22px 54px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}
@media (max-width: 580px) {
  .proveedores-nota img {
    width: 48px;
    height: 48px;
  }
  .proveedores-nota p {
    margin-left: -22px;
    padding: 16px 20px 16px 38px;
    font-size: 15px;
  }
}

.lucy-section {
  background: var(--grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lucy-grid {
  display: block;
}
.lucy-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 34px;
}
.lucy-copy {
  max-width: 660px;
}
.lucy-intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.lucy-intro .lead-white {
  font-size: 22px;
  line-height: 1.32;
  margin: 0 auto 16px;
  color: #fff;
}
.lucy-intro .small-title {
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}
.lucy-bottom {
  margin-top: 28px;
}

.lucy-phone {
  position: relative;
}
/* Chat anclado a la pantalla del teléfono: recorta arriba/abajo (clip-path) pero deja
   que los globos sobresalgan por los lados. Ajusta left/top/width/height para calzar. */
.chat-screen {
  position: absolute;
  left: 12.3%;
  top: 28%;
  width: 26%;
  height: 50%;
  overflow: visible;
  clip-path: inset(0 -100vw 0 -100vw);
}
.chat-stack {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3.5%;
}
.chat-msg {
  display: flex;
}
.chat-msg.left {
  justify-content: flex-start;
}
.chat-msg.right {
  justify-content: flex-end;
}
.chat-msg img {
  height: auto;
  opacity: 0;
  transform: translateY(25%);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.chat-msg.show img {
  opacity: 1;
  transform: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: 10px 28px;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  margin-bottom: 30px;
  position: relative;
}
.spark {
  position: absolute;
  color: #6df3ff;
  font-size: 26px;
  animation: sparkle 1.8s infinite ease-in-out;
}
.s1 {
  left: -34px;
  top: -8px;
}
.s2 {
  right: -35px;
  top: 10px;
  animation-delay: 0.4s;
}
.s3 {
  right: -58px;
  bottom: -8px;
  animation-delay: 0.8s;
}
@keyframes sparkle {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.8) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.25) rotate(15deg);
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px 0;
}
.info-card {
  background: #0e56f5;
  border-radius: 10px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
}
.info-card img {
  width: 48px;
}
.info-card h4 {
  margin: 0 0 4px;
  font-size: 18px;
}
.info-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.22;
}
.number-img {
  width: min(420px, 100%);
  margin: 36px auto 36px;
}
.lucy-solicita {
  text-align: center;
  max-width: 760px;
  margin: 10px auto 0;
}
.lucy-solicita h3 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  margin: 0 0 16px;
}
.lucy-solicita p {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 620px;
}
.lucy-solicita .solicita-wa {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 900;
  margin-top: 26px;
}

.testi-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.testi-hero img {
  width: 100%;
  border-radius: 22px;
}
.testi-carousel {
  position: relative;
  margin-top: 70px;
}
.testi-grid {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 4px;
  scrollbar-width: thin;
}
.testi-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.testi-nav.prev {
  left: -10px;
}
.testi-nav.next {
  right: -10px;
}
.testi-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.testi-card {
  position: relative;
  flex: 0 0 calc((100% - 66px) / 4);
  scroll-snap-align: start;
  border: 1px solid #e4e4e4;
  border-radius: 20px;
  padding: 34px 22px 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.testi-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  height: 32px;
  width: auto;
}
.testi-foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
.testi-nombre {
  font-size: 19px;
  font-weight: 900;
  margin: 0 0 2px;
}
.testi-rol {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 14px;
}
.testi-texto {
  font-size: 15px;
  line-height: 1.4;
  color: #222;
  margin: 0 0 14px;
}
.testi-vermas {
  border: 0;
  background: none;
  padding: 0;
  margin-top: auto;
  align-self: flex-end;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.testi-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.testi-modal[hidden] {
  display: none;
}
.testi-modal-box {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 40px 34px 34px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}
.testi-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.testi-modal-badge {
  height: 32px;
  width: auto;
  margin: 0 auto 18px;
}
.testi-modal-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}
.testi-modal-box h3 {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 2px;
}
.testi-modal-texto {
  font-size: 17px;
  line-height: 1.5;
  color: #222;
  margin: 18px 0 0;
}

@media (max-width: 900px) {
  .prepared-grid,
  .services-grid,
  .digital-buttons {
    grid-template-columns: 1fr 1fr;
  }
  .sol-head,
  .digital-wrap,
  .provider-content,
  .lucy-top,
  .testi-head {
    grid-template-columns: 1fr;
  }
  .testi-card {
    flex-basis: calc((100% - 22px) / 2);
  }
  .vertical-strip {
    justify-content: flex-start;
    overflow: auto;
  }
  /* En móvil: apilar en columna (evita la columna implícita del grid-column 1/3),
     el texto va primero y la tira baja debajo (order), centrada */
  .digital-wrap {
    display: flex;
    flex-direction: column;
  }
  .digital-strip {
    overflow: auto;
    justify-content: safe center;
    order: 1;
  }
  .digital-buttons {
    order: 2;
  }
  .empresa-cta {
    order: 3;
  }
  .flow {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .lucy-center::before,
  .lucy-center::after {
    display: none;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .lucy-top {
    gap: 26px;
  }
  .map-wrap .map {
    width: 100%;
  }
  .pro-dot {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 580px) {
  .prepared-grid,
  .services-grid,
  .digital-buttons {
    grid-template-columns: 1fr;
  }
  .testi-card {
    flex-basis: 85%;
  }
}
