/* ============================================================
   HandyMan Chile — v2.0
   Servicio técnico en Calderas, Calefacción, Bombas de Calor
   de Piscina y Energía Fotovoltaica · Región de Valparaíso
   ============================================================ */

:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --navy-100: #e6ecf5;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --heat: #f4772f;
  --heat-600: #e2621b;
  --heat-100: #fff1e8;
  --aqua: #16a3a0;
  --aqua-600: #0f8a88;
  --aqua-100: #e3f6f5;
  --sun: #f5b400;
  --sun-100: #fff7d6;
  --wa: #25d366;
  --wa-600: #1ebe5b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(7, 26, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 26, 51, 0.16);
  --container: 1180px;
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--heat); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow.aqua { color: var(--aqua); }
.eyebrow.sun { color: #c98f00; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::before { display: none; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--heat); color: #fff; box-shadow: 0 8px 22px rgba(244,119,47,.32); }
.btn-primary:hover { background: var(--heat-600); }
.btn-wa { background: var(--wa); color: #05301a; box-shadow: 0 8px 22px rgba(37,211,102,.32); }
.btn-wa:hover { background: var(--wa-600); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { background: var(--surface); color: var(--navy-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .6rem 1rem; font-size: .88rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--navy-900); color: #cdd7e6; font-size: .84rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-right { display: flex; gap: 1.25rem; }
.topbar .dot { color: var(--heat); }
@media (max-width: 720px) { .topbar .tb-left { display: none; } .topbar .container { justify-content: center; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 78px; width: min(100% - 2.5rem, 1360px); }
.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo svg { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.4rem; flex: 1; justify-content: center; min-width: 0; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink-2); position: relative; padding: .35rem 0; white-space: nowrap; }
.logo { flex: none; }
@media (max-width: 1400px) { .header-cta .btn-outline { display: none; } }
@media (max-width: 1280px) { .nav { gap: 1rem; } .nav a { font-size: .88rem; } }
.nav a:hover, .nav a.active { color: var(--navy-800); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--heat); }
.header-cta { display: flex; gap: .6rem; align-items: center; flex: none; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy-800); border-radius: 3px; margin: 5px 0; transition: .2s; }
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
         background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.active::after { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline { display: none; }
}
@media (max-width: 520px) { .header-cta .btn span { display: none; } .header-cta .btn { padding: .7rem .85rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(244,119,47,.35), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(22,163,160,.35), transparent 60%),
              linear-gradient(160deg, var(--navy-900), var(--navy-700));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: .4rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 600; margin-bottom: 1.25rem; }
.hero-badge .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6);} 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
.hero h1 span { color: var(--heat); }
.hero .lead { color: #d5deec; font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.75rem 0 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; color: #c9d4e5; font-size: .9rem; }
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--wa); }
.hero-visual { position: relative; }
.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.9rem 1.25rem 2.1rem; box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.hero-card p.small { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.chip {
  display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .92rem; text-align: left; color: var(--ink);
  transition: border-color .15s, background .15s, transform .15s;
}
.chip:hover { border-color: var(--heat); background: var(--heat-100); transform: translateY(-1px); }
.chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip .ic svg { width: 20px; height: 20px; }
.ic-heat { background: var(--heat-100); color: var(--heat-600); }
.ic-aqua { background: var(--aqua-100); color: var(--aqua-600); }
.ic-sun { background: var(--sun-100); color: #b07f00; }
.ic-navy { background: var(--navy-100); color: var(--navy-800); }
.hero-card .foot { margin-top: 1rem; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.float-pill {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: .6rem .85rem; box-shadow: var(--shadow-lg);
  font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: .5rem;
}
.float-pill.a { top: -22px; left: -22px; }
.float-pill.b { bottom: -20px; right: -18px; }
.float-pill .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.float-pill .ic svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .float-pill { display: none; }
}

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.25rem 0; }
.trust-item { display: flex; align-items: center; gap: .8rem; font-size: .92rem; }
.trust-item strong { display: block; font-size: 1rem; color: var(--navy-800); }
.trust-item .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.trust-item .ic svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .trust .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust .container { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1180px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-5 { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.card .link { font-weight: 700; color: var(--navy-800); display: inline-flex; align-items: center; gap: .35rem; }
.card .link svg { width: 16px; height: 16px; transition: transform .2s; }
.card .link:hover svg { transform: translateX(3px); }
.card.focus { position: relative; overflow: hidden; }
.card.focus::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--accent, var(--heat)); }
.card-illus { border-radius: var(--radius-sm); overflow: hidden; margin: -.25rem 0 1rem; aspect-ratio: 16/10; background: var(--navy-100); }
.card-illus img, .card-illus svg { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; background: var(--navy-100); color: var(--navy-800); }
.tag.heat { background: var(--heat-100); color: var(--heat-600); }
.tag.aqua { background: var(--aqua-100); color: var(--aqua-600); }
.tag.sun { background: var(--sun-100); color: #9a6d00; }

/* Secondary services */
.mini { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.mini .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.mini .ic svg { width: 20px; height: 20px; }
.mini h4 { margin: 0 0 .2rem; font-size: 1rem; }
.mini p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.split > * { min-width: 0; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split.rev > :first-child { order: 0; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; aspect-ratio: 4/3; background: var(--navy-100); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .cap { position: absolute; left: 1rem; bottom: 1rem; background: rgba(7,26,51,.85); color: #fff; padding: .5rem .8rem; border-radius: 10px; font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px); }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; color: var(--ink-2); }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--aqua); margin-top: .1rem; }
.checklist.heat svg { color: var(--heat); }
.checklist.sun svg { color: #c98f00; }
.checklist strong { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 800; font-size: 2rem; color: var(--heat); opacity: .9; line-height: 1; display: block; margin-bottom: .75rem; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Coverage / comunas ---------- */
.coverage { background: linear-gradient(180deg, #fff, var(--bg)); }
.prov { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.prov h4 { margin: 0 0 .6rem; font-size: .95rem; color: var(--navy-800); display: flex; align-items: center; gap: .5rem; }
.prov h4 svg { width: 16px; height: 16px; color: var(--heat); }
.prov ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.prov li { font-size: .84rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.prov li.hot { background: var(--heat-100); border-color: #ffd7bd; color: var(--heat-600); }
.prov li.note { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }
.map-note { display: flex; gap: .8rem; align-items: center; background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: 1.5rem; }
.map-note svg { width: 28px; height: 28px; color: var(--heat); flex: none; }
.map-note p { margin: 0; }

/* ---------- Brands ---------- */
.brands { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.brands li { padding: .55rem 1rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 800; letter-spacing: .04em; color: var(--navy-800); font-size: .9rem; }
.brands li.star { border-color: var(--heat); color: var(--heat-600); }

/* ---------- Pricing ---------- */
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; position: relative; }
.price.hl { border: 2px solid var(--heat); box-shadow: var(--shadow); }
.price .ribbon { position: absolute; top: -12px; left: 1.25rem; background: var(--heat); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; }
.price h3 { font-size: 1.1rem; }
.price .amount { font-size: 1.85rem; font-weight: 800; color: var(--navy-800); margin: .25rem 0 .1rem; letter-spacing: -.02em; white-space: nowrap; }
.grid-5 .price { padding: 1.4rem 1.2rem; }
.grid-5 .price h3 { font-size: 1rem; min-height: 2.6em; }
.grid-5 .price .btn { padding: .8rem .9rem; font-size: .9rem; }
.price .amount small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price .from { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.price ul { margin-bottom: 1.25rem; flex: 1; }
.price li { font-size: .9rem; color: var(--ink-2); padding: .3rem 0; display: flex; gap: .5rem; }
.price li::before { content: "✓"; color: var(--aqua); font-weight: 800; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.quote .stars { color: var(--sun); letter-spacing: .1em; font-size: .95rem; margin-bottom: .6rem; }
.quote p { color: var(--ink-2); font-style: italic; }
.quote footer { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.quote .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--navy-700); }
.quote footer strong { display: block; }
.quote footer span { color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.25rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--heat); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -200px; top: -250px; background: radial-gradient(circle, rgba(244,119,47,.35), transparent 65%); }
.contact .container { position: relative; z-index: 1; }
.contact .lead { color: #c9d4e5; }
.contact-info { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-info li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.contact-info .ic svg { width: 22px; height: 22px; color: var(--heat); }
.contact-info strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #93a4bf; }
.contact-info a { color: #fff; font-weight: 600; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-lg); }
.form-card h3 { margin-bottom: .25rem; }
.form-card .small { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.field label { font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.field { min-width: 0; }
.field input, .field select, .field textarea {
  font: inherit; padding: .8rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  width: 100%; min-width: 0; max-width: 100%;
}
.field select { text-overflow: ellipsis; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--heat); box-shadow: 0 0 0 4px rgba(244,119,47,.15); }
.field textarea { min-height: 96px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; font-size: .88rem; transition: .15s; }
.seg span svg { width: 18px; height: 18px; flex: none; }
.seg input:checked + span { border-color: var(--heat); background: var(--heat-100); color: var(--heat-600); }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(244,119,47,.2); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .75rem; }
.preview { background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: .8rem .9rem; font-size: .85rem; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: .9rem; }
.form-card { min-width: 0; }
.seg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.seg span { min-width: 0; }
.preview b { color: var(--navy-800); }

/* ---------- Footer ---------- */
.footer { background: #050f22; color: #9fb0c9; font-size: .9rem; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3.5rem 0 2rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer a:hover { color: #fff; }
.footer li { padding: .22rem 0; }
.footer .logo svg { height: 40px; }
.footer .brand-desc { margin-top: .8rem; max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-size: .8rem; flex-wrap: wrap; }
@media (max-width: 900px) { .footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .container { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp + modal ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: flex; align-items: center; gap: .6rem; background: var(--wa); color: #05301a; font-weight: 800;
  padding: .85rem 1.15rem .85rem .95rem; border-radius: 999px; border: 0; box-shadow: 0 14px 34px rgba(37,211,102,.45);
  transition: transform .15s;
}
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa-fab span { display: none; } .wa-fab { padding: .9rem; } }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(5,15,34,.6); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(100%, 520px); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  max-height: min(92vh, 760px); display: flex; flex-direction: column; overflow: hidden; animation: up .25s ease;
}
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 600px) { .modal { align-items: center; } }
.modal-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; background: #075e54; color: #fff; }
.modal-head .av { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.modal-head .av svg { width: 26px; height: 26px; }
.modal-head strong { display: block; font-size: .98rem; }
.modal-head small { opacity: .85; font-size: .78rem; }
.modal-close { margin-left: auto; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; line-height: 1; }
.modal-body { padding: 1.25rem; overflow: auto; background: #ece5dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23000' fill-opacity='.03'%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Ccircle cx='80' cy='60' r='9'/%3E%3Ccircle cx='40' cy='95' r='5'/%3E%3C/g%3E%3C/svg%3E"); }
.bubble { background: #fff; border-radius: 14px; border-top-left-radius: 4px; padding: .8rem 1rem; font-size: .92rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); margin-bottom: .9rem; max-width: 92%; }
.bubble.me { background: #dcf8c6; border-radius: 14px; border-top-right-radius: 4px; margin-left: auto; }
.bubble .time { display: block; text-align: right; font-size: .7rem; color: var(--muted); margin-top: .25rem; }
.wa-step { display: none; }
.wa-step.active { display: block; }
.wa-options { display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; }
.wa-options.one { grid-template-columns: 1fr; }
.wa-opt { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .85rem; font-weight: 700; font-size: .9rem; text-align: left; display: flex; align-items: center; gap: .6rem; transition: .15s; }
.wa-opt:hover { border-color: var(--wa-600); background: #f0fff5; }
.wa-opt.sel { border-color: var(--wa-600); background: #dcf8c6; }
.wa-opt .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.wa-opt .ic svg { width: 18px; height: 18px; }
.modal-foot { padding: .9rem 1.25rem; background: #f7f7f7; border-top: 1px solid var(--line); display: flex; gap: .6rem; justify-content: space-between; align-items: center; }
.modal-foot .steps-ind { display: flex; gap: .3rem; }
.modal-foot .steps-ind i { width: 8px; height: 8px; border-radius: 50%; background: #d0d5dd; }
.modal-foot .steps-ind i.on { background: var(--wa-600); }
.modal .field { margin-bottom: .7rem; }
.modal .field input, .modal .field select, .modal .field textarea { background: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; right: -260px; top: -320px; background: radial-gradient(circle, var(--accent-soft, rgba(244,119,47,.4)), transparent 65%); }
.page-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(3rem, 6vw, 5rem) 0; }
.page-hero .lead { color: #d5deec; }
.page-hero .crumbs { font-size: .82rem; color: #93a4bf; margin-bottom: 1rem; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .photo { aspect-ratio: 5/4; }
@media (max-width: 900px) { .page-hero .container { grid-template-columns: 1fr; } }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.kpi { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: .9rem 1rem; }
.kpi strong { display: block; font-size: 1.4rem; font-weight: 800; }
.kpi span { font-size: .8rem; color: #c9d4e5; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } }

.band { background: var(--heat); color: #fff; }
.band.aqua { background: var(--aqua); }
.band.navy { background: var(--navy-800); }
.band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 0; flex-wrap: wrap; }
.band h3 { margin: 0; font-size: 1.35rem; }
.band p { margin: .2rem 0 0; opacity: .9; }
.band .btn-outline { border-color: rgba(255,255,255,.4); background: #fff; color: var(--navy-800); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-badge .pulse { animation: none; } }
