/* ============================================================
   Hub del probador virtual (borrador): puerta de entrada a /vision/
   Dos botones grandes: "Probar anteojos" y "Para proveedores de armazones".
   Público: clientes de ópticas (cualquier edad) y proveedores (~60 años).
   Cuerpo ≥ 18 px, botones ≥ 56 px, contraste AA, una columna en celular, sin JavaScript.
   Tokens compartidos con proveedores.css (landing de Ingeniería Digital SAS).
   ============================================================ */

:root {
  --navy:        #090D17;
  --navy-2:      #0E1424;
  --navy-3:      #161E33;
  --line-dark:   rgba(159, 178, 214, 0.14);
  --line-dark-2: rgba(159, 178, 214, 0.28);

  --paper:       #ECEEF2;
  --amber:       #E3A53A;
  --amber-soft:  #F0BE58;

  --ink:         #0C1120;
  --snow:        #EEF1F6;
  --snow-soft:   #B4BDD2;

  --display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:   "Instrument Serif", Georgia, "Times New Roman", serif;
  --body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:    ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 720px;
  --gutter: 16px;
  --fs: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--body);
  background: var(--navy);
  color: var(--snow);
  line-height: 1.6;
  font-size: var(--fs);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

::selection { background: var(--amber); color: var(--navy); }
a { color: inherit; }
a:not(.btn) { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:not(.btn):hover { color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Cabecera ---------- */
.site-header {
  background: rgba(9, 13, 23, 0.94); border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand {
  font-family: var(--display); font-weight: 700; font-size: 19px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; min-width: 0;
}
.brand .glyph { width: 22px; height: 22px; position: relative; flex: none; }
.brand .glyph::before, .brand .glyph::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--amber); }
.brand .glyph::after { transform: rotate(45deg) scale(0.62); border-color: var(--snow-soft); }

/* ---------- Grilla tipo plano ---------- */
.blueprint { position: relative; background-color: var(--navy); }
.blueprint::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none; opacity: 0.8;
}
.blueprint > * { position: relative; }

/* ---------- Hero / puerta ---------- */
.hero {
  flex: 1; display: flex; align-items: center;
  padding: 40px 0 48px; overflow: hidden;
  background: radial-gradient(120% 90% at 80% -10%, #14213C 0%, transparent 55%), radial-gradient(90% 80% at 0% 110%, #11182B 0%, transparent 50%), var(--navy);
}
h1 {
  font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em;
  font-size: clamp(2.2rem, 8.5vw, 3.6rem); margin: 16px 0 16px; text-wrap: balance;
}
h1 .serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; color: var(--amber); }
.sub { font-size: 1.05em; color: var(--snow); max-width: 30em; text-wrap: pretty; }

/* ---------- Dos botones grandes ---------- */
.puertas { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.btn {
  font-family: var(--body); font-weight: 600; font-size: 20px; text-decoration: none;
  min-height: 72px; padding: 16px 22px; border-radius: 14px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; text-align: center;
  border: 1px solid transparent; cursor: pointer; line-height: 1.25;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 36px; height: 36px; flex: none; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-soft); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-dark-2); color: var(--snow); background: rgba(14, 20, 36, 0.6); }
.btn-ghost:hover { border-color: var(--snow-soft); background: rgba(255, 255, 255, 0.06); }
.btn:active { transform: scale(0.985); }

.ayuda { margin-top: 24px; font-size: 18px; line-height: 1.5; color: var(--snow-soft); max-width: 34em; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line-dark); padding: 28px 0 36px; background: var(--navy); }
.foot { display: flex; flex-direction: column; gap: 8px; font-size: 18px; color: var(--snow-soft); }
.foot .fbrand { color: var(--snow); font-family: var(--display); font-weight: 700; font-size: 18px; }
.foot a { display: inline-flex; align-items: center; min-height: 52px; }

/* ---------- Pantallas medianas y grandes ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero { padding: 64px 0 72px; }
  .foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --fs: 19px; }
  .btn { font-size: 21px; min-height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
