/* ===== Zodes — estilos compartidos para páginas de servicios ===== */
:root {
  /* === Paleta oficial Zodes (Deep Navy + Signal Blue + Quantum Teal) === */
  --primary: #0B1B3B;     /* Deep Navy — headings, dark surfaces */
  --primary-2: #142A57;   /* hover de primary */
  --accent: #1E5BFF;      /* Signal Blue — CTAs, links, focus */
  --accent-2: #1747D6;    /* hover de accent */
  --highlight: #13C8A8;   /* Quantum Teal — success, badges, accent secundario */
  --highlight-2: #0FA890; /* hover de highlight */
  --surface: #FAFBFC;     /* Bone — fondo principal */
  --surface-2: #F1F3F8;   /* alternancia de secciones */
  --body: #0B1B3B;        /* texto principal — navy casi negro */
  --text-2: #3D4D70;      /* texto secundario — Slate 600 */
  --soft: #B6C0D6;        /* placeholder/disabled/decorativo — Slate 300 */
  --line: #E2E6EF;        /* separadores */
  --white: #FFFFFF;

  /* === Alias retrocompatibles (para no romper estilos heredados) === */
  --ink: var(--primary);
  --ink-2: var(--primary-2);
  --blue: var(--accent);
  --blue-soft: var(--accent-2);
  --aqua: var(--highlight);
  --aqua-soft: var(--highlight);
  --aqua-deep: var(--highlight-2);
  --bg: var(--surface);
  --bg-2: var(--surface-2);
  /* --muted ahora apunta a Slate 600 para que descripciones existentes sean legibles */
  --muted: var(--text-2);
  --muted-2: var(--soft);

  /* === Tipografía (Outfit + Work Sans, recomendación ui-ux-pro-max) === */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* === Radios === */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* === Sombras === */
  --shadow-1: 0 1px 3px rgba(11,27,59,.06), 0 1px 2px rgba(11,27,59,.04);
  --shadow-2: 0 12px 32px rgba(11,27,59,.08), 0 4px 12px rgba(11,27,59,.05);
  --shadow-3: 0 28px 64px rgba(30,91,255,.18), 0 8px 24px rgba(11,27,59,.10);
  /* Alias retrocompatibles */
  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --shadow-lg: var(--shadow-3);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--body);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
@media (max-width: 600px) { body { font-size: 16px; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  color: inherit;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(250, 251, 252, 0.78);
  border-bottom: 1px solid transparent;
  transition: background .4s cubic-bezier(.4,0,.2,1), border-color .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(250, 251, 252, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(11,27,59,.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; transition: height .4s cubic-bezier(.4,0,.2,1); }
.nav.scrolled .nav-inner { height: 56px; }
.brand { position: relative; display: inline-flex; align-items: center; height: 40px; }
.brand-logo { display: block; transition: opacity .4s cubic-bezier(.4,0,.2,1), transform .4s cubic-bezier(.4,0,.2,1); }
.brand-logo--full { height: 28px; width: auto; opacity: 1; transform: scale(1); }
.brand-logo--icon {
  height: 32px; width: auto;
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%) scale(0.8);
  opacity: 0;
}
.nav.scrolled .brand-logo--full { opacity: 0; transform: scale(0.8); }
.nav.scrolled .brand-logo--icon { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 600px) {
  .brand-logo--full { height: 24px; }
  .brand-logo--icon { height: 28px; }
}
.nav-links { display: flex; gap: 36px; font-size: 15px; font-weight: 500; color: var(--body); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; background: var(--primary); color: var(--white);
  border-radius: var(--r-full); font-weight: 500; font-size: 14.5px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-3); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--body);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--body); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 10px; color: var(--muted); }

/* ===== HERO ===== */
.svc-hero { position: relative; padding: 60px 0 80px; overflow: hidden; }
.svc-hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  top: -240px; right: -200px;
  background: radial-gradient(closest-side, rgba(19, 200, 168, 0.22), transparent 70%);
}
.svc-hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%;
  bottom: -300px; left: -180px;
  background: radial-gradient(closest-side, rgba(30, 91, 255, 0.18), transparent 70%);
}
.svc-hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 14px;
  border-radius: 999px;
  background: rgba(19, 200, 168, 0.14);
  color: var(--aqua-deep);
  font-weight: 500; font-size: 13px;
  margin-bottom: 20px;
  border: 1px solid rgba(19, 200, 168, 0.25);
}
.svc-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 22px;
  max-width: 880px;
}
.svc-hero h1 .accent {
  background: linear-gradient(135deg, var(--blue) 0%, var(--aqua) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc-hero p.lead {
  font-size: 19px; color: var(--muted);
  max-width: 640px; margin-bottom: 32px;
  line-height: 1.6;
}
.svc-hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font-weight: 500; font-size: 15.5px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--white); box-shadow: 0 8px 24px rgba(11, 27, 59,.18); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(30, 91, 255,.32); }
.btn-ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--aqua);
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform .25s;
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* ===== Sección genérica ===== */
.section { padding: 96px 0; }
@media (max-width: 720px) { .section { padding: 72px 0; } }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--blue); font-weight: 500; margin-bottom: 18px;
}
.section-tag::before { content: ""; width: 18px; height: 1px; background: var(--blue); }
.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600; max-width: 780px; margin-bottom: 16px;
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 720px; line-height: 1.6; margin-bottom: 48px; }

/* ===== Cards "cuándo te lo recomendamos" ===== */
.signals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .signals { grid-template-columns: 1fr; } }
.signal {
  background: white; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.signal:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(30, 91, 255,0.25); }
.signal-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: white;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.signal-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.signal-desc { color: var(--muted); font-size: 14.5px; }

/* ===== Pasos del proceso ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: white; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px;
  position: relative;
}
.step-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted-2); letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step-desc { color: var(--muted); font-size: 14.5px; }

/* ===== Tech pills ===== */
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tech-pill {
  background: white; border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink);
}

/* ===== FAQ ===== */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 0;
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
  letter-spacing: -0.01em; color: var(--ink);
}
.faq-q:hover { color: var(--blue); }
.faq-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .35s, background .25s, color .25s;
  color: var(--ink);
}
.faq-item.open .faq-toggle { background: var(--ink); color: white; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.2,.8,.2,1); color: var(--muted); font-size: 16px; line-height: 1.65; }
.faq-item.open .faq-a { max-height: 360px; }
.faq-a-inner { padding: 0 0 22px; max-width: 720px; }

/* ===== Cross-sell ===== */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }
.related-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(30, 91, 255,0.25); }
.related-card .svc-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg);
  display: grid; place-items: center;
  color: var(--blue);
  margin-bottom: 14px;
}
.related-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.related-desc { color: var(--muted); font-size: 14px; flex: 1; }
.related-link {
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ===== CTA strip ===== */
.cta-strip {
  margin: 0 auto; max-width: 1120px;
  background: var(--ink); border-radius: var(--r-xl);
  padding: 56px 48px; position: relative; overflow: hidden;
  color: white; text-align: center;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 100%, rgba(19, 200, 168, 0.30), transparent 60%),
    radial-gradient(ellipse 70% 80% at 80% 0%, rgba(30, 91, 255, 0.42), transparent 60%);
  pointer-events: none;
}
.cta-strip > * { position: relative; }
.cta-strip h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.70); font-size: 17px; max-width: 540px; margin: 0 auto 28px; }
.cta-strip .btn { background: white; color: var(--ink); }
.cta-strip .btn:hover { background: var(--aqua); }

/* ===== Footer ===== */
footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 10px; color: white; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; margin-bottom: 18px; }
.foot-tag { font-size: 14.5px; line-height: 1.6; max-width: 360px; }
.foot-col h4 { color: white; font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-col a { font-size: 14.5px; transition: color .2s; }
.foot-col a:hover { color: var(--aqua); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13.5px; font-family: var(--font-mono); color: rgba(255,255,255,0.45); }
.foot-socials { display: flex; gap: 10px; }
.foot-soc { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); display: grid; place-items: center; transition: background .2s, color .2s; }
.foot-soc:hover { background: var(--aqua); color: var(--ink); }

/* utility */
.icon { width: 20px; height: 20px; }
.icon-sm { width: 16px; height: 16px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
