/* ==========================================================================
   OptoCRM — Sitio comercial (optocrm.com)
   Sistema de diseño "Boticario": teal profundo + superficies arena cálidas,
   titulares en IBM Plex Serif, cuerpo en IBM Plex Sans, detalle en IBM Plex Mono.
   Estático, sin dependencias externas. Fuentes autoalojadas (véase fonts.css).
   ========================================================================== */

/* ---------- Tokens -------------------------------------------------------- */
:root {
  /* Color — nombres del documento de marca */
  --ink:          #0C2A2B; /* Ink / Deep — titulares, fondos oscuros */
  --ink-800:      #04201f; /* aún más profundo */
  --ink-700:      #103a3a;
  --teal:         #0E7C7B; /* Primary Teal */
  --teal-700:     #0b6362;
  --teal-600:     #0e7c7b;
  --accent:       #14B8AE; /* Accent Teal */
  --accent-200:   #7fe0d9;
  --accent-100:   #cfe3e2;
  --accent-050:   #eafcfb;
  --amber:        #E0913C; /* Warm Amber */
  --amber-700:    #b06f18;

  --sand:         #FAF5EA; /* Sand Surface — fondo cálido base */
  --sand-200:     #f0ece2; /* tarjeta arena */
  --sand-300:     #efe6d5;
  --surface:      #FFFFFF; /* Surface */

  --body:         #24343C; /* Body Text */
  --muted:        #5C6B73; /* Muted */
  --muted-2:      #8aa1a0;

  --border-warm:  #E6E0D4; /* Warm Border */
  --border:       #dfe3e0; /* borde frío suave */
  --border-strong:#cfdad9;

  --success:      #0F8A5B;
  --warning:      #B45309;
  --danger:       #C0392B;

  /* Tipografía */
  --font-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-sans:  'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fs-display: clamp(2.5rem, 1.55rem + 4.1vw, 4rem);
  --fs-h1:      clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  --fs-h2:      clamp(1.65rem, 1.25rem + 1.7vw, 2.4rem);
  --fs-h3:      1.25rem;
  --fs-body-lg: clamp(1.075rem, 1rem + 0.35vw, 1.2rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9rem;
  --fs-eyebrow: 0.76rem;

  /* Espaciado (base 4) */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;     --sp-8: 3rem;    --sp-10: 4rem;
  --sp-12: 6rem;  --sp-16: 8rem;

  /* Radios, sombras, layout */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(12,42,43,.06), 0 1px 1px rgba(12,42,43,.04);
  --shadow-md: 0 6px 18px -8px rgba(12,42,43,.18), 0 2px 6px -4px rgba(12,42,43,.10);
  --shadow-lg: 0 24px 48px -20px rgba(12,42,43,.28), 0 8px 20px -12px rgba(12,42,43,.16);
  --ring: 0 0 0 3px rgba(20,184,174,.45);

  --container: 1140px;
  --container-narrow: 800px;
  --header-h: 72px;
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--body);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-700); }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* ---------- Tipografía --------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: 0; }
p { text-wrap: pretty; }

.display { font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.lead { font-size: var(--fs-body-lg); color: var(--muted); line-height: 1.55; }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700);
}

/* ---------- Layout ------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.section-head { max-width: 44rem; margin-bottom: var(--sp-8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--sp-3); }
.section-head p { margin-top: var(--sp-3); font-size: var(--fs-body-lg); color: var(--muted); }

.bg-sand    { background: var(--sand); }
.bg-surface { background: var(--surface); }
.bg-sand-2  { background: var(--sand-200); }
.bg-ink     { background: var(--ink); color: #dfeae9; }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink .display { color: #ffffff; }
.bg-ink .lead, .bg-ink p { color: #a9c4c2; }
.bg-ink .eyebrow { color: var(--accent-200); }

.grid { display: grid; gap: var(--sp-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: var(--sp-4); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }

/* ---------- Botones ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.975rem; line-height: 1;
  padding: 0.8rem 1.35rem; border-radius: var(--r-md); border: 1.5px solid transparent;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent { background: var(--accent); color: var(--ink-800); }
.btn--accent:hover { background: #10a89f; color: var(--ink-800); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--secondary:hover { background: #fff; border-color: var(--teal); color: var(--teal-700); }
.btn--onink { background: #fff; color: var(--ink); }
.btn--onink:hover { background: var(--accent-050); color: var(--ink); }
.btn--onink-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--onink-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn:focus-visible { box-shadow: var(--ring); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--teal); }
.link-arrow span { transition: transform .15s ease; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Distintivos (badges) ---------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: .04em; padding: .32rem .6rem; border-radius: var(--r-pill);
  background: var(--accent-050); color: var(--teal-700); border: 1px solid var(--accent-100);
}
.badge--amber   { background: #fbeede; color: var(--amber-700); border-color: #f2d9b4; }
.badge--pop     { background: var(--teal); color: #fff; border-color: transparent; }
.badge--secure  { background: #eef3f2; color: var(--ink); border-color: var(--border-warm); }
.badge--new     { background: #e5edfd; color: #3730a3; border-color: #cdd9fb; }

/* ---------- Tarjetas ----------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border-warm);
  border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-100); }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem;
  border-radius: var(--r-md); background: var(--accent-050); border: 1px solid var(--accent-100);
  margin-bottom: var(--sp-4);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--muted); }

/* Lista con "tick" */
.ticks { display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--body); }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: var(--r-pill);
  background: var(--accent-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E7C7B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--accent-100);
}

/* Ticks sobre fondo oscuro */
.bg-ink .ticks li { color: #cfe0de; }
.bg-ink .ticks li::before {
  background-color: rgba(255,255,255,.10); border-color: rgba(127,224,217,.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237fe0d9' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.bg-ink .feature-list li { color: #cfe0de; }

/* Inline "features" row */
.inline-ticks { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.inline-ticks li { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-small); font-weight: 500; color: var(--body); }
.inline-ticks li::before { content: "✓"; color: var(--teal); font-weight: 700; }

/* ---------- Header / Nav ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,245,234,.82); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border-warm); box-shadow: var(--shadow-sm); background: rgba(250,245,234,.94); }
.nav { display: flex; align-items: center; gap: var(--sp-5); height: var(--header-h); }
.nav__links { display: flex; align-items: center; gap: var(--sp-5); margin-inline: auto; }
.nav__links a { color: var(--body); font-weight: 500; font-size: 0.97rem; }
.nav__links a:hover, .nav__links a.is-active { color: var(--teal-700); }
.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav__login { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-md); border: 1px solid var(--border-warm); }
.nav__toggle svg { margin-inline: auto; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.bg-ink .logo, .site-footer .logo { color: #fff; }

.only-mobile { display: none; }
@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: grid; place-items: center; margin-left: auto; }
  .nav__links.is-open {
    display: flex; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: .15rem; margin: 0;
    background: var(--sand); border-bottom: 1px solid var(--border-warm); box-shadow: var(--shadow-md); padding: var(--sp-3);
  }
  .nav__links.is-open .only-mobile { display: block; }
  .nav__links.is-open li > a:not(.btn) { display: block; padding: .8rem .6rem; border-radius: var(--r-md); color: var(--body); }
  .nav__links.is-open li > a:not(.btn):hover { background: #fff; }
  .nav__links.is-open .btn { margin-top: .4rem; }
}

/* ---------- Hero --------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 6rem); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); align-items: center; }
.hero__eyebrow-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--border-warm); box-shadow: var(--shadow-sm);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .06em; color: var(--teal-700);
}
.hero h1, .hero .display { margin-top: var(--sp-4); }
.hero .lead { margin-top: var(--sp-4); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__ticks { margin-top: var(--sp-5); }
.hero__glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; filter: blur(90px);
  background: radial-gradient(circle, rgba(20,184,174,.16), transparent 65%); top: -220px; right: -160px; z-index: -1; pointer-events: none; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* App-panel mockup (captura de producto simulada) */
.appwin { background: var(--surface); border: 1px solid var(--border-warm); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(.4deg); }
.appwin__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; background: var(--ink); }
.appwin__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.28); }
.appwin__bar .title { margin-left: .6rem; color: #cfe3e2; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; }
.appwin__body { padding: 1.1rem; background: linear-gradient(180deg,#fbfbf9,#f5f7f6); }
.appwin__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin-bottom: .9rem; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: .7rem .8rem; }
.stat .label { font-size: .68rem; color: var(--muted); font-weight: 500; }
.stat .value { font-family: var(--font-mono); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin-top: .15rem; }
.stat .value.warn { color: var(--warning); }
.rowitem { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .2rem; border-top: 1px solid var(--border); }
.rowitem:first-of-type { border-top: 0; }
.rowitem .who { display: flex; flex-direction: column; }
.rowitem .who .ref { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }
.rowitem .who .name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.rowitem .amount { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.pill { font-size: .68rem; font-weight: 600; padding: .2rem .5rem; border-radius: var(--r-pill); }
.pill--deposit { background: var(--accent-050); color: var(--teal-700); border: 1px solid var(--accent-100); }
.pill--taller { background: #fbeede; color: var(--amber-700); border: 1px solid #f2d9b4; }
.appwin__secure { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; padding: .55rem .7rem;
  background: #eef3f2; border: 1px solid var(--border-warm); border-radius: var(--r-md);
  font-size: .78rem; color: var(--ink); font-weight: 500; }

/* ---------- Trust strip -------------------------------------------------- */
.trust { text-align: center; }
.trust .eyebrow { color: var(--muted-2); }
.trust__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; margin-top: var(--sp-5); }
.trust__logos span { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: #93a3a1; letter-spacing: -0.01em; }

/* ---------- Circuito (flow) --------------------------------------------- */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; justify-content: center; }
.flow__step { flex: 1 1 140px; min-width: 120px; background: #fff; border: 1px solid var(--border-warm);
  border-radius: var(--r-md); padding: 1rem; text-align: center; box-shadow: var(--shadow-sm); }
.flow__step .ico { font-size: 1.4rem; }
.flow__step .lbl { font-weight: 600; font-size: .92rem; color: var(--ink); margin-top: .3rem; }
.flow__arrow { display: grid; place-items: center; color: var(--accent); font-weight: 700; flex: 0 0 auto; }
@media (max-width: 640px) { .flow__arrow { transform: rotate(90deg); } }

/* ---------- Feature split (alterna) ------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split--rev .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--sp-5); } .split--rev .split__media { order: 0; } }
.feature-media { background: var(--sand-200); border: 1px solid var(--border-warm); border-radius: var(--r-xl); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.feature-list { display: grid; gap: .55rem; margin-top: var(--sp-4); }
.feature-list li { display: flex; gap: .6rem; color: var(--body); }
.feature-list li::before { content: "→"; color: var(--accent); font-weight: 700; }

/* ---------- Precios ------------------------------------------------------ */
.price-toggle { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--border-warm); box-shadow: var(--shadow-sm); }
.price-toggle button { padding: .5rem 1rem; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .15s ease; }
.price-toggle button.is-active { background: var(--ink); color: #fff; }
.price-toggle .save { font-family: var(--font-mono); font-size: .68rem; color: var(--teal-700); }

.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); align-items: stretch; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-warm);
  border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); position: relative; }
.price-card--featured { border-color: var(--teal); box-shadow: var(--shadow-lg); }
.price-card__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.price-card .plan { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); }
.price-card .price { display: flex; align-items: baseline; gap: .3rem; margin-top: .5rem; }
.price-card .price .amount { font-family: var(--font-mono); font-weight: 600; font-size: 2.5rem; color: var(--ink); line-height: 1; }
.price-card .price .per { color: var(--muted); font-size: .9rem; }
.price-card .price-note { font-size: .82rem; color: var(--muted); margin-top: .35rem; min-height: 1.2em; }
.price-card .desc { color: var(--muted); margin-top: var(--sp-4); font-size: .95rem; }
.price-card .btn { margin-top: var(--sp-5); }
.price-card .ticks { margin-top: var(--sp-5); font-size: .92rem; padding-top: var(--sp-5); border-top: 1px solid var(--border-warm); }
.price-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.25rem; margin-top: var(--sp-6); }
.price-perks li { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-small); color: var(--muted); }
.price-perks li::before { content: "✓"; color: var(--teal); font-weight: 700; }

/* Tabla comparativa */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-warm); border-radius: var(--r-lg); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
table.compare thead th { font-family: var(--font-sans); font-weight: 600; color: var(--ink); background: var(--sand-200); }
table.compare th[scope="row"] { font-weight: 500; color: var(--body); }
table.compare td.mark { text-align: center; color: var(--teal); font-weight: 700; }
table.compare td.no { text-align: center; color: var(--muted-2); }
table.compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); }
.faq details { background: #fff; border: 1px solid var(--border-warm); border-radius: var(--r-md); padding: 0 var(--sp-5); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: var(--sp-4) 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--teal); font-size: 1.4rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--sp-4); color: var(--muted); margin-top: -.3rem; }

/* ---------- Formularios -------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.bg-ink .field label { color: #dfeae9; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 0.97rem; color: var(--body); background: #fff;
  padding: .75rem .9rem; border: 1.5px solid var(--border-strong); border-radius: var(--r-md); width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #98a7a5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: .82rem; color: var(--muted); }
.bg-ink .form__note { color: #8fa9a7; }
.form__success { display: none; padding: var(--sp-4); border-radius: var(--r-md); background: var(--accent-050);
  border: 1px solid var(--accent-100); color: var(--teal-700); font-weight: 500; }
.form__success.is-visible { display: block; }

/* CTA band con formulario (fondo oscuro) */
.cta-band .cta-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-xl); padding: var(--sp-6); }
.cta-band .field input { background: rgba(255,255,255,.95); border-color: transparent; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9fb9b7; padding-block: var(--sp-8) var(--sp-6); }
.site-footer a { color: #b9d0ce; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: #86a3a1; font-size: .9rem; margin-top: var(--sp-3); max-width: 22rem; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #6f918f; margin-bottom: var(--sp-3); }
.footer-col ul { display: grid; gap: .55rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: var(--sp-8);
  padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #6f918f; }

/* ---------- Reveal (respetando reduced-motion) -------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Utilidades varias ------------------------------------------- */
.divider { height: 1px; background: var(--border-warm); border: 0; }
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.eyebrow-amber { color: var(--amber-700); }
.pill-note { display:inline-flex; gap:.4rem; align-items:center; font-family:var(--font-mono); font-size:.72rem; color:var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-md); z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; color:#fff; }

/* Iconos SVG en línea ({% icon %}) — ver la nota equivalente en css/app.css. */
.icon { display: inline-block; vertical-align: -0.14em; flex: none; }
