/* HM Chile · Ventanas Termopanel — Landing premium
   Sistema técnico, arquitectónico, sobrio.
*/

:root {
  /* Identidad institucional elevada */
  --hm-navy: #0E1E3F;        /* Azul institucional sobrio (base) */
  --hm-navy-deep: #08132A;   /* Navy profundo (footer, hero overlay) */
  --hm-navy-soft: #1B2D55;   /* Navy intermedio */
  --hm-green: #4FB033;       /* Verde HM (CTA, acentos clave) */
  --hm-green-deep: #3E8E27;  /* Verde hover */
  --hm-green-soft: #E7F4E1;  /* Verde fondo claro */

  /* Neutros */
  --bone: #F7F6F3;           /* Blanco roto warm */
  --paper: #FFFFFF;
  --stone-50: #F1F0EC;
  --stone-100: #E5E3DD;
  --stone-200: #D4D1C8;
  --stone-300: #B6B2A6;
  --stone-400: #8B877A;
  --stone-500: #5F5C53;
  --ink: #1A1D22;
  --ink-soft: #2E323A;

  /* Acentos técnicos */
  --steel: #4A5568;
  --warning: #C84A1B;

  /* Tokens */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(14, 30, 63, 0.06), 0 1px 1px rgba(14, 30, 63, 0.04);
  --shadow-md: 0 4px 14px rgba(14, 30, 63, 0.08), 0 1px 3px rgba(14, 30, 63, 0.06);
  --shadow-lg: 0 18px 40px rgba(14, 30, 63, 0.12), 0 4px 12px rgba(14, 30, 63, 0.06);

  --container: 1240px;
  --container-narrow: 980px;

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ TIPOGRAFÍA ============ */
.h-display {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h-section {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-card {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hm-green);
}
.eyebrow-stone {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone-400);
}
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.muted { color: var(--stone-500); }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; }

/* ============ LAYOUT ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: clamp(72px, 10vw, 128px) 0; }

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.section-divider .rule {
  flex: 1;
  height: 1px;
  background: var(--stone-200);
}

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--hm-green);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 1px 2px rgba(0,0,0,0.08);
}
.btn-primary:hover { background: var(--hm-green-deep); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--hm-navy);
  border-color: var(--stone-200);
}
.btn-secondary:hover { border-color: var(--hm-navy); background: white; }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.85);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: all 200ms ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--stone-100);
  box-shadow: 0 1px 0 rgba(14,30,63,0.04);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 44px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--hm-navy);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-top: 4px;
}
.nav-list {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 140ms;
}
.nav-link:hover { color: var(--hm-navy); }
.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 880px) {
  .nav-list, .header-phone { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 0;
  background: var(--bone);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  background: white;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hm-green);
  box-shadow: 0 0 0 3px rgba(79, 176, 51, 0.18);
}
.hero h1 {
  margin: 0 0 24px;
}
.hero h1 .accent { color: var(--hm-green); }
.hero-lead { max-width: 540px; margin-bottom: 36px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--stone-200);
  padding-top: 28px;
  gap: 24px;
}
.hero-stat-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hm-navy);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-top: 8px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #1B2D55 0%, #0E1E3F 100%);
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { aspect-ratio: 4/3; }
}

/* ============ PLACEHOLDERS ============ */
.placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(160deg, #1B2D55 0%, #0E1E3F 100%);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-light {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(14,30,63,0.025) 0px,
      rgba(14,30,63,0.025) 1px,
      transparent 1px,
      transparent 14px
    ),
    var(--stone-50);
  color: var(--ink);
  border: 1px solid var(--stone-200);
}
.placeholder-inner {
  text-align: center;
  padding: 32px;
  max-width: 460px;
}
.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.92);
}
.placeholder-light .placeholder-tag {
  background: white;
  border-color: var(--stone-200);
  color: var(--hm-navy);
}
.placeholder-tag .dot {
  width: 6px; height: 6px;
  background: var(--hm-green); border-radius: 50%;
}
.placeholder-title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.placeholder-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.placeholder-light .placeholder-desc { color: var(--stone-500); }

.placeholder-corner {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.placeholder-light .placeholder-corner { color: var(--stone-400); }

/* Crosshair marks at corners — technical drawing feel */
.placeholder-crosshair::before,
.placeholder-crosshair::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid rgba(255,255,255,0.3);
}
.placeholder-crosshair::before { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.placeholder-crosshair::after { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.placeholder-light.placeholder-crosshair::before,
.placeholder-light.placeholder-crosshair::after {
  border-color: var(--stone-300);
}

/* ============ STRIP / Idea-guía ============ */
.idea-strip {
  background: var(--hm-navy);
  color: white;
  padding: 64px 0;
}
.idea-strip-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 1000px;
  text-wrap: balance;
}
.idea-strip-text em {
  font-style: normal;
  color: var(--hm-green);
  font-weight: 500;
}
.idea-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.idea-attribution::before {
  content: '';
  width: 32px; height: 1px; background: rgba(255,255,255,0.4);
}

/* ============ PROBLEM ============ */
.problem {
  background: var(--paper);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 920px) { .problem-grid { grid-template-columns: 1fr; gap: 32px; } }
.problem-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--stone-200);
}
.problem-point {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--stone-200);
}
.problem-point .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-400);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.problem-point h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.problem-point p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ============ BENEFITS ============ */
.benefits { background: var(--bone); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone-200);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.benefit-card {
  background: white;
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: background 180ms;
}
.benefit-card:hover { background: var(--stone-50); }
.benefit-icon {
  width: 44px; height: 44px;
  margin-bottom: 28px;
  color: var(--hm-navy);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.benefit-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--hm-green);
  margin-bottom: 12px;
  display: block;
}
.benefit-title {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.benefit-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.benefit-metric {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stone-500);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stone-200);
  display: flex;
  align-items: center;
  gap: 8px;
}
.benefit-metric strong { color: var(--hm-navy); font-weight: 600; }
@media (max-width: 920px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ============ COMPARISON ============ */
.comparison { background: var(--paper); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
}
.compare-table th, .compare-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--stone-100);
  vertical-align: middle;
}
.compare-table th {
  background: var(--stone-50);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--stone-500);
}
.compare-table th.col-hm {
  background: var(--hm-navy);
  color: white;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare-table th.col-other {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 36%;
}
.compare-table td.cell-hm { color: var(--hm-navy); font-weight: 500; }
.compare-table td.cell-other { color: var(--stone-500); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.cell-icon {
  display: inline-flex;
  width: 18px; height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
.cell-icon.check { color: var(--hm-green); }
.cell-icon.x { color: var(--warning); }

/* ============ PROCESS ============ */
.process { background: var(--bone); }
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.process-step {
  position: relative;
  padding: 0 18px 0 0;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 8px;
  width: calc(100% - 60px);
  height: 1px;
  background: var(--stone-200);
}
.process-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--stone-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--hm-navy);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.process-step.active .process-num {
  background: var(--hm-navy);
  color: white;
  border-color: var(--hm-navy);
}
.process-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.process-step p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.process-step .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-400);
  letter-spacing: 0.08em;
  margin-top: 14px;
  text-transform: uppercase;
}
@media (max-width: 920px) {
  .process-track { grid-template-columns: 1fr; gap: 28px; }
  .process-step::after { display: none; }
}

/* ============ VIDEO ============ */
.video-section { background: var(--paper); }
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, #1B2D55 0%, #08132A 100%);
  margin-top: 40px;
}
.video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.025) 0,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 18px
    );
}
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--hm-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(79, 176, 51, 0.18), 0 18px 50px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 200ms;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 32px; height: 32px; color: white; margin-left: 4px; }
.video-meta {
  position: absolute;
  bottom: 28px; left: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: white;
}
.video-meta .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.video-meta .title {
  font-size: 17px;
  font-weight: 600;
}
.video-spec {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.7;
}

/* ============ GALLERY ============ */
.gallery { background: var(--bone); }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
  height: 620px;
}
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; }
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
@media (max-width: 920px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .gallery-item:nth-child(1) { grid-row: auto; height: 320px; grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 2; height: 240px; }
  .gallery-item { height: 220px; }
}

/* ============ BEFORE / AFTER ============ */
.compare-section { background: var(--paper); }
.before-after {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
  user-select: none;
  cursor: ew-resize;
}
.ba-side {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-before { background: linear-gradient(160deg, #5A5A5A 0%, #2D2D2D 100%); }
.ba-after { background: linear-gradient(160deg, #1B2D55 0%, #0E1E3F 100%); }
.ba-after-clip { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-pos, 50%);
  width: 2px;
  background: white;
  transform: translateX(-1px);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  pointer-events: none;
}
.ba-knob svg { width: 22px; height: 22px; color: var(--hm-navy); }
.ba-label {
  position: absolute;
  top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  color: white;
}
.ba-label.left { left: 24px; }
.ba-label.right { right: 24px; }

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--bone); }
.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 920px) { .tst-grid { grid-template-columns: 1fr; } }
.tst-card {
  background: white;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  min-height: 320px;
}
.tst-card .quote-mark {
  font-family: var(--font-sans);
  font-size: 56px;
  line-height: 0.6;
  color: var(--stone-200);
  font-weight: 700;
}
.tst-quote {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  color: var(--stone-400);
  font-style: italic;
}
.tst-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--stone-100);
}
.tst-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(135deg, var(--stone-100) 0, var(--stone-100) 1px, var(--stone-50) 1px, var(--stone-50) 6px);
  border: 1px solid var(--stone-200);
  flex-shrink: 0;
}
.tst-info {
  display: flex; flex-direction: column;
}
.tst-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-400);
}
.tst-role {
  font-size: 12px;
  color: var(--stone-400);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.tst-pending {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--stone-100);
  color: var(--stone-500);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ============ FORM ============ */
.form-section {
  background: var(--hm-navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 22px
    );
  pointer-events: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  position: relative;
}
@media (max-width: 920px) { .form-grid { grid-template-columns: 1fr; gap: 48px; } }
.form-side h2 { color: white; margin-bottom: 20px; }
.form-side .lead { color: rgba(255,255,255,0.7); }
.form-info-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.form-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
}
.form-info-row svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--hm-green);
  margin-top: 1px;
}
.form-card {
  background: white;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.split > .form-row { margin-bottom: 0; }
.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone-500);
}
.form-input, .form-select, .form-textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: white;
  color: var(--ink);
  transition: border 140ms, box-shadow 140ms;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--hm-navy);
  box-shadow: 0 0 0 3px rgba(14, 30, 63, 0.08);
}
.form-textarea { resize: vertical; min-height: 84px; font-family: inherit; }
.form-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.form-radio {
  position: relative;
}
.form-radio input { position: absolute; opacity: 0; }
.form-radio label {
  display: block;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  font-size: 13px;
  cursor: pointer;
  transition: all 140ms;
  user-select: none;
}
.form-radio input:checked + label {
  border-color: var(--hm-navy);
  background: var(--hm-navy);
  color: white;
}
.form-submit {
  width: 100%;
  margin-top: 8px;
}
.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stone-400);
  text-transform: uppercase;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--stone-200);
}
.btn-whatsapp {
  width: 100%;
  background: white;
  color: #128C7E;
  border: 1px solid var(--stone-200);
}
.btn-whatsapp:hover { background: var(--stone-50); }
.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-400);
  letter-spacing: 0.04em;
  margin-top: 16px;
  line-height: 1.5;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--hm-green-soft);
  color: var(--hm-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ============ FAQ ============ */
.faq { background: var(--paper); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-top: 12px;
}
@media (max-width: 920px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }
.faq-list {
  border-top: 1px solid var(--stone-200);
}
.faq-item {
  border-bottom: 1px solid var(--stone-200);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-family: inherit;
}
.faq-q .icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--stone-300);
  display: flex; align-items: center; justify-content: center;
  transition: transform 200ms, background 200ms;
}
.faq-item.open .faq-q .icon {
  background: var(--hm-navy);
  color: white;
  border-color: var(--hm-navy);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 0 26px; max-width: 620px; }

/* ============ FINAL CTA ============ */
.cta-final {
  background: var(--hm-navy-deep);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(79, 176, 51, 0.18), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(27, 45, 85, 0.5), transparent 60%);
}
.cta-final-content { position: relative; z-index: 1; }
.cta-final h2 { color: white; max-width: 800px; margin: 0 auto 24px; }
.cta-final .lead { color: rgba(255,255,255,0.7); max-width: 620px; margin: 0 auto 36px; }
.cta-final-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--hm-navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand-text { color: white; font-weight: 700; font-size: 17px; margin: 14px 0 8px; }
.footer-tagline { font-size: 14px; line-height: 1.55; }
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; transition: color 140ms; }
.footer ul a:hover { color: white; }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 14px;
}

/* ============ FLOATING WHATSAPP ============ */
.fab-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 14px 18px 14px 14px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0,0,0,0.15);
  font-weight: 600;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: transform 160ms, box-shadow 160ms;
}
.fab-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5); }
.fab-whatsapp svg { width: 22px; height: 22px; }
.fab-label { display: inline-block; }
@media (max-width: 600px) {
  .fab-label { display: none; }
  .fab-whatsapp { padding: 14px; }
}

/* ============ TWEAKS HOOK ============ */
[data-theme='warm'] {
  --hm-navy: #1A1714;
  --hm-navy-deep: #0F0D0B;
  --hm-navy-soft: #2A2520;
}
[data-theme='steel'] {
  --hm-navy: #1F2A33;
  --hm-navy-deep: #0F1820;
  --hm-navy-soft: #303D48;
}

/* utility */
.flex-row { display: flex; align-items: center; gap: 10px; }
.cursor { cursor: pointer; }

/* ============ MOBILE RESPONSIVE FIXES ============ */

/* Seguridad global: ningún contenedor supera el viewport */
.container, .container-narrow, section, header, main, footer { max-width: 100%; }

/* Compare intro: clase que reemplaza el inline style */
.compare-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Compare table: wrapper scrollable — la tabla mantiene min-width interno */
.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 40px;
  border-radius: var(--radius-lg);
}
.compare-table {
  margin-top: 0;
  min-width: 580px;
}

/* ========== 768px: móvil principal ========== */
@media (max-width: 768px) {

  /* Header: rediseño mobile real */
  .site-header { overflow: hidden; }
  .header-bar { height: 60px; }

  /* Brand: puede ceder espacio, no desborda */
  .brand {
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .brand-logo {
    height: 32px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .brand-text { overflow: hidden; }
  .brand-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-sub { display: none; }

  /* Botón Cotizar: inamovible en extremo derecho */
  .header-cta {
    flex: 0 0 auto;
    gap: 0;
  }
  .header-cta .btn-sm {
    padding: 9px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Hero CTA: botones apilados */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Compare intro: 2 → 1 col */
  .compare-intro-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Galería: 2 → 1 col */
  .gallery-grid { grid-template-columns: 1fr; height: auto; }
  .gallery-item {
    height: 220px !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Formulario */
  .form-card { padding: 28px 20px; }
  .form-row.split { grid-template-columns: 1fr; }
  .form-radio-group { grid-template-columns: 1fr 1fr; }

  /* CTA final: botones apilados */
  .cta-final-buttons { flex-direction: column; align-items: center; }
  .cta-final-buttons .btn { width: 100%; max-width: 380px; justify-content: center; }
}

/* ========== 480px: móvil pequeño ========== */
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
