:root {
  --bg: #f7f3ed;
  --surface: #fffaf3;
  --ink: #202326;
  --muted: #6f6b64;
  --line: rgba(32, 35, 38, .12);
  --accent: #bd6745;
  --accent-soft: #ead7c7;
  --shadow: 0 24px 70px rgba(32, 35, 38, .10);
  --radius: 28px;
  --container: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(189, 103, 69, .12), transparent 32rem),
    linear-gradient(180deg, #fffaf3 0%, var(--bg) 45%, #f2ece3 100%);
  line-height: 1.62;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(32,35,38,.06); padding: .12rem .34rem; border-radius: .45rem; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 12px; background: var(--ink); color: white; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: rgba(255, 250, 243, .80); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 12px 35px rgba(32,35,38,.06); background: rgba(255, 250, 243, .92); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand img { width: 220px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .92rem; color: var(--muted); }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--ink); }
.header-cta, .btn { border-radius: 999px; padding: 13px 20px; font-weight: 800; letter-spacing: -.01em; }
.header-cta { background: var(--ink); color: #fffaf3; font-size: .92rem; white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--ink); }
.hero { padding: 88px 0 70px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 58px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 900; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.65rem, 4.8vw, 4.65rem); line-height: 1.04; letter-spacing: -.05em; max-width: 760px; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 3.4vw, 3.45rem); line-height: 1.06; letter-spacing: -.045em; max-width: 820px; margin-bottom: 18px; }
h3 { letter-spacing: -.025em; }
.lead { font-size: clamp(1.08rem, 1.55vw, 1.24rem); max-width: 690px; color: var(--muted); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; border: 1px solid var(--line); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.btn:hover, .header-cta:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: #fffaf3; border-color: var(--ink); box-shadow: 0 16px 34px rgba(32,35,38,.14); }
.btn.secondary { background: rgba(255, 250, 243, .72); color: var(--ink); }
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; max-width: 760px; }
.proof-strip div { border-top: 1px solid var(--line); padding-top: 16px; }
.proof-strip dt { font-weight: 900; }
.proof-strip dd { margin: 3px 0 0; color: var(--muted); font-size: .95rem; }
.hero-media { position: relative; min-height: 560px; border-radius: calc(var(--radius) + 10px); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.hero-media > img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, rgba(32,35,38,.70) 100%); pointer-events: none; }
.hero-card { position: relative; overflow: hidden; padding: 36px; border-radius: var(--radius); background: rgba(255, 250, 243, .74); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; inset: auto -35% -55% 10%; height: 270px; background: radial-gradient(circle, rgba(189,103,69,.20), transparent 65%); pointer-events: none; }
.hero-card-overlay { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; padding: 28px; background: rgba(255, 250, 243, .91); backdrop-filter: blur(14px); }
.card-line { width: 70px; height: 3px; background: var(--accent); margin-bottom: 24px; }
.hero-card-overlay p { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.025em; margin-bottom: 14px; max-width: 520px; }
ul { padding-left: 20px; color: var(--muted); }
li + li { margin-top: 8px; }
.section { padding: 92px 0; }
.section-head { display: block; max-width: 860px; margin-bottom: 38px; }
.section-head p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 1.06rem; }
.intro-section { padding-top: 24px; padding-bottom: 72px; }
.intro-card { padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,250,243,.76); box-shadow: 0 18px 50px rgba(32,35,38,.06); max-width: 980px; }
.intro-card h2 { margin-bottom: 14px; }
.intro-card p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 780px; margin-bottom: 0; }

.identity-section { padding-top: 24px; padding-bottom: 24px; }
.identity-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: start;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,250,243,.92), rgba(234,215,199,.48));
  box-shadow: 0 18px 50px rgba(32,35,38,.06);
}
.identity-card h2 { margin-bottom: 0; }
.identity-copy p { color: var(--muted); font-size: 1.06rem; max-width: 720px; }
.identity-copy p:last-child { margin-bottom: 0; }
.identity-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
}

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { overflow: hidden; min-height: 240px; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 250, 243, .62); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(189,103,69,.28); }
.service > img { width: 100%; aspect-ratio: 16 / 11; height: auto; object-fit: cover; filter: saturate(.92) contrast(1.02); transition: transform .35s ease, filter .35s ease; }
.service:hover > img { transform: scale(1.035); filter: saturate(1) contrast(1.04); }
.service-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.service span, .value-card span { color: var(--accent); font-weight: 900; font-size: .82rem; letter-spacing: .16em; }
.service-body h3 { margin: 24px 0 12px; font-size: 1.25rem; }
.service-body p, .steps p, .zones-card p, .contact-grid p, .form-note { color: var(--muted); line-height: 1.62; margin-bottom: 0; }
.works { background: radial-gradient(circle at 86% 10%, rgba(189,103,69,.10), transparent 30rem), rgba(255,250,243,.44); }
.works-grid { display: grid; grid-template-columns: 1.1fr .95fr .95fr; gap: 16px; }
.work-card { position: relative; min-height: 320px; margin: 0; border-radius: 24px; overflow: hidden; background: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(32,35,38,.08); }
.work-card-large { grid-row: span 2; min-height: 656px; }
.work-card img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; filter: saturate(.94) contrast(1.02); transition: transform .35s ease, filter .35s ease; }
.work-card:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.05); }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(32,35,38,.72) 100%); pointer-events: none; }
.work-card figcaption { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; color: #fffaf3; }
.work-card figcaption strong, .work-card figcaption span { display: block; }
.work-card figcaption strong { font-size: 1.05rem; letter-spacing: -.02em; }
.work-card figcaption span { margin-top: 3px; color: rgba(255,250,243,.78); font-size: .92rem; line-height: 1.5; }
.value-section { background: rgba(32,35,38,.025); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value-card { padding: 26px; min-height: 250px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,250,243,.74); box-shadow: 0 14px 42px rgba(32,35,38,.05); }
.value-card h3 { margin: 34px 0 12px; font-size: 1.22rem; }
.value-card p { color: var(--muted); margin-bottom: 0; }
.split { background: rgba(32, 35, 38, .035); }
.split-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.section-note { color: var(--muted); max-width: 600px; }
.steps { display: grid; gap: 14px; }
.steps div { display: grid; grid-template-columns: 70px 1fr; column-gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps strong { color: var(--accent); letter-spacing: .12em; }
.steps h3 { margin-bottom: 6px; }
.steps p { grid-column: 2; }
.zones-card { padding: clamp(34px, 6vw, 72px); border-radius: var(--radius); background: var(--ink); color: #fffaf3; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.zones-card::after { content: ""; position: absolute; inset: auto -10% -30% 40%; height: 260px; background: radial-gradient(circle, rgba(189,103,69,.28), transparent 66%); pointer-events: none; }
.zones-card h2 { max-width: 760px; }
.zones-card p { max-width: 760px; color: rgba(255,250,243,.74); }
.zone-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; position: relative; z-index: 1; }
.zone-tags span { border: 1px solid rgba(255,250,243,.18); border-radius: 999px; padding: 10px 14px; color: rgba(255,250,243,.86); background: rgba(255,250,243,.04); }
.cta-band { padding-top: 0; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,250,243,.86), rgba(234,215,199,.55)); box-shadow: 0 20px 60px rgba(32,35,38,.08); }
.cta-card p:not(.eyebrow) { color: var(--muted); max-width: 700px; margin-bottom: 0; }
.cta-card .btn { flex: 0 0 auto; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-hint { margin-top: 18px; font-size: .92rem; }
.contact-form { display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,250,243,.78); box-shadow: var(--shadow); }
label { display: grid; gap: 8px; font-weight: 800; font-size: .9rem; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; font: inherit; background: #fffaf3; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(189,103,69,.12); }
textarea { resize: vertical; }
.form-note { font-size: .86rem; }
.footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .92rem; }
.footer img { width: 180px; height: auto; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, html { scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; transition: none; } .btn, .service, .work-card img, .service > img { transition: none !important; } }
@media (max-width: 1100px) {
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-card-large { grid-column: span 2; min-height: 520px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { min-height: 72px; }
  .brand img { width: 190px; }
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .nav.is-open { position: fixed; display: grid; gap: 0; top: 72px; left: 14px; right: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 22px; background: #fffaf3; box-shadow: var(--shadow); }
  .nav.is-open a { padding: 14px; border-radius: 14px; }
  .hero { padding: 54px 0 56px; }
  .hero-grid, .split-grid, .contact-grid, .identity-card { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .intro-section { padding-top: 12px; }
  .identity-section { padding-top: 12px; padding-bottom: 12px; }
  .steps div { grid-template-columns: 52px 1fr; }
  .hero-media, .hero-media > img { min-height: 520px; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card, .work-card-large { grid-column: auto; grid-row: auto; min-height: 360px; }
  .cta-card { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .value-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  h1 { font-size: 2.72rem; }
  .lead { font-size: 1.04rem; }
  .hero-card, .contact-form, .value-card { padding: 22px; }
  .hero-media, .hero-media > img { min-height: 500px; }
  .hero-card-overlay { left: 14px; right: 14px; bottom: 14px; padding: 20px; }
  .work-card, .work-card-large { min-height: 310px; }
  .brand img { width: 168px; }
}


/* WhatsApp directo: contacto visible sin tapar el contenido */
.wa-icon {
  width: 1.18em;
  height: 1.18em;
  flex: 0 0 auto;
  fill: currentColor;
}
.header-cta,
.btn.primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  background: #1fa855;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(31, 168, 85, .32), 0 10px 24px rgba(32,35,38,.14);
  border: 1px solid rgba(255,255,255,.24);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #188c47;
  box-shadow: 0 22px 48px rgba(31, 168, 85, .36), 0 12px 28px rgba(32,35,38,.16);
}
.whatsapp-float-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
}
.whatsapp-float-icon .wa-icon {
  width: 28px;
  height: 28px;
}
.whatsapp-float-copy {
  display: grid;
  line-height: 1.08;
}
.whatsapp-float-copy strong {
  font-size: .98rem;
  letter-spacing: -.02em;
}
.whatsapp-float-copy small {
  margin-top: 3px;
  font-size: .78rem;
  color: rgba(255,255,255,.82);
}
@media (max-width: 620px) {
  .whatsapp-float {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
    padding: 12px 16px;
  }
  .whatsapp-float-icon {
    width: 38px;
    height: 38px;
  }
  .whatsapp-float-icon .wa-icon {
    width: 25px;
    height: 25px;
  }
  .footer {
    padding-bottom: 104px;
  }
}


/* Pulido mobile: CTA fijo cómodo, seguro en iPhone y sin tapar el formulario */
@media (max-width: 620px) {
  .whatsapp-float {
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 64px;
  }
  .contact {
    padding-bottom: 128px;
  }
  .contact-form .btn.primary {
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .header-inner {
    gap: 12px;
  }
  .nav.is-open {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
}
@media (max-width: 420px) {
  .whatsapp-float-copy strong {
    font-size: .95rem;
  }
  .whatsapp-float-copy small {
    font-size: .75rem;
  }
  .hero-card-overlay ul {
    padding-left: 18px;
  }
}
