/* Lente bajo la superficie (página Áreas Marinas Protegidas): ideas de las plantillas Spotlight Reveal (easylog) y
   Layered Depth (Qelora) de motionsites.ai, rehechas para el sitio. Arriba, la superficie; dentro de la lente que sigue
   al cursor, el bosque de macroalgas. La cifra grande queda entre las dos capas. */
.lente { --l-acento: #4cc38a; --x: 50%; --y: 45%; --r: 260px;
  position: relative; height: min(100vh, 900px); height: min(100svh, 900px); min-height: 580px; overflow: hidden; background: #050b0f; color: #fff; margin: 0 0 clamp(2rem, 5vw, 3.5rem); isolation: isolate; }
.ln-base, .ln-bajo { position: absolute; inset: 0; background: center / cover no-repeat; }
.ln-base { z-index: 1; animation: ln-zoom 1.8s cubic-bezier(.16,1,.3,1) both; }
.ln-base::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,12,18,.55) 0%, rgba(4,12,18,.05) 38%, rgba(4,12,18,.1) 62%, rgba(4,12,18,.7) 100%); }
@keyframes ln-zoom { from { transform: scale(1.12); } to { transform: none; } }
.ln-cifra { position: absolute; left: 0; right: 0; top: 50%; z-index: 2; margin: 0; text-align: center; pointer-events: none; will-change: transform;
  font: 800 clamp(96px, 21vw, 340px)/1 var(--display); letter-spacing: -.06em; color: rgba(255,255,255,.82); mix-blend-mode: overlay; transform: translateY(-50%); }
.ln-cifra small { font-size: .38em; letter-spacing: -.02em; }
.ln-bajo { z-index: 3; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, #000 40%, rgba(0,0,0,.75) 60%, rgba(0,0,0,.4) 75%, rgba(0,0,0,.12) 88%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, #000 40%, rgba(0,0,0,.75) 60%, rgba(0,0,0,.4) 75%, rgba(0,0,0,.12) 88%, transparent 100%); }
.ln-aro { position: absolute; z-index: 4; left: 0; top: 0; width: calc(var(--r) * 1.1); height: calc(var(--r) * 1.1); margin: calc(var(--r) * -.55) 0 0 calc(var(--r) * -.55); border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255,255,255,.22); transform: translate(var(--x), var(--y)); }
.ln-aro span { position: absolute; left: 50%; top: -1.6em; transform: translateX(-50%); font: 500 11px var(--mono); letter-spacing: .08em; color: rgba(255,255,255,.75); white-space: nowrap; }

.ln-arriba { position: absolute; top: 12%; left: 0; right: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 0 clamp(20px, 4vw, 56px); pointer-events: none; }
.ln-titulo { margin: 0; font: 400 clamp(44px, 7.4vw, 118px)/.95 var(--display); letter-spacing: -.06em; color: #fff; text-align: left; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.ln-titulo span { display: block; }
.ln-titulo .ln-it { font: italic 400 1.04em var(--cita); letter-spacing: -.04em; }
.ln-titulo .ln-dos { margin-top: -.04em; }
.ln-lado { max-width: 250px; padding-top: 8px; margin: 0; font-size: 15px; line-height: 1.6; color: #fff; text-align: left; hyphens: none; text-shadow: 0 1px 14px rgba(0,0,0,.5); }

.ln-panel { position: absolute; z-index: 6; left: clamp(20px, 3vw, 36px); max-width: 290px; padding: 20px 24px; border-radius: 18px; color: #17252b;
  background: rgba(245,248,247,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 40px -10px rgba(0,0,0,.35); will-change: transform; }
.ln-panel p { margin: 0; font: 500 clamp(15px, 1.4vw, 18px)/1.35 var(--titular); letter-spacing: -.01em; text-align: left; hyphens: none; }
.ln-panel a { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(23,37,43,.2); font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #17252b; text-decoration: none; }
.ln-cta { position: absolute; z-index: 6; right: clamp(20px, 4vw, 56px); max-width: 270px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; will-change: transform; }
.ln-cta p { margin: 0; font-size: 15px; line-height: 1.6; color: #fff; text-align: left; hyphens: none; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.ln-cta p b { font-weight: 700; }
.ln-cta a { display: inline-flex; align-items: center; padding: 14px 30px; border-radius: 999px; background: var(--l-acento); color: #06170f; font: 600 15px var(--titular); text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.ln-cta a:hover { transform: scale(1.03); background: #5dd49b; box-shadow: 0 10px 30px -8px rgba(76,195,138,.55); }
.ln-pie { position: absolute; z-index: 6; bottom: 22px; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.65); pointer-events: none; }
.ln-pie span:first-child { display: inline-flex; align-items: center; gap: 12px; }
.ln-pie i { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ln-pie i::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid #000; border-bottom: 1.5px solid #000; transform: translateY(-2px) rotate(45deg); }
.lente a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.ln-anim { opacity: 0; animation: ln-sube 1s cubic-bezier(.16,1,.3,1) forwards; }
.ln-rev { animation-name: ln-revela; animation-duration: 1.1s; }
@keyframes ln-revela { from { opacity: 0; transform: translateY(28px); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes ln-sube { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.lente:not(.vista) .ln-anim, .lente:not(.vista) .ln-base { animation-play-state: paused; }

@media (min-width: 821px) {
  .ln-panel { bottom: 96px; }
  .ln-cta { bottom: 96px; }
}
@media (max-width: 820px) {
  .lente { --r: 150px; min-height: 640px; }
  .ln-arriba { top: 8%; }
  .ln-lado { display: none; }
  .ln-cifra { top: 44%; }
  .ln-panel, .ln-cta { left: 20px; right: 20px; max-width: none; }
  .ln-panel { bottom: 196px; padding: 16px 18px; }
  .ln-panel p { font-size: 15px; }
  .ln-cta { bottom: 58px; flex-direction: row; align-items: center; gap: 14px; }
  .ln-cta p { font-size: 13px; line-height: 1.45; }
  .ln-cta a { flex: none; padding: 12px 20px; font-size: 14px; }
}
@media (max-width: 420px) { .ln-cta p { display: none; } .ln-panel { bottom: 116px; } }
@media (prefers-reduced-motion: reduce) { .ln-anim, .ln-base { animation: none; opacity: 1; } }
