:root {
  --bg: #FAFAF7;
  --bg-alt: #F3F3EE;
  --text: #1A1A1A;
  --text-muted: #5C5C5C;
  --accent: #2D6A4F;
  --accent-hover: #1B4332;
  --accent-light: #E8F0EC;
  --surface: #FFFFFF;
  --border: #E0E0DC;
  --radius: 6px;
  --radius-lg: 10px;
  --maxw: 680px;
  --maxw-wide: 920px;
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
}

/* ── Fonts ── */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/DMSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/DMSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/InstrumentSerif-Italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/InstrumentSerif-Italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

/* ── Layout ── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.header-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.header-cta:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 30em;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.btn-submit {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s;
  text-align: center;
}
.btn-submit:hover { background: var(--accent-hover); }

/* ── Sections ── */
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--border); }

h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.section-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 32em;
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  transition: background 0.15s;
}
.card:hover {
  background: var(--bg-alt);
}
.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.card-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

/* ── Process ── */
.process { counter-reset: step; }
.process li {
  list-style: none;
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}
.process li:last-child { border-bottom: none; }
.process li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ── Contact ── */
.contact-section { background: var(--bg-alt); }
form { max-width: 460px; margin: 0 auto; }
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { text-align: center; margin-top: 1.25rem; }
.fallback {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.cf-turnstile { display: flex; justify-content: center; margin: 1rem 0; }

/* ── Footer ── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Generic pages (gracias, 404) ── */
.page-simple { padding: 5rem 0; text-align: center; }
.page-simple h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.page-simple p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* ── Email obfuscation ── */
.email-obf { cursor: pointer; }
.obf-at, .obf-dot { font-style: italic; opacity: 0.5; font-size: 0.85em; user-select: none; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 2.5rem 0; }
  .services-grid { grid-template-columns: 1fr; border-radius: var(--radius); }
  .card { padding: 1.25rem; }
}
