/* ─────────────────────────────────────────────
   Óptica La Unión — «El escaparate de noche»
   ───────────────────────────────────────────── */

@font-face { font-family: "Roboto"; font-weight: 300; font-style: normal; font-display: swap; src: url("../assets/fonts/roboto-light.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 300; font-style: italic; font-display: swap; src: url("../assets/fonts/roboto-light-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/roboto-regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/roboto-medium.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/roboto-bold.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 900; font-style: normal; font-display: swap; src: url("../assets/fonts/roboto-black.woff2") format("woff2"); }
@font-face { font-family: "Just Another Hand"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/just-another-hand.woff2") format("woff2"); }

:root {
  --calle: #111111;          /* la calle, más oscura que el cristal */
  --cristal: #1a1a1a;        /* gris de marca: el cristal del escaparate */
  --cristal-2: #222222;
  --luz: #ffffff;            /* panel retroiluminado / vinilo */
  --luz-70: rgba(255,255,255,.72);
  --luz-50: rgba(255,255,255,.5);
  --luz-12: rgba(255,255,255,.12);
  --luz-06: rgba(255,255,255,.06);
  --ambar: #f2a900;          /* la luz cálida: neón, rotulador, botón */
  --ambar-claro: #ffc93c;
  --ambar-oscuro: #9a6600;    /* ámbar legible sobre panel blanco (4.9:1) */
  --tinta: #1a1a1a;          /* texto sobre panel blanco */
  --tinta-60: #5c5c5c;
  --rojo: #c8102e;

  --fuente: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mano: "Just Another Hand", "Bradley Hand", "Comic Sans MS", cursive;

  --ancho: 1240px;
  --margen: clamp(1.25rem, 4vw, 3.5rem);
  --radio: 6px;

  --suave: cubic-bezier(.2,.8,.2,1);
  --entrada: .9s var(--suave);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--calle);
  color: var(--luz);
  font-family: var(--fuente);
  font-weight: 400;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--ambar); color: var(--tinta); font-weight: 700; border-radius: var(--radio); }
.skip:focus { top: 1rem; }

/* ───────── Botones: luz encendida vs. vinilo ───────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--suave), box-shadow .35s var(--suave), background-color .35s var(--suave), color .35s var(--suave);
}
.btn-ambar {
  background: var(--ambar); color: var(--tinta);
  box-shadow: 0 6px 24px -6px rgba(242,169,0,.55), 0 1px 0 rgba(255,255,255,.35) inset;
}
.btn-ambar:hover { background: var(--ambar-claro); transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(242,169,0,.7), 0 1px 0 rgba(255,255,255,.4) inset; }
.btn-ambar:active { transform: translateY(0); }
.btn-vinilo { border: 1.5px solid var(--luz-50); color: var(--luz); }
.btn-vinilo:hover { border-color: var(--luz); background: var(--luz-06); transform: translateY(-2px); }
.btn-grande { padding: 1.05rem 1.7rem; font-size: 1.08rem; }

/* ───────── Notas a rotulador ───────── */
.nota {
  font-family: var(--mano);
  font-size: 1.85rem; line-height: 1;
  color: var(--ambar);
  letter-spacing: .01em;
}

/* ───────── Rótulo (cabecera) ───────── */
.rotulo {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem var(--margen);
  background: rgba(17,17,17,.92);
  border-bottom: 1px solid var(--luz-06);
}
.marca { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--luz); margin-right: auto; }
.marca-gafas { width: 3.2rem; height: auto; }
.marca-texto { display: inline-flex; gap: .35em; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.marca-optica { font-weight: 300; }
.marca-union { font-weight: 900; }
.rotulo .marca { text-shadow: 0 0 22px rgba(255,255,255,.28); }
.vinilo-nav { display: flex; gap: 1.6rem; }
.vinilo-nav a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 500;
  color: var(--luz-70); padding: .4rem 0; position: relative;
}
.vinilo-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--ambar); transition: right .35s var(--suave); }
.vinilo-nav a:hover { color: var(--luz); }
.vinilo-nav a:hover::after { right: 0; }
.btn-cabecera { padding: .6rem 1.1rem; font-size: .92rem; }

/* ───────── Escaparate (hero) ───────── */
.escaparate {
  position: relative; isolation: isolate;
  min-height: calc(100svh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr auto;
  gap: 0 2rem;
  padding: clamp(2rem, 5vw, 4.5rem) var(--margen) 1.5rem;
  background:
    radial-gradient(120% 80% at 70% 20%, #262626 0%, var(--cristal) 45%, var(--calle) 100%);
  overflow: hidden;
}
/* El cristal: dos bandas de reflejo con borde definido, como una luna de escaparate */
.cristal {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(112deg,
      transparent 39%, rgba(255,255,255,.10) 39.3%, rgba(255,255,255,.10) 45.5%, transparent 45.8%,
      transparent 48.2%, rgba(255,255,255,.055) 48.5%, rgba(255,255,255,.055) 56%, transparent 56.3%),
    linear-gradient(180deg, transparent 80%, rgba(0,0,0,.35) 100%);
}
.escaparate-titular { grid-column: 1; grid-row: 1; align-self: end; max-width: 40rem; position: relative; }
.escaparate-cuerpo { grid-column: 1; grid-row: 2; align-self: start; max-width: 40rem; }
.solo-estrecho { display: none; }
.titular {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: .96; letter-spacing: -.02em;
  text-shadow: 0 0 40px rgba(255,255,255,.12);
}
.titular .punto { color: var(--ambar); }
.nota-titular { position: relative; display: inline-flex; align-items: flex-end; gap: .2rem; margin: .6rem 0 0 .3rem; transform: rotate(-3deg); }
.nota-flecha { width: 3rem; height: 2rem; margin-bottom: .3rem; }
.entradilla { margin-top: 1.6rem; max-width: 34rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); font-weight: 300; color: var(--luz-70); line-height: 1.5; }
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* La vitrina: montura 3D sobre repisa iluminada */
.vitrina { grid-column: 2; grid-row: 1 / 3; position: relative; align-self: center; min-height: 26rem; display: grid; place-items: center; }
.escena {
  position: relative; width: min(100%, 34rem);
  perspective: 1400px; perspective-origin: 50% 40%;
  padding-bottom: 3.5rem;
}
.gafas3d {
  --w: 100%;
  position: relative; width: var(--w); aspect-ratio: 400 / 140;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-22deg);
  will-change: transform;
}
.gafas3d .frente, .gafas3d .frente-espesor { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gafas3d .frente { filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.gafas3d .frente-espesor { transform: translateZ(-8px); }
.patilla {
  position: absolute; top: 24%; width: 42%; height: 28.5%;
  overflow: visible;
}
.patilla-izq { left: 2.5%; transform-origin: 0 50%; transform: rotateY(90deg); }
.patilla-der { right: 2.5%; transform-origin: 100% 50%; transform: rotateY(-90deg); }
.sombra {
  position: absolute; left: 50%; bottom: 2.6rem; width: 70%; height: 1.6rem;
  transform: translateX(-50%) scaleX(.85);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.7), transparent 70%);
  filter: blur(6px);
  transform-origin: center;
}
.repisa {
  position: absolute; left: 4%; right: 4%; bottom: 2.3rem; height: 5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9) 20%, #fff 50%, rgba(255,255,255,.9) 80%, transparent);
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(255,255,255,.35), 0 12px 40px rgba(255,255,255,.12), 0 -60px 120px -30px rgba(255,255,255,.08);
}
.repisa::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 5px; height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.nota-vitrina { position: absolute; right: 6%; bottom: -.4rem; transform: rotate(-4deg); font-size: 1.6rem; opacity: .9; }

.fondo-montura { position: absolute; width: 38%; opacity: .34; filter: blur(.5px); pointer-events: none; padding-bottom: 1.2rem; }
.fondo-montura svg { position: relative; z-index: 2; }
.mini-repisa { position: absolute; left: 6%; right: 6%; bottom: .5rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8) 25%, #fff 50%, rgba(255,255,255,.8) 75%, transparent);
  box-shadow: 0 0 10px rgba(255,255,255,.35); }
.mini-sombra { position: absolute; left: 18%; right: 18%; bottom: .6rem; height: .8rem; filter: blur(4px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.7), transparent 70%); }
.fm-a { left: -4%; top: 6%; animation: flotar 9s ease-in-out infinite; }
.fm-b { right: -6%; top: 2%; width: 44%; animation: flotar 11s ease-in-out infinite reverse; animation-delay: -4s; }
@keyframes flotar { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

/* Monturas SVG: grosor por clase, color por --c */
.rim > use, .rim > path { stroke: var(--c); stroke-linejoin: round; stroke-linecap: round; }
.rim-thick > use, .rim-thick > path { stroke-width: 11; }
.rim-thick > path { stroke-width: 9; fill: none; }
.rim-thin > use, .rim-thin > path { stroke-width: 4.5; }
.rim-thin > path { fill: none; }
.rim-hero > use { stroke-width: 12; }
.rim-hero > path { stroke-width: 9; fill: none; }
.rim-clip > use { stroke-width: 6; }
.rim-clip > path { stroke-width: 7; fill: none; }
.rim .brillo { stroke: rgba(255,255,255,.55) !important; stroke-width: 4 !important; fill: none; }
.rim-cristal > use { stroke-width: 9; }
.rim > use[href="#bridge-key"] { fill: none; stroke-width: 9; }
.rim-kid > use { stroke-width: 15; }
.rim-kid > use[href="#bridge-kid"] { stroke-width: 13; fill: none; }
.rim-avi > use[href="#bridge-avi"] { stroke-width: 4.5; fill: none; }
.rim-avi > use[href="#pads-avi"] { stroke-width: 2.5; fill: rgba(255,255,255,.35); stroke: rgba(212,180,90,.9); }
.rim-avi .brillo { stroke: rgba(255,255,255,.28) !important; stroke-width: 3 !important; }
.rim > use[href="#shield"] { stroke-width: 4; }
.rim-prot > use[href="#lens-prot"] { stroke-width: 13; }
.rim-prot > use[href="#shield"] { stroke-width: 5; }
.rim-prot > use[href="#bridge-thick"] { stroke-width: 10; fill: none; }
.rim-ceja > use { stroke-width: 12; fill: none; stroke-linecap: round; }
.rim-sport > use[href="#lens-shield"] { stroke: rgba(255,255,255,.35); stroke-width: 2.5; }
.rim-sport > use[href="#brow-sport"] { stroke-width: 14; fill: none; }
.halo > use[href="#brow-sport"] { stroke-width: 17; }
.rim-sport .brillo { stroke: rgba(255,255,255,.5) !important; }
.halo > use[href="#bridge-key"] { stroke-width: 12; }
.halo > use { fill: none; stroke: rgba(255,255,255,.34); stroke-width: 14.5; stroke-linejoin: round; stroke-linecap: round; }
.halo > use[href="#bridge-thick"] { stroke-width: 11.5; }
.montura .halo > use { stroke: rgba(255,255,255,.22); stroke-width: 13.5; }
.montura .halo > use[href="#bridge-thick"] { stroke-width: 10.5; }
.rim > use[href^="#bridge"] { fill: none; }
.rim > use[href="#bridge-rnd"] { stroke-width: 4.5; }

/* Pie del escaparate: neón + dirección */
.pie-escaparate {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 -1px 0 rgba(0,0,0,.6), 0 -14px 24px -18px rgba(255,255,255,.18);
}
.neon { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.neon-palabra {
  font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 1.35rem;
  color: var(--ambar-claro);
  text-shadow: 0 0 6px rgba(255,201,60,.9), 0 0 18px rgba(242,169,0,.75), 0 0 42px rgba(242,169,0,.45);
  animation: encender 1.6s steps(1) 1;
}
.neon.apagado .neon-palabra { color: #6b6b6b; text-shadow: 0 0 1px rgba(255,255,255,.15); animation: none; }
.neon-sub { font-size: .95rem; color: var(--luz-70); font-weight: 300; }
.neon.apagado .neon-sub { color: var(--ambar); }
@keyframes encender {
  0%,8% { opacity: .2; } 10% { opacity: 1; } 14% { opacity: .35; } 22% { opacity: 1; } 27% { opacity: .5; } 31%,100% { opacity: 1; }
}
.direccion-vinilo { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--luz-70); }
.direccion-vinilo .ico { color: var(--ambar); }

/* ───────── Secciones ───────── */
section { padding: clamp(4rem, 8vw, 7.5rem) var(--margen); }
.cabecera-seccion { max-width: var(--ancho); margin: 0 auto 2.75rem; }
.titulo-seccion {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.015em;
  font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1;
}
.subtitulo { margin-top: .9rem; max-width: 42rem; font-weight: 300; font-size: 1.15rem; color: var(--luz-70); }

/* ───────── Servicios: paneles retroiluminados ───────── */
.servicios { background: var(--cristal); border-top: 1px solid var(--luz-06); }
.paneles {
  max-width: var(--ancho); margin: 0 auto;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(15rem, auto);
}
.panel {
  position: relative; overflow: hidden;
  padding: 1.6rem 1.6rem 1.5rem;
  background: var(--luz); color: var(--tinta);
  border-radius: var(--radio);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 30px 60px -30px rgba(255,255,255,.18), 0 0 80px -20px rgba(255,255,255,.12);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem;
  filter: brightness(.12);
}
.panel.encendido { animation: tubo .9s steps(1, end) forwards; animation-delay: calc(var(--i) * 110ms); }
/* Un fluorescente que arranca: dos parpadeos y luz fija */
@keyframes tubo {
  0% { filter: brightness(.12); } 12% { filter: brightness(1); } 20% { filter: brightness(.25); }
  34% { filter: brightness(1); } 42% { filter: brightness(.55); } 55%, 100% { filter: brightness(1); }
}
.panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(255,255,255,1), rgba(240,240,240,.0) 70%); pointer-events: none; }
.panel > * { position: relative; }
.panel h3 { font-weight: 900; font-size: 1.35rem; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; }
.panel p { color: var(--tinta-60); font-size: 1rem; line-height: 1.45; max-width: 30rem; }
.panel .nota { font-family: var(--mano); font-size: 1.5rem; line-height: 1; color: var(--ambar-oscuro); max-width: none; }
.panel-montura { width: min(100%, 15rem); margin-bottom: auto; position: relative; padding-bottom: 1.1rem; }
.panel-montura svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 12px rgba(0,0,0,.16)); }
/* Repisa dentro del panel: la montura apoya en una balda */
.panel-montura::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: .35rem; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,26,26,.55) 20%, rgba(26,26,26,.7) 50%, rgba(26,26,26,.55) 80%, transparent);
  box-shadow: 0 6px 10px -4px rgba(0,0,0,.25); }
.panel-montura.lentilla::after { display: none; }
.panel-montura.lentilla { width: 7rem; }
.panel { grid-column: span 2; }
.panel-evaluacion { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2.5rem; align-items: start; justify-content: start; }
.panel-evaluacion .panel-texto { display: grid; gap: .5rem; align-self: center; }
.panel-evaluacion .panel-texto h3 { font-size: 1.6rem; }
.panel-proteccion, .panel-deporte { grid-column: span 3; }
.panel-montura.bisagra { width: 7.5rem; }
.nota-panel { position: absolute; right: 1.2rem; top: 1rem; transform: rotate(-6deg); }

/* Clip 2 en 1: se abate sobre la montura */
.clip-demo { position: relative; }
.clip-demo .clip {
  position: absolute; inset: 0;
  transform-origin: 50% 18%;
  transform: perspective(700px) rotateX(-96deg) translateY(-6%);
  opacity: 0;
  transition: transform .8s var(--suave), opacity .5s var(--suave);
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.35));
}
.panel-sol:hover .clip, .panel-sol:focus-within .clip, .clip-demo.puesto .clip,
.montura:hover .clip { transform: perspective(700px) rotateX(0) translateY(0); opacity: 1; }

/* Juego «¿1 o 2?» */
.prueba { margin-top: .6rem; display: grid; grid-template-columns: 1fr auto; gap: .6rem 1.4rem; align-items: center; }
.prueba-pregunta { grid-column: 1 / -1; color: var(--tinta) !important; font-weight: 500; font-size: 1.05rem !important; }
.prueba-btn {
  display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; margin: 0 .15rem;
  border: 2px solid var(--tinta); border-radius: 50%; background: transparent;
  font-weight: 900; cursor: pointer; vertical-align: middle;
  transition: background-color .25s var(--suave), color .25s var(--suave), transform .25s var(--suave);
}
.prueba-btn:hover { transform: scale(1.08); }
.prueba-btn[aria-pressed="true"] { background: var(--tinta); color: var(--luz); }
.optotipo {
  grid-column: 1 / -1;
  display: grid; gap: .25rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: .14em; color: var(--tinta);
  filter: blur(2.2px);
  transition: filter .55s var(--suave);
  padding: .8rem 0 .2rem;
  border-top: 1px solid rgba(0,0,0,.12);
}
.optotipo span { display: block; line-height: 1.1; }
.optotipo span:nth-child(1) { font-size: 2.4rem; }
.optotipo span:nth-child(2) { font-size: 1.6rem; }
.optotipo span:nth-child(3) { font-size: 1.1rem; }
.optotipo span:nth-child(4) { font-size: .8rem; }
.prueba[data-estado="1"] .optotipo { filter: blur(4.5px); }
.prueba[data-estado="2"] .optotipo { filter: blur(0); }
.panel .prueba-respuesta { grid-column: 1 / -1; font-family: var(--mano); font-size: 1.6rem; line-height: 1; color: var(--ambar-oscuro); min-height: 1.6rem; }

/* ───────── Expositor ───────── */
.expositor { background: linear-gradient(180deg, var(--cristal), var(--calle)); }
.filtros { max-width: var(--ancho); margin: -1rem auto 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.filtro {
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--luz-12); background: transparent; color: var(--luz-70);
  font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  transition: border-color .3s var(--suave), color .3s var(--suave), background-color .3s var(--suave), box-shadow .3s var(--suave);
}
.filtro:hover { border-color: var(--luz-50); color: var(--luz); }
.filtro.activo { background: var(--ambar); border-color: var(--ambar); color: var(--tinta); box-shadow: 0 0 24px -4px rgba(242,169,0,.6); }
.repisas {
  max-width: var(--ancho); margin: 0 auto;
  display: grid; gap: 2.5rem 1.5rem;
  grid-template-columns: repeat(4, 1fr);
}
.montura {
  position: relative; padding: 2rem 1rem 3.2rem;
  filter: brightness(.1);
  transition: opacity .6s var(--suave);
}
.montura.encendido { animation: tubo .8s steps(1, end) forwards; }
.montura:nth-child(4n+2).encendido { animation-delay: 90ms; }
.montura:nth-child(4n+3).encendido { animation-delay: 180ms; }
.montura:nth-child(4n+4).encendido { animation-delay: 270ms; }
.montura.apagado { opacity: .22; }
.montura.apagado:hover { opacity: .5; }
.montura::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; bottom: 2.4rem; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 65% at 50% 70%, rgba(255,255,255,.13), rgba(255,255,255,.04) 55%, transparent 75%);
  transition: opacity .6s var(--suave);
}
.montura.apagado::before { opacity: .3; }
.montura-svg { position: relative; z-index: 2; transform-style: preserve-3d; transition: transform .5s var(--suave); will-change: transform; }
.montura-svg svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 16px 18px rgba(0,0,0,.5)); }
.montura:hover .montura-svg { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
.montura-repisa {
  position: absolute; left: 8%; right: 8%; bottom: 2.6rem; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85) 25%, #fff 50%, rgba(255,255,255,.85) 75%, transparent);
  box-shadow: 0 0 14px rgba(255,255,255,.3), 0 10px 30px rgba(255,255,255,.08);
}
.montura-sombra {
  position: absolute; left: 20%; right: 20%; bottom: 2.75rem; height: 1rem;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.75), transparent 70%); filter: blur(5px);
  transition: transform .5s var(--suave), opacity .5s var(--suave);
}
.montura:hover .montura-sombra { transform: scaleX(.85); opacity: .7; }
.montura-nombre { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--luz-70); font-weight: 500; }
.nota-montura { position: absolute; right: 6%; top: .2rem; transform: rotate(-8deg); font-size: 1.6rem; }
.expositor-pie { max-width: var(--ancho); margin: 3rem auto 0; color: var(--luz-70); font-weight: 300; font-size: 1.1rem; }
.expositor-pie a { color: var(--ambar); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ───────── Opiniones: vinilos en el cristal ───────── */
.opiniones { background: var(--cristal); position: relative; overflow: hidden; }
.opiniones::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg,
    transparent 56%, rgba(255,255,255,.07) 56.3%, rgba(255,255,255,.07) 61%, transparent 61.3%,
    transparent 63.5%, rgba(255,255,255,.04) 63.8%, rgba(255,255,255,.04) 70%, transparent 70.3%);
}
.nota-google { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: 1.7rem; }
.estrellas { display: inline-flex; gap: .1rem; }
.estrellas svg { width: 1.1rem; height: 1.1rem; }
.vinilos {
  max-width: var(--ancho); margin: 0 auto;
  display: grid; gap: 2.2rem 3rem;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}
.vinilo blockquote { margin: 0; font-weight: 300; line-height: 1.22; letter-spacing: -.005em; }
.v-grande { grid-column: 1 / span 8; }
.v-grande blockquote { font-size: clamp(1.7rem, 3.4vw, 2.9rem); font-weight: 300; }
.v-medio { grid-column: span 6; }
.v-medio blockquote { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
.v-peq { grid-column: span 4; }
.v-peq blockquote { font-size: 1.15rem; color: var(--luz-70); }
.vinilo:nth-child(2) { grid-column: 9 / span 4; align-self: end; }
.vinilo:nth-child(3) { grid-column: 1 / span 5; }
.vinilo:nth-child(4) { grid-column: 7 / span 3; }
.vinilo:nth-child(5) { grid-column: 10 / span 3; }
.opiniones-fuente { max-width: var(--ancho); margin: 2.5rem auto 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--luz-50); }

/* ───────── Visita: neón grande, horario, mapa ───────── */
.visita {
  max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem 4rem; align-items: start;
}
.neon-grande { flex-direction: column; align-items: flex-start; gap: .4rem; margin-bottom: 1.6rem; }
.neon-grande .neon-palabra { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: .14em; }
.neon-grande .neon-sub { font-size: 1.1rem; }
.datos { font-style: normal; margin-top: 1.4rem; display: grid; gap: .8rem; }
.datos-dir { font-size: 1.2rem; font-weight: 300; line-height: 1.4; }
.datos-dir strong { font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: -.01em; }
.datos-acceso { display: inline-flex; align-items: center; gap: .6rem; color: var(--luz-70); font-size: .95rem; }
.datos-acceso .ico { color: var(--ambar); }
.visita .acciones { margin-top: 1.6rem; }
.visita-horario { position: relative; padding-top: .5rem; }
.horario { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.horario th, .horario td { padding: .75rem .4rem; border-bottom: 1px solid var(--luz-12); text-align: left; font-weight: 400; }
.horario th { font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--luz-70); width: 34%; }
.horario td { font-weight: 300; font-size: 1.05rem; }
.horario td.cerrado { color: var(--luz-50); font-style: italic; }
.horario tr.hoy th, .horario tr.hoy td { color: var(--ambar); font-weight: 500; }
.horario tr.hoy th { color: var(--ambar); }
.nota-horario { position: absolute; left: -3.2rem; top: 0; transform: rotate(-12deg); display: none; }
.nota-horario.visible { display: block; }
.mapa { grid-column: 1 / -1; margin-top: 1rem; border-radius: var(--radio); overflow: hidden; box-shadow: 0 0 0 1px var(--luz-12); aspect-ratio: 16 / 6; background: var(--cristal-2); }
.mapa iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.35) brightness(.9); }
.mapa-aviso { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; background: radial-gradient(60% 60% at 50% 40%, #2a2a2a, var(--cristal-2)); }
.mapa-aviso p { max-width: 28rem; color: var(--luz-70); font-weight: 300; }
.mapa-aviso .btn + .btn { margin-top: -.4rem; }
.pie-copy a { color: inherit; text-decoration: underline; text-decoration-color: var(--luz-50); text-underline-offset: 3px; }
.pie-copy a:hover { color: var(--luz); }

/* ───────── Pie ───────── */
.pie { padding: 3.5rem var(--margen) 5.5rem; border-top: 1px solid var(--luz-06); display: grid; gap: 1rem; justify-items: start; max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto; }
.pie-marca { display: flex; align-items: center; gap: .7rem; }
.pie .marca-gafas { width: 2.6rem; }
.pie .marca-texto { font-size: 1.1rem; }
.pie-datos { color: var(--luz-70); font-weight: 300; }
.pie-datos a { color: var(--luz); text-decoration: underline; text-decoration-color: var(--ambar); text-underline-offset: 3px; }
.pie-ig { display: inline-flex; align-items: center; gap: .5rem; color: var(--luz); text-decoration: none; font-weight: 500; }
.pie-ig:hover { color: var(--ambar); }
.pie-copy { font-size: .8rem; color: var(--luz-50); }

.wa-flotante {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: none; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: var(--ambar); color: var(--tinta);
  box-shadow: 0 10px 30px -6px rgba(242,169,0,.7);
}
.wa-flotante .ico { width: 1.7rem; height: 1.7rem; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .repisas { grid-template-columns: repeat(3, 1fr); }
  .paneles { grid-template-columns: repeat(6, 1fr); }
  .panel { grid-column: span 3; }
  .panel-evaluacion { grid-column: span 6; }
}
@media (max-width: 900px) {
  .vinilo-nav { display: none; }
  .escaparate { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; min-height: auto; padding-top: 2rem; }
  .escaparate-titular, .escaparate-cuerpo, .vitrina, .pie-escaparate { grid-column: 1; grid-row: auto; }
  .escaparate-titular { order: 1; }
  .vitrina { order: 2; min-height: 0; margin: 1.2rem 0 .4rem; }
  .escena { width: min(100%, 22rem); padding-bottom: 3rem; }
  .fondo-montura { width: 34%; }
  .escaparate-cuerpo { order: 3; }
  .entradilla { margin-top: .6rem; }
  .pie-escaparate { order: 4; margin-top: 1.4rem; }
  .visita { grid-template-columns: 1fr; gap: 2rem; }
  .vinilos { gap: 1.6rem; }
  .v-grande, .v-medio, .v-peq, .vinilo:nth-child(n) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .marca-texto { font-size: 1.05rem; }
  .marca-gafas { width: 2.6rem; }
  .btn-cabecera span { display: none; }
  .btn-cabecera { padding: .6rem .8rem; }
  .titular { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .nota-titular { margin-top: .3rem; font-size: 1.6rem; }
  .entradilla { font-size: 1rem; }
  .acciones { margin-top: 1.2rem; flex-wrap: nowrap; }
  .acciones .btn { flex: 1 1 0; justify-content: center; padding-inline: .8rem; }
  .btn-grande { font-size: 1rem; }
  .solo-ancho { display: none; } .solo-estrecho { display: inline; }
  .vitrina { margin: .6rem 0 0; }
  .escena { width: min(100%, 19rem); padding-bottom: 2.6rem; }
  .fondo-montura { display: none; }
  .nota-vitrina { display: none; }
  .pie-escaparate { margin-top: 1rem; padding-top: .9rem; }
  .neon-palabra { font-size: 1.15rem; }
  .repisas { grid-template-columns: repeat(2, 1fr); gap: 1.6rem .8rem; }
  .montura { padding: 1.6rem .4rem 2.8rem; }
  .paneles { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .panel, .panel-evaluacion { grid-column: 1 / -1; }
  .panel-evaluacion { grid-template-columns: 1fr; }
  .panel-evaluacion .panel-texto h3 { font-size: 1.35rem; }
  .prueba { grid-template-columns: 1fr; }
  .nota-horario { display: none !important; }
  .mapa { aspect-ratio: 4 / 3; }
  .wa-flotante { display: grid; }
  .pie { padding-bottom: 6.5rem; }
}

/* ───────── Movimiento reducido ───────── */
@media (hover: none) { .nota-vitrina { display: none; } .nota-panel { display: none; } }
/* Solo para capturas automáticas: ?shot quita la altura mínima del hero */
.shot .escaparate { min-height: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .neon-palabra, .fondo-montura { animation: none; }
  .panel, .montura { filter: none; animation: none !important; }
  .gafas3d { transform: rotateX(6deg) rotateY(-22deg) !important; }
  .clip-demo .clip { transition: none; }
  .btn, .montura-svg { transition: none; }
}
