/* ── Design Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Surface — grafito profundo, alejado del azul */
  --bg-deep:        #0E1117;
  --bg-surface:     #161B22;
  --bg-card:        #1C2230;

  /* Acento mineral .NET (verde sobrio, no Tailwind green) */
  --accent-blue:    #4A9D7B;
  --accent-blue-l:  #6FB597;
  --accent-glow:    rgba(74,157,123,0.10);

  /* Tonos secundarios (en uso por compatibilidad) */
  --accent-gold:    #C9A95C;
  --accent-green:   #4A9D7B;

  /* Texto */
  --text-primary:   #ECEEF1;
  --text-secondary: #9CA3AF;
  --text-muted:     #6B7280;

  /* Línea */
  --border:         rgba(255,255,255,0.06);
  --rule:           rgba(255,255,255,0.10);

  --radius:         14px;

  /* Tipografía — Geist como única familia (display + body), Geist Mono para acento técnico */
  --font-display:   'Geist', system-ui, -apple-system, sans-serif;
  --font-body:      'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:      'Geist Mono', ui-monospace, 'SF Mono', monospace;
}

/* ── Base ────────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body.public-page {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
}

body.public-page h1,
body.public-page h2,
body.public-page h3,
body.public-page h4 {
  font-family: var(--font-display);
  font-feature-settings: 'ss01';
  letter-spacing: -0.025em;
}

body.public-page a { text-decoration: none; }

/* ── Scroll progress ─────────────────────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent-blue);
  z-index: 9999;
  width: 0%;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ── Keyframes ───────────────────────────────────────────────────────────────── */
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ── Scroll Reveal ───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1), transform 0.65s cubic-bezier(.22,1,.36,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.18s; }
.delay-4 { transition-delay: 0.24s; }
.delay-5 { transition-delay: 0.30s; }

/* ── Section helpers ─────────────────────────────────────────────────────────── */
.section-dark    { background: var(--bg-deep); }
.section-surface { background: var(--bg-surface); }

.section-pad     { padding: 120px 0; }
@media (max-width: 768px) { .section-pad { padding: 72px 0; } }

/* Tag pequeño tipo eyebrow editorial: línea + label en mono */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-blue);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-blue);
  color: #0E1117 !important;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.25s;
  font-family: var(--font-body);
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--accent-blue-l);
  box-shadow: 0 8px 28px rgba(74,157,123,0.25);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  font-family: var(--font-body);
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1f7a3e;
  color: #fff !important;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.25s;
  font-family: var(--font-body);
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn-whatsapp:hover {
  background: #2a8f4d;
  box-shadow: 0 8px 28px rgba(31,122,62,0.3);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero-section {
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  /* Ruido sutil + degradado muy contenido — sin glow circular */
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(74,157,123,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, #0B0E14 100%);
}
/* Mantengo selectores legados para no romper el HTML existente */
.hero-glow { display: none; }
.hero-grid { display: none; }

.hero-badge  { animation: heroEntrance 0.6s cubic-bezier(.22,1,.36,1) 0.05s both; }
.hero-h1     { animation: heroEntrance 0.7s cubic-bezier(.22,1,.36,1) 0.15s both; }
.hero-sub    { animation: heroEntrance 0.7s cubic-bezier(.22,1,.36,1) 0.30s both; }
.hero-ctas   { animation: heroEntrance 0.7s cubic-bezier(.22,1,.36,1) 0.42s both; }
.hero-photo  { animation: scaleIn 0.8s cubic-bezier(.22,1,.36,1) 0.20s both; }

/* Microcredibilidad como filete horizontal — sustituye las pills */
.hero-badge {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 !important;
  margin-bottom: 32px !important;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  font-family: var(--font-mono);
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 18px 0 0 !important;
  margin-right: 18px;
  position: relative;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono) !important;
}
.hero-badge-pill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: var(--rule);
}
.hero-badge-pill:last-child {
  padding-right: 0 !important;
  margin-right: 0;
}
.hero-badge-pill:last-child::after { display: none; }
.hero-badge-pill i { color: var(--accent-blue); }

/* Titular gigante con jerarquía editorial */
.hero-h1-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-h1-text .accent {
  color: var(--accent-blue);
  font-weight: 600;
  font-style: italic;
}
.hero-subtext {
  color: var(--text-secondary);
  font-size: 1.13rem;
  line-height: 1.6;
  max-width: 540px;
  font-weight: 400;
}

/* Foto: marco editorial sobrio sin glow circular */
.hero-photo-frame {
  position: relative;
  width: 280px;
  height: 360px;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .hero-photo-frame { width: 340px; height: 440px; }
}
.hero-photo-inner {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero-photo-inner::after {
  /* Marco editorial: fina línea desplazada en diagonal — recuerda al "passe-partout" */
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid var(--accent-blue);
  border-radius: 4px;
  z-index: 0;
  opacity: 0.5;
}
.hero-photo-glow { display: none; }

/* ── Stats bar ───────────────────────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--rule);
  margin-top: 72px;
  padding-top: 36px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ── Clientes (franja) ───────────────────────────────────────────────────────── */
.client-strip {
  padding: 44px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.client-overline {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.client-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 32px;
}
.client-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 0;
  padding: 6px 0;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.client-badge i {
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: color 0.2s;
}
.client-badge:hover { color: var(--text-primary); }
.client-badge:hover i { color: var(--accent-blue); }

/* ── Audience cards ──────────────────────────────────────────────────────────── */
.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.audience-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.3s;
}
.audience-card:hover {
  border-color: rgba(74,157,123,0.30);
  transform: translateY(-3px);
}
.audience-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,157,123,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CASOS — Timeline vertical editorial (sustituye case-card en grid)
   ══════════════════════════════════════════════════════════════════════════════ */
.cases-timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 0;
}
.case-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: background 0.3s;
}
.case-item:first-child { border-top: none; padding-top: 0; }
.case-item:last-child { padding-bottom: 0; }
.case-item .case-stat-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: sticky;
  top: 100px;
  align-self: start;
}
.case-item .case-stat-col .case-stat-big {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--accent-blue);
  line-height: 0.95;
  letter-spacing: -0.045em;
  background: none;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  margin: 0;
}
.case-item .case-stat-col .case-stat-mini {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 180px;
}
.case-item .case-sector {
  color: var(--accent-blue);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.case-item .case-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.case-item .case-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .case-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0;
  }
  .case-item .case-stat-col { position: static; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SERVICIOS — Tabla comparativa horizontal
   ══════════════════════════════════════════════════════════════════════════════ */
.svc-table {
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
}
.svc-col {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.3s;
}
.svc-col:last-child { border-right: none; }
@media (max-width: 860px) {
  .svc-col { border-right: none; border-bottom: 1px solid var(--rule); }
  .svc-col:last-child { border-bottom: none; }
}
.svc-col:hover { background: rgba(255,255,255,0.015); }
.svc-col.featured {
  background: linear-gradient(180deg, rgba(74,157,123,0.06), transparent 60%);
}
.svc-col.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-blue);
}
.svc-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 20px;
  height: 16px;
}
.svc-badge::before {
  content: '●';
  font-size: 0.5rem;
  color: var(--accent-blue);
}
.svc-badge.empty { visibility: hidden; }
.svc-icon {
  width: 38px; height: 38px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,157,123,0.25);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent-blue);
  margin-bottom: 22px;
}
.svc-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.svc-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 28px;
  flex: 1;
}
.svc-price-line {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.svc-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.035em;
}
.svc-price .unit {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}
.svc-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  line-height: 1.5;
}
.svc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  background: transparent;
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 9px;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.svc-col.featured .svc-cta {
  background: var(--accent-blue);
  color: #0E1117 !important;
  border-color: var(--accent-blue);
}
.svc-cta:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.22);
}
.svc-col.featured .svc-cta:hover {
  background: var(--accent-blue-l);
  border-color: var(--accent-blue-l);
}

/* ══════════════════════════════════════════════════════════════════════════════
   PROCESO — Flujo horizontal con conectores
   ══════════════════════════════════════════════════════════════════════════════ */
.proc-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 900px) {
  .proc-flow { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 540px) {
  .proc-flow { grid-template-columns: 1fr; }
}
.proc-step {
  padding: 0 28px;
  position: relative;
  border-left: 1px solid var(--rule);
}
.proc-step:first-child { border-left: none; padding-left: 0; }
@media (max-width: 900px) {
  .proc-step { border-left: none; padding-left: 0; }
}
.proc-step .proc-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.proc-step .proc-num::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-blue);
}
.proc-step .proc-icon {
  width: 36px; height: 36px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,157,123,0.25);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--accent-blue);
  margin-bottom: 18px;
}
.proc-step .proc-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.proc-step .proc-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════════
   STACK — Franja discreta: el cliente final no es técnico.
   Aparece como "transparencia para quien le interese", no como sección estrella.
   ══════════════════════════════════════════════════════════════════════════════ */
.section-stack {
  padding: 56px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stack-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.stack-intro .stack-eyebrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.stack-intro .stack-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--text-muted);
}
.stack-intro .stack-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  max-width: 420px;
  line-height: 1.5;
}
.stack-narrative {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stack-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: baseline;
}
@media (max-width: 720px) {
  .stack-row { grid-template-columns: 1fr; gap: 4px; padding-bottom: 12px; }
}
.stack-row .stack-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stack-row .stack-items {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.stack-row .stack-items .sep {
  color: var(--text-muted);
  padding: 0 8px;
  opacity: 0.5;
}

/* Compatibilidad con clases legadas — usadas por servicios/ y otras pages */
.tech-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 14px;
}
.tech-pill {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: -0.005em;
}
.tech-pill:hover {
  border-color: rgba(74,157,123,0.45);
  color: var(--text-primary);
}

/* Service-card legado (otras páginas) — degradado pero usable */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover {
  border-color: rgba(74,157,123,0.30);
  transform: translateY(-3px);
}
.service-card.featured {
  border-color: rgba(74,157,123,0.4);
}
.service-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,157,123,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
}
.service-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.035em;
}
.service-price-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 6px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

/* Step-card legado — por si lo usan otras pages */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.3s;
}
.step-big-num,
.step-icon-wrap,
.step-label,
.step-title,
.step-desc { /* heredan estilos default — sin overrides agresivos */ }

/* Case-card legado (por si lo usan otras pages) */
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color 0.3s;
}
.case-stat {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent-blue);
  line-height: 1;
  margin-top: 20px;
  letter-spacing: -0.04em;
}

/* ══════════════════════════════════════════════════════════════════════════════
   TESTIMONIOS — Mantienen card pero más sobrio
   ══════════════════════════════════════════════════════════════════════════════ */
.testimonial-card {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, background 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(74,157,123,0.30);
  background: rgba(74,157,123,0.02);
}
.quote-icon {
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: var(--accent-blue);
  background: none;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  opacity: 0.7;
}
.testimonial-quote {
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 400;
  flex: 1;
  margin-bottom: 26px;
  letter-spacing: -0.005em;
}

/* ── About ───────────────────────────────────────────────────────────────────── */
.about-photo {
  width: 220px; height: 280px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-text {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.02rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */
.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  overflow: hidden;
  transition: none;
}
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-item.faq-open { border-color: var(--rule); }
.faq-btn {
  width: 100%;
  text-align: left;
  padding: 26px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-display);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.05rem;
  transition: color 0.2s;
  gap: 16px;
  letter-spacing: -0.015em;
}
.faq-btn:hover { color: var(--accent-blue); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1);
}
.faq-item.faq-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-blue);
}
.faq-body-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.22,1,.36,1);
}
.faq-body-inner {
  padding: 0 4px 26px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
  max-width: 720px;
}

/* ── CTA final ───────────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 30%, rgba(74,157,123,0.04) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Nav pública ─────────────────────────────────────────────────────────────── */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,17,23,0.78);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s;
}
.public-nav.nav-scrolled {
  background: rgba(14,17,23,0.95);
  border-bottom-color: var(--rule);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-logo .dot { color: var(--accent-blue); }
.nav-link-item {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.9rem;
  padding: 7px 14px;
  border-radius: 7px;
  font-family: var(--font-body);
  transition: color 0.2s, background 0.2s;
  display: block;
  letter-spacing: -0.005em;
}
.nav-link-item:hover,
.nav-link-item.nav-active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

/* ── Floating WhatsApp ───────────────────────────────────────────────────────── */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 54px; height: 54px;
  background: #1f7a3e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 18px rgba(31,122,62,0.35);
  animation: float 3.5s ease-in-out infinite;
  transition: box-shadow 0.2s, transform 0.2s;
}
#wa-float:hover {
  box-shadow: 0 6px 28px rgba(31,122,62,0.55);
  transform: scale(1.08) !important;
  animation-play-state: paused;
}

/* ── Footer público ──────────────────────────────────────────────────────────── */
.public-footer {
  background: #0A0D13;
  border-top: 1px solid var(--rule);
  font-family: var(--font-body);
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.footer-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text-primary); }
.footer-social {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color 0.2s;
}
.footer-social:hover { color: var(--accent-blue); }

/* ══════════════════════════════════════════════════════════════════════════════
   HUB /servicios — comparativa + condiciones generales
   ══════════════════════════════════════════════════════════════════════════════ */
.hub-hero {
  background: var(--bg-deep);
  padding: 120px 0 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(900px 500px at 50% -10%, rgba(74,157,123,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, #0B0E14 100%);
}
@media (max-width: 768px) { .hub-hero { padding: 80px 0 56px; } }
.hub-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 8px auto 22px;
  max-width: 760px;
}
.hub-hero-sub {
  color: var(--text-secondary);
  font-size: 1.13rem;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 36px;
}

/* Comparativa: filas anchas con head + 4 columnas */
.hub-compare {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hub-compare-row {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  transition: border-color 0.3s, transform 0.3s;
}
@media (max-width: 900px) {
  .hub-compare-row { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
}
.hub-compare-row:hover {
  border-color: rgba(74,157,123,0.30);
  transform: translateY(-2px);
}
.hub-compare-row.featured {
  background: linear-gradient(135deg, rgba(74,157,123,0.08), var(--bg-card) 60%);
  border-color: rgba(74,157,123,0.35);
}
.hub-compare-row .hcr-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hub-compare-row .hcr-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,157,123,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}
.hub-compare-row .hcr-titles { display: flex; flex-direction: column; gap: 4px; }
.hub-compare-row .hcr-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.hub-compare-row .hcr-badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  align-items: center;
  gap: 6px;
}
.hub-compare-row .hcr-badge::before {
  content: '●';
  font-size: 0.5rem;
}
.hub-compare-row .hcr-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 900px) {
  .hub-compare-row .hcr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
}
.hub-compare-row .hcr-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hub-compare-row .hcr-cell.hcr-cell-cta { align-items: stretch; }
.hub-compare-row .hcr-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hub-compare-row .hcr-value {
  color: var(--text-primary);
  font-size: 0.94rem;
  line-height: 1.5;
}
.hub-compare-row .hcr-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hub-compare-row .hcr-unit {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}
.hub-compare-row .hcr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.hub-compare-row.featured .hcr-cta {
  background: var(--accent-blue);
  color: #0E1117 !important;
  border-color: var(--accent-blue);
}
.hub-compare-row .hcr-cta:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.22);
}
.hub-compare-row.featured .hcr-cta:hover {
  background: var(--accent-blue-l);
  border-color: var(--accent-blue-l);
}

/* Condiciones generales: 4 cards */
.terms-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .terms-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .terms-cards { grid-template-columns: 1fr; } }
.terms-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.terms-card:hover {
  border-color: rgba(74,157,123,0.3);
  transform: translateY(-3px);
}
.terms-card-icon {
  width: 40px; height: 40px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,157,123,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--accent-blue);
  margin-bottom: 18px;
}
.terms-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.terms-card-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════════
   DETAIL /servicios/[slug] — landing larga
   ══════════════════════════════════════════════════════════════════════════════ */
.detail-breadcrumb {
  padding: 24px 0 12px;
  border-bottom: 1px solid var(--rule);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.breadcrumb-list a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.breadcrumb-list a:hover { color: var(--accent-blue); }
.breadcrumb-list li[aria-current="page"] { color: var(--text-primary); }
.breadcrumb-list i { color: var(--text-muted); font-size: 0.65rem; opacity: 0.6; }

.detail-hero {
  background: var(--bg-deep);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(900px 500px at 50% -10%, rgba(74,157,123,0.06), transparent 60%);
}
@media (max-width: 768px) { .detail-hero { padding: 56px 0 48px; } }
.detail-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.detail-hero-icon {
  width: 56px; height: 56px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,157,123,0.25);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-blue);
  margin-bottom: 24px;
}
.detail-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 18px;
}
.detail-hero-badge::before {
  content: '●';
  font-size: 0.5rem;
}
.detail-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.detail-hero-sub {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 36px;
}
.detail-hero-pricerow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 28px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
}
.detail-hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.detail-hero-price .lbl {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.detail-hero-price .val {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.detail-hero-pricemeta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* Secciones del detail */
.detail-section {
  padding: 80px 0;
}
@media (max-width: 768px) { .detail-section { padding: 56px 0; } }
.detail-eyebrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.detail-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-blue);
}
.detail-prose-lg {
  color: var(--text-primary);
  font-size: 1.18rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  font-weight: 400;
}

/* Incluye / NO incluye — dos columnas */
.incl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .incl-grid { grid-template-columns: 1fr; gap: 36px; } }
.incl-col { }
.incl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.incl-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.55;
}
.incl-list li i {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}
.incl-yes .incl-list li i {
  background: var(--accent-glow);
  color: var(--accent-blue);
  border: 1px solid rgba(74,157,123,0.25);
}
.incl-no .incl-list li i {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid var(--rule);
}
.incl-no .incl-list li { color: var(--text-secondary); }

/* Timeline de fases del servicio */
.phase-timeline {
  display: flex;
  flex-direction: column;
}
.phase-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.phase-row:first-child { border-top: none; padding-top: 8px; }
.phase-row:last-child  { padding-bottom: 0; }
@media (max-width: 640px) {
  .phase-row { grid-template-columns: 1fr; gap: 12px; }
}
.phase-num {
  font-family: var(--font-mono);
  color: var(--accent-blue);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.phase-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.phase-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}
.phase-duration {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  white-space: nowrap;
}
.phase-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

/* Quote embebido en detail */
.detail-quote {
  margin: 0;
  padding: 36px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: rgba(74,157,123,0.03);
}
.detail-quote-mark {
  color: var(--accent-blue);
  font-size: 1.3rem;
  opacity: 0.7;
  margin-bottom: 14px;
}
.detail-quote-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0 0 24px;
  letter-spacing: -0.015em;
}
.detail-quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-quote-author img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.detail-quote-author .who {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.detail-quote-author .role {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* Términos: precio + garantía en 2 columnas */
.terms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 860px) { .terms-grid { grid-template-columns: 1fr; gap: 28px; } }
.terms-block { }
.terms-price-headline {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.terms-price-headline strong {
  font-weight: 600;
  color: var(--accent-blue);
}
.terms-price-meta {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-top: 4px;
}
.terms-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted) !important;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.detail-back:hover { color: var(--accent-blue) !important; }

