/* ================================================================
   JOHN DALÁN — INDUSTRIAL RACING SYSTEM 2027
   CSS puro · sin dependencias · responsive · motion-safe
   ================================================================ */

/* ── TOKENS / TALLER CONTROL ─────────────────────────────────── */
:root {
  color-scheme: dark;
  --red: #d72323;
  --red-hot: #ff3434;
  --red-deep: #820b0b;
  --black: #08080a;
  --dark: #0f0f13;
  --panel: #15151a;
  --panel-2: #1b1b21;
  --white: #f4f3ed;
  --muted: #a2a2aa;
  --subtle: #6e6e78;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.19);
  --red-line: rgba(215, 35, 35, 0.46);
  --red-glow: rgba(215, 35, 35, 0.28);
  --nav-bg: rgba(8, 8, 10, 0.9);
  --topbar-bg: #08080a;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-rapid: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --nav-h: 78px;
  --cut: 12px;
  --slash: "///";
  --shadow-hard: 8px 8px 0 rgba(93, 0, 0, 0.72);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.42);
  --honey-dark: rgba(215, 35, 35, 0.12);
  --honey-ink: rgba(215, 35, 35, 0.16);
  --honey-line: rgba(215, 35, 35, 0.2);
  --honey-light: rgba(255, 255, 255, 0.042);
  --chamfer: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

:root[data-theme="light"] {
  color-scheme: light;
  --black: #eceef1;
  --dark: #f7f7f8;
  --panel: #ffffff;
  --panel-2: #eef0f3;
  --white: #101114;
  --muted: rgba(15, 17, 20, 0.7);
  --subtle: rgba(15, 17, 20, 0.48);
  --line: rgba(8, 8, 10, 0.11);
  --line-strong: rgba(8, 8, 10, 0.22);
  --nav-bg: rgba(247, 247, 248, 0.91);
  --topbar-bg: #f7f7f8;
  --shadow-hard: 8px 8px 0 rgba(120, 0, 0, 0.18);
  --shadow-soft: 0 20px 55px rgba(8, 8, 10, 0.1);
  --honey-dark: rgba(215, 35, 35, 0.1);
  --honey-ink: rgba(215, 35, 35, 0.12);
  --honey-light: rgba(8, 8, 10, 0.04);
}

/* ── RESET / MATERIAL BASE ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  overflow-x: hidden;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--black);
  background-size: 64px 64px;
  color: var(--white);
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
iframe,
select {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--red);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #08080a;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #08080a;
  background: var(--red);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

/* Grano industrial muy leve, sin imágenes externas. */
body::after {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.022;
  pointer-events: none;
}

#scroll-progress {
  position: fixed;
  z-index: 2200;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff3b3b 0%, var(--red) 55%, #6f0000 100%);
  box-shadow: 0 0 18px var(--red);
  transition: width 0.08s linear;
}

/* ── TIPOGRAFÍA / HUD ───────────────────────────────────────── */
.mono,
.tag-line,
.tag-badge,
.hero-telemetry,
.stat .lbl,
.ctr-lbl,
.cfield label,
.cotizador-summary,
.svc-category,
.svc-media-badge,
.pcard-tag,
.social-handle,
.footer-heading,
.fci .fl,
.fcopy,
.flinks,
.cat-counter,
.footer-map-overlay-badge {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
}

.tag-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--red);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.3;
}

.tag-line::before {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--red);
  box-shadow: 9px 0 0 rgba(215, 35, 35, 0.28);
  content: "";
}

.display-title {
  margin-top: 0.7rem;
  color: var(--white);
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: clamp(3.65rem, 7.6vw, 8.6rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.84;
  text-transform: uppercase;
  text-wrap: balance;
}

.display-title .red {
  color: var(--red);
}

.display-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--white) 55%, transparent);
}

.tag-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 34px;
  padding: 0.45rem 2.5rem 0.45rem 0.8rem;
  border: 1px solid var(--red-line);
  background: rgba(215, 35, 35, 0.1);
  color: var(--white);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.tag-badge::after {
  position: absolute;
  right: 0.5rem;
  color: var(--red);
  content: var(--slash);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: -0.12em;
}

.tag-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: status-pulse 1.8s ease-in-out infinite;
}

/* ── BOTONES DE CORTE / HARD SHADOW ─────────────────────────── */
.btn-primary,
.btn-outline,
.nav-cta,
.mnav-cta,
.svc-action-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: color 0.2s ease, background 0.2s ease, transform 0.22s var(--ease-out), filter 0.22s ease;
}

.btn-primary {
  padding: 1rem 1.8rem;
  border-color: var(--red);
  background: var(--red);
  box-shadow: var(--shadow-hard);
  color: #fff;
  filter: drop-shadow(0 0 0 transparent);
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  background: var(--red-hot);
  box-shadow: 11px 11px 0 rgba(93, 0, 0, 0.76);
}

.btn-outline {
  padding: 1rem 1.8rem;
  border-color: var(--line-strong);
  background: rgba(8, 8, 10, 0.66);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.44);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  transform: translate(-3px, -3px);
  border-color: var(--red);
  background: rgba(215, 35, 35, 0.12);
  box-shadow: 9px 9px 0 rgba(92, 0, 0, 0.7);
  color: #fff;
}

.btn-primary:active,
.btn-outline:active,
.nav-cta:active,
.svc-action-link:active {
  transform: translate(2px, 2px);
}

/* ── TOP BAR / NAV ──────────────────────────────────────────── */
#topbar {
  position: relative;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0.48rem var(--gutter);
  border-bottom: 1px solid rgba(215, 35, 35, 0.3);
  background: var(--topbar-bg);
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#topbar::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 18%;
  height: 2px;
  background: var(--red);
  content: "";
}

.topbar-left,
.topbar-right,
.topbar-status {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 1.5rem;
}

.topbar-left > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-left svg {
  flex: 0 0 auto;
  color: var(--red);
}

.topbar-status {
  gap: 0.5rem;
}

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31d46f;
  box-shadow: 0 0 10px rgba(49, 212, 111, 0.8);
}

.topbar-right {
  gap: 1.2rem;
}

.topbar-right a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.topbar-right a:hover {
  transform: translateY(-1px);
  color: var(--red);
}

.topbar-right .tb-badge {
  padding: 0.34rem 0.7rem;
  background: var(--red);
  box-shadow: 4px 4px 0 #4b0000;
  color: #fff;
  font-size: 0.54rem;
}

#nav {
  position: sticky;
  z-index: 500;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: height 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease;
}

#nav::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 16px var(--red);
  content: "";
  transition: width 0.35s var(--ease-out);
}

#nav.on {
  height: 68px;
  background: color-mix(in srgb, var(--nav-bg) 96%, #000);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

#nav.on::after {
  width: 22%;
}

.nav-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo {
  width: auto;
  max-width: min(210px, 48vw);
  height: 62px;
  object-fit: contain;
  transition: height 0.25s var(--ease-out), transform 0.2s ease, filter 0.2s ease;
}

#nav.on .nav-logo {
  height: 53px;
}

.nav-logo:hover {
  transform: scale(1.025);
  filter: contrast(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-links a {
  position: relative;
  padding: 0.68rem 0.82rem;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a::before {
  position: absolute;
  right: 0.8rem;
  bottom: 0.35rem;
  left: 0.8rem;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.025);
  color: var(--white);
}

.nav-links a:hover::before {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-cta {
  min-height: 42px;
  padding: 0.72rem 1.15rem;
  background: var(--red);
  box-shadow: 5px 5px 0 #4b0000;
  color: #fff;
}

.nav-cta:hover {
  transform: translate(-2px, -2px);
  background: var(--red-hot);
  box-shadow: 7px 7px 0 #3c0000;
}

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--white);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.theme-toggle .sun {
  display: none;
}

.theme-toggle .moon {
  display: block;
}

:root[data-theme="light"] .theme-toggle .sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle .moon {
  display: none;
}

.nav-toggle {
  display: none;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

#mobile-nav {
  position: fixed;
  z-index: 480;
  inset: var(--nav-h) 0 0;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem var(--gutter);
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(215, 35, 35, 0.1), transparent 30%),
    var(--nav-bg);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}

#mobile-nav.open {
  opacity: 1;
  pointer-events: all;
  transform: none;
}

.mnav-list {
  display: flex;
  flex-direction: column;
}

#mobile-nav a.mnav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

#mobile-nav a.mnav-item span {
  color: var(--red);
  font-family: "Bebas Neue", sans-serif;
}

#mobile-nav a.mnav-item:hover {
  padding-left: 0.65rem;
  color: var(--red);
}

#mobile-nav a.mnav-cta {
  margin-top: 1.5rem;
  padding: 1.15rem 1rem;
  background: var(--red);
  box-shadow: var(--shadow-hard);
  color: #fff;
  font-size: 0.7rem;
}

.mnav-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── HERO SPLIT / DIAGONAL VIDEO ────────────────────────────── */
#hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  min-height: max(720px, calc(100svh - var(--nav-h)));
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--black) 0 50%, transparent 50%),
    radial-gradient(circle at 24% 44%, rgba(215, 35, 35, 0.11), transparent 32%),
    var(--black);
}

#hero::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 52%;
  --honey-s: 40px;
  --honey-c: transparent, rgba(215, 35, 35, 0.2) 0.5deg 119.5deg, transparent 120deg;
  --honey-g1: conic-gradient(from 60deg at 56.25% calc(425% / 6), var(--honey-c));
  --honey-g2: conic-gradient(from 180deg at 43.75% calc(425% / 6), var(--honey-c));
  --honey-g3: conic-gradient(from -60deg at 50% calc(175% / 12), var(--honey-c));
  background:
    var(--honey-g1),
    var(--honey-g1) var(--honey-s) calc(1.73 * var(--honey-s)),
    var(--honey-g2),
    var(--honey-g2) var(--honey-s) calc(1.73 * var(--honey-s)),
    var(--honey-g3) var(--honey-s) 0,
    var(--honey-g3) 0 calc(1.73 * var(--honey-s)) transparent;
  background-size: calc(2 * var(--honey-s)) calc(3.46 * var(--honey-s));
  content: "";
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 92%);
  mask-image: linear-gradient(90deg, #000, transparent 92%);
  pointer-events: none;
}

#hero::after {
  position: absolute;
  z-index: 2;
  top: -20%;
  left: 47%;
  width: 7px;
  height: 140%;
  background: linear-gradient(transparent, var(--red) 18%, var(--red) 82%, transparent);
  box-shadow: 0 0 24px var(--red);
  content: "";
  opacity: 0.72;
  transform: rotate(9deg);
  transform-origin: center;
  pointer-events: none;
}

.hv {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  background: #030304;
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
}

.hv::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.48);
  content: "";
  pointer-events: none;
}

.hv img.hv-thumb,
.hv iframe.hv-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.18) brightness(0.8);
}

.hgrad {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 53%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.62), transparent 38%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.8), transparent 36%, rgba(8, 8, 10, 0.18));
  pointer-events: none;
}

.hgrad::after {
  position: absolute;
  inset: -15% -10%;
  background: repeating-linear-gradient(112deg, transparent 0 86px, rgba(215, 35, 35, 0.2) 87px 89px, transparent 90px 178px);
  content: "";
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
  mix-blend-mode: screen;
}

:root[data-theme="light"] .hgrad {
  background:
    linear-gradient(90deg, rgba(236, 238, 241, 0.68), transparent 40%),
    linear-gradient(0deg, rgba(236, 238, 241, 0.45), transparent 45%);
}

.hero-hud-lines {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.hud-cross {
  position: absolute;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--red-line);
  border-left: 2px solid var(--red-line);
}

.hud-cross::after {
  position: absolute;
  top: 7px;
  left: 24px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--red-line), transparent);
  content: "";
}

.hud-tl {
  top: 1.7rem;
  left: 1.7rem;
}

.hud-tr {
  top: 1.7rem;
  right: 1.7rem;
  transform: rotate(90deg);
}

.hud-bl {
  bottom: 1.7rem;
  left: 1.7rem;
  transform: rotate(-90deg);
}

.hud-br {
  right: 1.7rem;
  bottom: 1.7rem;
  transform: rotate(180deg);
}

.hcontent {
  position: relative;
  z-index: 5;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  max-width: 860px;
  padding: clamp(5rem, 9vh, 8rem) clamp(2rem, 4vw, 5rem) clamp(4.5rem, 8vh, 7rem) var(--gutter);
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.6rem, 4vh, 2.8rem);
  flex-wrap: wrap;
}

.hero-telemetry {
  padding-left: 0.85rem;
  border-left: 2px solid var(--red);
  color: var(--subtle);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.htitle {
  max-width: 840px;
  margin: 0;
  color: var(--white);
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: clamp(5rem, 9vw, 10.4rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 0.77;
  text-transform: uppercase;
}

.htitle .red {
  color: var(--red);
}

.htitle .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.hero-manifesto {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-manifesto::before {
  color: var(--red);
  content: var(--slash);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.15em;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: end;
  margin-top: clamp(1.8rem, 4vh, 3rem);
}

.hdesc {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.hstats {
  display: flex;
  gap: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--red);
}

.stat {
  min-width: 78px;
}

.stat .num {
  color: var(--white);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 4.3vw, 4.6rem);
  line-height: 0.82;
}

.stat .num span {
  color: var(--red);
}

.stat .lbl {
  margin-top: 0.55rem;
  color: var(--subtle);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

/* ── BRAND TICKER ───────────────────────────────────────────── */
.ticker {
  position: relative;
  z-index: 8;
  overflow: hidden;
  padding: 0.78rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid #5d0909;
  background: var(--red);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.42);
  color: #08080a;
  clip-path: polygon(0 8px, 2vw 0, 100% 0, 100% calc(100% - 8px), 98vw 100%, 0 100%);
}

.ticker::before,
.ticker::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 7vw;
  content: "";
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--red), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--red), transparent);
}

.ticker-t {
  display: flex;
  width: max-content;
  animation: ticker-roll 42s linear infinite;
  will-change: transform;
}

.ticker-t:hover {
  animation-play-state: paused;
}

.ticker-set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.ti {
  position: relative;
  display: flex;
  align-items: center;
  min-width: max-content;
  padding: 0 1.45rem;
}

.ti::before,
.ti::after {
  color: rgba(8, 8, 10, 0.65);
  content: var(--slash);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.18em;
}

.ti::after {
  margin-left: 1.45rem;
}

.ti span {
  color: #08080a;
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── SECCIONES / BORDES DIAGONALES ──────────────────────────── */
section {
  position: relative;
  padding: clamp(5.5rem, 8vw, 9rem) var(--gutter);
}

.section-head,
.services-head,
.cat-head,
.contact-intro,
.about-body,
.social-container {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head.center {
  text-align: center;
}

.section-head.center .tag-line {
  justify-content: center;
}

.section-head.center .tag-line::before {
  display: none;
}

.section-head.center .display-title {
  margin-top: 1rem;
}

.section-head.center > p {
  max-width: 620px;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

/* ── EL TALLER ──────────────────────────────────────────────── */
#taller {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 15%, rgba(215, 35, 35, 0.11), transparent 24%),
    linear-gradient(120deg, transparent 0 72%, rgba(215, 35, 35, 0.035) 72% 73%, transparent 73%),
    var(--dark);
}

#taller::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 74%, rgba(215, 35, 35, 0.11) 74.1% 74.25%, transparent 74.35%),
    linear-gradient(115deg, transparent 0 81%, rgba(255, 255, 255, 0.035) 81.1% 81.2%, transparent 81.3%);
  content: "";
  pointer-events: none;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  gap: clamp(3.5rem, 7vw, 7.5rem);
  align-items: center;
}

.about-img-wrap {
  position: relative;
  padding: 1.2rem 0 0 1.2rem;
}

.about-img-wrap::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 65%;
  height: 72%;
  border: 1px solid var(--red-line);
  background: rgba(215, 35, 35, 0.05);
  content: "";
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
}

.about-img-wrap::after {
  position: absolute;
  z-index: 4;
  right: -0.4rem;
  bottom: 2.6rem;
  color: rgba(255, 255, 255, 0.22);
  content: "JD / R8";
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}

.vwrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  background: #030304;
  box-shadow: var(--shadow-soft);
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.vwrap img.vw-thumb,
.vwrap iframe.vw-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.15) brightness(0.88);
}

.vplay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  transition: background 0.25s ease;
}

.vplay:hover {
  background: rgba(215, 35, 35, 0.18);
}

.vpc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--red);
  box-shadow: 9px 9px 0 rgba(66, 0, 0, 0.84), 0 0 0 1px rgba(215, 35, 35, 0.4);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform 0.3s var(--ease-out), background 0.2s ease;
}

.vplay:hover .vpc {
  transform: scale(1.08) rotate(-2deg);
  background: var(--red-hot);
}

.vpc svg {
  margin-left: 4px;
}

.vwrap.playing .vplay {
  display: none;
}

.about-stat-badge {
  position: absolute;
  z-index: 5;
  right: -1.5rem;
  bottom: -2.2rem;
  min-width: 170px;
  padding: 1.35rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--red);
  box-shadow: 9px 9px 0 #4b0000, 0 22px 50px rgba(0, 0, 0, 0.45);
  color: #fff;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.about-stat-badge::after {
  position: absolute;
  right: 0.55rem;
  bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  content: var(--slash);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: -0.12em;
}

.about-stat-badge .n {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.7rem;
  line-height: 0.85;
}

.about-stat-badge .l {
  display: block;
  margin-top: 0.4rem;
  font-family: "DM Mono", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-body {
  padding-left: 0;
}

.about-body .display-title {
  margin: 1rem 0 1.8rem;
}

.about-body > p {
  max-width: 590px;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 2.3rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(8, 8, 10, 0.66);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.ctr {
  position: relative;
  min-width: 0;
  padding: 1.45rem 0.85rem;
  border-right: 1px solid var(--line);
  text-align: center;
}

.ctr:last-child {
  border-right: 0;
}

.ctr-num {
  color: var(--white);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.35rem, 3.6vw, 3.7rem);
  line-height: 0.9;
  white-space: nowrap;
}

.ctr-num span {
  color: var(--red);
}

.ctr-lbl {
  display: block;
  margin-top: 0.55rem;
  color: var(--subtle);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

/* ── SERVICIOS: BENTO + STICKY STACK ────────────────────────── */
#servicios {
  overflow: clip;
  padding-bottom: clamp(6rem, 10vw, 11rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(215, 35, 35, 0.09), transparent 24%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--black);
  background-size: auto, 72px 72px, 72px 72px, auto;
}

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.services-head > p {
  max-width: 520px;
  padding-left: 1.25rem;
  border-left: 2px solid var(--red);
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.svc-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: min(100%, 1440px);
  margin-inline: auto;
}

.svc-card {
  --stack-step: 0;
  position: sticky;
  z-index: calc(10 + var(--stack-step));
  top: calc(100px + var(--stack-step) * 17px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--red);
  background:
    linear-gradient(135deg, rgba(215, 35, 35, 0.065), transparent 34%),
    linear-gradient(110deg, var(--panel), var(--dark));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46), 9px 9px 0 rgba(0, 0, 0, 0.22);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.svc-card:nth-child(1) { --stack-step: 0; }
.svc-card:nth-child(2) { --stack-step: 1; }
.svc-card:nth-child(3) { --stack-step: 2; }
.svc-card:nth-child(4) { --stack-step: 3; }
.svc-card:nth-child(5) { --stack-step: 4; }
.svc-card:nth-child(6) { --stack-step: 5; }

.svc-card::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 28px 28px, transparent 0 18px, rgba(215, 35, 35, 0.11) 19px 20px, transparent 21px),
    radial-gradient(circle at 0 50px, transparent 0 18px, rgba(215, 35, 35, 0.11) 19px 20px, transparent 21px);
  background-size: 56px 100px;
  content: "";
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 62%, #000);
  mask-image: linear-gradient(90deg, transparent 0 62%, #000);
  pointer-events: none;
}

.svc-card::after {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.13);
  content: var(--slash);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.4rem;
  letter-spacing: -0.18em;
  line-height: 1;
  pointer-events: none;
}

.svc-card:hover {
  border-color: var(--red-line);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.55), 12px 12px 0 rgba(82, 0, 0, 0.55);
}

.svc-category {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.82rem clamp(1.5rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.34);
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.svc-category::after {
  position: absolute;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.17);
  content: "JD // SERVICE MODULE";
  letter-spacing: 0.14em;
}

.svc-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 78px minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(1.6rem, 3.3vw, 3.5rem);
  align-items: start;
  padding: clamp(2rem, 3.7vw, 3.5rem);
}

.svc-number {
  color: transparent;
  font-family: "Bebas Neue", sans-serif;
  font-size: 5.4rem;
  line-height: 0.82;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  user-select: none;
  transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease;
}

.svc-card:hover .svc-number {
  color: var(--red);
  -webkit-text-stroke-color: var(--red);
}

.svc-content-col {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.svc-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.65rem;
}

.svc-ico-box {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--red-line);
  background: var(--red);
  box-shadow: 5px 5px 0 #4b0000;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.svc-ico-box svg {
  filter: brightness(0) invert(1);
}

.svc-title {
  color: var(--white);
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}

.svc-items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem 1.7rem;
}

.svc-items-grid > .svc-li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.svc-li {
  position: relative;
  padding: 0 0 0.85rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.svc-li::before {
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 3px;
  height: 3px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  content: "";
}

.svc-li strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--white);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.svc-li span {
  display: block;
  color: var(--subtle);
  font-size: 0.84rem;
  line-height: 1.5;
}

.svc-media-col {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 1rem;
}

.svc-media-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.svc-media-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 8, 10, 0.58), transparent 52%);
  content: "";
  pointer-events: none;
}

.svc-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08);
  transition: transform 0.55s var(--ease-out), filter 0.3s ease;
}

.svc-card:hover .svc-media-preview img {
  transform: scale(1.055);
  filter: saturate(1) contrast(1.12);
}

.svc-media-badge {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.38rem 0.6rem;
  border-left: 3px solid var(--red);
  background: rgba(8, 8, 10, 0.82);
  color: #fff;
  font-size: 0.5rem;
  letter-spacing: 0.11em;
  backdrop-filter: blur(6px);
}

.svc-action-link {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
}

.svc-action-link::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--red);
  content: "";
  transform: translateX(-102%);
  transition: transform 0.3s var(--ease-out);
}

.svc-action-link:hover {
  border-color: var(--red);
  color: #fff;
}

.svc-action-link:hover::before {
  transform: none;
}

.svc-action-link svg {
  transition: transform 0.2s ease;
}

.svc-action-link:hover svg {
  transform: translateX(4px);
}

.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 2rem, 1320px);
  margin: clamp(4.5rem, 8vw, 7.5rem) auto 0;
  padding: clamp(2.2rem, 4vw, 3.7rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--red);
  box-shadow: 12px 12px 0 #4b0000, 0 30px 70px rgba(0, 0, 0, 0.36);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.cta-banner::after {
  position: absolute;
  right: 1.5rem;
  bottom: -0.2rem;
  color: rgba(255, 255, 255, 0.17);
  content: var(--slash);
  font-family: "Bebas Neue", sans-serif;
  font-size: 5rem;
  letter-spacing: -0.16em;
  line-height: 0.7;
  pointer-events: none;
}

.cta-banner h3 {
  margin-bottom: 0.45rem;
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.cta-banner .btn-primary {
  flex: 0 0 auto;
  border-color: #08080a;
  background: #08080a;
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.28);
}

.cta-banner .btn-primary:hover {
  background: #fff;
  box-shadow: 11px 11px 0 rgba(79, 0, 0, 0.45);
  color: #08080a;
}

/* ── COTIZADOR: BLOQUE ROJO / HONEYCOMB ─────────────────────── */
#cotizador {
  overflow: hidden;
  padding-block: clamp(6rem, 9vw, 10rem);
  border-block: 0;
  background: var(--red);
  color: #08080a;
  clip-path: polygon(0 3.5vw, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
}

#cotizador::before {
  position: absolute;
  inset: 0;
  --honey-s: 40px;
  --honey-c: transparent, rgba(8, 8, 10, 0.12) 0.5deg 119.5deg, transparent 120deg;
  --honey-g1: conic-gradient(from 60deg at 56.25% calc(425% / 6), var(--honey-c));
  --honey-g2: conic-gradient(from 180deg at 43.75% calc(425% / 6), var(--honey-c));
  --honey-g3: conic-gradient(from -60deg at 50% calc(175% / 12), var(--honey-c));
  background:
    var(--honey-g1),
    var(--honey-g1) var(--honey-s) calc(1.73 * var(--honey-s)),
    var(--honey-g2),
    var(--honey-g2) var(--honey-s) calc(1.73 * var(--honey-s)),
    var(--honey-g3) var(--honey-s) 0,
    var(--honey-g3) 0 calc(1.73 * var(--honey-s)) transparent;
  background-size: calc(2 * var(--honey-s)) calc(3.46 * var(--honey-s));
  content: "";
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 86%);
  mask-image: linear-gradient(135deg, #000, transparent 86%);
  pointer-events: none;
}

#cotizador > * {
  position: relative;
  z-index: 1;
}

#cotizador .tag-line {
  color: #08080a;
}

#cotizador .tag-line::before {
  background: #08080a;
  box-shadow: none;
}

#cotizador .display-title {
  color: #08080a;
}

#cotizador .display-title .red {
  color: transparent;
  -webkit-text-stroke: 2px #08080a;
}

#cotizador .section-head > p {
  color: rgba(8, 8, 10, 0.72);
}

.cotizador-box {
  position: relative;
  width: min(100%, 1320px);
  margin-inline: auto;
  padding: clamp(1.5rem, 3.4vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(215, 35, 35, 0.1), transparent 30%),
    #08080a;
  box-shadow: 14px 14px 0 rgba(71, 0, 0, 0.42), 0 35px 80px rgba(51, 0, 0, 0.3);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.cotizador-box::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 4px;
  background: var(--red);
  content: "";
}

.cotizador-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 0 2.2rem;
}

/* Selector de línea: 4x4 / utilitario */
.quote-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 2.2rem;
  padding: 6px;
  border: 1px solid var(--line);
  background: #0b0b0e;
}

.quote-mode-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.quote-mode-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.quote-mode-face {
  position: relative;
  display: flex;
  min-height: 88px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.35rem;
  overflow: hidden;
  background: #15151a;
  color: var(--white);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.quote-mode-face::after {
  position: absolute;
  top: 0.45rem;
  right: 0.7rem;
  color: rgba(255, 255, 255, 0.12);
  content: var(--slash);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  letter-spacing: -0.18em;
  line-height: 1;
}

.quote-mode-face strong {
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1;
}

.quote-mode-face small {
  color: var(--subtle);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.quote-mode-input:checked + .quote-mode-face {
  background: var(--red);
  box-shadow: 7px 7px 0 #4b0000;
  color: #fff;
  transform: translate(-2px, -2px);
}

.quote-mode-input:checked + .quote-mode-face small,
.quote-mode-input:checked + .quote-mode-face::after {
  color: rgba(255, 255, 255, 0.76);
}

.quote-mode-input:focus-visible + .quote-mode-face {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.quote-panel[hidden] {
  display: none !important;
}

.quote-panel {
  animation: quote-panel-in 0.35s var(--ease-out) both;
}

.quote-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.quote-panel-head h3 {
  margin-top: 0.35rem;
  color: #fff;
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
}

.quote-panel-head p {
  max-width: 510px;
  color: var(--subtle);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: right;
}

.quote-kicker {
  color: var(--red);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quote-hot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.quote-hot-grid-utility {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-hot-card {
  position: relative;
  display: flex;
  min-height: 112px;
  min-width: 0;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(215, 35, 35, 0.08), transparent 55%), #121217;
  color: var(--white);
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: transform 0.25s var(--ease-out), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.quote-hot-card::after {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  color: rgba(255, 255, 255, 0.12);
  content: var(--slash);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.15em;
  line-height: 1;
}

.quote-hot-card > span {
  position: absolute;
  top: 0.75rem;
  left: 0.8rem;
  color: var(--red);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
}

.quote-hot-card strong {
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.quote-hot-card small {
  color: var(--subtle);
  font-family: "DM Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.quote-hot-card:hover,
.quote-hot-card.is-active {
  transform: translateY(-4px);
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(215, 35, 35, 0.24), transparent 60%), #17171d;
  box-shadow: 6px 8px 0 rgba(83, 0, 0, 0.58);
}

.quote-fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 0;
}

.quote-span-1 { grid-column: span 1; }
.quote-span-2 { grid-column: span 2; }
.quote-span-4 { grid-column: span 4; }
.quote-span-6 { grid-column: 1 / -1; }

.quote-detail {
  position: relative;
  min-height: 54px;
  margin-top: 1.15rem;
  padding: 0.95rem 1.1rem 0.95rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: rgba(215, 35, 35, 0.075);
  color: #b8b8c0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.quote-detail::after {
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
  color: rgba(255, 255, 255, 0.08);
  content: "JD // SPEC";
  font-family: "DM Mono", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.13em;
}

.quote-detail:empty {
  display: none;
}

.quote-detail strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #fff;
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Banco visual progresivo por equipamiento. */
.quote-equipment-visual {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.quote-visual-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.quote-visual-head h3 {
  margin-top: 0.3rem;
  color: #fff;
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.quote-visual-head p {
  max-width: 560px;
  color: var(--subtle);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: right;
}

.quote-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.quote-media-grid[data-layout="single"] {
  grid-template-columns: minmax(0, 0.72fr);
}

.quote-media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #111116;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.quote-media-card.is-wide {
  grid-column: span 2;
}

.quote-media-card.is-wide .quote-media-frame {
  aspect-ratio: 2.2 / 1;
}

.quote-media-card.is-square .quote-media-frame {
  aspect-ratio: 1 / 1;
}

.quote-media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 50% 50%, rgba(215, 35, 35, 0.12), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #0a0a0e;
  background-size: auto, 24px 24px, 24px 24px, auto;
}

.quote-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  color: #8d8d96;
  text-align: center;
  transition: opacity 0.25s ease;
}

.quote-media-placeholder::before {
  color: rgba(215, 35, 35, 0.7);
  content: "IMG";
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  letter-spacing: 0.04em;
  line-height: 0.85;
}

.quote-media-placeholder strong {
  color: #d5d5da;
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.quote-media-placeholder code {
  max-width: 100%;
  color: var(--red);
  font-family: "DM Mono", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.quote-media-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.9) contrast(1.05);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}

.quote-media-card.is-ready .quote-media-placeholder {
  opacity: 0;
}

.quote-media-card.is-ready > img {
  opacity: 1;
}

.quote-media-card:hover.is-ready > img {
  transform: scale(1.035);
}

.quote-media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--line);
  color: #a0a0a9;
  font-family: "DM Mono", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.quote-media-caption span:first-child {
  flex: 0 0 auto;
  color: var(--red);
}

.quote-media-caption span:last-child {
  min-width: 0;
  color: #a0a0a9;
  overflow-wrap: anywhere;
  text-align: right;
}

.quote-media-path {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--red);
  background: rgba(215, 35, 35, 0.07);
}

.quote-media-path span {
  flex: 0 0 auto;
  color: var(--red);
  font-family: "DM Mono", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.14em;
}

.quote-media-path code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #aaaab2;
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  line-height: 1.4;
}

.cfield label {
  display: block;
  margin-bottom: 0.65rem;
  color: #a8a8b0;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.cselect,
.cinput {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #141419;
  color: var(--white);
  font-family: "Barlow", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cselect {
  padding-right: 2.7rem;
  cursor: pointer;
}

.cselect:focus,
.cinput:focus {
  border-color: var(--red);
  background: #18181d;
  box-shadow: 5px 5px 0 rgba(126, 0, 0, 0.72);
}

.cinput::placeholder {
  color: #66666f;
}

.cotizador-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.cotizador-summary {
  color: #aaaab2;
  font-size: 0.66rem;
  line-height: 1.5;
}

.cotizador-summary strong {
  color: #fff;
  font-weight: 500;
}

#cotizador .btn-primary {
  border-color: var(--red);
}

/* ── GALERÍA ────────────────────────────────────────────────── */
#catalogo {
  overflow: hidden;
  background:
    linear-gradient(112deg, transparent 0 78%, rgba(215, 35, 35, 0.045) 78.1% 78.25%, transparent 78.35%),
    var(--dark);
}

.cat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cat-meta {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: flex-start;
}

.cat-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.cat-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cat-counter {
  margin-right: 0.45rem;
  color: var(--subtle);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.cat-counter span {
  color: var(--red);
}

.slide-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.slide-btn:hover {
  transform: translate(-2px, -2px);
  border-color: var(--red);
  background: var(--red);
  box-shadow: 5px 5px 0 #4b0000;
}

.cat-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.15rem;
  width: min(100%, 1520px);
  margin-inline: auto;
  padding: 0.5rem 0 1.5rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-grid::-webkit-scrollbar {
  display: none;
}

.pcard-slide {
  position: relative;
  flex: 0 0 clamp(285px, 27vw, 390px);
  height: clamp(235px, 24vw, 310px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #111116;
  cursor: pointer;
  scroll-snap-align: start;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
}

.pcard-slide::after {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 34%;
  height: 4px;
  background: var(--red);
  content: "";
  transform-origin: left;
  transition: width 0.35s var(--ease-out);
}

.pcard-slide:hover {
  transform: translateY(-7px);
  border-color: var(--red);
  box-shadow: 10px 14px 0 rgba(83, 0, 0, 0.55), 0 28px 55px rgba(0, 0, 0, 0.46);
}

.pcard-slide:hover::after {
  width: 100%;
}

.pcard-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08) brightness(0.86);
  transition: transform 0.6s var(--ease-out), filter 0.3s ease;
}

.pcard-slide:hover img {
  transform: scale(1.07);
  filter: saturate(1) contrast(1.12) brightness(0.92);
}

.pcard-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background:
    linear-gradient(0deg, rgba(8, 8, 10, 0.9), transparent 58%),
    linear-gradient(120deg, rgba(215, 35, 35, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.pcard-slide:hover .pcard-overlay,
.pcard-slide:focus-visible .pcard-overlay {
  opacity: 1;
}

.pcard-tag {
  color: #fff;
  font-size: 0.55rem;
  letter-spacing: 0.13em;
}

.pcard-tag::first-letter {
  color: var(--red);
}

.pcard-zoom-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 10, 0.7);
  color: #fff;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

/* ── COMUNIDAD: HONEYCOMB, SIN CANVAS ───────────────────────── */
#social-constellation {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(215, 35, 35, 0.09), transparent 31%),
    var(--black);
}

#social-constellation::before {
  position: absolute;
  inset: 0;
  --honey-s: 40px;
  --honey-c: transparent, rgba(215, 35, 35, 0.1) 0.5deg 119.5deg, transparent 120deg;
  --honey-g1: conic-gradient(from 60deg at 56.25% calc(425% / 6), var(--honey-c));
  --honey-g2: conic-gradient(from 180deg at 43.75% calc(425% / 6), var(--honey-c));
  --honey-g3: conic-gradient(from -60deg at 50% calc(175% / 12), var(--honey-c));
  background:
    var(--honey-g1),
    var(--honey-g1) var(--honey-s) calc(1.73 * var(--honey-s)),
    var(--honey-g2),
    var(--honey-g2) var(--honey-s) calc(1.73 * var(--honey-s)),
    var(--honey-g3) var(--honey-s) 0,
    var(--honey-g3) 0 calc(1.73 * var(--honey-s)) transparent;
  background-size: calc(2 * var(--honey-s)) calc(3.46 * var(--honey-s));
  content: "";
  opacity: 0.72;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 86%);
  mask-image: radial-gradient(circle at center, #000, transparent 86%);
  pointer-events: none;
}

#social-constellation::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--red-line) 18%, var(--red-line) 82%, transparent);
  content: "";
  opacity: 0.5;
}

.social-container {
  position: relative;
  z-index: 1;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  perspective: 1200px;
}

.social-card {
  position: relative;
  display: flex;
  grid-column: span 2;
  min-height: 235px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(215, 35, 35, 0.09), transparent 45%),
    var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: inherit;
  text-decoration: none;
  transform-style: preserve-3d;
  will-change: transform;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.social-card:nth-child(4),
.social-card:nth-child(5) {
  grid-column: span 3;
}

.social-card::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22px 22px, transparent 0 13px, rgba(215, 35, 35, 0.1) 14px 15px, transparent 16px),
    radial-gradient(circle at 0 38px, transparent 0 13px, rgba(215, 35, 35, 0.1) 14px 15px, transparent 16px);
  background-size: 44px 76px;
  content: "";
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 72%);
  mask-image: linear-gradient(135deg, #000, transparent 72%);
  pointer-events: none;
}

.social-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  content: "";
}

.social-card:hover {
  border-color: var(--red);
  background: var(--panel-2);
  box-shadow: 9px 12px 0 rgba(82, 0, 0, 0.56), 0 28px 60px rgba(0, 0, 0, 0.45);
}

.social-icon-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 1px solid var(--red-line);
  background: rgba(215, 35, 35, 0.1);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.34);
  color: var(--red);
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  transform: translateZ(36px);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.social-card:hover .social-icon-wrapper {
  background: var(--red);
  box-shadow: 8px 8px 0 #4b0000;
  color: #fff;
}

.social-icon-wrapper svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.social-info {
  position: relative;
  z-index: 1;
  min-width: 0;
  transform: translateZ(20px);
}

.social-name {
  margin-bottom: 0.35rem;
  color: var(--white);
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.social-handle {
  overflow: hidden;
  color: var(--subtle);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-overflow: ellipsis;
}

/* ── CONTACTO ROJO ──────────────────────────────────────────── */
#contacto {
  overflow: hidden;
  padding-block: clamp(6.5rem, 11vw, 12rem);
  background: var(--red);
  color: #08080a;
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
}

#contacto::before {
  position: absolute;
  inset: 0;
  --honey-s: 40px;
  --honey-c: transparent, rgba(8, 8, 10, 0.13) 0.5deg 119.5deg, transparent 120deg;
  --honey-g1: conic-gradient(from 60deg at 56.25% calc(425% / 6), var(--honey-c));
  --honey-g2: conic-gradient(from 180deg at 43.75% calc(425% / 6), var(--honey-c));
  --honey-g3: conic-gradient(from -60deg at 50% calc(175% / 12), var(--honey-c));
  background:
    var(--honey-g1),
    var(--honey-g1) var(--honey-s) calc(1.73 * var(--honey-s)),
    var(--honey-g2),
    var(--honey-g2) var(--honey-s) calc(1.73 * var(--honey-s)),
    var(--honey-g3) var(--honey-s) 0,
    var(--honey-g3) 0 calc(1.73 * var(--honey-s)) transparent;
  background-size: calc(2 * var(--honey-s)) calc(3.46 * var(--honey-s));
  content: "";
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 78%);
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  pointer-events: none;
}

#contacto > * {
  position: relative;
  z-index: 1;
}

#contacto .tag-line {
  color: #08080a;
}

#contacto .tag-line::before {
  background: #08080a;
  box-shadow: none;
}

#contacto .display-title {
  margin-top: 0.8rem;
  color: #08080a;
  font-size: clamp(4.2rem, 9.5vw, 11rem);
}

#contacto .display-title span {
  color: transparent !important;
  -webkit-text-stroke: 2px #08080a;
}

/* ── FOOTER / MAPA ──────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 2;
  background: var(--dark);
}

.footer-map-container {
  position: relative;
  height: clamp(320px, 38vw, 470px);
  overflow: hidden;
  border-bottom: 1px solid var(--red-line);
  background: #050506;
  clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
}

.footer-map,
.footer-map iframe {
  width: 100%;
  height: 100%;
}

.footer-map iframe {
  display: block;
  border: 0;
  filter: grayscale(1) contrast(1.4) brightness(0.68) sepia(0.18) hue-rotate(320deg);
  transition: filter 0.3s ease;
}

.footer-map-container::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(215, 35, 35, 0.18), transparent 45%),
    linear-gradient(90deg, rgba(215, 35, 35, 0.13), transparent 28%);
  content: "";
  pointer-events: none;
  mix-blend-mode: screen;
}

.footer-map-overlay-badge {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid var(--red);
  background: rgba(8, 8, 10, 0.86);
  box-shadow: 7px 7px 0 rgba(74, 0, 0, 0.66);
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  backdrop-filter: blur(10px);
}

.footer-body {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  width: min(100%, 1500px);
  margin-inline: auto;
  padding: clamp(3.5rem, 6vw, 5.5rem) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.foot-logo {
  width: auto;
  height: 48px;
  margin-bottom: 1.3rem;
}

.foot-desc {
  max-width: 410px;
  margin-bottom: 1.6rem;
  color: var(--subtle);
  font-size: 0.92rem;
  line-height: 1.75;
}

.foot-social {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.foot-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.foot-social a:hover {
  transform: translate(-2px, -2px);
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 5px 5px 0 #4b0000;
}

.footer-heading {
  margin-bottom: 1.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.foot-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.foot-links a::before {
  width: 14px;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.foot-links a:hover {
  transform: translateX(4px);
  color: var(--white);
}

.foot-links a:hover::before {
  transform: scaleX(1);
}

.foot-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.fci {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.fci-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 0.5rem;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.fci .fl {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--red);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.fci .fv {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.fci .fv a {
  color: inherit;
  transition: color 0.2s ease;
}

.fci .fv a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100%, 1500px);
  margin-inline: auto;
  padding: 1.5rem var(--gutter) 2rem;
}

.fcopy,
.flinks {
  color: var(--subtle);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.flinks {
  display: flex;
  gap: 1.5rem;
}

.flinks a {
  transition: color 0.2s ease;
}

.flinks a:hover {
  color: var(--red);
}

/* ── FLOATING ACTIONS / LIGHTBOX ────────────────────────────── */
.fwa {
  position: fixed;
  z-index: 900;
  right: 1.7rem;
  bottom: 1.7rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--red-line);
  background: rgba(8, 8, 10, 0.92);
  box-shadow: 8px 8px 0 rgba(75, 0, 0, 0.74), 0 20px 50px rgba(0, 0, 0, 0.48);
  color: #fff;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease-out), background 0.2s ease;
}

.fwa:hover {
  transform: translate(-3px, -3px);
  background: var(--red);
}

.fwa .ldot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31d46f;
  box-shadow: 0 0 9px #31d46f;
  animation: signal-ring 2.4s ease-out infinite;
}

.fwa-t span:first-child {
  display: block;
  color: #9797a0;
  font-family: "DM Mono", monospace;
  font-size: 0.49rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.fwa-t span:last-child {
  display: block;
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.fwa:hover .fwa-t span:first-child {
  color: rgba(255, 255, 255, 0.78);
}

#back-to-top {
  position: fixed;
  z-index: 850;
  bottom: 1.7rem;
  left: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 8, 10, 0.9);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.42);
  color: var(--white);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  backdrop-filter: blur(10px);
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: none;
}

#back-to-top:hover {
  background: var(--red);
}

#lightbox {
  position: fixed;
  z-index: 2100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

#lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.94);
  backdrop-filter: blur(18px);
}

#lb-box {
  position: relative;
  z-index: 2;
  width: min(92vw, 920px);
  max-width: 100%;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.35s var(--ease-out);
}

#lightbox.open #lb-box {
  transform: none;
}

#lb-img-wrap {
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: #000;
  box-shadow: 16px 16px 0 rgba(84, 0, 0, 0.58), 0 40px 100px rgba(0, 0, 0, 0.8);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

#lb-img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

#lb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 1.4rem;
  padding: 0 0.4rem;
  flex-wrap: wrap;
}

#lb-name {
  color: #fff;
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#lb-meta .btn-primary {
  padding: 0.75rem 1rem !important;
  font-size: 0.58rem !important;
}

#lb-close,
.lb-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--red);
  color: #fff;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

#lb-close:hover,
.lb-nav-btn:hover {
  transform: scale(1.06);
  background: var(--red-hot);
}

#lb-close {
  position: absolute;
  z-index: 3;
  top: -17px;
  right: -17px;
  width: 46px;
  height: 46px;
  box-shadow: 6px 6px 0 #4b0000;
}

.lb-nav-btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  background: rgba(8, 8, 10, 0.9);
  transform: translateY(-50%);
}

.lb-nav-btn:hover {
  transform: translateY(-50%) scale(1.06);
}

#lb-prev {
  left: -68px;
}

#lb-next {
  right: -68px;
}

/* ── REVEAL / MOTION / ACCESSIBILITY ────────────────────────── */
.r {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(30px) skewY(0.6deg);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s ease;
}

.r.v {
  opacity: 1;
  filter: none;
  transform: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

@keyframes quote-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes ticker-roll {
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.72); }
}

@keyframes signal-ring {
  0% { box-shadow: 0 0 0 0 rgba(49, 212, 111, 0.52); }
  70% { box-shadow: 0 0 0 12px rgba(49, 212, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 212, 111, 0); }
}

@keyframes hud-scan {
  from { transform: translateX(0); opacity: 0; }
  20%, 80% { opacity: 1; }
  to { transform: translateX(48px); opacity: 0; }
}

.hud-cross::after {
  animation: hud-scan 3.2s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .r {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ── RESPONSIVE / TABLET ────────────────────────────────────── */
@media (max-width: 1380px) {
  .nav-links a {
    padding-inline: 0.58rem;
  }

  .nav-cta {
    padding-inline: 0.85rem;
    font-size: 0.57rem !important;
  }

  .svc-inner {
    grid-template-columns: 64px minmax(0, 1fr) minmax(240px, 0.58fr);
    gap: 1.8rem;
  }

  .svc-items-grid {
    gap-inline: 1.2rem;
  }
}

@media (max-width: 1180px) {
  :root {
    --nav-h: 72px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hstats {
    padding-top: 1.1rem;
    padding-left: 0;
    border-top: 2px solid var(--red);
    border-left: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }

  .about-img-wrap {
    width: min(100%, 900px);
  }

  .about-body {
    max-width: 900px;
  }

  .svc-inner {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .svc-media-col {
    display: grid;
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.38fr);
    align-items: stretch;
  }

  .svc-media-preview {
    aspect-ratio: 16 / 9;
  }

  .cat-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 960px) {
  #hero {
    display: block;
    min-height: max(780px, 100svh);
    padding-bottom: 0;
    background: var(--black);
  }

  #hero::before {
    top: 0;
    width: 100%;
    height: 48%;
    opacity: 0.22;
  }

  #hero::after {
    top: 43%;
    left: -5%;
    width: 110%;
    height: 7px;
    transform: rotate(5deg);
  }

  .hv {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 48%;
    min-height: 0;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 87% 100%, 0 100%);
  }

  .hgrad {
    top: 0;
    width: 100%;
    height: 51%;
    background:
      linear-gradient(0deg, var(--black) 0%, rgba(8, 8, 10, 0.36) 38%, transparent 72%),
      linear-gradient(90deg, rgba(8, 8, 10, 0.4), transparent 45%);
  }

  .hero-hud-lines {
    bottom: 48%;
  }

  .hcontent {
    max-width: 820px;
    margin-top: 42%;
    padding: 3.2rem var(--gutter) 4.5rem;
  }

  .htitle {
    font-size: clamp(4.6rem, 15.5vw, 8.8rem);
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .hstats {
    padding-top: 0;
    padding-left: 1.2rem;
    border-top: 0;
    border-left: 2px solid var(--red);
  }

  .services-head {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .services-head > p {
    max-width: 680px;
  }

  .cotizador-grid {
    grid-template-columns: 1fr;
  }

  .quote-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-span-1,
  .quote-span-2 {
    grid-column: span 1;
  }

  .quote-span-4,
  .quote-span-6 {
    grid-column: 1 / -1;
  }

  .quote-hot-grid,
  .quote-hot-grid-utility {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-card,
  .social-card:nth-child(4),
  .social-card:nth-child(5) {
    grid-column: span 3;
  }

  .footer-body {
    grid-template-columns: 1fr 1fr;
  }

  #lb-prev {
    left: 10px;
  }

  #lb-next {
    right: 10px;
  }
}

/* ── RESPONSIVE / MOBILE ────────────────────────────────────── */
@media (max-width: 760px) {
  :root {
    --gutter: 1.1rem;
    --cut: 9px;
  }

  #topbar {
    display: none;
  }

  #nav {
    height: var(--nav-h);
  }

  #nav.on {
    height: var(--nav-h);
  }

  #nav.on .nav-logo {
    height: 50px;
  }

  .nav-logo {
    height: 50px;
  }

  .nav-cta {
    display: none;
  }

  #mobile-nav {
    inset: var(--nav-h) 0 0;
  }

  .theme-toggle,
  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  #hero {
    min-height: 760px;
  }

  .hv {
    height: 42%;
  }

  .hgrad {
    height: 46%;
  }

  .hero-hud-lines {
    bottom: 42%;
  }

  .hcontent {
    margin-top: 36%;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-badge-wrap {
    margin-bottom: 1.4rem;
  }

  .hero-telemetry {
    display: none;
  }

  .htitle {
    font-size: clamp(3.85rem, 18.3vw, 6.8rem);
    line-height: 0.8;
  }

  .htitle .outline {
    -webkit-text-stroke-width: 1.5px;
  }

  .hero-manifesto {
    align-items: flex-start;
    font-size: 0.56rem;
    line-height: 1.5;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .hero-btns {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
  }

  .hstats {
    width: 100%;
    padding-top: 1.2rem;
    padding-left: 0;
    border-top: 2px solid var(--red);
    border-left: 0;
  }

  .stat {
    flex: 1;
  }

  .ticker {
    padding-block: 0.65rem;
    clip-path: polygon(0 5px, 4vw 0, 100% 0, 100% calc(100% - 5px), 96vw 100%, 0 100%);
  }

  .ti {
    padding-inline: 1rem;
  }

  .ti::after {
    margin-left: 1rem;
  }

  .ti span {
    font-size: 1.25rem;
  }

  section {
    padding-block: 4.8rem;
  }

  .display-title {
    font-size: clamp(3.4rem, 17vw, 5.8rem);
  }

  .about-grid {
    gap: 3.5rem;
  }

  .about-img-wrap {
    padding: 0.8rem 0 0 0.8rem;
  }

  .about-stat-badge {
    right: 0;
    bottom: -1.7rem;
    min-width: 142px;
    padding: 1.1rem 1.2rem;
    box-shadow: 7px 7px 0 #4b0000;
  }

  .about-stat-badge .n {
    font-size: 3rem;
  }

  .counters {
    grid-template-columns: repeat(2, 1fr);
  }

  .ctr {
    border-bottom: 1px solid var(--line);
  }

  .ctr:nth-child(2) {
    border-right: 0;
  }

  .ctr:nth-child(n + 3) {
    border-bottom: 0;
  }

  .svc-list {
    gap: 18px;
  }

  .svc-card {
    position: relative;
    top: auto;
    z-index: 1;
    box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.25);
  }

  .svc-card:hover {
    box-shadow: 8px 11px 0 rgba(82, 0, 0, 0.5);
  }

  .svc-category {
    padding: 0.72rem 1.1rem;
    font-size: 0.5rem;
  }

  .svc-category::after {
    right: 1rem;
    content: "JD //";
  }

  .svc-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.5rem 1.1rem 1.2rem;
  }

  .svc-number {
    position: absolute;
    top: 1.4rem;
    right: 1.1rem;
    font-size: 3.8rem;
    opacity: 0.7;
  }

  .svc-icon {
    padding-right: 3.4rem;
    margin-bottom: 1.2rem;
  }

  .svc-ico-box {
    width: 44px;
    height: 44px;
  }

  .svc-title {
    font-size: 1.9rem;
  }

  .svc-items-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .svc-media-col {
    display: flex;
    grid-column: 1;
    margin-top: 0.3rem;
  }

  .svc-media-preview {
    aspect-ratio: 16 / 10;
  }

  .cta-banner {
    width: calc(100% - 1rem);
    align-items: flex-start;
    padding: 1.8rem 1.2rem;
    flex-direction: column;
  }

  .cta-banner .btn-primary {
    width: 100%;
  }

  #cotizador,
  #contacto {
    clip-path: polygon(0 2.5rem, 100% 0, 100% calc(100% - 2.5rem), 0 100%);
  }

  .cotizador-box {
    padding: 1.15rem;
    box-shadow: 8px 9px 0 rgba(71, 0, 0, 0.42);
  }

  .quote-mode-switch {
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
  }

  .quote-mode-face {
    min-height: 76px;
    padding: 0.95rem 1.1rem;
  }

  .quote-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .quote-panel-head p {
    text-align: left;
  }

  .quote-hot-grid,
  .quote-hot-grid-utility {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-fields {
    grid-template-columns: 1fr;
  }

  .quote-span-1,
  .quote-span-2,
  .quote-span-4,
  .quote-span-6 {
    grid-column: 1;
  }

  .quote-detail {
    font-size: 0.78rem;
  }

  .quote-visual-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .quote-visual-head p {
    text-align: left;
  }

  .quote-media-grid[data-layout="producto"] {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .quote-media-grid[data-layout="producto"]::-webkit-scrollbar {
    display: none;
  }

  .quote-media-grid[data-layout="producto"] .quote-media-card {
    flex: 0 0 min(82vw, 340px);
    scroll-snap-align: start;
  }

  .quote-media-grid[data-layout="producto"] .quote-media-card.is-wide {
    flex-basis: min(92vw, 390px);
  }

  .quote-media-grid[data-layout="single"] {
    grid-template-columns: 1fr;
  }

  .quote-media-path {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .cotizador-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #cotizador .btn-primary {
    width: 100%;
  }

  .cat-grid {
    width: calc(100% + var(--gutter));
    padding-right: var(--gutter);
  }

  .pcard-slide {
    flex-basis: min(82vw, 340px);
    height: 240px;
  }

  .pcard-overlay {
    opacity: 1;
    background: linear-gradient(0deg, rgba(8, 8, 10, 0.9), transparent 52%);
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .social-card,
  .social-card:nth-child(4),
  .social-card:nth-child(5) {
    grid-column: 1;
    min-height: 190px;
    justify-content: flex-start;
    padding: 1.5rem;
  }

  .social-card:nth-child(2),
  .social-card:nth-child(4) {
    background:
      linear-gradient(135deg, rgba(215, 35, 35, 0.16), transparent 52%),
      var(--panel);
  }

  #contacto .display-title {
    font-size: clamp(4rem, 20vw, 6.7rem);
  }

  .footer-map-container {
    height: 330px;
    clip-path: polygon(0 2rem, 100% 0, 100% 100%, 0 100%);
  }

  .footer-map-overlay-badge {
    right: var(--gutter);
    bottom: 1.25rem;
    left: var(--gutter);
    justify-content: center;
    text-align: center;
  }

  .footer-body {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .flinks {
    justify-content: center;
    flex-wrap: wrap;
  }

  .fwa {
    right: 1rem;
    bottom: 1rem;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    box-shadow: 5px 5px 0 rgba(75, 0, 0, 0.74);
  }

  .fwa-t span:first-child {
    display: none;
  }

  #back-to-top {
    bottom: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
  }

  #lb-box {
    width: calc(100vw - 2.4rem);
  }

  .lb-nav-btn {
    top: auto;
    bottom: -58px;
    transform: none;
  }

  .lb-nav-btn:hover {
    transform: scale(1.05);
  }

  #lb-prev {
    left: 0;
  }

  #lb-next {
    right: 0;
  }

  #lb-meta {
    margin-bottom: 3.2rem;
  }
}

@media (max-width: 420px) {
  .theme-toggle {
    display: none;
  }

  .quote-hot-grid,
  .quote-hot-grid-utility {
    grid-template-columns: 1fr;
  }

  .quote-hot-card {
    min-height: 96px;
  }

  #hero {
    min-height: 720px;
  }

  .hcontent {
    margin-top: 34%;
  }

  .htitle {
    font-size: clamp(3.55rem, 18.2vw, 4.8rem);
  }

  .hero-btns {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
  }

  .hdesc {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .tag-badge {
    max-width: 100%;
    font-size: 0.53rem;
    letter-spacing: 0.1em;
  }

  .counter,
  .ctr {
    min-width: 0;
  }

  .ctr-num {
    font-size: 2.45rem;
  }

  .cat-controls {
    width: 100%;
  }

  .cat-counter {
    flex: 1;
    line-height: 1.4;
  }

  .social-icon-wrapper {
    width: 58px;
    height: 58px;
  }

  .social-icon-wrapper svg {
    width: 25px;
    height: 25px;
  }

  .fwa {
    width: 50px;
    height: 50px;
    min-height: 50px;
    justify-content: center;
    padding: 0;
  }

  .fwa .ldot {
    display: none;
  }

  .fwa-t {
    display: none;
  }

  .fwa::after {
    font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    content: "WA";
  }
}

/* Rendimiento: evita trabajo de layout fuera del viewport en bloques pesados. */
@media (min-width: 761px) {
  #catalogo,
  #social-constellation,
  footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}
