/* Encuesta VÍA BIM 2026 — base común (parte pública y panel).
   Marca de viabim.es v2: azul marino y verde del logotipo; Bricolage Grotesque (titulares),
   Instrument Sans (texto) e IBM Plex Mono (numeración de pasos). */

:root {
  --navy: #1b2a6b;
  --navy-deep: #121d4f;
  --navy-ink: #0c1439;
  --green: #6baa2e;
  --green-deep: #4f8a1d;
  --green-soft: #e9f3dd;
  --green-light: #9fd35f;
  --paper: #f6f7f9;
  --white: #ffffff;
  --ink: #161a2b;
  --slate: #5b6478;
  --line: #dde2ec;
  --line-strong: #c3cad9;
  --navy-tint: #eef1f9;
  --error: #b42318;
  --error-soft: #fdf0ee;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .enc-form--oscuro :focus-visible { outline-color: var(--green-light); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 24px;
  border-radius: 999px; border: 1.5px solid transparent; background: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.1; text-decoration: none; text-align: center;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: progress; opacity: .7; }
.btn-primario { background: var(--green); color: var(--navy-ink); font-weight: 700; }
.btn-primario:hover:not(:disabled) { background: var(--green-light); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-deep); }
.btn-fantasma { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-fantasma:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-contorno { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.btn-contorno:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.btn-texto { padding-left: 6px; padding-right: 6px; color: var(--navy); }
.btn-texto:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-grande { min-height: 56px; padding: 16px 30px; font-size: 17px; }
.btn-peque { min-height: 36px; padding: 8px 14px; font-size: 14px; }

/* ---------- campos ---------- */
.campo {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff;
  font-size: 17px; line-height: 1.45; transition: border-color .15s, box-shadow .15s;
}
.campo:hover { border-color: var(--slate); }
.campo:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 42, 107, .18); }
textarea.campo { resize: vertical; min-height: 140px; }

/* ---------- cabecera blanca con el logotipo oficial ---------- */
.cab { background: #fff; border-bottom: 1px solid var(--line); }
.cab-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cab-logo { height: 26px; width: auto; }
.idiomas { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.idiomas button {
  min-width: 44px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--slate);
}
.idiomas button:hover { color: var(--navy); }
.idiomas button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- pantallas azules: bienvenida, estados y agradecimiento ---------- */
.pantalla { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--navy-ink); }
.hero {
  flex: 1; color: #fff; padding: clamp(48px, 9vh, 104px) 24px clamp(56px, 10vh, 112px);
  background: radial-gradient(1100px 620px at 12% 18%, rgba(27, 42, 107, .95), transparent 62%), var(--navy-ink);
}
.hero-in { max-width: 820px; margin: 0 auto; }
.hero-evento { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.hero-evento::before { content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: var(--green); }
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02;
  letter-spacing: -.03em; text-wrap: balance; margin-bottom: 24px;
}
.hero h1:focus { outline: none; }
.hero .lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: rgba(255, 255, 255, .8); max-width: 62ch; margin-bottom: 30px; }
.hero-datos { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.hero-datos li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: rgba(255, 255, 255, .9); }
.hero-datos li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(107, 170, 46, .2); }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-priv {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); max-width: 74ch;
  font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .68);
}
.hero-priv a { color: #fff; text-underline-offset: 3px; }

/* ---------- pie con los organizadores ---------- */
.pie { background: #fff; border-top: 1px solid var(--line); }
.pie-in { max-width: 1120px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 14px; color: var(--slate); }
.pie-logos { display: flex; align-items: center; gap: 20px; }
.pie-logos img { height: 40px; width: auto; }
.pie-enlace { margin-left: auto; color: var(--slate); text-underline-offset: 3px; }
.pie-enlace:hover { color: var(--navy); }

/* ---------- varios ---------- */
.demo-banda { background: var(--green-soft); color: var(--navy-deep); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }
.cargando, .sin-js { padding: 48px 24px; text-align: center; color: var(--slate); }
.entra { animation: entra .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .entra { animation: none; } *, *::before, *::after { transition: none !important; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cab-in { height: 60px; padding: 0 16px; }
  .cab-logo { height: 20px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero-acciones .btn { width: 100%; }
  .pie-in { padding: 18px 16px; }
  .pie-enlace { margin-left: 0; width: 100%; }
  .pie-logos img { height: 34px; }
}
