/* ==========================================================================
   CamQuality — Sistemas de Video Vigilancia
   Hoja de estilos principal (HTML5 + CSS3, sin frameworks)
   ========================================================================== */

/* ---------- 1. Fuente (self-hosted, variable) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Marca */
  --red: #e10600;            /* botones con texto blanco (4.97:1) */
  --red-hover: #bf0500;
  --red-ink: #d1121b;        /* texto rojo sobre claro (5.5:1) */
  --red-glow: #ff4d4d;       /* acento rojo sobre oscuro (5.9:1) */
  --red-soft: #fff1f0;

  /* Neutros */
  --ink: #0b0d10;
  --graphite: #14171c;
  --graphite-2: #1c2027;
  --line-dark: rgba(255, 255, 255, 0.1);
  --text: #16191e;
  --muted: #5b6470;          /* 6:1 sobre blanco */
  --muted-dark: #a7b0bd;     /* 8.8:1 sobre --ink */
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --line: #e4e7ec;
  --wa: #25d366;

  /* Tipografía */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 3.6vw, 4.25rem);

  /* Espaciado y forma */
  --container: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow: 0 12px 32px -12px rgba(16, 24, 40, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 13, 16, 0.35);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. Reset ligero ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. Utilidades ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.section { padding-block: var(--section); }
.section--muted { background: var(--surface-2); }
.section--dark {
  background: var(--ink);
  color: var(--muted-dark);
  position: relative;
  isolation: isolate;
}
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--red-glow); }

.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--fs-h2); margin-top: 0.9rem; }
.section-head p { margin-top: 1.1rem; font-size: var(--fs-lg); color: var(--muted); }
.section--dark .section-head p { color: var(--muted-dark); }

.text-red { color: var(--red-ink); }
.hero .text-red, .section--dark .text-red { color: var(--red-glow); }

/* ---------- 5. Botones ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.25s;
}
.btn:hover { background: var(--red-hover); box-shadow: 0 10px 24px -10px rgba(225, 6, 0, 0.65); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.2rem; height: 1.2rem; }

.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.35); }
.btn--ghost:hover { background: #fff; color: var(--ink); box-shadow: none; }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { background: #000; box-shadow: var(--shadow); }

.btn--sm { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--red-ink);
}
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, height 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 24, 40, 0.4);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3a414b;
  border-radius: 8px;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 0.5rem 0.25rem;
}
.nav__phone .icon { color: var(--red-ink); }
.nav__phone:hover { color: var(--red-ink); }

.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav__toggle-bars { position: relative; width: 20px; height: 14px; }
.nav__toggle-bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 6px; }
.nav__toggle-bars span:nth-child(3) { top: 12px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Panel móvil */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: #fff;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav a.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.mobile-nav a.mobile-nav__link .icon { color: var(--muted); }
.mobile-nav a.mobile-nav__link[aria-current="page"] { color: var(--red-ink); }
.mobile-nav__cta { display: grid; gap: 0.75rem; margin-top: auto; }
body.nav-open { overflow: hidden; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #d5dae1;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(4rem, 2rem + 6vw, 7rem);
}
.hero::before {
  /* Retícula sutil tipo monitor */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px; height: 720px;
  right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.28), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #e7eaee;
}
.dot-live {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-glow);
}
.dot-live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--red-glow);
  opacity: 0;
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: var(--fs-h1);
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: var(--fs-lg);
  color: #c3c9d2;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #e3e7ec;
}
.trust-list li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-list .icon { color: var(--red-glow); }

/* Visor tipo cámara */
.cam-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--graphite);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-dark);
}
.cam-frame img { width: 100%; height: 100%; object-fit: cover; }
.cam-frame::after {
  /* Scanlines */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.cam-hud {
  position: absolute;
  inset: 16px;
  z-index: 2;
  pointer-events: none;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.cam-hud__corner { position: absolute; width: 26px; height: 26px; border-color: rgba(255, 255, 255, 0.8); border-style: solid; border-width: 0; }
.cam-hud__corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.cam-hud__corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.cam-hud__corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.cam-hud__corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.cam-hud__rec { position: absolute; top: 10px; left: 38px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.cam-hud__rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff2a2a; animation: blink 1.4s steps(2, start) infinite; }
.cam-hud__cam { position: absolute; top: 10px; right: 38px; }
.cam-hud__time { position: absolute; top: 30px; left: 38px; font-size: 0.6875rem; opacity: 0.85; }
@keyframes blink { to { visibility: hidden; } }

.hero__visual { position: relative; }
.hero__card {
  position: absolute;
  left: -28px;
  bottom: 36px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  max-width: 270px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.hero__card-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red-ink);
}
.hero__card-icon .icon { width: 24px; height: 24px; }
.hero__card strong { display: block; font-size: 0.9375rem; color: var(--ink); line-height: 1.25; }
.hero__card span { display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }

/* Métricas */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}
.stat { padding: 1.4rem 1.5rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-dark); }
.stat__value { display: block; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 0.35rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); }

/* Hero secundario (páginas internas) */
.hero--page { padding-bottom: clamp(4rem, 2rem + 5vw, 6rem); }

/* ---------- 8. Beneficios (franja) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.feature:hover { border-color: #d3d7de; box-shadow: var(--shadow); transform: translateY(-3px); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red-ink);
  margin-bottom: 1.25rem;
  transition: background-color 0.25s, color 0.25s;
}
.feature:hover .feature__icon { background: var(--red); color: #fff; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-h3); }
.feature p { margin-top: 0.6rem; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- 9. Soluciones ---------- */
.solutions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.solution {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.solution:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.solution__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.solution__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.solution:hover .solution__media img { transform: scale(1.06); }
.solution__tag {
  position: absolute;
  top: 1rem; left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(11, 13, 16, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.solution__tag .icon { width: 15px; height: 15px; color: var(--red-glow); }
.solution__body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.75rem; }
.solution__body h3 { font-size: var(--fs-h3); }
.solution__body p { margin-top: 0.7rem; color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.solution__body .link-arrow { margin-top: 1.25rem; }

/* ---------- 10. Por qué / split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: center;
}
.split h2 { font-size: var(--fs-h2); margin-top: 0.9rem; }
.split__lead { margin-top: 1.1rem; font-size: var(--fs-lg); color: var(--muted); }
.section--dark .split__lead { color: var(--muted-dark); }

.check-list { display: grid; gap: 1.5rem; margin-top: 2.25rem; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; align-items: start; }
.check-list__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red-ink);
}
.section--dark .check-list__icon { background: rgba(255, 77, 77, 0.12); color: var(--red-glow); }
.check-list__icon .icon { width: 26px; height: 26px; }
.check-list h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.check-list p { margin-top: 0.35rem; color: var(--muted); font-size: var(--fs-sm); }
.section--dark .check-list p { color: var(--muted-dark); }

/* Collage de imágenes */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  aspect-ratio: 1 / 1;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}
.collage__a, .collage__b { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.collage__a { grid-column: 1 / 9; grid-row: 1 / 9; }
.collage__b { grid-column: 6 / 13; grid-row: 6 / 13; border: 6px solid #fff; }
.section--dark .collage__b { border-color: var(--ink); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__badge {
  position: absolute;
  left: 4%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.collage__badge strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.collage__badge .icon { width: 28px; height: 28px; color: var(--red-glow); }

/* ---------- 11. Marcas ---------- */
.brands { padding-block: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); border-block: 1px solid var(--line); background: #fff; }
.brands__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.brands__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); max-width: 16rem; line-height: 1.5; }
.brands__list { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 3rem; margin: 0; padding: 0; list-style: none; }
.brands__list li {
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9aa1ab;
  transition: color 0.2s;
}
.brands__list li:hover { color: var(--ink); }

/* ---------- 12. Proceso ---------- */
.steps {
  counter-reset: step;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--line), var(--line) 50%, transparent 50%) 0 0 / 12px 2px repeat-x;
}
.step { position: relative; text-align: center; padding-inline: 0.25rem; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ink);
  box-shadow: 0 0 0 8px var(--surface-2);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.section:not(.section--muted) .step__num { box-shadow: 0 0 0 8px #fff; }
.step:hover .step__num, .step--highlight .step__num { background: var(--red); border-color: var(--red); color: #fff; }
.step h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.step p { margin-top: 0.45rem; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 13. Testimonios ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.review {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--graphite);
  border: 1px solid var(--line-dark);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.review:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-3px); }
.review__stars { display: flex; gap: 3px; color: #ffb020; }
.review__stars .icon { width: 18px; height: 18px; }
.review blockquote { flex: 1; margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.7; color: #e3e7ec; }
.review figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}
.review__name { display: block; font-weight: 700; color: #fff; font-style: normal; }
.review__place { display: block; font-size: var(--fs-xs); color: var(--muted-dark); }
.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  color: #5ee08e;
  font-size: 0.75rem;
  font-weight: 700;
}
.review__verified .icon { width: 14px; height: 14px; }
.section--dark.reviews-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(225, 6, 0, 0.14), transparent 70%);
}

/* ---------- 14. FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-layout .section-head .btn { margin-top: 2rem; }
.faq { display: grid; gap: 0.85rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq__item[open] { border-color: #d3d7de; box-shadow: var(--shadow); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: background-color 0.2s, transform 0.3s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--red); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* ---------- 15. Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
.contact h2 { font-size: var(--fs-h2); margin-top: 0.9rem; color: #fff; }
.contact__lead { margin-top: 1.1rem; font-size: var(--fs-lg); color: var(--muted-dark); }

.channels { display: grid; gap: 0.85rem; margin-top: 2.25rem; padding: 0; list-style: none; }
.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
a.channel:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); transform: translateX(3px); }
.channel__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: rgba(255, 77, 77, 0.12); color: var(--red-glow); }
.channel__icon--wa { background: rgba(37, 211, 102, 0.14); color: var(--wa); }
.channel__icon .icon { width: 24px; height: 24px; }
.channel__label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); }
.channel__value { display: block; font-weight: 700; font-size: 1.0625rem; word-break: break-word; }
.channel > .icon { margin-left: auto; color: var(--muted-dark); }

/* Formulario */
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 1.375rem; }
.form-card__sub { margin-top: 0.4rem; color: var(--muted); font-size: var(--fs-sm); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; margin-top: 1.75rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.field .req { color: var(--red-ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.input {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #8a929d; }
.input:hover { border-color: #cfd4db; }
.input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(11, 13, 16, 0.08); }
.input[aria-invalid="true"] { border-color: var(--red-ink); background: #fff; }
.field__error { min-height: 0; font-size: 0.8125rem; font-weight: 600; color: var(--red-ink); }
.field__error:empty { display: none; }

/* Selector segmentado de tipo de inmueble */
.segmented { border: 0; margin: 0; padding: 0; min-width: 0; }
.segmented legend { padding: 0; margin-bottom: 0.4rem; }
.segmented__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.segmented label .icon { width: 22px; height: 22px; color: var(--muted); transition: color 0.2s; }
.segmented label:hover { border-color: #cfd4db; }
.segmented input:checked + label { border-color: var(--red); background: var(--red-soft); color: var(--red-ink); }
.segmented input:checked + label .icon { color: var(--red-ink); }
.segmented input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }

.form__actions { grid-column: 1 / -1; display: grid; gap: 0.75rem; margin-top: 0.4rem; }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #06341a; }
.btn--wa:hover { background: #1fb957; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.7); }
.form__note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted); text-align: center; }
.form__note a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form__status { grid-column: 1 / -1; font-size: 0.875rem; font-weight: 600; }
.form__status:empty { display: none; }
.form__status--ok { color: #0d7a3a; }

/* ---------- 16. Banda CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--red);
  color: #fff;
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -120px; top: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.08);
}
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); color: #fff; max-width: 22ch; }
.cta-band p { margin-top: 0.6rem; color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.cta-band .btn--light:hover { background: var(--ink); color: #fff; box-shadow: none; }
.cta-band .btn--ghost:hover { color: var(--red-ink); }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand img { height: 44px; width: auto; }
.footer__brand p { margin-top: 1.25rem; max-width: 34ch; }
.footer__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer__links { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-flex; align-items: center; gap: 0.5rem; padding-block: 0.15rem; transition: color 0.2s; }
.footer__links a:hover { color: #fff; }
.footer__links .icon { width: 18px; height: 18px; color: var(--red-glow); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding-block: 1.5rem; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); }

/* ---------- 18. WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 60px;
  padding: 0 1.25rem 0 1.1rem;
  border-radius: 999px;
  background: var(--wa);
  color: #06341a;
  font-weight: 800;
  font-size: 0.9375rem;
  box-shadow: 0 14px 30px -10px rgba(6, 52, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s linear 0.35s, box-shadow 0.2s;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s, box-shadow 0.2s; }
.wa-float:hover { box-shadow: 0 18px 36px -10px rgba(6, 52, 26, 0.7); transform: translateY(-2px); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- 19. Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 20. 404 ---------- */
.not-found { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; }
.not-found h1 { font-size: clamp(4rem, 3rem + 6vw, 8rem); color: #fff; }
.not-found p { margin: 1rem auto 2rem; max-width: 40ch; font-size: var(--fs-lg); }
.not-found .hero__ctas { justify-content: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav__menu, .nav__phone { display: none; }
  .nav__toggle { display: inline-flex; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps::before { display: none; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { position: static; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 34px; }
  .hero__grid, .split, .contact { grid-template-columns: 1fr; }
  .hero__content { text-align: left; }
  .hero__visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero__card { left: 12px; bottom: 12px; }
  .solutions, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solutions > :last-child:nth-child(odd), .reviews > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .solutions > :last-child:nth-child(odd) .solution__media { aspect-ratio: 16 / 7; }
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 52px 1fr; gap: 0 1.1rem; }
  .feature__icon { margin-bottom: 0; grid-row: span 2; }
  .split--reverse .split__media { order: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav__actions .btn { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-dark); }
  .stat { display: flex; align-items: baseline; justify-content: space-between; text-align: left; padding: 1rem 1.25rem; }
  .stat__label { margin-top: 0; }
  .solutions, .reviews { grid-template-columns: 1fr; }
  .solutions > :last-child:nth-child(odd) .solution__media { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 1.1rem; text-align: left; padding-bottom: 1.75rem; }
  .step__num { margin: 0; grid-row: span 2; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 64px; bottom: 6px; width: 2px; background: var(--line); }
  .step h3 { align-self: end; padding-top: 0.35rem; }
  .form { grid-template-columns: 1fr; }
  .brands__inner { flex-direction: column; align-items: flex-start; }
  .brands__list { gap: 0.75rem 2rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .wa-float { width: 60px; padding: 0; justify-content: center; }
  .wa-float__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .collage__badge { left: 0; }
}

@media (max-width: 380px) {
  .segmented__options { grid-template-columns: 1fr; }
  .segmented label { flex-direction: row; justify-content: center; }
}

@media (hover: none) {
  .solution:hover, .feature:hover, .review:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .mobile-nav, .form-card, .hero::before, .hero::after { display: none !important; }
  .hero, .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .section--dark h2, .section--dark h3 { color: #000 !important; }
}

/* ---------- Complementos ---------- */
.split--top { align-items: start; }
.check-list--cards { margin-top: 0; gap: 1rem; }
.check-list--cards li {
  padding: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}
.section--dark .split h2 { color: #fff; }
.section--dark .form-card h3 { color: var(--ink); }
.section--dark + .site-footer, main + .site-footer { border-top: 1px solid var(--line-dark); }

@media (max-width: 640px) {
  .hero__card { position: relative; left: auto; bottom: auto; max-width: none; margin: -2.25rem 1rem 0; }
}

/* ==========================================================================
   Calculadora de almacenamiento
   ========================================================================== */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(1.25rem, 0.8rem + 2vw, 2rem);
  align-items: start;
}
.calc__noscript { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface-2); }
.calc__noscript a { color: var(--red-ink); font-weight: 700; text-decoration: underline; }

.calc__panel { display: grid; gap: 1.25rem; min-width: 0; }
.calc__block {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.calc__block-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1rem; margin-bottom: 1.25rem; }
.calc__block-head h3 { display: inline-flex; align-items: center; gap: 0.65rem; font-size: 1.2rem; }
.calc__block-head p { font-size: var(--fs-sm); color: var(--muted); }
.calc__step {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0;
}

/* Grupos de cámaras */
.calc__groups { display: grid; gap: 0.85rem; }
.calc-group {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.calc-group__title {
  float: left;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-group__remove {
  position: absolute;
  top: 0.55rem; right: 0.55rem;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.calc-group__remove:hover { background: var(--red-soft); color: var(--red-ink); }
.calc-group__remove[hidden] { display: none; }
.calc-group__remove .icon { width: 18px; height: 18px; }

.calc-group__grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 0.75rem;
}
.calc__field { display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.calc__field[hidden] { display: none; }
.calc__field > label, .calc__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.calc__field .input { min-height: 46px; padding: 0.6rem 0.75rem; background: #fff; font-size: 0.9375rem; }
.calc-group .calc__field--bitrate { grid-column: span 2; }

/* Stepper de cámaras */
.stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.stepper:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 13, 16, 0.08); }
.calc__field .stepper .input { min-height: 43px; border: 0; border-radius: 0; text-align: center; font-weight: 700; padding-inline: 0.25rem; -moz-appearance: textfield; appearance: textfield; }
.stepper .input:focus { box-shadow: none; }
.stepper .input::-webkit-outer-spin-button, .stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn { border: 0; background: transparent; font-size: 1.25rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: background-color 0.2s; }
.stepper__btn:hover { background: var(--surface-2); }

/* Interruptor de audio */
.switch { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 46px; cursor: pointer; font-weight: 600; font-size: 0.9375rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: #747c88; transition: background-color 0.2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease); }
.switch input:checked + .switch__track { background: var(--red); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--red); outline-offset: 2px; }

/* Bitrate calculado */
.calc__bitrate {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.calc__bitrate-hint { font-size: 0.8125rem; color: var(--muted); }

.calc__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.85rem;
  min-height: 50px;
  border: 1.5px dashed #b9c0c9;
  border-radius: var(--radius);
  background: transparent;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.calc__add:hover { border-color: var(--red); color: var(--red-ink); background: var(--red-soft); }

/* Modo de cálculo */
.calc__mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.calc__mode input { position: absolute; opacity: 0; pointer-events: none; }
.calc__mode label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.calc__mode label .icon { width: 26px; height: 26px; color: var(--muted); }
.calc__mode strong { display: block; font-size: 0.9375rem; color: var(--ink); line-height: 1.3; }
.calc__mode small { display: block; font-size: 0.8125rem; color: var(--muted); }
.calc__mode label:hover { border-color: #cfd4db; }
.calc__mode input:checked + label { border-color: var(--red); background: var(--red-soft); }
.calc__mode input:checked + label .icon { color: var(--red-ink); }
.calc__mode input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }

.calc__plan { display: grid; gap: 1.25rem; }
.calc__field--range label { display: flex; justify-content: space-between; align-items: baseline; }
.calc__field--range output { font-size: 1rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__field--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.calc__field--pair > div { display: grid; gap: 0.35rem; }
.calc__field--pair label { font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
.calc__inline { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.calc__field .calc__inline .input { width: 110px; font-weight: 700; }
.calc__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  min-width: 48px;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.chip:hover { border-color: #cfd4db; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.calc input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--line); }
.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
.calc input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--red); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }

/* Panel de resultado */
.calc__result {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--muted-dark);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  overflow: hidden;
}
.calc__result::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px; right: -140px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.3), transparent 65%);
}
.calc__result-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-glow); }
.calc__hero { display: grid; gap: 0.2rem; }
.calc__hero-label { font-size: var(--fs-sm); font-weight: 600; color: #d5dae1; }
.calc__hero-value { font-size: clamp(2.4rem, 1.9rem + 2vw, 3.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; color: #fff; font-variant-numeric: tabular-nums; }
.calc__hero-sub { font-size: 0.875rem; color: var(--muted-dark); }

.calc__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line-dark); }
.calc__stats > div { padding: 0.85rem 1rem; background: var(--graphite); }
.calc__stats dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-dark); }
.calc__stats dd { margin-top: 0.15rem; font-size: 1.125rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }

.calc__suggest {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 77, 77, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 77, 77, 0.08);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e3e7ec;
}
.calc__suggest[hidden] { display: none; }
.calc__suggest .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--red-glow); }
.calc__suggest strong { color: #fff; }
.calc__note { font-size: 0.75rem; line-height: 1.55; color: var(--muted-dark); }

@media (max-width: 1180px) {
  .calc-group__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc-group .calc__field--bitrate { grid-column: span 1; }
}
@media (max-width: 1080px) {
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .calc-group__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calc-group .calc__field--bitrate { grid-column: span 2; }
}
@media (max-width: 760px) {
  .calc-group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-group .calc__field--bitrate { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .calc__mode { grid-template-columns: 1fr; }
  .calc__field--pair { grid-template-columns: 1fr; }
  .calc__field .calc__inline .input { width: 100%; }
}

/* Navegación con 6 enlaces: evitar saltos de línea */
.nav__link { white-space: nowrap; }
@media (max-width: 1279px) { .nav__phone { display: none; } }

@media (max-width: 520px) {
  .calc-group .calc__field .input { font-size: 0.875rem; padding-inline: 0.6rem; }
}

/* Capacidad personalizada */
.calc__custom { grid-column: 1 / -1; display: grid; gap: 0.35rem; }
.calc__custom[hidden] { display: none; }
.calc__custom > label { font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
.calc__custom-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 0.5rem; }
