/* POLOLABS — capa visual sobre el compositor V1 (index.html + v1/assets/app.css). Solo CSS (+ skin-v1.js opcional).
   No toca HTML, contratos de API, autenticación ni cuotas: sobrescribe los tokens de V1 y restila sus clases reales.
   Carga: después de v1/assets/app.css. Depende de system.css (fuentes y marca). */

:root, :root[data-theme="dark"] {
  --bg: #0A0C12; --surface: #11151D; --raised: #1A2030; --border: rgba(230,234,239,.14); --field-border: #76828E;
  --text: #E6EAEF; --muted: #8E9AA6;
  --grad: #DB5227; --on-accent: #0A0C12; --accent-text: #F07A52; --focus: #F07A52;
  --font: "Inter Tight", system-ui, "Segoe UI", Roboto, Arial, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r-card: 18px; --r-input: 10px; --shadow: none;
  --info: #7FB2E5; --info-bg: #082B4D; --info-line: #1C5A94;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #EEF1F4; --surface: #FFFFFF; --raised: #E4E8ED; --border: rgba(10,12,18,.14); --field-border: #5B6672;
  --text: #0A0C12; --muted: #4C5661;
  --grad: #DB5227; --on-accent: #0A0C12; --accent-text: #B63D17; --focus: #B63D17;
  --info: #0B4F86; --info-bg: #E1EEF9; --info-line: #9CC2E4;
}
body { font-family: var(--font); letter-spacing: -.005em; }

/* ---------- cabecera: logo de marca, sin degradado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.accent-line { background: var(--border); opacity: 1; height: 1px; }
.header-row { min-height: 72px; }
.wordmark { font-size: 0; display: block; height: 2.5rem; aspect-ratio: 292.18 / 170.81; background: var(--ember, #DB5227); -webkit-mask: url("../media/brand/logo.svg") center / contain no-repeat; mask: url("../media/brand/logo.svg") center / contain no-repeat; }
.user-avatar { background: #DB5227; color: #0A0C12; }
.icon-btn { border-radius: 999px; }

/* ---------- identidad del módulo: la imagen cambia con Imagen / Vídeo (sin JS) ---------- */
.hero { max-width: none; padding: var(--s7) 0 var(--s6); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6); align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 1rem + 6.2vw, 6.4rem); line-height: .9; letter-spacing: -.05em; font-weight: 600; max-width: 9ch; }
.hero-sub { font-size: 1.0625rem; max-width: 38ch; }
.hero::after { content: ""; grid-column: 2; grid-row: 1 / span 2; align-self: stretch; min-height: 12rem; border-radius: var(--r-card); background: var(--blue-2, #03264A) var(--mod-img, url("../media/img/ui-gallery-800.webp")) center / cover no-repeat; border: 1px solid var(--border); }
body:has(#kindVideo:checked) { --mod-img: url("../media/img/cine-camera-800.webp"); }
body:has(#kindMusic:checked) { --mod-img: url("../media/covers/portada-musica-720.webp"); }
body:has(#kindMusic:checked) .hero::after { background-position: 68% 38%; }
.hero > h1 { grid-column: 1; grid-row: 1; } .hero > .hero-sub { grid-column: 1; grid-row: 2; margin-top: 0; }

/* ---------- superficies, campos, botones ---------- */
.card { border-color: var(--border); }
.field-label, .panel-title { font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
textarea, input[type=text], select { background: var(--raised); border-radius: var(--r-input); }
textarea:focus-visible, input[type=text]:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg { border-radius: 999px; }
.seg input:checked + label { background: #DB5227; color: #0A0C12; }
.btn-primary { border-radius: 999px; font-weight: 650; background: #DB5227; color: #0A0C12; }
.btn-primary:hover:not(:disabled) { filter: none; background: #F0643A; transform: none; }
.btn, .btn-ghost { border-radius: 999px; }
.chip { font-family: var(--mono); font-weight: 400; letter-spacing: .04em; }
.engine-name { font-weight: 600; letter-spacing: -.035em; }
.empty h3 { font-weight: 600; letter-spacing: -.03em; font-size: 1.5rem; }
.flow li::before { font-family: var(--mono); }
.stages i.on { background: #DB5227; }
.prompt-text { font-family: var(--mono); }
.example-chip { border-radius: 999px; }
.site-footer { border-top: 1px solid var(--border); }

/* ---------- escritorio: configuración a la izquierda, resultado a la derecha (sticky) ---------- */
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); }
  .composer-col { position: sticky; top: 88px; max-height: calc(100svh - 104px); overflow: auto; scrollbar-width: thin; border-radius: var(--r-card); }
}

/* ---------- móvil: etapas (Idea · Ajustes · Resultado) con el contexto siempre a mano ---------- */
.stagebar { display: none; }
@media (max-width: 979px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: var(--s5) 0 var(--s4); gap: var(--s4); }
  .hero::after { grid-column: 1; grid-row: 3; min-height: 0; aspect-ratio: 16 / 7; }
  .hero > .hero-sub { grid-row: 2; }
  .hero h1 { max-width: none; font-size: clamp(2.4rem, 13vw, 4rem); }
  .site-footer { padding-bottom: 5rem; }
  .stagebar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .stagebar button { min-height: 56px; background: none; border: 0; border-top: 2px solid transparent; color: var(--muted); font: 400 .75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; display: grid; place-items: center; gap: 2px; }
  .stagebar button b { font-weight: 400; color: inherit; font-size: .6875rem; opacity: .8; }
  .stagebar button[aria-current="step"] { color: var(--text); border-top-color: #DB5227; }
  .stagebar button:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
  .toast { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .001s !important; animation-duration: .001s !important; } }
