﻿/* ================================================
   IVÁN LARA CONSTRUCCIONES — Design System v2
   ================================================ */

/* ── Variables ─────────────────────────────────── */
:root {
  --navy:    #1C2B3A;
  --navy-2:  #243447;
  --gold:    #C8922A;
  --gold-h:  #E5AA3A;
  --white:   #FFFFFF;
  --surface: #F8F7F5;
  --surface2:#EEEAE3;
  --text:    #1C2B3A;
  --text-2:  #5C6B7A;
  --border:  #DDD8CF;
  --green:   #16a34a;
  --red:     #dc2626;
  --wa:      #25D366;

  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --r:   10px;
  --r-lg:18px;
  --sh:  0 4px 24px rgba(28,43,58,.10);
  --sh-lg:0 8px 48px rgba(28,43,58,.16);

  --bnav-h: 60px;
  --topbar-h: 78px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; overflow-x:hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-top: var(--topbar-h);
  padding-bottom: var(--bnav-h);
  overflow-x: hidden;
  max-width: 100vw;
}
a { text-decoration:none; color:inherit; }
img { display:block; width:100%; object-fit:cover; }
button { cursor:pointer; font-family:var(--font); border:none; background:none; }

.container { max-width:1120px; margin:0 auto; padding:0 1rem; }

/* ── Topbar ────────────────────────────────────── */
.topbar {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: var(--topbar-h);
  background: var(--navy);
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  overflow: hidden;
}
.topbar.scrolled { background: rgba(28,43,58,.97); backdrop-filter:blur(8px); }
.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
}
.brand__logo {
  height: 48px;
  width: auto !important;
  max-width: 220px;
  display: block;
  object-fit: contain;
  flex-shrink: 1;
}
.drawer__logo {
  height: 32px;
  width: auto !important;
  max-width: 140px;
  display: block;
  object-fit: contain;
}

/* Desktop nav */
.desk-nav {
  display: none;
  align-items: center;
  gap: 1.8rem;
}
.desk-nav a {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 600;
  transition: color .2s;
}
.desk-nav a:hover { color: var(--gold); }
.desk-nav__cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: .55rem 1.3rem;
  border-radius: var(--r);
  font-weight: 700 !important;
  transition: background .2s, transform .15s !important;
}
.desk-nav__cta:hover { background: var(--gold-h) !important; transform:translateY(-1px); }

/* Burger */
.burger {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.burger.open span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

/* ── Drawer ─────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--navy);
  z-index: 300;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.drawer.open { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.drawer__close {
  color: rgba(255,255,255,.6);
  font-size: 1.3rem;
  padding: .3rem .6rem;
  border-radius: 6px;
  transition: color .2s;
}
.drawer__close:hover { color:var(--white); }
.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}
.drawer__nav a {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  font-weight: 600;
  padding: .85rem 1rem;
  border-radius: var(--r);
  transition: background .2s, color .2s;
}
.drawer__nav a:hover { background:rgba(255,255,255,.08); color:var(--gold); }
.drawer__wa {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--wa);
  color: var(--white);
  font-weight: 700;
  padding: .9rem 1.2rem;
  border-radius: var(--r);
  margin-top: auto;
  font-size: .95rem;
  transition: opacity .2s;
}
.drawer__wa:hover { opacity:.9; }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.drawer-overlay.show { opacity:1; pointer-events:auto; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .8rem 1.8rem;
  border-radius: var(--r);
  font-weight: 700;
  font-size: .95rem;
  transition: transform .15s, box-shadow .15s, background .2s;
  border: 2px solid transparent;
}
.btn:hover { transform:translateY(-2px); box-shadow:var(--sh); }
.btn--gold { background:var(--gold); color:var(--white); }
.btn--gold:hover { background:var(--gold-h); }
.btn--ghost { background:rgba(255,255,255,.12); color:var(--white); border-color:rgba(255,255,255,.35); }
.btn--ghost:hover { background:rgba(255,255,255,.22); }
.btn--outline-dark { background:transparent; border-color:var(--border); color:var(--text-2); }
.btn--outline-dark:hover { border-color:var(--navy); color:var(--navy); }
.btn--whatsapp { background:var(--wa); color:var(--white); }
.btn--whatsapp:hover { background:#20ba58; }
.btn--full { width:100%; }

/* ── Helpers ────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.tag.center { display:block; text-align:center; }
.sh2 { font-size: clamp(1.35rem,5vw,2.4rem); font-weight:800; color:var(--navy); line-height:1.15; }
.sh2.center { text-align:center; }
.sh2.light { color:var(--white); }
.ssub { color:var(--text-2); font-size:.93rem; margin-top:.5rem; }
.ssub.center { text-align:center; }
.gold { color:var(--gold); }
.center { text-align:center; }
.hidden { display:none !important; }
.section { padding: 3rem 0; }
.section--surface { background:var(--surface); }
.section--dark { background:var(--navy); }

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 480px;
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero__bg.loaded { transform:scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,43,58,.88) 0%, rgba(28,43,58,.55) 100%);
}
.hero__body {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}
.hero__badge {
  display: block;
  text-align: center;
  background: rgba(200,146,42,.2);
  border: 1px solid rgba(200,146,42,.5);
  color: var(--gold-h);
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 50px;
  margin: 0 auto 1rem;
  letter-spacing: .5px;
  max-width: max-content;
}
.hero__body h1 {
  font-size: clamp(1.6rem, 7vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero__body p {
  font-size: clamp(.9rem,3.5vw,1.15rem);
  opacity: .88;
  max-width: 560px;
  margin-bottom: 1.5rem;
}
.hero__ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.hero__ctas .btn {
  flex: 1;
  padding: .6rem 1rem;
  font-size: .82rem;
  white-space: nowrap;
  justify-content: center;
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .3rem;
  flex-wrap: nowrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust-item strong { font-size:1rem; font-weight:900; color:var(--gold); line-height:1; }
.trust-item span   { font-size:.58rem; opacity:.75; letter-spacing:.5px; text-transform:uppercase; }
.trust-sep { width:1px; height:18px; background:rgba(255,255,255,.2); flex-shrink:0; }

/* ── About ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4/3;
}
.about-img img { height:100%; object-fit:cover; }
.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--r);
  padding: .8rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-badge strong { font-size:2rem; font-weight:900; line-height:1; }
.about-badge span   { font-size:.75rem; font-weight:600; letter-spacing:.5px; }
.about-text h2 { font-size:clamp(1.3rem,5vw,2.1rem); font-weight:800; color:var(--navy); margin-bottom:.8rem; }
.about-text p  { color:var(--text-2); margin-bottom:.8rem; }
.values { display:flex; flex-direction:column; gap:1rem; margin-top:1.5rem; }
.value  { display:flex; gap:1rem; align-items:flex-start; }
.value__icon { color:var(--gold); font-size:1.1rem; margin-top:.1rem; flex-shrink:0; }
.value strong { display:block; color:var(--navy); font-weight:700; margin-bottom:.15rem; }
.value p { color:var(--text-2); font-size:.9rem; margin:0; }

/* ── Services ───────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}
.scard {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: transform .25s, box-shadow .25s;
}
.scard:hover { transform:translateY(-5px); box-shadow:var(--sh-lg); }
.scard__img { aspect-ratio:16/9; overflow:hidden; }
.scard__img img { transition:transform .4s; height:100%; }
.scard:hover .scard__img img { transform:scale(1.05); }
.scard__body { padding:1rem 1rem 1.2rem; }
.scard__icon { font-size:1.6rem; margin-bottom:.6rem; }
.scard__body h3 { font-size:1.05rem; font-weight:800; color:var(--navy); margin-bottom:.5rem; }
.scard__body p  { color:var(--text-2); font-size:.9rem; margin-bottom:1rem; }
.scard__link { color:var(--gold); font-weight:700; font-size:.9rem; transition:gap .2s; }
.scard__link:hover { color:var(--gold-h); }

/* ── Projects ───────────────────────────────────── */
.proj-filters { display: none; }
.filt {
  padding: .5rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all .2s;
}
.filt.active, .filt:hover { background:var(--navy); color:var(--white); border-color:var(--navy); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.proj-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform .25s;
}
.proj-item:hover { transform:scale(1.02); }
.proj-item img { height:100%; transition:transform .4s; }
.proj-item:hover img { transform:scale(1.08); }
.proj-item__over {
  display: none;
}
.proj-item:hover .proj-item__over { display: none; }
.proj-item__over span { color:var(--white); font-size:.85rem; font-weight:600; }
.proj-item.hidden { display:none; }

/* ── Herramientas ───────────────────────────────── */
.tool-tabs {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.ttab {
  padding: .7rem 1.6rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 700;
  transition: all .2s;
}
.ttab.active, .ttab:hover { background:var(--gold); color:var(--white); border-color:var(--gold); }
.tool-panel { max-width: 720px; margin: 0 auto; }

/* Wizard */
.wizard { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:var(--r-lg); padding:1.2rem; backdrop-filter:blur(4px); }
.wiz-progress { display:flex; align-items:center; justify-content:center; gap:0; margin-bottom:2rem; }
.wiz-step-dot {
  width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.15);
  color:rgba(255,255,255,.5);
  display:flex; align-items:center; justify-content:center;
  font-size:.8rem; font-weight:700;
  transition: all .3s;
  flex-shrink: 0;
}
.wiz-step-dot.active, .wiz-step-dot.done { background:var(--gold); color:var(--white); }
.wiz-progress-line { flex:1; max-width:60px; height:2px; background:rgba(255,255,255,.15); }

.wiz-step { display:none; }
.wiz-step.active { display:block; }
.wiz-step h3 { color:var(--white); font-size:1.2rem; font-weight:800; margin-bottom:1.5rem; text-align:center; }
.wiz-sub { color:rgba(255,255,255,.65); text-align:center; font-size:.9rem; margin:-1rem 0 1.2rem; }

.wiz-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.wopt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  height: 72px;
  padding: .3rem .2rem;
  border-radius: var(--r);
  border: 2px solid rgba(255,255,255,.18);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  transition: all .2s;
  background: rgba(255,255,255,.05);
  box-sizing: border-box;
  width: 100%;
}
.wopt:hover, .wopt.sel { background:var(--gold); border-color:var(--gold); }
.wopt span { font-size: .6rem; font-weight: 700; line-height: 1.1; text-align: center; }

.wiz-form { display:flex; flex-direction:column; gap:1rem; }
.wff { display:flex; flex-direction:column; gap:.35rem; }
.wff label { color:rgba(255,255,255,.75); font-size:.85rem; font-weight:600; }
.wff input, .wff select {
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--r);
  color: var(--white);
  padding: .7rem 1rem;
  font-size: .95rem;
  font-family: var(--font);
  transition: border-color .2s;
  outline: none;
}
.wff input::placeholder { color:rgba(255,255,255,.35); }
.wff input:focus, .wff select:focus { border-color:var(--gold); }
.wff select option { background:var(--navy); }
.wiz-nav { display:flex; gap:1rem; margin-top:1.5rem; justify-content:flex-end; }

.wiz-result { text-align:center; padding:1rem 0; }
.wiz-result__icon { font-size:3.5rem; margin-bottom:1rem; }
.wiz-result h3 { color:var(--white); font-size:1.4rem; font-weight:800; margin-bottom:.7rem; }
.wiz-result p { color:rgba(255,255,255,.75); margin-bottom:1.2rem; }
.wiz-estimate {
  background: rgba(200,146,42,.15);
  border: 1px solid rgba(200,146,42,.4);
  color: var(--gold-h);
  border-radius: var(--r);
  padding: .9rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: none;
}
.wiz-estimate.show { display:block; }
.wiz-result__ctas { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* Planificador */
.planner h3 { color:var(--white); font-size:1.1rem; font-weight:700; text-align:center; margin-bottom:1rem; }
.planner-types {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.ptype {
  padding: .55rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 600;
  transition: all .2s;
}
.ptype.active, .ptype:hover { background:var(--gold); color:var(--white); border-color:var(--gold); }
.timeline { display:flex; flex-direction:column; gap:0; }
.tl-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.tl-item:last-child { padding-bottom:0; }
.tl-item:last-child .tl-line { display:none; }
.tl-icon-wrap { display:flex; flex-direction:column; align-items:center; }
.tl-icon { width:48px; height:48px; border-radius:50%; background:var(--gold); display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0; }
.tl-line { flex:1; width:2px; background:rgba(200,146,42,.3); margin-top:4px; }
.tl-body { padding-top:.3rem; }
.tl-body h4 { color:var(--white); font-weight:700; font-size:.95rem; }
.tl-body p  { color:rgba(255,255,255,.6); font-size:.83rem; margin:.2rem 0; }
.tl-weeks   { display:inline-block; background:rgba(200,146,42,.2); color:var(--gold-h); font-size:.78rem; font-weight:700; padding:.2rem .6rem; border-radius:50px; }

/* ── Testimonios ────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--sh);
}
.testi-stars { color:var(--gold); font-size:1rem; margin-bottom:.8rem; letter-spacing:2px; }
.testi-card p { color:var(--text-2); font-size:.92rem; font-style:italic; margin-bottom:1.2rem; }
.testi-author { display:flex; align-items:center; gap:.8rem; }
.testi-avatar {
  width:42px; height:42px; border-radius:50%;
  background:var(--navy);
  color:var(--white); font-weight:800; font-size:.8rem;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.testi-author strong { display:block; font-size:.9rem; color:var(--navy); }
.testi-author span   { font-size:.78rem; color:var(--text-2); }

/* ── Contacto ───────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.contact-info h2 { font-size:clamp(1.5rem,3vw,2rem); font-weight:800; color:var(--navy); margin:.4rem 0 .8rem; }
.contact-info > p { color:var(--text-2); margin-bottom:1.5rem; }
.cinfo-items { display:flex; flex-direction:column; gap:.8rem; }
.cinfo-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.cinfo-item:hover { border-color:var(--gold); }
.cinfo-icon { font-size:1.3rem; }
.cinfo-item strong { display:block; font-size:.85rem; font-weight:700; color:var(--navy); }
.cinfo-item span   { font-size:.85rem; color:var(--text-2); }

.cform { background:var(--white); border-radius:var(--r-lg); padding:2rem; box-shadow:var(--sh); }
.cform h3 { font-size:1.1rem; font-weight:800; color:var(--navy); margin-bottom:1.2rem; }
.cff { display:flex; flex-direction:column; gap:.35rem; margin-bottom:.9rem; }
.cff label { font-size:.82rem; font-weight:700; color:var(--navy); }
.cff input, .cff select, .cff textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: .65rem .9rem;
  font-size: .92rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.cff input:focus, .cff select:focus, .cff textarea:focus { border-color:var(--navy); }
.cf-status { text-align:center; font-weight:600; font-size:.9rem; margin-top:.8rem; min-height:1.2rem; }
.cf-ok  { color:var(--green); }
.cf-err { color:var(--red); }

/* ── Footer ─────────────────────────────────────── */
.footer { background:var(--navy); color:rgba(255,255,255,.75); padding:3rem 0 1.5rem; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__brand { display:flex; align-items:center; gap:.9rem; }
.footer__logo  { height:48px; width:auto; object-fit:contain; }
.footer__brand strong { display:block; color:var(--white); font-weight:800; }
.footer__brand span   { color:rgba(255,255,255,.5); font-size:.8rem; }
.footer__links { display:flex; flex-direction:column; gap:.5rem; }
.footer__links strong { color:var(--white); font-weight:700; margin-bottom:.3rem; }
.footer__links a, .footer__links span { font-size:.87rem; transition:color .2s; }
.footer__links a:hover { color:var(--gold); }
.footer__copy { border-top:1px solid rgba(255,255,255,.1); padding-top:1.5rem; text-align:center; font-size:.82rem; color:rgba(255,255,255,.4); }

/* ── Bottom Nav ─────────────────────────────────── */
.bnav {
  position: fixed !important;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(28,43,58,.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
}
.bnav__item {
  flex: 1;
  height: var(--bnav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-2);
  font-size: .62rem;
  font-weight: 600;
  transition: color .2s;
  padding: .25rem 0;
  flex-shrink: 0;
}
.bnav__item svg { flex-shrink: 0; stroke:currentColor; }
.bnav__item span { line-height: 1; }
.bnav__item.active, .bnav__item:hover { color:var(--gold); }

/* ── Chat Widget ────────────────────────────────── */
.chat-widget { position:fixed; bottom:calc(var(--bnav-h) + .75rem); right:.75rem; z-index:190; }
.chat-toggle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items:center; justify-content:center;
  box-shadow: var(--sh-lg);
  transition: transform .2s, background .2s;
}
.chat-toggle:hover { transform:scale(1.08); background:var(--navy-2); }
.chat-toggle.pulse { animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(28,43,58,.4)} 50%{box-shadow:0 0 0 10px rgba(28,43,58,0)} }

.chat-window {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: min(340px, 92vw);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.97);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  max-height: 480px;
}
.chat-widget--open .chat-window { opacity:1; pointer-events:auto; transform:translateY(0) scale(1); }

.chat-head {
  background: var(--navy);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-head__info { display:flex; align-items:center; gap:.7rem; }
.chat-head__avatar {
  width:36px; height:36px; border-radius:50%;
  background:var(--gold); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:.72rem;
}
.chat-head__info strong { color:var(--white); font-size:.9rem; display:block; }
.chat-online { color:var(--wa); font-size:.72rem; font-weight:600; }
.chat-head__close { color:rgba(255,255,255,.6); font-size:1rem; transition:color .2s; padding:.2rem .5rem; }
.chat-head__close:hover { color:var(--white); }

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.chat-msg {
  max-width: 85%;
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.5;
}
.chat-msg--bot { background:var(--surface); color:var(--text); align-self:flex-start; border-bottom-left-radius:4px; }
.chat-msg--user { background:var(--navy); color:var(--white); align-self:flex-end; border-bottom-right-radius:4px; }

.chat-qr {
  padding: .5rem .8rem .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.qr-btn {
  background: rgba(28,43,58,.07);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 50px;
  transition: all .15s;
}
.qr-btn:hover { background:var(--gold); color:var(--white); border-color:var(--gold); }

.chat-bar {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-bar input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: .5rem 1rem;
  font-size: .88rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}
.chat-bar input:focus { border-color:var(--navy); }
#chatSend {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items:center; justify-content:center;
  flex-shrink: 0;
  transition: background .2s;
}
#chatSend:hover { background:var(--gold); }

/* ── WhatsApp FAB ───────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: calc(var(--bnav-h) + 4rem);
  right: .75rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 189;
  transition: transform .2s;
}
.wa-fab:hover { transform:scale(1.1); }

/* ── Responsive ─────────────────────────────────── */
/* ── Mobile-only tweaks ─────────────────────────── */
@media (max-width: 599px) {
  .hero__body { padding-top: 1.2rem; }
  .wiz-result__ctas { flex-direction:column; }
  .wiz-result__ctas .btn { width:100%; }
  .footer__inner { grid-template-columns:1fr; gap:1.5rem; }
  .cform { padding:1.2rem; }
  .wizard { padding:.9rem; }
  .proj-filters { gap:.4rem; }
  .filt { padding:.4rem .8rem; font-size:.78rem; }
  .planner-types { gap:.4rem; }
  .ptype { padding:.45rem .8rem; font-size:.78rem; }
}

/* ── Modal Cotización ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,43,58,.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem 1.5rem;
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 20px 60px rgba(28,43,58,.22);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--surface);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: .85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: background .15s;
}
.modal-close:hover { background: var(--border); }
.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: .25rem 0 1.25rem;
}
.form-row { display:flex; flex-direction:column; gap:.35rem; margin-bottom:.9rem; }
.form-row label { font-size:.8rem; font-weight:700; color:var(--text-1); }
.form-row input,
.form-row select {
  border: 1.5px solid var(--border);
  border-radius: .6rem;
  padding: .65rem .9rem;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text-1);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-row input:focus,
.form-row select:focus { border-color: var(--gold); }
.form-row select:disabled { background: var(--surface); color: var(--text-2); cursor: not-allowed; }
.req { color: var(--gold); }
/* 2-column grid en desktop */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-row--full { grid-column: 1 / -1; }
@media (min-width: 520px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}
.form-error { color: #e53e3e; font-size: .8rem; margin-bottom: .75rem; }
.form-note { font-size: .75rem; color: var(--text-2); margin-top: .75rem; }
.btn--full { width: 100%; justify-content: center; }
.modal-success {
  text-align: center;
  padding: 1.5rem 0 .5rem;
}
.modal-success__icon {
  width: 60px; height: 60px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 auto 1rem;
}
.modal-success h4 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: .5rem; }
.modal-success p  { color: var(--text-2); font-size: .9rem; margin-bottom: 1.25rem; }
.hidden { display: none !important; }

@media (min-width: 480px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .testi-grid    { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bnav { display:none; }
  .burger { display:none !important; }
  .section { padding: 5rem 0; }
  .container { padding: 0 1.5rem; }
  /* Restaurar hero en desktop */
  .hero { min-height: 580px; min-height: 100vh; min-height: 100dvh; }
  .hero__body { padding: 4rem 1.5rem 10rem; }
  .hero__badge { display:inline-flex; align-items:center; gap:.5rem; margin:0 0 1rem; text-align:left; }
  .hero__ctas .btn { flex:0 0 auto; padding:.8rem 1.8rem; font-size:.95rem; }
  .trust-item strong { font-size:1.2rem; }
  .trust-item span   { font-size:.65rem; }
  .trust-sep { height:24px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap:3rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .wa-fab { bottom: 1.5rem; right:1.5rem; width:52px; height:52px; }
  .chat-widget { bottom: 1.5rem; right:1.5rem; }
  .proj-grid { grid-template-columns: repeat(3,1fr); gap:1rem; }
  .proj-item__over { opacity:0; padding:1rem; }
  .proj-item:hover .proj-item__over { opacity:1; }
  .wiz-options { grid-template-columns: repeat(6, 1fr); gap: .5rem; }
  .wopt { height: 80px; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3,1fr); }
  .testi-grid    { grid-template-columns: repeat(4,1fr); }
}
