:root {
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --paper: #fbf8f3;
  --sand: #f1ebe0;
  --navy: #15233d;
  --terracotta: #b5532f;
  --terracotta-dark: #96421f;
  --line: #e2d9ca;
  --serif: "Times New Roman", Times, serif;
  --sans: "Times New Roman", Times, serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Language switching: both languages are in the HTML, one is shown */
html[data-lang="en"] [lang="es"],
html[data-lang="es"] [lang="en"] { display: none !important; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 243, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--navy); }
.brand-sub { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); }
.nav { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--navy); }
.nav-cta { color: var(--terracotta) !important; font-weight: 600; }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button { font: 600 0.8rem var(--sans); letter-spacing: 0.06em; border: 0; background: transparent; color: var(--ink-soft); padding: 7px 12px; cursor: pointer; }
.lang-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font: 600 0.98rem var(--sans); padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* Hero */
.hero { background:
  radial-gradient(1200px 500px at 85% -10%, rgba(181, 83, 47, 0.14), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(21, 35, 61, 0.10), transparent 60%),
  var(--paper); padding: 96px 0 80px; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); max-width: 16ch; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.5rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }
.hero-facts span { color: var(--ink-soft); font-size: 0.95rem; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--navy); color: #e8e4dc; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #e3a284; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card p { color: var(--ink-soft); margin: 0; }
.card-num { font-family: var(--serif); font-size: 1.1rem; color: var(--terracotta); margin-bottom: 10px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: step; border-top: 2px solid var(--terracotta); padding-top: 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 2rem; color: var(--terracotta); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

.about { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.about p { color: var(--ink-soft); max-width: 62ch; }
.about-mark { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy), #2c3f63 60%, var(--terracotta)); display: grid; place-items: center; }
.about-photo { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: var(--radius); display: block; }
.about-mark span { font-family: var(--serif); font-size: 5rem; color: rgba(255, 255, 255, 0.9); letter-spacing: 0.05em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-intro p { color: #c9c4ba; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { margin-bottom: 10px; }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); font-size: 1.05rem; }
.contact-list a:hover { border-color: #e3a284; }
.office { font-style: normal; margin-top: 24px; color: #c9c4ba; line-height: 1.6; }
.office a { color: #fff; text-decoration: none; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field .req { color: var(--terracotta); margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field-help { font-size: 0.85rem; color: var(--ink-soft); margin: 6px 0 0; }
.field-error { font-size: 0.85rem; color: #c0392b; margin: 6px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: #c0392b; font-size: 0.92rem; }
.form-done { font-size: 1.1rem; color: var(--navy); padding: 12px 0; }
.form-done p { margin: 0 0 8px; }
.muted { color: var(--ink-soft); }

/* Footer */
.footer { background: #0f1a2e; color: #a8a49c; font-size: 0.85rem; padding: 48px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin: 0 0 4px; }
.footer p { margin: 0 0 10px; }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.hero-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); box-shadow: 0 24px 60px rgba(21, 35, 61, 0.18); }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.gallery figure { margin: 0; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); display: block; background: var(--sand); }
.gallery figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 10px; }

.focus-tags { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.focus-tags li { border: 1px solid var(--terracotta); color: var(--terracotta); border-radius: 999px; padding: 6px 16px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; background: rgba(255, 255, 255, 0.6); }

@media (max-width: 900px) {
  .nav { display: none; }
  .cards, .contact, .about, .footer-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-mark, .about-photo { max-width: 320px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 56px; }
  .hero-facts, .steps, .field-row, .gallery { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .form-card { padding: 24px; }
}