/* ============================================================
   shared.css — KE Construcciones Design System
   Imported by ALL pages for visual consistency
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ================== DESIGN TOKENS ================== */
:root {
  /* Brand Colors */
  --ke-orange: #ff6200;
  --ke-orange-dark: #e55800;
  --ke-orange-light: #fff0e5;
  --ke-orange-glow: rgba(255, 98, 0, 0.25);
  --ke-grad: linear-gradient(135deg, #ff6200, #ff8c00);

  /* Neutrals */
  --ke-bg: #ffffff;
  --ke-surface: #f7f9fc;
  --ke-text: #0f141e;
  --ke-muted: #5e6a7c;
  --ke-stroke: #e4e7ec;
  --ke-dark: #0b0f28;

  /* Shadows */
  --ke-shadow-xs: 0 2px 8px rgba(15, 20, 30, 0.04);
  --ke-shadow-sm: 0 4px 12px rgba(15, 20, 30, 0.06);
  --ke-shadow-md: 0 12px 32px rgba(15, 20, 30, 0.08);
  --ke-shadow-lg: 0 24px 64px rgba(255, 98, 0, 0.12);
  --ke-shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.18);

  /* Radius */
  --ke-r-sm: 12px;
  --ke-r-md: 20px;
  --ke-r-lg: 32px;
  --ke-r-pill: 99px;

  /* Transitions */
  --ke-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ke-t: 0.3s var(--ke-ease);

  /* Layout */
  --ke-max: 1200px;
  --ke-gap: 24px;
}

/* ================== RESET ================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--ke-text);
  background-color: var(--ke-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ke-orange); outline-offset: 3px; }

/* ================== SHELL ================== */
.ke-shell { width: min(var(--ke-max), calc(100% - 48px)); margin: 0 auto; }

/* ================== SHARED TOPBAR ================== */
.ke-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(228, 231, 236, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  font-size: 0.88rem;
}
.ke-topbar__inner {
  width: min(var(--ke-max), calc(100% - 44px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.ke-topbar__left,
.ke-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ke-topbar__right { flex-wrap: wrap; justify-content: flex-end; }
.ke-topbar a {
  font-weight: 700;
  color: var(--ke-muted);
  transition: color var(--ke-t), transform var(--ke-t);
}
.ke-topbar a:hover { color: var(--ke-orange); transform: translateY(-1px); }
.ke-topbar .dot { opacity: 0.3; }

/* Phone pills */
.ke-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--ke-r-pill);
  background: var(--ke-surface);
  color: var(--ke-text);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--ke-stroke);
  transition: all var(--ke-t);
}
.ke-pill:hover {
  background: var(--ke-orange-light);
  color: var(--ke-orange);
  border-color: rgba(255, 98, 0, 0.2);
  transform: translateY(-1px);
}

/* Language Switch */
.ke-langSwitch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: var(--ke-r-pill);
  background: var(--ke-surface);
  border: 1px solid var(--ke-stroke);
}
.ke-langBtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ke-muted);
  font: 800 0.78rem/1 'Outfit', system-ui, sans-serif;
  padding: 5px 10px;
  border-radius: var(--ke-r-pill);
  cursor: pointer;
  transition: all var(--ke-t);
}
.ke-langBtn:hover { color: var(--ke-text); transform: translateY(-1px); }
.ke-langBtn.is-active {
  background: var(--ke-grad);
  color: #fff;
  box-shadow: 0 4px 12px var(--ke-orange-glow);
}

/* ================== SHARED NAVIGATION ================== */
.ke-nav {
  position: sticky;
  top: 40px;
  z-index: 70;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(228, 231, 236, 0.6);
  transition: all var(--ke-t);
}
.ke-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ke-shadow-sm);
}
.ke-nav__inner {
  width: min(var(--ke-max), calc(100% - 44px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand */
.ke-brand { display: inline-flex; align-items: center; transition: transform var(--ke-t); }
.ke-brand img { height: 44px; width: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1)); }
.ke-brand:hover { transform: scale(1.03); }

/* Menu */
.ke-menu { display: flex; align-items: center; gap: 6px; }
.ke-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ke-text);
  padding: 8px 16px;
  border-radius: var(--ke-r-pill);
  transition: all var(--ke-t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ke-link:hover { color: var(--ke-orange); background: var(--ke-orange-light); }
.ke-link.is-active { color: var(--ke-orange); font-weight: 800; }

.ke-cta {
  margin-left: 12px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--ke-r-pill);
  background: var(--ke-grad);
  color: #fff;
  box-shadow: 0 8px 24px var(--ke-orange-glow);
  transition: all var(--ke-t);
}
.ke-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--ke-shadow-lg);
}

/* Dropdown */
.ke-dropdown { position: relative; }
.ke-dropdown__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ke-dropdown__btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.5; fill: none; transition: transform var(--ke-t); }
.ke-dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 10px;
  border-radius: var(--ke-r-md);
  background: #fff;
  border: 1px solid var(--ke-stroke);
  box-shadow: var(--ke-shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--ke-t);
}
.ke-dropdown__panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ke-text);
  font-size: 0.95rem;
  transition: all var(--ke-t);
}
.ke-dropdown__panel a:hover {
  background: var(--ke-surface);
  color: var(--ke-orange);
  padding-left: 18px;
}
.ke-dropdown.is-open .ke-dropdown__panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.ke-dropdown.is-open .ke-dropdown__btn svg { transform: rotate(180deg); }

/* Burger */
.ke-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--ke-r-sm);
  border: 1px solid var(--ke-stroke);
  background: var(--ke-surface);
  color: var(--ke-text);
  cursor: pointer;
  position: relative;
  z-index: 85;
  align-items: center;
  justify-content: center;
}
.ke-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
  border-radius: 2px;
  transition: all var(--ke-t);
}
.ke-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ke-burger.is-open span:nth-child(2) { opacity: 0; }
.ke-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ================== SHARED BUTTONS ================== */
.ke-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--ke-r-pill);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--ke-t);
  text-decoration: none;
  white-space: nowrap;
}
.ke-btn svg {
  width: 20px; height: 20px;
  stroke: currentColor; stroke-width: 2.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.ke-btn--primary {
  background: var(--ke-grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 98, 0, 0.35);
}
.ke-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255, 98, 0, 0.4);
}
.ke-btn--ghost {
  background: transparent;
  color: var(--ke-text);
  border: 1px solid var(--ke-stroke);
}
.ke-btn--ghost:hover {
  background: var(--ke-surface);
  border-color: var(--ke-orange);
  color: var(--ke-orange);
  transform: translateY(-2px);
}
/* Ghost on dark backgrounds */
.ke-btn--ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.ke-btn--ghost-light:hover {
  background: #fff;
  color: var(--ke-text);
  transform: translateY(-2px);
}

/* ================== WHATSAPP FLOAT ================== */
.ke-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
  transition: all var(--ke-t);
  animation: ke-waPulse 2s infinite;
}
.ke-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5);
  animation: none;
}
.ke-whatsapp svg { width: 32px; height: 32px; }
@keyframes ke-waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ================== SHARED MODAL ================== */
.ke-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 20, 30, 0.65);
  backdrop-filter: blur(8px);
}
.ke-modal.is-open { display: grid; }
.ke-modal__panel {
  width: min(560px, 100%);
  background: #fff;
  border-radius: var(--ke-r-lg);
  padding: 36px;
  position: relative;
  box-shadow: var(--ke-shadow-xl);
  animation: ke-modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes ke-modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ke-modal__close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--ke-surface);
  color: var(--ke-text);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--ke-t);
}
.ke-modal__close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}
.ke-modal__head h3 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.ke-modal__head p {
  margin: 0 0 28px;
  color: var(--ke-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}
.ke-contactBox {
  border: 1px solid var(--ke-stroke);
  border-radius: var(--ke-r-md);
  overflow: hidden;
}
.ke-contactRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ke-stroke);
  background: var(--ke-surface);
  transition: background var(--ke-t);
}
.ke-contactRow:last-child { border-bottom: none; }
.ke-contactRow:hover { background: var(--ke-orange-light); }
.ke-k { font-weight: 700; color: var(--ke-muted); }
.ke-v { font-weight: 700; color: var(--ke-text); }
.ke-v a { color: var(--ke-orange); transition: color var(--ke-t); }
.ke-v a:hover { color: var(--ke-text); }
.ke-modal__actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ke-modal__actions .ke-btn { flex: 1; min-width: 140px; }
.ke-fine {
  margin: 20px 0 0;
  color: var(--ke-muted);
  font-size: 0.88rem;
  text-align: center;
  font-weight: 500;
}

/* ================== REVEAL ANIMATIONS ================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ke-ease), transform 0.7s var(--ke-ease);
}
.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ================== COUNTER SECTION ================== */
.ke-counters {
  padding: 80px 0;
  background: var(--ke-dark);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ke-counters::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 98, 0, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 140, 0, 0.06), transparent 50%);
  pointer-events: none;
}
.ke-counters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}
.ke-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ke-counter__num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -2px;
  background: var(--ke-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ke-counter__label {
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

/* ================== FOOTER ================== */
.ke-footer {
  background: var(--ke-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
  position: relative;
}
.ke-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ke-grad);
}
.ke-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.ke-footer__brand p {
  margin: 16px 0 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
}
.ke-footer__brand img {
  height: 48px;
  width: auto;
  filter: brightness(10);
}
.ke-footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.ke-footer__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  transition: all var(--ke-t);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}
.ke-footer__socials a:hover {
  background: var(--ke-orange);
  border-color: var(--ke-orange);
  color: #fff;
  transform: translateY(-3px);
}
.ke-footer h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ke-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ke-footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--ke-t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ke-footer__links a::before {
  content: '→';
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--ke-t);
}
.ke-footer__links a:hover {
  color: var(--ke-orange);
  padding-left: 4px;
}
.ke-footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.ke-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ke-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}
.ke-footer__contact-item strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}
.ke-footer__contact-item a {
  color: var(--ke-orange);
  transition: color var(--ke-t);
}
.ke-footer__contact-item a:hover { color: #fff; }
.ke-footer__contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ke-orange);
}
.ke-footer__contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.ke-footer__bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ================== SECTION HELPERS ================== */
.ke-section { padding: 80px 0; }
.ke-section--alt {
  background: var(--ke-surface);
  border-top: 1px solid var(--ke-stroke);
  border-bottom: 1px solid var(--ke-stroke);
}
.ke-head { text-align: center; margin-bottom: 48px; }
.ke-h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ke-text);
}
.ke-sub {
  margin: 12px auto 0;
  max-width: 650px;
  color: var(--ke-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ================== COTIZADOR (CONSTRUCTION CALCULATOR) ================== */
.ke-calc {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--ke-surface) 0%, var(--ke-bg) 100%);
  position: relative;
}
.ke-calc__wrapper {
  background: #fff;
  border-radius: var(--ke-r-lg);
  border: 1px solid var(--ke-stroke);
  box-shadow: var(--ke-shadow-md);
  overflow: hidden;
}
.ke-calc__header {
  padding: 32px 36px;
  background: var(--ke-dark);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ke-calc__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 98, 0, 0.15), transparent 60%);
  pointer-events: none;
}
.ke-calc__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  position: relative;
}
.ke-calc__header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  margin: 0;
  position: relative;
}
.ke-calc__body { padding: 36px; }
.ke-calc__step {
  margin-bottom: 36px;
}
.ke-calc__step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ke-calc__step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ke-grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ke-calc__step-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ke-text);
}

/* Type selector cards */
.ke-calc__types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 12px;
}
.ke-calc__type {
  appearance: none;
  border: 2px solid var(--ke-stroke);
  background: #fff;
  border-radius: var(--ke-r-md);
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: all var(--ke-t);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ke-calc__type:hover {
  border-color: rgba(255, 98, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--ke-shadow-sm);
}
.ke-calc__type.is-selected {
  border-color: var(--ke-orange);
  background: var(--ke-orange-light);
  box-shadow: 0 8px 24px var(--ke-orange-glow);
}
.ke-calc__type-icon {
  font-size: 2rem;
}
.ke-calc__type-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ke-text);
}

/* Sqm input */
.ke-calc__sqm-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ke-calc__sqm-input {
  width: 160px;
  padding: 14px 20px;
  border: 2px solid var(--ke-stroke);
  border-radius: var(--ke-r-md);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ke-text);
  text-align: center;
  transition: border-color var(--ke-t);
  background: #fff;
}
.ke-calc__sqm-input:focus {
  border-color: var(--ke-orange);
  outline: none;
  box-shadow: 0 0 0 4px var(--ke-orange-glow);
}
.ke-calc__sqm-unit {
  font-weight: 600;
  color: var(--ke-muted);
  font-size: 1rem;
}
.ke-calc__sqm-slider {
  flex: 1;
  min-width: 200px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--ke-stroke);
  border-radius: 3px;
  outline: none;
}
.ke-calc__sqm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ke-grad);
  cursor: pointer;
  box-shadow: 0 4px 12px var(--ke-orange-glow);
  transition: transform var(--ke-t);
}
.ke-calc__sqm-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Finish level */
.ke-calc__levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}
.ke-calc__level {
  appearance: none;
  border: 2px solid var(--ke-stroke);
  background: #fff;
  border-radius: var(--ke-r-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--ke-t);
  text-align: left;
}
.ke-calc__level:hover {
  border-color: rgba(255, 98, 0, 0.3);
  transform: translateY(-2px);
}
.ke-calc__level.is-selected {
  border-color: var(--ke-orange);
  background: var(--ke-orange-light);
}
.ke-calc__level-name {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}
.ke-calc__level-desc {
  font-size: 0.85rem;
  color: var(--ke-muted);
  line-height: 1.4;
}
.ke-calc__level-price {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ke-orange);
}

/* Extras */
.ke-calc__extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}
.ke-calc__extra {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--ke-stroke);
  border-radius: var(--ke-r-sm);
  cursor: pointer;
  transition: all var(--ke-t);
  user-select: none;
}
.ke-calc__extra:hover {
  background: var(--ke-surface);
  border-color: rgba(255, 98, 0, 0.2);
}
.ke-calc__extra.is-selected {
  background: var(--ke-orange-light);
  border-color: var(--ke-orange);
}
.ke-calc__extra-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--ke-stroke);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--ke-t);
  font-size: 0.7rem;
  color: transparent;
}
.ke-calc__extra.is-selected .ke-calc__extra-check {
  background: var(--ke-orange);
  border-color: var(--ke-orange);
  color: #fff;
}
.ke-calc__extra-info {
  display: flex;
  flex-direction: column;
}
.ke-calc__extra-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.ke-calc__extra-price {
  font-size: 0.8rem;
  color: var(--ke-muted);
}

/* Result panel */
.ke-calc__result {
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--ke-r-md);
  background: var(--ke-dark);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ke-calc__result::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 98, 0, 0.12), transparent 60%);
  pointer-events: none;
}
.ke-calc__result-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  position: relative;
}
.ke-calc__result-price {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  background: var(--ke-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  position: relative;
}
.ke-calc__result-range {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  position: relative;
}
.ke-calc__result-disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
  position: relative;
  font-style: italic;
}
.ke-calc__result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
  .ke-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .ke-topbar { display: none; }
  .ke-nav { top: 0; }
  .ke-burger { display: flex; }
  .ke-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    box-shadow: var(--ke-shadow-md);
    border-bottom: 1px solid var(--ke-stroke);
    transform: translateY(-120%);
    transition: transform var(--ke-t);
    gap: 12px;
    align-items: stretch;
    z-index: 80;
  }
  .ke-menu[data-open="true"] { transform: translateY(0); }
  .ke-link {
    font-size: 1.1rem;
    padding: 12px;
    border-radius: var(--ke-r-sm);
    background: var(--ke-surface);
    text-align: center;
    justify-content: center;
  }
  .ke-cta { margin-left: 0; text-align: center; justify-content: center; }
  .ke-dropdown__panel {
    position: static;
    opacity: 1;
    transform: none;
    display: none;
    margin-top: 8px;
    pointer-events: auto;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 4px 8px;
  }
  .ke-dropdown.is-open .ke-dropdown__panel { display: block; }

  .ke-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ke-counters__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .ke-calc__body { padding: 20px; }
  .ke-calc__sqm-group { flex-direction: column; align-items: stretch; }
  .ke-calc__sqm-input { width: 100%; }
  .ke-calc__result { padding: 24px 16px; }
  .ke-section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .ke-counters__grid { grid-template-columns: 1fr 1fr; }
  .ke-calc__types { grid-template-columns: 1fr 1fr; }
}

/* ================== PREFERS REDUCED MOTION ================== */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .ke-whatsapp { animation: none; }
  .ke-btn, .ke-pill, .ke-link, .ke-cta, .ke-card { transition: none; }
}

/* =============================================================
   CRITICAL FIX: Dark background text overrides
   Pages use .cx-hero with dark overlays but text color is dark.
   These overrides ensure text is WHITE on dark sections.
   ============================================================= */

/* Hero Section — enforce white text */
.cx-hero { position: relative; }
.cx-hero__content,
.cx-hero .cx-heroGrid,
.cx-hero .cx-h1,
.cx-hero .cx-lead,
.cx-hero .cx-badge,
.cx-hero .cx-badge span,
.cx-hero .cx-actions .cx-btn--ghost,
.cx-hero .cx-microline {
  color: #fff !important;
}
.cx-hero .cx-lead strong { color: #fff; }
.cx-hero .cx-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.cx-hero .cx-actions .cx-btn--ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(8px);
}
.cx-hero .cx-actions .cx-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-2px);
}
.cx-hero .cx-microline {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Trust chips in hero */
.cx-hero .cx-chip,
.cx-hero .cx-trust .cx-chip {
  color: #fff !important;
}
.cx-chip b, .cx-chip span { color: inherit !important; }

/* Hero gallery tags */
.cx-hero .cx-gallery .cx-gTag { color: #fff !important; }

/* =============================================================
   PREMIUM SERVICE PAGES (cx-) — ANIMATIONS & DESIGN SYSTEM
   Applies to: construcciones, remodelaciones, ampliaciones,
               planos, piscinas, movimientos
   ============================================================= */

/* ── HERO SECTION ── */

/* Floating animation for hero card */
@keyframes ke-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.cx-heroCard {
  animation: ke-float 5s ease-in-out infinite;
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(15, 22, 32, 0.75) !important;
  border-radius: 24px !important;
  overflow: hidden;
  position: relative;
}
.cx-heroCard::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(255, 98, 0, 0.06) 60deg,
    transparent 120deg
  );
  animation: ke-heroCardRotate 15s linear infinite;
  pointer-events: none;
}
@keyframes ke-heroCardRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cx-heroCard:hover {
  animation-play-state: paused;
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 60px rgba(255, 98, 0, 0.15) !important;
  border-color: rgba(255, 98, 0, 0.2) !important;
}
.cx-heroCard h3, .cx-heroCard p, .cx-heroCard span, .cx-heroCard li, .cx-heroCard b {
  color: rgba(255, 255, 255, 0.92) !important;
  position: relative;
  z-index: 1;
}

/* Hero H1 gradient text */
.cx-hero .cx-h1 {
  color: #fff !important;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Hero particles overlay */
.cx-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 35% 65%, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 55% 15%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 85% 75%, rgba(255,98,0,0.25), transparent),
    radial-gradient(1px 1px at 25% 85%, rgba(255,140,0,0.2), transparent);
  background-size: 250px 250px;
  animation: ke-heroParticles 50s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes ke-heroParticles {
  from { transform: translateY(0); }
  to { transform: translateY(-250px); }
}

/* Ensure hero content is above particles */
.cx-hero .cx-heroGrid,
.cx-hero .cx-shell,
.cx-hero__content {
  position: relative;
  z-index: 2;
}

/* Badge glow */
.cx-badge {
  animation: ke-badgeGlow 3s ease-in-out infinite;
  backdrop-filter: blur(12px);
}
@keyframes ke-badgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255,98,0,0); border-color: rgba(255,255,255,0.15); }
  50% { box-shadow: 0 0 24px rgba(255,98,0,0.12); border-color: rgba(255,98,0,0.25); }
}

/* Pulse dot enhanced */
.cx-pulse {
  animation: ke-pulseDot 2s ease-in-out infinite !important;
}
@keyframes ke-pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255,98,0,0.7); }
  50% { opacity: 0.7; transform: scale(1.3); box-shadow: 0 0 0 8px rgba(255,98,0,0); }
}

/* CTA shimmer */
@keyframes ke-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.cx-btn--primary {
  background-size: 200% auto !important;
  animation: ke-shimmer 3s linear infinite;
  position: relative;
  overflow: hidden;
}
.cx-btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  animation: ke-btnShine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ke-btnShine {
  0%, 80% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Ghost button glass */
.cx-btn--ghost {
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.cx-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px);
}

/* KPI cards */
.cx-kpi {
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.cx-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,98,0,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cx-kpi:hover::before { opacity: 1; }
.cx-kpi:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 98, 0, 0.25) !important;
  box-shadow: 0 12px 28px rgba(255, 98, 0, 0.12);
  background: rgba(255, 255, 255, 0.08) !important;
}
.cx-kpi b, .cx-kpi span, .cx-kpi p {
  color: rgba(255, 255, 255, 0.88) !important;
  position: relative;
  z-index: 1;
}

/* Mini section */
.cx-mini {
  color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px);
}

/* Microline */
.cx-microline {
  color: rgba(255, 255, 255, 0.65) !important;
}


/* ── SECTION HEADINGS ── */

.cx-h2 {
  position: relative;
  letter-spacing: -0.5px;
}
.cx-h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff6200, #ff8c00);
  border-radius: 99px;
  margin-top: 16px;
  transition: width 0.4s ease;
}
.cx-head:hover .cx-h2::after {
  width: 100px;
}
.cx-sub {
  line-height: 1.7;
}


/* ── SERVICE CARDS (cx-card) ── */

.cx-card {
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  position: relative;
  overflow: hidden;
}
/* Gradient top border on hover */
.cx-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6200, #ff8c00);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.cx-card:hover::before {
  transform: scaleX(1);
}
.cx-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 48px rgba(255, 98, 0, 0.12), 0 8px 16px rgba(0,0,0,0.06) !important;
  border-color: rgba(255, 98, 0, 0.15) !important;
}

/* Stagger reveal for cards */
.cx-cards .cx-card:nth-child(1) { transition-delay: 0s; }
.cx-cards .cx-card:nth-child(2) { transition-delay: 0.08s; }
.cx-cards .cx-card:nth-child(3) { transition-delay: 0.16s; }
.cx-cards .cx-card:nth-child(4) { transition-delay: 0.24s; }
.cx-cards .cx-card:nth-child(5) { transition-delay: 0.32s; }
.cx-cards .cx-card:nth-child(6) { transition-delay: 0.4s; }

/* Card icon animation */
.cx-icon {
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
  position: relative;
}
.cx-card:hover .cx-icon,
.cx-type:hover .cx-icon {
  background: linear-gradient(135deg, rgba(255,98,0,0.9), rgba(255,140,0,0.85)) !important;
  border-color: transparent !important;
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(255, 98, 0, 0.3);
}
.cx-card:hover .cx-icon svg,
.cx-type:hover .cx-icon svg {
  stroke: #fff !important;
}

/* Card title hover color */
.cx-card:hover h3 {
  color: #ff6200 !important;
}

/* Featured card */
.cx-card--featured {
  border-color: rgba(255, 98, 0, 0.2) !important;
  position: relative;
}
.cx-card--featured::after {
  content: '⭐';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1rem;
  opacity: 0.5;
  z-index: 2;
}

/* Bullets custom */
.cx-bullets li::before {
  transition: all 0.25s ease;
}
.cx-card:hover .cx-bullets li::before {
  background: rgba(255, 98, 0, 1) !important;
  box-shadow: 0 0 0 4px rgba(255, 98, 0, 0.15) !important;
  transform: translateY(-50%) scale(1.3);
}


/* ── TYPE CARDS ── */

.cx-type {
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  position: relative;
  overflow: hidden;
}
.cx-type::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle at center, rgba(255,98,0,0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.cx-type:hover::before { opacity: 1; }
.cx-type:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255,98,0,0.1) !important;
  border-color: rgba(255, 98, 0, 0.15) !important;
}

/* Tags hover */
.cx-tag {
  transition: all 0.2s ease;
  cursor: default;
}
.cx-tag:hover {
  background: rgba(255, 140, 0, 0.2) !important;
  border-color: rgba(255, 140, 0, 0.4) !important;
  transform: translateY(-1px);
}


/* ── STEPS TIMELINE ── */

.cx-step {
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
  position: relative;
  overflow: hidden;
}
/* Connecting line between steps */
.cx-steps {
  position: relative;
}
.cx-step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -7px;
  width: 14px;
  height: 2px;
  background: rgba(255, 98, 0, 0.25);
  z-index: 5;
}
.cx-step:last-child::after { display: none; }

.cx-stepNum {
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 1;
}
.cx-step:hover .cx-stepNum {
  transform: scale(1.2) rotate(-8deg);
  background: linear-gradient(135deg, rgba(255,98,0,0.9), rgba(255,140,0,0.8)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(255, 98, 0, 0.35);
}
.cx-step:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
  border-color: rgba(255, 98, 0, 0.12) !important;
}
.cx-step b, .cx-step p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Stagger steps */
.cx-steps .cx-step:nth-child(1) { transition-delay: 0s; }
.cx-steps .cx-step:nth-child(2) { transition-delay: 0.1s; }
.cx-steps .cx-step:nth-child(3) { transition-delay: 0.12s; }
.cx-steps .cx-step:nth-child(4) { transition-delay: 0.18s; }
.cx-steps .cx-step:nth-child(5) { transition-delay: 0.24s; }


/* ── GALLERY ── */

.cx-gItem {
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  position: relative;
  overflow: hidden;
  border-radius: 20px !important;
}
.cx-gItem img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.cx-gItem:hover img {
  transform: scale(1.08);
}
.cx-gItem::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 20px;
}
.cx-gItem:hover::after { opacity: 1; }
.cx-gItem:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25) !important;
}
.cx-gTag {
  position: relative;
  z-index: 2;
}


/* ── BOTTOM CTA ── */

.cx-bottomCta {
  border-radius: 24px !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.cx-bottomCta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 90%, rgba(255,98,0,0.08), transparent 50%);
  pointer-events: none;
}
.cx-bottomCta:hover {
  box-shadow: 0 12px 32px rgba(255, 98, 0, 0.08);
}


/* ── FAQ SECTION ── */

.cx-faqItem {
  transition: all 0.25s ease !important;
  border-radius: 16px !important;
  overflow: hidden;
}
.cx-faqItem:hover {
  background: rgba(255, 98, 0, 0.03) !important;
  border-color: rgba(255, 98, 0, 0.1) !important;
}
.cx-faqQ {
  transition: all 0.2s ease;
}
.cx-faqItem:hover .cx-faqQ {
  color: #ff6200;
}
.cx-faqA {
  transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease, padding 0.3s ease;
}


/* ── SPECS / FEATURES LIST ── */

.cx-specBlock {
  transition: all 0.3s ease;
}
.cx-specBlock:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}


/* ── COUNTER ANIMATION (cx-count) ── */

.cx-count {
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
}


/* ── SECTION DIVIDERS ── */

.cx-section--alt {
  position: relative;
}
.cx-section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,98,0,0.3), transparent);
  border-radius: 99px;
}


/* ── TRUST CHIPS ── */

.cx-chip {
  transition: all 0.25s ease;
}
.cx-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


/* ── MODAL ENHANCEMENT ── */

.cx-modal__panel {
  animation: ke-modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  backdrop-filter: blur(20px);
}
@keyframes ke-modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cx-modal__close {
  transition: all 0.3s ease !important;
}
.cx-modal__close:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  transform: rotate(90deg);
}


/* ── WHATSAPP BUTTON ── */

.cx-wa {
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  animation: ke-waFloat 3s ease-in-out infinite;
}
@keyframes ke-waFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(37, 211, 102, 0.45), 0 0 0 8px rgba(37, 211, 102, 0.08); }
}
.cx-wa:hover {
  animation: none !important;
  transform: scale(1.12) !important;
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5) !important;
}


/* ── RESPONSIVE SPECIFIC ── */

@media (max-width: 760px) {
  .cx-step::after { display: none; }
  .cx-heroCard { animation-duration: 8s; }
  .cx-gItem:hover { transform: none !important; }
}


/* ============= CONTACT PAGE OVERRIDE ============= */
body .form-section,
body #contacto-form-section {
  font-family: 'Outfit', system-ui, sans-serif !important;
}

/* Smooth scroll anchor offset for sticky nav */
html {
  scroll-padding-top: 120px;
}

/* ============= GLOBAL PAGE TRANSITIONS ============= */
body {
  animation: ke-pageIn 0.5s ease-out;
}
@keyframes ke-pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Background subtle gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 98, 0, 0.04), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 140, 0, 0.03), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* =============================================================
   ENHANCED.JS — Styles for premium interactive features
   ============================================================= */

/* Scroll Progress Bar */
.ke-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--ke-grad, linear-gradient(90deg, #ff6200, #ff8c00));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(255, 98, 0, 0.5);
}

/* Cursor Glow */
.ke-cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 98, 0, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: left, top;
  mix-blend-mode: normal;
}

/* Lightbox */
.ke-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  place-items: center;
}
.ke-lightbox.is-open {
  display: grid;
}
.ke-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  animation: ke-lbFadeIn 0.3s ease;
}
.ke-lightbox__img {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--ke-r-md, 20px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  animation: ke-lbZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  object-fit: contain;
}
.ke-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.ke-lightbox__close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg) scale(1.1);
}
@keyframes ke-lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ke-lbZoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Back to Top Button */
.ke-back-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ke-stroke, #e4e7ec);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 80;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.ke-back-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--ke-text, #0f141e);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ke-back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ke-back-top:hover {
  background: var(--ke-orange, #ff6200);
  border-color: var(--ke-orange, #ff6200);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 98, 0, 0.35);
}
.ke-back-top:hover svg {
  stroke: #fff;
}

/* Enhanced card hover with perspective */
.card,
.cx-card,
.quickCard,
.ct-zone {
  will-change: transform;
  transform-style: preserve-3d;
}

/* Glassmorphism enhancement for topbar and nav */
.topbar,
.cx-nav,
.ke-topbar,
.ke-nav {
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  backdrop-filter: blur(20px) saturate(200%);
}

/* Smooth image hover zoom */
.segundas__media img,
.cx-gItem img,
.project-image img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease !important;
}
.segundas__media:hover img,
.cx-gItem:hover img {
  transform: scale(1.05) !important;
  filter: brightness(1.05);
}

/* Enhanced reveal animations with stagger */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Service card number badge */
.card::after,
.cx-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ke-orange, #ff6200), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::after,
.cx-card:hover::after {
  opacity: 1;
}

/* Text selection color */
::selection {
  background: rgba(255, 98, 0, 0.2);
  color: inherit;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--ke-surface, #f7f9fc);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6200, #ff8c00);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e55800;
}

/* Focus ring improvement */
:focus-visible {
  outline: 2px solid var(--ke-orange, #ff6200) !important;
  outline-offset: 3px;
}

/* Skeleton loading for images */
img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
}
img[src] {
  background: none;
}

/* WhatsApp button enhanced pulse */
.ke-whatsapp,
#whatsapp,
.cx-wa,
#whatsapp-float {
  animation: ke-waFloat 3s ease-in-out infinite !important;
}
@keyframes ke-waFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}
.ke-whatsapp:hover,
#whatsapp:hover,
.cx-wa:hover,
#whatsapp-float:hover {
  animation: none !important;
  transform: scale(1.1) !important;
}

/* Loading animation for page */
@keyframes ke-slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gradient text utility */
.ke-gradient-text {
  background: var(--ke-grad, linear-gradient(135deg, #ff6200, #ff8c00));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .ke-cursor-glow { display: none; }
  .ke-back-top { bottom: 90px; right: 16px; width: 42px; height: 42px; }
  .ke-scroll-progress { height: 2px; }
}

/* ============================================================
   SHOWCASE — Project Image Grid (used by construcciones)
   ============================================================ */
.cx-showcase { background: var(--ke-dark, #0b0f28); color: #fff; padding: 80px 0; }
.cx-showcase .cx-h2 { color: #fff; }
.cx-showcase .cx-sub { color: rgba(255,255,255,0.7); }

.cx-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.cx-showcase__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: transform 0.4s var(--ke-ease, ease), box-shadow 0.4s ease;
}
.cx-showcase__item--wide {
  grid-column: span 2;
}
.cx-showcase__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ke-ease, ease), filter 0.4s ease;
}
.cx-showcase__item:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}
.cx-showcase__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.cx-showcase__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cx-showcase__item:hover .cx-showcase__overlay {
  opacity: 1;
}
.cx-showcase__label {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
}
.cx-showcase__desc {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .cx-showcase__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .cx-showcase__grid { grid-template-columns: 1fr; }
  .cx-showcase__item--wide { grid-column: span 1; }
  .cx-showcase__overlay { opacity: 1; }
}

/* ============================================================
   GALLERY TAG — Dark glass (override any page-specific whites)
   ============================================================ */
.cx-gTag {
  background: rgba(0,0,0,0.55) !important;
  backdrop-filter: blur(12px) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ============================================================
   SECTION TEXT — Ensure proper contrast in light sections
   ============================================================ */
.cx-section .cx-h2,
.cx-section .cx-sub,
.cx-section .cx-head p,
.cx-ctaStrip b,
.cx-ctaStrip p,
.cx-bottomLine {
  color: var(--ke-text, #0f141e) !important;
}

/* Dark sections override */
.cx-section--alt .cx-step b,
.cx-section--alt .cx-step p,
.cx-section--alt .cx-faqHead h3,
.cx-section--alt .cx-faqHead p,
.cx-section--alt .cx-faqQ,
.cx-section--alt .cx-faqA {
  color: rgba(255,255,255,0.9) !important;
}

/* Showcase section text stays white */
.cx-showcase .cx-h2,
.cx-showcase .cx-sub,
.cx-showcase .cx-ctaStrip b,
.cx-showcase .cx-ctaStrip p {
  color: #fff !important;
}
.cx-showcase .cx-ctaStrip {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
