/* =========================================================
   Gasfitería Renca — hoja de estilos
   1. Variables y tema
   2. Base y utilidades
   3. Header y navegación
   4. Hero y cotizador
   5. Secciones de contenido
   6. Footer y flotantes
   7. Responsive
   ========================================================= */

/* ============ 1. VARIABLES Y TEMA ============ */
:root {
  --blue-900: #06213f;
  --blue-800: #0a2f57;
  --blue-700: #0d3b66;
  --blue-600: #14508a;
  --blue-500: #1d6fb8;
  --blue-100: #e3eefa;
  --amber: #f4a259;
  --amber-dark: #d9822b;
  --wa: #25d366;
  --wa-dark: #1da851;

  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --bg-elev: #ffffff;
  --text: #10233b;
  --text-soft: #52657d;
  --border: #e2e9f2;
  --shadow-sm: 0 1px 2px rgba(10, 35, 66, .06), 0 2px 8px rgba(10, 35, 66, .05);
  --shadow-md: 0 6px 18px rgba(10, 35, 66, .08), 0 2px 6px rgba(10, 35, 66, .05);
  --shadow-lg: 0 24px 56px rgba(10, 35, 66, .14);

  --primary: var(--blue-700);
  --primary-soft: var(--blue-100);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a1521;
  --bg-alt: #0e1c2c;
  --bg-elev: #12243a;
  --text: #e8f0fa;
  --text-soft: #9fb3ca;
  --border: #1e3550;
  --blue-100: #16324f;
  --primary: #4f9be3;
  --primary-soft: #16324f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, .38);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, .5);
}

/* ============ 2. BASE Y UTILIDADES ============ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--text-soft); }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
img, svg, iframe { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(2.2rem, 4vw, 3.4rem);
  text-align: center;
}
.section__head--left { text-align: left; margin-inline: 0; }
.section__head p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hl {
  color: var(--amber-dark);
  position: relative;
  white-space: nowrap;
}
[data-theme="dark"] .hl { color: var(--amber); }
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .28em;
  background: var(--amber);
  opacity: .22;
  border-radius: 4px;
  z-index: -1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--amber), var(--wa));
  z-index: 120;
  transition: width .1s linear;
}

.dot-live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wa);
  margin-right: .45rem;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: .42rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.pill--light {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  padding: .82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(13, 59, 102, .28);
}
.btn--primary:hover { background: var(--blue-600); box-shadow: 0 14px 30px rgba(13, 59, 102, .34); }

.btn--wa {
  background: var(--wa);
  color: #06381c;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .32);
}
.btn--wa:hover { background: var(--wa-dark); color: #fff; box-shadow: 0 14px 30px rgba(37, 211, 102, .4); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.btn--outline-light {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn--outline-light:hover { background: #fff; color: var(--blue-800); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }

.ico-wa { fill: currentColor; stroke: none; }

/* --- Animación de aparición --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ 3. HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.is-stuck {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.topbar {
  background: var(--blue-800);
  color: #d5e6f7;
  font-size: .83rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
}
.topbar__links a { color: #fff; font-weight: 600; }
.topbar__links a:hover { color: var(--amber); }
.topbar__sep { opacity: .5; margin: 0 .4rem; }
.header.is-stuck .topbar { display: none; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: .75rem 0;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--blue-700), var(--blue-500));
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 59, 102, .3);
}
.brand__mark svg { width: 23px; height: 23px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-display); font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; }
.brand__text small { font-size: .74rem; color: var(--text-soft); letter-spacing: .02em; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav__menu > a {
  position: relative;
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: .25rem 0;
}
.nav__menu > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: width .25s var(--ease);
}
.nav__menu > a:hover, .nav__menu > a.is-active { color: var(--text); }
.nav__menu > a:hover::after, .nav__menu > a.is-active::after { width: 100%; }
.nav__cta { color: #06381c !important; padding: .6rem 1.2rem; font-size: .9rem; }
.nav__cta::after { display: none; }

.nav__actions { display: flex; align-items: center; gap: .6rem; }

.ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(6, 33, 63, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav-scrim.is-visible { opacity: 1; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  display: block;
  width: 19px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 4px auto;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ 4. HERO ============ */
.hero {
  position: relative;
  padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(4rem, 7vw, 6rem);
  background-color: var(--blue-900);
  background-image:
    linear-gradient(100deg,
      rgba(4, 20, 38, .94) 0%,
      rgba(5, 26, 48, .86) 32%,
      rgba(6, 33, 63, .55) 58%,
      rgba(6, 33, 63, .28) 100%),
    url("../img/hero-grifo.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 520px; height: 520px;
  right: -160px; top: 40px;
  background: radial-gradient(circle, rgba(244, 162, 89, .18), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.hero h1 { color: #fff; }
.hero .hl { color: var(--amber); }
.hero .hl::after { opacity: .3; }
.hero__lead { color: #d3e2f2; }
.hero .pill {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .26);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.hero .btn--ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
  backdrop-filter: blur(4px);
}
.hero .btn--ghost:hover { background: #fff; color: var(--blue-800); border-color: #fff; }
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 4vw, 3.6rem);
  align-items: start;
}
.hero__lead { font-size: clamp(1rem, 1.5vw, 1.13rem); max-width: 56ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.5rem;
  font-size: .9rem;
  color: #cadcee;
}
.hero__badges li { display: flex; align-items: center; gap: .45rem; }
.hero__badges span {
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .22);
  color: var(--wa);
  font-size: .68rem;
  font-weight: 800;
}

/* --- Cotizador --- */
.hero__card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--amber) 55%, transparent), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero__card-head h2 { font-size: 1.42rem; margin-bottom: .25rem; }
.hero__card-head p { font-size: .92rem; margin-bottom: 1.3rem; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; border: 0; padding: 0; }
.field label, .field legend {
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
  padding: 0;
}
.field .opt { font-weight: 500; color: var(--text-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .72rem .9rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2352657d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}
.field input.is-error, .field textarea.is-error { border-color: #e05252; }
.error { color: #e05252; font-size: .78rem; min-height: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .15rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  padding: .45rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--bg);
  transition: all .2s var(--ease);
}
.chip input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.quote__preview {
  font-size: .8rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  margin: .9rem 0 0;
  line-height: 1.5;
}

/* ============ 5. SECCIONES ============ */
/* --- Stats --- */
.stats { background: var(--blue-800); color: #fff; padding: 2.4rem 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  text-align: center;
}
.stat { padding: .3rem; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .14); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
}
.stat span { font-size: .87rem; color: #c3d8ef; }

/* --- Filtros --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.2rem;
}
.filter {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter:hover { color: var(--primary); border-color: var(--primary); }
.filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 59, 102, .22);
}

/* --- Tarjetas de servicio --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.3rem;
}
.card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}
.card:hover::after { transform: scaleX(1); }
.card.is-hidden { display: none; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1.1rem;
  transition: transform .3s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__icon svg { width: 27px; height: 27px; }
.card p { font-size: .93rem; }

.card__list { margin: .3rem 0 1.2rem; display: grid; gap: .35rem; }
.card__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: .87rem;
  color: var(--text-soft);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.card__link {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: .89rem;
  font-weight: 700;
  color: var(--primary);
}
.card__link:hover { color: var(--amber-dark); }
.card--more { background: linear-gradient(160deg, var(--primary-soft), var(--bg-elev)); }

/* --- Sobre mí --- */
.about {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__media { position: relative; }

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.mosaic__hero,
.mosaic__tile {
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mosaic__hero:hover,
.mosaic__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.mosaic__hero {
  grid-column: span 2;
  align-items: flex-start;
  gap: .5rem;
  padding: 1.7rem 1.5rem;
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(244, 162, 89, .3), transparent 66%),
    linear-gradient(135deg, var(--blue-800), var(--blue-500));
  box-shadow: 0 18px 40px rgba(13, 59, 102, .3);
}
.mosaic__hero svg { width: 46px; height: 46px; color: var(--amber); }
.mosaic__hero strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.mosaic__hero span { font-size: .87rem; color: #cfe2f5; }

.mosaic__num {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.mosaic__num small { font-size: .9rem; font-weight: 700; margin-left: .15rem; color: var(--text-soft); }
.mosaic__stars { color: var(--amber); font-size: .9rem; letter-spacing: .1em; }
.mosaic__cap { font-size: .82rem; color: var(--text-soft); line-height: 1.45; }
.mosaic__cap--top {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .55rem;
}
.mosaic__tile--accent .mosaic__num { color: var(--amber-dark); }
[data-theme="dark"] .mosaic__tile--accent .mosaic__num { color: var(--amber); }
.mosaic__tile--wide { grid-column: span 2; }
.mosaic__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.mosaic__tags span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: .28rem .7rem;
  border-radius: 999px;
}

.about__badge {
  position: absolute;
  right: -18px; top: -26px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.about__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--amber-dark);
  line-height: 1;
}
.about__badge span { font-size: .78rem; color: var(--text-soft); }
@keyframes float {
  50% { transform: translateY(-11px); }
}

.values { display: grid; gap: 1rem; margin: 1.8rem 0 2rem; }
.values li { display: flex; gap: .9rem; align-items: flex-start; }
.values__ico {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 1.1rem;
}
.section--alt .values__ico { background: var(--bg); }
.values strong { font-family: var(--font-display); font-size: .98rem; }
.values p { margin: 0; font-size: .89rem; }

/* --- Proceso --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step__num {
  position: absolute;
  top: -18px; left: 1.4rem;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--blue-700), var(--blue-500));
  color: #fff;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(13, 59, 102, .3);
}
.step h3 { margin-top: .6rem; }
.step p { font-size: .91rem; margin: 0; }

/* --- Cobertura --- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.4rem);
  align-items: center;
}
.comunas {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.4rem 0 1.8rem;
}
.comunas li {
  font-size: .87rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem 1rem;
  transition: all .2s var(--ease);
}
.comunas li:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.comunas .is-main {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.comunas .is-main:hover { color: #fff; }

.coverage__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.2;
}
.coverage__map iframe { width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .coverage__map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }

/* --- Opiniones --- */
.reviews { position: relative; }
.reviews__track {
  display: flex;
  gap: 1.3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .4rem .2rem 1.4rem;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(100%, 370px);
  scroll-snap-align: center;
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { color: var(--amber); letter-spacing: .12em; font-size: 1rem; }
.review blockquote {
  margin: 0;
  font-size: .96rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}
.review blockquote::before { content: "“"; color: var(--amber); font-size: 1.3em; line-height: 0; }
.review figcaption {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: .8rem;
}
.review figcaption strong { font-family: var(--font-display); font-size: .93rem; }
.review figcaption span { font-size: .82rem; color: var(--text-soft); }

.reviews__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.reviews__dots { display: flex; gap: .4rem; }
.reviews__dots button {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.reviews__dots button.is-active { width: 26px; background: var(--primary); }

/* --- Banda CTA --- */
.cta-band {
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(244, 162, 89, .22), transparent 62%),
    linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: #fff;
  padding: clamp(2.8rem, 5vw, 4.2rem) 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: #cfe2f5; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --- FAQ --- */
.faq {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(2rem, 4vw, 3.4rem);
  align-items: start;
}
.faq .section__head { margin-bottom: 0; position: sticky; top: 110px; }
.accordion { display: grid; gap: .7rem; }
.acc {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.acc.is-open { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-md); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: .99rem;
  font-weight: 700;
  color: var(--text);
  background: none;
  border: 0;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
}
.acc__btn:hover { color: var(--primary); }
.acc__ico {
  position: relative;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
}
.acc__ico::before, .acc__ico::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.acc__ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc__ico::after { transform: translate(-50%, -50%) rotate(0); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > p {
  overflow: hidden;
  margin: 0;
  padding: 0 1.25rem;
  font-size: .93rem;
  transition: padding .35s var(--ease);
}
.acc.is-open .acc__panel > p { padding: 0 1.25rem 1.2rem; }

/* --- Contacto --- */
.contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  align-items: start;
}
.contact__info { display: grid; gap: .8rem; }
.info-card {
  display: flex;
  align-items: center;
  gap: .95rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
a.info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}
.info-card__ico {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}
.info-card__ico svg { width: 21px; height: 21px; }
.info-card strong { display: block; font-family: var(--font-display); font-size: .97rem; }
.info-card span { font-size: .86rem; color: var(--text-soft); }
.info-card--wa .info-card__ico { background: color-mix(in srgb, var(--wa) 18%, transparent); color: var(--wa-dark); }
[data-theme="dark"] .info-card--wa .info-card__ico { color: var(--wa); }
.info-card--static { cursor: default; }

.contact__form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg);
}
.contact__form h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.contact__form-sub { font-size: .9rem; margin-bottom: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.contact__submit { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.form-note { font-size: .78rem; color: var(--text-soft); margin: 1rem 0 0; }

/* ============ 6. FOOTER Y FLOTANTES ============ */
.footer {
  background: var(--blue-900);
  color: #b9cee5;
  padding: clamp(2.8rem, 5vw, 4rem) 0 1.4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
}
.brand--footer { color: #fff; margin-bottom: 1rem; }
.brand--footer .brand__text small { color: #8fabc9; }
.footer__about { font-size: .89rem; color: #9db6d1; max-width: 38ch; }
.footer h4 { color: #fff; margin-bottom: .9rem; font-size: .95rem; }
.footer ul { display: grid; gap: .5rem; font-size: .89rem; }
.footer a { color: #b9cee5; }
.footer a:hover { color: var(--amber); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .8rem;
}
.footer__bottom p { margin: 0; color: #8fabc9; }

.fab {
  position: fixed;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 0;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease);
}
.fab--wa {
  right: 22px; bottom: 24px;
  background: var(--wa);
  color: #fff;
  padding: 14px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
}
.fab--wa svg { width: 28px; height: 28px; }
.fab--wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--wa);
  animation: ring 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ring {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.5); opacity: 0; }
}
.fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  transition: max-width .35s var(--ease), margin .35s var(--ease);
}
.fab--wa:hover { transform: scale(1.04); }
.fab--wa:hover .fab__label { max-width: 160px; margin-right: .3rem; }

.fab--top {
  right: 24px; bottom: 96px;
  width: 44px; height: 44px;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
}
.fab--top svg { width: 19px; height: 19px; }
.fab--top.is-visible { opacity: 1; pointer-events: auto; }
.fab--top:hover { color: var(--primary); transform: translateY(-3px); }

.mobile-bar { display: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 140%);
  z-index: 130;
  background: var(--blue-800);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease);
  max-width: 90vw;
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ============ 7. RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 560px; }

  /* en una sola columna el contenido cubre toda la foto: oscurezco el texto, pero dejo ver el grifo */
  .hero {
    background-position: 78% center;
    background-image:
      linear-gradient(180deg,
        rgba(4, 20, 38, .7) 0%,
        rgba(5, 26, 48, .55) 40%,
        rgba(6, 33, 63, .78) 100%),
      url("../img/hero-grifo.jpg");
  }

  .about, .coverage, .faq, .contact { grid-template-columns: 1fr; }
  .faq .section__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__media { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .topbar__links { display: none; }
  .topbar__inner { justify-content: center; }

  /* backdrop-filter crea un bloque contenedor y atraparía al menú fijo dentro del header */
  .header { background: var(--bg); backdrop-filter: none; }

  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: .2rem;
    background: var(--bg-elev);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 5.5rem 1.5rem 2rem;
    transform: translateX(105%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: none; }
  .nav__menu > a {
    font-size: 1.05rem;
    padding: .85rem .2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__menu > a::after { display: none; }
  .nav__cta { margin-top: 1.2rem; border-bottom: 0 !important; justify-content: center; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .stat:nth-child(3) { border-left: 0; }
  .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .14); }
  .stat:nth-child(odd) { border-left: 0; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }

  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(10, 35, 66, .1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .18rem;
    padding: .6rem 0 .55rem;
    font-family: var(--font-display);
    font-size: .74rem;
    font-weight: 700;
    color: var(--text-soft);
  }
  .mobile-bar a svg { width: 21px; height: 21px; }
  .mobile-bar__wa { color: var(--wa-dark) !important; }
  [data-theme="dark"] .mobile-bar__wa { color: var(--wa) !important; }

  .fab--wa { bottom: 82px; right: 16px; }
  .fab--top { bottom: 152px; right: 18px; }
  .toast { bottom: 86px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .hero__cta .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .cta-band__actions { width: 100%; flex-direction: column; }
  .cta-band__actions .btn { width: 100%; }
  .review { flex-basis: 88%; }
  .contact__submit .btn { width: 100%; }
  .stats__grid { gap: 1.4rem .6rem; }
  .stat + .stat { border-left: 0; }
}
