/* Tipografías servidas desde el propio sitio (licencia SIL Open Font License) */
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque.woff') format('woff'); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans.woff') format('woff'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
/* Concepto: fondo blanco y un color por área, como los ingredientes de una cocina.
   Albahaca (seguridad alimentaria), limón (innovación), tomate (costes) y arándano (operaciones).
   Formas redondeadas, tarjetas que se mueven y un plan anual que se puede manipular. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #0F1F1A;
  --ink-soft: #4A5B54;
  --line: #E3E8E3;
  --brand: #0E5A49;
  --on-brand: #FFFFFF;
  --deep: #0B3B31;
  --on-deep: #FFFFFF;
  --on-vivid: #0F1F1A;
  --c1: #0E5A49; --c1-t: #D3F2E1; --v1: #1DBE82; --hl1: #1DBE82;
  --c2: #7A5B00; --c2-t: #FFF0B3; --v2: #FFC93C; --hl2: #FFC93C;
  --c3: #B3321A; --c3-t: #FFD9CE; --v3: #FF6F4D; --hl3: #FF6F4D;
  --c4: #1F4FB8; --c4-t: #D8E6FF; --v4: #4C86FF;
  --ok: #1C7A49; --ok-bg: #DDF3E6;
  --warn: #8A5A00; --warn-bg: #FFEFC2;
  --chip-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 1px 2px rgba(15, 31, 26, 0.06), 0 18px 38px -18px rgba(15, 31, 26, 0.25);
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1410;
    --surface: #12201B;
    --ink: #EAF3EE;
    --ink-soft: #A9BDB3;
    --line: #233730;
    --brand: #62D0AA;
    --on-brand: #06211A;
    --c1: #7BE0B5; --c1-t: #123A2E; --hl1: #1A7F5C;
    --c2: #FFD96A; --c2-t: #3A3210; --hl2: #7D6208;
    --c3: #FF9E88; --c3-t: #45211A; --hl3: #A8432F;
    --c4: #93B7FF; --c4-t: #16284A;
    --ok: #6FD39B; --ok-bg: #16382A;
    --warn: #F0C56A; --warn-bg: #3A2D10;
    --chip-bg: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 38px -18px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1410;
  --surface: #12201B;
  --ink: #EAF3EE;
  --ink-soft: #A9BDB3;
  --line: #233730;
  --brand: #62D0AA;
  --on-brand: #06211A;
  --c1: #7BE0B5; --c1-t: #123A2E; --hl1: #1A7F5C;
  --c2: #FFD96A; --c2-t: #3A3210; --hl2: #7D6208;
  --c3: #FF9E88; --c3-t: #45211A; --hl3: #A8432F;
  --c4: #93B7FF; --c4-t: #16284A;
  --ok: #6FD39B; --ok-bg: #16382A;
  --warn: #F0C56A; --warn-bg: #3A2D10;
  --chip-bg: rgba(255, 255, 255, 0.1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 38px -18px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.stack { display: grid; gap: 1.5rem; justify-items: start; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 40rem; }
.sec-head { display: grid; gap: 1rem; justify-items: start; max-width: 46rem; margin-bottom: 2.75rem; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font: 600 1rem var(--font-body);
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(14, 90, 73, 0.7); }
.btn-arrow::after { content: "→"; transition: transform 0.2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-lemon { background: var(--v2); border-color: var(--v2); color: var(--on-vivid); }
.btn-lemon:hover { box-shadow: 0 12px 24px -12px rgba(255, 201, 60, 0.8); }

/* Cabecera flotante */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  padding-block: 0.6rem;
  pointer-events: none;
}
.bar {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.5rem 0.6rem 0.5rem 1.1rem;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 8px 24px -16px rgba(15, 31, 26, 0.3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 800 1.5rem var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.mark { width: 1.7rem; height: 1.7rem; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.nav a {
  padding: 0.5rem 0.95rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover { color: var(--ink); background: var(--c1-t); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav .short { display: none; }
.nav { margin-left: auto; }
.lang { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang-btn {
  font: 700 0.78rem var(--font-body);
  letter-spacing: 0.04em;
  padding: 0.38rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { color: var(--ink); background: var(--c1-t); }
.lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-note { margin: 0 0 1.5rem; padding: 0.8rem 1rem; border-radius: 16px; background: var(--c2-t); color: var(--ink); font-size: 0.92rem; line-height: 1.45; }

/* Piezas comunes */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--c1-t);
  color: var(--c1);
  font-weight: 600;
  font-size: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--v1);
  animation: pulse 2.2s ease-out infinite;
}
.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--c);
  font-weight: 700;
  font-size: 0.82rem;
}
.ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--v);
  color: var(--on-vivid);
}
.ico svg { width: 1.25rem; height: 1.25rem; }
.ico-lg { width: 3.4rem; height: 3.4rem; }
.ico-lg svg { width: 1.7rem; height: 1.7rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font: 600 0.78rem var(--font-body);
  padding: 0.25em 0.75em;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-prog { background: var(--v2); color: var(--on-vivid); }
.pill-idle { background: var(--c4-t); color: var(--c4); }

/* Portada */
.hero { position: relative; overflow: hidden; padding-top: clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem 3.5rem; align-items: center; }
.hero-text { display: grid; gap: 1.6rem; justify-items: start; }
.hl {
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 0% 0.34em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.05em;
  margin-inline: -0.05em;
  animation: sweep 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hl-1 { --hl: var(--hl1); animation-delay: 0.35s; }
.hl-2 { --hl: var(--hl2); animation-delay: 0.6s; }
.hl-3 { --hl: var(--hl3); animation-delay: 0.85s; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.meta { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.meta::before { content: ""; width: 2.2rem; height: 2px; background: var(--ink-soft); opacity: 0.5; }

.hero-visual { position: relative; isolation: isolate; display: grid; gap: 0.9rem; }
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 108%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--deep);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--v2);
  right: -1rem;
  top: -1.5rem;
}
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; padding: 1.25rem; }
.card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.15rem;
  border-radius: 26px;
  background: var(--t);
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.card-a { grid-row: span 2; display: flex; flex-direction: column; gap: 0.6rem; }
.card-a .checks { margin-top: auto; }
.card-b { animation-duration: 8s; animation-delay: -2s; }
.card-c { animation-duration: 9s; animation-delay: -4s; }
.card-top { display: flex; align-items: center; gap: 0.6rem; }
.card-label { font-weight: 700; font-size: 0.9rem; color: var(--c); line-height: 1.2; }
.card-sub { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.3; }
.big { font: 800 clamp(2.3rem, 4.4vw, 3.2rem)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big small { font: 500 0.9rem var(--font-body); letter-spacing: 0; color: var(--ink-soft); display: block; margin-top: 0.4rem; }
.checks { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.checks li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; background: var(--chip-bg); border-radius: 14px; font-size: 0.86rem; line-height: 1.25; }
.checks .st { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font: 700 0.75rem/1 var(--font-body); box-shadow: inset 0 0 0 2px var(--ink-soft); opacity: 0.4; transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; }
.checks li.ok .st { background: var(--ok); color: var(--ok-bg); box-shadow: none; opacity: 1; }
.checks li.warn .st { background: var(--warn); color: var(--warn-bg); box-shadow: none; opacity: 1; }
.checks li.ok .st::before { content: "\2713"; }
.checks li.warn .st::before { content: "!"; }
.stage-now { font: 700 1.15rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.pipe-track { height: 0.6rem; border-radius: 999px; background: var(--chip-bg); overflow: hidden; }
.pipe-fill { display: block; height: 100%; width: 80%; border-radius: 999px; background: var(--v); transition: width 0.7s cubic-bezier(0.3, 0.8, 0.3, 1); }
.pipe-dots { list-style: none; padding: 0; display: flex; justify-content: space-between; }
.pipe-dots li { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--chip-bg); transition: background 0.3s ease, transform 0.3s ease; }
.pipe-dots li.done { background: var(--v); }
.pipe-dots li.now { background: var(--c); transform: scale(1.35); }
.card-note { font: 500 0.8rem var(--font-mono); color: var(--ink-soft); }
.stackbar { display: flex; gap: 3px; height: 0.8rem; }
.stackbar span { display: block; border-radius: 999px; min-width: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.8rem; font-size: 0.78rem; color: var(--ink-soft); }
.legend span::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.35rem; border-radius: 50%; background: var(--d); }
.caption { font-size: 0.85rem; color: var(--on-deep); opacity: 0.85; text-align: center; padding-bottom: 0.25rem; }

/* Banda de servicios */
.marquee { overflow: hidden; padding-block: 1.1rem; border-block: 1px solid var(--line); }
.track { display: flex; width: max-content; animation: scroll 46s linear infinite; }
.track:hover { animation-play-state: paused; }
.half { display: flex; gap: 0.7rem; padding-right: 0.7rem; }
.mchip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--t);
  color: var(--c);
  font-weight: 600;
  white-space: nowrap;
}
.mchip::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--v); }

/* Áreas en la portada */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.area-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 32px;
  background: var(--t);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.area-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: var(--v);
  opacity: 0.28;
  transition: transform 0.4s ease;
}
.area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.area-card:hover::after { transform: scale(1.25); }
.area-card:focus-visible { outline-color: var(--c); }
.area-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.go { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--chip-bg); color: var(--c); font-weight: 700; transition: transform 0.25s ease; }
.area-card:hover .go { transform: translateX(4px) rotate(-8deg); }
.area-card h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); letter-spacing: -0.02em; position: relative; z-index: 1; }
.area-card p { color: var(--ink-soft); position: relative; z-index: 1; }
.mini { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; position: relative; z-index: 1; }
.mini li { padding: 0.28rem 0.75rem; border-radius: 999px; background: var(--chip-bg); color: var(--c); font-weight: 600; font-size: 0.82rem; }
.more { margin-top: 2rem; }

/* Dos paneles */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.duo-col { display: grid; gap: 1.75rem; align-content: start; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 36px; background: var(--t); }
.checks { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.tk { width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; color: var(--c, var(--brand)); }

/* Plan anual */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2.5rem 4rem; align-items: center; }
.split-head { display: grid; gap: 1.5rem; justify-items: start; }
.planner { display: grid; gap: 1rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.plan-title { font: 800 1.25rem var(--font-display); letter-spacing: -0.02em; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font: 500 0.7rem var(--font-mono); color: var(--ink-soft); text-align: center; }
.plan-row { display: grid; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.plan-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 0.75rem; }
.plan-name { font-weight: 700; }
.plan-count { font: 500 0.8rem var(--font-mono); color: var(--ink-soft); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25rem; padding: 0.25rem; border-radius: 14px; background: var(--t); }
.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: block; padding: 0.4rem 0.15rem; border-radius: 10px; text-align: center; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.seg-opt input:checked + span { background: var(--surface); color: var(--c); font-weight: 700; box-shadow: 0 1px 3px rgba(15, 31, 26, 0.18); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--c); outline-offset: 1px; }
.dots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.dot { justify-self: center; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--v); transform: scale(0.4); opacity: 0.25; transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.25s ease; }
.dot.on { transform: scale(1); opacity: 1; }

/* Testimonio */
.quote-panel { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); border-radius: 40px; background: var(--c3-t); }
.quote-panel::before { content: "“"; position: absolute; top: -2rem; left: 1.25rem; font: 800 13rem/1 var(--font-display); color: var(--v3); opacity: 0.4; }
.quote { position: relative; max-width: 46rem; font: 700 clamp(1.5rem, 3.2vw, 2.4rem)/1.18 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.cite { position: relative; margin-top: 1.25rem; font-weight: 600; color: var(--c3); }

/* Llamada final */
.cta-card { position: relative; overflow: hidden; display: grid; gap: 1.5rem; justify-items: start; padding: clamp(2rem, 6vw, 4.5rem); border-radius: 40px; background: var(--deep); color: var(--on-deep); }
.cta-card::after { content: ""; position: absolute; right: -4rem; top: -4rem; width: 14rem; height: 14rem; border-radius: 50%; background: var(--v2); }
.cta-card h2, .cta-card p, .cta-card a { position: relative; z-index: 1; }
.cta-card h2 { max-width: 34rem; }
.cta-card .lede { color: var(--on-deep); opacity: 0.85; }

/* Servicios */
.page-head { display: grid; gap: 1.25rem; justify-items: start; max-width: 48rem; margin-bottom: 2rem; }
.jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.chip {
  font: 700 0.92rem var(--font-body);
  color: var(--c);
  background: var(--t);
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.chip:hover { transform: translateY(-2px); }
.areas-stack { display: grid; gap: 1.5rem; }
.area {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 40px;
  background: var(--t);
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 6.5rem);
}
.area-top { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 2rem; }
.area-top > div { display: grid; gap: 0.75rem; justify-items: start; max-width: 44rem; min-width: 0; }
.area-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.5rem 2.5rem; align-items: start; }
.svc-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.svc-list li { display: grid; gap: 0.3rem; padding: 1.1rem 1.3rem; border-radius: 20px; background: var(--surface); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.svc-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.svc-list p { color: var(--ink-soft); }
.ficha { background: var(--surface); border-radius: 26px; padding: 1.25rem; box-shadow: var(--shadow); }
.ficha-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-bottom: 0.75rem; }
.ficha-title { font: 800 1.05rem var(--font-display); letter-spacing: -0.01em; }
.ficha-tag { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.rows { list-style: none; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.item { font-weight: 600; line-height: 1.3; }
.val { font: 400 0.82rem var(--font-mono); color: var(--ink-soft); }
.ficha-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-top: 0.25rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font-weight: 700; font-size: 0.9rem; }
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { padding: 0.55rem 0.4rem; text-align: left; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); border-top: 0; }
td.num, th.num { text-align: right; }
td.num { font-family: var(--font-mono); font-size: 0.86rem; white-space: nowrap; }
tr.total td { font-weight: 700; }

/* Cómo trabajamos */
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; max-width: 48rem; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-no { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--v); color: var(--on-vivid); font: 800 1.4rem var(--font-display); }
.step:nth-child(1) { --v: var(--v1); }
.step:nth-child(2) { --v: var(--v2); }
.step:nth-child(3) { --v: var(--v3); }
.step:nth-child(4) { --v: var(--v4); }
.step:nth-child(5) { --v: var(--v1); }
.step-body { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.step-body p { color: var(--ink-soft); }
.aside { display: grid; gap: 1rem; justify-items: start; max-width: 48rem; margin-top: 2rem; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--c2-t); border-radius: 32px; }
.aside p { max-width: 36rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.form { display: grid; gap: 1.75rem; }
.field { display: grid; gap: 0.55rem; }
.lbl { font-weight: 700; font-size: 0.92rem; }
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem 1rem;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus { border-color: var(--brand); }
.opt-area { display: grid; gap: 0.45rem; }
.opt-area + .opt-area { margin-top: 0.9rem; }
.opt-name { display: flex; align-items: center; gap: 0.5rem; font: 700 0.95rem var(--font-display); letter-spacing: -0.01em; color: var(--c); }
.opt-name::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--v); }
.opts { display: grid; gap: 0.4rem; }
.opt { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; line-height: 1.3; transition: background 0.2s ease, border-color 0.2s ease; }
.opt:hover { border-color: var(--c); }
.opt:has(input:checked) { background: var(--t); border-color: var(--c); font-weight: 600; }
.opt input { flex: none; width: 1.1rem; height: 1.1rem; accent-color: var(--c); }
.panel { display: grid; gap: 1rem; padding: 1.5rem; border-radius: 32px; background: var(--deep); color: var(--on-deep); }
.panel .lbl { color: var(--on-deep); }
textarea {
  width: 100%;
  min-height: 15rem;
  resize: vertical;
  font: 400 0.9rem/1.55 var(--font-mono);
  color: var(--on-deep);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 0.9rem 1rem;
}
.panel :focus-visible { outline-color: var(--v2); }
.note { min-height: 1.5rem; font-size: 0.95rem; color: var(--v2); }
.hint { font-size: 0.92rem; opacity: 0.8; }
.panel .btn-ghost { color: var(--on-deep); border-color: rgba(255, 255, 255, 0.35); }
.panel .btn-ghost:hover { border-color: var(--on-deep); }

/* Pie */
.foot-wrap { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 2.75rem; }
.foot-col { display: grid; gap: 0.6rem; align-content: start; max-width: 24rem; }
.foot-col p { color: var(--ink-soft); font-size: 0.95rem; }
.foot-links { display: grid; gap: 0.4rem; }
.foot-links a { color: var(--ink); font-weight: 500; }

/* Datos pendientes y páginas legales */
.ph { padding: 0.05em 0.45em; border-radius: 6px; background: var(--c2-t); color: var(--c2); font-weight: 600; }
.ph::before { content: "["; }
.ph::after { content: "]"; }
.draft-note { display: grid; gap: 0.25rem; max-width: 46rem; margin-bottom: 2rem; padding: 1rem 1.25rem; border-radius: 20px; background: var(--c2-t); color: var(--ink); }
.draft-note strong { color: var(--c2); }
.legal { display: grid; gap: 1.75rem; max-width: 46rem; }
.legal section { display: grid; gap: 0.7rem; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; }
.legal p, .legal li, .legal dd { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal dl { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.5rem 1.25rem; margin: 0; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
.legal-updated { font-size: 0.9rem; }
.privacy-note { font-size: 0.88rem; line-height: 1.5; opacity: 0.9; }
.privacy-note a { color: var(--v2); }
.contact-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: 0.98rem; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.contact-list b { min-width: 5.5rem; font-weight: 700; }
.contact-list a { color: var(--v2); }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; border-style: dashed; pointer-events: none; }
.clients-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.client { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0.6rem 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font: 700 1.05rem var(--font-display); letter-spacing: -0.01em; color: var(--ink-soft); filter: grayscale(1); transition: filter 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.client:hover { filter: none; color: var(--ink); transform: translateY(-2px); }
.client img { display: block; max-height: 2.2rem; max-width: 8rem; width: auto; }
@media (max-width: 680px) {
  .legal dl { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .legal dd { margin-bottom: 0.6rem; }
}

/* Movimiento */
@keyframes sweep { to { background-size: 100% 0.34em; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(29, 190, 130, 0.55); } 70%, 100% { box-shadow: 0 0 0 0.6rem rgba(29, 190, 130, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0.15; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

@media (min-width: 861px) {
  .panel { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .contact, .area-main, .duo { grid-template-columns: minmax(0, 1fr); }
  .hero-visual::before { display: none; }
}
@media (max-width: 680px) {
  .areas { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .card-a { grid-row: auto; }
  .hero-visual::after { display: none; }
  .caption { color: var(--ink-soft); }
  .area-top { flex-direction: column; }
}
@media (max-width: 860px) {
  .brand { font-size: 1.35rem; }
  .lang { order: 1; margin-left: auto; }
  .nav { order: 2; width: 100%; margin-left: 0; justify-content: space-between; gap: 0; }
  .nav a { padding: 0.45rem 0.55rem; font-size: 0.9rem; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
}
@media (max-width: 340px) {
  .brand { font-size: 1.2rem; }
  .nav a { padding: 0.4rem 0.3rem; font-size: 0.84rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hl { animation: none; background-size: 100% 0.34em; }
  .eyebrow::before, .card, .reveal { animation: none; }
  .track { animation: none; flex-wrap: wrap; width: auto; }
  .half { flex-wrap: wrap; }
  .half + .half { display: none; }
  .btn, .area-card, .chip, .step, .svc-list li, .dot, .pipe-fill { transition: none; }
}

/* ===== Ajustes del tema de WordPress ===== */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 0.7rem 1.1rem; background: var(--ink); color: #fff; border-radius: 0 0 12px 12px; font-weight: 600; }
.skip:focus { left: 1rem; }
main:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { body.admin-bar .site-header { top: calc(46px + env(safe-area-inset-top, 0px)); } }

/* Formulario real */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } }
.form textarea.msg {
  min-height: 7rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem 1rem;
}
.form textarea.msg:focus { border-color: var(--brand); }
.notice { margin-bottom: 1.5rem; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 6.5rem); padding: 1rem 1.25rem; border-radius: 20px; font-weight: 600; line-height: 1.4; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.err { background: var(--c3-t); color: var(--c3); }
.notice:focus { outline: none; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--brand); }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.rgpd { display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border: 1px dashed var(--line); border-radius: 16px; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.rgpd b { color: var(--ink); }
.rgpd a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.form-actions .btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
