/* ==================== RESET Y VARIABLES ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-primary: #e8590c;
  --color-primary-dark: #c94b07;
  --color-primary-light: #f47b2c;
  --color-dark: #1c1a17;
  --color-dark-soft: #292620;
  --color-text: #35312d;
  --color-text-light: #706a64;
  --color-bg-light: #f7f5f2;
  --color-white: #ffffff;
  --color-border: #e8e2dc;
  --color-success: #25d366;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 8px 24px rgba(30, 25, 20, .07);
  --shadow: 0 18px 50px rgba(30, 25, 20, .12);
  --container-width: 1180px;
  --font: 'Poppins', sans-serif;
  --header-height: 78px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: var(--font); color: var(--color-text); line-height: 1.6; background: var(--color-white); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }


.container { width: min(100% - 48px, var(--container-width)); margin-inline: auto; }
.section { padding: 92px 0; }
.section--soft { background: var(--color-bg-light); }
.section--dark { background: var(--color-dark); }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.icon--sm { width: 15px; height: 15px; }
.text-accent { color: var(--color-primary); }
.hidden-field { position: absolute; left: -9999px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--color-white); color: var(--color-dark); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(232, 89, 12, .35); outline-offset: 3px; }

/* ==================== BOTONES ==================== */
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 9px; font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-primary); color: var(--color-white); box-shadow: 0 10px 24px rgba(232, 89, 12, .22); }
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: 0 14px 30px rgba(232, 89, 12, .28); }
.btn--outline { background: rgba(255,255,255,.04); color: var(--color-white); border: 1.5px solid rgba(255,255,255,.55); }
.btn--outline:hover { background: var(--color-white); color: var(--color-dark); }
.btn--phone { background: var(--color-primary); color: var(--color-white); padding-inline: 19px; }
.btn--phone:hover { background: var(--color-primary-dark); }
.btn--white { background: var(--color-white); color: var(--color-primary-dark); }
.btn--white:hover { background: #fff2e9; }
.btn--block { width: 100%; margin-top: 3px; }

/* ==================== HEADER ==================== */
.header { position: sticky; top: 0; z-index: 100; height: var(--header-height); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--color-border); transition: box-shadow .25s ease, background .25s ease; }
.header--scrolled { background: rgba(255,255,255,.94); box-shadow: 0 8px 26px rgba(28,26,23,.08); backdrop-filter: blur(12px); }
.header__inner { height: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo__icon { width: 180px; height: auto; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 27px); }
.nav__link { position: relative; padding: 10px 0; font-size: 13.5px; font-weight: 500; color: var(--color-text); transition: color .2s ease; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 999px; background: var(--color-primary); transform: scaleX(0); transition: transform .2s ease; }
.nav__link:hover, .nav__link--active { color: var(--color-primary); }
.nav__link--active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 9px; background: var(--color-bg-light); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 22px; height: 2px; border-radius: 999px; background: var(--color-dark); transition: transform .25s ease, opacity .2s ease; }
.menu-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle--open span:nth-child(2) { opacity: 0; }
.menu-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== HERO ==================== */
.hero { position: relative; min-height: calc(100svh - var(--header-height)); display: flex; align-items: center; background: var(--color-dark); overflow: hidden; }
.hero__photo, .hero__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo { object-fit: cover; object-position: center; }
.hero__overlay { background: linear-gradient(90deg, rgba(20,17,14,.96) 0%, rgba(20,17,14,.85) 45%, rgba(20,17,14,.48) 100%); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.72fr); gap: clamp(40px, 6vw, 78px); align-items: center; padding-top: 70px; padding-bottom: 70px; }
.eyebrow { color: var(--color-primary-light); font-size: 12.5px; font-weight: 700; letter-spacing: 1.25px; text-transform: uppercase; margin-bottom: 13px; }
.eyebrow--center { text-align: center; }
.hero__title { max-width: 680px; color: var(--color-white); font-size: clamp(40px, 4.5vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 22px; }
.hero__desc { max-width: 620px; color: rgba(255,255,255,.77); font-size: 16px; margin-bottom: 28px; }
.hero__features { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 34px; }
.hero__features li { display: flex; align-items: center; gap: 8px; color: var(--color-white); font-size: 13px; font-weight: 500; }
.feature__icon { width: 22px; height: 22px; color: var(--color-primary-light); flex: 0 0 auto; }
.feature__icon svg { width: 100%; height: 100%; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }

.hero__form-card { width: 100%; background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-lg); padding: 30px; box-shadow: 0 26px 70px rgba(0,0,0,.25); }
.form-card__eyebrow { margin-bottom: 5px; }
.form-card__title { color: var(--color-dark); font-size: 22px; line-height: 1.3; margin-bottom: 6px; }
.form-card__subtitle { color: var(--color-text-light); font-size: 13px; margin-bottom: 21px; }
.form-card__form { display: flex; flex-direction: column; gap: 13px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { color: var(--color-dark); font-size: 12.5px; font-weight: 600; }
.form-group label span { font-weight: 400; color: var(--color-text-light); }
.form-input, .form-textarea { width: 100%; border: 1.5px solid var(--color-border); border-radius: 8px; padding: 12px 13px; color: var(--color-text); background: var(--color-bg-light); font-size: 14px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.form-textarea { resize: vertical; min-height: 112px; }
.form-input:focus, .form-textarea:focus { border-color: var(--color-primary); background: var(--color-white); box-shadow: 0 0 0 4px rgba(232,89,12,.09); outline: 0; }
.form-card__note { display: flex; align-items: flex-start; justify-content: center; gap: 6px; color: var(--color-text-light); font-size: 10.8px; text-align: center; }

/* ==================== TÍTULOS ==================== */
.section-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-title { color: var(--color-dark); font-size: clamp(29px, 3vw, 39px); line-height: 1.25; letter-spacing: -.02em; }
.section-title--left { text-align: left; }
.section-title--light { color: var(--color-white); }
.section-intro { max-width: 690px; margin: 15px auto 0; color: var(--color-text-light); font-size: 15px; }
.section-intro--left { margin-left: 0; }
.text-link { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--color-primary-dark); font-weight: 600; font-size: 14px; }
.text-link:hover { text-decoration: underline; }

/* ==================== SERVICIOS ==================== */
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.service-card { height: 100%; background: var(--color-bg-light); border: 1px solid transparent; border-radius: var(--radius-lg); padding: 34px 27px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(232,89,12,.18); }
.service-card__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 20px; color: var(--color-white); background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary)); box-shadow: 0 12px 25px rgba(232,89,12,.2); }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title { color: var(--color-dark); font-size: 18px; margin-bottom: 10px; }
.service-card__desc { color: var(--color-text-light); font-size: 14px; }

/* ==================== PROBLEMAS ==================== */
.problems__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.problems__heading { position: sticky; top: calc(var(--header-height) + 32px); }
.problems__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.problem-item { min-height: 130px; display: flex; gap: 15px; align-items: flex-start; padding: 23px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.problem-item span { color: var(--color-primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.problem-item p { color: var(--color-dark); font-size: 14px; font-weight: 500; }

/* ==================== MARCAS ==================== */
.brands { background: var(--color-white); }
.brands__grid { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 62px); flex-wrap: wrap; margin-bottom: 28px; }
.brand-logo { font-size: 21px; font-weight: 700; letter-spacing: .5px; opacity: .88; filter: saturate(.86); }
.brand-logo--surrey { color: #1a3a8f; font-style: italic; }
.brand-logo--goodman { color: #d21f27; padding: 6px 12px; background: var(--color-bg-light); border-radius: 4px; }
.brand-logo--daikin { color: #0071bc; }
.brand-logo--midea { color: #00a3e0; }
.brand-logo--westric { color: #111; }
.brands__note { text-align: center; color: var(--color-text-light); font-size: 13.5px; }

/* ==================== NOSOTROS ==================== */
.why__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; }
.why__desc { margin: 18px 0 26px; color: var(--color-text-light); font-size: 15px; }
.why__list { display: flex; flex-direction: column; gap: 14px; }
.why__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; }
.check-icon { width: 21px; height: 21px; flex: 0 0 auto; color: var(--color-primary); margin-top: 1px; }
.check-icon svg { width: 100%; height: 100%; }
.why__image { position: relative; aspect-ratio: 4 / 3.5; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.why__image-bg { width: 100%; height: 100%; object-fit: cover; }
.why__badge { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; max-width: 340px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: var(--color-white); background: rgba(28,26,23,.87); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; }
.why__badge-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); }
.why__badge-icon svg { width: 18px; height: 18px; }

/* ==================== PROCESO ==================== */
.process__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.process-card { position: relative; padding: 26px 22px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: rgba(255,255,255,.05); }
.process-card__number { display: block; margin-bottom: 22px; color: var(--color-primary-light); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.process-card h3 { color: var(--color-white); font-size: 16px; margin-bottom: 8px; }
.process-card p { color: rgba(255,255,255,.65); font-size: 13px; }

/* ==================== COBERTURA ==================== */
.coverage__grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 16px; margin-bottom: 30px; }
.coverage__item { min-height: 112px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; padding: 18px 8px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.coverage__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.coverage__item svg { width: 30px; height: 30px; color: var(--color-primary); }
.coverage__item span { color: var(--color-text); font-size: 12.5px; font-weight: 600; }
.coverage__note { text-align: center; color: var(--color-text-light); font-size: 13.5px; }

/* ==================== SEGURIDAD ==================== */
.safety { padding-top: 72px; padding-bottom: 72px; }
.safety__box { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 32px; border: 1px solid rgba(232,89,12,.22); border-radius: var(--radius-lg); background: #fff8f3; }
.safety__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: var(--color-white); }
.safety__icon svg { width: 27px; height: 27px; }
.safety__box .eyebrow { margin-bottom: 6px; }
.safety__box h2 { color: var(--color-dark); font-size: 21px; line-height: 1.35; margin-bottom: 8px; }
.safety__box p:last-child { color: var(--color-text-light); font-size: 14px; }

/* ==================== FAQ ==================== */
.faq__inner { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.faq__heading { position: sticky; top: calc(var(--header-height) + 32px); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.faq summary { position: relative; padding: 19px 52px 19px 20px; color: var(--color-dark); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; translate: 0 -50%; color: var(--color-primary); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 20px; color: var(--color-text-light); font-size: 13.5px; }

/* ==================== CTA ==================== */
.cta-banner { padding: 30px 0; background: linear-gradient(100deg, var(--color-primary-dark), var(--color-primary-light)); }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-banner__text { display: flex; align-items: center; gap: 15px; }
.cta-banner__icon { width: 47px; height: 47px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--color-white); background: rgba(255,255,255,.17); }
.cta-banner__icon svg { width: 23px; height: 23px; }
.cta-banner__title { color: var(--color-white); font-size: 16px; font-weight: 700; }
.cta-banner__subtitle { color: rgba(255,255,255,.84); font-size: 13px; }

/* ==================== FOOTER ==================== */
.footer { padding-top: 62px; color: rgba(255,255,255,.66); background: var(--color-dark); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 38px; padding-bottom: 46px; }
.logo--footer .logo__icon { width: 190px; }
.footer__desc { max-width: 320px; margin-top: 18px; font-size: 13px; }
.footer__heading { color: var(--color-white); font-size: 14px; margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col a { font-size: 13px; transition: color .2s ease; }
.footer__col a:hover { color: var(--color-primary-light); }
.footer__contact-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; overflow-wrap: anywhere; }
.footer__contact-item svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--color-primary-light); margin-top: 2px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 19px 24px; text-align: center; font-size: 12px; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: var(--color-white); background: var(--color-success); box-shadow: 0 14px 30px rgba(0,0,0,.22); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 34px rgba(0,0,0,.27); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  :root { --header-height: 72px; }
  .header__inner { grid-template-columns: auto 1fr; }
  .header__actions { justify-self: end; }
  .menu-toggle { display: flex; }
  .nav { position: fixed; top: var(--header-height); right: 0; bottom: 0; width: min(360px, 88vw); padding: 24px; align-items: stretch; justify-content: flex-start; flex-direction: column; gap: 4px; background: var(--color-white); box-shadow: -18px 24px 40px rgba(28,26,23,.15); transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility .25s ease; }
  .nav--open { transform: translateX(0); visibility: visible; }
  .nav__link { padding: 14px 8px; border-bottom: 1px solid var(--color-border); font-size: 15px; }
  .nav__link::after { display: none; }
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; max-width: 820px; gap: 44px; padding-top: 76px; padding-bottom: 76px; }
  .hero__form-card { max-width: 660px; }
  .services__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-card:last-child { grid-column: 1 / -1; }
  .why__inner { grid-template-columns: 1fr; }
  .why__content { max-width: 780px; }
  .why__image { max-width: 760px; }
  .process__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .coverage__grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .section { padding: 76px 0; }
  .problems__inner, .faq__inner { grid-template-columns: 1fr; gap: 38px; }
  .problems__heading, .faq__heading { position: static; }
  .problems__grid { grid-template-columns: 1fr; }
  .problem-item { min-height: auto; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 36px, var(--container-width)); }
  .header__inner { gap: 12px; }
  .logo__icon { width: 145px; }
  .btn--phone { display: none; }
  .hero__overlay { background: linear-gradient(180deg, rgba(20,17,14,.91), rgba(20,17,14,.82)); }
  .hero__inner { padding-top: 54px; padding-bottom: 58px; gap: 36px; }
  .hero__title { font-size: clamp(34px, 10.5vw, 44px); }
  .hero__desc { font-size: 14.5px; }
  .hero__features { flex-direction: column; gap: 11px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__form-card { padding: 24px 18px; }
  .section-heading { margin-bottom: 36px; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .process__grid { grid-template-columns: 1fr; }
  .coverage__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .safety__box { grid-template-columns: 1fr; padding: 25px 20px; }
  .safety__box h2 { font-size: 18px; }
  .cta-banner__inner { flex-direction: column; align-items: stretch; }
  .cta-banner__text { align-items: flex-start; }
  .cta-banner .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (max-width: 380px) {
  .container { width: min(100% - 28px, var(--container-width)); }
  .logo__icon { width: 132px; }
  .menu-toggle { width: 42px; height: 42px; }
  .hero__form-card { padding-inline: 15px; }
  .coverage__grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==================== MENU GLASS + SCROLL REVEAL ==================== */
.menu-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 98;
  display: block;
  width: 100%;
  height: calc(100dvh - var(--header-height));
  padding: 0;
  border: 0;
  background: rgba(19, 15, 12, .38);
  -webkit-backdrop-filter: blur(7px) saturate(115%);
  backdrop-filter: blur(7px) saturate(115%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(3px);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    transform .7s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    filter .7s ease var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

body.reveal-ready .reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.logo--footer {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

@media (max-width: 1080px) {
  .nav {
    z-index: 99;
    top: calc(var(--header-height) + 12px);
    right: 12px;
    bottom: 12px;
    width: min(360px, calc(100vw - 24px));
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,247,241,.72));
    box-shadow: -18px 24px 54px rgba(28, 26, 23, .22);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
    overflow-y: auto;
  }

  .nav__link {
    border-bottom-color: rgba(105, 89, 77, .14);
  }

  .menu-toggle {
    position: relative;
    z-index: 101;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.reveal-ready .reveal,
  body.reveal-ready .reveal.reveal--visible {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Logo compacto: evita que sobresalga de la navbar */
.logo__icon {
  width: 184px;
  max-height: 54px;
  object-fit: contain;
}

.logo--footer .logo__icon {
  width: 190px;
  max-height: none;
}

@media (max-width: 640px) {
  .logo__icon { width: 150px; max-height: 46px; }
  .logo--footer .logo__icon { width: 180px; max-height: none; }
}

@media (max-width: 380px) {
  .logo__icon { width: 136px; max-height: 42px; }
}

/* ==========================================================
   CALEFACCIONAR v1.1.1 — CAPAS DEL MENÚ MÓVIL CORREGIDAS
   ========================================================== */

/* Evita desbordes laterales sin romper position: sticky/fixed en móviles. */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-padding-top: var(--header-height);
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding-top: var(--header-height);
}

/* Header fijo: permanece visible en todo momento y no depende del scroll. */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1000;
}

.header--scrolled {
  background: rgba(255, 255, 255, .88);
  border-bottom-color: rgba(231, 227, 223, .7);
  box-shadow: 0 10px 32px rgba(28, 26, 23, .1);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

/* El body ya reserva la altura del header fijo. */
.hero {
  min-height: calc(100svh - var(--header-height));
}

/* La compensación de la navbar se aplica una sola vez desde html
   mediante scroll-padding-top. No usar scroll-margin-top aquí porque
   scrollIntoView sumaría ambas distancias. */

/* Overlay por debajo del header y del panel móvil.
   El panel .nav vive dentro del header; por eso el backdrop no puede
   superar el z-index del header o desenfoca y tapa también al menú. */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(20, 16, 13, .42);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility 0s linear .28s;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .28s ease;
}

body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

@media (max-width: 1080px) {
  /* Panel fuera del flujo: jamás aumenta el ancho del documento. */
  .nav {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 10px;
    bottom: 10px;
    left: auto;
    z-index: 1002;
    width: min(360px, calc(100% - 20px));
    max-width: calc(100% - 20px);
    height: auto;
    max-height: calc(100dvh - var(--header-height) - 20px);
    padding: 18px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 3px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(255,245,237,.78));
    box-shadow: 0 28px 70px rgba(28, 26, 23, .28);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    backdrop-filter: blur(24px) saturate(155%);
    transform: translate3d(calc(100% + 24px), 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform .34s cubic-bezier(.22, 1, .36, 1),
      opacity .24s ease,
      visibility 0s linear .34s;
    contain: layout paint;
  }

  .nav.nav--open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform .34s cubic-bezier(.22, 1, .36, 1),
      opacity .24s ease;
  }

  .nav__link {
    flex: 0 0 auto;
    width: 100%;
    min-height: 50px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(105, 89, 77, .14);
    border-radius: 10px;
    font-size: 15px;
  }

  .nav__link:hover,
  .nav__link:focus-visible,
  .nav__link--active {
    background: rgba(232, 89, 12, .09);
  }

  .menu-toggle {
    position: relative;
    z-index: 1003;
  }
}

@media (max-width: 640px) {
  .nav {
    top: calc(var(--header-height) + 8px);
    right: 8px;
    bottom: 8px;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    max-height: calc(100dvh - var(--header-height) - 16px);
    border-radius: 18px;
  }
}

/* Reveal sin desplazamientos laterales ni efectos que alteren el viewport. */
body.reveal-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: none;
  transition:
    opacity .68s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    transform .68s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
}

body.reveal-ready .reveal.reveal--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .menu-backdrop,
  body.reveal-ready .reveal {
    transition: none !important;
  }
}

/* ==========================================================
   CALEFACCIONAR v1.1.2 — MENÚ MÓVIL FUERA DEL CONTEXTO DEL FILTRO
   ========================================================== */
@media (max-width: 1080px) {
  /* backdrop-filter en el header crea un containing block para los
     descendientes fixed en algunos navegadores móviles. Eso recortaba
     el panel del menú a la altura de la navbar al abrirlo con scroll. */
  .header,
  .header--scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Conserva apariencia translúcida sin alterar el contexto del panel. */
  .header--scrolled {
    background: rgba(255, 255, 255, .96);
  }

  /* Refuerzo: el panel siempre se referencia al viewport completo. */
  .nav {
    position: fixed;
    z-index: 1002;
  }
}

/* ==========================================================
   CALEFACCIONAR v1.1.5 — GLOW LATENTE
   ========================================================== */

/* WhatsApp: pulso orgánico y anillo expansivo sin alterar el layout. */
.whatsapp-float {
  isolation: isolate;
  animation: whatsapp-breathe 2.8s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.whatsapp-float::before {
  background: rgba(37, 211, 102, .30);
  animation: whatsapp-ring 2.8s ease-out infinite;
}

.whatsapp-float::after {
  inset: 3px;
  background: rgba(37, 211, 102, .18);
  filter: blur(10px);
  animation: whatsapp-inner-glow 2.8s ease-in-out infinite;
}

.whatsapp-float:hover {
  animation-play-state: paused;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  animation-play-state: paused;
}

@keyframes whatsapp-breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 14px 30px rgba(0, 0, 0, .22),
      0 0 0 0 rgba(37, 211, 102, .20);
  }
  50% {
    transform: translateY(-2px) scale(1.045);
    box-shadow:
      0 18px 36px rgba(0, 0, 0, .25),
      0 0 24px 7px rgba(37, 211, 102, .20);
  }
}

@keyframes whatsapp-ring {
  0% {
    opacity: .70;
    transform: scale(.92);
  }
  68%, 100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes whatsapp-inner-glow {
  0%, 100% { opacity: .22; transform: scale(.96); }
  50% { opacity: .72; transform: scale(1.12); }
}

/* Logo: resplandor cálido muy sutil, sin deformar la navbar. */
.header .logo__icon,
.footer .logo__icon {
  transform-origin: center;
  animation: logo-warm-glow 4.2s ease-in-out infinite;
  will-change: transform, filter;
}

.header .logo:hover .logo__icon,
.footer .logo:hover .logo__icon {
  animation-play-state: paused;
  transform: scale(1.025);
  filter:
    drop-shadow(0 0 5px rgba(232, 89, 12, .34))
    drop-shadow(0 0 14px rgba(242, 117, 31, .20));
}

@keyframes logo-warm-glow {
  0%, 100% {
    transform: scale(1);
    filter:
      drop-shadow(0 0 0 rgba(232, 89, 12, 0))
      drop-shadow(0 0 0 rgba(242, 117, 31, 0));
  }
  50% {
    transform: scale(1.012);
    filter:
      drop-shadow(0 0 4px rgba(232, 89, 12, .28))
      drop-shadow(0 0 12px rgba(242, 117, 31, .15));
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::before,
  .whatsapp-float::after,
  .header .logo__icon,
  .footer .logo__icon {
    animation: none !important;
  }
}

/* ==========================================================
   CALEFACCIONAR v1.2 — MICROINTERACTIONS PREMIUM
   ========================================================== */

/* Logo: encendido inicial y latido cálido espaciado. */
.header .logo__icon,
.footer .logo__icon {
  animation: logo-ignite-and-breathe 8s cubic-bezier(.22,.61,.36,1) infinite;
}

@keyframes logo-ignite-and-breathe {
  0% {
    opacity: .72;
    transform: scale(.985);
    filter: drop-shadow(0 0 0 rgba(232, 89, 12, 0));
  }
  7% {
    opacity: 1;
    transform: scale(1.018);
    filter:
      drop-shadow(0 0 6px rgba(232, 89, 12, .40))
      drop-shadow(0 0 18px rgba(242, 117, 31, .22));
  }
  14%, 72% {
    opacity: 1;
    transform: scale(1);
    filter:
      drop-shadow(0 0 2px rgba(232, 89, 12, .12))
      drop-shadow(0 0 7px rgba(242, 117, 31, .07));
  }
  82% {
    transform: scale(1.01);
    filter:
      drop-shadow(0 0 5px rgba(232, 89, 12, .28))
      drop-shadow(0 0 14px rgba(242, 117, 31, .14));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(232, 89, 12, 0));
  }
}

/* Botones: brillo que atraviesa la superficie y respuesta táctil. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 34%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg) translateX(-220%);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: skewX(-18deg) translateX(620%);
}

.btn:active {
  transform: translateY(1px) scale(.985);
}

.hero .btn--primary,
.cta-banner .btn--white {
  animation: cta-soft-glow 4.8s ease-in-out infinite;
}

@keyframes cta-soft-glow {
  0%, 72%, 100% { box-shadow: 0 10px 24px rgba(232, 89, 12, .20); }
  82% { box-shadow: 0 12px 32px rgba(232, 89, 12, .38), 0 0 18px rgba(242, 117, 31, .18); }
}

/* Flecha del botón secundario: pequeña invitación a seguir bajando. */
.hero .btn--outline .icon--sm {
  animation: hero-arrow-nudge 2.4s ease-in-out infinite;
}

@keyframes hero-arrow-nudge {
  0%, 60%, 100% { transform: translateY(0); }
  72% { transform: translateY(3px); }
  84% { transform: translateY(0); }
  92% { transform: translateY(2px); }
}

/* Cards: elevación, borde cálido y halo controlado. */
.service-card,
.problem-card,
.step-card,
.faq-item,
.coverage__item {
  position: relative;
  isolation: isolate;
  transition:
    transform .32s cubic-bezier(.22,.61,.36,1),
    box-shadow .32s ease,
    border-color .32s ease,
    background-color .32s ease;
}

.service-card::after,
.problem-card::after,
.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(242,117,31,.12), transparent 58%);
  transition: opacity .32s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .problem-card:hover,
  .step-card:hover {
    transform: translateY(-7px);
    border-color: rgba(232, 89, 12, .23);
    box-shadow: 0 20px 48px rgba(28, 26, 23, .12);
  }

  .service-card:hover::after,
  .problem-card:hover::after,
  .step-card:hover::after {
    opacity: 1;
  }

  .coverage__item:hover {
    transform: translateY(-4px);
  }
}

/* Iconos: reacción delicada al interactuar con la tarjeta. */
.service-card__icon,
.problem-card__icon,
.step-card__number,
.coverage__item svg {
  transition: transform .32s cubic-bezier(.22,.61,.36,1), filter .32s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card__icon,
  .problem-card:hover .problem-card__icon,
  .step-card:hover .step-card__number {
    transform: scale(1.075) rotate(-2deg);
    filter: drop-shadow(0 8px 12px rgba(232, 89, 12, .20));
  }

  .coverage__item:hover svg {
    transform: translateY(-2px) scale(1.08);
    filter: drop-shadow(0 6px 8px rgba(232, 89, 12, .18));
  }
}

/* Navegación: subrayado que nace desde el centro. */
.nav__link {
  position: relative;
  border-bottom: 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .26s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Header: transición más refinada al entrar en modo scrolled. */
.header {
  transition: background-color .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.header--scrolled {
  box-shadow: 0 10px 28px rgba(28, 26, 23, .09);
}

/* WhatsApp: pausa larga entre ondas para llamar la atención sin molestar. */
.whatsapp-float {
  animation: whatsapp-premium-pulse 4.2s ease-in-out infinite;
}

.whatsapp-float::before {
  animation: whatsapp-premium-ring 4.2s ease-out infinite;
}

.whatsapp-float::after {
  animation: whatsapp-premium-inner 4.2s ease-in-out infinite;
}

@keyframes whatsapp-premium-pulse {
  0%, 58%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 14px 30px rgba(0,0,0,.22), 0 0 0 0 rgba(37,211,102,0);
  }
  68% {
    transform: translateY(-2px) scale(1.055);
    box-shadow: 0 18px 36px rgba(0,0,0,.25), 0 0 25px 8px rgba(37,211,102,.22);
  }
  78% { transform: translateY(0) scale(1); }
}

@keyframes whatsapp-premium-ring {
  0%, 57% { opacity: 0; transform: scale(.94); }
  61% { opacity: .68; transform: scale(.96); }
  82%, 100% { opacity: 0; transform: scale(1.62); }
}

@keyframes whatsapp-premium-inner {
  0%, 58%, 100% { opacity: .16; transform: scale(.96); }
  68% { opacity: .74; transform: scale(1.13); }
  80% { opacity: .20; transform: scale(1); }
}

/* Reveal más orgánico: menos distancia y desenfoque inicial casi imperceptible. */
body.reveal-ready .reveal {
  filter: blur(2px);
  transition:
    opacity .72s cubic-bezier(.22,.61,.36,1),
    transform .72s cubic-bezier(.22,.61,.36,1),
    filter .72s ease;
}

body.reveal-ready .reveal.is-visible {
  filter: blur(0);
}

/* Accesibilidad: todo efecto ornamental se apaga cuando corresponde. */
@media (prefers-reduced-motion: reduce) {
  .header .logo__icon,
  .footer .logo__icon,
  .whatsapp-float,
  .whatsapp-float::before,
  .whatsapp-float::after,
  .hero .btn--primary,
  .cta-banner .btn--white,
  .hero .btn--outline .icon--sm {
    animation: none !important;
  }

  .btn::after {
    display: none;
  }

  body.reveal-ready .reveal {
    filter: none !important;
  }
}

/* ==========================================================
   CALEFACCIONAR v1.3 — WHATSAPP WEBP + MICROINTERACTIONS
   El recurso utilizado es img/whatsapp.webp (64 × 64, transparente).
   ========================================================== */

/* La imagen ya incorpora el círculo verde: el contenedor queda transparente. */
.whatsapp-float {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  overflow: visible;
  animation: none;
  transition: transform .24s cubic-bezier(.22,.61,.36,1), filter .24s ease;
}

.whatsapp-float__icon {
  position: relative;
  z-index: 3;
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 10px 14px rgba(0,0,0,.22))
    drop-shadow(0 0 8px rgba(37,211,102,.24));
  transform-origin: center;
  animation: whatsapp-webp-breathe 4.6s ease-in-out infinite;
  transition: transform .24s cubic-bezier(.22,.61,.36,1), filter .24s ease;
}

/* Halo desenfocado detrás del WebP. */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 0;
  border-radius: 50%;
  background: rgba(37,211,102,.58);
  filter: blur(13px);
  opacity: .18;
  transform: scale(.86);
  pointer-events: none;
  animation: whatsapp-webp-glow 4.6s ease-in-out infinite;
}

/* Onda expansiva independiente del icono. */
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 1;
  border: 2px solid rgba(37,211,102,.48);
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  animation: whatsapp-webp-ring 4.6s ease-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: none;
}

.whatsapp-float:hover .whatsapp-float__icon {
  animation-play-state: paused;
  transform: scale(1.075);
  filter:
    drop-shadow(0 13px 17px rgba(0,0,0,.25))
    drop-shadow(0 0 13px rgba(37,211,102,.42));
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  animation-play-state: paused;
}

.whatsapp-float:active {
  transform: translateY(-1px) scale(.97);
}

@keyframes whatsapp-webp-breathe {
  0%, 57%, 100% {
    transform: scale(1);
    filter:
      drop-shadow(0 10px 14px rgba(0,0,0,.22))
      drop-shadow(0 0 8px rgba(37,211,102,.22));
  }
  68% {
    transform: scale(1.055);
    filter:
      drop-shadow(0 13px 17px rgba(0,0,0,.24))
      drop-shadow(0 0 15px rgba(37,211,102,.43));
  }
  78% {
    transform: scale(1);
  }
}

@keyframes whatsapp-webp-glow {
  0%, 57%, 100% { opacity: .14; transform: scale(.84); }
  68% { opacity: .60; transform: scale(1.18); }
  82% { opacity: .18; transform: scale(.92); }
}

@keyframes whatsapp-webp-ring {
  0%, 57% { opacity: 0; transform: scale(.88); }
  61% { opacity: .62; transform: scale(.94); }
  83%, 100% { opacity: 0; transform: scale(1.72); }
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 58px;
    height: 58px;
  }

  .whatsapp-float__icon {
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float__icon,
  .whatsapp-float::before,
  .whatsapp-float::after {
    animation: none !important;
  }
}

