/* =========================================================
   ECO LÓGICA García — hoja de estilos del sitio público
   Sistema de diseño basado en la identidad oficial (icons/)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Archivo", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  /* Marca oficial (Manual de identidad 03 . PALETA) */
  --brand-deep: #0B3B22;        /* Verde profundo: fondos, base de marca */
  --brand-garcia: #1B7F3A;      /* Verde García: color institucional, una tinta */
  --brand-signal: #3FD86A;      /* Verde señal: acento, precios, botones */
  --brand-carbon: #0B1F13;      /* Carbón: titulares y panel oscuro */
  --brand-bone: #F4F6F4;        /* Hueso: papel y fondo claro */

  /* Compatibilidad con variables del sistema */
  --brand-forest: var(--brand-deep);
  --brand-forest-dark: #072516;
  --brand-green: var(--brand-signal);
  --brand-green-strong: var(--brand-garcia);
  --brand-mid: var(--brand-garcia);
  --brand-white: var(--brand-bone);

  /* Tema claro (por defecto) */
  --bg: #ffffff;
  --bg-alt: #f1f8f3;
  --surface: #ffffff;
  --surface-alt: #eef6f0;
  --surface-strong: #e5f2e8;
  --ink: var(--brand-carbon);
  --ink-muted: #3d5647;
  --ink-soft: #668270;
  --border: #dbe8de;
  --border-strong: #c2d8c7;
  --accent: var(--brand-signal);
  --accent-ink: var(--brand-carbon);
  --shadow-sm: 0 2px 10px rgba(11, 59, 34, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 59, 34, 0.1);
  --shadow-lg: 0 24px 64px rgba(11, 59, 34, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --header-h: 68px;
  --topbar-h: 34px;

  color-scheme: light;
}

body.dark-mode {
  --bg: var(--brand-carbon);
  --bg-alt: #07150c;
  --surface: var(--brand-deep);
  --surface-alt: #0e4428;
  --surface-strong: #125532;
  --ink: var(--brand-bone);
  --ink-muted: #b8ccbf;
  --ink-soft: #85a390;
  --border: rgba(244, 246, 244, 0.12);
  --border-strong: rgba(63, 216, 106, 0.28);
  --accent: var(--brand-signal);
  --accent-ink: var(--brand-carbon);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--brand-green); color: var(--brand-forest); }
:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

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

/* ---------- Animaciones ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(43, 213, 103, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(43, 213, 103, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 213, 103, 0); }
}
@keyframes shimmer {
  0% { background-position: -300px 0; }
  100% { background-position: 300px 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes dot {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal.delay-1.show { transition-delay: .08s; }
.reveal.delay-2.show { transition-delay: .16s; }
.reveal.delay-3.show { transition-delay: .24s; }
.reveal.delay-4.show { transition-delay: .32s; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-alt) 25%, var(--surface-strong) 37%, var(--surface-alt) 63%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brand-mid), var(--brand-green));
  z-index: 200; transition: width 0.1s linear;
}

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--brand-forest);
  color: rgba(244, 246, 244, 0.82);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.topbar .container {
  min-height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.topbar strong { color: var(--brand-green); font-weight: 600; }
.topbar a { color: var(--brand-green); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
/* El desenfoque vive en un pseudo-elemento (no en .site-header directamente)
   porque backdrop-filter en el propio elemento crea un nuevo "containing
   block" para sus descendientes position:fixed (como el menú móvil),
   lo que rompería su anclaje al viewport. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  transition: background-color 0.35s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 1.5vw, 20px);
}
.logo { display: inline-flex; align-items: center; gap: 11px; flex: 0 1 auto; min-width: 0; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-text-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.logo-text { font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.logo-text .logo-kas { color: var(--brand-green-strong); }
body.dark-mode .logo-text .logo-kas { color: var(--brand-green); }
.logo-subtext { font-family: var(--font-display); font-weight: 600; font-size: 9px; letter-spacing: 0.22em; color: var(--ink-soft); text-transform: uppercase; white-space: nowrap; }

.nav-links { display: flex; gap: clamp(8px, 1.2vw, 16px); flex-wrap: nowrap; align-items: center; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--ink-muted); padding: 6px 2px; position: relative; transition: color 0.2s ease; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--brand-green-strong); transition: right 0.25s ease;
}
body.dark-mode .nav-links a::after { background: var(--brand-green); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--ink); font-weight: 700; }

.menu-btn {
  display: none; flex: none; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink); font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 8px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-cta { padding: 9px 15px; font-size: 13.5px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); display: inline-flex; align-items: center;
  justify-content: center; font-size: 15px; transition: transform 0.35s ease, background-color 0.25s ease;
}
.theme-toggle:hover { transform: rotate(18deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; padding: 12px 22px; border-radius: 10px;
  border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-green-strong); color: #06210f; }
body.dark-mode .btn-primary { background: var(--brand-green); color: #06210f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 184, 89, 0.35); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand-green-strong); color: var(--ink); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Franja de campaña ---------- */
.campaign-strip { background: var(--brand-forest); color: var(--brand-white); }
.campaign-strip-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 24px; font-size: 13.5px;
}
.campaign-strip-inner p { margin: 0; }
.campaign-strip .btn { padding: 8px 16px; font-size: 13px; }

/* ---------- Section head genérico ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head-solo { margin-bottom: 24px; }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-green-strong); }
body.dark-mode .eyebrow { color: var(--brand-green); }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin-top: 8px; }
.section-head > p { margin: 0; max-width: 40ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

section { padding: clamp(40px, 5vw, 68px) 0; border-bottom: 1px solid var(--border); }
section.bg-alt { background: var(--bg-alt); }
section.no-border { border-bottom: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(46px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 5vw, 60px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-badge-pill {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-green-strong); width: fit-content;
}
body.dark-mode .hero-badge-pill { color: var(--brand-green); }
.hero-badge-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green-strong); animation: pulseRing 2.2s ease infinite; }
body.dark-mode .hero-badge-pill .dot { background: var(--brand-green); }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.hero-copy > p.lede { max-width: 56ch; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.65; color: var(--ink-muted); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note {
  border-left: 3px solid var(--brand-green-strong); padding: 12px 16px; border-radius: 0 10px 10px 0;
  background: var(--surface-alt); font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); max-width: 56ch;
}
body.dark-mode .hero-note { border-left-color: var(--brand-green); }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 6px;
}
.hero-stats article { background: var(--surface); padding: 16px 18px; }
.hero-stats .stat-number {
  font-family: var(--font-mono); font-weight: 600; font-size: clamp(19px, 2.2vw, 24px); color: var(--brand-green-strong);
}
body.dark-mode .hero-stats .stat-number { color: var(--brand-green); }
.hero-stats .stat-label { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }

.hero-media {
  position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-md); animation: floatSoft 6s ease-in-out infinite;
}
.hero-media-frame { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--surface-alt); }
/* object-fit: contain (no "cover") a propósito: las fotos reales que sube el
   panel vienen en cualquier proporción (una placa fotografiada de forma
   vertical, por ejemplo), y "cover" recortaba una parte para rellenar el
   marco. "contain" siempre muestra la foto completa, con un margen neutro
   si no coincide exactamente con la proporción del marco. */
/* Sin zoom al pasar el mouse (se quitó "transform: scale()" que tenía
   antes): con "contain" la foto no necesariamente toca los 4 bordes del
   marco, así que agrandarla podía salirse por el lado donde sí lo toca y
   recortarse contra el overflow:hidden del marco — justo lo que este
   cambio de cover a contain buscaba evitar. */
.hero-media-frame img { width: 100%; height: 100%; object-fit: contain; }
.hero-media-frame::after {
  content: ""; position: absolute; inset: 0;
  /* Más tenue que antes: con "contain" puede haber un margen neutro
     (letterbox) a los lados de la foto, y este degradado pinta encima de
     TODO el marco (foto + margen); con la opacidad original ese margen se
     veía como una mancha oscura en vez de un margen limpio. */
  background: linear-gradient(200deg, rgba(6, 24, 15, 0.05) 0%, rgba(6, 24, 15, 0.4) 85%);
}
.hero-media-tag {
  position: absolute; left: 18px; top: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6, 32, 18, 0.78); border: 1px solid rgba(43, 213, 103, 0.4); border-radius: 7px;
  padding: 7px 12px; backdrop-filter: blur(6px);
}
.hero-media-tag span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); }
.hero-media-tag span.label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #cdeed8; }
.hero-media-foot {
  border-top: 1px solid var(--border); padding: 16px 20px; display: flex; justify-content: space-between;
  align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.hero-media-foot .foot-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.hero-media-foot .foot-title { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.hero-media-foot .foot-price { font-family: var(--font-mono); font-weight: 600; font-size: clamp(16px, 2vw, 20px); color: var(--brand-green-strong); white-space: nowrap; }
body.dark-mode .hero-media-foot .foot-price { color: var(--brand-green); }

/* ---------- Precios rápidos ---------- */
.quick-prices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.price-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: var(--surface);
  display: flex; flex-direction: column; gap: 10px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.price-card-photo {
  margin: -24px -24px 8px; aspect-ratio: 16/10; overflow: hidden; background: #ffffff;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
/* contain, no cover: ver nota en .hero-media-frame img sobre por qué. Sin
   zoom al pasar el mouse por el mismo motivo que el hero: recortaría la
   foto contra el overflow:hidden del lado donde sí toca el borde. */
.price-card-photo img { width: 100%; height: 100%; object-fit: contain; }
.price-card .price-icon {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--brand-green-strong); font-size: 16px;
}
body.dark-mode .price-card .price-icon { color: var(--brand-green); }
.price-card .price-tag { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--ink); margin-top: 4px; }
.price-card .price-value { font-family: var(--font-mono); font-weight: 600; font-size: 19px; color: var(--brand-green-strong); }
body.dark-mode .price-card .price-value { color: var(--brand-green); }
.price-card .price-copy { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.price-card .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Tabla de precios completa ---------- */
.price-table { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.price-row {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.4fr) minmax(0,auto); gap: 16px;
  align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--surface);
  transition: background-color 0.2s ease;
}
.price-row:last-of-type { border-bottom: none; }
.price-row:hover { background: var(--surface-alt); }
.price-row .row-name { display: flex; align-items: center; gap: 13px; min-width: 0; }
.price-row .row-icon {
  width: 34px; height: 34px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--brand-green-strong); font-size: 15px;
}
body.dark-mode .price-row .row-icon { color: var(--brand-green); }
.price-row .row-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.price-row .row-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.price-row .row-price { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: 16.5px; color: var(--brand-green-strong); text-align: right; white-space: nowrap; }
body.dark-mode .price-row .row-price { color: var(--brand-green); }
.price-table-foot {
  padding: 16px 22px; background: var(--surface-alt); display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; align-items: center;
}
.price-table-foot p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.price-table-foot a { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em; color: var(--brand-green-strong); font-weight: 600; }
body.dark-mode .price-table-foot a { color: var(--brand-green); }

@media (max-width: 640px) {
  .price-row { grid-template-columns: 1fr; text-align: left; gap: 8px; }
  .price-row .row-price { text-align: left; }
}

/* ---------- Qué compramos ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.material-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: var(--surface);
  display: flex; flex-direction: column; gap: 11px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.material-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.material-card .card-top { display: flex; align-items: center; justify-content: space-between; }
.material-card .card-icon {
  width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--brand-green-strong); font-size: 15px;
}
body.dark-mode .material-card .card-icon { color: var(--brand-green); }
.material-card .card-code { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-soft); }
.material-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.material-card p.copy { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Selector de material (modal) ---------- */
.selector-modal {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px;
}
.selector-modal.active { display: flex; }
.selector-overlay { position: absolute; inset: 0; background: rgba(4, 16, 9, 0.6); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s ease; }
.selector-modal.active .selector-overlay { opacity: 1; }
.selector-panel {
  position: relative; z-index: 1; width: min(720px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease;
}
.selector-modal.active .selector-panel { transform: translateY(0) scale(1); opacity: 1; }
.selector-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface-alt); color: var(--ink); font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
}
.selector-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 26px); color: var(--ink); }
.selector-head p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); max-width: 54ch; }
.selector-step-label { margin: 18px 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.selector-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-btn {
  border: 1px solid var(--border-strong); background: var(--surface-alt); color: var(--ink-muted); font-size: 13px;
  font-weight: 600; padding: 8px 14px; border-radius: 8px; transition: all 0.2s ease;
}
.mode-btn.is-active { background: var(--brand-green-strong); border-color: var(--brand-green-strong); color: #06210f; }
body.dark-mode .mode-btn.is-active { background: var(--brand-green); border-color: var(--brand-green); }
.selector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.selector-btn {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md); padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: all 0.2s ease;
}
.selector-btn:hover { border-color: var(--brand-green-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.selector-btn.is-hidden { display: none; }
.selector-btn .sel-icon { font-size: 26px; }
.selector-btn .sel-photo { width: 100%; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--surface-alt); }
.selector-btn .sel-photo img { width: 100%; height: 100%; object-fit: contain; }
.selector-btn .sel-name { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.selector-btn .sel-price { font-family: var(--font-mono); font-size: 12px; color: var(--brand-green-strong); }
body.dark-mode .selector-btn .sel-price { color: var(--brand-green); }

/* ---------- Detalle de material (tipos + otros materiales unificado) ---------- */
.material-detail { display: none; }
.material-detail.active { display: block; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px;
}
.back-link:hover { color: var(--ink); }
.type-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 24px; }
.type-tab {
  text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; transition: all 0.2s ease;
}
.type-tab.is-active { border-color: var(--brand-green-strong); background: color-mix(in srgb, var(--brand-green) 10%, var(--surface)); }
.type-tab .tab-label { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.type-tab .tab-price { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }
.type-tab.is-active .tab-price { color: var(--brand-green-strong); }
body.dark-mode .type-tab.is-active .tab-price { color: var(--brand-green); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: stretch; }
.detail-media { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.carousel-viewport { position: relative; aspect-ratio: 16/11; background: var(--surface-alt); overflow: hidden; }
/* El fondo del "letterbox" ya lo da .carousel-viewport (el abuelo), pero se
   repite aquí a propósito: así sigue funcionando aunque en el futuro
   alguien le agregue su propio fondo a .carousel-track (por ejemplo, para
   una transición), sin depender de que se quede transparente. */
.carousel-track { display: flex; width: 100%; height: 100%; background: var(--surface-alt); transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.carousel-track img { width: 100%; height: 100%; object-fit: contain; flex: none; }
.carousel-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(6, 24, 15, 0.55); color: #fff; border: none; font-size: 15px; display: inline-flex;
  align-items: center; justify-content: center; backdrop-filter: blur(3px); transition: background-color 0.2s ease;
}
.carousel-nav:hover { background: rgba(6, 24, 15, 0.8); }
.carousel-prev { left: 12px; } .carousel-next { right: 12px; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; padding: 0; transition: all 0.2s ease; }
.carousel-dot.is-active { background: #fff; width: 18px; border-radius: 4px; }
.detail-media-foot { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.detail-media-foot .foot-caption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.detail-media-foot .foot-price { font-family: var(--font-mono); font-weight: 600; font-size: 15.5px; color: var(--brand-green-strong); }
body.dark-mode .detail-media-foot .foot-price { color: var(--brand-green); }

.detail-info { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.detail-info .detail-eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-green-strong); }
body.dark-mode .detail-info .detail-eyebrow { color: var(--brand-green); }
.detail-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); margin-top: 6px; }
.spec-list { display: flex; flex-direction: column; gap: 10px; }
.spec-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); }
.spec-list li i { color: var(--brand-green-strong); font-size: 14px; line-height: 1.5; flex: none; }
body.dark-mode .spec-list li i { color: var(--brand-green); }
.detail-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.step { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .step-n { font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; color: var(--brand-green-strong); }
body.dark-mode .step .step-n { color: var(--brand-green); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.step p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Cobertura ---------- */
.coverage-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.coverage-map-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.coverage-map-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.coverage-map-head p { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.coverage-map-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-soft); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-dot-active { background: var(--brand-green-strong); }
.legend-dot-min10 { background: #d98d2b; }
.coverage-map { width: 100%; aspect-ratio: 4/3; background: var(--surface-alt); }
.map-fallback { padding: 24px; font-size: 13px; color: var(--ink-soft); text-align: center; }

.coverage-side { display: flex; flex-direction: column; gap: 14px; }
.coverage-block { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: var(--surface); }
.coverage-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.coverage-block-head p.title { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.coverage-block-head p.kpi { font-family: var(--font-mono); font-weight: 600; font-size: 21px; color: var(--brand-green-strong); }
body.dark-mode .coverage-block-head p.kpi { color: var(--brand-green); }
.coverage-block-copy { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; border-radius: 6px; font-family: var(--font-mono); font-size: 11.5px;
  padding: 6px 10px; border: 1px solid var(--border-strong); color: var(--ink-muted);
}
.chip-active { border-color: rgba(31,184,89,0.35); background: rgba(31,184,89,0.1); color: var(--brand-mid); }
body.dark-mode .chip-active { border-color: rgba(43,213,103,0.32); background: rgba(43,213,103,0.1); color: #8de5ac; }
.chip-min10 { border-color: rgba(217,141,43,0.32); background: rgba(217,141,43,0.1); color: #a5641b; }
body.dark-mode .chip-min10 { color: #e7c182; }
.coverage-rule { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.coverage-rule .rule-title { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 4px; }
.coverage-rule p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Galería general ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gallery-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; background: var(--surface-alt); }
/* Sin zoom al pasar el mouse, mismo motivo que el hero y las tarjetas de
   precios: con "contain" recortaría la foto por el lado que sí toca el
   marco. */
.gallery-card img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Sucursales ---------- */
.sucursales-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.sucursal-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: var(--surface);
  display: flex; flex-direction: column; gap: 14px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sucursal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sucursal-card.is-primary { border-color: rgba(31,184,89,0.4); }
.sucursal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sucursal-top h3 { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.sucursal-top p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.sucursal-icon { width: 32px; height: 32px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-alt); border: 1px solid var(--border); color: var(--brand-green-strong); font-size: 14px; }
body.dark-mode .sucursal-icon { color: var(--brand-green); }
.sucursal-bottom { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.sucursal-meta { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.sucursal-encargado { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.sucursal-tel { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-weight: 600; font-size: 16.5px; color: var(--brand-mid); }
.sucursal-tel.is-link:hover { color: var(--brand-green-strong); }
body.dark-mode .sucursal-tel { color: var(--brand-green); }

/* ---------- Quiénes somos ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.team-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 22px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--surface-alt);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-fallback { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--brand-green-strong); }
body.dark-mode .team-photo-fallback { color: var(--brand-green); }
.team-name { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.team-role { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--ink-soft); }
.team-contacts { display: flex; gap: 8px; margin-top: 8px; }
.team-contact-link {
  width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--brand-green-strong); transition: all 0.2s ease;
}
.team-contact-link:hover { border-color: var(--brand-green-strong); transform: translateY(-2px); }
body.dark-mode .team-contact-link { color: var(--brand-green); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 50px); align-items: start; }
.guarantee-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.guarantee-item { display: flex; gap: 12px; align-items: flex-start; }
.guarantee-item i { color: var(--brand-green-strong); font-size: 17px; line-height: 1.4; flex: none; }
body.dark-mode .guarantee-item i { color: var(--brand-green); }
.guarantee-item .g-title { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.guarantee-item .g-copy { margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

.contact-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 22px; }
.contact-card-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-wa-link { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-weight: 600; font-size: clamp(20px, 3vw, 27px); color: var(--brand-green-strong); margin-top: 8px; }
body.dark-mode .contact-wa-link { color: var(--brand-green); }
.contact-wa-link:hover { color: var(--brand-mid); }
.send-list { display: flex; flex-direction: column; gap: 11px; }
.send-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.send-list li i { color: var(--brand-green-strong); font-size: 14px; line-height: 1.5; flex: none; }
body.dark-mode .send-list li i { color: var(--brand-green); }
.contact-fine { margin: 0; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 900px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 4px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q span { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.faq-q i { color: var(--brand-green-strong); font-size: 14px; flex: none; }
body.dark-mode .faq-q i { color: var(--brand-green); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 4px; }
.faq-item.is-open .faq-a { padding-bottom: 20px; }
.faq-a p { max-width: 70ch; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* ---------- CTA de cierre ---------- */
.cta-band-inner {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 56px);
  background: linear-gradient(150deg, var(--surface-alt) 0%, var(--surface) 100%);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.cta-band-inner h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); max-width: 26ch; text-wrap: balance; }
.cta-band-inner p { max-width: 50ch; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Pie ---------- */
.site-footer { background: var(--brand-forest); color: rgba(244, 246, 244, 0.86); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 48px 0 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-mark { display: inline-flex; align-items: center; gap: 11px; }
.footer-brand-mark img { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: rgba(244,246,244,0.6); max-width: 32ch; }
.footer-social { display: flex; gap: 10px; margin-top: 2px; }
.social-link {
  width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(244,246,244,0.08); color: rgba(244,246,244,0.82); font-size: 15px; transition: all 0.2s ease;
}
.social-link:hover { background: var(--brand-green-strong); color: #06210f; transform: translateY(-2px); }
.footer-col-title { margin: 0 0 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,246,244,0.5); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(244,246,244,0.82); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--brand-green); }
.footer-tel { font-family: var(--font-mono); font-size: 14px; color: var(--brand-green); }
.footer-bottom { border-top: 1px solid rgba(244,246,244,0.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; font-family: var(--font-mono); font-size: 11px; color: rgba(244,246,244,0.45); }
.footer-bottom-inner a { color: rgba(244,246,244,0.55); }
.footer-bottom-inner a:hover { color: var(--brand-green); }

/* ---------- Botón flotante WhatsApp ---------- */
.floating-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 58px; height: 58px; border-radius: 50%;
  background: var(--brand-green-strong); color: #06210f; display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: var(--shadow-lg); animation: pulseRing 2.6s ease infinite;
  transition: transform 0.25s ease;
}
body.dark-mode .floating-whatsapp { background: var(--brand-green); }
.floating-whatsapp:hover { transform: scale(1.08); }

/* ---------- Botón flotante "volver arriba" ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 90px; z-index: 150; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
  box-shadow: var(--shadow-md); transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  opacity: 0; transform: translateY(8px); pointer-events: none;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); border-color: var(--brand-green-strong); }

/* ---------- Utilidades varias ---------- */
.mono { font-family: var(--font-mono); }
.text-accent { color: var(--brand-green-strong); }
body.dark-mode .text-accent { color: var(--brand-green); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed; top: var(--header-total-h, calc(var(--header-h) + var(--topbar-h))); left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
    padding: 12px 24px; transform: translateY(-12px);
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; overflow-y: auto;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 4px; font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 30px; }
  .floating-whatsapp { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 23px; }
  .back-to-top { right: 16px; bottom: 78px; width: 40px; height: 40px; font-size: 15px; }
}

@media (max-width: 420px) {
  .logo-subtext { display: none; }
  .nav { gap: 10px; }
}

/* ---------- Calculadora de Ganancias ---------- */
.calc-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.calc-wrapper {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 32px;
}
.calc-inputs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.calc-material-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.calc-chip-btn {
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  font-family: var(--font-body);
}
.calc-chip-btn:hover {
  border-color: var(--brand-green-strong);
  background: var(--surface-strong);
  transform: translateY(-2px);
}
.calc-chip-btn.is-active {
  border-color: var(--brand-green-strong);
  background: var(--surface-strong);
  box-shadow: 0 0 0 1px var(--brand-green-strong), 0 4px 14px rgba(31, 184, 89, 0.18);
}
body.dark-mode .calc-chip-btn.is-active {
  box-shadow: 0 0 0 1px var(--brand-green), 0 4px 16px rgba(43, 213, 103, 0.25);
}
.calc-chip-icon {
  font-size: 20px;
  line-height: 1;
}
.calc-chip-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.calc-chip-rate {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.calc-select {
  display: none;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-body);
}
.calc-weight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-weight-fields {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 6px;
  gap: 4px;
}
.calc-step-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.calc-step-btn:hover {
  background: var(--brand-green-strong);
  color: #fff;
  transform: scale(1.05);
}
body.dark-mode .calc-step-btn:hover {
  background: var(--brand-signal);
  color: var(--brand-carbon);
}
.calc-number-input {
  width: 46px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
.calc-number-input-grams {
  width: 50px;
}
.calc-number-input::-webkit-outer-spin-button,
.calc-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calc-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-right: 4px;
}
.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: var(--border);
  outline: none;
  margin: 8px 0 4px;
  cursor: pointer;
  accent-color: var(--brand-green-strong);
}
.calc-range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.calc-quick-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.quick-pill-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
}
.quick-pill {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quick-pill:hover {
  border-color: var(--brand-green-strong);
  background: var(--surface-strong);
}
.quick-pill.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
body.dark-mode .quick-pill.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* Tarjeta de resultado */
.calc-result-card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-strong) 100%);
  border: 2px solid var(--brand-green-strong);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(31, 184, 89, 0.12), var(--shadow-md);
  position: relative;
  overflow: hidden;
}
body.dark-mode .calc-result-card {
  border-color: var(--brand-green);
  box-shadow: 0 16px 48px rgba(43, 213, 103, 0.18), var(--shadow-lg);
}
.calc-result-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(43, 213, 103, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--brand-green-strong);
  background: rgba(31, 184, 89, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
body.dark-mode .result-badge {
  color: var(--brand-green);
  background: rgba(43, 213, 103, 0.15);
}
.result-material-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  margin: 14px 0 6px;
  line-height: 1.3;
}
.result-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.result-currency {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-green-strong);
}
body.dark-mode .result-currency {
  color: var(--brand-green);
}
.result-amount {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.result-formula {
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  margin: 0 0 18px;
}
.result-benefits {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin: 10px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit-item {
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.benefit-item i {
  color: var(--brand-green-strong);
  font-size: 14px;
}
body.dark-mode .benefit-item i {
  color: var(--brand-green);
}
.calc-cta-btn {
  font-size: 16px;
  padding: 16px 20px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(31, 184, 89, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.calc-disclaimer {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 12px 0 0;
  text-align: center;
}

@media (max-width: 900px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 500px) {
  .calc-material-chips {
    display: none;
  }
  .calc-select {
    display: block;
  }
  .result-amount {
    font-size: 26px;
  }
}

/* ---------- Banda de Garantías (Trust Strip) ---------- */
.trust-strip {
  padding: 24px 0;
  background: var(--surface-strong);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(63, 216, 106, 0.15);
  color: var(--brand-signal);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(63, 216, 106, 0.3);
}
.trust-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trust-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.trust-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Tarjeta Destacada "MEJOR PAGADO" ---------- */
.price-card.price-card-featured {
  border: 2px solid var(--brand-signal);
  box-shadow: 0 0 24px rgba(63, 216, 106, 0.28), var(--shadow-md);
  position: relative;
}
.featured-price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-signal);
  color: var(--brand-carbon);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  z-index: 5;
}

/* ---------- Botón de WhatsApp por Sucursal ---------- */
.sucursal-wa-btn {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-signal);
  color: var(--brand-carbon);
  border: none;
  box-shadow: 0 4px 12px rgba(63, 216, 106, 0.2);
  transition: all 0.2s ease;
  text-decoration: none;
}
.sucursal-wa-btn:hover {
  background: #34c45d;
  color: var(--brand-carbon);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(63, 216, 106, 0.35);
}

/* ---------- Enlaces de redes sociales en topbar ---------- */
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.topbar-social .social-link {
  color: var(--ink-soft);
  font-size: 15px;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
}
.topbar-social .social-link:hover {
  color: var(--brand-signal);
}
