/* =========================================================
   GVCLIMA Chile — Sistema de Diseño Editorial
   Paleta oficial del logo + física emil-motion + entrada desde esquinas
   ========================================================= */

:root {
  --cool: #009FE3;
  --cool-light: #35C9F7;
  --cool-hover: #0082BD;
  --cool-deep: #006EA3;
  --cool-soft: #E6F7FE;

  --warm: #FF6B1A;
  --warm-light: #FFA928;
  --warm-hover: #E0560C;
  --warm-deep: #C44606;
  --warm-soft: #FFF2E8;

  --dark: #070C12;
  --dark-2: #0D1520;
  --dark-border: rgba(255, 255, 255, 0.14);

  --white: #FFFFFF;
  --light: #F4F7FA;
  --surface: #ECF1F6;
  --ink: #0F1B2C;
  --muted: #54667B;
  --gray-light: #C9D6E3;
  --line: #DDE5EE;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  caret-color: var(--cool);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cool); color: var(--white); }
:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.tabular { font-variant-numeric: tabular-nums; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* =========================================================
   BARRA DE PROGRESO TÉRMICA SUPERIOR
   ========================================================= */
.thermal-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1100;
  background: linear-gradient(90deg, var(--cool) 0%, var(--cool-light) 50%, var(--warm) 100%);
  transition: width 80ms linear;
}

/* =========================================================
   HEADER FIJO SIEMPRE VISIBLE
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 12, 18, 0.72) 0%, rgba(7, 12, 18, 0.25) 70%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 240ms var(--ease-out), height 240ms var(--ease-out), box-shadow 240ms var(--ease-out), color 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled {
  height: 68px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px -16px rgba(7, 12, 18, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }

.brand-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(53, 201, 247, 0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-text small {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.78;
}
.accent-cool { color: var(--cool); }

.main-nav { display: flex; align-items: center; gap: 28px; }

.nav-link {
  position: relative;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 0;
  opacity: 0.9;
  transition: opacity 160ms var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cool), var(--warm));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms var(--ease-out);
}
.nav-link.active { opacity: 1; }
.nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; }

/* =========================================================
   BOTONES (emil-motion)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 180ms var(--ease-out);
}
.btn:active, button:active { transform: scale(0.97); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary { color: var(--white); background: var(--cool-deep); }
.btn-warm { color: var(--white); background: var(--warm-deep); }
.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.btn-dark { color: var(--white); background: var(--dark); }
.btn-outline-dark { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-outline-light { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, 0.28); }
.btn-whatsapp { color: var(--white); background: #1B954B; }

/* =========================================================
   HERO CAROUSEL A PANTALLA COMPLETA (100vh)
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 660px;
  max-height: 1020px;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 800ms var(--ease-out), visibility 800ms;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-slide.is-active:nth-child(1) .hero-bg {
  animation: kenBurnsIn 7.5s ease-out forwards;
}
.hero-slide.is-active:nth-child(2) .hero-bg {
  animation: kenBurnsOut 7.5s ease-out forwards;
}
.hero-slide.is-active:nth-child(3) .hero-bg {
  animation: kenBurnsPan 7.5s ease-out forwards;
}

@keyframes kenBurnsIn {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.5%, -1%, 0); }
}
@keyframes kenBurnsOut {
  from { transform: scale(1.14) translate3d(1.5%, -1%, 0); }
  to   { transform: scale(1.01) translate3d(0, 0, 0); }
}
@keyframes kenBurnsPan {
  from { transform: scale(1.02) translate3d(-1.5%, 0, 0); }
  to   { transform: scale(1.13) translate3d(1.5%, -1%, 0); }
}

.hero-scrim { position: absolute; inset: 0; }
.hero-scrim--warm {
  background:
    linear-gradient(180deg, rgba(7, 12, 18, 0.52) 0%, transparent 28%, rgba(7, 12, 18, 0.7) 100%),
    linear-gradient(95deg, rgba(7, 12, 18, 0.9) 0%, rgba(14, 22, 34, 0.74) 44%, rgba(56, 30, 14, 0.22) 100%);
}
.hero-scrim--cool {
  background:
    linear-gradient(180deg, rgba(7, 12, 18, 0.55) 0%, transparent 28%, rgba(7, 12, 18, 0.74) 100%),
    linear-gradient(95deg, rgba(6, 14, 24, 0.92) 0%, rgba(7, 18, 32, 0.76) 45%, rgba(0, 74, 118, 0.24) 100%);
}
.hero-scrim--dual {
  background:
    linear-gradient(180deg, rgba(7, 12, 18, 0.54) 0%, transparent 28%, rgba(7, 12, 18, 0.74) 100%),
    linear-gradient(100deg, rgba(7, 12, 18, 0.9) 0%, rgba(12, 24, 40, 0.72) 46%, rgba(48, 28, 16, 0.2) 100%);
}

.hero-content { position: relative; z-index: 3; padding-top: 32px; padding-bottom: 72px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 4.6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 720px;
  margin-bottom: 20px;
}

.hl-cool { color: var(--cool-light); }
.hl-warm { color: var(--warm-light); }

.hero-lead {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: var(--gray-light);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-slide [data-enter] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.hero-slide.is-active [data-enter]:nth-child(1) { opacity: 1; transform: none; transition-delay: 60ms; }
.hero-slide.is-active [data-enter]:nth-child(2) { opacity: 1; transform: none; transition-delay: 140ms; }
.hero-slide.is-active [data-enter]:nth-child(3) { opacity: 1; transform: none; transition-delay: 210ms; }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 5; }
.hero-controls-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-dots { display: flex; gap: 20px; }

.hero-dot {
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 106px;
  padding: 4px 0;
  transition: color 180ms ease;
}
.hero-dot.is-active { color: var(--white); }

.dot-num { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.72; }
.dot-label { font-size: 0.85rem; font-weight: 600; }
.dot-bar { height: 2px; width: 100%; background: rgba(255, 255, 255, 0.22); border-radius: 2px; overflow: hidden; }
.dot-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--cool), var(--warm)); }
.hero-dot.is-active .dot-bar span { animation: slideProgress 6.5s linear forwards; }
@keyframes slideProgress { from { width: 0%; } to { width: 100%; } }

.hero-arrows { display: flex; gap: 10px; }
.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 12, 18, 0.45);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}

/* =========================================================
   SECCIONES Y TIPOGRAFÍA
   ========================================================= */
.section { padding: 96px 0; position: relative; }
.section--white { background: var(--white); }
.section--light { background: var(--light); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-sub { color: var(--muted); font-size: 1.02rem; max-width: 62ch; }

/* =========================================================
   SERVICIOS (Entrada desde esquinas/orillas -> posición 2x2 original)
   ========================================================= */
.section--photo {
  color: var(--white);
  overflow-x: clip;
  background-color: var(--dark);
  background-image:
    linear-gradient(135deg, rgba(7, 12, 18, 0.80) 0%, rgba(12, 24, 38, 0.68) 52%, rgba(52, 28, 14, 0.72) 100%),
    url('../img/hero-oficina-2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.section--photo .section-sub { color: #D8E4F0; }

.services-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.services-panel.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.service-cell {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(7, 12, 18, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  will-change: transform, opacity;
  transition: background-color 180ms var(--ease-out);
}
.service-cell:nth-child(1) {
  border-top-left-radius: var(--radius);
  border-right: 0;
  border-bottom: 0;
}
.service-cell:nth-child(2) {
  border-top-right-radius: var(--radius);
  border-bottom: 0;
}
.service-cell:nth-child(3) {
  border-bottom-left-radius: var(--radius);
  border-right: 0;
}
.service-cell:nth-child(4) {
  border-bottom-right-radius: var(--radius);
}

.service-cell-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.service-cell h3 { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; }
.service-cell p { color: var(--gray-light); font-size: 0.96rem; }

.service-tag { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; }
.service-tag--cool { color: var(--cool-light); }
.service-tag--warm { color: var(--warm-light); }
.service-tag--neutral { color: var(--gray-light); }

.text-action {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cool-light);
  text-underline-offset: 4px;
}
.text-action--warm { color: var(--warm-light); }

.service-cell--cta {
  background: linear-gradient(145deg, rgba(64, 34, 16, 0.78), rgba(14, 22, 34, 0.74));
  justify-content: center;
}
.service-cta-wrap { margin-top: 8px; }

/* =========================================================
   CALCULADORA DE BTU
   ========================================================= */
.calc-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.calc-photo-frame { margin-top: 28px; border-radius: var(--radius); overflow: hidden; max-height: 310px; }
.calc-photo-frame img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.1);
  will-change: transform;
}

.calc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.thermal-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--surface);
  padding: 5px;
  border-radius: 11px;
}
.toggle-btn {
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms ease, transform 120ms var(--ease-out);
}
.toggle-btn.is-active { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(7, 12, 18, 0.12); }
.toggle-btn[data-thermal="cool"].is-active { color: var(--cool-deep); }
.toggle-btn[data-thermal="warm"].is-active { color: var(--warm-deep); }

.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; }
.calc-field label { font-weight: 600; font-size: 0.9rem; }
.calc-field output {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--cool-deep);
  background: var(--cool-soft);
  padding: 3px 10px;
  border-radius: 7px;
}
.calc-field input[type="range"] { width: 100%; accent-color: var(--cool-deep); cursor: pointer; }
.range-marks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.calc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.calc-field select,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.calc-field select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cool);
  box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.16);
}

.calc-result {
  background: var(--dark);
  color: var(--white);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 320ms var(--ease-out), border-color 260ms ease;
}
.calc-result[data-mode="cool"] {
  background: linear-gradient(145deg, #071626 0%, #092B45 100%);
  border-color: rgba(53, 201, 247, 0.35);
}
.calc-result[data-mode="warm"] {
  background: linear-gradient(145deg, #1B100A 0%, #4A210B 100%);
  border-color: rgba(255, 169, 40, 0.38);
}
.calc-result[data-mode="dual"] {
  background: linear-gradient(135deg, #071524 0%, #0D1B2C 60%, #2A170D 100%);
}
.result-label { font-size: 0.82rem; font-weight: 600; color: var(--cool-light); }
.calc-result strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 2px 0 6px;
  transition: transform 220ms var(--ease-out);
}
.calc-result strong.is-pop {
  animation: btuPop 280ms var(--ease-out);
}
@keyframes btuPop {
  0% { transform: scale(0.94); opacity: 0.7; }
  55% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.calc-result p { font-size: 0.9rem; color: var(--gray-light); }
.calc-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   CATÁLOGO DE EQUIPOS
   ========================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out);
}
.filter-chip.is-active { background: var(--dark); border-color: var(--dark); color: var(--white); }

.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 260ms var(--ease-out), border-color 180ms ease, opacity 520ms var(--ease-out);
}
.product-card.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.96);
}
.product-card.reveal:nth-child(2) { transition-delay: 80ms; }
.product-card.reveal:nth-child(3) { transition-delay: 160ms; }
.product-card.reveal:nth-child(4) { transition-delay: 240ms; }
.product-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.product-card.is-hidden { display: none; }

.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(12% 0 0 0);
  transform: scale(1.06);
  transition: transform 650ms var(--ease-out), clip-path 650ms var(--ease-out);
}
.product-card.is-visible .product-media img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--white);
}
.badge--cool { background: rgba(0, 110, 163, 0.94); }
.badge--warm { background: rgba(196, 70, 6, 0.94); }
.badge--dark { background: rgba(7, 12, 18, 0.9); }

.product-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-meta-top { font-size: 0.8rem; font-weight: 600; color: var(--cool-deep); }
.product-body h3 { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; }
.product-specs { font-size: 0.88rem; color: var(--muted); }
.product-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.ref-price { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* =========================================================
   QUÉ INCLUYE CADA SERVICIO
   ========================================================= */
.editorial-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-col { display: flex; flex-direction: column; gap: 20px; }
.editorial-col-head { padding-top: 14px; border-top: 3px solid var(--cool); }
.editorial-col--warm .editorial-col-head { border-top-color: var(--warm); }
.editorial-col-head h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
.editorial-col-head p { font-size: 0.94rem; color: var(--muted); }

.check-list { list-style: none; display: grid; gap: 11px; flex: 1; }
.check-list li { position: relative; padding-left: 24px; font-size: 0.95rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--cool-deep); }
.editorial-col--warm .check-list li::before { color: var(--warm-deep); }
.editorial-col .btn { align-self: flex-start; }

.editorial-band { margin-top: 52px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.editorial-band-title { font-family: var(--font-display); font-size: 1.32rem; margin-bottom: 24px; }
.signals-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.signal-col { display: flex; flex-direction: column; gap: 6px; }
.signal-col strong { font-family: var(--font-display); font-size: 1rem; color: var(--warm-deep); }
.signal-col span { font-size: 0.9rem; color: var(--muted); }

.process-row { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.process-col { display: flex; flex-direction: column; gap: 8px; }
.process-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.process-col h4 { font-family: var(--font-display); font-size: 1.08rem; }
.process-col p { font-size: 0.92rem; color: var(--muted); }

/* =========================================================
   COBERTURA NACIONAL & CINTA DE MARCAS (Paisaje de Chile)
   ========================================================= */
.section--chile {
  color: var(--white);
  background-color: var(--dark);
  background-image:
    linear-gradient(180deg, rgba(7, 12, 18, 0.24) 0%, rgba(7, 12, 18, 0.06) 48%, rgba(7, 12, 18, 0.42) 100%),
    url('../img/chile-cobertura.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.section--chile .h2,
.section--chile .section-sub { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72); }
.section--chile .section-sub { color: #F5F9FD; }

.coverage-head { max-width: 720px; }

.coverage-blocks--glass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 28px; }
.cov-box--glass {
  background: rgba(7, 12, 18, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}
.cov-zone { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.cov-zone--warm { color: var(--warm-light); }
.cov-zone--dual { color: #F0F5FA; }
.cov-zone--cool { color: var(--cool-light); }

.cov-box--glass strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--white); margin-bottom: 6px; }
.cov-box--glass p { font-size: 0.88rem; color: #E2ECF5; }

.city-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.city-chips span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(7, 12, 18, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #EAF2FA;
}
.city-chips span.is-highlight { background: rgba(0, 159, 227, 0.34); border-color: var(--cool-light); color: var(--white); }

.brands-strip {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.brands-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #EAF2FA;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}
.brands-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.brands-track { display: flex; width: max-content; animation: brandsMarquee 24s linear infinite; }
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brands-group { display: flex; align-items: center; gap: 54px; padding-right: 54px; }
.brands-group span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}
@keyframes brandsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   FAQ ACORDEÓN
   ========================================================= */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.3rem; color: var(--cool-deep); }
.faq-item[open] summary::after { content: '−'; color: var(--warm-deep); }
.faq-item p { margin-top: 12px; color: var(--muted); font-size: 0.95rem; max-width: 68ch; }

/* =========================================================
   COTIZADOR GUIADO EN 3 PASOS
   ========================================================= */
.quote-wrapper {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.quote-aside {
  background: var(--dark);
  color: var(--white);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote-aside p { color: var(--gray-light); }

.callback-box {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.callback-box label { font-size: 0.85rem; font-weight: 600; color: var(--gray-light); }
.callback-row { display: flex; gap: 8px; }
.callback-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.9rem;
}
.callback-row input::placeholder { color: rgba(255, 255, 255, 0.55); }
.callback-box small { font-size: 0.8rem; color: var(--warm-light); min-height: 16px; }

.quote-form { padding: 42px 38px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.86rem; font-weight: 600; }

.wizard-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 600; color: var(--cool-deep); }
.wizard-bar { height: 5px; border-radius: 100px; background: var(--surface); overflow: hidden; margin-bottom: 6px; }
.wizard-bar span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--cool), var(--warm)); transition: width 240ms var(--ease-out); }

.wizard-pane { display: none; flex-direction: column; gap: 18px; }
.wizard-pane.is-active { display: flex; }

.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.select-tile {
  text-align: left;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 150ms ease, background-color 150ms ease, transform 130ms var(--ease-out);
}
.select-tile strong { font-family: var(--font-display); font-size: 0.96rem; color: var(--ink); }
.select-tile span { font-size: 0.8rem; color: var(--muted); }
.select-tile.is-selected { border-color: var(--cool-deep); background: var(--cool-soft); }

.pill-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-pill {
  padding: 9px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out);
}
.choice-pill.is-selected { border-color: var(--dark); background: var(--dark); color: var(--white); }

.wizard-nav { margin-top: 4px; }
.wizard-nav--split { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.wizard-summary { padding: 12px 14px; border-radius: 10px; background: var(--surface); font-size: 0.85rem; color: var(--ink); }
.form-feedback { font-size: 0.9rem; font-weight: 600; min-height: 22px; }
.form-feedback.is-ok { color: #16794B; }
.form-feedback.is-err { color: #C0392B; }

/* Cascada editorial para señales, pasos y zonas de Chile */
.editorial-band .signal-col,
.process-row .process-col,
.coverage-hero .cov-box--glass {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms var(--ease-out), transform 560ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}
.editorial-band.is-visible .signal-col,
.process-row.is-visible .process-col,
.coverage-hero.is-visible .cov-box--glass {
  opacity: 1;
  transform: none;
}
.editorial-band.is-visible .signal-col:nth-child(2),
.process-row.is-visible .process-col:nth-child(2),
.coverage-hero.is-visible .cov-box--glass:nth-child(2) { transition-delay: 90ms; }
.editorial-band.is-visible .signal-col:nth-child(3),
.process-row.is-visible .process-col:nth-child(3),
.coverage-hero.is-visible .cov-box--glass:nth-child(3) { transition-delay: 180ms; }
.editorial-band.is-visible .signal-col:nth-child(4) { transition-delay: 260ms; }

/* =========================================================
   FOOTER & DOMO CURVO REACTIVO AL SCROLL (estilo sxlvx.de)
   ========================================================= */
#cotizar { padding-bottom: 170px; }

.site-footer {
  position: relative;
  background: var(--dark);
  color: var(--gray-light);
  padding: 76px 0 32px;
  overflow-x: clip;
}
.footer-dome {
  position: absolute;
  left: -14%;
  right: -14%;
  top: -158px;
  height: 160px;
  background: var(--dark);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform-origin: center bottom;
  transform: scaleY(1.25);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.site-footer > .container {
  position: relative;
  z-index: 2;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--dark-border); }
.footer-brand { display: flex; align-items: stretch; gap: 18px; }
.footer-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.footer-logo-tall { height: 100%; max-height: 124px; width: auto; object-fit: contain; mix-blend-mode: lighten; }
.footer-brand-copy { display: flex; flex-direction: column; justify-content: center; }
.footer-brand .brand-text strong { color: var(--white); font-size: 1.25rem; }
.footer-brand p { margin-top: 10px; font-size: 0.92rem; max-width: 300px; }

.site-footer h4 { font-family: var(--font-display); color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; font-size: 0.9rem; }
.site-footer a { transition: color 140ms ease; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: #7D92A8; }

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 990;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1FA855;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -6px rgba(31, 168, 85, 0.55);
  transition: transform 160ms var(--ease-out), background-color 140ms ease;
}

/* =========================================================
   REVELACIONES SUAVES
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   HOVER GATING (emil-motion)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { opacity: 1; }
  .nav-link:hover::after { transform: scaleX(1); }
  .btn-primary:hover { background: var(--cool-hover); }
  .btn-warm:hover { background: var(--warm-hover); }
  .btn-glass:hover { background: rgba(255, 255, 255, 0.22); }
  .btn-dark:hover { background: var(--cool-deep); }
  .btn-outline-dark:hover { border-color: var(--cool); color: var(--cool-deep); }
  .btn-outline-light:hover { border-color: var(--warm-light); color: var(--warm-light); }
  .btn-whatsapp:hover { background: #16803F; }
  .hero-dot:hover { color: var(--white); }
  .arrow-btn:hover { background: rgba(0, 159, 227, 0.3); border-color: var(--cool-light); }
  .service-cell:hover { background: rgba(12, 26, 44, 0.8); }
  .text-action:hover { text-decoration: underline; }
  .filter-chip:hover { border-color: var(--cool); color: var(--ink); }
  .product-card:hover { transform: translateY(-2px); border-color: rgba(0, 159, 227, 0.45); }
  .product-card:hover .product-media img { transform: scale(1.03); }
  .cov-box--glass:hover { transform: translateY(-2px); background: rgba(7, 12, 18, 0.5); border-color: rgba(53, 201, 247, 0.5); }
  .select-tile:hover { border-color: var(--cool); }
  .choice-pill:hover { border-color: var(--cool); color: var(--ink); }
  .site-footer a:hover { color: var(--cool-light); }
  .wa-float:hover { transform: translateY(-2px) scale(1.04); background: #199449; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-layout, .quote-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(7, 12, 18, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    color: var(--white);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 250ms var(--ease-drawer), opacity 200ms ease;
    border-bottom: 1px solid var(--dark-border);
  }
  .site-header.is-scrolled .main-nav { top: 68px; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .header-actions .btn-sm { display: none; }

  .hero { min-height: 620px; }
  .hero-controls { bottom: 26px; }
  .hero-dot { min-width: 72px; }
  .dot-label { font-size: 0.76rem; }
  .section--photo, .section--chile { background-attachment: scroll; }

  .services-panel { grid-template-columns: 1fr; }
  .service-cell:nth-child(n) {
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }
  .service-cell:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .service-cell:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

  .editorial-compare, .process-row, .coverage-blocks--glass { grid-template-columns: 1fr; gap: 28px; }
  .signals-row { grid-template-columns: repeat(2, 1fr); }
  .form-row, .calc-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .catalog-grid, .footer-grid, .signals-row, .tile-grid { grid-template-columns: 1fr; }
  .hero-arrows { display: none; }
  .quote-aside, .quote-form { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .service-cell, .editorial-band .signal-col, .process-row .process-col, .coverage-hero .cov-box--glass { opacity: 1; transform: none; }
  .product-media img { clip-path: none; transform: none; }
  .footer-dome { display: none; }
}
