/* Con los ojos cerrados — Servicios Eyenet
   Nada en esta página parpadea ni destella: todo cambio de brillo es lento y suave. */

:root {
  --bg: #07060d;
  --bg-2: #0f0d1a;
  --ink: #f4efe6;
  --muted: #b3adc2;
  --line: rgba(244, 239, 230, .14);
  --amber: #ffb36b;
  --coral: #ff6f61;
  --violet: #9b8cff;
  --cyan: #6fe3ff;
  --serif: 'Instrument Serif', serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
  --gutter: min(1120px, 100% - 2.5rem);
  --pad-y: clamp(4.5rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  overflow-x: hidden;
}

/* ---------- Fondo de luz ---------- */
#luz {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

html.no-webgl body {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 244, 230, .22) 0%, transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 111, 97, .18) 0%, transparent 45%),
    conic-gradient(from 90deg at 50% 45%, rgba(155, 140, 255, .20), rgba(111, 227, 255, .14), rgba(255, 179, 107, .20), rgba(255, 111, 97, .16), rgba(155, 140, 255, .20)),
    var(--bg);
  background-attachment: fixed;
}
html.no-webgl #luz { display: none; }

main, .site-footer, .masthead { position: relative; z-index: 1; }

img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.wrap { width: var(--gutter); margin-inline: auto; }

/* ---------- Accesibilidad ---------- */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--ink);
  color: #0b0a12;
  border-radius: 999px;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Tipografía ---------- */
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
h1 { font-size: clamp(3.25rem, 10vw, 7.5rem); line-height: .95; }
h2 { font-size: clamp(2.25rem, 5.5vw, 4.25rem); line-height: 1; }
h1 em, h2 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--amber), var(--coral) 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: .08em;
}
h3 { font: 500 1.2rem/1.3 var(--sans); margin: 0 0 .5rem; }

.kicker, .label-mono, .section-label, .intent-index, .intent-tag, .place-city, .place-coordinate, .facts li, .hero-hint, .step-no {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.kicker { color: var(--amber); margin-bottom: 1rem; }
.section-label { color: var(--muted); margin-bottom: 1.25rem; }
.lead { font-size: 1.0625rem; color: var(--ink); max-width: 62ch; }
.instruction { color: var(--muted); margin: 2rem 0 1rem; }
small { font-size: 13px; color: var(--muted); display: block; line-height: 1.5; }

@media (min-width: 820px) {
  body { font-size: 17px; }
  .lead { font-size: 1.1875rem; }
}

/* ---------- Secciones ---------- */
.section {
  position: relative;
  padding-block: var(--pad-y);
}
.section[data-light="0.3"],
.section[data-light="0.15"],
.section[data-light="0.35"] {
  background: rgba(7, 6, 13, .72);
}

/* ---------- Glass ---------- */
.glass {
  background: rgba(15, 13, 26, .62);
  border: 1px solid var(--line);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ---------- Botones ---------- */
.btn, .header-book, .place-cta, #barra-reserva {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  font: 600 16px/1.2 var(--sans);
  text-decoration: none;
  transition: transform .4s ease, box-shadow .4s ease, background-color .4s ease;
}
.btn-primary { background: var(--ink); color: #0b0a12; border: 1px solid var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:hover, .header-book:hover, .place-cta:hover, #barra-reserva:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255, 179, 107, .35);
}
.text-link { color: var(--amber); text-decoration: none; border-bottom: 1px solid currentColor; display: inline-block; min-height: 44px; line-height: 44px; border-bottom-width: 0; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem max(1.25rem, calc((100% - 1120px) / 2));
  background: linear-gradient(to bottom, rgba(7, 6, 13, .8), transparent);
  transition: background-color .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.masthead.is-scrolled {
  background: rgba(7, 6, 13, .78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.brand-sun { color: var(--amber); }
.masthead nav { display: none; }
.masthead nav a {
  text-decoration: none;
  color: var(--muted);
  padding: .65rem .8rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  transition: color .4s ease;
}
.masthead nav a:hover { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: .4rem; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding: .5rem .8rem;
  background: rgba(15, 13, 26, .6);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: background-color .4s ease, border-color .4s ease;
}
.tool-btn[aria-pressed="true"] { border-color: var(--amber); background: rgba(255, 179, 107, .14); }
.tool-icon { color: var(--amber); }
.header-book {
  min-height: 44px;
  padding: .5rem 1.1rem;
  background: var(--ink);
  color: #0b0a12;
  font-size: 15px;
}
/* Etiquetas largas: solo en pantallas amplias */
.tool-label { white-space: nowrap; }
.tool-label .ls { display: none; }
@media (max-width: 639px) {
  .tool-btn { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .tool-btn .tool-label { display: none; }
  .tool-icon { font-size: 18px; }
  .header-book { display: none; }
  .brand span:last-child { font-size: 15px; }
}

@media (min-width: 820px) {
  .masthead nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 3rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 6, 13, .96) 0%, rgba(7, 6, 13, .8) 50%, rgba(7, 6, 13, .25) 80%, transparent 100%);
  pointer-events: none;
}
.hero-copy { position: relative; }
.hero-copy .kicker, .hero-text, .facts { text-shadow: 0 1px 22px rgba(7, 6, 13, .9); }
.hero-text { font-size: 1.0625rem; max-width: 52ch; margin-bottom: 1.75rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  color: var(--muted);
}
.facts li { padding: .35rem .9rem .35rem 0; margin-right: .9rem; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; margin-right: 0; }
.hero-hint {
  color: var(--amber);
  margin: 0 0 .75rem;
  transition: opacity 1.2s ease;
}
.hero-hint.is-hidden { opacity: 0; }
.hero-caption { font-size: 13px; color: var(--muted); max-width: 52ch; margin: 0; line-height: 1.5; }

@media (min-width: 820px) {
  .hero { align-items: center; padding: 8rem 0 4rem; }
  .hero::before { background: linear-gradient(to right, rgba(7, 6, 13, .94) 0%, rgba(7, 6, 13, .72) 40%, rgba(7, 6, 13, .2) 68%, transparent 85%); }
  .hero-copy { max-width: 640px; margin-inline: auto 0; margin-left: max(1.25rem, calc((100% - 1120px) / 2)); width: min(640px, 100% - 2.5rem); }
  .hero-text { font-size: 1.1875rem; }
}

/* ---------- Tarjetas ---------- */
.card-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
.card { padding: 1.5rem; }
.card h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; }
.card p { margin: 0; color: var(--muted); }
.note { padding: 1.25rem 1.5rem; margin: 1.5rem 0 0; color: var(--ink); max-width: 72ch; }
@media (min-width: 820px) {
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Intenciones ---------- */
.panel {
  background: rgba(15, 13, 26, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 860px;
}
.panel > :last-child { margin-bottom: 0; }
.intent-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.intent {
  position: relative;
  text-align: left;
  color: var(--ink);
  font: inherit;
  padding: 1rem;
  cursor: pointer;
  min-height: 44px;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 1rem;
  align-content: start;
  transition: border-color .5s ease, background-color .5s ease, transform .4s ease;
}
.intent:hover { transform: translateY(-2px); }
.intent-swatch { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line); }
.intent-index { grid-column: 2; color: var(--muted); padding-right: 4.5rem; }
.intent h3 { grid-column: 2; margin: .25rem 0 .4rem; font-size: 1.05rem; }
.intent p { grid-column: 2; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.intent-tag { display: none; position: absolute; top: 1rem; right: 1rem; color: var(--amber); }
.intent[aria-pressed="true"] { border-color: var(--amber); background: rgba(40, 30, 40, .78); }
.intent[aria-pressed="true"] .intent-tag { display: block; }
.swatch-0 { background: linear-gradient(120deg, #ffb36b, #ff6f61 70%, #7a3b4f); }
.swatch-1 { background: repeating-radial-gradient(circle at 50% 50%, #9b8cff 0 4px, #2a2466 4px 9px, #4a3fb0 9px 12px); }
.swatch-2 { background: conic-gradient(from 0deg, #ff6f61, #ffb36b, #6fe3ff, #9b8cff, #ff6f61); }
.swatch-3 { background: linear-gradient(120deg, #6fe3ff, #9b8cff 45%, #ff4fd8 75%, #6fe3ff); }
.intent-note { margin-top: 1.5rem; }

@media (min-width: 820px) {
  .intent-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .intent { display: block; padding: 1.25rem; }
  .intent-swatch { display: block; width: 100%; height: 72px; }
  .intent-index { display: block; margin-top: .75rem; padding-right: 4.5rem; }
  .intent-tag { top: calc(1.25rem + 72px + .75rem); right: 1.25rem; }
  .intent h3 { margin: .25rem 0 .5rem; }
  .intent p { font-size: 16px; }
}
@media (min-width: 1080px) {
  .intent-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.5rem; }
.step-no { color: var(--amber); padding-top: .35rem; }
.steps p { margin: 0; color: var(--muted); }
.how-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- Sedes ---------- */
.locations-intro { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.location-price { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .25rem; width: fit-content; }
.location-price strong { font: 400 3rem/1 var(--serif); }
.location-price small { color: var(--muted); }
.place-grid { display: grid; gap: 1rem; }
.place-card { overflow: hidden; display: flex; flex-direction: column; }
.place-art { position: relative; height: 150px; display: flex; align-items: flex-start; padding: 1rem; }
.place-art-playa { background: linear-gradient(135deg, #ffb36b 0%, #ff6f61 50%, #1fb5b0 100%); }
.place-art-cdmx { background: linear-gradient(135deg, #5a3fd0 0%, #9b8cff 40%, #ff6f61 100%); }
.place-coordinate { color: #0b0a12; font-weight: 500; }
.place-detail { padding: 1.25rem 1.5rem; flex: 1; }
.place-city { color: var(--amber); display: block; margin-bottom: .35rem; }
.place-detail h3 { font: 400 1.9rem/1.1 var(--serif); margin-bottom: .25rem; }
.place-detail p { margin: 0; color: var(--muted); }
.place-cta {
  margin: 0 1.5rem 1.5rem;
  background: var(--ink);
  color: #0b0a12;
}
.availability { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: 1.5rem 0 0; color: var(--muted); }

@media (min-width: 820px) {
  .locations-intro { grid-template-columns: 1fr auto; align-items: end; }
  .place-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Seguridad ---------- */
.safety-panel {
  background: #0d0b16;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 860px;
}
.safety-panel h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.safety-panel p:not(.kicker) { font-size: 16px; color: var(--ink); line-height: 1.7; }
.safety-panel small { margin-top: 1rem; font-size: 14px; }

/* ---------- RX1 ---------- */
.lamp-layout { display: grid; gap: 3rem; align-items: center; justify-items: stretch; }
.lamp-layout > * { min-width: 0; }
.lamp-showcase { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; }
.led-ring {
  --size: min(280px, 70vw);
  --r: calc(var(--size) * .36);
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 13, 26, .9) 0%, rgba(15, 13, 26, .8) 100%);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.led-ring i {
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff3e0;
  box-shadow: 0 0 14px 3px rgba(255, 236, 205, .6);
  transform: rotate(calc(var(--i) * 22.5deg)) translateY(calc(var(--r) * -1));
  animation: led-breathe 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.375s);
}
@keyframes led-breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.led-caption { color: var(--muted); margin: 0; }
.lamp-copy p { max-width: 56ch; }
.lamp-meta { display: grid; gap: .5rem; margin: 1.5rem 0; color: var(--muted); }
.lamp-meta b { color: var(--ink); font-weight: 500; margin-left: .5rem; }
.lamp-copy small { margin-top: 1rem; }
@media (min-width: 820px) {
  .lamp-layout { grid-template-columns: 1fr 1fr; }
  .led-ring { --size: min(340px, 40vw); }
}

/* ---------- Cierre ---------- */
.closing-links { display: grid; gap: 1rem; margin-top: 2rem; }
.btn-large { flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1.5rem 2rem; min-height: 96px; border-radius: 28px; }
.btn-large b { font-size: 1.25rem; font-weight: 600; }
.btn-large .label-mono { color: #4a4458; }
@media (min-width: 820px) {
  .closing-links { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0 6rem; background: rgba(7, 6, 13, .85); border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: .6rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Barra móvil ---------- */
#barra-reserva {
  display: none;
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 60;
  background: var(--ink);
  color: #0b0a12;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease, transform .4s ease, box-shadow .4s ease;
}
#barra-reserva.is-visible { opacity: 1; pointer-events: auto; }
@media (max-width: 819px) {
  #barra-reserva { display: inline-flex; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in { opacity: 1; transform: none; transition: .5s ease; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
  .led-ring i { animation: none; opacity: .9; }
}

/* ---------- Utilidades y Black Friday ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.precio s { color: var(--muted); }
.precio strong { color: var(--ink); font-weight: 600; }
.bf-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .6rem;
  min-height: 44px;
  padding: .5rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 179, 107, .5);
  background: rgba(255, 179, 107, .10);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  max-width: 100%;
  text-shadow: 0 1px 22px rgba(7, 6, 13, .9);
}
.bf-pill .label-mono { color: var(--amber); }
.bf-pill .precio strong { color: var(--amber); }
.loc-prices { display: flex; align-items: baseline; gap: .75rem; }
.loc-prices s { color: var(--muted); font-size: 1.25rem; }
.loc-prices strong { font: 400 3rem/1 var(--serif); }
.location-price strong { font: 400 3rem/1 var(--serif); }

.hint-touch { display: none; }
@media (hover: none) {
  .hint-touch { display: inline; }
  .hint-mouse { display: none; }
}
@media (max-width: 819px) {
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 2rem; }
}

/* ---------- Hero móvil: ventana de luz arriba, texto debajo ---------- */
@media (max-width: 819px) {
  .hide-mobile { display: none; }
  .hero {
    align-items: flex-start;
    padding-top: calc(34svh + 16px);
    padding-bottom: calc(52px + 2rem);
  }
  .hero::before {
    background: linear-gradient(to bottom, rgba(7, 6, 13, 0) 0, rgba(7, 6, 13, 0) 22svh, rgba(7, 6, 13, .9) 38svh, rgba(7, 6, 13, .96) 100%);
  }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  .hero .btn-secondary {
    background: transparent;
    border: 0;
    border-radius: 0;
    min-height: 44px;
    padding: .5rem .5rem;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .hero .btn-secondary:hover { box-shadow: none; transform: none; }
}
