/* Fidely: hoja de estilos única del sitio (portada, blog y páginas legales)
   Sistema visual: skill fidely-design (tokens.css). Los valores de :root son los de la skill; no hay un segundo sistema.
   Orden: fuentes · tokens · base · botones · cabecera · secciones · hero · idea · ciclo · funciones · configurador
          · prueba social · precios · preguntas · demo · pie · aviso de cookies · páginas interiores */

/* ---------- Fuentes autoalojadas (OFL, ver assets/fonts/OFL.txt) ---------- */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/dm-sans-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/dm-sans-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/dm-sans-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/dm-sans-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/playfair-display-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/playfair-display-latin-700.woff2') format('woff2'); }

/* ---------- Tokens (copia de fidely-design/reference/tokens.css) ---------- */
:root {
  /* Color de marca */
  --fy-navy: #1B2340;
  --fy-navy-2: #2D3A5C;
  --fy-navy-deep: #0F1730;
  --fy-green: #2ECC71;
  --fy-green-2: #27AE60;
  --fy-green-ink: #197A41;
  --fy-green-soft: #E8F8F0;
  --fy-green-mid: #D1F5E3;

  /* Neutros */
  --fy-white: #FFFFFF;
  --fy-paper: #F7F8FA;
  --fy-line: #EAECF0;
  --fy-field: #767F8F;
  --fy-ink: #1B2340;
  --fy-ink-2: #475467;
  --fy-ink-3: #6B7280;
  --fy-on-navy: rgba(255, 255, 255, .88);
  --fy-on-navy-2: rgba(255, 255, 255, .70);

  /* Color funcional */
  --fy-error: #B42318;
  --fy-error-bg: #FEF3F2;

  /* Tipografía */
  --fy-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --fy-font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fy-fs-xs: .75rem;
  --fy-fs-sm: .875rem;
  --fy-fs-base: 1rem;
  --fy-fs-md: 1.125rem;
  --fy-fs-lg: clamp(1.25rem, 1.15rem + .4vw, 1.375rem);
  --fy-fs-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --fy-fs-2xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fy-fs-3xl: clamp(2.5rem, 1.8rem + 2.8vw, 3.625rem);
  --fy-lh-tight: 1.1;
  --fy-lh-snug: 1.3;
  --fy-lh-body: 1.6;
  --fy-track-display: -.015em;
  --fy-measure: 38rem;

  /* Espaciado (base 4/8) */
  --fy-s-1: 4px;  --fy-s-2: 8px;  --fy-s-3: 12px; --fy-s-4: 16px;
  --fy-s-5: 24px; --fy-s-6: 32px; --fy-s-7: 48px; --fy-s-8: 64px; --fy-s-9: 96px; --fy-s-10: 128px;
  --fy-section-y: clamp(72px, 9vw, 128px);
  --fy-gutter: clamp(20px, 4vw, 32px);
  --fy-maxw: 1200px;

  /* Radios */
  --fy-r-control: 10px;
  --fy-r-object: 16px;
  --fy-r-round: 999px;
  --fy-r-device: 44px;

  /* Sombras */
  --fy-sh-1: 0 1px 2px rgba(27, 35, 64, .06), 0 1px 1px rgba(27, 35, 64, .04);
  --fy-sh-2: 0 2px 4px rgba(27, 35, 64, .05), 0 24px 48px -24px rgba(27, 35, 64, .22);

  /* Movimiento */
  --fy-dur-fast: 120ms;
  --fy-dur: 200ms;
  --fy-dur-slow: 320ms;
  --fy-ease: cubic-bezier(.2, .8, .2, 1);
  --fy-ease-inout: cubic-bezier(.4, 0, .2, 1);

  /* Capas y foco */
  --fy-z-header: 50; --fy-z-overlay: 60; --fy-z-toast: 70;
  --fy-focus: 0 0 0 3px var(--fy-white), 0 0 0 5px var(--fy-navy);

  /* Medidas propias de la maqueta de la web (no son del sistema visual) */
  --header-h: 72px;
  --reading: 44rem;
  --ring: var(--fy-navy);                                         /* color del foco de teclado; blanco sobre navy */
  --rule: color-mix(in srgb, var(--fy-navy) 20%, transparent);    /* filete guía, algo más marcado que --fy-line */
}

@media (prefers-reduced-motion: reduce) {
  :root { --fy-dur-fast: 0ms; --fy-dur: 0ms; --fy-dur-slow: 0ms; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; accent-color: var(--fy-navy); }
body {
  margin: 0;
  font-family: var(--fy-font-body);
  font-size: var(--fy-fs-base);
  line-height: var(--fy-lh-body);
  color: var(--fy-ink);
  background: var(--fy-white);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--fy-font-display); font-weight: 600; letter-spacing: var(--fy-track-display); line-height: var(--fy-lh-tight); text-wrap: balance; font-variant-numeric: lining-nums; }
h1 { font-size: var(--fy-fs-3xl); }
h2 { font-size: var(--fy-fs-2xl); }
h3 { font-family: var(--fy-font-body); font-size: var(--fy-fs-lg); font-weight: 600; line-height: var(--fy-lh-snug); letter-spacing: -.005em; }
p { text-wrap: pretty; }
::selection { background: var(--fy-green); color: var(--fy-navy); }
input, textarea { caret-color: var(--fy-navy); }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: var(--fy-s-4); top: -100px; z-index: 100;
  background: var(--fy-navy); color: #fff; padding: 12px 18px; border-radius: var(--fy-r-control); font-weight: 600;
}
.skip-link:focus { top: var(--fy-s-4); }

.container { width: 100%; max-width: var(--fy-maxw); margin-inline: auto; padding-inline: var(--fy-gutter); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--fy-s-2);
  min-height: 48px; padding: 0 var(--fy-s-5); border: 1px solid transparent; border-radius: var(--fy-r-control);
  font-size: var(--fy-fs-base); font-weight: 600; line-height: var(--fy-lh-snug); text-align: center;
  transition: background-color var(--fy-dur-fast) var(--fy-ease), border-color var(--fy-dur-fast) var(--fy-ease), color var(--fy-dur-fast) var(--fy-ease);
}
.btn svg { flex-shrink: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--green { background: var(--fy-green); color: var(--fy-navy); }
.btn--green:active { background: var(--fy-green-2); }
.btn--navy { background: var(--fy-navy); color: #fff; }
.btn--navy:active { background: var(--fy-navy-deep); }
.btn--secondary { background: transparent; border-color: var(--fy-navy); color: var(--fy-navy); }
.btn--secondary:active { background: var(--fy-paper); }
.btn--lg { min-height: 56px; padding-inline: var(--fy-s-6); font-size: var(--fy-fs-md); }
.btn--sm { min-height: 44px; padding-inline: 18px; font-size: var(--fy-fs-sm); }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--green:not([disabled]):hover { background: var(--fy-green-2); }
  .btn--navy:hover { background: var(--fy-navy-2); }
  .btn--secondary:hover { background: var(--fy-paper); }
}
.link { color: var(--fy-navy); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .link:hover { text-decoration-thickness: 2px; } }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: var(--fy-z-header); background: var(--fy-white); border-bottom: 1px solid var(--fy-line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--fy-s-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.brand img { height: 34px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: var(--fy-s-6); margin-inline: auto var(--fy-s-5); }
.nav-menu a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fy-fs-base); font-weight: 500; color: var(--fy-navy); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.nav-menu a[aria-current="page"] { text-decoration: underline; }
@media (hover: hover) { .nav-menu a:hover { text-decoration: underline; } }
.nav-actions { display: flex; align-items: center; gap: var(--fy-s-2); }
.nav-actions .btn { white-space: nowrap; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--fy-navy); border-radius: var(--fy-r-control); background: transparent; color: var(--fy-navy); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav { gap: var(--fy-s-3); }
  .nav-menu {
    flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; overflow-y: auto;
    background: var(--fy-white); padding: var(--fy-s-2) var(--fy-gutter) var(--fy-s-6);
  }
  .nav-menu a { min-height: 56px; font-size: var(--fy-fs-lg); border-bottom: 1px solid var(--fy-line); text-decoration: none; }
  .nav-menu a[aria-current="page"] { text-decoration: underline; }
  .nav-actions { margin-left: auto; }
  .js .nav-menu { display: none; }
  .js .nav-menu.is-open { display: flex; }
  .js .nav-toggle { display: inline-flex; }
}
@media (max-width: 400px) {
  .nav-actions .btn--sm { padding-inline: 12px; font-size: .8125rem; }
  .nav { gap: var(--fy-s-2); }
  .brand img { height: 28px; }
}

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--fy-section-y); overflow-x: clip; }
.section--ruled { border-top: 1px solid var(--fy-line); }
.section--paper { background: var(--fy-paper); border-top: 1px solid var(--fy-line); }
.section p + p { margin-top: var(--fy-s-4); }
.section h2 + p { margin-top: var(--fy-s-5); }

/* Cuerpo de texto de la web: 18 px, medida ≤ 65 caracteres */
.idea-text p, .cycle-intro p, .feature-text p, .desk-head p, .config-lead, .pricing-col p, .demo-copy p, .faq-intro p, .founders p { font-size: var(--fy-fs-md); color: var(--fy-ink-2); max-width: var(--fy-measure); }

/* ---------- 1. Hero ---------- */
.hero { padding-top: clamp(32px, 4vw, 48px); }
.hero-top { display: grid; gap: var(--fy-s-5); }
.hero h1 { max-width: 16ch; }
.hero-aside p { font-size: var(--fy-fs-md); color: var(--fy-ink-2); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fy-s-3) var(--fy-s-5); margin-top: var(--fy-s-5); }

/* Escenario: banda a sangre en gris claro que empieza 140 px por debajo del borde superior del móvil;
   el móvil sobresale por encima de ella (la profundidad sale del solape y de la sombra del móvil). */
.hero-stage { position: relative; margin-top: var(--fy-s-7); padding-bottom: var(--fy-s-7); }
.hero-stage::before { content: ''; position: absolute; left: 0; right: 0; top: 140px; bottom: 0; background: var(--fy-paper); border-block: 1px solid var(--fy-line); }
.stage-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.stage-phone { display: flex; flex-direction: column; align-items: center; gap: var(--fy-s-4); }
.stage-caption { font-size: var(--fy-fs-sm); color: var(--fy-ink-3); text-align: center; }

/* Notas de producto (botones): ficha técnica con un filete que llega al móvil */
.note { appearance: none; display: flex; align-items: flex-start; border: 0; background: none; padding: 0; text-align: left; color: var(--fy-ink-2); }
.note-title { display: block; font-size: var(--fy-fs-base); font-weight: 600; line-height: var(--fy-lh-snug); transition: color var(--fy-dur) var(--fy-ease); }
.note-desc { display: block; margin-top: var(--fy-s-1); font-size: var(--fy-fs-sm); line-height: 1.45; color: var(--fy-ink-3); }
.note .t-short { display: none; }
.note[aria-pressed="true"] { color: var(--fy-navy); }
.note[aria-pressed="true"] .note-desc { color: var(--fy-ink-2); }
@media (hover: hover) { .note:hover .note-title { color: var(--fy-navy); } }

/* Escritorio (≥ 1100): cuatro notas a los lados, alineadas con la parte de la interfaz a la que se refieren */
@media (min-width: 1100px) {
  .hero-top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); align-items: end; }
  /* Titular en tres líneas para que pese lo mismo que el párrafo y el botón de la derecha (bases alineadas) */
  .hero h1 { grid-column: 1 / 8; max-width: 10em; }
  .hero-aside { grid-column: 8 / 13; padding-left: var(--fy-s-6); padding-bottom: 6px; }
  .stage-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: var(--fy-s-6); justify-items: stretch; }
  .stage-phone { grid-column: 2; grid-row: 1; }
  .notes { display: contents; }
  .note { grid-row: 1; align-self: start; position: relative; top: var(--y); align-items: center; gap: var(--fy-s-4); min-height: 44px; }
  .note--left { grid-column: 1; justify-content: flex-end; text-align: right; margin-right: calc(-1 * var(--fy-s-6)); }
  .note--right { grid-column: 3; justify-content: flex-start; margin-left: calc(-1 * var(--fy-s-6)); }
  .note-text { flex: 0 1 15rem; }
  .note-rule { flex: 1 1 auto; min-width: 40px; height: 1px; background: var(--rule); transition: background-color var(--fy-dur) var(--fy-ease); }
  .note[aria-pressed="true"] .note-rule { height: 2px; background: var(--fy-navy); }
}
@media (max-width: 1099px) {
  .note-rule { display: none; }
  .notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--fy-s-6); width: 100%; max-width: 40rem; margin-top: var(--fy-s-6); }
  .note { padding: var(--fy-s-4) 0 var(--fy-s-4); border-top: 1px solid var(--rule); }
  .note[aria-pressed="true"] { border-top: 2px solid var(--fy-navy); padding-top: calc(var(--fy-s-4) - 1px); }
  .hero-aside { max-width: 40rem; }
  .hero h1 { max-width: none; }
}
/* Móvil (< 640): pestañas de texto con subrayado y desplazamiento propio */
@media (max-width: 639px) {
  .notes { display: flex; gap: var(--fy-s-5); max-width: 100%; margin-top: var(--fy-s-5); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
  .notes::-webkit-scrollbar { display: none; }
  .note { flex: none; min-height: 48px; padding: var(--fy-s-3) 0; border-top: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .note[aria-pressed="true"] { border-top: 0; border-bottom-color: var(--fy-navy); padding-top: var(--fy-s-3); }
  .note .t-long, .note-desc { display: none; }
  .note .t-short { display: inline; }
  .hero-stage::before { top: 120px; }
  .hero .pd-wrap { --pd-width: 300px; }
}
@media (max-width: 1099px) and (min-width: 640px) { .hero-actions { margin-top: var(--fy-s-5); } }

/* ---------- 2. La idea fundamental ---------- */
.idea { display: grid; gap: var(--fy-s-7); align-items: center; }
.history { background: var(--fy-white); border: 1px solid var(--fy-line); border-radius: var(--fy-r-object); box-shadow: var(--fy-sh-1); overflow: hidden; }
.history-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--fy-s-4); padding: var(--fy-s-5) var(--fy-s-5) var(--fy-s-4); }
.history-level { margin-top: var(--fy-s-1); font-size: var(--fy-fs-sm); color: var(--fy-ink-2); }
.history-total { font-size: var(--fy-fs-base); font-weight: 500; color: var(--fy-ink-2); white-space: nowrap; }
.history-total b { margin-right: 4px; font-family: var(--fy-font-display); font-size: var(--fy-fs-xl); font-weight: 600; line-height: 1; color: var(--fy-navy); font-variant-numeric: lining-nums tabular-nums; }
.history-list li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; align-items: baseline; gap: var(--fy-s-3); padding: var(--fy-s-4) var(--fy-s-5); border-top: 1px solid var(--fy-line); }
.history-list time { font-size: var(--fy-fs-sm); color: var(--fy-ink-3); font-variant-numeric: tabular-nums; }
.history-list .what { color: var(--fy-ink); }
.history-list .pts { font-weight: 600; color: var(--fy-ink); text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.history-list .pts--plus { color: var(--fy-green-ink); }
.history-list .is-level { background: var(--fy-paper); }
.history-list .is-level .what { font-weight: 600; }
.idea-object figcaption { margin-top: var(--fy-s-3); font-size: var(--fy-fs-sm); color: var(--fy-ink-3); }
@media (min-width: 900px) {
  .idea { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); }
  .idea-text { grid-column: 1 / 6; }
  .idea-object { grid-column: 7 / 13; }
}
@media (max-width: 479px) {
  .history-list li { grid-template-columns: 3.5rem minmax(0, 1fr) auto; padding-inline: var(--fy-s-4); }
  .history-head { padding-inline: var(--fy-s-4); }
}

/* ---------- 3. Cómo funciona ---------- */
.cycle { display: grid; gap: var(--fy-s-7); align-items: start; }
.cycle-intro p { margin-top: var(--fy-s-4); }
.moments { position: relative; padding-left: var(--fy-s-7); }
.moments::before { content: ''; position: absolute; left: 11px; top: 28px; bottom: 28px; width: 1px; background: var(--rule); }
.moment { position: relative; display: grid; gap: var(--fy-s-4); padding-block: var(--fy-s-6); }
.moment:first-child { padding-top: 0; }
.moment:last-child { padding-bottom: 0; }
.moment-n { position: absolute; left: calc(-1 * var(--fy-s-7)); top: var(--fy-s-6); width: 24px; padding-block: 2px; background: var(--fy-white); text-align: center; font-size: var(--fy-fs-sm); font-weight: 600; line-height: 1.4; color: var(--fy-ink-3); font-variant-numeric: lining-nums; }
.moment:first-child .moment-n { top: 0; }
.moment-text p { margin-top: var(--fy-s-2); color: var(--fy-ink-2); max-width: 28rem; }
@media (min-width: 900px) {
  .cycle { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); }
  .cycle-intro { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + var(--fy-s-6)); }
  .moments { grid-column: 5 / 13; }
  .moment { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: var(--fy-s-6); align-items: center; padding-block: var(--fy-s-6); }
  .moment-n { top: 50%; margin-top: -14px; }
  .moment:first-child .moment-n { top: 50%; }
  .moment:first-child { padding-top: 0; }
}

/* Fragmentos de la interfaz (HTML y CSS con los tokens, sin marco de móvil) */
.ui { padding: var(--fy-s-5); background: var(--fy-white); border: 1px solid var(--fy-line); border-radius: var(--fy-r-object); }
.ui-promo { padding: 0; border: 0; border-radius: 0; display: grid; gap: var(--fy-s-3); }
.ui-notice { display: flex; align-items: center; gap: var(--fy-s-2); font-size: var(--fy-fs-sm); font-weight: 600; color: var(--fy-ink-2); }
.ui-promo .ui-notice { padding: 10px var(--fy-s-4); background: var(--fy-paper); border-radius: var(--fy-r-control); }
.ui-promo-card { overflow: hidden; background: var(--fy-white); border: 1px solid var(--fy-line); border-radius: var(--fy-r-object); }
.ui-promo-card img { width: 100%; aspect-ratio: 448 / 252; object-fit: cover; }
.ui-promo-body { display: grid; gap: 2px; padding: var(--fy-s-4) var(--fy-s-5); }
.ui-promo-body strong { font-weight: 600; }
.ui-promo-body span { font-size: var(--fy-fs-sm); color: var(--fy-ink-2); }
.ui-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--fy-s-3); font-weight: 600; }
.ui-title span { font-size: var(--fy-fs-sm); font-weight: 400; color: var(--fy-ink-2); }
.ui-sub { font-size: var(--fy-fs-sm); color: var(--fy-ink-2); }
.ui-name { margin-top: var(--fy-s-3); font-size: var(--fy-fs-lg); font-weight: 600; line-height: var(--fy-lh-snug); }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--fy-s-5); background: var(--fy-navy); border-radius: var(--fy-r-control); color: #fff; font-size: var(--fy-fs-base); font-weight: 600; }
.ui-book { display: grid; gap: var(--fy-s-4); }
.ui-book .ui-btn { width: 100%; }
.ui-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--fy-s-2); }
.ui-days li { display: flex; flex-direction: column; align-items: center; padding: var(--fy-s-2) 0; border: 1px solid var(--fy-line); border-radius: var(--fy-r-control); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; line-height: 1.3; }
.ui-days small { font-size: var(--fy-fs-xs); font-weight: 400; color: var(--fy-ink-3); }
.ui-slots { display: flex; flex-wrap: wrap; gap: var(--fy-s-2); }
.ui-slots li { padding: 8px 14px; border: 1px solid var(--fy-line); border-radius: var(--fy-r-control); font-size: var(--fy-fs-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.ui-days .is-on, .ui-slots .is-on { background: var(--fy-navy); border-color: var(--fy-navy); color: #fff; }
.ui-days .is-on small { color: var(--fy-on-navy-2); }
.ui-gain { margin-top: var(--fy-s-4); font-family: var(--fy-font-display); font-size: var(--fy-fs-xl); font-weight: 600; line-height: 1; color: var(--fy-green-ink); font-variant-numeric: lining-nums tabular-nums; }
.ui-gain span { margin-left: 4px; font-family: var(--fy-font-body); font-size: var(--fy-fs-base); font-weight: 500; color: var(--fy-ink-2); }
.ui-code .ui-title { margin-bottom: var(--fy-s-4); }
.ui-code-value { margin: var(--fy-s-2) 0; padding: var(--fy-s-4); background: var(--fy-paper); border: 1px dashed var(--fy-field); border-radius: var(--fy-r-control); text-align: center; font-size: var(--fy-fs-lg); font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.ui-code .ui-sub, .ui-invite .ui-sub { text-align: left; }
.ui-line { display: flex; align-items: center; gap: var(--fy-s-2); margin-top: var(--fy-s-3); font-size: var(--fy-fs-sm); color: var(--fy-ink-2); }
.ui-line b { margin-left: auto; font-weight: 600; color: var(--fy-green-ink); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- 4. Lo que tiene tu clínica ---------- */
.feature + .feature { margin-top: var(--fy-s-9); }
.example-note { margin-top: var(--fy-s-4); font-size: var(--fy-fs-sm); color: var(--fy-ink-3); }
.feature--plans { display: grid; gap: var(--fy-s-7); align-items: center; }
.feature-text p:first-of-type { margin-top: var(--fy-s-5); }
.plans-example { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fy-s-4); }
.plans-example .example-note { grid-column: 1 / -1; margin-top: 0; }
.plan { display: flex; flex-direction: column; gap: var(--fy-s-3); padding: var(--fy-s-5); background: var(--fy-white); border: 1px solid var(--fy-line); border-radius: var(--fy-r-object); }
.plan-price { font-size: var(--fy-fs-base); color: var(--fy-ink-2); }
.plan-price .amount { margin-right: 2px; font-family: var(--fy-font-display); font-size: var(--fy-fs-xl); font-weight: 600; line-height: 1; color: var(--fy-navy); font-variant-numeric: lining-nums; }
.plan ul { display: grid; gap: var(--fy-s-2); flex: 1; margin-bottom: var(--fy-s-3); font-size: var(--fy-fs-sm); color: var(--fy-ink-2); }
.plan li { padding-top: var(--fy-s-2); border-top: 1px solid var(--fy-line); }
.plan .ui-btn { width: 100%; }
@media (min-width: 900px) {
  .feature--plans { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); }
  .feature--plans .feature-text { grid-column: 1 / 6; }
  .feature--plans .plans-example { grid-column: 7 / 13; }
}
@media (max-width: 479px) { .plans-example { grid-template-columns: minmax(0, 1fr); } }

.desk-head { display: grid; gap: var(--fy-s-4); margin-bottom: var(--fy-s-7); }
.tablet { padding: 10px; background: var(--fy-navy); border-radius: var(--fy-r-object); box-shadow: var(--fy-sh-2); }
.tablet-screen { display: grid; background: var(--fy-white); border-radius: var(--fy-r-control); overflow: hidden; }
.desk-client, .desk-agenda { padding: var(--fy-s-6); }
.desk-agenda { border-top: 1px solid var(--fy-line); }
.desk-client .ui-name { margin-top: var(--fy-s-2); }
.desk-fields { display: grid; gap: var(--fy-s-3); margin: var(--fy-s-5) 0; }
.desk-fields dt { margin-bottom: 4px; font-size: var(--fy-fs-sm); font-weight: 500; color: var(--fy-ink-2); }
.desk-fields dd { padding: 11px var(--fy-s-4); border: 1px solid var(--fy-field); border-radius: var(--fy-r-control); font-variant-numeric: lining-nums tabular-nums; }
.desk-agenda li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--fy-s-3); align-items: baseline; margin-top: var(--fy-s-3); padding: var(--fy-s-3) var(--fy-s-3); border-top: 1px solid var(--fy-line); }
.desk-agenda li:first-child { margin-top: var(--fy-s-4); }
.desk-agenda time { font-weight: 600; font-variant-numeric: tabular-nums; }
.desk-agenda span { display: flex; flex-direction: column; font-size: var(--fy-fs-sm); color: var(--fy-ink-2); }
.desk-agenda strong { font-size: var(--fy-fs-base); font-weight: 600; color: var(--fy-ink); }
.desk-agenda .is-now { background: var(--fy-paper); border-radius: var(--fy-r-control); border-top-color: transparent; }
@media (min-width: 900px) {
  .desk-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); align-items: end; }
  .desk-head h2 { grid-column: 1 / 7; }
  .desk-head p { grid-column: 7 / 13; }
  .tablet-screen { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .desk-client { padding: var(--fy-s-7); }
  .desk-agenda { padding: var(--fy-s-7); border-top: 0; border-left: 1px solid var(--fy-line); }
}

.feature--list { display: grid; gap: var(--fy-s-6); }
.rules li { padding: var(--fy-s-5) 0; border-top: 1px solid var(--fy-line); }
.rules p { margin-top: var(--fy-s-1); color: var(--fy-ink-2); }
.rules h3 { font-size: var(--fy-fs-md); }
@media (min-width: 900px) {
  .feature--list { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); align-items: start; }
  .feature--list h2 { grid-column: 1 / 5; }
  .rules { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--fy-s-7); margin-top: calc(-1 * var(--fy-s-5)); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--fy-s-6); }
}

/* ---------- 5. Configurador ---------- */
.config { display: grid; gap: var(--fy-s-7); align-items: start; }
.config-lead { margin-top: var(--fy-s-4); }
.config-fields { display: grid; gap: var(--fy-s-5); margin: var(--fy-s-6) 0; }
.config-fields > * { max-width: 28rem; }
.field-label, .config-fields legend { display: block; margin-bottom: var(--fy-s-2); padding: 0; font-size: var(--fy-fs-sm); font-weight: 500; color: var(--fy-navy); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.input {
  width: 100%; min-height: 48px; padding: 0 var(--fy-s-4);
  border: 1px solid var(--fy-field); border-radius: var(--fy-r-control); background: var(--fy-white); color: var(--fy-navy);
  transition: border-color var(--fy-dur-fast) var(--fy-ease), box-shadow var(--fy-dur-fast) var(--fy-ease);
}
.input::placeholder { color: var(--fy-ink-3); opacity: 1; }
.input:focus-visible { outline: none; border-color: var(--fy-navy); box-shadow: var(--fy-focus); }
.input[aria-invalid="true"] { border-color: var(--fy-error); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--fy-s-1); margin-left: -6px; }
.swatch { position: relative; display: block; width: 44px; height: 44px; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch input + span { position: absolute; inset: 6px; border-radius: var(--fy-r-round); box-shadow: inset 0 0 0 1px rgba(27, 35, 64, .16); transition: box-shadow var(--fy-dur) var(--fy-ease); }
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(27, 35, 64, .16), 0 0 0 2px var(--fy-white), 0 0 0 4px var(--fy-navy); }
.swatch input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 5px; }
.font-picks { display: flex; flex-wrap: wrap; gap: var(--fy-s-2); }
.font-pick { min-height: 44px; padding: 0 var(--fy-s-5); border: 1px solid var(--fy-field); border-radius: var(--fy-r-control); background: var(--fy-white); font-size: var(--fy-fs-base); font-weight: 500; transition: background-color var(--fy-dur-fast) var(--fy-ease), color var(--fy-dur-fast) var(--fy-ease); }
.font-pick[aria-pressed="true"] { background: var(--fy-navy); border-color: var(--fy-navy); color: #fff; font-weight: 600; }
@media (hover: hover) { .font-pick[aria-pressed="false"]:hover { background: var(--fy-paper); } }
.config-phone { display: flex; flex-direction: column; align-items: center; gap: var(--fy-s-4); }
@media (min-width: 900px) {
  .config { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); }
  .config-controls { grid-column: 1 / 7; }
  .config-phone { grid-column: 8 / 13; }
}
@media (max-width: 639px) { .config .pd-wrap { --pd-width: 300px; } }

/* ---------- 6. El modelo ya funciona fuera ---------- */
.trust { display: grid; gap: var(--fy-s-7); align-items: start; }
.trust-note { margin-top: var(--fy-s-5); max-width: 22rem; padding-top: var(--fy-s-4); border-top: 1px solid var(--rule); font-size: var(--fy-fs-sm); font-weight: 500; color: var(--fy-ink-2); }
.figures { border-bottom: 1px solid var(--fy-line); }
.fig { display: grid; gap: var(--fy-s-3) var(--fy-s-5); padding: var(--fy-s-6) 0; border-top: 1px solid var(--fy-line); }
.fig-value { font-family: var(--fy-font-display); font-size: var(--fy-fs-2xl); font-weight: 600; line-height: 1; letter-spacing: var(--fy-track-display); color: var(--fy-navy); font-variant-numeric: lining-nums tabular-nums; }
.fig-body p:first-child { font-size: var(--fy-fs-md); color: var(--fy-ink); }
.fig-source { margin-top: var(--fy-s-2); font-size: var(--fy-fs-sm); color: var(--fy-ink-3); }
.fig-source a { color: var(--fy-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.founders { grid-column: 1 / -1; display: grid; gap: var(--fy-s-4); margin-top: var(--fy-s-8); padding-top: var(--fy-s-6); border-top: 1px solid var(--fy-line); }
.founders p:not(.founders-sign) { font-size: var(--fy-fs-lg); color: var(--fy-navy); max-width: 34rem; }
.founders .founders-sign { font-size: var(--fy-fs-base); font-weight: 600; color: var(--fy-navy); }
@media (min-width: 900px) {
  .trust { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); }
  .trust-intro { grid-column: 1 / 6; }
  .figures { grid-column: 6 / 13; }
  .fig { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; }
  .founders { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); align-items: start; }
  .founders h3 { grid-column: 1 / 5; }
  .founders p:not(.founders-sign) { grid-column: 5 / 13; }
  .founders-sign { grid-column: 5 / 13; }
}

/* ---------- 7. Precios ---------- */
.pricing-head { margin-bottom: var(--fy-s-7); }
.pricing-cols { display: grid; border-top: 1px solid var(--fy-line); }
.pricing-col { padding: var(--fy-s-6) 0; }
.pricing-col + .pricing-col { border-top: 1px solid var(--fy-line); }
.pricing-for { margin-top: var(--fy-s-1); margin-bottom: var(--fy-s-4); font-size: var(--fy-fs-sm); font-weight: 500; color: var(--fy-ink-3); }
.pricing-col h3 { font-size: var(--fy-fs-lg); }
.pricing-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--fy-s-4) var(--fy-s-6); padding-top: var(--fy-s-6); border-top: 1px solid var(--fy-line); }
.pricing-foot p { font-size: var(--fy-fs-md); color: var(--fy-navy); font-weight: 500; }
@media (min-width: 760px) {
  .pricing-cols { grid-template-columns: 1fr 1fr; }
  .pricing-col { padding: var(--fy-s-7) var(--fy-s-7) var(--fy-s-7) 0; }
  .pricing-col + .pricing-col { border-top: 0; border-left: 1px solid var(--fy-line); padding: var(--fy-s-7) 0 var(--fy-s-7) var(--fy-s-7); }
  .pricing-foot { padding-top: var(--fy-s-6); }
}

/* ---------- 8. Preguntas frecuentes ---------- */
.faq { display: grid; gap: var(--fy-s-6); align-items: start; }
.faq-intro p { margin-top: var(--fy-s-4); }
.faq-intro a, .demo-copy .alt a, .legal-note a, .form-error a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.faq-list { border-top: 1px solid var(--fy-line); }
.faq-list details { border-bottom: 1px solid var(--fy-line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: var(--fy-s-4); min-height: 64px; padding: var(--fy-s-4) 0; font-size: var(--fy-fs-md); font-weight: 600; line-height: var(--fy-lh-snug); list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; flex-shrink: 0; width: 16px; height: 16px;
  background: linear-gradient(var(--fy-navy), var(--fy-navy)) center / 16px 2px no-repeat, linear-gradient(var(--fy-navy), var(--fy-navy)) center / 2px 16px no-repeat;
  transition: transform var(--fy-dur-slow) var(--fy-ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 var(--fy-s-7) var(--fy-s-5) 0; color: var(--fy-ink-2); max-width: 40rem; }
@media (min-width: 900px) {
  .faq { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); }
  .faq-intro { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + var(--fy-s-6)); }
  .faq-list { grid-column: 6 / 13; }
}
@media (max-width: 899px) { .faq-list .answer { padding-right: 0; } }

/* ---------- 9. Formulario de demo ---------- */
.demo { display: grid; gap: var(--fy-s-6); align-items: start; }
.demo-copy p { margin-top: var(--fy-s-5); }
.demo-copy .alt { margin-top: var(--fy-s-6); font-size: var(--fy-fs-base); }
.demo-form, .demo-done { padding: clamp(24px, 4vw, 40px); background: var(--fy-white); border: 1px solid var(--fy-line); border-radius: var(--fy-r-object); box-shadow: var(--fy-sh-2); }
.demo-form { display: grid; gap: var(--fy-s-5); }
.demo-form .field { display: flex; flex-direction: column; }
.field-error { margin-top: 6px; font-size: var(--fy-fs-sm); color: var(--fy-error); font-weight: 500; }
.field-error:empty { display: none; }
.form-error { padding: 12px 14px; border-radius: var(--fy-r-control); background: var(--fy-error-bg); color: var(--fy-error); font-size: var(--fy-fs-sm); font-weight: 500; border: 1px solid rgba(180, 35, 24, .2); }
.form-error[hidden] { display: none; }
.legal-note { font-size: var(--fy-fs-xs); color: var(--fy-ink-3); line-height: 1.5; }
.legal-note a { font-weight: 500; color: var(--fy-ink-2); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-done { display: grid; gap: var(--fy-s-3); padding-block: var(--fy-s-8); }
.demo-done[hidden], .demo-form[hidden] { display: none; }
.demo-done h3 { font-family: var(--fy-font-display); font-size: var(--fy-fs-xl); font-weight: 600; line-height: var(--fy-lh-tight); }
.demo-done p { color: var(--fy-ink-2); }
@media (min-width: 900px) {
  .demo { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--fy-s-5); }
  .demo-copy { grid-column: 1 / 6; }
  .demo-box { grid-column: 7 / 13; }
}

/* ---------- Pie ---------- */
.site-footer { background: var(--fy-navy); color: var(--fy-on-navy-2); --ring: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--fy-s-7); padding-block: var(--fy-s-8) var(--fy-s-6); }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand img { height: 36px; width: auto; }
.footer-tag { margin-top: var(--fy-s-4); max-width: 22rem; font-size: var(--fy-fs-sm); }
.footer-title { margin-bottom: var(--fy-s-3); font-size: var(--fy-fs-base); font-weight: 600; color: #fff; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a, .footer-links span { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; font-size: var(--fy-fs-sm); color: var(--fy-on-navy); }
@media (hover: hover) { .footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; } }
.footer-links + .footer-title { margin-top: var(--fy-s-5); }
.social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: var(--fy-s-4); margin-left: -10px; border-radius: var(--fy-r-control); color: #fff; }
@media (hover: hover) { .social:hover { background: rgba(255, 255, 255, .1); } }
.footer-bottom { position: relative; padding-block: var(--fy-s-5) var(--fy-s-6); font-size: var(--fy-fs-xs); line-height: 1.6; }
.footer-bottom::before { content: ''; position: absolute; top: 0; left: var(--fy-gutter); right: var(--fy-gutter); height: 1px; background: rgba(255, 255, 255, .12); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; gap: var(--fy-s-6); } }

/* ---------- Aviso de cookies: barra baja ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--fy-z-toast); padding: var(--fy-s-3) var(--fy-gutter); background: var(--fy-navy); color: #fff; --ring: #fff; }
.consent[hidden] { display: none; }
.consent-inner { display: flex; flex-direction: column; gap: var(--fy-s-3); max-width: var(--fy-maxw); margin-inline: auto; }
.consent p { font-size: var(--fy-fs-sm); line-height: 1.5; color: var(--fy-on-navy); }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: var(--fy-s-2); }
.consent .btn { flex: 1; min-height: 44px; padding: 0 var(--fy-s-5); background: #fff; color: var(--fy-navy); font-size: var(--fy-fs-sm); }
@media (min-width: 760px) { .consent-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--fy-s-6); } .consent-actions { flex-shrink: 0; } .consent .btn { flex: none; } }

/* ---------- Páginas interiores: blog, artículo y documentos legales ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--fy-line); background: var(--fy-paper); }
.page-hero h1 { margin-top: var(--fy-s-3); font-size: var(--fy-fs-3xl); max-width: 24ch; }
.page-hero .lead { margin-top: var(--fy-s-4); max-width: 40rem; font-size: var(--fy-fs-md); color: var(--fy-ink-2); }
.page-hero .meta { margin-top: var(--fy-s-3); font-size: var(--fy-fs-sm); color: var(--fy-ink-3); }
.page-body { padding-block: var(--fy-s-8) var(--fy-s-9); }
.narrow { max-width: calc(var(--reading) + 2 * var(--fy-gutter)); margin-inline: auto; padding-inline: var(--fy-gutter); }

/* Texto de lectura */
.prose { color: var(--fy-ink); font-size: var(--fy-fs-md); line-height: 1.75; }
.prose > * + * { margin-top: var(--fy-s-4); }
.prose h2 { margin-top: var(--fy-s-8); font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); line-height: var(--fy-lh-snug); color: var(--fy-navy); }
.prose h2 + * { margin-top: var(--fy-s-3); }
.prose h3 { margin-top: var(--fy-s-6); font-family: var(--fy-font-body); font-size: var(--fy-fs-md); font-weight: 600; letter-spacing: 0; line-height: var(--fy-lh-snug); color: var(--fy-navy); }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ul li + li { margin-top: 10px; }
.prose ul li::marker { color: var(--fy-green-ink); }
.prose strong { color: var(--fy-navy); font-weight: 600; }
.prose a { color: var(--fy-green-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color .15s; }
.prose a:hover { color: var(--fy-navy); }
.prose > h2:first-child, .legal.prose > h2:first-child { margin-top: 0; }
.prose--article > p:first-child { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); line-height: 1.6; color: var(--fy-navy); }
.prose--article ul { padding-left: 0; list-style: none; }
.prose--article ul li { position: relative; padding-left: 28px; }
.prose--article ul li::before { content: ''; position: absolute; left: 4px; top: .78em; width: 8px; height: 8px; border-radius: var(--fy-r-round); background: var(--fy-navy); }
.callout { margin-top: var(--fy-s-5); padding: var(--fy-s-5); border-left: 3px solid var(--fy-green-ink); border-radius: 0 var(--fy-r-control) var(--fy-r-control) 0; background: var(--fy-green-soft); font-size: var(--fy-fs-base); line-height: 1.65; color: var(--fy-navy); }
.callout > strong:first-child { color: var(--fy-green-ink); }
.prose--article .callout { font-size: var(--fy-fs-md); }

/* Artículos: portada, listas numeradas, ejemplos con números, tabla y nota de fuente */
.article-cover { margin-bottom: var(--fy-s-6); }
.article-cover img { width: 100%; height: auto; border-radius: var(--fy-r-object); }
.prose--article > .article-cover + p { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); line-height: 1.6; color: var(--fy-navy); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose ol li + li { margin-top: 10px; }
.prose ol li::marker { color: var(--fy-ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.callout--example { border-left-color: var(--fy-navy); background: var(--fy-paper); }
.callout--example > strong:first-child { display: block; color: var(--fy-navy); }
.callout--example > * + * { margin-top: var(--fy-s-3); }
.table-scroll { overflow-x: auto; }
.example-table { width: 100%; border-collapse: collapse; font-size: var(--fy-fs-base); font-variant-numeric: tabular-nums; }
.example-table caption { text-align: left; padding-bottom: var(--fy-s-2); font-size: var(--fy-fs-sm); color: var(--fy-ink-2); }
.example-table th, .example-table td { padding: var(--fy-s-2) var(--fy-s-3) var(--fy-s-2) 0; border-bottom: 1px solid var(--fy-line); text-align: left; font-weight: 400; vertical-align: top; }
.example-table thead th { font-weight: 600; border-bottom-color: var(--fy-ink-3); }
.example-table tbody th { color: var(--fy-ink-2); }
.example-table .num { text-align: right; padding-right: 0; padding-left: var(--fy-s-3); white-space: nowrap; }
.example-table tbody tr:last-child td { font-weight: 600; color: var(--fy-navy); }
.source-note { font-size: var(--fy-fs-sm); line-height: 1.5; color: var(--fy-ink-3); }
.prose .source-note a { color: inherit; }

/* Documentos legales: índice lateral + texto */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, var(--reading)); gap: var(--fy-s-8); justify-content: start; align-items: start; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: var(--fy-s-5); font-size: var(--fy-fs-sm); }
.doc-nav h2 { margin-bottom: var(--fy-s-2); font-family: var(--fy-font-body); font-size: var(--fy-fs-base); font-weight: 600; color: var(--fy-ink); }
.doc-nav ul { display: flex; flex-direction: column; border-left: 1px solid var(--fy-line); }
.doc-nav a { display: flex; align-items: center; min-height: 44px; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--fy-ink-2); line-height: 1.4; transition: color .15s, border-color .15s; }
.doc-nav a:hover { color: var(--fy-navy); border-left-color: var(--fy-green); }
.doc-nav a[aria-current="page"] { color: var(--fy-navy); font-weight: 600; border-left-color: var(--fy-green); }
.doc-body { min-width: 0; }
.legal.prose { font-size: var(--fy-fs-base); line-height: 1.7; }
.legal.prose h2 { font-size: 1.5rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal.prose h3 { font-size: var(--fy-fs-base); }
@media (max-width: 1000px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: var(--fy-s-6); max-width: calc(var(--reading) + 2 * var(--fy-gutter)); margin-inline: auto; }
  .doc-nav { position: static; }
  .doc-nav .doc-toc { display: none; }
  .doc-nav ul { flex-direction: row; flex-wrap: wrap; gap: var(--fy-s-2); border: 0; }
  .doc-nav .doc-docs a { min-height: 44px; padding: 8px 16px; margin: 0; border: 0; border-radius: var(--fy-r-control); background: var(--fy-paper); box-shadow: inset 0 0 0 1px var(--fy-line); }
  .doc-nav .doc-docs a[aria-current="page"] { background: var(--fy-navy); color: #fff; box-shadow: none; }
}

.info-card { margin-top: var(--fy-s-4); padding: var(--fy-s-3) var(--fy-s-5); border-radius: var(--fy-r-object); background: var(--fy-paper); box-shadow: inset 0 0 0 1px var(--fy-line); }
.info-card .row { display: flex; gap: var(--fy-s-4); padding: 10px 0; border-bottom: 1px solid var(--fy-line); font-size: var(--fy-fs-base); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .label { min-width: 11rem; flex-shrink: 0; color: var(--fy-ink-3); }
.info-card .val { color: var(--fy-navy); font-weight: 500; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin-top: var(--fy-s-4); border-radius: var(--fy-r-control); box-shadow: inset 0 0 0 1px var(--fy-line); }
.cookie-table { width: 100%; border-collapse: collapse; font-size: var(--fy-fs-sm); line-height: 1.55; }
.cookie-table th, .cookie-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--fy-line); }
.cookie-table tbody tr:last-child td { border-bottom: 0; }
.cookie-table th { background: var(--fy-paper); font-size: var(--fy-fs-sm); font-weight: 600; color: var(--fy-ink-2); }
.cookie-table code { padding: 2px 6px; border-radius: 6px; background: var(--fy-paper); font-size: .9em; color: var(--fy-navy); }
@media (max-width: 640px) {
  .info-card .row { flex-direction: column; gap: 2px; }
  .info-card .label { min-width: 0; }
  .table-wrap { box-shadow: none; overflow: visible; }
  .cookie-table, .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; }
  .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .cookie-table tr { padding: var(--fy-s-3) var(--fy-s-4); border-radius: var(--fy-r-control); background: var(--fy-paper); box-shadow: inset 0 0 0 1px var(--fy-line); }
  .cookie-table td { padding: 8px 0; border: 0; }
  .cookie-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: var(--fy-fs-sm); font-weight: 600; color: var(--fy-ink-3); }
}

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--fy-s-6); }
.blog-card { position: relative; display: flex; flex-direction: column; border-radius: var(--fy-r-object); background: #fff; box-shadow: var(--fy-sh-2), 0 0 0 1px rgba(27, 35, 64, .05); overflow: hidden; transition: border-color var(--fy-dur) var(--fy-ease); }
.blog-card:hover { border-color: var(--fy-navy); }
.blog-card:focus-within { outline: 3px solid var(--fy-navy); outline-offset: 3px; }
.blog-card .thumb { position: relative; display: flex; align-items: center; justify-content: center; min-height: 200px; background: var(--fy-navy); }
.blog-card .thumb img { height: 84px; width: auto; }
.blog-card .body { display: flex; flex-direction: column; flex: 1; gap: var(--fy-s-3); padding: var(--fy-s-6); }
.blog-card .tag { font-size: var(--fy-fs-sm); font-weight: 600; color: var(--fy-green-ink); }
.blog-card h2 { font-size: var(--fy-fs-lg); }
.blog-card h2 a::after { content: ''; position: absolute; inset: 0; }
.blog-card h2 a:focus-visible { outline: none; }
.blog-card p { color: var(--fy-ink-3); font-size: var(--fy-fs-base); }
.blog-card .meta { margin-top: auto; padding-top: var(--fy-s-2); font-size: var(--fy-fs-sm); color: var(--fy-ink-3); }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--fy-green-ink); }
.read-more svg { transition: transform .3s var(--fy-ease); }
.blog-card:hover .read-more svg { transform: translateX(4px); }
@media (min-width: 860px) {
  .blog-card--feature { flex-direction: row; }
  .blog-card--feature .thumb { flex: 0 0 38%; min-height: 320px; }
  .blog-card--feature .thumb img { height: 110px; }
  .blog-card--feature .body { justify-content: center; gap: var(--fy-s-4); padding: var(--fy-s-8) var(--fy-s-7); }
  .blog-card--feature h2 { font-size: var(--fy-fs-2xl); }
  .blog-card--feature .meta { margin-top: 0; }
  .blog-grid:has(.blog-card--feature) { grid-template-columns: 1fr; }
}

/* Artículo */
.page-hero--article h1 { max-width: 22ch; font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fy-s-2) var(--fy-s-3); margin-top: var(--fy-s-5); font-size: var(--fy-fs-sm); color: var(--fy-ink-3); }
.article-meta .by { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--fy-navy); }
.article-meta .avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--fy-r-round); background: var(--fy-navy); }
.article-meta .avatar img { height: 18px; width: auto; }
.article-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--fy-field); }
@media (max-width: 640px) { .article-meta { flex-direction: column; align-items: flex-start; gap: var(--fy-s-1); } .article-meta .by { margin-bottom: var(--fy-s-2); } .article-meta .sep { display: none; } }
.breadcrumb { font-size: var(--fy-fs-sm); color: var(--fy-ink-3); }
.breadcrumb a { display: inline-block; padding-block: 12px; margin-block: -12px; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--fy-green-ink); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--fy-s-7); min-height: 44px; font-weight: 600; color: var(--fy-green-ink); }
.prose .back-link { text-decoration: none; }
.back-link svg { transform: scaleX(-1); transition: transform .3s var(--fy-ease); }
.back-link:hover svg { transform: scaleX(-1) translateX(4px); }
.cta-band { position: relative; margin-block: var(--fy-s-8) 0; padding: var(--fy-s-8) var(--fy-s-6); border-radius: var(--fy-r-object); background: var(--fy-navy); color: #fff; text-align: center; box-shadow: var(--fy-sh-2); --ring: #fff; }
.cta-band h2 { margin: 0; font-size: var(--fy-fs-lg); color: #fff; }
.cta-band p { max-width: 36rem; margin: var(--fy-s-4) auto var(--fy-s-5); color: var(--fy-on-navy); font-size: var(--fy-fs-base); }
.cta-band-wrap { padding-bottom: var(--fy-s-9); }
.prose .cta-band h2 { margin-top: 0; }


/* Texto suelto sobre títulos de las páginas interiores: sin mayúsculas ni adornos */
.eyebrow { font-size: var(--fy-fs-sm); font-weight: 500; line-height: 1.5; color: var(--fy-ink-3); }

/* 404 */
.notfound { display: flex; align-items: center; min-height: 62vh; padding-block: var(--fy-s-9); text-align: center; background: var(--fy-white); }
.notfound h1 { margin-top: var(--fy-s-3); }
.notfound p:not(.eyebrow) { margin: var(--fy-s-4) auto var(--fy-s-6); max-width: 32rem; color: var(--fy-ink-2); font-size: var(--fy-fs-md); }

/* ---------- Iconos (sprite inline) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.125em; height: 1.125em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Colores del configurador */
.swatch input[value="#2ECC71"] + span { background: #2ECC71; }
.swatch input[value="#1B2340"] + span { background: #1B2340; }
.swatch input[value="#D4A574"] + span { background: #D4A574; }
.swatch input[value="#C77DFF"] + span { background: #C77DFF; }
.swatch input[value="#FF6B6B"] + span { background: #FF6B6B; }
.swatch input[value="#3D5AFE"] + span { background: #3D5AFE; }

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

/* Pantallas muy estrechas: párrafo del hero algo menor para que el móvil asome antes */
@media (max-width: 479px) { .hero-aside p { font-size: var(--fy-fs-base); } .hero-actions { margin-top: var(--fy-s-4); } }

/* Portada del blog: lista sobria de artículos, el más reciente arriba */
.post-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.post { padding-block: var(--fy-s-6); border-top: 1px solid var(--fy-line); }
.post:last-child { border-bottom: 1px solid var(--fy-line); }
.post-meta { font-size: var(--fy-fs-sm); color: var(--fy-ink-3); font-variant-numeric: tabular-nums; }
.post-meta span { color: var(--fy-green-ink); font-weight: 600; }
.post h2 { margin-top: var(--fy-s-2); font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); line-height: var(--fy-lh-snug); }
.post h2 a { color: var(--fy-navy); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color var(--fy-dur) var(--fy-ease); }
.post h2 a:hover, .post h2 a:focus-visible { text-decoration-color: currentColor; }
.post > p:last-child { margin-top: var(--fy-s-3); color: var(--fy-ink-2); max-width: 40rem; }
