/* ==========================================================================
   BASE  ·  Reset, tipografía y componentes compartidos por todas las variantes
   (header, botones, formulario, footer, marquesina)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 104px; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.b { font-weight: 700; }
.r { font-weight: 300; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -.01em; }
.brand__mark { width: 34px; height: 34px; object-fit: contain; }
.brand--logo { gap: 8px; }
.brand--logo .brand__mark { width: auto; height: 38px; }
.brand__word { width: auto; height: 20px; margin-top: 4px; }
.nav__links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--fg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body); cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px -8px var(--accent-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--accent-glow); }
.btn--ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); background: var(--surface); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Marquesina (se llena desde config.js) ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Formulario de contacto ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.form textarea { min-height: 110px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form__note { min-height: 22px; margin: 0; font-size: 14px; color: var(--accent-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--fg); border-top: 1px solid var(--line); padding-block: 34px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .brand { font-size: 19px; }
.site-footer .brand__mark { width: 26px; height: 26px; }
.site-footer .brand--logo .brand__mark { width: auto; height: 30px; }
.site-footer .brand__word { height: 16px; margin-top: 3px; }
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer__links a:hover { color: var(--fg); }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .section { padding-block: 76px; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .nav .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
