/* ============================================================
   THM — Servicios en filas (servicios.html)
   Una fila por servicio: ilustración + lo esencial (título, una
   frase, tres puntos y CTA), alternando el lado de la imagen.
   Las ilustraciones son HTML/CSS: pesan cero y se traducen.
   ============================================================ */

.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-12);
  max-width: 1100px;
  margin: 0 auto var(--space-20);
}

.svc-row:last-child {
  margin-bottom: 0;
}

/* Zigzag: en las filas pares la imagen va a la derecha */
.svc-row:nth-of-type(even) .svc-row__visual {
  order: 2;
}

.svc-row__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.svc-row__tag {
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-1);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
}

.svc-row__text h3 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
}

.svc-row__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.svc-row__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.svc-row__points li {
  display: flex;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.svc-row__points li::before {
  content: '✓';
  color: var(--color-success-strong);
  font-weight: 800;
}

.svc-row__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.svc-row__shot {
  width: 100%;
}

.svc-row__caption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Agente: conversación de WhatsApp a deshoras ---------- */
.svc-chat {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: #efeae2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(15, 23, 42, 0.08));
}

.svc-chat__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: #075e54;
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.svc-chat__avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent-1);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-full);
}

.svc-chat__time {
  margin-left: auto;
  font-weight: var(--weight-regular, 400);
  opacity: 0.85;
}

.svc-chat__msg {
  max-width: 82%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: #111b21;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.svc-chat__msg--in {
  align-self: flex-start;
  background: #ffffff;
}

.svc-chat__msg--out {
  align-self: flex-end;
  background: #d9fdd3;
}

.svc-chat__ok {
  align-self: center;
  margin-top: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: #ffffff;
  color: var(--color-success-strong);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
}

/* ---------- Publicidad: embudo de anuncio a cita ---------- */
.svc-funnel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.svc-funnel__step {
  width: var(--w);
  padding: var(--space-3) var(--space-4);
  background: rgba(79, 70, 229, 0.12);
  color: var(--color-accent-1);
  font-weight: var(--weight-semibold);
  text-align: center;
  border-radius: var(--radius-md);
}

.svc-funnel__step:nth-child(2) { background: rgba(79, 70, 229, 0.2); }
.svc-funnel__step:nth-child(3) { background: rgba(79, 70, 229, 0.3); }

.svc-funnel__step--goal {
  background: var(--color-accent-1);
  color: #ffffff;
  box-shadow: var(--glow-accent);
}

.svc-funnel__note {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  text-align: center;
}

/* ---------- Contenido: muro de una red social ---------- */
.svc-feed {
  width: 100%;
  max-width: 360px;
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(15, 23, 42, 0.08));
}

.svc-feed__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.svc-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.svc-feed__tile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  color: #ffffff;
  text-align: center;
  border-radius: 4px;
}

.svc-feed__tile b {
  font-size: var(--text-xl);
  line-height: 1;
}

.svc-feed__tile em {
  font-style: normal;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}

/* Fondos oscuros: el texto blanco pasa AA en todos */
.svc-feed__tile--1 { background: linear-gradient(135deg, #4338ca, #0e7490); }
.svc-feed__tile--2 { background: linear-gradient(135deg, #be185d, #7c3aed); }
.svc-feed__tile--3 { background: linear-gradient(135deg, #0f766e, #1d4ed8); }
.svc-feed__tile--4 { background: linear-gradient(135deg, #0f172a, #4338ca); }
.svc-feed__tile--5 { background: linear-gradient(135deg, #b45309, #be123c); }
.svc-feed__tile--6 { background: linear-gradient(135deg, #047857, #0e7490); }

/* ---------- Proceso: línea de 4 pasos ---------- */
.svc-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  max-width: 1100px;
  margin: 0 auto;
}

/* Línea que une los números */
.svc-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
  opacity: 0.35;
}

.svc-steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.svc-steps__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2);
  background: var(--color-accent-1);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 6px var(--color-bg), var(--glow-accent);
}

.svc-steps__item h3 {
  font-size: var(--text-lg);
}

.svc-steps__item p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  .svc-row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-16);
  }

  .svc-row:nth-of-type(even) .svc-row__visual { order: 0; }
  .svc-row__visual { padding: var(--space-5); }
  .svc-row__text h3 { font-size: var(--text-2xl); }

  .svc-steps {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .svc-steps::before {
    top: 24px;
    bottom: 24px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--color-accent-1), var(--color-accent-2));
  }

  .svc-steps__item {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: var(--space-4);
    align-items: start;
    text-align: left;
  }

  .svc-steps__num { grid-row: span 2; margin-bottom: 0; }
}
