/* yohual-theme.css — estética "Trayectorias" para el simulador QS.
   Solo sobrescribe variables y tipografía del tema oscuro (por defecto).
   Los temas sepia y claro quedan intactos (accesibilidad). */

:root:not([data-theme="sepia"]):not([data-theme="light"]) {
  --bg:        #04060c;
  --surface:   #0b0f1a;
  --border:    #1b2236;
  --fg:        #ece8de;
  --fg-muted:  #a6aebf;
  --fg-dim:    #7d869c;
  --navy:      #0b1224;

  /* acento principal: dorado solar (antes teal) */
  --teal:      #e6c590;
  --teal-soft: rgba(230,197,144,.12);
  /* referencia / ganadores: azul de estrella */
  --amber:      #9ec5ff;
  --amber-soft: rgba(158,197,255,.12);
  /* competencia: violeta de nebulosa */
  --rose:      #c7a6f0;
  --rose-soft: rgba(199,166,240,.12);

  --c-project:    #e6c590;
  --c-gold:       #9ec5ff;
  --c-competitor: #c7a6f0;

  --radius:    10px;
  --radius-lg: 18px;
  --shadow:    0 1px 2px rgba(0,0,0,.35), 0 8px 28px rgba(0,0,0,.35);
}

html { background: #04060c; }

/* El cuerpo deja ver el cielo (canvas fijo detrás) */
:root:not([data-theme="sepia"]):not([data-theme="light"]) body {
  background: transparent;
}

#yohual-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
:root[data-theme="sepia"] #yohual-sky,
:root[data-theme="light"] #yohual-sky { display: none; }

/* Tipografía */
body, button, input, select, textarea {
  font-family: 'Hanken Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
}
h1, h2, h3, .serif {
  font-family: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: .005em;
}

::selection { background: rgba(230,197,144,.28); }
:focus-visible { outline: 2px solid #e6c590; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ═════════ Pantalla de acceso (#authScreen) ═════════ */
:root:not([data-theme="sepia"]):not([data-theme="light"]) { --yh-glass: rgba(11,15,26,.62); }

.yh-gate {
  position: fixed; inset: 0; z-index: 8888;
  display: flex; padding: 24px; overflow-y: auto;
  background: var(--bg);
}
:root:not([data-theme="sepia"]):not([data-theme="light"]) .yh-gate { background: transparent; }
.yh-gate [hidden] { display: none !important; }

.yh-gate-inner { width: 100%; max-width: 520px; margin: auto; animation: yhIn .9s ease both; }
.yh-eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 18px; }
.yh-title { font-size: clamp(2.1rem, 6vw, 3.3rem); line-height: 1.05; margin: 0 0 16px; color: var(--fg); }
.yh-title em { color: var(--teal); font-style: italic; }
.yh-lead { color: var(--fg-muted); font-size: 1rem; line-height: 1.6; margin: 0 0 18px; }

.yh-constellation { display: block; width: 100%; max-width: 320px; height: 36px; margin: 0 0 22px; overflow: visible; }
.yh-const-line { fill: none; stroke: var(--teal); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 1; animation: yhDraw 2.4s .4s ease both; }
.yh-const-dot  { fill: var(--teal); animation: yhFade .6s ease both; }

.yh-card {
  background: var(--yh-glass, var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.yh-step { display: flex; flex-direction: column; gap: 14px; }
.yh-center { text-align: center; align-items: stretch; }
.yh-label { display: block; font-size: .8rem; color: var(--fg-muted); margin-bottom: 6px; }
.yh-input {
  width: 100%; box-sizing: border-box; padding: 11px 13px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: rgba(4,6,12,.55); color: var(--fg); font: inherit; font-size: .95rem;
}
:root[data-theme="sepia"] .yh-input, :root[data-theme="light"] .yh-input { background: var(--bg); }
.yh-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.yh-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.5; color: var(--fg-muted); cursor: pointer; }
.yh-consent input { margin-top: 3px; accent-color: var(--teal); flex: none; }
.yh-consent strong { color: var(--fg); font-weight: 600; }
.yh-btn {
  width: 100%; padding: 12px 20px; border-radius: var(--radius); border: 0; cursor: pointer;
  background: var(--teal); color: #1a1408; font: inherit; font-weight: 600; font-size: .95rem;
  transition: filter .18s ease, transform .18s ease;
}
.yh-btn:hover { filter: brightness(1.08); }
.yh-btn:active { transform: translateY(1px); }
.yh-btn-ghost { background: none; border: 1px solid var(--border); color: var(--fg-muted); font-weight: 500; font-size: .85rem; padding: 9px 16px; }
.yh-error { font-size: .8rem; color: var(--rose); margin: 0; text-align: center; }
.yh-step2-title { font-size: 1.8rem; margin: 0; color: var(--fg); }
.yh-muted { color: var(--fg-muted); font-size: .9rem; margin: 0; }
.yh-small { color: var(--fg-dim); font-size: .75rem; margin: 0; }
.yh-legal { font-size: .72rem; line-height: 1.6; color: var(--fg-dim); margin: 16px 2px 0; }
.yh-legal a { color: var(--fg-muted); text-underline-offset: 3px; }
.yh-legal a:hover { color: var(--teal); }

@keyframes yhIn   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes yhDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes yhFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .yh-gate-inner, .yh-const-line, .yh-const-dot { animation: none !important; }
}
