:root {
  --beige: #f2eadf;
  --wood: #79563b;
  --olive: #53634a;
  --cream: #fffcf6;
  --graphite: #343434;
  --line: #e2d8c8;
  --wa: #25d366;
  --wa-ink: #0b3d1f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", Arial, sans-serif;
  color: var(--graphite);
  background: var(--cream);
  line-height: 1.6;
}
h1, h2, h3, .brand-name { font-family: Lora, Georgia, serif; }
img { max-width: 100%; display: block; }
a { color: var(--wood); }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--graphite); color: var(--cream);
  padding: 10px 14px; border-radius: 8px; z-index: 60;
}
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 252, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite); }
.mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.8; }
.nav { display: none; gap: 22px; font-weight: 700; font-size: 0.9rem; }
.nav a { text-decoration: none; color: var(--graphite); }
.nav a:hover { color: var(--wood); }
.menu-btn {
  border: 1px solid var(--line); background: var(--cream); border-radius: 8px;
  font-size: 1.1rem; padding: 6px 10px; cursor: pointer; color: var(--graphite);
}
.nav-movil { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 8px 16px 14px; }
.nav-movil a { padding: 12px 0; font-weight: 700; text-decoration: none; color: var(--graphite); }
@media (min-width: 800px) {
  .nav { display: flex; }
  .menu-btn, .nav-movil { display: none; }
}

/* Hero */
.hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(52,52,52,0.15), rgba(52,52,52,0.72)); }
.hero-content { color: var(--cream); padding: 120px 16px 56px; }
.badge { display: inline-block; background: rgba(255,252,246,0.18); border-radius: 999px; padding: 5px 14px; font-size: 0.85rem; font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin: 12px 0 0; max-width: 720px; line-height: 1.15; }
.hero p { max-width: 520px; margin: 16px 0 0; font-size: 1.05rem; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 12px 20px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 0.95rem; font-family: inherit;
}
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { filter: brightness(0.95); }
.btn-ghost { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-ghost:hover { background: var(--cream); color: var(--graphite); }
.btn-soft { background: var(--beige); color: var(--wood); }
.btn:not(.btn-ghost):not(.btn-wa) { background: var(--wood); color: var(--cream); }

/* Sections */
.section { padding: 72px 0; }
.section-beige { background: var(--beige); }
.section-olive { background: var(--olive); color: var(--cream); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem; font-weight: 700; color: var(--wood); margin: 0; }
.section-olive .eyebrow { color: var(--beige); }
.section-head h2, .split h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 8px 0 0; }
.lead { color: #6b6257; }
.section-olive .lead { color: var(--beige); }

.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(52,52,52,0.06); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { margin: 0 0 8px; font-size: 1.25rem; }
.card-body p { margin: 0 0 16px; color: #6b6257; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: rgba(255,252,246,0.12); border-radius: 16px; padding: 20px; }
.steps .num { font-family: Lora, Georgia, serif; font-size: 2rem; opacity: 0.6; }
.steps h3 { margin: 6px 0; font-size: 1.15rem; }
.steps p { margin: 0; opacity: 0.92; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.map-box { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 24px; background: var(--beige); }

.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: #6b6257; }

/* Form */
form { display: grid; gap: 16px; }
.row { display: grid; gap: 16px; }
@media (min-width: 720px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--graphite);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--wood); outline-offset: 1px; }
.field .err { color: #a32a2a; font-size: 0.82rem; min-height: 1em; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a32a2a; }
.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; }
.check input { margin-top: 4px; }
.note { font-size: 0.82rem; color: #6b6257; margin: 0; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; }
.alert-error { background: #fbeaea; border: 1px solid #e6b3b3; color: #8d2222; }
.alert-ok { background: #eaf6ec; border: 1px solid #b7dcbe; color: #1f5c2c; }

/* Footer */
.site-footer { background: var(--graphite); color: var(--cream); }
.footer-grid { display: grid; gap: 28px; padding: 52px 16px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand .brand-name, .footer-brand .brand-sub { color: var(--cream); }
.site-footer h2 { font-size: 1.05rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.site-footer a { color: var(--cream); }
.foot-note { font-size: 0.9rem; opacity: 0.85; }
.foot-bar { border-top: 1px solid rgba(255,252,246,0.15); padding: 18px 16px; text-align: center; font-size: 0.78rem; opacity: 0.75; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: var(--wa-ink); border-radius: 999px; padding: 14px 16px;
  text-decoration: none; font-weight: 700; box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}
.wa-float span { display: none; }
@media (min-width: 640px) { .wa-float span { display: inline; } }
.wa-float:hover { transform: scale(1.04); }
