/* Guata · marca. Letras, colores, escalas y botones que comparten el sitio, la encuesta y la app.
   Se carga antes que sitio.css o styles.css: lo que se cambia acá se ve igual en todas las páginas. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* Espaciado: 4 8 12 16 24 32 48 64 96 128 */
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px; --e8: 64px; --e9: 96px; --e10: 128px;
  /* Tipografía: 12 14 16 18 20 24 30 36 48 60 72 */
  --t12: 0.75rem; --t14: 0.875rem; --t16: 1rem; --t18: 1.125rem; --t20: 1.25rem; --t24: 1.5rem; --t30: 1.875rem; --t36: 2.25rem; --t48: 3rem; --t60: 3.75rem; --t72: 4.5rem;
  --radio: 20px; --radio-chico: 12px; --radio-grande: 28px; --pastilla: 999px;

  /* Colores del logo, en HSL */
  --noche: hsl(210, 70%, 9%);
  --azul-900: hsl(207, 92%, 22%);
  --azul-700: hsl(209, 96%, 38%);
  --azul-100: hsl(206, 82%, 94%);
  --turquesa: hsl(179, 80%, 27%);
  --turquesa-claro: hsl(170, 75%, 72%);
  --sol: hsl(37, 100%, 63%);
  --sol-suave: hsl(39, 100%, 93%);
  --sol-texto: hsl(30, 90%, 30%);
  --rojo: hsl(0, 51%, 44%);
  --charla: hsl(184, 79%, 25%);

  /* Roles (modo claro) */
  --fondo: hsl(200, 40%, 97%);
  --superficie: #fff;
  --hundido: hsl(204, 40%, 94%);
  --tinta: hsl(211, 70%, 13%);
  --tinta-suave: hsl(210, 20%, 34%);
  --linea: hsl(204, 30%, 87%);
  --marca: var(--azul-700);
  --marca-suave: var(--azul-100);
  --boton: var(--azul-900);
  --boton-hover: var(--azul-700);
  --boton-texto: #fff;
  --elegido: var(--azul-900);
  --elegido-texto: #fff;
  --ok: hsl(152, 50%, 28%);
  --peligro: var(--rojo);
  --sobre-foto: #fff;
  --sobre-foto-suave: hsl(200, 50%, 90%);

  --sombra-1: 0 1px 3px hsla(211, 60%, 12%, 0.12);
  --sombra-2: 0 4px 6px hsla(211, 60%, 12%, 0.1);
  --sombra-3: 0 5px 15px hsla(211, 60%, 12%, 0.14);
  --sombra-4: 0 10px 24px hsla(211, 60%, 12%, 0.18);
  --sombra-5: 0 15px 35px hsla(211, 60%, 12%, 0.28);

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texto: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rapido: 160ms; --medio: 260ms; --lento: 520ms;
  --curva: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: hsl(210, 60%, 6%); --superficie: hsl(209, 50%, 10%); --hundido: hsl(208, 45%, 14%);
    --tinta: hsl(206, 33%, 93%); --tinta-suave: hsl(207, 20%, 72%); --linea: hsl(208, 38%, 20%);
    --marca: hsl(208, 89%, 66%); --marca-suave: hsl(207, 64%, 16%);
    --sol-suave: hsl(39, 57%, 14%); --sol-texto: hsl(39, 100%, 72%);
    --boton: hsl(39, 100%, 63%); --boton-hover: hsl(39, 100%, 72%); --boton-texto: hsl(210, 70%, 9%);
    --elegido: hsl(208, 89%, 66%); --elegido-texto: hsl(210, 70%, 9%);
    --ok: hsl(150, 45%, 62%); --peligro: hsl(0, 75%, 74%);
    --sombra-1: 0 1px 3px hsla(0, 0%, 0%, 0.45); --sombra-3: 0 5px 15px hsla(0, 0%, 0%, 0.45);
    --sombra-4: 0 10px 24px hsla(0, 0%, 0%, 0.5); --sombra-5: 0 15px 35px hsla(0, 0%, 0%, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; }

/* ---------- La marca: logo y nombre ---------- */
.marca { display: inline-flex; align-items: center; gap: var(--e3); color: inherit; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: var(--t24); letter-spacing: -0.03em; }
.marca img { width: 36px; height: 36px; transition: transform var(--lento) var(--curva); }
.marca:hover img { transform: rotate(-12deg) scale(1.08); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--e2); min-height: 52px; padding: 0 var(--e5); border-radius: var(--pastilla); border: 0; font: inherit; font-size: var(--t18); font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform var(--rapido) var(--curva), box-shadow var(--rapido), background var(--rapido), color var(--rapido), border-color var(--rapido); }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--medio) var(--curva); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg.flecha { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sol { background: var(--sol); color: var(--noche); box-shadow: 0 8px 24px hsla(37, 100%, 50%, 0.35); }
.btn-sol:hover { box-shadow: 0 12px 28px hsla(37, 100%, 50%, 0.45); }
.btn-primario { background: var(--boton); color: var(--boton-texto); box-shadow: var(--sombra-2); }
.btn-primario:hover { background: var(--boton-hover); box-shadow: var(--sombra-3); }
.btn-secundario { background: var(--superficie); color: var(--tinta); border: 1.5px solid var(--linea); }
.btn-secundario:hover { border-color: var(--marca); color: var(--marca); }
.btn-claro { background: hsla(0, 0%, 100%, 0.12); color: #fff; }
.btn-claro:hover { background: hsla(0, 0%, 100%, 0.2); }
.btn-chico { min-height: 44px; padding: 0 var(--e4); font-size: var(--t16); }
.btn-chico svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

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

/* ---------- Crédito: quién hizo Guata ---------- */
.credito { display: inline-flex; align-items: center; gap: var(--e1); font-size: var(--t14); color: inherit; text-decoration: none; }
.credito b { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness var(--rapido); }
.credito:hover b { text-decoration-thickness: 2px; }
