/* =========================================================
   ALFA · capa de experiencia editorial e interacción
   Se carga después del sistema base. No altera el hero WebGL.
   ========================================================= */

/* ---------- navegación con posición real ---------- */
html.menu-open,
html.menu-open body { overflow: hidden; }
.btn {
  translate: 0 0;
  transition: translate 240ms var(--ease), transform 320ms var(--ease),
    background-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.nav__progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--copper-soft);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.nav__links a.is-active {
  color: var(--paper);
  background: rgba(242, 236, 225, 0.09);
}

/* ---------- La prueba: instrumento óptico táctil ---------- */
.focus { max-width: 1040px; }
.focus__controls {
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 32px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
}
.focus__meta,
.focus__range,
.focus__scale { grid-column: 2; }
.focus__dial {
  --dial-angle: -125deg;
  grid-column: 1;
  grid-row: 1 / 4;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 144px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: inset 0 0 0 8px var(--surface), 0 12px 24px rgba(20, 17, 14, 0.08);
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  transition: border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.focus__dial::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(110, 101, 89, 0.58);
}
.focus__dial::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
}
.focus__dial.is-turning {
  border-color: var(--violet);
  box-shadow: inset 0 0 0 8px var(--surface), 0 12px 32px rgba(76, 87, 240, 0.2);
}
.focus__dial-needle {
  position: absolute;
  left: calc(50% - 1px);
  bottom: 50%;
  z-index: 0;
  width: 2px;
  height: 40%;
  border-radius: 2px;
  background: var(--violet);
  transform: rotate(var(--dial-angle));
  transform-origin: 50% 100%;
  transition: transform 90ms linear;
}
.focus__dial strong,
.focus__dial small { position: relative; z-index: 2; }
.focus__dial strong {
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.focus__dial small {
  margin-top: 4px;
  max-width: 72px;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
}
.focus__range::-webkit-slider-runnable-track { background: var(--line); }
.focus__range::-moz-range-track { background: var(--line); }

/* ---------- Montura: fotografía de producto de lujo ---------- */
.montura .wrap { width: min(1280px, 100% - var(--gutter) * 2); }
.montura .split { grid-template-columns: 0.82fr 1.18fr; gap: 48px; }
.montura .body { max-width: 480px; }
.frame-plate {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(20, 17, 14, 0.2);
}
.frame-plate__img { transition: opacity 800ms var(--ease), transform 1100ms var(--ease); }
.frame-switch__btn {
  border-color: transparent;
  border-radius: 12px;
  background: transparent;
}
.frame-switch__btn.is-active {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}
.spec-item b { font-size: 1.5rem; color: var(--copper); }
.hotspot::before { animation: none; opacity: 0.5; }
.frame-callout {
  left: 24px;
  right: auto;
  bottom: 24px;
  max-width: 420px;
  border-radius: 12px;
}

/* ---------- El lente: segunda escena cinematográfica ---------- */
.lente {
  padding-top: 96px;
  padding-bottom: 96px;
  background: #000000;
  color: var(--paper);
}
.lente .wrap { width: min(1280px, 100% - var(--gutter) * 2); }
.lente .eyebrow { color: var(--copper-soft); }
.lente .h2 { color: var(--paper); }
.lente__header { grid-template-columns: 0.9fr 1.1fr; }
.lente__intro { color: #C9C2B6; }
.optics { display: block; margin-top: 48px; }
.optics__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.optics-tab {
  min-width: 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #313131;
  background: #181818;
  color: #C9C2B6;
  box-shadow: none;
}
.optics-tab:hover { background: #272727; border-color: #4A443D; }
.optics-tab.is-active {
  background: #272727;
  border-color: var(--violet);
  box-shadow: none;
  color: var(--paper);
}
.optics-tab__pill { background: #313131; color: #C9C2B6; }
.optics-tab.is-active .optics-tab__pill { background: var(--violet); color: #FFFFFF; }
.optics-tab__title { font-size: 1.125rem; }
.optics-tab__sub { font-size: 0.875rem; color: #9D968C; }
.optics-tab__detail { display: none; }
.optics__stage { display: block; position: relative; }
.sim {
  --loupe-r: 136px;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  border: 1px solid #313131;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.44);
  touch-action: pan-y;
}
.sim__topbar { top: 16px; left: 16px; right: 16px; }
.sim__loupe-tag { font-size: 0.75rem; }
.stack-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 6;
  display: block;
  width: 360px;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(20, 17, 14, 0.94);
  border: 1px solid rgba(242, 236, 225, 0.18);
  color: var(--paper);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.optics[data-mode="photo"] .stack-card { bottom: 80px; }
.stack-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.stack-card__toggle i {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 320ms var(--ease);
}
.stack-card__toggle i::before,
.stack-card__toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--copper-soft);
}
.stack-card__toggle i::after { transform: rotate(90deg); }
.stack-card__toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.stack-card__diagram { padding-top: 16px; }
.stack-card__diagram[hidden] { display: none; }
.stack-card__meta {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}
.stack-card__lens-thumb {
  width: 64px;
  height: 48px;
  flex: none;
  border-color: rgba(242, 236, 225, 0.18);
}
.stack-card__meta .eyebrow { color: var(--copper-soft); }
.stack-card__copy { font-size: 0.75rem; color: #C9C2B6; }
.stack-card__copy code { background: #313131; color: #AEB4FF; }
.iso-layer.is-highlighted { filter: drop-shadow(0 10px 14px rgba(122, 131, 255, 0.34)); }

/* ---------- Editorial y tagline ---------- */
.tagline__text { max-width: 1040px; font-size: clamp(2.25rem, 6vw, 4.5rem); }

/* ---------- Gente: oficio + historias editoriales ---------- */
.gente { padding-top: 96px; }
.gente__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: stretch;
  margin-top: 48px;
}
.people-photo {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
  box-shadow: 0 24px 64px rgba(20, 17, 14, 0.14);
}
.people-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.people-photo figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(20, 17, 14, 0.88);
  color: var(--paper);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.people-photo figcaption b { font-size: 0.875rem; }
.people-photo figcaption span { font-size: 0.75rem; color: #C9C2B6; text-align: right; }
.gente__stories { display: flex; flex-direction: column; justify-content: center; }
.quotes { display: grid; grid-template-columns: 1fr; margin-top: 0; }
.quote {
  grid-area: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote { font-size: 1.875rem; line-height: 1.2; letter-spacing: -0.03em; }
.quote figcaption {
  margin-top: 32px;
  padding-top: 0;
  border: 0;
  color: var(--copper);
}
.quote-controls { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.quote-controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 320ms var(--ease), color 320ms var(--ease), transform 320ms var(--ease);
}
.quote-controls button:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.quote-controls span { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gente__note { margin-top: 16px; font-size: 0.75rem; color: var(--muted); }

/* ---------- Entregables de marca ---------- */
.kit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Agenda demostrable ---------- */
.agenda .contact { border-radius: 24px; }
.schedule { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.schedule legend,
.schedule__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.schedule legend { margin-bottom: 16px; }
.schedule__label:not(:first-of-type) { margin-top: 16px; }
.schedule__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.schedule__chip {
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease), color 320ms var(--ease), transform 320ms var(--ease);
}
.schedule__chip:hover { border-color: var(--violet); transform: translateY(-2px); }
.schedule__chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #FFFFFF; }
.schedule__summary {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.schedule__demo { margin-top: 8px; font-size: 0.75rem; line-height: 1.5; color: var(--muted); }

/* ---------- Cursor óptico solo sobre fotografía ---------- */
.media-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(242, 236, 225, 0.78);
  box-shadow: 0 0 0 4px rgba(76, 87, 240, 0.2), inset 0 0 16px rgba(76, 87, 240, 0.16);
  backdrop-filter: saturate(1.16) contrast(1.06);
  -webkit-backdrop-filter: saturate(1.16) contrast(1.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}
.media-cursor.is-on { opacity: 1; }
.media-cursor::before,
.media-cursor::after { content: ""; position: absolute; background: rgba(242, 236, 225, 0.72); }
.media-cursor::before { left: 50%; top: 16px; bottom: 16px; width: 1px; }
.media-cursor::after { top: 50%; left: 16px; right: 16px; height: 1px; }

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .media-cursor { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .montura .split { grid-template-columns: 1fr; }
  .montura .split__media { order: -1; }
  .optics__tabs { grid-template-columns: repeat(2, 1fr); }
  .sim { aspect-ratio: 4 / 3; }
  .stack-card { width: 320px; }
  .gente__grid { grid-template-columns: 1fr; gap: 32px; }
  .people-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .people-photo img { object-position: center 32%; }
}

@media (max-width: 600px) {
  .focus__controls { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px; }
  .focus__dial { grid-column: 1; grid-row: auto; margin-inline: auto; }
  .focus__meta,
  .focus__range,
  .focus__scale { grid-column: 1; }
  .focus__scale span:not(:first-child) { display: none; }
  .frame-callout { left: 16px; right: 16px; bottom: 16px; }
  .frame-callout__desc { display: none; }
  .lente { padding-top: 80px; padding-bottom: 80px; }
  .lente__header { grid-template-columns: 1fr; }
  .optics__tabs {
    display: flex;
    gap: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .optics__tabs::-webkit-scrollbar { display: none; }
  .optics-tab { flex: 0 0 76%; scroll-snap-align: start; }
  .sim { --loupe-r: 82px; aspect-ratio: 4 / 5; }
  .stack-card {
    position: relative;
    left: auto;
    bottom: auto !important;
    width: auto;
    margin-top: 16px;
  }
  .sim__uvbar { flex-wrap: wrap; gap: 8px; }
  .sim__uvbar input { min-width: 120px; }
  .people-photo figcaption { align-items: flex-start; flex-direction: column; gap: 4px; }
  .people-photo figcaption span { text-align: left; }
  .quote blockquote { font-size: 1.5rem; }
  .quote-controls { margin-top: 32px; }
  .schedule__chip { flex: 1 1 calc(50% - 8px); }
}
