/* boceto.css — dos direcciones para la nueva landing de billibu-web.cl
   Paleta actual, menos ruido. Sin fuentes ni peticiones externas.
   Tokens primero; ningún color literal fuera de :root. */

/* Marca: subconjunto woff2 de Comfortaa 700 (OFL 1.1), renombrado por la licencia
   del nombre reservado. Solo cubre ASCII imprimible; el texto corriente sigue en --font. */
@font-face {
  font-family: "Billibu Wordmark";
  src: url("fuentes/billibu-wordmark.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07130d;
  --bg-2: #0a1a12;
  --sup: #0d2318;
  --sup-2: #102b1d;
  --line: #1d4a33;
  --line-soft: #163827;
  --ink: #e9fff4;
  --muted: #a9cdb9;
  --muted-2: #8fb7a0;
  --accent: #3ef58a;
  --accent-2: #19c96a;
  --accent-ink: #04140c;
  --focus: #ffffff;
  --paper: #f4f1e7;
  --paper-2: #ece8db;
  --paper-ink: #14231b;
  --paper-muted: #596b60;
  --paper-line: #d8d3c4;
  --paper-accent: #0a6b3a;
  --amber: #8a4b08;
  --amber-bg: #f6e3c8;
  --black: #000000;
  --shadow: 0 24px 80px color-mix(in srgb, var(--black) 38%, transparent);
  --shadow-soft: 0 12px 40px color-mix(in srgb, var(--black) 24%, transparent);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(52px, 7.2vw, 96px);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

/* Arranque: mientras el traductor pasa el documento al inglés detectado, el cuerpo no se
   pinta. Son milisegundos; el <noscript> y el temporizador del arranque lo levantan igual. */
html.i18n-pendiente body { visibility: hidden; }

body {
  margin: 0;
  font: 16px/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 38% at 50% -8%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%),
    radial-gradient(42% 30% at 100% 18%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%);
}

img, svg { display: block; }
figure { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }

h1, h2, h3, h4, p { margin: 0; }

h1 {
  font-size: clamp(2.55rem, 6.8vw, 4.9rem);
  line-height: .99;
  letter-spacing: -.045em;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.95rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 780;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 720;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { left: 16px; top: 12px; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 5.5vw, 68px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.lead {
  max-width: 58ch;
  margin-top: 18px;
  font-size: clamp(1.03rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
}

.micro {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.nota {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-2);
}

.section__head { max-width: 760px; }
.section__head h2 { margin: 12px 0 0; }

/* Botones y enlaces de acción */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover { background: var(--accent-2); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover { border-color: var(--accent); }

.btn--paper {
  background: var(--paper-ink);
  color: var(--paper);
}

.btn--paper:hover { background: var(--paper-accent); }

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.link svg { flex: none; }

/* Cabecera */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.logo__tag {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  padding: 12px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover { color: var(--ink); }

.header__right { display: flex; align-items: center; gap: 16px; }

.header__cta { display: inline-flex; }

.menu { display: none; position: relative; }

.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.menu nav {
  position: absolute;
  right: 0;
  top: 54px;
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 10px;
  background: var(--sup);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.menu nav a {
  padding: 14px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.menu nav a:hover { background: var(--sup-2); }

/* Portada */

.hero { position: relative; }

.hero--centered .hero__inner {
  max-width: 900px;
  margin-inline: auto;
  padding-block: clamp(72px, 10vw, 132px);
  text-align: center;
}

.hero--centered .lead { margin-inline: auto; }
.hero--centered .cta-row { justify-content: center; }

.hero--split .hero__inner {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}

.hero h1 { margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__visual {
  position: relative;
  min-height: 470px;
  /* Son maquetas de muestra: arrastrar sobre ellas no debe seleccionar su texto. */
  -webkit-user-select: none;
  user-select: none;
}

/* Piezas de muestra: navegador y documento */

.browser,
.doc {
  overflow: hidden;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.browser { border: 1px solid var(--paper-line); }

.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--paper-line);
}

.browser__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper-line);
  flex: none;
}

.browser__url {
  margin-left: 8px;
  color: var(--paper-muted);
  font-size: 10.5px;
  letter-spacing: .02em;
}

.browser__page { padding: 18px; }

.browser__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.browser__page .browser__kicker {
  margin-bottom: 6px;
  color: var(--paper-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.browser__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 14px;
}

.browser__copy p {
  color: var(--paper-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.browser__cta {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--paper-accent);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
}

.browser__foto {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  border-radius: 10px;
  background:
    radial-gradient(80% 80% at 70% 30%, color-mix(in srgb, var(--paper-accent) 55%, transparent), transparent 65%),
    linear-gradient(150deg, var(--paper-2), color-mix(in srgb, var(--paper-accent) 22%, var(--paper-2)));
}

.browser__foto::before,
.browser__foto::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper-accent) 32%, transparent);
}

.browser__foto::before { width: 90px; height: 90px; right: -20px; bottom: -24px; }
.browser__foto::after { width: 46px; height: 46px; left: 16px; top: 18px; background: color-mix(in srgb, var(--paper) 55%, transparent); }

.browser__pie {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--paper-line);
  color: var(--paper-muted);
  font-size: 9px;
}

.doc { border-top: 4px solid var(--paper-accent); padding: 22px; }

.doc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.doc__kicker {
  color: var(--paper-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.doc__title {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.doc__badge {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.doc table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 10.5px;
}

.doc th,
.doc td {
  padding: 7px 0;
  border-bottom: 1px solid var(--paper-line);
  text-align: left;
  font-weight: 400;
}

.doc th {
  color: var(--paper-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doc td:last-child,
.doc th:last-child { text-align: right; }

.doc td:last-child { font-variant-numeric: tabular-nums; }

.doc__foot {
  margin-top: 10px;
  color: var(--paper-muted);
  font-size: 8.5px;
  line-height: 1.4;
}

.hero__visual .visual-browser {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  transform: rotate(2deg);
}

.hero__visual .visual-doc {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70%;
  transform: rotate(-2deg);
}

.hero__visual .visual-chip {
  position: absolute;
  right: 4%;
  bottom: 12%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.hero__visual .visual-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Franja de confianza */

.trust {
  border-block: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 18px 0;
  list-style: none;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.trust__item svg { flex: none; color: var(--accent); }

/* Servicios */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: var(--sup);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service--paper {
  background: var(--paper);
  border-color: var(--paper-line);
  color: var(--paper-ink);
}

.service__tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}

.service--paper .service__tag { color: var(--paper-accent); }

.service h3 { margin: 10px 0 8px; }
.service p { color: var(--muted); font-size: 14.5px; }
.service--paper p { color: var(--paper-muted); }

.service ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
}

.service li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.service li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.service--paper li { color: var(--paper-muted); }
.service--paper li::before { background: var(--paper-accent); }

.service .link { margin-top: auto; }
.service--paper .link { color: var(--paper-accent); }

/* Cómo se cotiza */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.step h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }

.step__num {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.step h3 { margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* La propuesta por escrito */

.propuesta {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
  align-items: start;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.propuesta__title {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 650;
}

.propuesta ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.propuesta li {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.propuesta li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 47.99rem) {
  .propuesta,
  .propuesta ul { grid-template-columns: 1fr; }
}

/* Artefactos */

.artifacts {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  margin-top: 40px;
}

.artifacts .browser,
.artifacts .doc { width: 100%; }

.artifacts .doc { max-width: 420px; justify-self: end; }

/* Cifras de la prueba */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding: 32px 0;
  border-block: 1px solid var(--line);
}

.metric__num {
  display: block;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}

.metric__label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.thesis {
  max-width: 26ch;
  margin-top: 32px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.thesis em { color: var(--accent); font-style: normal; }

/* Agenda / contacto: la hoja de papel */

.booking {
  margin-block: var(--section);
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.booking__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.booking .eyebrow { color: var(--paper-accent); }
.booking h2 { color: var(--paper-ink); }
.booking .lead { color: var(--paper-muted); }

.contact-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-muted);
  font-size: 14px;
}

.contact-list svg { flex: none; color: var(--paper-accent); }

.contact-list a {
  color: var(--paper-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 1px;
}

.contact-list a:hover { border-color: var(--paper-accent); }

.booking__extra {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
}

.booking__extra p {
  color: var(--paper-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.booking__extra strong { color: var(--paper-ink); }

.booking-card {
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
}

.booking-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.booking-card__top strong { font-size: 15px; }
.booking-card__top span { color: var(--paper-muted); font-size: 11px; }

.cal-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 16px;
}

.cal-day {
  padding: 9px 2px;
  border: 1px solid var(--paper-line);
  border-radius: 9px;
  color: var(--paper-muted);
  font-size: 9.5px;
  text-align: center;
  line-height: 1.2;
}

.cal-day strong {
  display: block;
  margin-top: 2px;
  color: var(--paper-ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.cal-day.is-on {
  background: var(--paper-ink);
  border-color: var(--paper-ink);
  color: color-mix(in srgb, var(--paper) 78%, var(--paper-ink));
}

.cal-day.is-on strong { color: var(--paper); }

.booking-card .btn { width: 100%; }

.booking-card__note {
  margin-top: 10px;
  color: var(--paper-muted);
  font-size: 11px;
  text-align: center;
}

/* Formulario */

.form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--paper-line);
}

.field { display: grid; gap: 6px; }

.field label {
  color: var(--paper-ink);
  font-size: 12.5px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 15px;
}

.field textarea { min-height: 96px; resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--paper-accent);
  outline-offset: 1px;
}

.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--amber); }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form__nota {
  color: var(--paper-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.form__privacidad {
  margin: 4px 0 0 34px;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 26rem) {
  .form__privacidad { margin-left: 0; }
}

.form__ok {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--paper-accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper-accent) 8%, var(--paper));
  color: var(--paper-accent);
  font-size: 13px;
  font-weight: 650;
}

.form__ok[hidden] { display: none; }

.form__error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--amber);
  border-radius: 10px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 13px;
  font-weight: 650;
}

.form__error[hidden] { display: none; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--paper-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.check {
  min-height: 44px;
  align-items: center;
}

.check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 0;
  accent-color: var(--paper-accent);
}

.check label {
  display: block;
  padding-block: 12px;
}

.check a { color: var(--paper-accent); }

/* Preguntas */

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 18px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

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

.faq p {
  max-width: 68ch;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 14.5px;
}

/* Pie */

.site-footer {
  padding: 40px 0 34px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12.5px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer__brand p { max-width: 36ch; margin-top: 10px; }

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.social:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

.footer__nota {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 11px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer__col a {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  padding: 3px 0;
  min-height: 28px;
}

.footer__col a:hover { color: var(--ink); }
.footer__col span { color: var(--muted); font-size: 13.5px; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  color: var(--muted);
  text-decoration: none;
}
.footer__links a:hover { color: var(--ink); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 11.5px;
}

/* Adaptabilidad */

@media (max-width: 63.99rem) {
  .hero--split .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__visual { min-height: 0; display: grid; gap: 16px; }

  .hero__visual .visual-browser,
  .hero__visual .visual-doc,
  .hero__visual .visual-chip {
    position: static;
    width: 100%;
    transform: none;
  }

  .hero__visual .visual-chip { justify-self: start; width: auto; }

}

@media (max-width: 47.99rem) {
  .nav { display: none; }
  .menu { display: block; }
  .header__cta .btn { padding: 0 16px; }
  .header__right { gap: 10px; }

  .hero--centered .hero__inner { text-align: left; }
  .hero--centered .lead { margin-inline: 0; }
  .hero--centered .cta-row { justify-content: flex-start; }

  .services,
  .steps,
  .artifacts,
  .metrics,
  .booking__grid { grid-template-columns: 1fr; }

  .trust__list { grid-template-columns: 1fr 1fr; }
  .artifacts .doc { justify-self: start; max-width: 100%; }
  .metrics { gap: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .booking { border-radius: 18px; }

}

@media (max-width: 29.99rem) {
  .logo__tag { display: none; }
  .trust__list { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .cal-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cal-day:nth-child(5) { display: none; }
}

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

/* Dirección B: portada partida y servicios en filas */

.hero--split h1 { font-size: clamp(2.35rem, 4.7vw, 4.2rem); }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 56px);
}

.feature + .feature { border-top: 1px solid var(--line); }

.feature--reverse .feature__text { order: 2; }

.feature__num {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.feature h3 {
  margin: 10px 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.feature p { color: var(--muted); font-size: 15px; }

.feature ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.feature li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.feature li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.feature__media { width: 100%; }
.feature__media.doc { max-width: 420px; justify-self: center; }

.thesis-band {
  padding-block: var(--section);
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.thesis-band__inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.thesis-band .metrics { margin: 0; padding: 0; border: 0; }

@media (max-width: 47.99rem) {
  .feature,
  .thesis-band__inner { grid-template-columns: 1fr; }
  .feature--reverse .feature__text { order: 0; }
  .feature__media.doc { max-width: 100%; }
}

/* ==========================================================================
   B2 — tema claro, ajustes, índice, burbujas y chat
   ========================================================================== */

/* Tema claro */
html[data-tema="claro"] {
  --bg: #f3f7f2;
  --bg-2: #e8f1ea;
  --sup: #ffffff;
  --sup-2: #f4f8f5;
  --line: #c5dccb;
  --line-soft: #dbe9df;
  --ink: #0a2417;
  --muted: #3f6b53;
  --muted-2: #56755f;
  --accent: #0c8144;
  --accent-2: #0a6b3a;
  --accent-ink: #ffffff;
  --focus: #0a2417;
  --paper: #ffffff;
  --paper-2: #f7f3e9;
  --paper-ink: #14231b;
  --paper-muted: #55675c;
  --paper-line: #ddd7c8;
  --paper-accent: #0a6b3a;
  --amber: #8a4b08;
  --amber-bg: #f6e3c8;
  --shadow: 0 24px 70px color-mix(in srgb, var(--black) 16%, transparent);
  --shadow-soft: 0 12px 34px color-mix(in srgb, var(--black) 12%, transparent);
}

html[data-tema="claro"] body::before {
  background:
    radial-gradient(60% 38% at 50% -8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(42% 30% at 100% 18%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 70%);
}

html[data-tema="claro"] .site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

html[data-tema="claro"] .booking {
  border: 1px solid var(--line);
}

html[data-tema="claro"] .browser,
html[data-tema="claro"] .doc {
  box-shadow: var(--shadow-soft);
}

/* Alto contraste: una variante por tema, no una sola versión oscura. */
html[data-tema="oscuro"][data-contraste="alto"] {
  --bg: #000000;
  --bg-2: #000000;
  --sup: #0a0a0a;
  --sup-2: #111111;
  --line: #ffffff;
  --line-soft: #ffffff;
  --ink: #ffffff;
  --muted: #ffffff;
  --muted-2: #ffffff;
  --accent: #ffe600;
  --accent-2: #ffe600;
  --accent-ink: #000000;
  --focus: #00ffff;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --paper-ink: #000000;
  --paper-muted: #000000;
  --paper-line: #000000;
  --paper-accent: #000000;
  --amber: #000000;
  --amber-bg: #ffe600;
  --shadow: none;
  --shadow-soft: none;
}

html[data-tema="claro"][data-contraste="alto"] {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --sup: #ffffff;
  --sup-2: #ffffff;
  --line: #000000;
  --line-soft: #000000;
  --ink: #000000;
  --muted: #000000;
  --muted-2: #000000;
  --accent: #0033cc;
  --accent-2: #002299;
  --accent-ink: #ffffff;
  --focus: #0000ff;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --paper-ink: #000000;
  --paper-muted: #000000;
  --paper-line: #000000;
  --paper-accent: #0033cc;
  --amber: #000000;
  --amber-bg: #ffff00;
  --shadow: none;
  --shadow-soft: none;
}

html[data-contraste="alto"] body::before { background: var(--bg); }
html[data-contraste="alto"] .site-header,
html[data-contraste="alto"] .bottom-rail { background: var(--bg); }
html[data-contraste="alto"] .browser,
html[data-contraste="alto"] .doc,
html[data-contraste="alto"] .booking { border: 2px solid var(--line); }
html[data-contraste="alto"] .btn--primary { border: 2px solid var(--accent); }

/* Tamaño de texto: escala el contenido, no el marco de navegación. */
html[data-texto="grande"] main,
html[data-texto="grande"] .site-footer { zoom: 1.125; }

html[data-texto="muy-grande"] main,
html[data-texto="muy-grande"] .site-footer { zoom: 1.25; }

/* Cabecera e índice */
.site-header { z-index: 120; }

.header__inner {
  justify-content: flex-start;
  gap: clamp(10px, 1.5vw, 20px);
  min-height: 72px;
}

.logo { flex: none; }

.logo__img {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  border-radius: 8px;
}

.logo__word {
  display: inline-block;
  padding: .36em .60em .40em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Billibu Wordmark", var(--font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}

.rail {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}

.rail a svg { width: 20px; height: 20px; }

.rail a:hover,
.rail a:focus-visible { color: var(--ink); background: var(--sup); }

.rail a.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.header__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.lang {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang button {
  min-width: 38px;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.icon-btn:hover { border-color: var(--accent); background: var(--sup); }

.icon-btn svg { width: 20px; height: 20px; }

#btTema .ico-sol { display: none; }
html[data-tema="claro"] #btTema .ico-sol { display: block; }
html[data-tema="claro"] #btTema .ico-luna { display: none; }

.header__cta { flex: none; }

/* Ajustes */
.ajustes { display: none; position: relative; }

.js .ajustes { display: block; }

.js .mimo-bubble { display: grid; }

.ajustes__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.ajustes__btn:hover { border-color: var(--accent); background: var(--sup); }

.ajustes__btn svg { width: 18px; height: 18px; }

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

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

.ajustes__panel {
  position: absolute;
  right: 0;
  top: 54px;
  z-index: 100;
  width: 330px;
  max-height: min(620px, calc(100vh - 100px));
  overflow: auto;
  padding: 18px;
  background: var(--sup);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: panelIn .18s ease both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.ajustes__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ajustes__head strong { font-size: 14px; }

.ajustes fieldset {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.ajustes legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
}

.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.seg label { position: relative; cursor: pointer; }

.seg input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.seg input:checked + span {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.seg input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.ajustes__close {
  margin-top: 4px;
  width: 100%;
}

.ajustes__nota {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.35;
}

/* Índice inferior (teléfono) */
.bottom-rail { display: none; }

/* Burbujas y chat */
.bubbles {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  text-decoration: none;
  box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform .15s ease, filter .15s ease;
}

.contact-pill:hover { transform: translateY(-2px); filter: brightness(1.05); }

.contact-pill svg { width: 20px; height: 20px; }

.mimo-bubble {
  position: relative;
  display: none;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-2);
  cursor: pointer;
  animation: flota 4.5s ease-in-out infinite;
}

.mimo-bubble img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}

.mimo-bubble::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: .45;
  animation: halo 3.2s ease-out infinite;
  pointer-events: none;
}

@keyframes flota {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes halo {
  0% { transform: scale(.94); opacity: .45; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { opacity: 0; }
}

.chat {
  position: fixed;
  right: 20px;
  bottom: 102px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100dvh - 160px));
  overflow: hidden;
  background: var(--sup);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: chatIn .2s ease both;
}

.chat[hidden] { display: none; }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.chat__face {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-2);
  animation: faceIn .28s ease both;
}

@keyframes faceIn {
  from { opacity: 0; transform: scale(.88); }
  to { opacity: 1; transform: none; }
}

.chat__title { display: grid; gap: 1px; }
.chat__title strong { font-size: 13.5px; }
.chat__title span { color: var(--muted); font-size: 10.5px; }

.chat__close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.chat__close:hover { background: var(--sup-2); color: var(--ink); }

.chat__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow: auto;
  min-height: 120px;
}

.msg {
  max-width: 86%;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.msg--mimo {
  align-self: flex-start;
  background: var(--sup-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.msg--yo {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-right-radius: 4px;
}

.chat__form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.chat__form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 110px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
}

.chat__form .icon-btn { flex: none; }

.chat__note {
  padding: 0 12px 10px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.35;
}

/* Alcance: incluye / se cotiza aparte */
.incluye {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.incluye__card {
  padding: clamp(22px, 3vw, 32px);
  background: var(--sup);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.incluye__card--paper {
  background: var(--paper);
  border-color: var(--paper-line);
  color: var(--paper-ink);
}

.incluye__tag {
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.incluye__card--paper .incluye__tag { color: var(--paper-accent); }

.incluye h3 { margin: 8px 0 4px; }
.incluye p { color: var(--muted); font-size: 13.5px; }
.incluye__card--paper p { color: var(--paper-muted); }

.incluye__sub {
  margin: 20px 0 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.incluye__card--paper .incluye__sub { color: var(--paper-accent); }

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

.incluye li {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.incluye__card--paper li { color: var(--paper-muted); }

.incluye li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.incluye__card--paper li::before { background: var(--paper-accent); }

.incluye .no li::before {
  background: var(--muted-2);
  border-radius: 2px;
}

.incluye__card--paper .no li::before { background: var(--paper-muted); }

/* Animaciones de entrada (el contenido ya es visible sin ellas) */
@keyframes subir {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes aparecer {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: none; }
}

.hero__text > * { animation: subir .65s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > *:nth-child(2) { animation-delay: .05s; }
.hero__text > *:nth-child(3) { animation-delay: .1s; }
.hero__text > *:nth-child(4) { animation-delay: .15s; }
.hero__text > *:nth-child(5) { animation-delay: .2s; }
.hero__visual { animation: aparecer .8s .12s both; }

.feature__media,
.browser,
.doc { transition: transform .3s ease, box-shadow .3s ease; }

.feature__media:hover { transform: translateY(-4px); }

/* Adaptabilidad de la cabecera */
@media (max-width: 959px) {
  .rail { display: none; }
  .bottom-rail {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: flex;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .bottom-rail a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
  }
  .bottom-rail a svg { width: 22px; height: 22px; }
  .bottom-rail a.is-active { color: var(--accent); }
  body { padding-bottom: 72px; }
  .bubbles { bottom: 84px; right: 14px; }
  .chat { right: 12px; left: 12px; bottom: 166px; width: auto; max-height: calc(100dvh - 250px); }
  .incluye { grid-template-columns: 1fr; }
  .ajustes__panel {
    position: fixed;
    right: 12px;
    left: 12px;
    top: 76px;
    width: auto;
    max-height: calc(100dvh - 100px);
  }
}

@media (max-width: 699px) {
  .js .bubbles {
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .js .bubbles.is-visible {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .ajustes__label { display: none; }
  .ajustes__btn { width: 44px; padding: 0; justify-content: center; }
  .header__cta .btn { padding: 0 16px; }
}

@media (max-width: 479px) {
  .logo__tag { display: none; }
  .logo__img { width: 34px; height: 34px; }
  .header__cta .btn { padding: 0 14px; font-size: 13px; }
  .bubbles { gap: 8px; }
}

/* Movimiento reducido: por preferencia del sistema o por ajuste */
html[data-movimiento="reducido"] *,
html[data-movimiento="reducido"] *::before,
html[data-movimiento="reducido"] *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}

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

/* Piezas de los servicios: teléfono y flujo */

.feature__media--phone {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.phone {
  width: min(228px, 100%);
  padding: 9px;
  border: 1px solid var(--paper-line);
  border-radius: 30px;
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.phone__notch {
  width: 54px;
  height: 4px;
  margin: 2px auto 9px;
  border-radius: 99px;
  background: var(--paper-line);
}

.phone__screen {
  padding: 14px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--paper-ink);
}

.phone__kicker {
  color: var(--paper-accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.phone__title {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.phone__copy {
  margin-top: 6px;
  color: var(--paper-muted);
  font-size: 10px;
  line-height: 1.4;
}

.phone__img {
  height: 78px;
  margin: 10px 0;
  border-radius: 8px;
  background:
    radial-gradient(80% 80% at 70% 30%, color-mix(in srgb, var(--paper-accent) 55%, transparent), transparent 65%),
    linear-gradient(150deg, var(--paper-2), color-mix(in srgb, var(--paper-accent) 22%, var(--paper-2)));
}

.phone__btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--paper-accent);
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
}

.flujo {
  width: 100%;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sup);
}

.flujo__paso {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.flujo__paso:first-child { padding-top: 0; }
.flujo__paso:last-child { padding-bottom: 0; border-bottom: 0; }

.flujo__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.flujo__paso strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}

.flujo__paso > div span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.feature__media--phone .nota { text-align: center; }
.flujo + .nota { margin-top: 14px; }

/* Los SVG en línea sin atributos de tamaño caen a 300x150: se fijan aquí. */
.trust__item svg,
.link svg,
.contact-list svg {
  width: 17px;
  height: 17px;
}

/* Texto al 200 %: que las palabras largas puedan partirse y los carriles no
   impongan su ancho mínimo. */
.hero__text,
.hero__visual,
.feature__text,
.feature__media,
.booking__grid > *,
.booking-card,
.form,
.incluye__card,
.step,
.trust__item,
.contact-list li { min-width: 0; }

h1, h2, h3, p, li, summary, strong, a, span { overflow-wrap: break-word; }
.contact-list a { overflow-wrap: anywhere; }

/* ==========================================================================
   Movimiento y fondo: más vida, sin ruido
   ========================================================================== */

/* Deriva lenta del fondo. Solo opacidad/transform, y se apaga en alto contraste. */
body::after {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(32% 32% at 18% 28%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(28% 28% at 82% 72%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%);
  animation: deriva 22s ease-in-out infinite alternate;
}

@keyframes deriva {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1.5%, 0) scale(1.04); }
}

html[data-contraste="alto"] body::after { display: none; }

/* Aparición por scroll; sin JS el contenido queda visible. */
.js .revelar {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .65s cubic-bezier(.2, .7, .2, 1),
    transform .65s cubic-bezier(.2, .7, .2, 1),
    border-color .25s ease,
    background-color .3s ease,
    color .3s ease;
}

.js .revelar.es-visible {
  opacity: 1;
  transform: none;
}

/* Subrayado que crece al aparecer la sección. */
.section__head h2 { position: relative; }

.section__head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 14px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform .6s .15s cubic-bezier(.2, .7, .2, 1);
}

.js .section__head h2::after { transform: scaleX(0); }
.js .section__head.es-visible h2::after { transform: scaleX(1); }

/* Los artefactos respiran. */
.visual-browser { animation: flotaA 8s ease-in-out infinite; }
.visual-doc { animation: flotaB 9.5s ease-in-out infinite; }

@keyframes flotaA {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes flotaB {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 5px; }
}

/* Los números del flujo entran con el bloque. */
.js .flujo__num {
  opacity: 0;
  transform: scale(.82);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
}

.js .feature__media.es-visible .flujo__num { opacity: 1; transform: none; }
.js .flujo__paso:nth-child(2) .flujo__num { transition-delay: .08s; }
.js .flujo__paso:nth-child(3) .flujo__num { transition-delay: .16s; }

/* Botones y tarjetas con un poco de respuesta. */
.btn--primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.btn--primary:hover { filter: brightness(1.05); }

.incluye__card {
  transition: transform .28s ease, border-color .25s ease, box-shadow .28s ease;
}

.incluye__card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

/* Cambio de tema suave en las superficies grandes. */
body,
.site-header,
.bottom-rail,
.booking,
.browser,
.doc,
.chat,
.ajustes__panel {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* Movimiento reducido: lo revelado se muestra, y el fondo no deriva. */
html[data-movimiento="reducido"] .revelar,
html[data-movimiento="reducido"] .js .revelar {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

html[data-movimiento="reducido"] body::after,
html[data-movimiento="reducido"] .visual-browser,
html[data-movimiento="reducido"] .visual-doc {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .revelar,
  .js .revelar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  body::after,
  .visual-browser,
  .visual-doc { animation: none !important; }
}

@media (max-width: 899px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* El pie tiene que poder leerse por encima de las burbujas fijas. */
.site-footer { padding-bottom: 120px; }

@media (max-width: 959px) {
  .site-footer { padding-bottom: 210px; }
}

/* ===== B3: precios, IA abierta y movil propia ===== */

.hero__desde {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.hero__desde strong {
  color: var(--ink);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero__desde span:last-child { color: var(--muted-2); }

.precios {
  margin: 34px 0 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--sup-2), color-mix(in srgb, var(--sup) 40%, transparent));
}
.precios__cab {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.precios__cab h3 {
  margin: 8px 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.precios__cab p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.precios__controles { display: flex; flex: none; gap: 8px; }
.precios__hint { display: none; margin: 8px 0 0; color: var(--muted-2); font-size: 12px; }
.precios__controles .icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--sup);
  color: var(--ink);
}
.precios__controles .icon-btn:disabled { cursor: default; opacity: .35; }
.precios__controles #preciosPrev svg { transform: rotate(180deg); }

.precios__rail {
  display: flex;
  gap: 16px;
  margin: 0 -2px;
  padding: 22px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.precios__rail::-webkit-scrollbar { display: none; }
.precios__rail.arrastrando { cursor: grabbing; scroll-snap-type: none; }

.precio-card {
  display: flex;
  flex: 0 0 calc((100% - 32px) / 3);
  flex-direction: column;
  gap: 8px;
  min-height: 360px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--sup);
  scroll-snap-align: start;
  transition: transform .2s ease, border-color .2s ease;
  /* Arrastrar el carrusel no debe seleccionar el texto de la tarjeta. */
  -webkit-user-select: none;
  user-select: none;
}
.precio-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  transform: translateY(-2px);
}
.precio-card__tipo {
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.precio-card h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.65rem); }
.precio-card__para {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.precio-card__valor {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 2px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.precio-card__valor small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.precio-card ul {
  display: grid;
  gap: 7px;
  margin: 6px 0 18px;
  padding: 0;
  list-style: none;
}
.precio-card li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.precio-card li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.precio-card__cta { width: 100%; margin-top: auto; }

.precios__pie { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.precios__puntos { display: flex; flex: none; gap: 2px; }
.precios__puntos button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.precios__puntos button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--line);
  transition: width .2s ease, background-color .2s ease;
}
.precios__puntos button[aria-current="true"]::before { width: 20px; background: var(--accent); }
.precios__progreso {
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}
.precios__progreso span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .12s linear;
}
.precios__nota { margin: 12px 0 0; color: var(--muted-2); font-size: 12px; }

.precios__incluye { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.precios__incluye summary,
.adicionales__mas summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.precios__incluye summary::marker,
.adicionales__mas summary::marker { color: var(--accent); }
.incluye__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 8px 0 4px;
}
.incluye__cols h4 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.incluye__cols ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.incluye__cols li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.incluye__cols li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.incluye__cols div:last-child li::before { content: "—"; color: var(--muted-2); }

.adicionales { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); }
.adicionales__cab h3 { margin: 0 0 4px; }
.adicionales__cab p { margin: 0; color: var(--muted); font-size: 14px; }
.adicionales__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.adicional {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--sup) 60%, transparent);
}
.adicional > span { color: var(--muted); font-size: 12px; }
.adicional strong { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.adicional small { color: var(--muted-2); font-size: 11px; }
.adicional p { margin: 4px 0 0; color: var(--muted-2); font-size: 11.5px; line-height: 1.4; }
.adicionales__mas { margin-top: 10px; }
.adicionales__mas ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.aplicaciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aplicacion {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--sup) 55%, transparent);
}
.aplicacion svg { width: 22px; height: 22px; color: var(--accent); }
.aplicacion strong { color: var(--ink); font-size: 14px; }
.aplicacion span { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.feature--ia { align-items: start; }
.feature--ia .feature__media { max-width: 540px; justify-self: end; }
.feature--ia .nota { margin-top: 16px; }

.rail__label { display: none; }

html[data-contraste="alto"] .precios,
html[data-contraste="alto"] .precio-card,
html[data-contraste="alto"] .adicional,
html[data-contraste="alto"] .aplicacion { border-width: 2px; }

@media (max-width: 1023.98px) {
  .precio-card { flex-basis: calc((100% - 16px) / 2); min-height: 330px; }
  .adicionales__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature--ia .feature__media { max-width: none; justify-self: stretch; }
}

@media (max-width: 899.98px) {
  .hero__visual .visual-doc { display: none; }
  .hero__visual { display: block; min-height: 0; }
  .hero__visual .visual-browser {
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
    transform: none;
    position: static;
  }
}

@media (max-width: 767.98px) {
  .hero--split .hero__inner { padding-block: 92px 40px; gap: 28px; }
  .hero__visual { display: none; }
  .browser__page { padding: 18px 16px; }
  .browser__title { font-size: 1.75rem; }
  .browser__copy { font-size: 13px; }
  .browser__kicker { font-size: 9px; }
  .browser__cta { font-size: 11px; padding: 8px 12px; }
  .browser__pie { font-size: 11px; }
  .hero__desde strong { font-size: 1.5rem; }

  .precios { margin-top: 24px; padding: 18px 14px; border-radius: 18px; }
  .precios__cab { flex-direction: column; gap: 8px; }
  .precios__controles { display: none; }
  .precios__hint { display: block; }
  .precios__rail { gap: 12px; padding-top: 16px; }
  .precio-card { flex-basis: 86%; min-height: 330px; padding: 18px; }
  .precios__pie { margin-top: 6px; }
  .incluye__cols { grid-template-columns: 1fr; gap: 18px; }
  .aplicaciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature--ia .feature__media { justify-self: stretch; }

  .trust__list { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px 0; }
  .trust__item { align-items: flex-start; font-size: 12px; }

  .bottom-rail { padding: 5px 2px calc(5px + env(safe-area-inset-bottom)); }
  .bottom-rail a {
    flex: 1 1 0;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    min-height: 56px;
    padding: 4px 2px;
    font-size: 9px;
  }
  .bottom-rail a svg { width: 20px; height: 20px; }
  .rail__label { display: block; font-size: 9px; line-height: 1; white-space: nowrap; }
  body { padding-bottom: 86px; }
  .bubbles { bottom: 98px; }
  .chat { bottom: 180px; max-height: calc(100dvh - 264px); }
  .chat__form textarea { font-size: 16px; }
}

@media (max-width: 479.98px) {
  .precio-card { flex-basis: 88%; }
  .precios__nota { font-size: 11.5px; }
}

@media (max-width: 359.98px) {
  .adicionales__grid { grid-template-columns: 1fr; }
}

@media (max-width: 359.98px) {
  .rail__label { font-size: 8.5px; }
  .precio-card { flex-basis: 92%; }
}

/* Los controles solo aparecen si el carrusel se inicializó */
.precios__controles { display: none; }
.precios__pie { display: none; }
.precios-listo .precios__controles { display: flex; }
.precios-listo .precios__pie { display: none; }
.precios-listo .precios__puntos { display: none; }
@media (max-width: 767.98px) {
  .precios-listo .precios__controles { display: none; }
  .precios-listo .precios__puntos { display: flex; }
  .precios-listo .precios__pie { display: flex; }
}

/* Ajustes de telefono: cabecera solida, sin burbujas que tapen el carril */
@media (max-width: 767.98px) {
  .site-header { background: var(--bg); }
  .bubbles { display: none; }
  .precio-card { flex-basis: 95%; }
  .field input,
  .field select,
  .field textarea,
  .campo { font-size: 16px; }
}
@media (max-width: 359.98px) {
  .precio-card { flex-basis: 96%; }
}

/* Impresion: que la portada no salga en blanco */
@media print {
  .site-header,
  .bottom-rail,
  .bubbles,
  .chat,
  .ajustes,
  .precios__controles,
  .precios__pie { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  body::before { display: none !important; }
  .revelar,
  .js .revelar { opacity: 1 !important; transform: none !important; transition: none !important; }
  .precios__rail {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .precio-card { min-height: 0 !important; break-inside: avoid; }
  .precios,
  .precio-card,
  .adicional,
  .aplicacion { background: #fff !important; border: 1px solid #999 !important; }
  .precio-card__para,
  .precio-card li,
  .adicional p,
  .aplicacion span,
  .precios__nota { color: #333 !important; }
}

/* Afordancia de los desplegables de precios */
.precios__incluye summary,
.adicionales__mas summary { gap: 8px; }
.precios__incluye summary::after,
.adicionales__mas summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}
.precios__incluye[open] summary::after,
.adicionales__mas[open] summary::after { content: "−"; }

@media (max-width: 1023.98px) {
  .hero__visual .visual-doc { display: none; }
  .hero__visual { display: block; min-height: 0; }
  .hero__visual .visual-browser {
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
    transform: none;
    position: static;
  }
}

/* El telefono no carga la muestra de portada: el hero es texto y precio */
@media (max-width: 767.98px) {
  .hero__visual { display: none; }
}

@media (max-width: 959px) {
  .bottom-rail { background: var(--bg); }
}

/* ===== B3.1: recuperar materia, vida y orden ===== */

/* La portada vuelve a tener una pieza de papel, tambien en telefono */
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.025em;
}

.hero__visual .visual-browser:hover {
  transform: rotate(2deg) translateY(-4px);
}
.hero__visual .visual-doc:hover {
  transform: rotate(-2deg) translateY(-4px);
}

/* El carrusel de precios se vuelve un mostrador de papel */
.precios {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.precios::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(var(--g), .22) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  opacity: .55;
}
html[data-contraste="alto"] .precios::before { display: none; }

.precio-card {
  position: relative;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border-color: var(--paper-line);
  color: var(--paper-ink);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.precio-card:hover {
  transform: translateY(-5px) rotate(-.35deg);
  border-color: color-mix(in srgb, var(--paper-accent) 45%, var(--paper-line));
  box-shadow: var(--shadow);
}
.precio-card__tipo { color: var(--paper-accent); }
.precio-card h3 {
  color: var(--paper-ink);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.025em;
}
.precio-card__para,
.precio-card li { color: var(--paper-muted); }
.precio-card__valor {
  color: var(--paper-ink);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.04em;
}
.precio-card__valor small { color: var(--paper-muted); }
.precio-card li::before { background: var(--paper-accent); }
.precio-card .btn--ghost {
  background: var(--paper-ink);
  border-color: var(--paper-ink);
  color: var(--paper);
}
.precio-card .btn--ghost:hover {
  background: var(--paper-accent);
  border-color: var(--paper-accent);
  color: var(--paper);
}
.precio-card--dest {
  border-color: var(--paper-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--paper-accent) 35%, transparent), var(--shadow-soft);
}
.precio-card__badge {
  position: absolute;
  top: -11px;
  left: 20px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px var(--accent);
}

.precios.es-visible .precio-card {
  animation: precioIn .55s cubic-bezier(.2, .7, .2, 1) both;
}
.precios.es-visible .precio-card:nth-child(2) { animation-delay: .05s; }
.precios.es-visible .precio-card:nth-child(3) { animation-delay: .1s; }
.precios.es-visible .precio-card:nth-child(4) { animation-delay: .15s; }
.precios.es-visible .precio-card:nth-child(5) { animation-delay: .2s; }
@keyframes precioIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* La IA deja de ser una rejilla anonima: icono, numero y elevacion */
.aplicacion {
  position: relative;
  padding: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sup) 80%, transparent), color-mix(in srgb, var(--sup) 40%, transparent));
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.aplicacion::after {
  content: attr(data-num);
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.aplicacion svg {
  width: 18px;
  height: 18px;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  box-sizing: content-box;
}
.aplicacion strong { margin-top: 5px; }
.aplicacion:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
.feature--ia .feature__media { position: relative; isolation: isolate; }
.feature--ia .feature__media::before {
  content: "IA";
  position: absolute;
  top: -36px;
  right: -14px;
  z-index: -1;
  color: color-mix(in srgb, var(--accent) 7%, transparent);
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.08em;
}

/* Los adicionales tambien respiran */
.adicional { position: relative; transition: transform .2s ease, border-color .2s ease; }
.adicional::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 2px;
  background: var(--accent);
  opacity: .45;
}
.adicional:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

/* La muestra vuelve en telefono: una sola pieza, clara */
@media (max-width: 767.98px) {
  .hero__visual {
    display: block;
    min-height: 0;
    margin-top: 18px;
  }
  .hero__visual .visual-browser {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    transform: none;
    position: static;
  }
  .hero__visual .visual-doc { display: none; }
  .hero__visual .visual-chip {
    position: static;
    justify-self: start;
    width: auto;
    margin-top: 10px;
  }
  .precio-card { flex-basis: 95%; }
  .precio-card:hover { transform: none; }
}

@media (max-width: 359.98px) {
  .precio-card { flex-basis: 96%; }
}

/* En telefono manda la tipografia y el precio; la muestra completa no cabe sin cortarse */
@media (max-width: 767.98px) {
  .hero__visual { display: none; }
}

.hero__mini { display: none; }
@media (max-width: 767.98px) {
  .hero__mini {
    display: block;
    margin: 14px 0 0;
    color: var(--muted-2);
    font-size: 11.5px;
    line-height: 1.45;
  }
  .trust { display: none; }
}

/* Pantallas bajas: que el CTA principal no quede debajo del indice */
@media (max-width: 359.98px), (max-width: 767.98px) and (max-height: 720px) {
  .hero--split .hero__inner { padding-block: 56px 24px; gap: 18px; }
  .hero h1 { font-size: clamp(2.05rem, 7.2vw, 2.8rem); }
  .hero__text .lead { font-size: 15.5px; line-height: 1.5; }
  .hero__desde { margin-top: 12px; }
  .cta-row { margin-top: 18px; }
  .hero__mini { margin-top: 12px; }
}

/* El FAQ se ordena en dos columnas en escritorio; en telefono sigue en una */
@media (min-width: 1000px) {
  .faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    align-items: start;
  }
}

/* ==========================================================================
   B3.2 — Orientación: índice con nombre, progreso y fondo por capítulo
   ========================================================================== */

/* El tono del fondo se interpola; sin esto el color saltaría entre secciones. */
@property --tono { syntax: "<number>"; inherits: true; initial-value: 158; }

html {
  --tono: 158;
  --luz: 50% 0%;
  transition: --tono 1s ease;
}

html[data-actual="top"]       { --tono: 158; --luz: 50% 0%; }
html[data-actual="servicios"] { --tono: 168; --luz: 78% 24%; }
html[data-actual="alcance"]   { --tono: 40;  --luz: 18% 44%; }
html[data-actual="como"]      { --tono: 205; --luz: 72% 60%; }
html[data-actual="preguntas"] { --tono: 258; --luz: 22% 76%; }
html[data-actual="agenda"]    { --tono: 148; --luz: 50% 92%; }

/* Capa de ambiente: un foco de color que se mueve y cambia de tono por sección. */
.ambiente {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(36% 36% at 50% 50%,
    hsl(var(--tono) 62% 52% / .15), transparent 72%);
  background-repeat: no-repeat;
  background-size: 200% 200%;
  background-position: var(--luz);
  transition: background-position 1.1s ease;
}

/* 1. Índice con nombre (escritorio) */
/* Etiqueta y número solo donde de verdad caben; por debajo, icono solo. */
@media (min-width: 1240px) {
  .rail a {
    width: auto;
    height: 40px;
    gap: 7px;
    padding: 0 12px;
    border-radius: 999px;
  }
  .rail a svg { width: 17px; height: 17px; }
  .rail .rail__label {
    display: inline;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
  }
}

/* 2. Progreso de lectura, pegado al borde inferior de la cabecera */
.progreso {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  pointer-events: none;
  overflow: hidden;
}
.progreso span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 30%, transparent), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* 3. Mimo en la cabecera del teléfono */
.mimo-head {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--sup);
  border: 1px solid var(--line);
  cursor: pointer;
}
.mimo-head img { width: 26px; height: 26px; border-radius: 50%; }
.mimo-head:hover,
.mimo-head:focus-visible { border-color: var(--accent); }

@media (max-width: 767.98px) {
  .mimo-head { display: grid; }

  /* El chat se abre pegado a la cabecera, que es de donde sale el boton */
  .chat {
    top: calc(73px + 8px);
    bottom: auto;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100dvh - 73px - 92px);
  }

  /* Progreso en el carril inferior */
  .bottom-rail { position: fixed; }
  .bottom-rail__progreso {
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    overflow: hidden;
    pointer-events: none;
  }
  .bottom-rail__progreso span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .12s linear;
  }
}

@media (max-width: 359.98px) {
  .header__inner { gap: 8px; }
  .logo { font-size: 16px; gap: 6px; }
  .logo__word { font-size: 17px; }
  .logo__img { width: 30px; height: 30px; }
  .header__controls { gap: 5px; }
  .mimo-head { width: 32px; height: 32px; }
  .mimo-head img { width: 21px; height: 21px; }
  .header__cta { padding: 0 12px; font-size: 13px; }
}

/* 4. Respeto de contraste, movimiento y papel */
html[data-contraste="alto"] .ambiente { display: none; }
html[data-movimiento="reducido"] .ambiente,
html[data-movimiento="reducido"] html { transition: none; }
html[data-movimiento="reducido"] .progreso span,
html[data-movimiento="reducido"] .bottom-rail__progreso span { transition: none; }

@media (prefers-reduced-motion: reduce) {
  html, .ambiente { transition: none; }
  .progreso span, .bottom-rail__progreso span { transition: none; }
}

@media print {
  .ambiente, .progreso, .mimo-head { display: none !important; }
}

/* ==========================================================================
   B3.2 — Filosofía: por qué hacemos esto
   ========================================================================== */

.filosofia__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.filosofia__texto { max-width: 640px; }
.filosofia__texto p { margin: 14px 0 0; color: var(--muted); }

.filosofia__fuente {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.5;
}
.filosofia__fuente a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.filosofia__fuente a:hover { color: var(--ink); }

.filosofia__principios {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.principio {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.principio__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
}
.principio h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.principio p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

@media (max-width: 899.98px) {
  .filosofia__grid { grid-template-columns: 1fr; }
  .filosofia__principios { border-top: 0; }
  .principio:first-child { border-top: 1px solid var(--line); }
}

@media print {
  .filosofia__principios { break-inside: avoid; }
}

.filosofia__cita {
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}

@media (max-width: 899.98px) {
  .filosofia__cita { margin-top: 26px; }
}
