/* IMartz · hoja única de la web pública (fase 1B, 2026-11-18).
   Dirección: la del stinger «Diagonal v3». Azul noche y luz naranja tostada (del perfil y el banner),
   logo blanco de tres piezas, Barlow como en las reviews, fichas claras para los productos.
   La geometría del logo hace de sistema de cortes: ver «Cortes del logo» y build.mjs (logoCut).
   styles.css y direction.css ya no se publican: solo las usa el editor local hasta la fase 1C. */

/* 1. Fuentes (Barlow, licencia OFL: assets/Barlow-LICENSE.txt) */
@font-face { font-family: "Barlow"; src: url('/assets/barlow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url('/assets/barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url('/assets/barlow-condensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url('/assets/barlow-condensed-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* 2. Tokens */
:root {
  /* Zona oscura: el stinger */
  --noche: #071120;
  --marino: #0D1F33;
  --acero: #142B42;
  --linea: #22405F;
  --blanco: #F2F5F8;
  --niebla: #A6B6C9;
  /* Luz naranja tostada: Telegram, cupones y acciones */
  --luz: #C8471F;
  --luz-viva: #DA5528;
  --luz-texto: #A93A16;   /* la misma luz, legible sobre la zona clara */
  /* Zona clara: las fichas */
  --ficha: #E7ECF1;
  --tinta: #071120;
  --pizarra: #44566B;
  --linea-ficha: #C6D1DC;
  /* Solo para Monitor Garage */
  --mg: #FFCC00;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texto: "Barlow", Arial, sans-serif;
  --stinger: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  --max: 1240px;
  --foco: var(--blanco);
  /* Pendiente de los bordes del logo (≈ 30°) y anchura máxima del logo en los cortes */
  --corte-max: 512px;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noche); scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noche); color: var(--blanco); font: 400 16px/1.5 var(--texto); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.005em; }

/* 4. Utilidades */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 50; padding: 12px 18px; background: var(--blanco); color: var(--tinta); font-weight: 600; }
.skip-link:focus { top: 12px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.text-link.is-inline { display: inline; min-height: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; font: 600 16px/1.1 var(--texto); }
.button .icon { width: 18px; height: 18px; }
.button.is-light { background: var(--blanco); color: var(--tinta); }
.button.is-outline { border-color: var(--linea); }
.button.is-dark { background: var(--tinta); color: var(--blanco); }
.button.is-garage { background: var(--mg); color: var(--tinta); }

/* 5. Cabecera y navegación */
.site-header { position: relative; z-index: 20; background: var(--noche); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; overflow: visible; }
.brand-name { font: 700 24px/1 var(--display); letter-spacing: .01em; }
.brand-tech { margin-left: 4px; font: 400 14px/1 var(--texto); color: var(--niebla); letter-spacing: 0; }
.menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; border: 0; background: none; font-weight: 600; font-size: 15px; }
.menu-lines, .menu-lines::before { display: block; width: 20px; height: 2px; background: currentColor; }
.menu-lines { position: relative; top: -3px; }
.menu-lines::before { content: ""; position: absolute; top: 6px; }
.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 4px var(--gutter) 24px; background: var(--marino); border-top: 1px solid var(--linea); }
.main-nav.is-open { display: grid; }
.main-nav a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--linea); font: 700 28px/1 var(--display); }
.main-nav a[aria-current="page"] { color: var(--luz-viva); }
.main-nav .nav-cta { justify-content: center; margin-top: 18px; border: 0; background: var(--luz); color: #fff; }
/* En la portada y en /enlaces/ el nombre ya va grande: en el móvil la cabecera solo lleva el símbolo. */
.home-page .brand-name, .links-page .brand-name { display: none; }

/* 6. Identidad: nombre, retrato y accesos (portada y /enlaces/) */
.identity { padding-bottom: 28px; background: var(--noche); }
.identity-grid { display: grid; grid-template-areas: "name" "portrait" "tagline" "socials" "links"; }
.identity-name { grid-area: name; position: relative; z-index: 2; margin-top: 4px; font-size: min(40vw, 250px); line-height: .78; letter-spacing: -.012em; }
.identity-portrait { grid-area: portrait; position: relative; z-index: 1; margin: -.2em calc(var(--gutter) * -1) 0; font-size: min(40vw, 250px); }
/* Móvil: el retrato termina con el borde inferior del contorno del logo (misma pendiente). */
.portrait-cut { height: min(78vw, 520px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - min(29.5vw, 200px)), 50% 100%, 0 calc(100% - min(29.5vw, 200px))); }
.portrait-cut img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.portrait-chevron { display: none; color: var(--blanco); }
.identity-tagline { grid-area: tagline; margin-top: 14px; font-size: 17px; line-height: 1.35; color: var(--niebla); }

/* 7. Redes */
.socials { display: flex; justify-content: space-between; }
.identity-socials { grid-area: socials; margin: 18px -12px 0; }
.social { display: grid; place-items: center; width: 48px; height: 48px; color: var(--blanco); }
.social svg { width: 24px; height: 24px; }
.social:hover { color: var(--luz-viva); }

/* 8. Accesos principales */
.primary-links { grid-area: links; display: grid; gap: 10px; margin-top: 18px; }
.primary-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; background: var(--marino); }
.primary-link strong { display: block; font: 700 24px/1.05 var(--display); letter-spacing: .005em; }
.primary-link small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--niebla); }
.primary-link.is-telegram { background: var(--luz); color: #fff; }
.primary-link.is-telegram small { color: #fff; }
.primary-link.is-garage strong { color: var(--mg); }
.primary-link:hover .primary-arrow { translate: 2px -2px; }
.primary-arrow { transition: translate .25s var(--stinger); }

/* 9. Cortes del logo (coordenadas reales del logo; anchura del logo = min(100vw, --corte-max)) */
.logo-cut { line-height: 0; background: var(--ficha); }
.logo-cut svg { width: 100%; }
.logo-cut.is-full svg { height: min(58.6vw, 300px); }
.logo-cut.is-edge svg { height: min(32.6vw, 167px); }
.logo-cut.is-top svg { height: min(32.9vw, 168px); }
.cut-fill, .cut-chevron { fill: var(--noche); }
.logo-cut.is-full { view-timeline: --corte block; }

/* 10. Zona clara */
.sheet { --foco: var(--tinta); background: var(--ficha); color: var(--tinta); padding: 8px 0 64px; }
.sheet .text-link { color: var(--tinta); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.block-head h2 { font-size: 40px; }
.note { margin-top: 18px; font-size: 14px; color: var(--pizarra); }

/* 11. Productos y cupones */
.links-block { margin-bottom: 40px; }
.product-list { display: grid; }
.product { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--linea-ficha); }
.product-list > .product:last-child { border-bottom: 1px solid var(--linea-ficha); }
.product[hidden] { display: none; }
.product-media { display: grid; place-items: center; width: 92px; height: 92px; padding: 6px; background: #fff; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media.is-empty { padding: 8px; background: var(--tinta); color: var(--blanco); font: 800 18px/1 var(--display); text-align: center; overflow-wrap: anywhere; }
.product-label { font-size: 14px; color: var(--pizarra); }
.product-title { margin-top: 2px; font-size: 25px; font-weight: 700; line-height: 1.02; letter-spacing: .003em; }
.product-link::after { content: ""; position: absolute; inset: 0; }
.product-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.product-link:focus-visible { outline: none; }
.product-link:focus-visible::after { outline: 3px solid var(--foco); outline-offset: -3px; }
.product-description { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--pizarra); }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.product-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; }
.product-cta .icon { width: 18px; height: 18px; }
/* Cupón: etiqueta con las puntas del contorno del logo, girado 90°. */
.coupon { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; background: var(--luz); color: #fff; clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%, 0 50%); font-size: 13px; transition: background-color .2s; }
.coupon strong { font: 700 19px/1 var(--display); letter-spacing: .02em; }
.coupon:hover { background: var(--luz-viva); }
.coupon:focus-visible { outline: none; background: var(--tinta); }
.coupon.is-copied { background: var(--tinta); }
.coupon-status { position: fixed; left: 50%; bottom: 16px; z-index: 40; translate: -50% 0; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--blanco); color: var(--tinta); font-weight: 600; box-shadow: 0 0 0 1px var(--linea-ficha); }
.coupon-status:empty { display: none; }

/* 12. Buscador y filtros */
.catalog-tools { margin-bottom: 4px; }
.search-field { position: relative; display: block; }
.search-field .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--pizarra); pointer-events: none; }
.search-field input { width: 100%; height: 50px; padding: 0 14px 0 44px; border: 1px solid var(--linea-ficha); border-radius: 2px; background: #fff; color: var(--tinta); font-size: 16px; }
.search-field input::placeholder { color: #6B7C90; }
.filter-chips { display: flex; gap: 8px; margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.filter-chips button { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--linea-ficha); border-radius: 2px; background: transparent; color: var(--tinta); font-weight: 600; font-size: 15px; }
.filter-chips button[aria-pressed="true"] { border-color: var(--tinta); background: var(--tinta); color: var(--blanco); }
.catalog-count { min-height: 20px; margin: 12px 0 10px; font-size: 14px; color: var(--pizarra); }
.catalog-empty { padding: 24px 0; color: var(--pizarra); }

/* 13. Guías por categoría */
.guide-grid { display: grid; }
.guide-tile { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 16px 0; border-top: 1px solid var(--linea-ficha); }
.guide-grid > .guide-tile:last-child { border-bottom: 1px solid var(--linea-ficha); }
.guide-tile .icon { grid-row: span 3; width: 28px; height: 28px; margin-top: 2px; }
.guide-tile[hidden] { display: none; }
.guide-name { font: 700 24px/1.05 var(--display); }
.guide-description { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--pizarra); }
.guide-meta { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--luz-texto); }
.guide-tile:hover .guide-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.guides-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; border-bottom: 1px solid var(--linea-ficha); }
.guides-row strong { display: block; font-weight: 600; }
.guides-row span span { display: block; font-size: 15px; color: var(--pizarra); }
.links-guides { margin-top: 8px; }

/* 14. Vídeo */
.home-pair { display: grid; gap: 48px; }
.video-card { display: grid; gap: 8px; }
.video-image { position: relative; display: block; background: var(--tinta); }
.video-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-play { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 56px; height: 56px; background: var(--luz); color: #fff; }
.video-duration { position: absolute; left: 0; bottom: 0; padding: 6px 10px; background: var(--tinta); color: var(--blanco); font-size: 14px; font-weight: 600; }
.video-label { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--luz-texto); }
.video-title { font: 700 26px/1.05 var(--display); }
.video-card:hover .video-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* 15. Monitor Garage */
.project { padding: 8px 0 64px; background: var(--noche); }
.project-grid { display: grid; gap: 28px; }
.project-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--niebla); }
.project-copy h2 { font-size: min(14vw, 64px); color: var(--mg); }
.project-lead { margin-top: 8px; font: 700 28px/1.05 var(--display); }
.project-copy p:not(.project-lead) { margin-top: 14px; max-width: 46ch; color: var(--niebla); }
.project-copy .button { margin-top: 24px; }

/* 16. Sobre mí */
.about { padding: 56px 0 72px; border-top: 1px solid var(--acero); background: var(--noche); }
.about-grid { display: grid; gap: 24px; }
.about h2 { font-size: 46px; max-width: 14ch; }
.about-copy > p { max-width: 46ch; font-size: 17px; color: var(--niebla); }
.contact { margin-top: 32px; }
.contact h3 { font-size: 26px; font-weight: 700; }
.contact p { margin-top: 4px; color: var(--niebla); }
.contact-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font-weight: 600; }
.contact-link .icon { width: 20px; height: 20px; }
.contact-link:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* 17. Páginas interiores */
.page-intro { padding: 20px 0 24px; background: var(--noche); }
.page-intro h1 { max-width: 12ch; font-size: clamp(56px, 15vw, 120px); line-height: .88; }
.breadcrumb { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-bottom: 8px; font-weight: 600; font-size: 15px; color: var(--niebla); }
.breadcrumb .icon { width: 18px; height: 18px; }
.breadcrumb:hover { color: var(--blanco); }
.page-lead { max-width: 46ch; margin-top: 14px; font-size: 18px; color: var(--niebla); }
.page-intro.is-not-found { padding: 48px 0 96px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.sheet .catalog-tools { margin-bottom: 8px; }
.category-layout, .monitor-layout { display: grid; gap: 48px; }
.criteria h2, .category-links h2, .related h2, .monitor-aside h2, .page-end h2 { font-size: 34px; margin-bottom: 12px; }
.criteria-list li { padding: 18px 0; border-top: 1px solid var(--linea-ficha); }
.criteria-list li:last-child { border-bottom: 1px solid var(--linea-ficha); }
.criteria-list h3 { font-size: 26px; font-weight: 700; }
.criteria-list p { margin-top: 6px; color: var(--pizarra); }
.related { margin-top: 56px; }
.monitor-guide { display: grid; padding: 20px 0; border-top: 1px solid var(--linea-ficha); }
.monitor-guide:last-child { border-bottom: 1px solid var(--linea-ficha); }
.monitor-guide .guide-meta { margin: 0 0 4px; }
.monitor-guide .guide-name { font-size: 32px; }
.monitor-guide .product-cta { margin-top: 4px; }
.monitor-guide:hover .guide-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.monitor-aside img { margin-bottom: 20px; }
.monitor-aside p { color: var(--pizarra); margin-bottom: 20px; }
.page-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--linea-ficha); }
.page-end h2 { margin: 0; }
.legal-copy { max-width: 68ch; }
.legal-copy h2 { margin: 36px 0 8px; font-size: 28px; }
.legal-copy h2:first-child { margin-top: 8px; }
.legal-copy p { font-size: 16px; line-height: 1.65; color: #24364A; }

/* 18. Pie */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--acero); background: var(--noche); color: var(--niebla); }
.footer-grid { display: grid; gap: 20px; }
.footer-brand { display: grid; gap: 4px; }
.footer-brand .brand { color: var(--blanco); }
.footer-mail { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.footer-mail:hover { color: var(--blanco); }
.footer-socials { justify-content: flex-start; gap: 4px; margin-left: -12px; }
.footer-note { max-width: 62ch; font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 14px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blanco); font-weight: 600; }

/* 19. Escritorio y tableta */
@media (min-width: 700px) {
  .block-head h2 { font-size: 48px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .guide-grid > .guide-tile:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--linea-ficha); }
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .product-list > .product:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--linea-ficha); }
  .filter-chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .catalog-tools { display: grid; grid-template-columns: minmax(0, 420px) 1fr; align-items: start; column-gap: 16px; }
  .catalog-tools .filter-chips { margin-top: 3px; }
  .catalog-tools .catalog-count { grid-column: 1 / -1; }
  .project-copy h2 { font-size: 88px; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; }
  .footer-note, .footer-bottom { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .header-inner { min-height: 84px; }
  .menu-toggle { display: none; }
  .main-nav { position: static; display: flex; align-items: center; gap: 30px; padding: 0; border: 0; background: none; }
  .main-nav a { min-height: 44px; border: 0; font: 600 15px/1 var(--texto); }
  .main-nav a[aria-current="page"] { color: var(--blanco); text-decoration: underline; text-decoration-color: var(--luz); text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .main-nav a:not(.nav-cta):hover { color: var(--niebla); }
  .main-nav .nav-cta { margin: 0; padding: 0 18px; background: var(--blanco); color: var(--tinta); }
  .main-nav .nav-cta[aria-current="page"] { text-decoration: none; background: var(--luz); color: #fff; }
  .home-page .brand-name, .links-page .brand-name { display: inline; }

  /* Identidad: el retrato llena el contorno del logo y el cheurón inferior lo completa, con su hueco original. */
  .identity { padding: 24px 0 72px; }
  .identity-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); grid-template-rows: auto auto auto 1fr; grid-template-areas: "name portrait" "tagline portrait" "socials portrait" "links portrait"; column-gap: clamp(40px, 6vw, 96px); }
  .identity-name { align-self: end; margin-top: clamp(24px, 6vw, 96px); font-size: min(19vw, 290px); }
  .identity-portrait { margin: 0; font-size: 16px; aspect-ratio: 708 / 807.237; }
  .portrait-cut { position: absolute; left: .4237%; top: 0; width: 99.576%; height: 76.666%; clip-path: polygon(49.06% 0, 100% 34.14%, 100% 66.26%, 48.7% 100%, 0 66.29%, 0 30.83%); }
  .portrait-cut img { object-position: 50% 30%; }
  .portrait-chevron { display: block; position: absolute; left: 0; top: 59.598%; width: 99.576%; height: 40.402%; }
  .identity-tagline { margin-top: 20px; font-size: 24px; }
  .identity-socials { justify-content: flex-start; gap: 6px; margin: 22px 0 0 -12px; }
  .primary-links { align-self: start; margin-top: 28px; }

  /* En escritorio el cheurón ya está en el retrato: el corte deja solo el borde del contorno. */
  .logo-cut.is-full { height: 167px; overflow: hidden; }
  .logo-cut.is-full svg { height: 300px; }
  .logo-cut.is-full .cut-chevron { display: none; }

  .sheet { padding: 24px 0 96px; }
  .block-head { margin-bottom: 20px; }
  .block-head h2 { font-size: 56px; }
  .links-block { margin-bottom: 56px; }
  .product { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 22px 0; }
  .product-media { width: 120px; height: 120px; }
  .product-title { font-size: 28px; }
  .home-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .home-pair .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .home-pair .guide-grid > .guide-tile:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .recommendations-page .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recommendations-page .guide-grid > .guide-tile:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .recommendations-page .guide-grid > .guide-tile:nth-last-child(-n + 3) { border-bottom: 1px solid var(--linea-ficha); }

  .project { padding: 24px 0 96px; }
  .project-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
  .about { padding: 88px 0 104px; }
  .about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
  .about h2 { font-size: 72px; }

  .page-intro { padding: 40px 0 32px; }
  .page-intro h1 { max-width: 16ch; }
  .category-layout, .monitor-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .category-links .product-list { grid-template-columns: minmax(0, 1fr); }
  .category-links .product-list > .product:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* 20. Movimiento: la coreografía del stinger. Una sola vez al cargar, nunca bloquea el scroll.
   Con movimiento reducido no se anima nada. Se anima «translate» para no pisar el «transform» del gesto. */
.mark path { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* El logo de la cabecera se monta en cada página, como el stinger entre escenas. */
  .brand-mark .mark-contorno { animation: pieza-cae .85s var(--stinger) backwards; }
  .brand-mark .mark-inferior { animation: pieza-sube .85s .06s var(--stinger) backwards; }
  .brand-mark .mark-central { animation: pieza-asienta .85s .14s var(--stinger) backwards; }
  /* Gesto al pasar o enfocar: el cheurón central salta y el inferior cede. */
  .mark path { transition: transform .45s var(--stinger); }
  .brand:hover .mark-central, .brand:focus-visible .mark-central { transform: translateY(-24%); }
  .brand:hover .mark-inferior, .brand:focus-visible .mark-inferior { transform: translateY(9%); }
  .brand:hover .mark-contorno, .brand:focus-visible .mark-contorno { transform: translateY(-3%); }

  /* Identidad: el contorno (retrato) cae, el cheurón sube y el nombre aparece con un barrido. */
  .identity-name { animation: barrido .8s .08s var(--stinger) backwards; }
  .portrait-cut { animation: contorno-cae .9s var(--stinger) backwards; }
  .portrait-chevron { animation: cheuron-sube .9s .12s var(--stinger) backwards; }

  /* Al bajar a la zona clara, el cheurón del corte sube a su sitio ligado al scroll. */
  @supports (animation-timeline: view()) {
    .logo-cut.is-full .cut-chevron { animation: corte-sube linear both; animation-timeline: --corte; animation-range: entry 0% cover 45%; }
  }

  .main-nav.is-open { animation: menu-abre .25s var(--stinger); }
  @media (min-width: 900px) { .main-nav.is-open { animation: none; } }
}
@keyframes pieza-cae { from { translate: 0 -120%; } }
@keyframes pieza-sube { from { translate: 0 120%; } }
@keyframes pieza-asienta { from { scale: .4; opacity: 0; } }
@keyframes barrido { from { translate: 0 .3em; clip-path: inset(100% 0 -20% 0); } to { clip-path: inset(-20% -5% -20% -5%); } }
@keyframes contorno-cae { from { translate: 0 -40px; } }
@keyframes cheuron-sube { from { translate: 0 45%; opacity: 0; } }
@keyframes corte-sube { from { translate: 0 220px; } }
@keyframes menu-abre { from { translate: 0 -8px; opacity: 0; } }
@media (min-width: 1200px) { .primary-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 21. Ratones y Teclados: código grande, recomendados y guía rápida */
.intro-grid { display: grid; gap: 28px; }
.code-hero { display: grid; justify-items: start; gap: 14px; padding: 22px 18px 18px; background: var(--marino); }
.code-hero-title { font: 700 26px/1 var(--display); }
.coupon.is-big { min-height: 64px; padding: 0 32px; gap: 12px; clip-path: polygon(19px 0, calc(100% - 19px) 0, 100% 50%, calc(100% - 19px) 100%, 19px 100%, 0 50%); font-size: 15px; }
.coupon.is-big strong { font-size: 40px; letter-spacing: .03em; }
.code-hero .coupon:focus-visible { background: var(--blanco); color: var(--tinta); }
.code-stores { display: grid; width: 100%; border-top: 1px solid var(--linea); }
.code-store { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.code-store strong { font: 700 21px/1.1 var(--display); }
.code-store span { grid-column: 1; font-size: 14px; color: var(--niebla); }
.code-store .icon { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; }
a.code-store:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.code-hero-note { font-size: 14px; color: var(--niebla); }

.picks { margin-bottom: 48px; }
.pick-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pick-specs li { padding: 3px 8px; border: 1px solid var(--linea-ficha); font-size: 13px; font-weight: 600; color: var(--pizarra); }
.pick-video { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--luz-texto); }
.pick-video .icon { width: 16px; height: 16px; }
.pick-video:hover { text-decoration: underline; text-underline-offset: 4px; }
.pick-note { margin-top: 2px; font-size: 13px; color: var(--pizarra); }
.pick-filters { margin-top: 0; margin-bottom: 8px; }
.pick[hidden] { display: none; }
.guide-section.no-figure .guide-text { max-width: 62ch; }

.guide-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; margin-bottom: 56px; padding: 18px; background: var(--tinta); color: var(--blanco); }
.guide-teaser-figure { grid-column: 1 / -1; }
.guide-teaser-copy { display: grid; gap: 4px; }
.guide-teaser-copy strong { font: 800 32px/1 var(--display); }
.guide-teaser-copy > span:last-child { color: var(--niebla); }
.guide-teaser .guide-meta { margin: 0; color: var(--luz-viva); }
.guide-teaser:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.category-layout.is-single { grid-template-columns: minmax(0, 1fr); }

/* Guía corta */
.guide-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.guide-index a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--linea); font-size: 15px; font-weight: 600; }
.guide-index a:hover { border-color: var(--blanco); }
.guide-article { display: grid; gap: 56px; }
.guide-section { display: grid; gap: 20px; scroll-margin-top: 24px; }
.guide-text h2 { font-size: 40px; margin-bottom: 12px; }
.guide-text p { max-width: 60ch; margin-top: 10px; font-size: 17px; line-height: 1.6; color: #24364A; }
.guide-end { display: grid; gap: 28px; margin-top: 64px; }
.guide-end-code { display: grid; justify-items: start; gap: 14px; padding: 22px 18px; background: var(--tinta); color: var(--blanco); }
.guide-end-code p { font: 700 24px/1.1 var(--display); }

/* Figuras (scripts/guide-figures.mjs) */
.fig { --activacion: 20; margin: 0; padding: 14px; background: #fff; }
.fig svg { width: 100%; height: auto; overflow: visible; }
.fig-states { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fig-states button { min-height: 40px; padding: 0 12px; border: 1px solid var(--linea-ficha); border-radius: 2px; background: transparent; color: var(--tinta); font-weight: 600; font-size: 14px; }
.fig-states button[aria-pressed="true"] { border-color: var(--tinta); background: var(--tinta); color: var(--blanco); }
.fig-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; font-size: 14px; font-weight: 600; }
.fig-range input { flex: 1 1 160px; min-height: 40px; accent-color: var(--luz); }
.fig-range output { min-width: 4.5em; font: 700 22px/1 var(--display); color: var(--luz-texto); }
.fig text { font: 600 13px var(--texto); fill: var(--pizarra); }
.fig-desk { stroke: var(--linea-ficha); stroke-width: 2; }
.fig-mouse { fill: var(--ficha); stroke: var(--tinta); stroke-width: 2.5; }
.fig-mouse-line { fill: none; stroke: var(--tinta); stroke-width: 1.5; opacity: .5; }
.fig-hand path { fill: none; stroke: #8A9AAD; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.fig-hand circle { fill: var(--luz); }
.fig-hand { opacity: 0; translate: 0 -10px; transition: opacity .35s var(--stinger), translate .45s var(--stinger); }
.fig-agarre[data-state="palma"] .is-palma, .fig-agarre[data-state="garra"] .is-garra, .fig-agarre[data-state="punta"] .is-punta { opacity: 1; translate: 0 0; }
.fig-palm rect { fill: var(--ficha); stroke: var(--tinta); stroke-width: 2; }
.fig-measure line, .fig-measure path { fill: none; stroke: var(--luz); stroke-width: 2.5; stroke-linecap: round; }
.fig-measure text { fill: var(--luz-texto); font-weight: 700; }
.fig-axis { stroke: var(--luz); stroke-width: 2; stroke-dasharray: 6 6; }
.fig-thumb { fill: none; stroke: var(--luz); stroke-width: 5; stroke-linecap: round; }
.fig-track { fill: none; stroke: var(--linea-ficha); stroke-width: 3; }
.fig-dots circle { fill: var(--luz); }
.fig-dots { opacity: 0; transition: opacity .3s; }
.fig-sondeo[data-state="baja"] .is-baja, .fig-sondeo[data-state="alta"] .is-alta { opacity: 1; }
.fig-board { opacity: 0; transition: opacity .3s; }
.fig-board-keys { fill: url(#teclas); }
.fig-board-edge { fill: none; stroke: var(--tinta); stroke-width: 2.5; }
#teclas rect { fill: var(--ficha); stroke: var(--pizarra); stroke-width: 1; }
.fig-formato[data-state="100"] .is-100, .fig-formato[data-state="tkl"] .is-tkl, .fig-formato[data-state="75"] .is-75, .fig-formato[data-state="65"] .is-65, .fig-formato[data-state="60"] .is-60 { opacity: 1; }
.fig-keys rect, .fig-keys path { fill: var(--ficha); stroke: var(--pizarra); stroke-width: 1.2; }
.fig-keys .fig-key-accent { fill: var(--luz); stroke: var(--luz-texto); }
.fig-keys > g { opacity: 0; transition: opacity .3s; }
.fig-iso[data-state="iso"] .is-iso, .fig-iso[data-state="ansi"] .is-ansi { opacity: 1; }
.fig-ruler line { stroke: var(--pizarra); stroke-width: 1.5; }
.fig-housing { fill: var(--ficha); stroke: var(--tinta); stroke-width: 2; }
.fig-cap { fill: #fff; stroke: var(--tinta); stroke-width: 2.5; }
.fig-stem-body { fill: var(--pizarra); }
.fig-magnet { fill: var(--luz); }
.fig-sensor { fill: var(--tinta); }
.fig-actuation { translate: 0 calc(64px + var(--activacion) * 1.5px); transition: translate .2s var(--stinger); }
.fig-actuation line { stroke: var(--luz); stroke-width: 2.5; stroke-dasharray: 8 6; }
.fig-bar { fill: var(--ficha); stroke: var(--tinta); stroke-width: 1.5; }
.fig-bar-hot { fill: var(--luz); }
.fig-zoom { fill: none; stroke: var(--pizarra); stroke-width: 1.2; stroke-dasharray: 4 4; }
.fig-tick { stroke: var(--luz); stroke-width: 2.5; }
/* La figura del aviso de guía va sobre fondo oscuro y sin controles. */
.fig.is-teaser { padding: 0; background: transparent; }
.fig.is-teaser .fig-mouse, .fig.is-teaser .fig-housing { fill: var(--acero); stroke: var(--blanco); }
.fig.is-teaser .fig-cap { fill: var(--marino); stroke: var(--blanco); }
.fig.is-teaser .fig-desk { stroke: var(--linea); }
.fig.is-teaser .fig-hand path { stroke: var(--niebla); }
.fig.is-teaser .fig-mouse-line { stroke: var(--blanco); }
.fig.is-teaser .fig-sensor { fill: var(--blanco); }
.fig.is-teaser .fig-ruler line { stroke: var(--niebla); }
.fig.is-teaser .fig-ruler text { fill: var(--niebla); }

@media (min-width: 700px) {
  .guide-teaser { grid-template-columns: 260px minmax(0, 1fr) auto; padding: 20px 28px; }
  .guide-teaser-figure { grid-column: auto; }
  .guide-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
  .guide-section:nth-child(even) .guide-figure { order: 2; }
  .guide-end { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: end; gap: clamp(40px, 6vw, 96px); }
  .page-intro.has-code { padding-bottom: 40px; }
  .guide-text h2 { font-size: 52px; }
}

/* Entrada de las figuras al aparecer en pantalla (app.js añade .is-visible). Con movimiento reducido, quietas. */
@media (prefers-reduced-motion: no-preference) {
  .fig-measure line { stroke-dasharray: 220; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--stinger); }
  .fig:not(.is-visible) .fig-measure line { stroke-dashoffset: 220; }
  .fig-axis, .fig-zoom, .fig-tick { transition: opacity .6s .3s; }
  .fig:not(.is-visible) .fig-zoom, .fig:not(.is-visible) .fig-tick { opacity: 0; }
  .fig-tick { transition-delay: .6s; }
  .fig:not(.is-visible) .fig-axis { opacity: 0; }
  .fig-magnetico.is-visible:not(.is-teaser) .fig-stem { animation: pulsar 1.4s .3s var(--stinger) 1; }
  .fig.is-teaser .fig-stem { animation: pulsar 2.4s 1s var(--stinger) infinite; }
  .fig-agarre.is-teaser .fig-hand { opacity: 0; translate: 0 0; animation: agarres 7.5s infinite; }
  .fig-agarre.is-teaser .is-garra { animation-delay: 2.5s; }
  .fig-agarre.is-teaser .is-punta { animation-delay: 5s; }
}
@keyframes pulsar { 0%, 100% { translate: 0 0; } 40%, 55% { translate: 0 60px; } }
@keyframes agarres { 0%, 30% { opacity: 1; } 36%, 94% { opacity: 0; } 100% { opacity: 1; } }
