/* Reach Local — Sistema de diseño */
:root {
  --bg: #F6F1E8;          /* crema cálido */
  --bg-2: #EFE7D7;
  --paper: #FFFEFB;
  --ink: #161413;         /* casi negro, cálido */
  --ink-2: #3A332E;
  --muted: #847A6E;
  --line: #E0D6C2;
  --line-2: #C9BBA1;

  --accent: #FF5B26;      /* naranja vibrante */
  --accent-deep: #E8420F;
  --lime: #C5F45A;        /* verde lima validación */
  --sky: #B7DCE9;         /* celeste suave */
  --rose: #F4D5C7;        /* salmón pastel */

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-lg: 24px;

  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section { padding: 100px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* Tipografía */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}
h1 { font-size: clamp(56px, 9vw, 128px); }
h2 { font-size: clamp(40px, 6vw, 80px); }
h3 { font-size: clamp(28px, 3.5vw, 44px); }
h4 { font-size: clamp(22px, 2.4vw, 30px); }

p { color: var(--ink-2); }
.lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; max-width: 56ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--ink-2);
}

.italic { font-style: italic; color: var(--accent); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--ink-2); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translate(4px, -4px); }

.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(10px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--maxw); margin: 0 auto;
}
@media (max-width: 720px) { .nav { padding: 16px 20px; } }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 22px;
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
}

.nav-links {
  display: flex; gap: 32px;
  list-style: none;
  font-size: 15px;
}
.nav-links a {
  position: relative; color: var(--ink-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 12px 22px; font-size: 14px; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--ink);
}
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: grid; place-items: center; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: none; flex-direction: column;
  padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 40px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 32px; align-self: flex-start; }

/* Tags / Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: var(--paper); border: 1px solid var(--line);
}
.pill.lime { background: var(--lime); border-color: transparent; }
.pill.sky { background: var(--sky); border-color: transparent; }
.pill.rose { background: var(--rose); border-color: transparent; }
.pill.dark { background: var(--ink); color: var(--paper); border-color: transparent; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(22,20,19,0.25);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.site-footer h2 {
  color: var(--paper);
  font-size: clamp(48px, 8vw, 120px);
  margin-bottom: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h5 {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer ul a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer .meta {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 16px;
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.in { opacity: 1; transform: none; }

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 28px 0;
}
.marquee-track {
  display: flex; gap: 64px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  color: var(--ink);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track span::after {
  content: "★"; color: var(--accent); font-size: 0.7em;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Forms */
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field label {
  font-size: 13px; font-weight: 500;
  color: var(--ink);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--sans); font-size: 15px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err {
  display: none; font-size: 12px; color: var(--accent-deep);
}
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea {
  border-color: var(--accent-deep);
}

/* Page hero */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero .crumb {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); margin-bottom: 24px;
  letter-spacing: 0.06em;
}
.page-hero .crumb a { color: var(--accent); }
