/* ───────── Glassitas · subpáginas ─────────
   Papel blanco frío, tinta negra plana y el rojo de marca como único color sólido.
   Hoja autónoma: las subpáginas no cargan styles.css. */

:root {
  --stock: #f3f4f6;
  --plate: #ffffff;
  --ink: #0e0e10;
  --ink-2: #34353b;
  --muted: #62656d;
  --line: rgba(14, 14, 16, .14);
  --line-strong: rgba(14, 14, 16, .9);
  --red: #c95153;
  --red-deep: #a63e40;
  --night: #0e0e10;
  --night-2: #1b1b1f;
  --night-line: rgba(255, 255, 255, .16);

  --f: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --bar: 64px;
  --cut: 6px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0C21.5 12 28 18.5 40 20 28 21.5 21.5 28 20 40 18.5 28 12 21.5 0 20 12 18.5 18.5 12 20 0Z'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14m0 0-6-6m6 6 6-6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink) var(--stock); }
body {
  margin: 0; background: var(--stock); color: var(--ink);
  font-family: var(--f); font-size: 17px; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: #e3e4e8; color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
em, i { font-style: normal; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
section { scroll-margin-top: calc(var(--bar) + 20px); }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tipografía: una sola familia variable en tres anchos */
h1 {
  font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  letter-spacing: -.02em; line-height: .92; font-size: clamp(2.5rem, 6.2vw, 6rem);
}
h2 { font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; line-height: .95; font-size: clamp(1.8rem, 3.6vw, 3.2rem); }
.lab { font-stretch: 75%; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; line-height: 1.2; }
.num { font-variant-numeric: tabular-nums; }
.lead { font-size: clamp(1.05rem, 1.25vw, 1.2rem); color: var(--ink-2); max-width: 46ch; }

/* estrella */
.star { display: inline-block; width: 40px; aspect-ratio: 1; background: currentColor; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.star--ink { background: var(--ink); }

/* ───────── Botones ───────── */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: var(--cut); border: 1px solid transparent;
  font-stretch: 80%; font-weight: 700; font-size: .86rem; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--ease);
}
.b:active { transform: scale(.98); }
.b-ink { background: var(--ink); color: #fff; }
.b-ink:hover { background: var(--red-deep); }
.b-line { border-color: var(--line-strong); }
.b-line:hover { background: var(--ink); color: #fff; }
.b-white { background: #fff; color: var(--ink); }
.b-white:hover { background: var(--stock); }
.b-red { background: var(--red-deep); color: #fff; }
.b-red:hover { background: #8e3437; }
.b-sm { height: 40px; padding: 0 16px; font-size: .78rem; }
.link {
  font-stretch: 80%; font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.link:hover { color: var(--red-deep); border-color: var(--red-deep); }
.night .link { border-color: rgba(255, 255, 255, .6); }

/* ───────── Barra ───────── */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--bar); padding: 0 var(--gutter);
  background: var(--plate); border-bottom: 1px solid var(--line);
}
.bar-logo img { height: 26px; width: auto; }
.bar-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.bar-links > a, .bar-links .menu-top { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; font-stretch: 80%; font-weight: 650; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.bar-links > a::after, .bar-links .menu-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.bar-links > a:hover::after, .bar-links .menu:hover .menu-top::after { transform: scaleX(1); }
.bar-links [aria-current="page"]::after { transform: scaleX(1); background: var(--ink); }
/* desplegables: se abren con hover o con el foco dentro */
.menu { position: relative; }
.menu-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.menu:hover .menu-chev, .menu:focus-within .menu-chev { transform: rotate(180deg); }
.bar-links .menu-sub {
  position: absolute; top: calc(100% + 12px); left: -18px; z-index: 5; min-width: 210px;
  display: flex; flex-direction: column; padding: 8px 0;
  background: var(--plate); border: 1px solid var(--line-strong); border-radius: var(--cut);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .25s var(--ease), visibility .25s;
}
.bar-links .menu-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menu:hover .menu-sub, .menu:focus-within .menu-sub { opacity: 1; visibility: visible; transform: none; }
.bar-links .menu-sub a { padding: 9px 18px; font-size: .92rem; white-space: nowrap; transition: background-color .2s; }
.bar-links .menu-sub a:hover { background: rgba(0, 0, 0, .05); }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.bar-cart { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--cut); transition: background-color .2s, color .2s; }
.bar-cart:hover { background: var(--ink); color: var(--plate); }
.bar-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.bar-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--cut); background: none; position: relative; }
.bar-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.bar-burger span:first-child { top: 16px; }
.bar-burger span:last-child { top: 24px; }
.bar-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.bar-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ───────── Cabecera de página: titular + placa de lámina ───────── */
.top {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: stretch;
  padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px);
}
.top-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.top-copy h1 { max-width: 11ch; }
.top-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.top--text { grid-template-columns: 1fr; }
.top--text h1 { max-width: 16ch; }

.plate {
  position: relative; overflow: hidden; min-height: clamp(320px, 38vw, 560px);
  border-radius: var(--cut); background: var(--stock);
  display: grid; place-items: center;
}
.plate > img { width: 78%; height: auto; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.plate:hover > img { transform: rotate(-3deg) scale(1.03); }
.plate .star { position: absolute; right: 22px; top: 22px; width: 54px; background: var(--ink); }

/* etiqueta de especificaciones, como la pegatina de precio de una montura */
.spec {
  position: absolute; left: 18px; bottom: 18px; z-index: 1;
  min-width: 220px; background: var(--plate); border: 1px solid var(--line-strong); border-radius: 4px;
  font-stretch: 75%; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; font-weight: 600; color: var(--ink);
}
.spec > * { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 12px; }
.spec > * + * { border-top: 1px solid var(--line); }
.spec b { font-stretch: 125%; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.spec .num { font-variant-numeric: tabular-nums; }

/* enlaces de salto bajo el titular */
.jump { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-strong); }
.jump a {
  flex: 1 1 auto; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 0; margin-right: 22px; border-bottom: 1px solid var(--line);
  font-stretch: 80%; font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
  transition: color .2s;
}
.jump a::after { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.jump a:hover { color: var(--red-deep); }

/* ───────── Hoja de producto (catálogo y merch) ───────── */
.strip {
  position: sticky; top: var(--bar); z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding: 12px var(--gutter); background: var(--plate);
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .sizes button {
  height: 38px; padding: 0 16px; border-radius: var(--cut); border: 1px solid var(--line); background: var(--plate);
  font-stretch: 80%; font-weight: 700; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  transition: border-color .2s;
}
.chips button:hover, .sizes button:hover { border-color: var(--line-strong); }
.chips button[aria-pressed="true"], .sizes button[aria-pressed="true"] { background: var(--stock); border-color: var(--line-strong); }
.strip-meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .9rem; }
.strip-meta select {
  height: 38px; padding: 0 34px 0 14px; border-radius: var(--cut); border: 1px solid var(--line); appearance: none; cursor: pointer;
  background: var(--plate) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e10' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  font-size: .88rem; color: var(--ink);
}

/* rejilla sin huecos: las celdas comparten la línea, como una hoja de contactos */
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.sheet--4 { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: flex; flex-direction: column; background: var(--plate); padding: 16px 16px 18px; scroll-margin-top: calc(var(--bar) + 80px); }
.tile[hidden] { display: none; }
.tile-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); min-height: 22px; }
.tag { padding: 4px 8px; border-radius: 3px; background: var(--ink); color: #fff; }
.tag--red { background: var(--red-deep); }
.tag--line { background: var(--plate); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tile-img { position: relative; display: block; margin: 12px 0 16px; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--plate); }
.tile-img img { position: relative; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.tile-img .pad { padding: 6%; }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-img--photo { aspect-ratio: 4 / 5; }
.tile-img--photo img { object-fit: cover; mix-blend-mode: normal; }
.tile h3 { font-stretch: 125%; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.tile-meta { margin-top: 6px; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.tile-spec { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.tile-spec .price { color: var(--ink); font-stretch: 125%; font-weight: 800; font-size: 1.2rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tile-actions { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 16px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sizes button { height: 34px; min-width: 42px; padding: 0 10px; }
.empty { padding: 60px var(--gutter); text-align: center; color: var(--muted); background: var(--plate); }

/* banda negra */
.night { background: var(--night); color: #fff; }
.night .lead { color: rgba(255, 255, 255, .72); }
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair > a { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(36px, 5vw, 72px) var(--gutter); min-height: 320px; transition: background-color .3s; }
.pair > a + a { border-left: 1px solid var(--night-line); }
.pair > a:hover { background: var(--night-2); }
.pair h2 { max-width: 12ch; }
.pair .lead { margin-top: 14px; }
.pair .star { position: absolute; right: var(--gutter); top: clamp(36px, 5vw, 72px); width: 48px; }
.pair .b { align-self: flex-start; }

/* ───────── Tiendas (/gafas, /accesorios, /lentes…): catálogo limpio, como un escaparate ─────────
   Fondo blanco, producto sobre blanco y texto mínimo debajo. */
.page-shop { background: #fff; }
.page-shop .strip { border-top: 0; }
.page-shop .sheet {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(20px, 2.4vw, 40px);
  padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); background: #fff; border-bottom: 0;
}

/* barra lateral de filtros: grupos plegables con casillas, como en una tienda deportiva */
.strip-toggle {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0;
  border: 0; background: none; color: var(--ink); font-weight: 600; font-size: .98rem; cursor: pointer;
}
.strip-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.shop { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); padding: 0 var(--gutter); transition: grid-template-columns .4s var(--ease); }
.shop.is-closed { grid-template-columns: 0 minmax(0, 1fr); gap: 0; }
.shop.is-closed .filters { visibility: hidden; }
.filters {
  position: sticky; top: calc(var(--bar) + 63px); align-self: start;
  max-height: calc(100vh - var(--bar) - 63px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(24px, 3vw, 40px) 20px 40px 0;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.filters::-webkit-scrollbar-track { background: transparent; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; }
.filters-head p { font-weight: 700; font-size: 1.1rem; }
.filters-clear { border: 0; background: none; padding: 0; color: var(--muted); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.filters-clear:hover { color: var(--ink); }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary {
  display: flex; justify-content: space-between; align-items: center; padding: 22px 0;
  font-weight: 600; font-size: 1.05rem; list-style: none; cursor: pointer;
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.fgroup:not([open]) summary svg { transform: rotate(180deg); }
.fgroup-opts { display: grid; gap: 12px; padding: 0 0 26px; }
.fgroup-opts label { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.35; cursor: pointer; }
.fgroup-opts input {
  flex: none; appearance: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--line); border-radius: 4px;
  background: #fff no-repeat center / 14px; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.fgroup-opts label:hover input { border-color: var(--line-strong); }
.fgroup-opts input:checked {
  border-color: var(--ink); background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.fgroup-opts input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* precio en cajas, como las tallas */
.fgroup--box .fgroup-opts { grid-template-columns: 1fr 1fr; gap: 8px; }
.fgroup--box label { position: relative; }
.fgroup--box input { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--cut); background: none; }
.fgroup--box input:checked { background: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fgroup--box span { position: relative; pointer-events: none; width: 100%; padding: 12px 8px; text-align: center; font-size: .88rem; }
.fgroup--box label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.page-shop .tile { padding: 0; background: none; }
.page-shop .tile-img { margin: 0 0 16px; border-radius: 0; background: #fff; isolation: isolate; }
.page-shop .tile-img img { padding: 10%; filter: brightness(1.05) contrast(1.04); }
.page-shop .tile-img .pad { padding: 14%; }
.page-shop .tile:hover .tile-img img { transform: scale(1.04); }

/* esquinas de la foto: colores arriba a la izquierda, carrito arriba a la derecha y
   etiqueta (o «Comprar» al pasar el puntero) abajo en el centro; el favorito va junto al nombre */
.tile-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fav {
  flex: none; margin: -8px -8px -8px 0;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--ink);
}
.fav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transition: transform .3s var(--ease), fill .2s, stroke .2s; }
.fav:hover svg { transform: scale(1.12); }
.fav[aria-pressed="true"] svg { fill: var(--red); stroke: var(--red); }

.tile-cart {
  position: absolute; z-index: 2; top: 8px; right: 8px;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
}
.tile-cart svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.tile-cart:hover svg { transform: scale(1.12); }

.tile-tag, .tile-buy { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; }
.tile-tag {
  margin: 0; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--red-deep); font-weight: 600; font-size: .92rem;
  transition: opacity .3s, transform .4s var(--ease);
}
.tile-buy {
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease), background-color .2s;
}
@media (hover: hover) {
  .tile:hover .tile-buy, .tile:focus-within .tile-buy { opacity: 1; transform: none; pointer-events: auto; }
  .tile:hover .tile-tag, .tile:focus-within .tile-tag { opacity: 0; transform: translateY(-8px); }
}

.page-shop .tile h3 { font-stretch: 100%; font-weight: 600; font-size: 1.05rem; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.page-shop .tile-meta { margin-top: 2px; font-size: .95rem; }
.tile-style { margin-top: 2px; color: var(--muted); font-size: .9rem; }
.page-shop .price { margin-top: 8px; font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
/* productos sin foto (lentes, accesorios): ilustración de línea sobre un fondo suave */
.tile-art { position: absolute; inset: 0; display: grid; place-items: center; background: var(--art-bg, #f4f5f7); transition: transform .7s var(--ease); }
.tile:hover .tile-art { transform: scale(1.03); }
.tile-art svg { width: 58%; height: 58%; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tile-art svg .fill { fill: var(--ink); fill-opacity: .82; }
.art-disc { width: 52%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--ink); box-shadow: 0 24px 40px -18px rgba(14, 14, 16, .35); }
.plate-art { position: relative; inset: auto; width: 78%; aspect-ratio: 1; background: none; }
.page-shop .tile-img .photo { padding: 0; object-fit: cover; mix-blend-mode: normal; filter: none; }
.page-merch .tile-img { aspect-ratio: 4 / 5; }

/* migas de pan */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); font-size: .86rem; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a::after { content: "/"; margin: 0 8px; color: var(--line-strong); opacity: .35; }

/* /colecciones: cada colección con su cabecera y tres pares */
.coll { padding: clamp(48px, 6vw, 88px) 0 0; border-top: 1px solid var(--line); }
.coll + .coll { margin-top: clamp(24px, 3vw, 40px); }
.coll-head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 16px clamp(20px, 3vw, 48px); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.coll-n { font-stretch: 125%; font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .85; color: var(--red); }
.coll-head h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.coll-head .lab { margin-top: 10px; color: var(--muted); }
.coll-txt { color: var(--ink-2); max-width: 48ch; }
.coll-head .link { justify-self: end; white-space: nowrap; }
.page-colecciones .sheet { padding-bottom: clamp(32px, 4vw, 56px); }
.page-colecciones .night { margin-top: clamp(40px, 5vw, 72px); }

/* preguntas frecuentes */
.qa { border-top: 1px solid var(--line-strong); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 650; font-size: 1.08rem; list-style: none; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; font-weight: 400; transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 22px; max-width: 72ch; color: var(--ink-2); }

/* icono de línea en las rejillas informativas */
.ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border: 1px solid var(--ink); border-radius: 50%; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.swatches { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.swatches button {
  display: block; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(14, 14, 16, .14);
}
.swatches button[aria-pressed="true"] { outline: 1.5px solid var(--ink); outline-offset: 2px; }

/* "¿No sabes cuál?" y "Plan a dos" en el rojo de marca */
.page-shop .night { background: var(--red); }
.page-shop .night .lead { color: rgba(255, 255, 255, .88); }
.page-shop .pair > a + a { border-left-color: rgba(255, 255, 255, .28); }
.page-shop .pair > a:hover { background: var(--red-deep); }
.page-shop .pair .b-white:hover { background: var(--ink); color: #fff; }

/* ───────── /test ───────── */
.quiz { background: var(--plate); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); scroll-margin-top: var(--bar); }
.quiz-bar { height: 6px; background: var(--stock); }
.quiz-bar span { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .55s var(--ease); }
.quiz-in { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(36px, 5vw, 64px); }
.quiz-top { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); margin-bottom: clamp(20px, 3vw, 36px); }
.quiz-step h2 { font-size: clamp(1.9rem, 4.4vw, 3.8rem); max-width: 16ch; }
.quiz-help { margin-top: 12px; color: var(--muted); }
.quiz-opts { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(24px, 3.4vw, 40px); }
.qopt { display: grid; align-content: start; gap: 6px; text-align: left; min-height: 150px; padding: 20px 18px 22px; border: 0; background: var(--plate); transition: background-color .2s; }
.qopt:hover { background: var(--stock); }
.qopt[aria-pressed="true"] { background: var(--stock); }
.qopt svg { width: 52px; height: 52px; margin-bottom: 10px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.qopt b { font-stretch: 125%; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: -.01em; }
.qopt small { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.qopt[aria-pressed="true"] small { color: var(--ink-2); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; min-height: 40px; }
.quiz-back { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 0; font-stretch: 80%; font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.quiz-back:hover { color: var(--ink); }
.quiz-back[hidden] { display: none; }
.quiz-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quiz-step { animation: step-in .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }

.res { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.res-face { width: clamp(96px, 10vw, 132px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--stock); border: 1px solid var(--ink); margin-bottom: 22px; }
.res-face svg { width: 56%; height: 56%; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.res-fits { margin-bottom: 12px; color: var(--muted); }
.res h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.res-text { margin-top: 14px; color: var(--ink-2); max-width: 48ch; }
.res-tips { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line-strong); }
.res-tips li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.res-tips .lab { color: var(--muted); padding-top: 4px; }
.res-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; }
.res .sheet { grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.res .tile { padding: 12px 12px 14px; }

/* ───────── /optica ───────── */
.chart {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em;
  min-height: clamp(320px, 38vw, 560px); border-radius: var(--cut); background: var(--plate); border: 1px solid var(--line);
  font-weight: 700; line-height: 1; overflow: hidden; cursor: crosshair;
}
.chart > .row { display: block; font-size: calc(var(--s) * clamp(3.2rem, 7vw, 7rem)); letter-spacing: .16em; padding-left: .16em; filter: blur(calc(var(--b) * 1px)); transition: filter .6s var(--ease); }
.chart:hover > .row, .chart[aria-pressed="true"] > .row { filter: blur(0); }
.chart > .row:nth-child(5) { box-shadow: 0 2px 0 var(--red); }
.chart { width: 100%; padding: 0; color: var(--ink); font-family: var(--f); }
.chart-hint { text-align: left; }
.on-touch { display: none; }
@media (hover: none) { .on-hover { display: none; } .on-touch { display: inline; } }
.chart-hint { position: absolute; left: 16px; right: 70px; bottom: 14px; color: var(--muted); font-size: .85rem; }
.chart .star { position: absolute; right: 18px; top: 18px; width: 36px; }


.lenses { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.lenses--3 { grid-template-columns: repeat(3, 1fr); }
.lenses--3 > :nth-child(4) { padding-left: 0; border-left: 0; }
.lenses > a, .lenses > div { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 26px 0; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.lenses > * + * { padding-left: 22px; border-left: 1px solid var(--line); }
.lenses > a:hover { background: var(--plate); }
.lenses h3 { font-stretch: 125%; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.01em; }
.lenses p { color: var(--muted); font-size: .95rem; }
.lenses .link { align-self: flex-start; margin-top: auto; }
.swatch { width: 52px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink); margin-bottom: 8px; }


.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-strong); }
.facts li { padding: 22px 18px 22px 0; color: var(--muted); font-size: .94rem; }
.facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.facts strong { display: block; color: var(--ink); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: -.01em; }

.block { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.block--tight { padding-top: 0; padding-bottom: clamp(40px, 5vw, 64px); }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); }
.block-head p { color: var(--muted); max-width: 42ch; }

/* /optica: ¿cuándo revisarte? */

/* reserva sobre negro */
.book { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }
.book h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.book .lead { margin-top: 18px; }
.book .star { width: 60px; margin-top: 32px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; color: rgba(255, 255, 255, .7); }
.form input, .form select { height: 52px; padding: 0 14px; border-radius: var(--cut); border: 1px solid var(--night-line); background: var(--night-2); color: #fff; font-size: 1rem; color-scheme: dark; transition: border-color .2s; }
.form input:focus, .form select:focus { outline: none; border-color: #fff; }
.form .is-invalid { border-color: #ff9a9a; }
.form-msg { min-height: 1.4em; color: #ffc9c9; }
.form .fine { color: rgba(255, 255, 255, .55); font-size: .82rem; }
.form .fine a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── /merch ───────── */
.top--night .lead { color: rgba(255, 255, 255, .72); }
.photo-plate { position: relative; overflow: hidden; border-radius: var(--cut); min-height: clamp(300px, 34vw, 520px); }
.photo-plate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ───────── /tyc ───────── */
.lg-mini { display: none; margin-bottom: 18px; border: 1px solid var(--line-strong); border-radius: var(--cut); background: var(--plate); }
.lg-mini summary { padding: 14px 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.lg-mini summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.lg-mini[open] summary::after { content: "−"; }
.lg-mini ol { margin: 0; padding: 4px 16px 14px 34px; border-top: 1px solid var(--line); }
.lg-mini li { padding: 6px 0; font-size: .95rem; }
.lg-mini a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.lg-body { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: clamp(40px, 7vw, 120px); align-items: start; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(90px, 12vw, 150px); border-top: 1px solid var(--line-strong); }
.lg-toc { position: sticky; top: calc(var(--bar) + 24px); max-height: calc(100vh - var(--bar) - 48px); overflow-y: auto; scrollbar-width: none; padding: 4px 0; }
.lg-toc::-webkit-scrollbar { display: none; }
.lg-track { position: relative; border-left: 1px solid var(--line); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; }
.lg-toc a { display: block; padding: 6px 0 6px 16px; font-size: .88rem; line-height: 1.35; color: var(--muted); transition: color .2s; }
.lg-toc a:hover, .lg-toc a.is-active { color: var(--ink); }
.lg-ind { position: absolute; left: -2px; top: 0; width: 3px; height: var(--lg-h, 0); background: var(--ink); transform: translateY(var(--lg-y, 0)); transition: transform .45s var(--ease); }
.lg-content section { scroll-margin-top: calc(var(--bar) + 24px); padding: 22px 0 34px; }
.lg-content h2 { margin: 0 0 16px; font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.lg-content h3 { margin: 24px 0 8px; font-stretch: 80%; font-weight: 700; font-size: .9rem; letter-spacing: .07em; text-transform: uppercase; }
.lg-content p, .lg-content li { font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }
.lg-content p { margin: 0 0 12px; }
.lg-content ul { margin: 4px 0 14px; padding-left: 20px; }
.lg-content li { margin: 0 0 6px; }
.lg-content li::marker { color: var(--red); }
.lg-content strong { font-weight: 700; color: var(--ink); }
.lg-content a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.lg-tldr { margin-bottom: 18px; padding: clamp(22px, 3vw, 34px) !important; background: var(--plate); border: 1px solid var(--line-strong); border-radius: var(--cut); }
.updated { color: var(--muted); }
.tbd { background: rgba(201, 81, 83, .14); color: var(--red-deep); border-radius: 3px; padding: 0 4px; font-weight: 600; }

/* ───────── Pie ───────── */
.foot { background: var(--night); color: #fff; padding: clamp(56px, 8vw, 96px) 0 30px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: 44px; border-bottom: 1px solid var(--night-line); }
.foot-logo { width: min(280px, 60vw); height: auto; filter: invert(1); }
.news { display: grid; gap: 10px; }
.news label { color: rgba(255, 255, 255, .7); font-size: .92rem; }
.news div { display: flex; gap: 8px; flex-wrap: wrap; }
.news input { height: 50px; min-width: 0; flex: 1 1 220px; padding: 0 16px; border-radius: var(--cut); border: 1px solid var(--night-line); background: var(--night-2); color: #fff; }
.news input:focus { outline: none; border-color: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.foot-cols .lab { margin-bottom: 14px; color: rgba(255, 255, 255, .5); }
.foot-cols a { display: block; padding: 5px 0; color: rgba(255, 255, 255, .86); transition: color .2s; }
.foot-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: .82rem; color: rgba(255, 255, 255, .6); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-bottom a:hover { color: #fff; }
.foot-bottom .star { width: 18px; vertical-align: -3px; margin-right: 8px; }

/* ───────── Aviso ───────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 16px); opacity: 0; visibility: hidden;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--cut);
  background: var(--ink); color: #fff; font-stretch: 80%; font-weight: 700; font-size: .84rem; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  transition: opacity .25s, transform .4s var(--ease), visibility 0s linear .4s;
}
.toast::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .4s var(--ease), visibility 0s; }

/* ───────── Cookies (mismo componente que la portada, en este mundo) ───────── */
.cookie-banner {
  position: fixed; left: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 92;
  max-width: 380px; padding: 18px 20px; border-radius: 10px;
  background: var(--night); color: #e8e8ea; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .35s var(--ease), visibility 0s linear .35s;
}
.cookie-banner.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .35s var(--ease), visibility 0s; }
.cookie-banner-title { margin: 0 0 6px; font-stretch: 80%; font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cookie-banner-txt { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; }
.cookie-banner-txt a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; align-items: center; gap: 8px; }
.cookie-banner-actions .cookie-banner-ok, .cookie-banner-actions .cookie-banner-necessary { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
.cookie-banner-gear, .cookie-banner-back { appearance: none; display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border: 1px solid var(--night-line); border-radius: var(--cut); background: transparent; color: #fff; }
.cookie-banner-gear svg, .cookie-banner-back svg { width: 18px; height: 18px; }
.cookie-banner-gear:hover, .cookie-banner-back:hover { border-color: #fff; }
.cookie-banner-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cookie-banner-head .cookie-banner-title { margin: 0; }
.cookie-banner-cats { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.cookie-banner-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.cookie-banner-cat b { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.cookie-banner-cat small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .6); }
.cookie-banner-cat input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 4px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.cookie-banner-cat input::after { content: ""; width: 10px; height: 6px; margin-top: -2px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); transition: transform .15s ease; }
.cookie-banner-cat input:checked { background: #fff; }
.cookie-banner-cat input:checked::after { transform: rotate(-45deg) scale(1); }
.cookie-banner-cat input:disabled { background: #8a8a8e; cursor: default; }
.cookie-banner-necessary, .cookie-banner-ok { appearance: none; border: 0; padding: 10px 14px; border-radius: var(--cut); font-stretch: 80%; font-weight: 700; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.cookie-banner-necessary { background: #e8e8ea; color: var(--ink); }
.cookie-banner-ok { background: #fff; color: var(--ink); }
.cookie-banner-view:not([hidden]) { animation: step-in .25s ease; }
@media (max-width: 480px) { .cookie-banner { max-width: none; right: 14px; } }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .lenses, .sheet--4 { grid-template-columns: repeat(2, 1fr); }
  .page-shop .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop { grid-template-columns: 220px minmax(0, 1fr); }
  .lenses > :nth-child(3) { padding-left: 0; border-left: 0; }
  .lenses--3 { grid-template-columns: repeat(2, 1fr); }
  .lenses--3 > :nth-child(4) { padding-left: 22px; border-left: 1px solid var(--line); }
  .lenses--3 > :nth-child(5) { padding-left: 0; border-left: 0; }
  .coll-head { grid-template-columns: auto minmax(0, 1fr); }
  .coll-txt { grid-column: 1 / -1; }
  .coll-head .link { grid-column: 1 / -1; justify-self: start; }
  .lg-body { grid-template-columns: 1fr; gap: 0; }
  .lg-toc { display: none; }
  .lg-mini { display: block; }
}
@media (max-width: 900px) {
  .bar-links {
    position: fixed; top: var(--bar); left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 6px var(--gutter) 14px; background: var(--plate); border-bottom: 1px solid var(--line-strong);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility .3s;
  }
  .bar-links { align-items: stretch; max-height: calc(100dvh - var(--bar)); overflow-y: auto; }
  .bar-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .bar-links > a, .bar-links .menu-top { display: flex; padding: 15px 0; font-size: 1rem; }
  .bar-links > a, .bar-links .menu { border-bottom: 1px solid var(--line); }
  .bar-links > :last-child { border-bottom: 0; }
  .bar-links > a::after, .bar-links .menu-top::after { display: none; }
  .menu-chev { display: none; }
  .bar-links .menu-sub { position: static; min-width: 0; padding: 0 0 12px; background: none; border: 0; opacity: 1; visibility: inherit; transform: none; transition: none; }
  .bar-links .menu-sub::before { display: none; }
  .bar-links .menu-sub a { padding: 7px 0 7px 16px; font-size: .95rem; }
  .bar-links .menu-sub a:hover { background: none; text-decoration: underline; }
  .bar-burger { display: block; }
  .top { grid-template-columns: 1fr; }
  .top-copy { justify-content: flex-start; }
  .plate, .chart, .photo-plate { min-height: 340px; }
  .pair { grid-template-columns: 1fr; }
  .pair > a + a { border-left: 0; border-top: 1px solid var(--night-line); }
  .page-shop .pair > a + a { border-top-color: rgba(255, 255, 255, .28); }
  /* en móvil y tablet los filtros se despliegan encima del catálogo */
  .shop, .shop.is-closed { display: block; }
  .shop.is-closed .filters { display: none; }
  .filters { position: static; max-height: none; overflow: visible; padding: 8px 0 24px; border-bottom: 1px solid var(--line-strong); }
  .quiz-opts { grid-template-columns: repeat(2, 1fr); }
  .res { grid-template-columns: 1fr; }
  .book, .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .bar-actions .b { display: none; }
  .strip { position: static; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; width: calc(100% + var(--gutter) * 2); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; }
  .chips { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .sizes button { min-width: 0; padding: 0 9px; }
  .sizes { gap: 4px; }
  .sheet, .sheet--4 { grid-template-columns: 1fr 1fr; }
  .tile { padding: 12px 12px 14px; }
  .tile h3 { font-size: .98rem; }
  .tile-spec { flex-direction: column; gap: 4px; }
  .tile-spec .price { font-size: 1.02rem; }
  .tile-actions { flex-wrap: wrap; gap: 10px; }
  .tile-actions .b { width: 100%; }
  .page-shop .sheet { grid-template-columns: 1fr 1fr; gap: 40px 14px; }
  .page-shop .tile h3, .page-shop .tile-meta { font-size: .92rem; }
  .tile-tag { left: 8px; right: 8px; bottom: 8px; font-size: .85rem; }
  .swatches { top: 10px; left: 10px; gap: 6px; }
  .swatches button { width: 14px; height: 14px; }
  .res .sheet { grid-template-columns: 1fr 1fr; }
  .res .sheet > :nth-child(3) { display: none; }
  .res-tips li { grid-template-columns: 1fr; gap: 4px; }
  .lenses { grid-template-columns: 1fr; }
  .lenses > * + *, .lenses--3 > :nth-child(4) { padding-left: 0; border-left: 0; }
  .lenses--3 { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .spec { min-width: 0; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ───────── /lentes: tecnologías de lente como cabecera ───────── */
.top--tech { gap: clamp(28px, 3vw, 44px); }
.top--tech h1 { max-width: none; }

/* ───────── /gafas-ia: escaparate a pantalla completa, un modelo por bloque ───────── */
.show-crumbs { padding-top: 18px; padding-bottom: 18px; }
.show {
  --show-bg: #fff; --show-fg: var(--ink); --show-muted: var(--muted); --show-line: var(--line);
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(56px, 7vw, 104px) var(--gutter) clamp(48px, 6vw, 88px);
  background: var(--show-bg); color: var(--show-fg); overflow: hidden;
}
.show + .show { border-top: 12px solid #fff; }
.show--light { --show-bg: var(--stock); }
.show--dark { --show-bg: #000; --show-fg: #f5f5f7; --show-muted: #a1a1a6; --show-line: rgba(255, 255, 255, .18); }
.show-copy { display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.show-eyebrow { color: var(--red); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.show--dark .show-eyebrow { color: #ff8a8c; }
.show h2 {
  font-stretch: 100%; font-weight: 700; text-transform: none; letter-spacing: -.025em; line-height: 1.05;
  font-size: clamp(2.6rem, 6vw, 5rem);
}
.show-head { margin-top: 8px; font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.01em; line-height: 1.15; }
.show-txt { margin-top: 14px; max-width: 44ch; color: var(--show-muted); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.show-price { margin-top: 14px; font-size: 1rem; }
.show-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; margin-top: 22px; }
.show-buy {
  height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 1rem; font-weight: 500; transition: background-color .2s, transform .3s var(--ease);
}
.show-buy:hover { background: var(--red-deep); }
.show-buy:active { transform: scale(.97); }
.show-more { color: var(--red); font-size: 1rem; }
.show--dark .show-more { color: #ff8a8c; }
.show-more::after { content: " ›"; }
.show-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.show-img { width: min(100%, 820px); margin-top: clamp(24px, 4vw, 48px); }
.show-img img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.show--dark .show-img { background: radial-gradient(closest-side, #f5f5f7 0 45%, rgba(245, 245, 247, .35) 75%, transparent); }
.show:hover .show-img img { transform: scale(1.03); }
.show .show-swatches { position: static; justify-content: center; margin-top: 8px; }
.show--dark .show-swatches button[aria-pressed="true"] { outline-color: #f5f5f7; }
.show-specs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 720px);
  margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; list-style: none;
}
.show-specs li { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.show-specs li + li { border-left: 1px solid var(--show-line); }
.show-specs b { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; }
.show-specs span { color: var(--show-muted); font-size: .9rem; }
.page-ia #como-funcionan { padding-top: clamp(56px, 8vw, 110px); }

/* ───────── /colecciones: cabecera en rojo de marca y un color por colección ───────── */
.top--brand {
  background: var(--red); color: #fff;
  box-shadow: 0 0 0 100vmax var(--red); clip-path: inset(0 -100vmax);
}
.top--brand .lead, .top--brand .crumbs, .top--brand .crumbs a:hover { color: rgba(255, 255, 255, .9); }
.top--brand .crumbs a::after { color: #fff; }
.top--brand .jump { border-top-color: #fff; }
.top--brand .jump a { border-bottom-color: rgba(255, 255, 255, .35); }
.top--brand .jump a:hover { color: var(--ink); }
.page-colecciones .coll { background: var(--coll-bg, #fff); border-top: 0; padding-bottom: clamp(8px, 1vw, 16px); }
.page-colecciones .coll + .coll { margin-top: 0; }
.coll--verde { --coll-bg: #c4e3ca; }
.coll--azul { --coll-bg: #c6dbf3; }
.coll--amarillo { --coll-bg: #f4e3a8; }
.coll--lila { --coll-bg: #dacff0; }
.page-colecciones .coll .sheet { background: transparent; }
.page-colecciones .coll .tile-img { background: transparent; isolation: auto; }
.page-colecciones .coll .coll-head .lab { color: var(--ink-2); }

@media (max-width: 640px) {
  .show-specs li { padding: 0 6px; }
  .show-specs b { font-size: 1.05rem; }
  .show-specs span { font-size: .78rem; }
}

/* ───────── /gafas-especiales: el color de la lente como un halo detrás de la montura ───────── */
.lens-dot {
  position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, var(--lens) 0 38%, color-mix(in srgb, var(--lens) 35%, transparent) 62%, transparent 72%);
  opacity: .8; pointer-events: none;
}
.plate .lens-dot { width: 58%; }
.plate > img, .tile-img .lens-dot ~ img { position: relative; }
.page-especiales .tile-img img { filter: none; }

/* ───────── Cuenta ───────── */
.acct { display: grid; place-items: center; min-height: calc(100svh - var(--bar)); padding-top: clamp(40px, 8vh, 90px); padding-bottom: clamp(40px, 8vh, 90px); }
.acct-card { width: 100%; max-width: 440px; }
.acct-card h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.acct-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 28px; border-bottom: 1px solid var(--line); }
.acct-tabs button { padding: 12px 0; border: 0; background: none; font-stretch: 80%; font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); box-shadow: inset 0 -3px 0 transparent; transition: color .2s, box-shadow .25s; }
.acct-tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.acct-form { display: grid; gap: 16px; margin-top: 26px; }
.acct-field { display: grid; gap: 8px; }
.acct-field[hidden], .acct-forgot[hidden] { display: none; }
.acct-field input { height: 50px; padding: 0 16px; border-radius: var(--cut); border: 1px solid var(--line); background: var(--plate); }
.acct-field input:focus { outline: none; border-color: var(--ink); }
.acct-forgot { justify-self: start; font-size: .88rem; color: var(--muted); border-bottom: 1px solid currentColor; }
.acct-forgot:hover { color: var(--ink); }
.acct-submit { margin-top: 6px; width: 100%; }
.acct-msg { min-height: 1.4em; font-size: .92rem; color: var(--red-deep); }
.acct-perks { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }

/* ───────── /gafas-especiales: cabecera con los tres lentes y su uso ───────── */
.top--guide { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.top--guide .top-copy h1 { max-width: 14ch; }
.top--guide .lead { max-width: 58ch; }
.lens-guide { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.lg-card {
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(22px, 2.4vw, 32px); padding-top: clamp(104px, 9vw, 130px);
  border-radius: var(--cut); background: var(--stock);
  transition: background-color .25s;
}
.lg-card:hover { background: color-mix(in srgb, var(--lens) 14%, var(--stock)); }
/* la lente: un disco de cristal tintado */
.lg-disc {
  position: absolute; right: -5%; top: -26%; width: clamp(150px, 14vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .85) 0 6%, rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle, color-mix(in srgb, var(--lens) 55%, transparent) 0 60%, color-mix(in srgb, var(--lens) 85%, transparent) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9), inset 0 0 22px rgba(255, 255, 255, .45), 0 20px 40px -18px color-mix(in srgb, var(--lens) 80%, #000);
  transition: transform .8s var(--ease);
}
.lg-card:hover .lg-disc { transform: translate(-8px, 8px) rotate(-8deg); }
.lg-when {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--ink); color: #fff;
  font-stretch: 80%; font-weight: 700; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
}
.lg-when svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-card h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-top: 4px; }
.lg-filter { font-weight: 700; }
.lg-text { color: var(--muted); font-size: .95rem; }
.lg-use { list-style: none; margin: 6px 0 14px; padding: 0; border-top: 1px solid var(--line); }
.lg-use li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; display: flex; gap: 10px; align-items: center; }
.lg-use li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lens); flex: none; }
.lg-card .link { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) {
  .lens-guide { grid-template-columns: 1fr; }
  .lg-card { padding-top: clamp(22px, 5vw, 32px); padding-right: 40%; }
  .lg-disc { top: 50%; right: -10%; translate: 0 -50%; width: 46%; }
}
@media (max-width: 520px) {
  .lg-card { padding-right: 22px; padding-top: 100px; }
  .lg-disc { top: -40px; right: -20px; translate: none; width: 140px; }
}

/* ───────── /optica: estructura ligera ───────── */
.page-optica h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.page-optica .top-actions { align-items: center; gap: 18px 22px; }
.op-trust { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-strong); }
.op-trust li { flex: 1 1 0; min-width: 120px; padding: 14px 16px 0 0; color: var(--muted); font-size: .9rem; }
.op-trust li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.op-trust b { display: block; color: var(--ink); font-stretch: 125%; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }

.op-sec { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.op-band { background: var(--plate); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0; }
.op-band + .op-sec { border-top: 0; }
.op-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px 40px; margin-bottom: clamp(24px, 3vw, 40px); }
.op-head p { color: var(--muted); max-width: 46ch; }
.op-head .link { margin-left: 8px; }

.op-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.op-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--cut); background: var(--stock); scroll-margin-top: calc(var(--bar) + 20px); }
.op-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.op-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; }
.op-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.op-price { padding: 6px 12px; border-radius: 999px; background: var(--plate); border: 1px solid var(--line); font-stretch: 80%; font-weight: 700; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
.op-card h3 { font-stretch: 125%; font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: -.01em; }
.op-card > p { color: var(--muted); }
.op-card ul { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 8px; }
.op-card li { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.op-card li svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.op-card .link { align-self: flex-start; margin-top: auto; }

.op-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.op-steps li { position: relative; padding-top: 64px; }
/* línea que une los pasos */
.op-steps li::before { content: ""; position: absolute; left: 0; right: -24px; top: 22px; height: 1px; background: var(--line-strong); }
.op-steps li:last-child::before { right: 0; background: linear-gradient(90deg, var(--line-strong), transparent); }
.op-n { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-stretch: 125%; font-weight: 800; font-size: 1.1rem; }
.op-steps h3 { font-stretch: 125%; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 6px; }
.op-steps p { color: var(--muted); font-size: .95rem; max-width: 26ch; }

.op-when { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 24px clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: var(--cut); background: var(--ink); color: #fff; }
.op-when p { margin-top: 10px; color: rgba(255, 255, 255, .7); }
.op-when ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.op-when li { padding: 12px 14px; border: 1px solid var(--night-line); border-radius: var(--cut); font-size: .95rem; }
.op-when .b-ink { background: #fff; color: var(--ink); }
.op-when .b-ink:hover { background: var(--stock); }

.op-lenses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line-strong); }
.op-lenses a { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.op-lenses a:hover { background: var(--plate); }
.op-lenses .swatch { flex: none; width: 40px; margin: 0; }
.op-lens-txt { display: grid; flex: 1; }
.op-lens-txt b { font-weight: 700; }
.op-lens-txt span { color: var(--muted); font-size: .9rem; }
.op-lens-price { font-stretch: 80%; font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }

.op-faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.op-faq .op-head { flex-direction: column; align-items: flex-start; }

@media (max-width: 900px) {
  .op-cards, .op-faq { grid-template-columns: 1fr; }
  .op-steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .op-steps li:nth-child(2)::before { right: 0; }
  .op-when { grid-template-columns: 1fr; }
  .op-when .b { justify-self: start; }
  .op-lenses { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .op-steps { grid-template-columns: 1fr; }
  .op-steps li { padding: 0 0 0 64px; min-height: 44px; }
  .op-steps li::before { left: 22px; right: auto; top: 44px; bottom: -32px; width: 1px; height: auto; }
  .op-steps li:last-child::before { display: none; }
  .op-when ul { grid-template-columns: 1fr; }
  .op-trust b { font-size: 1.15rem; }
}
