/* =============================================================
   IA Para Trabajar — styles.css
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  /* ---------------------------------------------------------------
     SISTEMA DE MARCA · IA Para Trabajar
     Concepto: "la medida". Papel editorial + tinta, una señal violeta
     para la marca y una lima que SOLO marca mediciones (notas, ganadores).
     Documentado en BRAND-GUIDELINES.md — no añadas colores fuera de aquí.
     --------------------------------------------------------------- */

  /* Color · marca */
  --brand-primary: #14161a;      /* tinta: texto, botón de compra, pie */
  --brand-secondary: #4b2ef0;    /* violeta: enlaces, foco, acentos de marca */
  --brand-accent: #d4f25a;       /* lima: solo medición (nota, mejor valor) */

  /* Color · superficies */
  --background: #f7f5ef;
  --surface: #ffffff;
  --surface-secondary: #efece3;

  /* Color · texto */
  --text-primary: #14161a;
  --text-secondary: #4a4d57;
  --text-muted: #63666f;
  --text-on-dark: #f7f5ef;

  /* Color · líneas y estados */
  --border: #e2ded3;
  --border-strong: #14161a;
  --success: #147a4b;
  --warning: #8a5a00;
  --error: #b4231f;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Escala tipográfica (1.25) */
  --t-display: clamp(2.5rem, 6.4vw, 4.6rem);
  --t-h1: clamp(2rem, 4.4vw, 3.2rem);
  --t-h2: clamp(1.6rem, 3vw, 2.3rem);
  --t-h3: 1.14rem;
  --t-body: 1rem;
  --t-small: .875rem;
  --t-label: .72rem;

  /* Radios: solo cuatro */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --r-pill: 999px;

  /* Sombras: solo tres */
  --shadow-s: 0 1px 2px rgba(20, 22, 26, .05);
  --shadow-m: 0 2px 4px rgba(20, 22, 26, .04), 0 10px 26px rgba(20, 22, 26, .07);
  --shadow-l: 0 4px 10px rgba(20, 22, 26, .05), 0 24px 60px rgba(20, 22, 26, .12);

  /* Espaciado */
  --gutter: clamp(18px, 4vw, 40px);
  --paso: 8px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-rapida: .18s;
  --t-media: .28s;

  /* --- Alias heredados: el resto de la hoja sigue funcionando --- */
  --bg: var(--background);
  --ink: var(--text-primary);
  --ink-2: var(--text-secondary);
  --ink-3: var(--text-muted);
  --line: var(--border);
  --accent: var(--brand-secondary);
  --accent-ink: #ffffff;
  --accent-soft: #ece8ff;
  --lime: var(--brand-accent);
  --good: var(--success);
  --bad: var(--error);
  --warn-bg: #fdf6e3;
  --warn-line: #e6d3a3;
  --serif: var(--font-display);
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --radius: var(--r-m);
  --radius-sm: var(--r-s);
  --shadow: var(--shadow-m);
  --shadow-lg: var(--shadow-l);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; }
ul[class], ol[class] { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-secondary); outline-offset: 3px; border-radius: var(--r-xs); }
:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }

/* 3. Utilidades ------------------------------------------------ */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: var(--r-xs);
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.stack > * + * { margin-top: 1rem; }

/* Iconos inline: SIEMPRE con tamaño explícito (gotcha E.1) */
.ico { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.15em; }

/* 4. Tipografía ------------------------------------------------ */
.eyebrow {
  font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-secondary); font-weight: 500;
}
.display {
  font-family: var(--serif); font-weight: 600; font-variation-settings: "opsz" 144;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.035em;
}
.display em { font-style: italic; color: var(--accent); }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
.h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.prose { color: var(--ink-2); font-size: 1.05rem; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-family: var(--serif); color: var(--ink); font-size: 1.6rem; margin: 1.6em 0 .5em; }
.prose h3 { color: var(--ink); font-size: 1.15rem; margin: 1.4em 0 .4em; }
.prose ul { padding-left: 1.2em; margin: .8em 0; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* 5. Componentes ----------------------------------------------- */
/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.25em; border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem; line-height: 1.1; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #3a1fd6; box-shadow: var(--shadow-m); }
.btn-buy { background: var(--ink); color: #fff; }
.btn-buy:hover { background: #000; box-shadow: var(--shadow-m); }
.btn-buy .ico { color: var(--lime); }
.btn-buy.is-disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 38px; padding: .5em .95em; font-size: .88rem; }
.btn-lg { min-height: 54px; padding: .9em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Chips y badges */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .28em .7em; border-radius: var(--r-pill); font-size: .78rem; font-weight: 500;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.chip-lime { background: var(--lime); color: var(--ink); }
a.chip:hover { background: var(--ink); color: #fff; }
.badge {
  display: inline-flex; align-items: center; gap: .35em; font-size: .78rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); padding: .3em .75em; border-radius: var(--r-xs);
}
.badge-ejemplo { color: #7a5b00; background: var(--warn-bg); }

/* Logo con inicial (herramientas) */
.logo-tile {
  --c: var(--accent);
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: var(--r-m);
  background: var(--c); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .12);
}
.logo-tile-lg { width: 96px; height: 96px; border-radius: var(--r-l); font-size: 2.8rem; }

/* Puntuación */
.score {
  display: inline-grid; place-items: center; flex: none;
  min-width: 46px; height: 46px; padding: 0 .5em; border-radius: var(--r-s);
  background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 1rem;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.score-lg { min-width: 76px; height: 76px; border-radius: var(--r-m); font-size: 1.75rem; }
.score-label { font-size: .72rem; color: var(--ink-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }

/* Estrellas */
.stars { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--ink-2); }
.stars-bar { position: relative; display: inline-block; font-size: 1rem; letter-spacing: 1px; color: #d9d4c7; line-height: 1; }
.stars-bar span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #f2a81d; white-space: nowrap; }

/* Precio */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .6rem; }
.price-now { font-family: var(--mono); font-weight: 600; font-size: 1.25rem; }
.price-old { font-family: var(--mono); color: var(--ink-3); text-decoration: line-through; font-size: .95rem; }
.price-off { font-size: .78rem; font-weight: 700; color: #fff; background: var(--bad); padding: .15em .5em; border-radius: var(--r-xs); }
.price-note { font-size: .78rem; color: var(--ink-3); width: 100%; }

/* Tarjetas de producto */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d3cec1; }
.card-link { display: flex; flex-direction: column; gap: .8rem; padding: 20px 20px 0; flex: 1; }
.card-top { display: flex; align-items: center; gap: .85rem; }
.card-top > div { flex: 1; min-width: 0; }
.card-title { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.card-sub { font-size: .82rem; color: var(--ink-3); }
.card-desc { color: var(--ink-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-img { aspect-ratio: 4 / 3; margin: -20px -20px 0; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .6s var(--ease-out); }
.card:hover .card-img img { transform: scale(1.04); }
.card-img-badge { position: absolute; top: 12px; left: 12px; }
.card-actions { display: flex; gap: .5rem; padding: 16px 20px 20px; flex-wrap: wrap; }
.card-actions .btn { flex: 1; }

/* Rejilla de categorías (home) */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.cat-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; transition: transform .3s var(--ease-out), border-color .2s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.cat-card .cat-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }
.cat-card .cat-meta .ico { color: var(--accent); width: 20px; height: 20px; }

/* Filtros */
.filters {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  padding: 12px; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
}
.filters input[type="search"], .filters select {
  min-height: 42px; padding: .4em .9em; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg);
}
.filters input[type="search"] { flex: 1 1 220px; }
.filters label.check { display: inline-flex; align-items: center; gap: .45em; font-size: .92rem; padding: 0 .4em; cursor: pointer; }
.filters .count { margin-left: auto; font-size: .85rem; color: var(--ink-3); padding-right: .4em; }
.empty { padding: 40px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Avisos */
.notice {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--r-m); background: var(--warn-bg); border: 1px solid var(--warn-line); color: #5c4700; font-size: .95rem;
}
.disclosure { font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { font-weight: 500; color: var(--ink-2); width: 46%; }
.spec-table td { font-family: var(--mono); font-size: .9rem; }
.spec-table .group th { background: var(--surface-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-block: 8px; }

/* Pros / contras */
.pc { display: grid; gap: 14px; grid-template-columns: 1fr; }
.pc-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; }
.pc-col h3 { display: flex; align-items: center; gap: .5em; font-size: 1rem; margin-bottom: .6rem; }
.pc-col li { display: flex; gap: .55em; align-items: flex-start; color: var(--ink-2); }
.pc-col li + li { margin-top: .45rem; }
.pc-col li .ico { margin-top: .3em; }
.pc-pros h3, .pc-pros .ico { color: var(--good); }
.pc-cons h3, .pc-cons .ico { color: var(--bad); }
.ideal { padding: 16px 20px; border-radius: var(--r-m); background: var(--accent-soft); color: #2a1a8f; }

/* Radar */
.radar { width: 100%; max-width: 420px; margin-inline: auto; }
.radar text { font-family: var(--sans); font-size: 12px; fill: var(--ink-2); }
.radar .ring { fill: none; stroke: var(--line); }
.radar .axis { stroke: var(--line); }
.radar-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; font-size: .85rem; margin-top: .5rem; }
.radar-legend i { display: inline-block; width: 12px; height: 12px; border-radius: var(--r-xs); margin-right: .35em; vertical-align: -1px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .6rem; color: var(--ink-2); }

/* Bandeja del comparador */
.tray {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: .6rem;
  padding: 8px 8px 8px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  transform: translateY(0); transition: transform .35s var(--ease-out), opacity .3s;
}
.tray[hidden] { display: none !important; }
.tray .tray-count { font-family: var(--mono); font-size: .9rem; }
.tray a.btn, .tray a.btn:hover { background: var(--lime); color: var(--ink); }

/* 6. Secciones ------------------------------------------------- */
/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, .96); border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(246, 244, 238, .82); backdrop-filter: saturate(1.4) blur(12px); }
}
.nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { width: 28px; height: 28px; flex: none; color: var(--brand-primary); }
.brand-mark .acento { fill: var(--brand-secondary); }
.brand-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.16rem;
  letter-spacing: -0.025em; line-height: 1; color: var(--text-primary); }
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .6rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-top: .32rem; }
.site-footer .brand-mark { color: var(--text-on-dark); }
.site-footer .brand-mark .acento { fill: var(--brand-accent); }
.site-footer .brand-name { color: #fff; }
.nav-links { display: none; align-items: center; gap: .2rem; margin-left: auto; }
.nav-links a {
  position: relative; padding: .45em .1em; margin-inline: .55em; color: var(--text-secondary);
  font-weight: 500; font-size: .95rem; transition: color var(--t-rapida);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand-primary); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-media) var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { background: var(--ink); color: #fff; margin-left: .4rem; padding-inline: 1.1em; border-radius: var(--r-pill); }
.nav-toggle { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--line); }
.nav-toggle .ico { width: 22px; height: 22px; }
.mobile-menu { border-top: 1px solid var(--line); padding: 10px 0 18px; }
.mobile-menu a { display: block; padding: .75em 0; font-weight: 500; border-bottom: 1px solid var(--line); }

/* Hero estilo editorial con fondo animado ---------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(56px, 9vw, 128px) clamp(32px, 5vw, 64px);
  background: linear-gradient(180deg, #fbfaf7 0%, var(--bg) 62%);
}
.hero-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* rejilla técnica muy tenue */
.hero-rejilla {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(18,19,23,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(18,19,23,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 85% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 85% at 50% 30%, #000 30%, transparent 78%);
}

/* cintas de seda */
.seda {
  position: absolute; inset: -8% -6%; width: 112%; height: 116%;
  mask-image: radial-gradient(58% 46% at 50% 42%, transparent 38%, #000 78%);
  -webkit-mask-image: radial-gradient(58% 46% at 50% 42%, transparent 38%, #000 78%);
}
.seda-g path {
  fill: none; stroke: var(--ink); stroke-width: .7; vector-effect: non-scaling-stroke;
  opacity: calc(var(--op, .2) * .62);
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: seda-flota var(--dur, 20s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -.42s);
}
.seda-g path:nth-child(3n) { stroke: var(--accent); opacity: calc(var(--op, .2) * .5); }
.seda-g path:nth-child(11n) { stroke: #c2412d; opacity: calc(var(--op, .2) * .4); }
@keyframes seda-flota {
  from { transform: translate3d(-1.6%, -2.2%, 0) scaleY(.94) rotate(-.6deg); }
  to   { transform: translate3d(1.8%, 2.6%, 0) scaleY(1.07) rotate(.7deg); }
}

/* velo que despeja el centro para que el texto respire */
.hero-fondo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(46% 38% at 50% 40%, rgba(251,250,247,.92) 0%, rgba(251,250,247,.55) 55%, transparent 100%);
}

/* etiquetas flotantes de categoría */
.hero-pills { position: absolute; inset: 0; z-index: 1; }
.pill-flota {
  position: absolute; pointer-events: auto; white-space: nowrap; max-width: 30vw; overflow: hidden; text-overflow: ellipsis;
  padding: .45em .9em; border-radius: var(--r-pill); font-size: .78rem; font-weight: 500;
  background: rgba(255,255,255,.85); color: var(--ink-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
  backdrop-filter: blur(6px);
  animation: pill-flota 7.5s ease-in-out infinite alternate;
  transition: color .2s, border-color .2s, transform .25s var(--ease-out);
}
.pill-flota:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px) scale(1.03); }
@keyframes pill-flota {
  from { transform: translateY(-7px); }
  to   { transform: translateY(9px); }
}

/* contenido centrado */
.hero-centro { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-titular {
  margin: .8rem 0 1.1rem; font-size: clamp(2.5rem, 7.2vw, 5.4rem); line-height: .98;
  letter-spacing: -0.045em; max-width: 15ch;
}
.hero-titular em { font-style: italic; color: var(--accent); }
.hero-titular .punto { color: #c2412d; }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 56ch; }
.hero-cta { margin-top: 1.9rem; }
.hero-cta .btn-buy { box-shadow: var(--shadow-l); }

/* buscador del hero */
.hero-buscador {
  display: flex; align-items: center; gap: .5rem; width: min(560px, 100%);
  margin-top: clamp(28px, 5vw, 52px); padding: 7px 7px 7px 16px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-m); backdrop-filter: blur(8px);
  transition: box-shadow .3s var(--ease-out), border-color .2s;
}
.hero-buscador:focus-within { border-color: var(--ink); box-shadow: var(--shadow-l); }
.hero-buscador input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 1rem; padding: .55em 0; color: var(--ink);
}
.hero-buscador input::placeholder { color: var(--ink-3); }
.hero-buscador-ico { display: grid; place-items: center; color: var(--ink-3); }
.hero-buscador-ico .ico { width: 18px; height: 18px; }
.hero-buscador-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; flex: none; transition: transform .25s var(--ease-out), background-color .2s;
}
.hero-buscador-btn:hover { transform: scale(1.06); background: #3a1fd6; }
.hero-buscador-btn .ico { width: 18px; height: 18px; }

.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; margin-top: 1.6rem; font-size: .88rem; color: var(--ink-2); }
.hero-trust span { display: inline-flex; align-items: center; gap: .45em; }
.hero-trust .ico { color: var(--accent); }

/* aparición escalonada del contenido (CSS puro: si falla algo, se ve igual) */
.hero-anim { animation: hero-entra .9s var(--ease-out) both; }
.hero-anim:nth-child(1) { animation-delay: .05s; }
.hero-anim:nth-child(2) { animation-delay: .13s; }
.hero-anim:nth-child(3) { animation-delay: .23s; }
.hero-anim:nth-child(4) { animation-delay: .33s; }
.hero-anim:nth-child(5) { animation-delay: .43s; }
.hero-anim:nth-child(6) { animation-delay: .53s; }
@keyframes hero-entra {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* tarjeta antigua del hero (ya no se usa en portada, se conserva por si acaso) */
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-lg);
  padding: 22px;
}
.hero-card-head { display: flex; align-items: center; gap: .8rem; }
.hero-card-head > div { flex: 1; }
.hero-card .radar { max-width: 340px; }
.hero-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding-top: 14px; }

/* Hero del medidor: texto a la izquierda, instrumento a la derecha --- */
.hero-medidor { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 6vw, 80px); }
.hero-medidor .seda {
  mask-image: radial-gradient(70% 60% at 30% 45%, transparent 45%, #000 90%);
  -webkit-mask-image: radial-gradient(70% 60% at 30% 45%, transparent 45%, #000 90%);
}
.hero-medidor .hero-fondo::after {
  background: radial-gradient(40% 50% at 26% 46%, rgba(251,250,247,.9) 0%, rgba(251,250,247,.5) 60%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero-texto { display: flex; flex-direction: column; align-items: flex-start; }
.hero-medidor .hero-titular { font-size: clamp(2.4rem, 4.9vw, 4.4rem); max-width: none; margin: .9rem 0 1.2rem; }
.hero-medidor .hero-sub { max-width: 46ch; }
.hero-medidor .hero-buscador { margin-top: 1.8rem; }
.hero-medidor .hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.hero-medidor .hero-trust { justify-content: flex-start; margin-top: 1.4rem; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
}

/* el instrumento */
.medidor {
  position: relative; width: 100%; max-width: 540px; justify-self: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l);
  box-shadow: var(--shadow-l); padding: clamp(16px, 2.2vw, 24px);
  animation-delay: .3s;
}
.medidor-cab {
  display: flex; align-items: center; gap: .75rem; padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase;
}
.medidor-estado {
  display: inline-flex; align-items: center; gap: .5em; padding: .35em .7em; border-radius: var(--r-pill);
  background: var(--brand-primary); color: var(--text-on-dark);
}
.medidor-estado i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-accent); animation: medidor-pulso 1.6s ease-in-out infinite; }
@keyframes medidor-pulso { 50% { opacity: .25; } }
.medidor-estado { flex: none; }
.medidor-cat { flex: 1; min-width: 0; color: var(--brand-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.medidor-cuenta { flex: none; white-space: nowrap; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.medidor-cuerpo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; align-items: center; }
.medidor-foto {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-m); background: var(--surface);
}
.medidor-foto img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: opacity var(--t-media) var(--ease-out), transform .6s var(--ease-out); }
.medidor.is-cambiando .medidor-foto img { opacity: 0; transform: scale(.94); }
.medidor-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand-secondary);
  opacity: 0; pointer-events: none;
}
.medidor.is-escaneando .medidor-scan { animation: medidor-scan 1.1s var(--ease-out); }
@keyframes medidor-scan {
  0% { top: 0; opacity: 0; }
  12% { opacity: .85; }
  88% { opacity: .85; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

.medidor-radar { width: 100%; height: auto; overflow: visible; }
.medidor-radar .m-anillo { fill: none; stroke: var(--border); stroke-width: 1; }
.medidor-radar .m-anillo:last-of-type { stroke: var(--text-muted); stroke-opacity: .35; }
.medidor-radar .m-eje { stroke: var(--border); stroke-width: 1; }
.medidor-radar .m-num { font-family: var(--font-mono); font-size: 9px; fill: var(--text-muted); text-anchor: middle; }
.medidor-radar .m-forma { fill: var(--brand-secondary); fill-opacity: .14; stroke: var(--brand-secondary); stroke-width: 2; stroke-linejoin: round; }
.medidor-radar .m-punto { fill: var(--surface); stroke: var(--brand-secondary); stroke-width: 2; }

.medidor-id { display: flex; align-items: center; gap: 1rem; margin: 18px 0 14px; }
.medidor-id-txt { flex: 1; min-width: 0; }
.medidor-nombre { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.medidor-nombre a:hover { color: var(--brand-secondary); }
.medidor-tag { font-size: var(--t-small); color: var(--text-secondary); margin-top: .15rem; }
.medidor-nota {
  display: grid; justify-items: center; align-content: center; flex: none;
  min-width: 78px; height: 74px; padding: 0 .6em; border-radius: var(--r-m); background: var(--brand-primary);
}
.medidor-nota-l { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark); opacity: .7; }
.medidor-nota-v { font-family: var(--font-sans); font-weight: 600; font-size: 1.9rem; line-height: 1.05; color: var(--brand-accent); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.medidor-lecturas { list-style: none; display: grid; gap: 7px; padding: 14px 0; border-block: 1px solid var(--border); }
.medidor-lecturas li { display: grid; grid-template-columns: 1.6em 8.4em minmax(0, 1fr) 2em; align-items: center; gap: .6rem; font-size: .84rem; }
.lec-n { font-family: var(--font-mono); font-size: .68rem; color: var(--text-muted); }
.lec-l { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lec-barra { position: relative; height: 6px; border-radius: var(--r-pill); background: var(--surface-secondary); overflow: hidden; }
.lec-barra i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--brand-primary); transition: width .9s var(--ease-out); }
.lec-v { font-family: var(--font-mono); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.medidor-pie { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; padding-top: 14px; }
.medidor-precio { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; }
.medidor-fecha { font-size: .78rem; color: var(--text-muted); margin-left: .35em; }

.medidor-tabs { display: flex; gap: 6px; margin-top: 16px; }
.medidor-tabs button { flex: 1; height: 24px; display: grid; align-items: center; cursor: pointer; }
.medidor-tabs button i { position: relative; display: block; height: 3px; border-radius: var(--r-pill); background: var(--surface-secondary); overflow: hidden; }
.medidor-tabs button i::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--brand-primary); }
.medidor-tabs button:hover i { background: var(--border); }
.medidor-tabs button[aria-current="true"] i::after { transform: scaleX(1); }
.medidor.is-auto .medidor-tabs button[aria-current="true"] i::after { animation: medidor-avance var(--medidor-dur, 6s) linear both; }
.medidor.is-pausa .medidor-tabs button[aria-current="true"] i::after { animation-play-state: paused; }
@keyframes medidor-avance { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 520px) {
  .medidor-lecturas li { grid-template-columns: 1.4em 7.4em minmax(0, 1fr) 1.8em; font-size: .8rem; }
  .medidor-nombre { font-size: 1.1rem; }
  .medidor-nota { min-width: 64px; height: 62px; }
  .medidor-nota-v { font-size: 1.55rem; }
  .medidor-pie .btn { flex: 1 1 100%; }
}

/* Entradas de nicho */
.split { display: grid; gap: 18px; }
.niche {
  position: relative; display: flex; flex-direction: column; gap: 1rem; min-height: 280px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-l); overflow: hidden;
  background: var(--ink); color: #fff; transition: transform .4s var(--ease-out);
}
.niche:hover { transform: translateY(-4px); }
.niche-alt { background: var(--accent); }
.niche .h2 { color: #fff; }
.niche p { color: rgba(255, 255, 255, .78); max-width: 46ch; }
.niche .chips { margin-top: auto; }
.niche .chip { background: rgba(255, 255, 255, .12); color: #fff; }
.niche-go { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.niche-go .ico { width: 22px; height: 22px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 28px; }
.section-head p { max-width: 56ch; }

/* Cómo elegimos */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); color: var(--accent); font-size: .85rem; }
.step h3 { margin: .5rem 0 .4rem; }

/* Cabecera de página interior */
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 32px); }
.page-head .h2, .page-head .display { margin: .4rem 0 .8rem; }

/* Ficha */
.ficha-top { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
.gallery-main { aspect-ratio: 1; border-radius: var(--r-l); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery-main { background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; border-radius: var(--r-s); overflow: hidden; border: 2px solid transparent; background: var(--surface); }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs button { background: #fff; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ficha-head { display: flex; flex-direction: column; gap: 1rem; }
.ficha-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -0.03em; }
.ficha-id { display: flex; align-items: center; gap: 1rem; }
.buy-box { display: flex; flex-direction: column; gap: .8rem; padding: 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.buy-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.buy-row .btn-buy { flex: 1 1 220px; }
.ficha-grid { display: grid; gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 28px); }
.panel > h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 22px 26px; border-radius: var(--r-m); background: var(--ink); color: #fff; }
.cta-band .btn-buy { background: var(--lime); color: var(--ink); }
.cta-band .btn-buy .ico { color: var(--ink); }
.cta-band .btn-buy.is-disabled { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); }

/* Comparador */
.cmp-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); }
.cmp-tabs button { padding: .55em 1.1em; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-2); }
.cmp-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.cmp-picker { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 18px 0 24px; }
.cmp-picker select { min-height: 44px; padding: .4em .9em; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); min-width: 240px; }
.cmp-table { min-width: 640px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .92rem; }
.cmp-table thead th { vertical-align: bottom; background: var(--surface); }
.cmp-table tbody th { position: sticky; left: 0; background: var(--surface); font-weight: 500; color: var(--ink-2); min-width: 170px; box-shadow: 1px 0 0 var(--line); }
.cmp-table td { font-family: var(--mono); font-size: .86rem; min-width: 190px; }
.cmp-table td.best { background: #eef9d3; color: #2d4a00; font-weight: 600; }
.cmp-table .group th { background: var(--surface-2); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cmp-head { display: flex; flex-direction: column; gap: .5rem; min-width: 170px; }
.cmp-head-top { position: relative; display: flex; align-items: center; gap: .6rem; padding-right: 30px; }
.cmp-head img { width: 52px; height: 52px; border-radius: var(--r-s); object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.cmp-head a.name { font-weight: 650; font-family: var(--sans); font-size: .95rem; line-height: 1.2; }
.cmp-remove { position: absolute; top: -4px; right: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 1rem; line-height: 1; }
.cmp-remove:hover { background: var(--bad); color: #fff; }
.cmp-empty { padding: 48px 24px; text-align: center; }

/* Guías */
.rank { display: grid; gap: 16px; counter-reset: r; }
.rank-item { display: grid; gap: 16px; grid-template-columns: auto 1fr; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rank-item::before { counter-increment: r; content: counter(r); font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--accent); line-height: 1; min-width: 1.2em; }
.rank-body { display: flex; flex-direction: column; gap: .7rem; }
.rank-body h3 { font-size: 1.3rem; }

/* Pie */
.site-footer {
  margin-top: clamp(56px, 8vw, 100px); background: var(--brand-primary); color: rgba(247, 245, 239, .72);
  padding-block: 64px 28px; font-size: .92rem;
  background-image: radial-gradient(120% 80% at 50% -20%, rgba(75, 46, 240, .22), transparent 60%);
}
.site-footer .firma-pie { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,245,239,.45); }
.site-footer .firma-pie::before { content: ""; width: 22px; height: 1px; background: var(--brand-accent); }
.footer-grid { display: grid; gap: 32px; }
.site-footer .pie-t { color: #fff; font-size: .8rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; font-weight: 500; }
.site-footer li + li { margin-top: .45rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: rgba(255, 255, 255, .5); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .8rem; color: rgba(255, 255, 255, .5); display: flex; flex-direction: column; gap: .5rem; }

/* 7. Efectos --------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 8. Responsive ------------------------------------------------ */
@media (max-width: 959px) {
  .hero-pills { display: none; }
}
@media (min-width: 720px) {
  .pc { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-legal { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu { display: none !important; }
  .ficha-top { grid-template-columns: .95fr 1.05fr; }
  .ficha-top.tool { grid-template-columns: 1fr; }
  .ficha-grid { grid-template-columns: 1fr 1fr; }
}

/* 9. Reduced motion: solo efectos intrusivos ------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seda-g path, .pill-flota, .hero-anim, .medidor-estado i, .medidor-scan { animation: none !important; }
  .medidor-foto img, .lec-barra i { transition: none; }
  .hero-anim { opacity: 1; transform: none; }
}

/* =============================================================
   10. Añadidos de la auditoría (compra en móvil, problemas, autor,
       boletín y objetivos táctiles)
   ============================================================= */

/* Barra fija de compra en móvil */
.barra-compra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(20, 22, 26, .10);
}
.barra-compra .barra-precio { display: block; font-family: var(--mono); font-weight: 600; font-size: 1.05rem; }
.barra-compra .barra-nombre { display: block; font-size: .76rem; color: var(--ink-2); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-compra .btn { flex: none; }
@media (max-width: 959px) {
  .barra-compra:not([hidden]) { display: flex; }
  body:has(.barra-compra:not([hidden])) { padding-bottom: 76px; }
  .tray { bottom: 82px; }
}

/* Bloque "¿Qué quieres resolver?" */
.problemas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.problema {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s var(--ease-out);
}
.problema:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
.problema-txt { flex: 1; min-width: 0; }
.problema-t { font-weight: 650; letter-spacing: -0.01em; margin-bottom: .2rem; }
.problema-rec { margin-top: .6rem; font-size: .85rem; color: var(--ink-2); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.problema-rec .ico { color: var(--accent); }
.etiqueta-rec { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: .25em .5em; border-radius: var(--r-xs); }
.problema img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); flex: none; }

/* Firma del autor */
.firma { font-size: .85rem; color: var(--ink-3); margin-bottom: 1.2rem; }
.firma a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.firma a:hover { color: var(--accent); }

/* Aviso de bajada de precio */
.boletin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.boletin h2 { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: .4rem; }
.boletin p { color: var(--ink-2); max-width: 52ch; }
.boletin form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.boletin input[type="email"] {
  flex: 1 1 240px; min-height: 48px; padding: .6em 1em; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--bg); font-size: 1rem;
}
.boletin input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.boletin .consiente { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; color: var(--ink-2); margin-top: .8rem; width: 100%; }
.boletin .consiente input { margin-top: .25em; width: 18px; height: 18px; flex: none; }
.boletin .aviso-form { margin-top: .7rem; font-size: .9rem; font-weight: 500; }
.boletin .aviso-form.ok { color: var(--good); }
.boletin .aviso-form.mal { color: var(--bad); }

/* Objetivos táctiles cómodos en móvil */
@media (max-width: 720px) {
  .btn-sm { min-height: 44px; padding-inline: 1.1em; }
  .card-actions { gap: .5rem; }
  .card-actions .btn { flex: 1 1 100%; }
}

.cmp-resumen { margin-bottom: 18px; }
.cmp-resumen p { color: var(--ink-2); }
.cmp-resumen a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Añadido por la sección «Equipo para trabajar con IA» (2026-09-16) ── */
@media (min-width: 960px) and (max-width: 1139px) {
.nav-links a { margin-inline: .38em; font-size: .9rem; }
.brand-name small { display: none; }
}