/* ─────────────────────────────────────────────
   Taller GC+AM — Base compartida
   Requiere tokens.css antes.
   ───────────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

body {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--negro);
  background-color: var(--papel);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
main { flex: 1; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
::selection { background: var(--azul); color: var(--blanco); }

/* ── Tipografía ── */
.display { font-weight: 500; font-size: var(--t-3xl); line-height: 1; letter-spacing: -.02em; }
.h1      { font-weight: 500; font-size: var(--t-2xl); line-height: 1.05; letter-spacing: -.02em; }
.h2      { font-weight: 500; font-size: var(--t-xl);  line-height: 1.15; letter-spacing: -.01em; }
.lead    { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: var(--t-lg); line-height: 1.6; color: var(--gris-tx); }
.body    { font-size: var(--t-base); font-weight: 400; line-height: 1.8; color: var(--gris-tx); }
.label   { font-family: var(--f-mono); font-size: var(--t-label); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gris-tx); }
.mono    { font-family: var(--f-mono); }
.accent-rule { width: 56px; height: 2px; background: var(--ambar); border: 0; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand img { height: 40px; width: auto; }
@media (max-width: 600px) { .brand img { height: 34px; } }
.site-nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a, .lang button {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gris-tx); text-decoration: none;
  background: none; border: 0; padding: 0 0 2px; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color var(--dur);
}
.nav-links a:hover, .lang button:hover { color: var(--negro); }
.nav-links a[aria-current="page"], .lang button[aria-pressed="true"] { color: var(--negro); border-bottom-color: var(--negro); }
.lang { display: flex; gap: var(--s-4); }

.cta-cotiza {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--negro); text-decoration: none;
  transition: color var(--dur);
}
.cta-cotiza:hover { color: var(--azul); }
.cta-cotiza .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ambar); animation: dotPulse 1.8s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.65); } }

/* ── Footer ── */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--gutter);
  border-top: 1px solid var(--linea);
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: var(--gris-tx);
}
.site-footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--gris-tx); text-decoration: none; transition: color var(--dur); }
.site-footer a:hover { color: var(--azul); }
.footer-social { display: flex; align-items: center; gap: var(--s-5); }

/* ── Íconos (Tabler outline, inline SVG) ── */
.icon {
  width: var(--icon-size); height: var(--icon-size); flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: var(--icon-stroke);
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { --icon-size: 16px; }
.icon--lg { --icon-size: 28px; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-mono); font-size: .65rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 14px 22px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--azul); color: var(--blanco); }
.btn--primary:hover:not(:disabled) { background: var(--azul-dark); }
.btn--accent  { background: var(--ambar); color: var(--negro); }
.btn--accent:hover:not(:disabled) { background: var(--ambar-dark); }
.btn--ghost   { background: var(--blanco); color: var(--negro); border-color: var(--linea); }
.btn--ghost:hover:not(:disabled) { border-color: var(--negro); }
.btn--danger  { background: none; color: var(--rojo); border-color: rgba(166,58,43,.3); }
.btn--danger:hover:not(:disabled) { background: var(--rojo-06); }
.btn--block { width: 100%; }

/* ── Campos ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gris-tx); }
.input {
  width: 100%; padding: 10px 12px;
  background: var(--blanco); border: 1px solid var(--linea);
  font-size: var(--t-base); font-weight: 300; color: var(--negro);
  outline: none; transition: border-color var(--dur);
}
.input:focus { border-color: var(--azul); }
.input::placeholder { color: var(--gris); }
.input[aria-invalid="true"] { border-color: var(--rojo); }
textarea.input { resize: vertical; min-height: 100px; line-height: 1.6; }
.field-note { font-size: var(--t-sm); color: var(--gris-tx); line-height: 1.6; }

/* ── Estados / pills ── */
.pill { display: inline-block; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border: 1px solid var(--linea); color: var(--gris-tx); }
.pill--azul  { color: var(--azul);     border-color: var(--azul-30);          background: var(--azul-06); }
.pill--ambar { color: var(--ambar-tx); border-color: rgba(154,95,14,.35);    background: var(--ambar-10); }
.pill--verde { color: var(--verde);    border-color: rgba(46,107,69,.35);     background: var(--verde-06); }
.pill--rojo  { color: var(--rojo);     border-color: rgba(166,58,43,.35);     background: var(--rojo-06); }

.msg { font-size: var(--t-sm); line-height: 1.6; min-height: 1.6em; }
.msg--ok  { color: var(--verde); }
.msg--err { color: var(--rojo); }

/* ── Utilidades ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fade-up { animation: fadeUp .6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .site-nav { gap: var(--s-5); }
  .site-footer { flex-direction: column; text-align: center; gap: var(--s-3); }
  .footer-social { gap: var(--s-4); }
}

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