/* ==========================================================================
   manawhapi · estilos del sitio
   Paleta oscura con acento verde menta. Sin dependencias externas.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colores */
  --bg: #070a09;
  --surface: #0e1512;
  --surface-2: #131c18;
  --surface-3: #1a2521;
  --line: rgba(190, 255, 225, 0.08);
  --line-2: rgba(190, 255, 225, 0.14);
  --grid: rgba(190, 255, 225, 0.045);

  --text: #eaf3ef;
  --text-2: #a7b8b1;
  --text-3: #74877f;

  --mint: #5cf0b0;
  --mint-hover: #85f6c6;
  --mint-ink: #032015;
  --mint-soft: rgba(92, 240, 176, 0.1);
  --mint-line: rgba(92, 240, 176, 0.28);
  --coral: #ee8b80;

  /* Tipografía */
  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* Medidas */
  --container: 1160px;
  --gutter: clamp(18px, 4vw, 32px);
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 { letter-spacing: -0.005em; }

::selection { background: var(--mint); color: var(--mint-ink); }

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

/* Íconos SVG (sprite) */
.i {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Brillo y cuadrícula de fondo en la parte superior */
.page-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1000px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 520px at 78% 8%, rgba(92, 240, 176, 0.16), transparent 70%),
    radial-gradient(520px 420px at 8% 30%, rgba(111, 211, 255, 0.05), transparent 70%);
}
.page-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 60% 15%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 60% 15%, #000 25%, transparent 75%);
}

/* ---------- Elementos comunes ---------- */
.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65em;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  flex: none;
  margin-top: 0.55em;
  box-shadow: 0 0 12px var(--mint);
}

.lead {
  max-width: 60ch;
  color: var(--text-2);
  font-size: clamp(1.04rem, 1.3vw, 1.16rem);
}

.btn {
  --h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--h);
  padding: 0 1.35em;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn .i { width: 1.2em; height: 1.2em; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--mint);
  color: var(--mint-ink);
  box-shadow: 0 10px 30px -10px rgba(92, 240, 176, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--primary:hover { background: var(--mint-hover); transform: translateY(-1px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--mint-line); background: var(--mint-soft); }
.btn--ghost .i { transition: transform 0.2s var(--ease); }
.btn--ghost:hover .i { transform: translateX(3px); }

.btn--sm { --h: 40px; padding: 0 1.05em; font-size: 0.92rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}
.header.is-scrolled,
.header.menu-open {
  background: rgba(7, 10, 9, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header.menu-open { background: var(--bg); }
.header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo__mark { width: 34px; height: 34px; }
.logo__word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.header__actions { display: flex; align-items: center; gap: 8px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 880px) {
  .burger { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 10px var(--gutter) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.7);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
}
@media (max-width: 380px) {
  .header__actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(32px, 6vw, 80px) clamp(32px, 4vw, 48px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 40px; }
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero h1 .hl { color: var(--mint); }
.hero .lead { margin-top: 22px; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 520px) { .hero__ctas .btn { flex: 1 1 100%; } }

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--text-2);
  font-size: 0.92rem;
}
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .i { width: 18px; height: 18px; color: var(--mint); }

/* Demo de chat */
.demo {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: center;
}

.chat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 90px -30px rgba(92, 240, 176, 0.35);
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.chat__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--mint-line);
  background: var(--mint-soft);
  color: var(--mint);
}
.chat__avatar .i { width: 20px; height: 20px; }
.chat__who { display: flex; flex-direction: column; line-height: 1.3; }
.chat__who strong { font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; }
.chat__who small { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 0.78rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

.chat__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid rgba(92, 240, 176, 0.22);
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(92, 240, 176, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(92, 240, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 240, 176, 0); }
}

.chat__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px 20px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 18px 18px;
  transition: opacity 0.5s;
}
.chat__body.is-resetting { opacity: 0; }

.row { position: relative; display: flex; }
.row--out { justify-content: flex-end; }

.msg {
  position: relative;
  max-width: 84%;
  padding: 9px 12px 6px;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.45;
}
.msg--in {
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  background: var(--surface-3);
}
.msg--out {
  border: 1px solid rgba(92, 240, 176, 0.22);
  border-bottom-right-radius: 5px;
  background: linear-gradient(180deg, #123f30, #0e3326);
}
.msg .time {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.msg--out .time { color: rgba(190, 240, 218, 0.62); }
.ticks { width: 16px; height: 11px; fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip {
  padding: 4px 10px;
  border: 1px solid rgba(92, 240, 176, 0.42);
  border-radius: 999px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  transition: background-color 0.3s, color 0.3s;
}
.chip.is-picked { background: var(--mint); color: var(--mint-ink); }

.event {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(92, 240, 176, 0.2);
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: center;
}
.event .i { width: 13px; height: 13px; }

.typing {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 240, 176, 0.22);
  border-radius: 16px;
  border-bottom-right-radius: 5px;
  background: #0e3326;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: typing 1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* La animación del chat solo corre con JS; sin JS se ve completo */
.js [data-chat] [data-step] > .msg,
.js [data-chat] .event[data-step] {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.js [data-chat] .row--in > .msg { transform-origin: 0 100%; }
.js [data-chat] .row--out > .msg { transform-origin: 100% 100%; }
.js [data-chat] [data-step].is-shown > .msg,
.js [data-chat] .event[data-step].is-shown { opacity: 1; transform: none; }
.js [data-chat] [data-step].is-typing .typing { opacity: 1; }

.chat__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.chat__input > span:first-child {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  font-size: 0.88rem;
}
.chat__send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
}
.chat__send .i { width: 18px; height: 18px; }

/* Notas bajo el chat */
.notes { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 480px) { .notes { grid-template-columns: 1fr 1fr; } }
.note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 21, 18, 0.75);
  line-height: 1.35;
}
.note strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 0.86rem; font-weight: 500; }
.note small { display: block; color: var(--text-3); font-size: 0.78rem; }
.note__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mint-soft);
  color: var(--mint);
}
.note__icon .i { width: 18px; height: 18px; }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: clamp(60px, 8vw, 104px); }

.section-head { max-width: 740px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.7vw, 2.8rem);
  letter-spacing: -0.03em;
}
.section-head .lead { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.section--band {
  background:
    linear-gradient(180deg, transparent, rgba(92, 240, 176, 0.035) 25%, rgba(92, 240, 176, 0.035) 75%, transparent);
}

.aside-cta { margin-top: 30px; color: var(--text-2); }
.aside-cta a {
  color: var(--mint);
  font-weight: 600;
  text-decoration: none;
}
.aside-cta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.aside-cta .i { display: inline-block; width: 18px; height: 18px; margin-left: 2px; vertical-align: -0.22em; }

/* Antes / después */
.compare { display: grid; gap: 16px; }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; gap: 20px; } }
.compare__col {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.compare__col--after {
  border-color: var(--mint-line);
  background: linear-gradient(180deg, rgba(92, 240, 176, 0.08), rgba(92, 240, 176, 0.02));
  box-shadow: 0 0 70px -35px rgba(92, 240, 176, 0.6);
}
.compare__label {
  margin-bottom: 14px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.compare__col--after .compare__label { color: var(--mint); }
.compare li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  font-size: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.compare li:first-child { border-top: 0; }
.compare li .i { width: 20px; height: 20px; margin-top: 3px; }
.compare__col--before .i { color: var(--coral); }
.compare__col--after li { color: var(--text); }
.compare__col--after .i { color: var(--mint); }

/* Servicios */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(92, 240, 176, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover { border-color: var(--mint-line); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border: 1px solid rgba(92, 240, 176, 0.2);
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--mint);
}
.card__icon .i { width: 22px; height: 22px; }
.card h3 { font-size: 1.18rem; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 0.98rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Flujo */
.flow { position: relative; display: grid; gap: 30px; }
.flow::before,
.flow::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
}
.flow::before { background: linear-gradient(180deg, rgba(92, 240, 176, 0.12), rgba(92, 240, 176, 0.45), rgba(92, 240, 176, 0.12)); }
.flow::after {
  background: linear-gradient(180deg, transparent, var(--mint), transparent) no-repeat;
  background-size: 100% 22%;
  animation: travel-y 3.4s linear infinite;
}
@keyframes travel-y { from { background-position: 0 -30%; } to { background-position: 0 130%; } }
@keyframes travel-x { from { background-position: -30% 0; } to { background-position: 130% 0; } }

.flow__node {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 18px;
  align-items: start;
}
.flow__icon {
  position: relative;
  z-index: 1;
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(92, 240, 176, 0.38);
  border-radius: 16px;
  background: var(--surface);
  color: var(--mint);
  box-shadow: 0 0 34px -8px rgba(92, 240, 176, 0.5);
}
.flow__step { color: var(--text-3); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; }
.flow__node h3 { margin-top: 4px; font-size: 1.12rem; }
.flow__node p { margin-top: 8px; color: var(--text-2); font-size: 0.96rem; max-width: 34ch; }

@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .flow::before,
  .flow::after {
    left: 12.5%;
    right: 12.5%;
    top: 27px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .flow::before { background: linear-gradient(90deg, rgba(92, 240, 176, 0.12), rgba(92, 240, 176, 0.45), rgba(92, 240, 176, 0.12)); }
  .flow::after {
    background: linear-gradient(90deg, transparent, var(--mint), transparent) no-repeat;
    background-size: 22% 100%;
    animation-name: travel-x;
  }
  .flow__node { display: block; text-align: center; }
  .flow__icon { margin-inline: auto; }
  .flow__step { display: block; margin-top: 20px; }
  .flow__node p { margin-inline: auto; }
}

/* Casos de uso */
.cases { display: grid; gap: 14px; }
@media (min-width: 640px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(14, 21, 18, 0.35));
  transition: border-color 0.3s;
}
.case:hover { border-color: var(--line-2); }
.case__tag { color: var(--mint); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.case h3 { margin-top: 10px; font-size: 1.08rem; }
.case p { margin-top: 8px; color: var(--text-2); font-size: 0.96rem; }

/* Proceso */
.process { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .process { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
  .process__intro { position: sticky; top: calc(var(--header-h) + 40px); }
}
.process__intro h2 { margin-top: 14px; font-size: clamp(1.9rem, 3.7vw, 2.8rem); letter-spacing: -0.03em; }
.process__intro .lead { margin-top: 16px; }
.process__intro .btn { margin-top: 30px; }

.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mint-line);
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.step h3 { font-size: 1.15rem; }
.step p { margin-top: 6px; color: var(--text-2); font-size: 0.98rem; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--mint-line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--mint); }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq__icon { transform: rotate(45deg); color: var(--mint); }
.faq__a { padding: 0 22px 22px; color: var(--text-2); }

/* Contacto */
.contact {
  position: relative;
  display: grid;
  gap: 36px;
  overflow: hidden;
  padding: clamp(18px, 4.5vw, 56px);
  border: 1px solid var(--mint-line);
  border-radius: 30px;
  background:
    radial-gradient(800px 420px at 0% 0%, rgba(92, 240, 176, 0.12), transparent 60%),
    var(--surface);
}
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.contact h2 { margin-top: 14px; font-size: clamp(1.95rem, 3.9vw, 2.9rem); letter-spacing: -0.03em; }
.contact .lead { margin-top: 16px; }
.contact__tips-title { margin-top: 28px; color: var(--text); font-weight: 600; }
.contact__tips { display: grid; gap: 10px; margin-top: 12px; }
.contact__tips li { display: flex; gap: 10px; color: var(--text-2); }
.contact__tips .i { width: 20px; height: 20px; margin-top: 3px; color: var(--mint); }
.contact__intro .btn { margin-top: 30px; }

.form {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: rgba(7, 10, 9, 0.6);
}
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.field { display: block; }
.field label,
.field legend { padding: 0; color: var(--text); font-size: 0.92rem; font-weight: 600; }
.field legend { margin-bottom: 10px; }
.opt { color: var(--text-3); font-weight: 400; }

.form input[type="text"],
.form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input::placeholder,
.form textarea::placeholder { color: var(--text-3); }
.form input:focus,
.form textarea:focus { outline: none; border-color: rgba(92, 240, 176, 0.6); box-shadow: 0 0 0 4px rgba(92, 240, 176, 0.12); }
.form input[aria-invalid="true"] { border-color: var(--coral); }
.form textarea { min-height: 112px; resize: vertical; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.field .pill { position: relative; color: var(--text-2); font-weight: 400; cursor: pointer; }
.pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pill span {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.88rem;
  user-select: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.pill:hover span { border-color: rgba(92, 240, 176, 0.4); color: var(--text); }
.pill input:checked + span { border-color: var(--mint); background: var(--mint-soft); color: var(--mint); }
.pill input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }

.form__error { color: #ffb4a8; font-size: 0.9rem; }
.form__note { color: var(--text-3); font-size: 0.82rem; line-height: 1.55; }
.form__note a { color: var(--text-2); }
.form__note a:hover { color: var(--mint); }

/* ---------- Pie de página ---------- */
.footer { padding-block: 52px 36px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.1fr 2fr auto; } }
.footer__brand p { max-width: 34ch; margin-top: 12px; color: var(--text-3); font-size: 0.92rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__nav a { color: var(--text-2); font-size: 0.94rem; text-decoration: none; }
.footer__nav a:hover { color: var(--mint); }
.footer__grid > .btn { justify-self: start; }
.footer__legal {
  display: grid;
  gap: 6px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-ink);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(92, 240, 176, 0.6), 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease), opacity 0.35s, visibility 0s linear 0s, background-color 0.2s;
}
.fab:hover { background: var(--mint-hover); }
.fab .i { width: 24px; height: 24px; }
.js .fab:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(140%);
  transition: transform 0.35s var(--ease), opacity 0.35s, visibility 0s linear 0.35s;
}
@media (max-width: 640px) {
  .fab { width: 56px; padding: 0; justify-content: center; }
  .fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms), border-color 0.3s;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-done { transition: border-color 0.3s, transform 0.3s var(--ease); }
.js .card.reveal.is-visible:hover { transform: translateY(-2px); }

/* ---------- Páginas internas (aviso de privacidad, 404) ---------- */
.page { padding-block: clamp(44px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.page h1 { margin-top: 16px; font-size: clamp(2.1rem, 4.8vw, 3.2rem); letter-spacing: -0.03em; }
.page .updated { margin-top: 14px; color: var(--text-3); font-family: var(--font-mono); font-size: 0.8rem; }

.prose { max-width: 72ch; margin-top: 36px; color: var(--text-2); }
.prose h2 { margin: 42px 0 12px; color: var(--text); font-size: 1.3rem; letter-spacing: -0.01em; }
.prose h3 { margin: 22px 0 8px; color: var(--text); font-size: 1.05rem; }
.prose p + p { margin-top: 14px; }
.prose ul { display: grid; gap: 6px; margin-top: 12px; padding-left: 1.3em; list-style: disc; }
.prose ul + p { margin-top: 14px; }
.prose li::marker { color: var(--mint); }
.prose a { color: var(--mint); }
.prose strong { color: var(--text); }
.fill { padding: 0 0.3em; border-radius: 4px; background: rgba(255, 200, 60, 0.16); color: #ffd978; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--text-2);
  font-size: 0.95rem;
  text-decoration: none;
}
.back:hover { color: var(--mint); }
.back .i { width: 18px; height: 18px; transform: rotate(180deg); }

.notfound { display: grid; place-items: center; min-height: calc(100vh - var(--header-h)); padding-block: 48px 96px; text-align: center; }
.nf-title { margin-top: 16px; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
.notfound .lead { margin: 18px auto 0; }
.notfound .hero__ctas { justify-content: center; }
.nf-bubble {
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 30px;
  padding: 12px 16px 8px;
  border: 1px solid rgba(92, 240, 176, 0.22);
  border-radius: 16px;
  border-bottom-right-radius: 5px;
  background: linear-gradient(180deg, #123f30, #0e3326);
  text-align: left;
}
.nf-bubble small { display: inline-flex; align-items: center; gap: 6px; justify-self: end; color: var(--coral); font-family: var(--font-mono); font-size: 0.7rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .flow::after { display: none; }
}
