/* ================================================================
   Página de Servicios
   ================================================================ */
.svc {
  --navy: #010050;
  --navy-text: #06023a;
  --blue: #1e3a8a;
  --orange: #ff7a1a;
  --orange-dark: #ff7300;
  --gray: #4b5563;
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  background: #fff;
  overflow: hidden;
  padding-bottom: 6rem;
}

.svc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Carrusel principal ---------- */
.svc-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 533;
  margin-top: var(--header-h, 101px);
  overflow: hidden;
  background: var(--navy);
  touch-action: pan-y;
}
.svc-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}
.svc-hero__slide.is-active { opacity: 1; }
.svc-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.svc-hero__arrow:hover { background: rgba(0, 0, 0, 0.55); transform: translateY(-50%) scale(1.06); }
.svc-hero__arrow--prev { left: 1.25rem; }
.svc-hero__arrow--next { right: 1.25rem; }
.svc-hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.svc-hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.3s;
}
.svc-hero__dot.is-active { background: var(--orange); }

/* ---------- Introducción ---------- */
.svc-intro {
  text-align: center;
  max-width: 900px;
  margin: 4rem auto 3rem;
}
.svc-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.svc-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1rem;
}
.svc-title span { color: var(--orange); }
.svc-lead {
  color: var(--gray);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  margin: 0 auto;
}
.svc-lead strong { color: var(--navy); }

/* ---------- Franja de confianza ---------- */
.svc-trust {
  list-style: none;
  margin: 0 auto 6rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.svc-trust li {
  background: #f8f9ff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
}
.svc-trust strong {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
}
.svc-trust span { color: var(--gray); font-size: 0.88rem; line-height: 1.45; }
.svc-trust__logo { align-items: center; }
.svc-trust__logo img { max-width: 160px; height: auto; }

/* ---------- Filas de servicio ---------- */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 7rem;
}
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  scroll-margin-top: 120px;
}
.svc-row--reverse .svc-row__media { order: 2; }
.svc-row__media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.1) 0 10px 30px -10px;
}
.svc-row__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-row__media:hover img { transform: scale(1.03); }

.svc-row__content,
.svc-row__text,
.svc-checks li {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.svc-row__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.svc-row__tagline {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.svc-row__tagline--orange { color: var(--orange); }
.svc-row__tagline--blue { color: var(--blue); }
.svc-row__text {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1.75rem;
}

.svc-checks {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.7rem 1.5rem;
}
.svc-checks li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--navy-text);
}
.svc-checks li::before {
  content: "✓";
  flex-shrink: 0;
  font-weight: 900;
}
.svc-checks--blue li::before { color: var(--blue); }
.svc-checks--orange li::before { color: var(--orange); }

/* Módulos SAINT */
.svc-modules {
  margin-top: -4.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.svc-modules a {
  flex: 0 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid rgba(255, 122, 26, 0.25);
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.svc-modules a:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -12px rgba(255, 122, 26, 0.45); }
.svc-modules img { width: 100%; height: 90px; object-fit: contain; display: block; }

/* ---------- Botones ---------- */
.svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.svc-actions--center { justify-content: center; }
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.svc-btn:hover { transform: translateY(-2px); }
.svc-btn--wa { background: var(--wa); color: #fff; }
.svc-btn--wa:hover { background: var(--wa-dark); box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.7); }
.svc-btn--primary {
  background: linear-gradient(var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  box-shadow: rgba(255, 122, 26, 0.53) 0 20px 40px -15px;
}
.svc-btn--primary:hover { box-shadow: 0 25px 50px -15px rgba(255, 122, 26, 0.55); }
.svc-btn--ghost { color: var(--navy); border: 1px solid rgba(1, 0, 80, 0.2); }
.svc-btn--ghost:hover { border-color: var(--navy); }

/* ---------- Asesorías ---------- */
.svc-advisory {
  background: var(--navy);
  margin-top: 7rem;
  padding: 6rem 1.5rem;
  scroll-margin-top: 100px;
}
.svc-advisory__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.svc-advisory h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.svc-advisory p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}
.svc-advisory ul {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  text-align: left;
}
.svc-advisory li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
}
.svc-advisory li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #facc15;
  color: var(--navy);
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Clientes ---------- */
.svc-clients { margin-top: 5rem; text-align: center; }
.svc-clients h2 {
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 2rem;
}
/* ---------- Llamado final ---------- */
.svc-cta {
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
  padding: 3.5rem 2rem;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.08) 0%, rgba(15, 42, 84, 0.06) 100%);
  border: 1px solid rgba(255, 122, 26, 0.25);
}
.svc-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.133) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.svc-cta h2 {
  position: relative;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.svc-cta p {
  position: relative;
  color: var(--gray);
  font-size: 1rem;
  margin: 0 auto 2rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- Animaciones de aparición ---------- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-slow { transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.title-reveal {
  display: inline-block;
  clip-path: inset(100% 0 0 0);
  transform: translateY(30px);
  opacity: 0;
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease-out;
}
.subtitle-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease-out 0.4s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.anim-fade-up.is-visible,
.title-reveal.is-visible,
.subtitle-fade.is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .svc-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .svc-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .svc-row--reverse .svc-row__media { order: 0; }
  .svc-row__title { font-size: 1.5rem; }
  .svc-list { gap: 3.5rem; }
  .svc-modules { margin-top: -1.5rem; flex-wrap: wrap; gap: 0.75rem; }
  .svc-modules a { flex: 1 1 40%; }
  .svc-hero__arrow { width: 38px; height: 38px; font-size: 1.2rem; }
  .svc-hero__arrow--prev { left: 0.6rem; }
  .svc-hero__arrow--next { right: 0.6rem; }
  .svc-hero__dots { bottom: 8px; }
  .svc-intro { margin-top: 2.5rem; }
  .svc-trust { margin-bottom: 3.5rem; }
  .svc-actions .svc-btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .svc-modules a { flex: 1 1 100%; }
  .svc-trust { grid-template-columns: 1fr; }
}

/* Usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up, .anim-slow, .title-reveal, .subtitle-fade {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
  .svc-hero__slide { transition: none; }
  .svc-row__media:hover img, .svc-btn:hover, .svc-modules a:hover, .svc-clients a:hover { transform: none; }
}
