/* =============================================================
   KLIMIA — climatización residencial premium
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --angle      { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg:        #0A1524;   /* navy near-black, from logo — never pure #000 */
  --bg-2:      #0E1D30;
  --bg-3:      #142A45;   /* card surface */
  --bg-4:      #1B3656;   /* card surface hover */
  --cream:     #F4F1EA;   /* warm off-white text on navy — never pure white */
  --cream-2:   #C9CEDA;
  --cream-3:   #8890A3;   /* metadata / muted */
  --accent:    #FF914B;   /* logo orange — energy / warmth */
  --accent-2:  #FFB067;   /* soft amber — highlight */
  --accent-soft: rgba(255,145,75,.16);
  --line:      rgba(244,241,234,.12);
  --line-soft: rgba(244,241,234,.07);
  --danger:    #FF5D5D;

  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #0A1524; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.kicker {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: fit-content; max-width: 100%;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; white-space: nowrap;
}
.kicker::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-inner .kicker { margin-inline: auto; }
@media (min-width: 540px) { .kicker { font-size: .78rem; letter-spacing: .14em; } }

.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: .9rem; }
.section-sub { color: var(--cream-2); font-size: 1.06rem; margin-top: 1rem; max-width: 54ch; }
.section-head.is-center .section-sub { margin-inline: auto; }

.demo-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream-3); background: rgba(244,241,234,.06);
  border: 1px solid var(--line); padding: .3rem .65rem; border-radius: 100px;
}

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: italic; color: var(--accent); }
.eyebrow { font-family: var(--sans); font-weight: 600; letter-spacing: .04em; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 100px;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.14);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary { background: var(--accent); color: #0A1524; }
.btn-primary:hover { box-shadow: 0 22px 50px rgba(255,145,75,.28), 0 10px 22px rgba(255,145,75,.18); }
.btn-ghost { background: rgba(244,241,234,.06); color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(244,241,234,.11); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* --- Cards --- */
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: background .4s var(--ease-out), box-shadow .5s var(--ease-soft), border-color .4s;
}
.has-tilt { --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .55s var(--ease-soft); }
.has-tilt:hover { transition-duration: .15s; }
.card:hover {
  background: var(--bg-4);
  border-color: rgba(255,145,75,.35);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,145,75,.12);
}

/* --- Universal scroll reveal --- */
[data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Splash --- */
.splash {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-items: center; pointer-events: auto;
  transition: opacity .9s, clip-path 1.1s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: grid; justify-items: center; gap: 1rem; }
.splash-logo { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(244,241,234,.14); }
.splash-mark { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -.01em; text-align: center; }
.splash-mark em { color: var(--accent); }
.splash-line { width: 120px; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.splash-line::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: splashSweep 1.1s ease-in-out infinite;
}
@keyframes splashSweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 300; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,21,36,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-logo, .footer-brand img { border-radius: 8px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(244,241,234,.12); }
@media (min-width: 540px) { .brand { font-size: 1.2rem; gap: .55rem; } }
@media (min-width: 960px) { .brand { font-size: 1.35rem; } }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-link { position: relative; padding: .25rem 0; font-size: .93rem; color: var(--cream-2); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-cta { display: none; }
.nav-burger { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(244,241,234,.07); }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--cream); position: relative; transition: transform .35s var(--ease-soft), opacity .35s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 290; background: var(--bg-2); color: var(--cream);
  display: grid; place-content: center; gap: 2.1rem;
  clip-path: inset(0 0 100% 0); transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 2rem; text-align: center; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem;
  overflow: clip; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-illustration { display: none; }
@media (min-width: 960px) { .hero-illustration { display: block; width: 100%; height: 100%; opacity: .5; } }
.hero-bg-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,21,36,.35) 0%, rgba(10,21,36,.7) 65%, var(--bg) 100%); }
.hero-mesh {
  position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at var(--mesh-x) var(--mesh-y), rgba(255,145,75,.30), transparent 60%),
    conic-gradient(from var(--mesh-angle), rgba(255,176,103,.20), rgba(255,145,75,.10), rgba(255,176,103,.20), rgba(255,145,75,.20));
  filter: blur(90px) saturate(120%); opacity: .8;
  animation: meshShift 24s linear infinite; mix-blend-mode: screen;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 26%; --mesh-y: 34%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 74%; --mesh-y: 58%; }
  100% { --mesh-angle: 360deg; --mesh-x: 26%; --mesh-y: 34%; }
}
.hero-grain { position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner { position: relative; z-index: 1; text-align: center; margin-inline: auto; max-width: 900px; }
.hero-title {
  font-size: clamp(2.5rem, 7.4vw, 5.6rem); margin-top: 1.1rem;
  text-wrap: balance; max-width: 18ch; margin-inline: auto;
}
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: var(--cream-2); max-width: 52ch; margin: 1.4rem auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.1rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 620px; margin: 3.2rem auto 0; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.hero-stat { text-align: center; }
.hero-stat-value { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--accent); }
.hero-stat-label { font-size: .78rem; color: var(--cream-3); margin-top: .3rem; }
.hero-scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--cream-3); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-scroll-cue span { width: 1px; height: 26px; background: linear-gradient(var(--accent), transparent); animation: cueMove 1.8s ease-in-out infinite; }
@keyframes cueMove { 0%,100% { transform: scaleY(1); opacity: .6; } 50% { transform: scaleY(.5); opacity: 1; } }

/* --- Benefits --- */
.benefits-grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
.benefit-card { position: relative; overflow: hidden; }
.benefit-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.1rem; }
.benefit-icon svg { width: 22px; height: 22px; }
.benefit-card h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.benefit-card p { color: var(--cream-2); font-size: .95rem; }

/* --- How it works / showcase pinned --- */
.showcase { position: relative; }
.showcase-viewport { overflow: visible; }
.showcase-track { display: flex; gap: 1.4rem; }
.showcase.is-pinned .showcase-viewport { overflow: hidden; }
.step-card {
  flex: 0 0 auto; width: min(78vw, 380px);
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.8rem; display: flex; flex-direction: column; gap: 1rem;
}
.step-n { font-family: var(--serif); font-size: 2.6rem; color: var(--accent-2); opacity: .55; }
.step-card h3 { font-size: 1.3rem; }
.step-card p { color: var(--cream-2); font-size: .96rem; }
@media (min-width: 1024px) {
  .showcase-track { gap: 1.8rem; }
  .step-card { width: 360px; }
}

/* --- AI feature callouts (assistant + calculator) --- */
.ai-band { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.ai-card {
  position: relative; overflow: hidden; padding: 2.2rem;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 22px;
}
.ai-card::before {
  content: ""; position: absolute; inset: -60% -20% auto auto; width: 60%; height: 220%;
  background: radial-gradient(circle, rgba(255,145,75,.22), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.ai-card .kicker { margin-bottom: 1rem; }
.ai-card h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.ai-card p { color: var(--cream-2); margin-bottom: 1.4rem; }
.ai-card-fig { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.2rem; }

/* --- Testimonials --- */
.testi-wrap { position: relative; }
.testi-track { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.testi-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem;
}
.testi-quote { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--cream); line-height: 1.5; }
.testi-quote::before { content: "\201C"; color: var(--accent); }
.testi-quote::after { content: "\201D"; color: var(--accent); }
.testi-person { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--bg-4); flex-shrink: 0; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-weight: 600; font-size: .93rem; }
.testi-loc { font-size: .82rem; color: var(--cream-3); }
.testi-demo-note { margin-top: 1.8rem; font-size: .82rem; color: var(--cream-3); text-align: center; }

/* --- FAQ --- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; text-align: left; font-size: 1.02rem; font-weight: 600;
}
.faq-q-plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-q-plus::before, .faq-q-plus::after { content: ""; position: absolute; background: var(--accent); transition: transform .4s var(--ease-soft); }
.faq-q-plus::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-q-plus::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.faq-item.is-open .faq-q-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-soft); }
.faq-a-inner { padding-bottom: 1.5rem; color: var(--cream-2); font-size: .96rem; max-width: 68ch; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* --- Contact --- */
.contact-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.contact-info-list { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.contact-info-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-info-icon svg { width: 18px; height: 18px; }
.contact-info-item h4 { font-family: var(--sans); font-weight: 600; font-size: .92rem; }
.contact-info-item p, .contact-info-item a { color: var(--cream-2); font-size: .92rem; }

.cta-form { position: relative; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.field { position: relative; margin-bottom: 1.1rem; }
.field input, .field textarea {
  width: 100%; padding: 1.35rem 1rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(244,241,234,.03); color: var(--cream); transition: border-color .3s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field label {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none;
  transition: all .25s var(--ease-out); color: var(--cream-3); font-size: .95rem;
}
.field textarea + label { top: 1.2rem; transform: none; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .45rem; transform: none; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: .5rem; }
.field-note { font-size: .78rem; color: var(--cream-3); margin-top: -.4rem; margin-bottom: 1.1rem; }

.cta-submit { position: relative; }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after { content: ""; width: 18px; height: 18px; border: 1.5px solid rgba(10,21,36,.3); border-top-color: #0A1524; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-success {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .8s var(--ease-out) .25s, transform .9s var(--ease-soft) .25s;
}
.cta-success.is-visible { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.cta-success h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.cta-success p { color: var(--cream-2); }
.cta-success svg { width: 46px; height: 46px; color: var(--accent); margin: 0 auto 1rem; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.footer-top { display: flex; flex-direction: column; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.2rem; margin-bottom: .7rem; }
.footer-brand svg { width: 24px; height: 24px; color: var(--accent); }
.footer-tag { color: var(--cream-3); font-size: .9rem; max-width: 34ch; }
.footer-cols { display: grid; gap: 1.8rem; grid-template-columns: repeat(2, 1fr); }
.footer-col h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); margin-bottom: .9rem; }
.footer-col a, .footer-col p { display: block; color: var(--cream-2); font-size: .92rem; margin-bottom: .55rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .8rem; color: var(--cream-3); }
.footer-demo-note { margin-top: 1.2rem; font-size: .78rem; color: var(--cream-3); background: rgba(244,241,234,.04); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }

/* --- Chat assistant widget --- */
.chat-launcher {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #0A1524; display: grid; place-items: center;
  box-shadow: 0 18px 40px rgba(255,145,75,.35);
  transition: transform .4s var(--ease-bounce);
}
.chat-launcher:hover { transform: scale(1.08); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .chat-dot { position: absolute; top: 6px; right: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent-2); border: 2px solid var(--bg); }

.chat-panel {
  position: fixed; right: 1.2rem; bottom: 5.6rem; z-index: 400;
  width: min(92vw, 380px); height: min(70vh, 560px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  transform-origin: bottom right;
  opacity: 0; transform: scale(.92) translateY(10px); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .4s var(--ease-bounce);
}
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.chat-head-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.chat-head-avatar svg { width: 18px; height: 18px; }
.chat-head-name { font-weight: 600; font-size: .93rem; }
.chat-head-status { font-size: .74rem; color: var(--accent); display: flex; align-items: center; gap: .35rem; }
.chat-head-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chat-close { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.chat-close:hover { background: rgba(244,241,234,.08); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .75rem; }
.chat-msg { max-width: 84%; padding: .7rem .9rem; border-radius: 14px; font-size: .89rem; line-height: 1.45; }
.chat-msg.is-bot { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.is-user { align-self: flex-end; background: var(--accent); color: #0A1524; border-bottom-right-radius: 4px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.1rem .9rem; }
.chat-suggestion { font-size: .78rem; padding: .5rem .8rem; border-radius: 100px; background: rgba(244,241,234,.06); border: 1px solid var(--line); color: var(--cream-2); }
.chat-suggestion:hover { border-color: var(--accent); color: var(--cream); }
.chat-typing { display: inline-flex; gap: 3px; align-items: center; }
.chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--cream-3); animation: typingBounce 1.1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; } .chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-foot { display: flex; gap: .6rem; padding: .9rem; border-top: 1px solid var(--line); background: var(--bg-3); }
.chat-foot input { flex: 1; padding: .75rem .95rem; border-radius: 100px; border: 1px solid var(--line); background: rgba(244,241,234,.04); color: var(--cream); font-size: .89rem; }
.chat-foot button { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #0A1524; display: grid; place-items: center; flex-shrink: 0; }
.chat-foot button svg { width: 17px; height: 17px; }
.chat-foot button:disabled { opacity: .5; }

/* =============================================================
   7. Calculator modal (wizard)
   ============================================================= */
.calc-dialog { position: fixed; inset: 0; margin: 0; z-index: 500; padding: 0; border: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; }
.calc-dialog:not([open]) { display: none; }
.calc-dialog::backdrop { background: rgba(6,12,10,.7); backdrop-filter: blur(4px); }
.calc-shell {
  width: 100%; height: 100%; background: var(--bg); display: flex; flex-direction: column;
  overflow-y: auto;
}
.calc-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; background: rgba(10,21,36,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.calc-head-title { font-family: var(--serif); font-size: 1.15rem; }
.calc-close { width: 38px; height: 38px; border-radius: 50%; background: rgba(244,241,234,.07); display: grid; place-items: center; }
.calc-progress { display: flex; gap: .4rem; padding: 0 1.4rem; margin-top: .9rem; }
.calc-progress span { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.calc-progress span::after { content: ""; display: block; height: 100%; width: 0%; background: var(--accent); transition: width .4s var(--ease-soft); }
.calc-progress span.is-done::after, .calc-progress span.is-active::after { width: 100%; }
.calc-body { flex: 1; padding: 1.6rem 1.4rem 3rem; max-width: 640px; margin-inline: auto; width: 100%; }
.calc-step { display: none; animation: fadeUp .5s var(--ease-soft); }
.calc-step.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.calc-step h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.calc-step-sub { color: var(--cream-2); margin-bottom: 1.6rem; font-size: .95rem; }

.upload-zone {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 2.2rem 1.4rem;
  text-align: center; cursor: pointer; transition: border-color .3s, background .3s;
}
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--accent); background: rgba(255,145,75,.05); }
.upload-zone svg { width: 34px; height: 34px; color: var(--accent); margin: 0 auto 1rem; }
.upload-zone p { color: var(--cream-2); font-size: .92rem; }
.upload-zone-small { font-size: .78rem; color: var(--cream-3); margin-top: .4rem; }
.upload-preview { display: none; align-items: center; gap: .9rem; margin-top: 1rem; padding: .9rem; background: var(--bg-3); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.upload-preview.is-visible { display: flex; }
.upload-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.upload-preview .fname { font-size: .85rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-skip { text-align: center; margin-top: 1rem; font-size: .85rem; color: var(--cream-3); }
.upload-skip button { color: var(--accent); text-decoration: underline; }

.extract-result { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.4rem; }
.extract-item { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.extract-item .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cream-3); }
.extract-item .val { font-family: var(--serif); font-size: 1.25rem; margin-top: .2rem; color: var(--accent); }
.extract-item .val.is-empty { color: var(--cream-3); font-family: var(--sans); font-size: 1rem; }

/* --- Calculator option pickers (category / equipment / service) --- */
.option-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 560px) { .option-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.option-card {
  display: block; width: 100%; text-align: left; background: var(--bg-3);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem;
  cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease-soft);
}
.option-card:hover { border-color: rgba(255,145,75,.4); transform: translateY(-2px); }
.option-card.is-selected { border-color: var(--accent); background: rgba(255,145,75,.08); box-shadow: 0 0 0 1px var(--accent); }
.option-card .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: .8rem; }
.option-card .icon svg { width: 100%; height: 100%; }
.option-card h4 { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; margin-bottom: .35rem; }
.option-card p { font-size: .85rem; color: var(--cream-3); line-height: 1.5; }
.option-card .check { float: right; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; flex: 0 0 auto; }
.option-card.is-selected .check { border-color: var(--accent); background: var(--accent); }
.option-card.is-selected .check::after { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: #0A1524; }

.pill-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-option {
  padding: .65rem 1.1rem; border-radius: 100px; border: 1.5px solid var(--line);
  background: rgba(244,241,234,.04); color: var(--cream-2); font-size: .88rem; cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.pill-option:hover { border-color: rgba(255,145,75,.4); }
.pill-option.is-selected { background: var(--accent); border-color: var(--accent); color: #0A1524; font-weight: 600; }

.area-live-readout {
  margin-top: 1.2rem; padding: 1rem 1.2rem; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: .92rem; color: var(--cream-2);
}
.area-live-readout strong { color: var(--accent); font-family: var(--serif); font-size: 1.15rem; }

.map-tools { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
.map-tools button { padding: .6rem 1rem; border-radius: 100px; background: rgba(244,241,234,.06); border: 1px solid var(--line); font-size: .85rem; }
.map-tools button.is-active { background: var(--accent); color: #0A1524; border-color: var(--accent); }

/* --- Gallery: trabajos reales --- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px)  { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-3); aspect-ratio: 3/4;
}
.gallery-item.is-wide { aspect-ratio: 4/3; grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-soft); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .8rem .6rem;
  font-size: .76rem; color: var(--cream); background: linear-gradient(0deg, rgba(10,21,36,.88), transparent);
  line-height: 1.3;
}
.gallery-item.is-hidden { display: none; }

.calc-form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .calc-form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.result-hero { text-align: center; padding: 2rem 1rem; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.6rem; }
.result-hero .big { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--accent); }
.result-hero .big small { font-size: 1.1rem; color: var(--cream-2); font-family: var(--sans); }
.result-hero p { color: var(--cream-2); margin-top: .4rem; }
.result-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; margin-bottom: 1.6rem; }
@media (min-width: 640px) { .result-grid { grid-template-columns: repeat(3, 1fr); } }
.result-tile { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem; text-align: center; }
.result-tile .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cream-3); }
.result-tile .val { font-family: var(--serif); font-size: 1.5rem; margin-top: .3rem; }
.result-disclaimer { font-size: .8rem; color: var(--cream-3); background: rgba(244,241,234,.04); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1.6rem; }

.calc-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.calc-nav .spacer { flex: 1; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-track { grid-template-columns: repeat(2, 1fr); }
  .ai-band { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .extract-result { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-info-list { margin-top: 2rem; }
}
@media (min-width: 1280px) {
  .testi-track { grid-template-columns: repeat(4, 1fr); }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   8b. WhatsApp CTA, hero photo, brands strip
   ============================================================= */
.btn-whatsapp {
  background: #25D366; color: #08341C; display: inline-flex; align-items: center; gap: .55rem;
}
.btn-whatsapp:hover { box-shadow: 0 18px 40px rgba(37,211,102,.3); }

.whatsapp-float {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #08341C; display: grid; place-items: center;
  box-shadow: 0 18px 40px rgba(37,211,102,.35);
  transition: transform .4s var(--ease-bounce);
}
.whatsapp-float:hover { transform: scale(1.08); }

.hero-photo-frame {
  position: relative; z-index: 1; margin: 2.6rem auto 0; max-width: 300px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.hero-photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,21,36,0) 55%, rgba(10,21,36,.55) 100%);
  pointer-events: none;
}
.hero-photo-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
@media (min-width: 960px) {
  .hero-photo-frame { max-width: 340px; }
}

.brands-strip { padding: 2.2rem 0; border-bottom: 1px solid var(--line-soft); }
.brands-strip-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
@media (min-width: 760px) {
  .brands-strip-inner { flex-direction: row; justify-content: center; text-align: left; gap: 1.6rem; }
}
.brands-strip-label { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-3); white-space: nowrap; }
.brands-strip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem .9rem; }
.brand-chip {
  font-family: var(--serif); font-size: .95rem; color: var(--cream-2);
  padding: .3rem .2rem; border-bottom: 2px solid transparent; transition: border-color .25s, color .25s;
}
.brand-chip:hover { color: var(--accent); border-color: var(--accent); }

.contact-info-icon--whatsapp { color: #25D366; }

/* =============================================================
   9. Reduced-motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; opacity: .5; }
  .splash-line::after { animation: none; }
  .hero-scroll-cue span { animation: none; }
  .chat-typing span { animation: none; }
}
