/* =============================================================
   Óptica Lucía — hoja de estilo única
   1. Tokens · 2. Reset · 3. Utilidades · 4. Componentes
   5. Portada y lente · 6. Secciones · 7. Responsive · 8. Movimiento
   ============================================================= */

/* ================= 1. TOKENS ================= */
:root {
  /* Colores tomados de su rótulo (verde), su mobiliario (oliva) y su calle. */
  --bg:       #F5F8F4;
  --bg-2:     #E8F0E8;
  --bg-3:     #DCE8DD;
  --blanco:   #FFFFFF;

  --verde:    #14875A;
  --verde-2:  #0E6844;
  --verde-3:  #E4F1E9;
  --oliva:    #7D9A4E;
  --mar:      #1B7FA8;
  --sol:      #E4A03A;

  --tinta:    #13251C;
  --tinta-2:  #41564A;
  --suave:    #7B8F81;

  --cristal:  rgba(255, 255, 255, .55);
  --linea:    rgba(19, 37, 28, .11);
  --linea-2:  rgba(19, 37, 28, .06);

  --display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --texto:   "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --salida:  cubic-bezier(0.16, 1, 0.3, 1);
  --suavidad: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --ancho: 1200px;
  --marg: clamp(1.15rem, 4vw, 2.6rem);
  --nav-h: 68px;
}

/* ================= 2. RESET ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--bg);
  overflow-x: clip;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }

::selection { background: var(--verde); color: #fff; }

:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -120px; left: 1rem; z-index: 9999;
  padding: .65rem 1.1rem; background: var(--verde); color: #fff;
  border-radius: 10px; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

/* ================= 3. UTILIDADES ================= */
.wrap { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--marg); }

.kicker {
  font-family: var(--display);
  font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 1rem;
}

.h2 {
  font-size: clamp(1.85rem, 4.6vw, 3.15rem);
  color: var(--tinta);
}
.h2 em, .hero-title em { font-style: normal; color: var(--verde); }

.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--tinta-2); }

.sec-head { max-width: 42rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem); }
.sec-head-c { margin-inline: auto; text-align: center; }
.sec-lede { margin-top: 1.1rem; color: var(--tinta-2); }

/* ================= 4. COMPONENTES ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .88rem 1.55rem;
  border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: .92rem;
  transition: transform .45s var(--salida), background-color .3s var(--salida),
              color .3s var(--salida), border-color .3s var(--salida), box-shadow .45s var(--salida);
}
.btn-verde {
  background: var(--verde); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(20, 135, 90, .85);
}
.btn-verde:hover { background: var(--verde-2); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(20, 135, 90, .95); }
.btn-linea { border: 1px solid var(--linea); color: var(--tinta); background: var(--blanco); }
.btn-linea:hover { border-color: var(--verde); color: var(--verde); transform: translateY(-2px); }

/* ---- Splash ---- */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--bg);
  animation: splashSeguro .01s 4.5s forwards;
}
.splash-in { text-align: center; color: var(--verde); }
.splash-gafas { width: clamp(88px, 22vw, 128px); margin-inline: auto; }
.splash-gafas circle, .splash-gafas path {
  stroke-dasharray: 120; stroke-dashoffset: 120;
  animation: dibuja 1.25s var(--suavidad) forwards;
}
.splash-gafas path { animation-delay: .3s; }
.splash-nombre {
  display: block; margin-top: 1rem;
  font-family: var(--display); font-weight: 500;
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--suave);
  opacity: 0; animation: aparece .7s .8s var(--salida) forwards;
}
.splash.is-fuera { opacity: 0; pointer-events: none; transition: opacity .65s var(--salida); }

@keyframes dibuja { to { stroke-dashoffset: 0; } }
@keyframes aparece { to { opacity: 1; } }
@keyframes splashSeguro { to { opacity: 0; pointer-events: none; visibility: hidden; } }

/* ---- Nav flotante de cristal ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 800; padding: .7rem var(--marg) 0; }
.nav-pill {
  max-width: var(--ancho); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0 .55rem 0 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 34px -22px rgba(19, 37, 28, .5);
}
@supports (backdrop-filter: blur(18px)) {
  .nav-pill { background: var(--cristal); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }
}

.nav-marca { margin-right: auto; line-height: 1.15; }
.nav-marca-n { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -.02em; }
.nav-marca-s { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); }

.nav-links { display: none; gap: 1.5rem; }
.nav-links a { position: relative; font-size: .88rem; font-weight: 500; color: var(--tinta-2); transition: color .3s var(--salida); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1.5px;
  background: var(--verde); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--salida);
}
.nav-links a:hover { color: var(--verde); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-tel {
  display: none; align-items: center; gap: .45rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: var(--verde); color: #fff;
  font-family: var(--display); font-weight: 500; font-size: .82rem;
  transition: background-color .3s var(--salida), transform .45s var(--salida);
}
.nav-tel:hover { background: var(--verde-2); transform: translateY(-1px); }
.nav-tel svg { width: 14px; height: 14px; fill: currentColor; }

.nav-burger { width: 42px; height: 42px; display: grid; place-content: center; gap: 6px; margin-left: auto; }
.nav-burger span { display: block; width: 21px; height: 1.8px; background: var(--tinta); transition: transform .4s var(--salida); }
.nav.is-abierto .nav-burger span:first-child { transform: translateY(3.9px) rotate(45deg); }
.nav.is-abierto .nav-burger span:last-child { transform: translateY(-3.9px) rotate(-45deg); }

.nav-panel {
  max-width: var(--ancho); margin: .4rem auto 0;
  display: grid; max-height: 0; overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, .95);
  transition: max-height .5s var(--salida), padding .5s var(--salida);
}
.nav.is-abierto .nav-panel {
  max-height: 420px; padding: .5rem 1.25rem 1.1rem;
  box-shadow: 0 16px 34px -24px rgba(19, 37, 28, .5);
}
.nav-panel a { padding: .78rem 0; font-weight: 500; border-bottom: 1px solid var(--linea-2); }
.nav-panel-tel {
  margin-top: .8rem; text-align: center; border: 0 !important;
  background: var(--verde); color: #fff; border-radius: 999px;
  font-family: var(--display);
}

/* ================= 5. PORTADA Y LENTE ================= */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(2.4rem, 7vw, 5rem)) 0 clamp(2.6rem, 6vw, 4.5rem); }

.hero-mesh {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(at 14% 18%, rgba(20, 135, 90, .30) 0%, transparent 52%),
    radial-gradient(at 84% 26%, rgba(27, 127, 168, .26) 0%, transparent 50%),
    radial-gradient(at 52% 92%, rgba(228, 160, 58, .22) 0%, transparent 48%),
    radial-gradient(at 92% 78%, rgba(125, 154, 78, .22) 0%, transparent 46%);
  filter: blur(56px) saturate(135%);
  animation: mesh 26s ease-in-out infinite;
}
@keyframes mesh {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.18) rotate(9deg); }
}

.hero-grid { display: grid; gap: clamp(2.2rem, 5vw, 3.4rem); align-items: center; }

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -.035em;
}
.hero-sub {
  margin-top: clamp(1.1rem, 2.4vw, 1.5rem);
  max-width: 33rem;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--tinta-2);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(1.5rem, 3vw, 2.1rem); }
.hero-nota {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--linea);
  font-size: .92rem; color: var(--tinta-2);
}
.hero-nota strong { font-family: var(--display); font-weight: 600; color: var(--verde); }
.hero-nota span { display: block; color: var(--suave); font-size: .86rem; margin-top: .15rem; }

/* ---- El efecto lente ---- */
.lente {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 36px 60px -34px rgba(19, 37, 28, .55);
  background: var(--bg-3);
  transition: transform .3s var(--suavidad);
  transform-style: preserve-3d;
}
.lente-borrosa, .lente-nitida {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* El desenfoque solo se aplica cuando el JS confirma que puede recortar la
   imagen nítida. Sin JS se ve la foto normal, nunca una foto borrosa. */
.lente.js-lista .lente-borrosa { filter: blur(10px) saturate(1.06) brightness(1.02); transform: scale(1.08); }
.lente-nitida {
  opacity: 0;
  transition: opacity .35s var(--salida);
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 var(--r1, 62px), transparent var(--r2, 125px));
          mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 var(--r1, 62px), transparent var(--r2, 125px));
}
.lente.is-enfocando .lente-nitida { opacity: 1; }

.lente-aro {
  position: absolute; top: 0; left: 0;
  width: var(--aro, 137px); height: var(--aro, 137px);
  margin: calc(var(--aro, 137px) / -2) 0 0 calc(var(--aro, 137px) / -2);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .75);
  box-shadow: 0 0 0 1px rgba(20, 135, 90, .28) inset, 0 8px 26px -10px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--salida);
}
.lente.is-enfocando .lente-aro { opacity: 1; }

.lente-pista {
  position: absolute; z-index: 3; left: 50%; bottom: 1rem;
  transform: translateX(-50%);
  padding: .42rem .95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  font-family: var(--display); font-size: .72rem; font-weight: 500;
  color: var(--tinta-2); white-space: nowrap;
  transition: opacity .35s var(--salida);
}
.lente.is-enfocando .lente-pista { opacity: 0; }

/* ================= 6. SECCIONES ================= */
/* ---- Cifras ---- */
.cifras { padding: clamp(2.2rem, 4.5vw, 3.2rem) 0; }
.cifras-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--linea);
  border: 1px solid var(--linea);
  border-radius: 20px; overflow: hidden;
}
.cifra { background: var(--blanco); padding: clamp(1.2rem, 2.5vw, 1.8rem) 1rem; text-align: center; }
.cifra-n {
  display: block;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  letter-spacing: -.04em; color: var(--verde);
  font-variant-numeric: tabular-nums;
}
.cifra-t { display: block; margin-top: .3rem; font-size: .8rem; color: var(--suave); }

/* ---- Servicios ---- */
.serv { padding: clamp(3.4rem, 8vw, 6.5rem) 0; }
.serv-grid { display: grid; grid-template-columns: 1fr; gap: clamp(.9rem, 2vw, 1.35rem); }

.tarjeta {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 40px -32px rgba(19, 37, 28, .5);
  transition: transform .55s var(--salida), box-shadow .55s var(--salida);
}
@supports (backdrop-filter: blur(16px)) {
  .tarjeta { background: var(--cristal); backdrop-filter: blur(16px) saturate(165%); -webkit-backdrop-filter: blur(16px) saturate(165%); }
}
.tarjeta:hover { transform: translateY(-5px); box-shadow: 0 28px 50px -30px rgba(19, 37, 28, .5); }
.tarjeta-destaca { border-color: rgba(20, 135, 90, .35); background: var(--verde-3); }
@supports (backdrop-filter: blur(16px)) { .tarjeta-destaca { background: rgba(228, 241, 233, .8); } }

.tarjeta-i {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1.05rem;
  border-radius: 14px;
  background: var(--verde);
}
.tarjeta-i svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta h3 { font-size: clamp(1.1rem, 2vw, 1.28rem); margin-bottom: .5rem; }
.tarjeta p { font-size: .93rem; color: var(--tinta-2); }

/* ---- Marcas ---- */
.marcas { padding: clamp(3.4rem, 8vw, 6.5rem) 0; background: var(--bg-2); border-block: 1px solid var(--linea-2); }
.tira { overflow: hidden; padding: clamp(.9rem, 2vw, 1.4rem) 0; margin-bottom: clamp(2rem, 4vw, 3rem); background: var(--verde); }
.tira-pista { display: flex; align-items: center; gap: 1.5rem; width: max-content; animation: tira 42s linear infinite; }
.tira-pista span {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: rgba(255, 255, 255, .95); white-space: nowrap;
}
.tira-pista i { color: rgba(255, 255, 255, .45); font-style: normal; }
@keyframes tira { to { transform: translateX(-50%); } }

.marcas-fig img { width: 100%; border-radius: 20px; }
.marcas-fig figcaption { margin-top: .8rem; font-size: .84rem; color: var(--suave); }

/* ---- De paso ---- */
.paso { padding: clamp(3.4rem, 8vw, 6.5rem) 0; }
.paso-grid { display: grid; gap: clamp(2.2rem, 4.5vw, 3.4rem); align-items: center; }
.paso-copy .lede { margin-top: 1.2rem; }
.paso-lista { margin: 1.8rem 0 2rem; display: grid; gap: .8rem; }
.paso-lista li {
  position: relative; padding-left: 1.7rem;
  font-size: .96rem; color: var(--tinta-2);
}
.paso-lista li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--verde);
}
.paso-lista strong { color: var(--tinta); font-weight: 600; }
.paso-fig img { width: 100%; border-radius: 20px; }
.paso-fig figcaption { margin-top: .8rem; font-size: .84rem; color: var(--suave); }

/* ---- La óptica ---- */
.tienda { padding: clamp(3.4rem, 8vw, 6.5rem) 0; background: var(--bg-2); border-block: 1px solid var(--linea-2); }
.tienda-grid { display: grid; grid-template-columns: 1fr; gap: clamp(.9rem, 2vw, 1.3rem); }
.tg { border-radius: 20px; overflow: hidden; background: var(--bg-3); }
.tg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--salida); }
.tg:hover img { transform: scale(1.05); }
.tg-a { aspect-ratio: 16 / 9; }
.tg-b, .tg-c { aspect-ratio: 3 / 4; }
.tg-d { aspect-ratio: 16 / 9; }

/* ---- Reseñas ---- */
.opi { padding: clamp(3.4rem, 8vw, 6.5rem) 0; }
.opi-grid { display: grid; grid-template-columns: 1fr; gap: clamp(.9rem, 2vw, 1.35rem); }
.opi-q {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: 20px;
  border: 1px solid var(--linea-2);
  background: var(--blanco);
  transition: transform .55s var(--salida), box-shadow .55s var(--salida);
}
.opi-q:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -34px rgba(19, 37, 28, .5); }
.opi-q p { font-size: 1rem; color: var(--tinta); }
.opi-q p em { font-style: normal; font-weight: 600; color: var(--verde); }
.opi-q-grande { background: var(--verde); border-color: var(--verde); }
.opi-q-grande p { color: #fff; font-size: clamp(1.05rem, 2.1vw, 1.24rem); }
.opi-q-grande p em { color: #FFE9A8; }
.opi-q-grande cite { color: #fff; }
.opi-q-grande cite span { color: rgba(255, 255, 255, .65); }
.opi-q cite {
  display: block; margin-top: 1rem;
  font-family: var(--display); font-style: normal;
  font-weight: 600; font-size: .84rem; color: var(--tinta);
}
.opi-q cite span { font-weight: 400; color: var(--suave); }

/* ---- Visítanos ---- */
.visita { padding: clamp(3.4rem, 8vw, 6.5rem) 0; }
.visita-grid { display: grid; gap: clamp(2.2rem, 4.5vw, 3.4rem); align-items: start; }

.datos { display: grid; gap: 1.2rem; margin: 2rem 0; }
.datos dt {
  font-family: var(--display); font-size: .68rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--verde); margin-bottom: .3rem;
}
.datos dd { font-size: .97rem; color: var(--tinta); }
.datos dd a:hover { color: var(--verde); }

.horario { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.horario caption {
  text-align: left;
  font-family: var(--display); font-size: .68rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--verde); padding-bottom: .7rem;
}
.horario th, .horario td {
  padding: .62rem .4rem;
  border-bottom: 1px solid var(--linea-2);
  font-size: .92rem; text-align: left;
  font-variant-numeric: tabular-nums;
}
.horario th { font-weight: 500; color: var(--tinta); width: 34%; }
.horario td { color: var(--tinta-2); }
.horario .cerrado { color: var(--suave); }
.horario-ojo td { color: var(--verde); font-weight: 500; }
.horario-ojo td span { display: inline-block; margin-left: .4rem; font-size: .78rem; font-weight: 400; color: var(--suave); }

.visita-cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.visita-lado { display: grid; gap: clamp(.9rem, 2vw, 1.3rem); }
.visita-fig img { width: 100%; border-radius: 20px; }
.visita-mapa {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--linea);
  min-height: 260px; background: var(--bg-3);
}
.visita-mapa iframe { width: 100%; height: 100%; min-height: 260px; border: 0; }

/* ---- Pie ---- */
.pie {
  background: var(--tinta); color: rgba(255, 255, 255, .6);
  padding: clamp(2.6rem, 5vw, 3.8rem) 0 calc(clamp(2.6rem, 5vw, 3.8rem) + 66px);
}
.pie-in { display: grid; gap: 1.8rem; }
.pie-n { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: #fff; }
.pie-marca p { margin-top: .6rem; font-size: .87rem; max-width: 22rem; }
.pie-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.pie-links a { font-size: .87rem; transition: color .3s var(--salida); }
.pie-links a:hover { color: #fff; }
.pie-legal { font-size: .82rem; line-height: 1.75; }
.pie-legal a { color: #fff; }

/* ---- Barra móvil ---- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255, 255, 255, .16);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -8px 26px -14px rgba(19, 37, 28, .5);
}
.barra-b {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .95rem .5rem;
  font-family: var(--display); font-weight: 500; font-size: .88rem; color: #fff;
}
.barra-b svg { width: 17px; height: 17px; fill: currentColor; }
.barra-tel { background: var(--verde); }
.barra-mapa { background: var(--tinta); }
.barra-tel:active { background: var(--verde-2); }

/* ================= 7. APARICIONES ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--salida), transform .8s var(--salida); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ================= 8. RESPONSIVE ================= */
@media (min-width: 540px) {
  .cifras-grid { grid-template-columns: repeat(4, 1fr); }
  .serv-grid { grid-template-columns: repeat(2, 1fr); }
  .opi-grid { grid-template-columns: repeat(2, 1fr); }
  .opi-q-grande { grid-column: 1 / -1; }
}

@media (min-width: 720px) {
  .tienda-grid { grid-template-columns: 1.25fr .75fr; }
  .tg-a { grid-column: 1; }
  .tg-b { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: auto; }
  .tg-c { grid-column: 1; aspect-ratio: 16 / 10; }
  .tg-d { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
}

@media (min-width: 960px) {
  :root { --nav-h: 74px; }
  .nav-links { display: flex; }
  .nav-tel { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-panel { display: none; }

  .hero-grid { grid-template-columns: 1.02fr .98fr; }
  .serv-grid { grid-template-columns: repeat(3, 1fr); }
  .opi-grid { grid-template-columns: repeat(3, 1fr); }
  .opi-q-grande { grid-column: span 2; }
  .paso-grid { grid-template-columns: 1fr 1fr; }
  .visita-grid { grid-template-columns: 1fr 1fr; }
  .visita-mapa { min-height: 320px; }
  .visita-mapa iframe { min-height: 320px; }

  .pie-in { grid-template-columns: 1.3fr .7fr 1.2fr; align-items: start; }
  .pie { padding-bottom: clamp(2.6rem, 5vw, 3.8rem); }
  .barra { display: none; }
}

/* Sin ratón (móvil y tableta): la foto se ve nítida y sin trucos. */
@media (hover: none) {
  .lente.js-lista .lente-borrosa { filter: none; transform: none; }
  .lente-nitida, .lente-aro, .lente-pista { display: none; }
}

/* ================= 9. MOVIMIENTO REDUCIDO =================
   Solo se apaga lo intrusivo: Windows trae esta opción activada de
   fábrica en muchos equipos y no queremos una web muerta. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .tira-pista { animation: none; }
}

/* ===== Revisión 2026-11-23: contraste y letra legibles en móvil ===== */
:root { --suave: #566A5D; }
.kicker { color: var(--verde-2); }
.nav-marca-s { font-size: .72rem; }
.datos dt, .horario caption { font-size: .76rem; }
.tira { background: var(--verde-2); }
.opi-q-grande { background: var(--verde-2); border-color: var(--verde-2); }
.opi-q.opi-q-grande cite { color: #fff; }
.opi-q.opi-q-grande cite span { color: rgba(255, 255, 255, .82); }
