/* ═══════════════════════════════════════════════════════
   SERVICIOS — estilos de las páginas de servicio
   Reutiliza tokens.css + base.css + app.css (nav, menú, FAQ,
   botones, s-label). Aquí solo van las secciones propias.
   ═══════════════════════════════════════════════════════ */

/* ─── REVEAL ON SCROLL (gated por .js → si el JS falla, todo visible) ── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ─── HERO ───────────────────────────────────────────── */
.svc-hero {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: var(--white);
  min-height: 92vh;
  padding: calc(var(--nav-h) + clamp(80px, 12vh, 160px)) var(--gutter) clamp(60px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-hero-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.svc-hero .s-label { color: rgba(255,255,255,0.6); }
.svc-hero .s-label::before { background: var(--white); }

.svc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 28px 0 0;
  max-width: 16ch;
}

.svc-hero-title em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.35em;
  line-height: 1;
}

.svc-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 56ch;
  margin: 32px 0 0;
}

.svc-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

/* CTA claro sobre fondo oscuro */
.svc-cta-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  border: 1px solid var(--white);
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}
.svc-cta-light:hover { transform: translateY(-2px); opacity: 0.92; }
.svc-cta-light span { transition: transform 0.2s var(--ease-out); }
.svc-cta-light:hover span { transform: translateX(4px); }

.svc-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.svc-cta-ghost:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

/* ─── BLOQUE GENÉRICO (top: label + heading) ─────────── */
.svc-section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) var(--gutter);
}
.svc-section--light { background: var(--bg); color: var(--text); border-top: 1px solid var(--border); }
.svc-section--dark  { background: var(--dark); color: var(--white); }

.svc-inner { width: 100%; max-width: var(--max-w); margin: 0 auto; }

.svc-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.svc-section--dark .s-label { color: rgba(255,255,255,0.6); }
.svc-section--dark .s-label::before { background: var(--white); }

.svc-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.svc-heading em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.35em;
}

/* ─── QUÉ INCLUYE — grid de features ─────────────────── */
.svc-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.svc-feature {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.svc-feature-num {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.svc-feature-title {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
}

.svc-feature-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ─── PROCESO — 3 pasos ──────────────────────────────── */
.svc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.svc-step {
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}

.svc-step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: rgba(255,255,255,0.35);
  line-height: 1;
}

.svc-step-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
}

.svc-step-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.68);
  margin-top: auto;
}

/* ─── CTA FINAL ──────────────────────────────────────── */
.svc-final {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: var(--white);
  padding: clamp(90px, 14vh, 180px) var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.svc-final-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.svc-final-title em { font-family: var(--font-script); font-style: normal; font-size: 1.35em; }

/* fila de CTAs centrada en el bloque final (usada en /nosotros/) */
.svc-final-cta-row { justify-content: center; margin-top: 8px; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-top { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
  .svc-features { grid-template-columns: 1fr; }
  .svc-feature { padding: 28px; }
  .svc-steps { grid-template-columns: 1fr; }
  .svc-step { min-height: 0; padding: 28px; }
  .svc-hero { min-height: 80vh; }
}
