/* construcciones.css (COMPLETO) */
:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --panel2:#111b27;
  --text:#e9eef6;
  --muted:rgba(233,238,246,.78);
  --soft:rgba(233,238,246,.12);
  --soft2:rgba(233,238,246,.18);
  --line:rgba(233,238,246,.14);
  --shadow:0 18px 50px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:22px;
  --max:1160px;

  --primary:#c77423;
  --primary2:#f5c16c;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:"Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(199,116,35,.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(245,193,108,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.cx-shell{width:min(var(--max), calc(100% - 44px)); margin-inline:auto}
.cx-section{padding:64px 0}
.cx-section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border-top:1px solid rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.04);
}

/* ================= TOPBAR (igual index) ================= */
.topbar{
  position:sticky;
  top:0;
  z-index:80;
  background:rgba(11,15,20,.55);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:10px 0;
  font-size:.92rem;
}
/* ================= TOPBAR (fix layout) ================= */
.topbar{
  position:sticky;
  top:0;
  z-index:80;
  background:rgba(11,15,20,.55);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:10px 0;
  font-size:.92rem;
}

.topbar__inner{
  width:min(var(--max), calc(100% - 44px));
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.topbar__left,
.topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(233,238,246,.86);
}

.topbar__right{
  justify-content:flex-end;
  flex-wrap:wrap;
}

.dot{opacity:.6}


/* Pills (tel) */
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:rgba(233,238,246,.92);
  font-weight:700;
  letter-spacing:.15px;
  transition:transform .16s ease, background .2s ease, border-color .2s ease;
  position:relative;
  overflow:hidden;
}
.pill::after{
  content:"";
  position:absolute;
  inset:-40% -80%;
  background:linear-gradient(90deg, transparent, rgba(245,193,108,.14), transparent);
  transform:translateX(-40%);
  animation:shine 6.5s linear infinite;
  pointer-events:none;
}
@keyframes shine{
  0%{transform:translateX(-40%)}
  55%{transform:translateX(40%)}
  100%{transform:translateX(40%)}
}
.pill:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.20);
}

/* Language switch */
.langSwitch{
  display:inline-flex;
  gap:6px;
  padding:4px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}
.langBtn{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  background:transparent;
  color:rgba(233,238,246,.90);
  font:800 .78rem/1 "Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  padding:7px 10px;
  border-radius:999px;
  cursor:pointer;
  letter-spacing:.06em;
  transition:background .18s ease, transform .18s ease, opacity .18s ease;
  opacity:.9;
}
.langBtn:hover{transform:translateY(-1px);opacity:1}
.langBtn.is-active{
  background:linear-gradient(135deg, rgba(199,116,35,.92), rgba(245,193,108,.86));
  color:#111;
  box-shadow:0 12px 26px rgba(199,116,35,.18);
  opacity:1;
}
.langBtn:focus{outline:none}
.langBtn:focus-visible{outline:2px solid rgba(245,193,108,.35); outline-offset:3px}

/* ================= NAV (cx) ================= */
.cx-nav{
  position:sticky;
  top:44px; /* debajo del topbar */
  z-index:70;
  background:rgba(11,15,20,.55);
  backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.cx-nav.is-scrolled{background:rgba(11,15,20,.72)}
.cx-nav .cx-shellNav{
  width:min(var(--max), calc(100% - 44px));
  margin-inline:auto;
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.cx-brand{display:flex;align-items:center;gap:10px}
.cx-brand img{width:88px;height:auto;filter:drop-shadow(0 8px 20px rgba(0,0,0,.25))}

.cx-menu{display:flex;align-items:center;gap:14px}
.cx-link{
  position:relative;
  padding:10px 12px;
  border-radius:12px;
  color:rgba(233,238,246,.88);
  transition:background .2s ease, transform .2s ease, opacity .2s ease;
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.2px;
  opacity:.92;
  display:inline-flex;align-items:center;gap:8px;
}
.cx-link:hover{background:rgba(255,255,255,.06);opacity:1}
.cx-link.is-active{
  background:rgba(199,116,35,.14);
  border:1px solid rgba(199,116,35,.22);
  opacity:1;
}
.cx-cta{
  margin-left:6px;
  padding:10px 14px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(199,116,35,.92), rgba(245,193,108,.86));
  color:#111;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow:0 14px 32px rgba(199,116,35,.18);
  transition:transform .18s ease, filter .18s ease;
}
.cx-cta:hover{transform:translateY(-1px);filter:saturate(1.1)}

/* Dropdown */
.cx-dropdown{position:relative}
.cx-dropdown__btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;opacity:.9}
.cx-dropdown__panel{
  position:absolute; top:calc(100% + 10px); left:0;
  min-width:240px;
  background:rgba(15,22,32,.92);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:8px;
  display:none;
  overflow:hidden;
}
.cx-dropdown__panel a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:rgba(233,238,246,.90);
  font-weight:600;
  font-size:.92rem;
  transition:background .18s ease;
}
.cx-dropdown__panel a:hover{background:rgba(255,255,255,.06)}
.cx-dropdown.is-open .cx-dropdown__panel{display:block}
.cx-dropdown.is-open .cx-dropdown__btn svg{transform:rotate(180deg)}

/* ✅ FIX: el botón "Servicios" NO debe verse como botón gris */
.cx-dropdown__btn{
  appearance:none;
  -webkit-appearance:none;
  border:0 !important;
  background:transparent !important;
  color:inherit !important;
  font:inherit !important;
  line-height:inherit !important;
  margin:0;
  cursor:pointer;
}
.cx-dropdown__btn.cx-link{
  padding:10px 12px;
  border-radius:12px;
}
.cx-dropdown__btn:focus{outline:none}
.cx-dropdown__btn:focus-visible{
  outline:2px solid rgba(245,193,108,.35);
  outline-offset:3px;
}

/* Burger */
.cx-burger{
  display:none;
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0;
}
.cx-burger span{
  display:block;
  width:18px;height:2px;
  background:rgba(233,238,246,.92);
  border-radius:2px;
  transition:transform .18s ease, opacity .18s ease;
}
.cx-burger.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.cx-burger.is-open span:nth-child(2){opacity:0}
.cx-burger.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ================= HERO ================= */
.cx-hero{position:relative;padding:64px 0 26px;overflow:hidden}
.cx-hero__bg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
  filter:saturate(1.05);
  opacity:.95;
}
.cx-hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(199,116,35,.22), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(245,193,108,.12), transparent 60%),
    linear-gradient(180deg, rgba(11,15,20,.18), rgba(11,15,20,.80));
  pointer-events:none;
}
.cx-hero__content{position:relative; z-index:2}
.cx-heroGrid{display:grid;grid-template-columns:1.05fr .95fr;gap:22px;align-items:stretch}

.cx-badge{
  display:inline-flex;align-items:center;gap:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  padding:8px 12px;
  color:rgba(233,238,246,.90);
  font-weight:700;
  font-size:.88rem;
  letter-spacing:.2px;
  margin-bottom:14px;
}
.cx-pulse{
  width:10px;height:10px;border-radius:999px;
  background:var(--primary2);
  box-shadow:0 0 0 0 rgba(245,193,108,.55);
  animation:pulse 1.8s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(245,193,108,.45)}
  70%{box-shadow:0 0 0 12px rgba(245,193,108,0)}
  100%{box-shadow:0 0 0 0 rgba(245,193,108,0)}
}

.cx-h1{
  font-size:clamp(2.05rem, 3.6vw, 3.15rem);
  line-height:1.08;
  letter-spacing:-.6px;
  margin-bottom:12px;
  text-shadow:0 18px 46px rgba(0,0,0,.45);
}
.cx-lead{color:rgba(233,238,246,.88);font-size:1.06rem;max-width:56ch;margin-bottom:18px}

.cx-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.cx-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 14px;
  border-radius:14px;
  font-weight:800;
  letter-spacing:.2px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .16s ease, background .16s ease, border-color .16s ease, filter .16s ease;
  user-select:none;
  white-space:nowrap;
}
.cx-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;opacity:.95}
.cx-btn--primary{
  background:linear-gradient(135deg, rgba(199,116,35,.95), rgba(245,193,108,.88));
  color:#101318;
  box-shadow:0 18px 42px rgba(199,116,35,.18);
}
.cx-btn--primary:hover{transform:translateY(-1px);filter:saturate(1.06)}
.cx-btn--ghost{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);
  color:rgba(233,238,246,.92);
}
.cx-btn--ghost:hover{transform:translateY(-1px);background:rgba(255,255,255,.08)}

.cx-microline{
  color:rgba(233,238,246,.80);
  font-weight:700;
  font-size:.92rem;
  letter-spacing:.2px;
  margin-top:6px;
}

/* Hero card */
.cx-heroCard{
  background:rgba(15,22,32,.82);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
  position:relative;
  overflow:hidden;
}
.cx-heroCard::before{
  content:"";
  position:absolute; inset:-80px -80px auto auto;
  width:220px;height:220px;border-radius:999px;
  background:radial-gradient(circle, rgba(199,116,35,.25), transparent 62%);
  filter:blur(2px);
  pointer-events:none;
}
.cx-heroCard h3{font-size:1.15rem;letter-spacing:-.2px;margin-bottom:6px}
.cx-heroCard p{color:rgba(233,238,246,.84);font-size:.98rem}

.cx-kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.cx-kpi{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
  cursor:pointer;
  transition:transform .16s ease, background .16s ease;
}
.cx-kpi:hover{transform:translateY(-2px);background:rgba(255,255,255,.07)}
.cx-kpi b{display:block;font-size:.95rem}
.cx-kpi span{display:block;color:rgba(233,238,246,.78);font-size:.86rem;margin-top:2px}

.cx-mini{
  margin-top:10px;
  color:rgba(233,238,246,.86);
  background:rgba(255,255,255,.04);
  border:1px dashed rgba(245,193,108,.28);
  border-radius:16px;
  padding:12px;
  font-weight:600;
}

/* Headings */
.cx-head{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.cx-h2{font-size:clamp(1.55rem, 2.4vw, 2.05rem);letter-spacing:-.35px}
.cx-sub{color:rgba(233,238,246,.80);max-width:72ch}

/* Cards */
.cx-cards{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:14px;margin-top:10px}
.cx-card{
  background:rgba(15,22,32,.72);
  border:1px solid rgba(255,255,255,.11);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 18px 46px rgba(0,0,0,.25);
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
  outline:none;
  display:flex;flex-direction:column;gap:12px;
  min-height:160px;
}
.cx-card:hover{transform:translateY(-3px);background:rgba(15,22,32,.82);border-color:rgba(245,193,108,.18)}
.cx-card:focus{box-shadow:0 0 0 3px rgba(245,193,108,.22), 0 18px 46px rgba(0,0,0,.25)}
.cx-card__top{display:flex;align-items:center;gap:12px}
.cx-card h3{font-size:.98rem;letter-spacing:.7px;text-transform:uppercase}
.cx-icon{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  flex:0 0 auto;
}
.cx-icon svg{width:22px;height:22px;fill:none;stroke:rgba(233,238,246,.92);stroke-width:2}
.cx-bullets{list-style:none;display:flex;flex-direction:column;gap:6px;color:rgba(233,238,246,.86);font-weight:600;font-size:.93rem}
.cx-bullets li{position:relative;padding-left:16px}
.cx-bullets li::before{
  content:"";
  position:absolute;left:0;top:.7em;
  width:6px;height:6px;border-radius:999px;
  background:rgba(245,193,108,.85);
  box-shadow:0 0 0 4px rgba(245,193,108,.12);
  transform:translateY(-50%);
}
.cx-card--featured{
  border-color:rgba(245,193,108,.28);
  background:linear-gradient(180deg, rgba(199,116,35,.10), rgba(15,22,32,.76));
}

/* Bottom CTA */
.cx-bottomCta{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.cx-bottomLine{color:rgba(233,238,246,.86);font-weight:800}
.cx-bottomBtns{display:flex;gap:10px;flex-wrap:wrap}

/* Types */
.cx-types{display:grid;grid-template-columns:repeat(3, minmax(0,1fr));gap:14px;margin-top:10px}
.cx-type{
  background:rgba(15,22,32,.68);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 18px 46px rgba(0,0,0,.22);
}
.cx-type h3{font-size:1.1rem;letter-spacing:-.2px;margin-bottom:6px}
.cx-type p{color:rgba(233,238,246,.82)}
.cx-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.cx-tag{
  padding:7px 10px;border-radius:999px;
  background:rgba(245,193,108,.10);
  border:1px solid rgba(245,193,108,.20);
  color:rgba(233,238,246,.92);
  font-weight:700;
  font-size:.82rem;
}

/* Steps */
.cx-steps{display:grid;grid-template-columns:repeat(4, minmax(0,1fr));gap:14px;margin-top:10px}
.cx-step{
  background:rgba(15,22,32,.68);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 18px 46px rgba(0,0,0,.22);
}
.cx-stepNum{
  width:38px;height:38px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(199,116,35,.18);
  border:1px solid rgba(199,116,35,.26);
  color:rgba(233,238,246,.92);
  font-weight:900;
  margin-bottom:10px;
}
.cx-step b{display:block;margin-bottom:6px}
.cx-step p{color:rgba(233,238,246,.82);font-weight:600;font-size:.94rem}

/* Modal */
.cx-modal{
  position:fixed; inset:0;
  display:none;
  place-items:center;
  background:rgba(0,0,0,.62);
  z-index:120;
  padding:22px;
}
.cx-modal.is-open{display:grid}
.cx-modal__panel{
  width:min(560px, 100%);
  background:rgba(15,22,32,.96);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  box-shadow:0 26px 90px rgba(0,0,0,.55);
  padding:18px;
  position:relative;
}
.cx-modal__close{
  position:absolute; top:10px; right:12px;
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:rgba(233,238,246,.92);
  font-size:22px;
  cursor:pointer;
  transition:transform .16s ease, background .16s ease;
}
.cx-modal__close:hover{transform:translateY(-1px);background:rgba(255,255,255,.08)}
.cx-modal__head{padding-right:54px}
.cx-modal__head h3{font-size:1.2rem;margin-bottom:6px}
.cx-modal__head p{color:rgba(233,238,246,.82);font-weight:600}

.cx-contactBox{
  margin-top:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  overflow:hidden;
}
.cx-contactRow{
  display:flex;justify-content:space-between;align-items:center;
  gap:10px;
  padding:12px 14px;
  border-top:1px solid rgba(255,255,255,.08);
}
.cx-contactRow:first-child{border-top:none}
.cx-k{color:rgba(233,238,246,.72);font-weight:800}
.cx-v{color:rgba(233,238,246,.92);font-weight:800}
.cx-v a{color:inherit;text-decoration:underline;text-decoration-color:rgba(245,193,108,.55);text-underline-offset:3px}

.cx-modal__actions{
  margin-top:14px;
  display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;
}
.cx-fine{
  margin-top:10px;
  color:rgba(233,238,246,.65);
  font-size:.86rem;
  font-weight:700;
  text-align:center;
}

/* WhatsApp floating */
.cx-wa{
  position:fixed;
  right:18px;
  bottom:18px;
  width:56px;height:56px;
  border-radius:18px;
  display:grid;place-items:center;
  background:rgba(64,195,81,.92);
  box-shadow:0 18px 48px rgba(0,0,0,.35);
  z-index:90;
  transition:transform .16s ease, filter .16s ease;
}
.cx-wa:hover{transform:translateY(-2px);filter:saturate(1.05)}
.cx-wa svg{width:30px;height:30px}

/* Reveal */
[data-reveal]{opacity:0;transform:translateY(12px);transition:opacity .6s ease, transform .6s ease}
.is-revealed{opacity:1;transform:translateY(0)}

/* Responsive */
@media (max-width: 980px){
  .cx-heroGrid{grid-template-columns:1fr}
  .cx-kpis{grid-template-columns:1fr 1fr}
  .cx-cards{grid-template-columns:repeat(2, minmax(0,1fr))}
  .cx-types{grid-template-columns:1fr}
  .cx-steps{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width: 760px){
  .cx-nav{top:44px}
  .cx-nav .cx-shellNav{padding:12px 0}
  .cx-burger{display:inline-flex}

  .cx-menu{
    position:fixed;
    left:18px; right:18px;
    top:92px;
    background:rgba(15,22,32,.96);
    border:1px solid rgba(255,255,255,.12);
    border-radius:22px;
    box-shadow:0 30px 90px rgba(0,0,0,.55);
    padding:12px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    z-index:100;
  }
  .cx-menu[data-open="true"]{display:flex}
  .cx-cta{margin-left:0;text-align:center}
  .cx-dropdown__panel{position:static;box-shadow:none;border-radius:16px;display:none;margin-top:6px}
  .cx-dropdown.is-open .cx-dropdown__panel{display:block}
  .cx-cards{grid-template-columns:1fr}
  .cx-steps{grid-template-columns:1fr}
  .cx-kpis{grid-template-columns:1fr}
  .cx-bottomCta{flex-direction:column;align-items:flex-start}
  .cx-bottomBtns{width:100%}
  .cx-bottomBtns .cx-btn{flex:1}

  /* topbar compact */
  .topbar > *{gap:10px}
  .topbar__right{gap:8px;flex-wrap:wrap;justify-content:flex-end}
}

@media (prefers-reduced-motion: reduce){
  .pill::after{animation:none}
  .langBtn, .pill, .cx-link, .cx-cta, [data-reveal]{transition:none}
  .cx-pulse{animation:none}
}
