/* =============================================
   ENSOCLIM — Modern Website
   Tema LUMINOSO SOLAR · Blanco cálido · Rojo · Sol
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #E10600;
  --red-hover:  #FF2010;
  --red-soft:   rgba(225,6,0,0.12);
  --sun:        #FF8A00;
  --gold:       #FFB200;
  --sun-glow:   rgba(255,138,0,0.22);
  --red-glow:   rgba(225,6,0,0.14);

  --bg:         #06101C;   /* negro solar */
  --surface:    #0C1B2A;   /* tarjetas dark */
  --surface-2:  #091422;   /* alt sections */
  --cream:      #0A1828;   /* form inputs */
  --border:     rgba(255,255,255,0.08);
  --border-red: rgba(225,6,0,0.40);

  --ink:        #E8F2FF;   /* blanco azulado */
  --ink-soft:   #7A9ABD;
  --muted:      #4A6A88;

  --shadow:     0 10px 40px rgba(0,0,0,0.40);
  --shadow-lg:  0 24px 60px rgba(0,0,0,0.55);

  --radius:     12px;
  --radius-lg:  20px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --t:          0.3s;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(80,140,220,0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3 { line-height: 1.08; font-weight: 800; color: var(--ink); }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ——— BUTTONS ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(225,6,0,0.25);
}
.btn--primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(225,6,0,0.38);
}
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  border: 1.5px solid rgba(255,255,255,0.15);
}
.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}
.btn--nav {
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(225,6,0,0.22);
}
.btn--nav:hover { background: var(--red-hover); }
.btn--full { width: 100%; justify-content: center; }
.btn--lg { padding: 18px 36px; font-size: 16px; }

/* ——— NAV — Liquid Glass ——— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(6, 16, 28, 0.28);
  backdrop-filter: blur(44px) saturate(200%) brightness(1.12);
  -webkit-backdrop-filter: blur(44px) saturate(200%) brightness(1.12);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 8px 48px rgba(0,0,0,0.30);
  transition: all var(--t) var(--ease);
  overflow: hidden;
}
.nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
}
.nav.scrolled {
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(52px) saturate(220%) brightness(1.08);
  -webkit-backdrop-filter: blur(52px) saturate(220%) brightness(1.08);
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 12px 56px rgba(0,0,0,0.48);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #fff;
  flex-shrink: 0;
}
.nav__logo-sun { width: 28px; height: 28px; flex-shrink: 0; }
.nav__logo-img {
  height: 24px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  transition: color var(--t);
}
.nav__links a:hover { color: #fff; }
.nav__links a.active { color: #fff; font-weight: 600; }
.nav__links a.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 5px;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--t);
}

/* ——— HERO ——— */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 130px 0 100px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, var(--sun-glow) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, var(--red-glow) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 60%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__glow {
  position: absolute;
  top: -200px; right: -180px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--sun-glow) 0%, transparent 62%);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(100,170,255,0.22) 2px, transparent 2px),
    linear-gradient(rgba(100,170,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,170,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px, 22px 22px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-template-rows: auto 1fr;
  column-gap: 40px;
  row-gap: 32px;
}
.hero__headline {
  grid-column: 1 / -1;
  text-align: left;
}
.hero__body {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__van-col {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__van-img {
  width: 115%;
  max-width: none;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 56px rgba(0,0,0,0.50)) drop-shadow(0 8px 20px rgba(225,6,0,0.16));
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 36px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(225,6,0,0.4); }
  50%      { opacity: .7; transform: scale(1.25); box-shadow: 0 0 0 6px rgba(225,6,0,0); }
}
.hero__title {
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 900;
  letter-spacing: -3px;
  margin-bottom: 26px;
}
.hero__title--accent {
  background: linear-gradient(100deg, var(--red) 0%, var(--sun) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  display: block;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 44px;
  font-weight: 400;
  line-height: 1.75;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.hero__stat { padding: 0 40px 0 0; }
.hero__stat:first-child { padding-left: 0; }
.hero__stat-divider {
  width: 1px; height: 44px;
  background: var(--border);
  margin-right: 40px;
}
.hero__stat-row { display: flex; align-items: baseline; gap: 2px; }
.hero__stat-num {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--ink);
}
.hero__stat-sym {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
}
.hero__stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
  display: block;
}
.hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 1;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollAnim 2.2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%,100% { opacity: .9; transform: scaleY(1) translateY(0); }
  50%      { opacity: .2; transform: scaleY(0.4) translateY(8px); }
}

/* ——— SECTION HEADERS ——— */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ——— SERVICES ——— */
.services { padding: 130px 0; }
/* — SERVICES CAROUSEL — */
.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.42s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-track .service-card {
  flex: 0 0 calc(25% - 14px);
  min-width: 0;
}
.carousel-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}
.carousel-btn:hover:not(:disabled) {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.carousel-btn svg { width: 18px; height: 18px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  box-shadow: var(--shadow);
  transition: all var(--t) var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-red);
}
.service-card__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--red-soft), rgba(255,138,0,0.10));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--red);
  transition: all var(--t);
}
.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--red), var(--sun));
  color: #fff;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}
.service-card__text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 28px;
}
.service-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  transition: opacity var(--t);
}
.service-card__link:hover { opacity: .7; }

/* ——— ABOUT ——— */
.about {
  padding: 130px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 50%, var(--bg) 100%);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.about__text {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 36px;
}
.about__values { display: flex; flex-direction: column; gap: 28px; }
.about__value { display: flex; gap: 18px; align-items: flex-start; }
.about__value-check {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--red), var(--sun));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.about__value strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.about__value p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.about__visual { display: flex; flex-direction: column; gap: 16px; }
.about__card-main {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
}
.about__card-main-icon { font-size: 52px; line-height: 1; }
.about__card-main-text { font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -0.5px; }
.text-red { color: var(--red); }
.about__cards-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.about__card-sm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  transition: all var(--t);
}
.about__card-sm-icon { font-size: 26px; margin-bottom: 8px; }
.about__card-sm:hover { border-color: var(--border-red); transform: translateY(-3px); }
.about__card-cert {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow);
}
.about__card-cert-icon { font-size: 30px; }
.about__card-cert strong { display: block; font-size: 15px; font-weight: 700; }
.about__card-cert small { font-size: 12px; color: var(--muted); }

/* ——— PROJECTS ——— */
.projects { padding: 130px 0; }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--t) var(--ease);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-red);
}
.project-card__visual {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pv-visual        { background: linear-gradient(135deg, #FFF0E6, #FFD9C2); }
.thermal-visual   { background: linear-gradient(135deg, #E8F3FF, #C9E4FF); }
.clim-visual      { background: linear-gradient(135deg, #E6FBF1, #C7F3DD); }
.colective-visual { background: linear-gradient(135deg, #FFF6E0, #FFE9BD); }
.project-card__bg-svg { width: 130px; height: 100px; opacity: 1; }
.project-card__info { padding: 28px 32px; }
.project-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
}
.project-card__info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.project-card__info p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ——— CTA BANNER ——— */
.cta-banner { padding: 80px 0; }
.cta-banner__inner {
  background: linear-gradient(120deg, var(--red) 0%, #FF4D00 55%, var(--sun) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 24px 60px rgba(225,6,0,0.28);
  position: relative;
  overflow: hidden;
}
.cta-banner__inner::after {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner__inner h2 { font-size: 36px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 8px; color: #fff; }
.cta-banner__inner p { font-size: 16px; color: rgba(255,255,255,0.92); }
.cta-banner__inner .btn--primary {
  background: #fff;
  color: var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.cta-banner__inner .btn--primary:hover { background: #fff; color: var(--red-hover); transform: translateY(-2px); }

/* ——— CONTACT ——— */
.contact {
  padding: 130px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 50%, var(--bg) 100%);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 88px;
  align-items: start;
}
.contact__lead { font-size: 17px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 48px; }
.contact__details { display: flex; flex-direction: column; gap: 28px; }
.contact__detail { display: flex; gap: 18px; align-items: flex-start; }
.contact__detail-icon { font-size: 22px; line-height: 1; margin-top: 2px; }
.contact__detail strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact__detail span { font-size: 15px; color: var(--ink); line-height: 1.6; }
.contact__detail a { color: var(--ink); transition: color var(--t); }
.contact__detail a:hover { color: var(--red); }

/* ——— FORM ——— */
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  transition: all var(--t);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); background: rgba(255,255,255,0.05); box-shadow: 0 0 0 3px var(--red-soft); }
.form-group select option { background: #0C1B2A; color: var(--ink); }
.form-disclaimer { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }

/* Honeypot anti-bot: fora de pantalla, no display:none */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ——— FOOTER ——— */
.footer {
  padding: 88px 0 36px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 72px;
}
.footer__brand p { font-size: 14px; color: var(--ink-soft); margin-top: 18px; max-width: 260px; line-height: 1.75; }
.footer__logo { margin-bottom: 4px; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: all var(--t);
}
.footer__social a svg { width: 16px; height: 16px; }
.footer__social a:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 20px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: var(--ink-soft); transition: color var(--t); }
.footer__col a:hover { color: var(--red); }
.footer__contact-info { display: flex; flex-direction: column; gap: 10px; }
.footer__contact-info p { font-size: 14px; color: var(--ink-soft); }
.footer__contact-info a { color: var(--ink-soft); transition: color var(--t); }
.footer__contact-info a:hover { color: var(--red); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p { font-size: 13px; color: var(--muted); }

/* ——— REAL PHOTO CARDS ——— */
.project-card__photo {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.project-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-card__photo img { transform: scale(1.06); }

/* ——— BEFORE / AFTER ——— */
.before-after {
  height: 220px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.ba__img {
  position: relative;
  overflow: hidden;
}
.ba__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .ba__img img { transform: scale(1.06); }
.ba__label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
}
.ba__label--antes { background: rgba(26,20,16,0.70); color: #fff; }
.ba__label--despues { background: var(--red); color: #fff; }
.ba__divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  z-index: 2;
}
.ba__arrow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 3;
  color: var(--red);
  font-weight: 900;
}

/* Service detail real photos */
.sd-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ——— INNER PAGE HEADER ——— */
.page-header {
  position: relative;
  padding: 190px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, var(--sun-glow) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
}
.page-header__bg { position: absolute; inset: 0; z-index: 0; }
.page-header__glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 600px;
  background: radial-gradient(circle, var(--sun-glow) 0%, transparent 62%);
}
.page-header__grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(100,170,255,0.18) 2px, transparent 2px),
    linear-gradient(rgba(100,170,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,170,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px, 22px 22px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 25%, transparent 100%);
}
.page-header__content { position: relative; z-index: 1; text-align: center; }
.page-header__breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.page-header__breadcrumb a { color: var(--muted); transition: color var(--t); }
.page-header__breadcrumb a:hover { color: var(--red); }
.page-header__breadcrumb span { color: var(--red); }
.page-header__title {
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 900;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
}
.page-header__title em {
  background: linear-gradient(100deg, var(--red) 0%, var(--sun) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}
.page-header__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

.page-section { padding: 110px 0; }
.page-section--alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 50%, var(--bg) 100%);
}

/* ——— SERVICE DETAIL ROWS ——— */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail--rev .service-detail__visual { order: -1; }
.service-detail__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.service-detail__title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.service-detail__text {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 28px;
}
.service-detail__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.service-detail__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
}
.service-detail__list li::before {
  content: '✓';
  color: var(--red);
  font-weight: 800;
  flex-shrink: 0;
}
.service-detail__visual {
  height: 340px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-detail__visual svg { width: 160px; height: 160px; color: var(--red); }
.sd-bg-pv      { background: linear-gradient(135deg, #1A0A00, #2A1500); color: var(--sun); }
.sd-bg-pv svg  { color: var(--sun); }
.sd-bg-thermal { background: linear-gradient(135deg, #001828, #002A40); color: #5BBEFF; }
.sd-bg-thermal svg { color: #5BBEFF; }
.sd-bg-clim    { background: linear-gradient(135deg, #E6FBF1, #C7F3DD); }
.sd-bg-clim svg { color: #18B26B; }
.sd-bg-heat    { background: linear-gradient(135deg, #FFF6E0, #FFE9BD); }
.sd-bg-heat svg { color: var(--sun); }

/* ——— PROCESS STEPS ——— */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all var(--t) var(--ease);
}
.process-step:hover { border-color: var(--border-red); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.process-step__num {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 16px;
  background: linear-gradient(120deg, var(--red), var(--sun));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.process-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* ——— STATS STRIP ——— */
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-strip__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 24px;
  box-shadow: var(--shadow);
  transition: all var(--t) var(--ease);
}
.stats-strip__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-red); }
.stats-strip__num {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--red), var(--sun));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-strip__label {
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ——— VALUES GRID ——— */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: all var(--t) var(--ease);
}
.value-block:hover { border-color: var(--border-red); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-block__icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--red-soft), rgba(255,138,0,0.12));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
}
.value-block h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.4px; }
.value-block p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* ——— STORY ——— */
.story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story__text p { font-size: 16px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 20px; }
.story__text p:last-child { margin-bottom: 0; }
.story__visual {
  height: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #FFE9C7 0%, #FFCB8F 50%, #FF9A6B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story__visual-icon { font-size: 100px; filter: drop-shadow(0 8px 20px rgba(255,138,0,0.35)); }

/* ——— FILTER (projects) ——— */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--t);
}
.filter-btn:hover { border-color: var(--border-red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(225,6,0,0.28); }
.project-card.hidden { display: none; }

/* ——— CONTACT PAGE MAP ——— */
.map-block {
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-block iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15) contrast(1.05); }

/* ——— FAQ ——— */
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color var(--t);
}
.faq-item.open { border-color: var(--border-red); }
.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item__icon {
  color: var(--red);
  font-size: 22px;
  flex-shrink: 0;
  transition: transform var(--t);
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t) var(--ease);
}
.faq-item__a p {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ——— REVEAL ANIMATION ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ——— RESPONSIVE ——— */
@media (max-width: 1100px) {
  .carousel-track .service-card { flex: 0 0 calc(50% - 9px); }
  .process__grid { grid-template-columns: repeat(2,1fr); }
  .stats-strip__grid { grid-template-columns: repeat(2,1fr); }
}


@media (max-width: 860px) {
  .hero__content { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 0 28px; }
  .hero__headline { grid-column: 1; text-align: center; }
  .hero__body { grid-column: 1; grid-row: 2; text-align: center; }
  .hero__van-col { grid-column: 1; grid-row: 3; }
  .hero__ctas { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__badge { margin-left: auto; margin-right: auto; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 56px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .projects__grid { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; text-align: center; padding: 48px 36px; }
  .hero__stat-divider { display: none; }
  .hero__stats { gap: 32px; }
  .service-detail { grid-template-columns: 1fr; gap: 36px; padding: 50px 0; }
  .service-detail--rev .service-detail__visual { order: 0; }
  .service-detail__visual { height: 240px; }
  .values-grid { grid-template-columns: 1fr; }
  .story__inner { grid-template-columns: 1fr; gap: 48px; }
  .story__visual { height: 280px; }
}

@media (max-width: 640px) {
  .nav__links, .btn--nav { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 65px 0 0;
    background: rgba(6,12,22,0.97);
    padding: 48px 28px;
    gap: 28px;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.open a { font-size: 26px; font-weight: 800; color: #fff; }
  .nav__links.open + .btn--nav { display: none; }

  .carousel-track .service-card { flex: 0 0 calc(100% - 0px); }
  .process__grid { grid-template-columns: 1fr; }
  .stats-strip__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__stat-num { font-size: 38px; }
  .hero__van-band { padding: 28px 16px; }
  .about__cards-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 22px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ——— WHATSAPP FLOAT WIDGET ——— */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.10) translateY(-3px);
  box-shadow: 0 12px 36px rgba(37,211,102,0.55), 0 4px 14px rgba(0,0,0,0.30);
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.wa-float__tooltip {
  position: absolute;
  right: 72px;
  background: rgba(10,20,30,0.90);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid rgba(255,255,255,0.10);
}
.wa-float:hover .wa-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.50); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-float { animation: wa-pulse 2.5s ease-out 1.5s 3; }
