/* ============================================================
   servicios.css — Páginas transaccionales · Digital by KMI
   Hereda variables de main.css. Solo define lo propio.
   ============================================================ */

/* ── Variables alineadas con casos.css + main.css ─────────── */
:root {
  --srv-crema:       #f7efe9;
  --srv-crema-2:     #f0e4da;
  --srv-borde:       #edddd3;
  --srv-rosa:        #dd7786;
  --srv-oliva:       #8a8c46;
  --srv-violeta:     #a277dd;
  --srv-oscuro:      #2a2520;
  --srv-oscuro-2:    #3d342c;
  --srv-gris:        #5a524a;
  --srv-gris-lite:   #9a9086;
  --srv-white:       #fff;

  --srv-radius-md:   12px;
  --srv-radius-lg:   20px;
  --srv-radius-pill: 50px;

  --srv-shadow-hover:0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
}

/* ── Scope — todo dentro de .srv-page ─────────────────────── */
.srv-page * { box-sizing: border-box; }

/* ── Secciones base ──────────────────────────────────────── */
.srv-section         { padding: 5rem 5%; }
.srv-section--crema  { background: var(--srv-crema-2); }
.srv-section--white  { background: var(--srv-white); }

.srv-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.srv-section__eyebrow {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--srv-rosa);
  font-weight: 700;
  margin-bottom: .6rem;
}
/* Cuando el eyebrow precede a un título centrado, se centra también */
.srv-section__eyebrow:has(+ .srv-section__title--center) {
  display: block;
  text-align: center;
}

.srv-section__title {
  font-family: 'More Sugar', cursive;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--srv-oscuro);
  margin: 0 0 1.2rem;
}
.srv-section__title--center { text-align: center; }

/* ── HERO ────────────────────────────────────────────────── */
.srv-hero {
  background: var(--srv-oscuro);
  padding: 8rem 5% 4rem; /* 8rem top = clearfix para nav fixed */
  position: relative;
  overflow: hidden;
}
.srv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 75% 50%, rgba(221,119,134,.12) 0%, transparent 65%),
    radial-gradient(ellipse 35% 55% at 10% 85%, rgba(162,119,221,.07) 0%, transparent 65%);
  pointer-events: none;
}

.srv-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.srv-hero__eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--srv-rosa);
  border: 1.5px solid var(--srv-rosa);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

/* P grande arriba del H1 */
.srv-hero__impact {
  font-family: 'now', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--srv-white);
  margin: 0 0 .6rem;
  max-width: 560px;
}

.srv-hero__title {
  font-family: 'now', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255,255,255,.65);
  margin: 0 0 1.4rem;
  letter-spacing: .02em;
}

.srv-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

/* ── Botón primario (usado en todo el sitio) ─────────────── */
.srv-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--srv-rosa);
  color: var(--srv-white);
  font-family: 'now', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .85rem 1.7rem;
  border-radius: var(--srv-radius-pill);
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.srv-btn-primary:hover {
  background: #c95f6e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(221,119,134,.38);
}

/* ── Hero platforms strip (logos de redes) ───────────────── */
.srv-hero__platforms {
  width: 100%;
  margin-top: 3.5rem;
  padding: 2rem 5%;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.srv-hero__platforms-label {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  font-weight: 600;
  white-space: nowrap;
  margin-right: 1rem;
}
.srv-hero__platforms-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  flex: 1;
}
.srv-hero__platforms-logos img {
  height: 55px;
  width: 150px;
  object-fit: contain;
  opacity: .5;
  filter: brightness(0) invert(1);
  transition: opacity .2s;
}
.srv-hero__platforms-logos img:hover { opacity: .85; }

/* ── QUÉ INCLUYE ──────── */
.srv-incluye__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.srv-incluye__intro-text {
  font-size: .97rem;
  color: var(--srv-gris);
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
}
.srv-incluye__h2 {
  font-family: 'now', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--srv-oscuro);
  text-align: center;
  margin: 0 0 .6rem;
  line-height: 1.2;
}
.srv-incluye__sub {
  text-align: center;
  font-size: .92rem;
  color: var(--srv-gris-lite);
  font-weight: 300;
  margin: 0 0 3rem;
}
.srv-incluye__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.srv-incluye__col {
  background: var(--srv-crema);
  border: 1px solid var(--srv-borde);
  border-radius: var(--srv-radius-md);
  padding: 1.8rem;
}
.srv-incluye__col-title {
  font-family: 'now', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--srv-oscuro);
  margin: 0 0 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--srv-rosa);
  display: inline-block;
}
.srv-incluye__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.srv-incluye__list li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--srv-borde);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.srv-incluye__list li:last-child { border-bottom: none; }
.srv-incluye__list li::before {
  content: '›';
  color: var(--srv-rosa);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.srv-incluye__item {
  font-family: 'now', sans-serif;
  font-size: .86rem;
  font-weight: 400;
  color: var(--srv-gris);
  margin: 0;
  line-height: 1.4;
}

/* ── DIFERENCIAL ZIGZAG ──────────────────── */
.srv-zigzag {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  margin-top: 1rem;
}
.srv-zigzag__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.srv-zigzag__row--reverse .srv-zigzag__text  { order: 2; }
.srv-zigzag__row--reverse .srv-zigzag__image { order: 1; }

.srv-zigzag__title {
  font-family: 'now', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--srv-oscuro);
  margin: 0 0 1rem;
  line-height: 1.25;
}
.srv-zigzag__text p {
  font-size: .92rem;
  color: var(--srv-gris);
  line-height: 1.7;
  font-weight: 300;
  margin: 0 0 1rem;
}
.srv-zigzag__text p strong {
  font-weight: 800;
  color: var(--srv-oscuro);
}
.srv-zigzag__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--srv-rosa);
  font-family: 'now', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: .5rem;
  transition: gap .2s;
}
.srv-zigzag__link:hover { gap: .7rem; }

.srv-zigzag__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--srv-radius-lg);
  background: linear-gradient(135deg, var(--srv-rosa) 0%, var(--srv-violeta) 100%);
  overflow: hidden;
  position: relative;
}
.srv-zigzag__placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── PROCESO SNAKE — línea continua con curvas ───────────── */
.srv-proceso-snake {
  --snake-color: var(--srv-rosa);
  --snake-w: 3px;
  --snake-top: 22px; /* centro vertical del número (44px / 2) */

  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.srv-proceso-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 78px;
  position: relative;
}
.srv-proceso-row:last-child { margin-bottom: 0; }

/* Visualmente invierte la fila 2 (06-05-04) sin tocar el HTML */
.srv-proceso-row--2 { flex-direction: row-reverse; }

.srv-proceso-step {
  width: 30%;
  position: relative;
}

.srv-proceso-step__num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--snake-color);
  color: var(--srv-white);
  font-family: 'now', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px rgba(221,119,134,.3);
}

.srv-proceso-step__title {
  font-family: 'now', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: var(--srv-oscuro);
  margin: 0 0 .55rem;
  line-height: 1.32;
}
.srv-proceso-step p {
  font-size: .84rem;
  color: var(--srv-gris);
  line-height: 1.62;
  font-weight: 300;
  margin: 0;
}

/* Línea horizontal de cada fila — conecta los 3 números */
.srv-proceso-row::before {
  content: '';
  position: absolute;
  top: var(--snake-top);
  height: var(--snake-w);
  background: var(--snake-color);
  left: 22px;
  right: calc(30% - 22px);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

/* Curva derecha: fila 1 → fila 2 (conecta 03 con 04) */
.srv-proceso-row--1::after {
  content: '';
  position: absolute;
  top: var(--snake-top);
  right: -50px;
  width: calc(30% + 32px);
  height: calc(100% + 78px);
  border-top: var(--snake-w) solid var(--snake-color);
  border-right: var(--snake-w) solid var(--snake-color);
  border-radius: 0 28px 0 0;
  z-index: 1;
  pointer-events: none;
}

/* La línea de la fila 2 se extiende para encontrarse con esa curva */
.srv-proceso-row--2::before {
  right: -50px;
}

/* Curva izquierda: fila 2 → fila 3 (conecta 06 con 07) */
.srv-proceso-row--2::after {
  content: '';
  position: absolute;
  top: var(--snake-top);
  left: -50px;
  width: calc(30% + 32px);
  height: calc(100% + 78px);
  border-top: var(--snake-w) solid var(--snake-color);
  border-left: var(--snake-w) solid var(--snake-color);
  border-radius: 28px 0 0 0;
  z-index: 1;
  pointer-events: none;
}

/* La línea de la fila 3 se extiende para encontrarse con esa curva */
.srv-proceso-row--3::before {
  left: -50px;
}

/* ── CTA CIERRE ──────────────────────────────────────────── */
.srv-cta-section {
  padding: 5rem 5%;
  background: var(--srv-crema-2);
}
.srv-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--srv-oscuro) 0%, var(--srv-oscuro-2) 100%);
  border-radius: 28px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.srv-cta-inner::before {
  content: '';
  position: absolute;
  top: -60px; right: 80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(221,119,134,.1);
  pointer-events: none;
}
.srv-cta-text          { position: relative; z-index: 1; }
.srv-cta-text h2 {
  font-family: 'now', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--srv-white);
  margin: 0 0 .65rem;
  line-height: 1.2;
}
.srv-cta-text h2 em    { color: var(--srv-rosa); font-style: normal; }
.srv-cta-text p {
  font-size: .9rem;
  color: rgba(255,255,255,.48);
  margin: 0;
  font-weight: 300;
  line-height: 1.65;
}
.srv-cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--srv-rosa);
  color: var(--srv-white);
  font-family: 'now', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 1rem 2.2rem;
  border-radius: var(--srv-radius-pill);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(221,119,134,.38);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.srv-cta-btn:hover {
  background: #c95f6e;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(221,119,134,.5);
}

/* ============================================================
   RESPONSIVE — agrupado por breakpoint
   ============================================================ */

@media (max-width: 1000px) {
  .srv-hero__inner { grid-template-columns: 1fr; }
  .caso-hero__image { display: none; }
  .srv-hero__inner > div:first-child {
    text-align: center;
  }
  .srv-hero__impact {
    margin-left: auto;
    margin-right: auto;
  }
  .srv-hero__ctas {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .srv-proceso-snake {
    background: var(--srv-crema-2);
    border-radius: 24px;
    padding: 1.5rem;
  }
  .srv-proceso-row,
  .srv-proceso-row--2 {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .srv-proceso-row::before,
  .srv-proceso-row--1::after,
  .srv-proceso-row--2::after { display: none; }
  .srv-proceso-step {
    width: 100%;
    background: var(--srv-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--srv-shadow-hover);
  }
  .srv-incluye__grid { grid-template-columns: repeat(2, 1fr); }  
}

@media (max-width: 800px) {
  .srv-zigzag__row,
  .srv-zigzag__row--reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .srv-zigzag__row--reverse .srv-zigzag__text  { order: 1; }
  .srv-zigzag__row--reverse .srv-zigzag__image { order: 2; }
}

@media (max-width: 700px) {
  .srv-section            { padding: 3.5rem 5%; }
  .srv-hero               { padding: 7rem 5% 3rem; }
  .srv-incluye__grid      { grid-template-columns: 1fr; }
  .srv-hero__platforms    { gap: 1rem; padding: 1.5rem 5%; }
  .srv-hero__platforms-logos      { gap: 2rem; }
  .srv-hero__platforms-logos img  { height: 38px; width: 110px; }
  .srv-cta-inner          { grid-template-columns: 1fr; text-align: center; padding: 2.5rem 1.75rem; }
  .srv-cta-btn            { margin: 0 auto; }
}

/* ── NUESTRO MÉTODO — cards con hover-flip ─── */
.srv-objeciones__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.srv-objecion-card {
  position: relative;
  background: var(--srv-white);
  border-radius: 16px;
  box-shadow: var(--srv-shadow-hover);
  overflow: hidden;
  transition: transform .25s;
}
.srv-objecion-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--srv-rosa), var(--srv-violeta));
}

.srv-objecion-card__inner {
  position: relative;
  min-height: 150px;
  padding: 1.6rem 1.4rem;
}

.srv-objecion-card__q,
.srv-objecion-card__a {
  position: absolute;
  inset: 1.6rem 1.4rem;
  margin: 0;
  display: flex;
  align-items: center;
  transition: opacity .3s ease;
}

.srv-objecion-card__q {
  font-family: 'now', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  color: var(--srv-oscuro);
  line-height: 1.4;
  opacity: 1;
}

.srv-objecion-card__a {
  font-size: .82rem;
  color: var(--srv-gris-lite);
  line-height: 1.55;
  font-weight: 300;
  text-align: center;
  justify-content: center;
  opacity: 0;
}

/* Hover solo en dispositivos que realmente soportan hover (desktop) */
@media (hover: hover) {
  .srv-objecion-card:hover { transform: translateY(-4px); }
  .srv-objecion-card:hover .srv-objecion-card__q { opacity: 0; }
  .srv-objecion-card:hover .srv-objecion-card__a { opacity: 1; }
}

/* En touch/mobile: mostrar todo apilado, sin hover */
@media (hover: none) {
  .srv-objecion-card__inner {
    min-height: auto;
    padding: 1.4rem;
  }
  .srv-objecion-card__q,
  .srv-objecion-card__a {
    position: static;
    inset: auto;
    opacity: 1;
    display: block;
    text-align: left;
  }
  .srv-objecion-card__q { margin-bottom: .5rem; }
}

@media (max-width: 1000px) {
  .srv-objeciones__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .srv-objeciones__grid { grid-template-columns: 1fr; }
}

/* ── EQUIPO — fondo oscuro ────────────────── */
.srv-equipo-section {
  background: var(--srv-oscuro);
}

.srv-equipo {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 4rem;
  align-items: center;
}

.srv-equipo__title {
  font-family: 'now', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--srv-white);
  line-height: 1.2;
  margin: 0 0 1.2rem;
}

.srv-equipo__lead {
  font-size: .95rem;
  color: rgba(255,255,255,.58);
  line-height: 1.72;
  font-weight: 300;
  margin: 0 0 1.8rem;
  max-width: 480px;
}

.srv-equipo__people {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.srv-equipo__person {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  font-weight: 300;
}
.srv-equipo__person strong {
  color: var(--srv-white);
  font-weight: 700;
}

.srv-equipo__image {
  border: 6px solid var(--srv-white);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--srv-oscuro-2);
}
.srv-equipo__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .srv-equipo {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .srv-equipo__image { order: -1; }
}