:root {
  --bg: #ffffff;
  --bg-soft: #fbf8f3;
  --cream: #f7f3ea;
  --text: #1c1410;
  --muted: #65584f;
  --border: #ece4d8;
  --brand: #f06522;
  --primary: #c9490f;
  --primary-dark: #b5410c;
  --tint: #fdf1ea;
  --whatsapp: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 20, 16, .06), 0 8px 24px rgba(28, 20, 16, .06);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img, svg { max-width: 100%; }
a { color: var(--primary-dark); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }

/* Language toggle: English is the default, Spanish shown when html has .es */
html:not(.es) body [lang="es"] { display: none !important; }
html.es body [lang="en"] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.brand-logo { height: 40px; width: auto; border-radius: 9px; display: block; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: .93rem;
  padding: 8px 10px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--tint); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font: inherit; font-weight: 600; font-size: .85rem;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.menu-btn {
  display: none; border: 1px solid var(--border); background: #fff;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; color: var(--text);
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #178a45; color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  background:
    radial-gradient(800px 400px at 90% -10%, rgba(240, 101, 34, .18), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(240, 101, 34, .08), transparent 60%),
    var(--bg-soft);
  padding: 72px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-dark); background: var(--tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.operated-by {
  margin-top: 28px; font-size: .95rem; color: var(--muted);
  border-left: 3px solid var(--brand); padding-left: 12px;
}
.operated-by strong { color: var(--text); }
.hero-art {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.hero-art .tile {
  aspect-ratio: 1; border-radius: 20px; background: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--primary);
}
.hero-art .tile:nth-child(2), .hero-art .tile:nth-child(3) { color: var(--text); background: var(--cream); }
.hero-art .tile svg { width: 46%; height: 46%; }
@media (max-width: 820px) {
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; }
}

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .section { padding: 52px 0; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--primary); margin-bottom: 16px;
}
.icon.teal { background: var(--cream); color: var(--text); }
.icon svg { width: 26px; height: 26px; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 24px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .9rem;
  display: grid; place-items: center;
}

.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.facts li:last-child { border-bottom: 0; }
.facts .k { min-width: 120px; color: var(--muted); font-size: .92rem; }
.facts .v { font-weight: 600; word-break: break-word; }

.cta-band {
  background: linear-gradient(135deg, var(--primary), #a93c0b);
  color: #fff; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap;
  gap: 20px; align-items: center; justify-content: space-between;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .85; }
@media (max-width: 600px) { .cta-band { padding: 28px 20px; } }

/* Legal / document pages */
.page-head { background: var(--bg-soft); padding: 52px 0 40px; border-bottom: 1px solid var(--border); }
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--muted); margin: 0; }
.updated { display: inline-block; margin-top: 14px; font-size: .88rem; color: var(--muted); background: #fff; border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; }
.doc { max-width: 780px; padding: 48px 16px 72px; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; padding-top: .2em; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #2b3a4e; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: .35em 0; }
.callout {
  background: var(--tint); border: 1px solid #f6d3bf; border-radius: var(--radius);
  padding: 18px 20px; margin: 24px 0;
}
.callout p { margin: 0; }
.address-block { font-style: normal; line-height: 1.7; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon { margin: 0; flex: none; }
.contact-item .label { font-size: .85rem; color: var(--muted); }
.contact-item .value { font-weight: 600; word-break: break-word; }
.contact-item .value a { color: var(--text); text-decoration: none; }
.contact-item .value a:hover { color: var(--primary); }

/* Footer */
.site-footer { background: var(--text); color: #d9cfc4; padding: 52px 0 28px; font-size: .93rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #3a2e27; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: #a89a8e; }

.compliance { display: flex; gap: 16px; align-items: flex-start; margin: 18px 0 0; }
.compliance .icon { margin: 0; flex: none; background: #fff; }
.compliance h3 { margin-bottom: .25em; }
.compliance p { color: var(--text); }
