/* Design language shared by every /servicios/ page.
   Hand-written instead of the Tailwind CDN the other subpages use: these are the
   pages meant to rank, so they must not pay for a render-blocking third-party
   script that also ships an entire JIT compiler to the browser. */

:root {
  --void: #090a0f;
  --deep: #0e131f;
  --surface: #141a29;
  --emerald: #10b981;
  --mint: #00f5a0;
  --cyan: #22d3ee;

  /* Text ramp. Every value below clears WCAG AA (4.5:1) against --void. */
  --ink: #e6e9f0;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-mute: rgba(255, 255, 255, 0.55);

  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shell: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--void);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--emerald);
  color: var(--void);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout ---------- */

/* `shell` sets only the inline padding and the spacing classes below set only the
   block padding, so an element can safely carry both (`class="shell hero"`)
   without the later rule wiping out the gutter. */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  padding-block: 88px;
}

.section--tight {
  padding-block: 56px;
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--emerald);
  color: var(--void);
  font-weight: 600;
  border-radius: 0 0 10px 0;
}

.skip:focus {
  left: 0;
}

/* ---------- header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.masthead__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 200ms ease;
}

.masthead__nav a:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .masthead__nav a:not(.btn) {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--mint), var(--emerald));
  color: #04140d;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.22);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(16, 185, 129, 0.34);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------- eyebrow / badge ---------- */

.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 18px;
}

.grad {
  background: linear-gradient(120deg, var(--mint) 0%, var(--emerald) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- breadcrumb ---------- */

.crumbs {
  padding-block: 22px 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs a {
  color: var(--ink-mute);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--mint);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.25);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: 56px 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 30% auto -10%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.16), transparent);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  max-width: 17ch;
}

.hero__lede {
  margin-top: 22px;
  max-width: 62ch;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-soft);
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- prose ---------- */

.prose h2 {
  font-size: clamp(25px, 3.2vw, 34px);
  margin-top: 56px;
  margin-bottom: 18px;
  max-width: 22ch;
}

.prose h3 {
  font-size: 19px;
  margin-top: 34px;
  margin-bottom: 10px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  max-width: 68ch;
}

.prose ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}

.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--ink-soft);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose a:not(.btn) {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 245, 160, 0.4);
}

.prose a:not(.btn):hover {
  text-decoration-color: var(--mint);
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: transform 300ms ease, border-color 300ms ease;
}

a.card {
  text-decoration: none;
}

a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--ink-mute);
}

.card__more {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}

/* ---------- steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 26px 22px 68px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 26px;
  top: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--emerald);
}

.steps strong {
  display: block;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  margin-bottom: 4px;
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 19px 22px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  color: var(--emerald);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- cta band ---------- */

.cta {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.13), rgba(9, 10, 15, 0.4));
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
}

.cta h2 {
  font-size: clamp(25px, 3.4vw, 36px);
  margin: 0 auto 16px;
  max-width: 20ch;
}

.cta p {
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 30px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 52px 0 40px;
  font-size: 14px;
  color: var(--ink-mute);
}

.foot__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 40px;
}

.foot h4 {
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  font-weight: 500;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot a:hover {
  color: var(--mint);
}

.foot__base {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
}
