/* =========================================================
   ImportPlegadoras — styles.css
   Dark tech theme, mobile-first, vanilla CSS
   ========================================================= */

:root {
  --bg: #060a12;
  --bg-alt: #0b1220;
  --surface: #101a2c;
  --surface-2: #16223a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f8;
  --text-dim: #97a2b8;
  --text-dimmer: #7f8bab;
  --accent: #2f8bff;
  --accent-2: #00d4ff;
  --accent-soft: rgba(47, 139, 255, 0.14);
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebd5a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --container: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
picture { display: block; width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Utility ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* El atributo hidden debe ganarle siempre a cualquier display:flex/grid de una clase */
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #041022;
  box-shadow: 0 10px 30px rgba(47, 139, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(47, 139, 255, 0.5); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #06210f;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 20px 40px rgba(0,0,0,0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: 0.78rem; }
.logo-mark { width: 56px; height: 56px; flex-shrink: 0; filter: drop-shadow(0 0 15px rgba(34,158,255,.44)); }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text { color: #f3f7fc; font-size: 1.52rem; font-weight: 800; letter-spacing: -0.035em; }
.logo-text strong { color: #369cff; font-weight: 800; }
.logo-tagline { margin-top: .12rem; font-size: 0.75rem; font-weight: 600; color: #8fa5bb; letter-spacing: 0.005em; }
@media (max-width: 640px) {
  .logo-tagline { display: none; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text { font-size: 1.05rem; }
}

.main-nav ul { display: flex; gap: 2.3rem; }
.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: #d2dae5;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  color: #fff;
  text-shadow: 0 0 12px rgba(75, 177, 255, 0.34);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 110px 0 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,10,18,0.55) 0%, rgba(6,10,18,0.75) 45%, var(--bg) 100%),
    linear-gradient(100deg, rgba(6,10,18,0.85) 10%, rgba(6,10,18,0.35) 60%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.glow-1 { width: 420px; height: 420px; background: var(--accent); top: -100px; right: -80px; }
.glow-2 { width: 340px; height: 340px; background: var(--accent-2); bottom: -60px; left: -60px; }

.hero-content { position: relative; max-width: 960px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(47, 139, 255, 0.12);
  border: 1px solid rgba(47, 139, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: #cfe3ff;
  margin-bottom: 1.4rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.8vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
}
.hero-title-main {
  color: #fff;
  text-shadow:
    0 0 34px rgba(255, 255, 255, 0.4),
    1px 1px 0 #2a3b5c,
    2px 2px 0 #24344f,
    3px 3px 0 #1e2c44,
    4px 4px 0 #18243a,
    5px 5px 0 #131c2f,
    6px 6px 0 #0e1626,
    7px 7px 0 #0a101c,
    8px 8px 0 #060a12,
    9px 9px 18px rgba(0, 0, 0, 0.65),
    0 28px 56px rgba(0, 0, 0, 0.6);
}
.hero-title-accent {
  background: linear-gradient(135deg, #aed8ff 0%, #9ff8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(20, 35, 60, 0.65))
    drop-shadow(0 2px 0 rgba(20, 35, 60, 0.6))
    drop-shadow(0 3px 0 rgba(15, 28, 50, 0.55))
    drop-shadow(0 4px 0 rgba(12, 22, 42, 0.5))
    drop-shadow(0 5px 0 rgba(10, 18, 35, 0.45))
    drop-shadow(0 6px 0 rgba(8, 14, 28, 0.4))
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6))
    drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero-stock-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 560px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.8rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius);
}
.hero-stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #4be08a;
}
.hero-stock-card p { font-size: 0.94rem; color: var(--text-dim); }
.hero-stock-card p strong { color: var(--text); }
.hero-stock-link { font-size: 0.88rem; font-weight: 600; color: var(--accent-2); transition: color 0.2s; }
.hero-stock-link:hover { color: var(--accent); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.6rem; }

.hero-offer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: 620px;
}
.offer-item { display: flex; align-items: flex-start; gap: 0.7rem; }
.offer-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
}
.offer-icon svg { width: 21px; height: 21px; }
.offer-item strong { display: block; font-size: 1.02rem; font-weight: 700; color: var(--text); }
.offer-item span { display: block; font-size: 0.86rem; color: var(--text-dimmer); margin-top: 2px; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  color: var(--text-dim);
  animation: bounce 2.2s infinite;
}
.scroll-cue svg { width: 100%; height: 100%; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- Portada comercial ---------- */
.hero {
  height: 100svh;
  min-height: 0;
  align-items: stretch;
  padding: 0;
  isolation: isolate;
}
.hero-bg img {
  position: relative;
  object-fit: cover;
  object-position: center center;
  width: 120%;
  max-width: none;
  transform: none;
  transform-origin: center;
  filter: brightness(1.34) contrast(1.04) saturate(1.01);
}
.hero-bg {
  background:
    radial-gradient(circle at 61% 49%, rgba(75, 137, 188, 0.24), transparent 48%),
    #050d16;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 14% -7%, rgba(224, 244, 255, 0.22) 0%, rgba(125, 190, 234, 0.07) 30%, transparent 54%),
    radial-gradient(ellipse at 63% 34%, rgba(235, 249, 255, 0.1), transparent 43%);
  pointer-events: none;
}
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(4, 11, 20, 0.05) 0%, rgba(4, 11, 20, 0.01) 52%, rgba(4, 10, 18, 0.59) 100%),
    linear-gradient(90deg, rgba(3, 11, 20, 0.83) 0%, rgba(3, 11, 20, 0.55) 26%, rgba(3, 11, 20, 0.035) 50%, rgba(3, 11, 20, 0.018) 76%, rgba(3, 11, 20, 0.22) 100%);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(250px, 1fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
  height: 100%;
  padding-top: 105px;
  padding-bottom: 118px;
  box-sizing: border-box;
}
.hero-content {
  max-width: 700px;
  transform: none;
}
.hero-badge {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.145em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow:
    0 1px 0 rgba(190, 242, 255, 0.3),
    0 2px 0 rgba(3, 76, 108, 0.72),
    0 5px 12px rgba(0, 8, 18, 0.72),
    0 0 15px rgba(0, 191, 255, 0.16);
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(3rem, 4.55vw, 4.85rem);
  line-height: 1.025;
  font-weight: 900;
  letter-spacing: -0.045em;
  max-width: 700px;
  margin-bottom: 1.9rem;
}
.hero-title-main {
  color: #fff;
  -webkit-text-stroke: 0.35px rgba(255,255,255,.28);
  text-shadow:
    0 -1px 0 rgba(255,255,255,.5),
    0 2px 0 #a5aeb8,
    0 4px 0 #697480,
    0 6px 1px rgba(28,36,46,.86),
    0 11px 17px rgba(0,0,0,.48),
    0 22px 36px rgba(0,0,0,.22);
}
.hero-title-accent {
  padding-bottom: 0.12em;
  background: linear-gradient(165deg, #b8e7ff 0%, #6dc8ff 30%, #2e9cf4 58%, #0870ce 82%, #48c9f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.3px rgba(152,224,255,.34);
  filter:
    drop-shadow(0 2px 0 rgba(20, 108, 183, .9))
    drop-shadow(0 4px 0 rgba(5, 65, 125, .82))
    drop-shadow(0 7px 1px rgba(1, 32, 70, .68))
    drop-shadow(0 13px 18px rgba(0, 17, 39, .42));
}
.hero-subtitle {
  max-width: 465px;
  margin-bottom: 1.35rem;
  color: #e5edf7;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
.hero-stock-compact {
  display: flex;
  width: min(100%, 405px);
  flex-direction: column;
  align-items: flex-start;
  gap: 0.14rem;
  margin-bottom: 1.4rem;
  padding: 0.56rem 0.84rem;
  border: 1px solid rgba(91, 204, 153, 0.38);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(4, 39, 36, 0.88), rgba(4, 32, 43, 0.86));
  box-shadow: 0 12px 25px rgba(0,0,0,.2), inset 0 1px rgba(188,245,250,.06);
  color: var(--text);
}
.hero-stock-compact span {
  color: #77d8a1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-stock-compact strong { font-size: 1rem; }
.hero-stock-compact em { color: #d3e1ef; font-size: 0.76rem; font-style: normal; font-weight: 600; }
.hero-stock-compact small { color: var(--accent-2); font-size: 0.72rem; font-weight: 700; }
.hero-stock-compact:hover { border-color: rgba(111, 221, 162, 0.68); transform: translateY(-2px); }
.hero-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.4rem;
  align-items: stretch;
}
.hero-cta .btn {
  flex: none;
  width: 68%;
  justify-self: start;
  min-width: 0;
  padding: 0.6rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.15;
}
.hero-cta .btn:nth-child(5) {
  grid-column: 1 / -1;
  width: 68%;
  justify-self: start;
}
.hero-cta .btn:nth-child(2),
.hero-cta .btn:nth-child(4) {
  position: relative;
  left: -5.8rem;
  width: 68%;
}
.hero-cta .btn-primary,
.hero-cta .btn-outline {
  border-color: rgba(93, 190, 255, 0.62);
  background: rgba(8, 45, 72, 0.76);
  color: var(--text);
  box-shadow: inset 0 1px rgba(216, 244, 255, 0.08), 0 8px 20px rgba(0, 17, 33, 0.2);
}
.hero-cta .btn-primary {
  border-radius: 999px;
}
.hero-cta .btn-primary:hover,
.hero-cta .btn-outline:hover {
  transform: translateY(-3px);
  border-color: rgba(80, 205, 255, 0.9);
  background: rgba(12, 66, 101, 0.9);
  box-shadow: 0 15px 36px rgba(34, 158, 255, 0.3), 0 0 18px rgba(0, 212, 255, 0.1);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: #bed0e4;
  font-size: 0.82rem;
  font-weight: 700;
}
.hero-explore {
  justify-self: end;
  width: min(100%, 205px);
  padding: 1rem;
  border: 1px solid rgba(99, 186, 255, 0.3);
  border-radius: 18px;
  background: rgba(8, 28, 44, 0.88);
  box-shadow: 0 25px 55px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}
@media (min-width: 1500px) {
  .hero-explore { margin-right: -145px; }
}
.hero-explore-label {
  display: block;
  padding-bottom: 0.75rem;
  color: var(--accent-2);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-index-item { border-top: 1px solid rgba(160, 197, 230, 0.18); }
.hero-index-item button {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.76rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.hero-index-item button span,
.hero-index-item button strong,
.hero-index-item button small { display: block; }
.hero-index-item button strong { font-size: 0.76rem; transition: color 220ms ease; }
.hero-index-item button small { margin-top: 0.12rem; color: var(--text-dimmer); font-size: 0.59rem; line-height: 1.35; }
.hero-index-item button b {
  color: var(--accent-2);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: transform 260ms ease;
}
.hero-index-item:hover button strong,
.hero-index-item.is-open button strong { color: var(--accent-2); }
.hero-index-item.is-open button b { transform: rotate(45deg); }
.hero-index-links {
  display: grid;
  max-height: 0;
  gap: 0.25rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 280ms ease-in-out, opacity 240ms ease-in-out, transform 280ms ease-in-out, padding 280ms ease-in-out;
}
.hero-index-item.is-open .hero-index-links {
  max-height: 88px;
  padding: 0 0 0.72rem;
  opacity: 1;
  transform: translateY(0);
}
.hero-index-links a {
  color: #b9cee2;
  font-size: 0.62rem;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}
.hero-index-links a::before { content: "→"; margin-right: 0.35rem; color: var(--accent-2); }
.hero-index-links a:hover { color: #fff; transform: translateX(2px); }
.hero-quickbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.45rem 0 0.55rem;
  border-top: 1px solid rgba(115, 167, 213, 0.2);
  background: rgba(4, 14, 25, 0.92);
  backdrop-filter: blur(12px);
}
.hero-quickbar-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
.hero-quickbar a {
  display: grid;
  min-height: 58px;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 0.52rem;
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(74, 151, 216, 0.42);
  border-radius: 10px;
  background: rgba(11, 37, 58, 0.7);
  color: var(--text);
}
.hero-quickbar a:hover {
  border-color: rgba(50, 187, 255, 0.78);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 118, 199, 0.18), inset 0 1px rgba(210,240,255,.05);
}
.hero-quickbar svg { grid-row: 1 / 3; width: 21px; height: 21px; align-self: center; color: var(--accent-2); stroke-width: 1.7; }
.hero-quickbar strong { grid-column: 2; font-size: 0.78rem; }
.hero-quickbar span { grid-column: 2; margin-top: 0.1rem; color: var(--text-dim); font-size: 0.64rem; line-height: 1.25; }

@media (max-width: 899px) {
  .hero { height: auto; min-height: 880px; }
  .hero-layout { grid-template-columns: 1fr; align-content: center; padding-top: 110px; padding-bottom: 220px; }
  .hero-explore { display: none; }
  .hero-content { transform: none; }
  .hero-title { font-size: clamp(2.7rem, 11vw, 4.4rem); }
  .hero-quickbar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-quickbar a:nth-child(3), .hero-quickbar a:nth-child(4) { display: none; }
  .hero-quickbar a:last-child { grid-column: span 2; min-height: 54px; }
}

@media (min-width: 900px) and (min-height: 861px) {
  .hero-content { transform: translateY(-60px); }
  .hero-cta,
  .hero-trust { transform: translateY(-28px); }
}

@media (min-width: 900px) and (max-height: 860px) {
  .hero-layout { padding-top: 110px; padding-bottom: 120px; }
  .hero-content { align-self: start; transform: none; }
  .hero-badge { transform: translateY(24px); }
  .hero-title { transform: none; font-size: clamp(2.5rem, 3.8vw, 3.2rem); }
  .hero-cta,
  .hero-trust { transform: translateY(-14px); }
  .hero-title { font-size: clamp(2.8rem, 4.6vw, 3.75rem); margin-bottom: 1rem; }
  .hero-badge { margin-bottom: 0.55rem; }
  .hero-subtitle { font-size: 0.88rem; line-height: 1.45; margin-bottom: 0.78rem; }
  .hero-stock-compact { padding: 0.55rem 0.72rem; margin-bottom: 0.78rem; }
  .hero-cta { gap: 0.45rem; margin-bottom: 0.45rem; }
  .hero-cta .btn { padding: 0.7rem 0.78rem; font-size: 0.72rem; }
  .hero-trust { font-size: 0.7rem; }
  .hero-index-item button { padding-top: 0.58rem; padding-bottom: 0.58rem; }
  .hero-quickbar { padding-top: 0.45rem; padding-bottom: 0.55rem; }
  .hero-quickbar a { min-height: 57px; padding: 0.5rem 0.65rem; }
}

@media (min-width: 900px) and (max-height: 720px) {
  .hero-layout { padding-top: 68px; padding-bottom: 92px; }
  .hero-content { transform: translateY(-6px); }
  .hero-badge { margin-bottom: 0.35rem; font-size: 0.66rem; }
  .hero-title { font-size: clamp(2.7rem, 3.9vw, 3.25rem); line-height: 0.98; margin-bottom: 0.65rem; }
  .hero-subtitle { max-width: 450px; margin-bottom: 0.55rem; font-size: 0.78rem; line-height: 1.35; }
  .hero-stock-compact { gap: 0.08rem; padding: 0.42rem 0.65rem; margin-bottom: 0.48rem; }
  .hero-stock-compact strong { font-size: 0.88rem; }
  .hero-stock-compact em { font-size: 0.68rem; }
  .hero-stock-compact small { font-size: 0.65rem; }
  .hero-cta { margin-bottom: 0.35rem; }
  .hero-cta .btn { padding: 0.58rem 0.7rem; font-size: 0.68rem; }
  .hero-trust { gap: 0.4rem 0.8rem; font-size: 0.66rem; }
  .hero-index-item button { padding-top: 0.45rem; padding-bottom: 0.45rem; }
  .hero-quickbar a { min-height: 52px; padding: 0.42rem 0.58rem; }
}

@media (min-width: 900px) and (min-height: 661px) and (max-height: 720px) {
  .hero-layout { padding-top: 72px; padding-bottom: 110px; }
  .hero-content { transform: none; }
  .hero-badge { margin-bottom: 0.5rem; font-size: 0.72rem; }
  .hero-title { font-size: clamp(2.85rem, 4.2vw, 3.55rem); line-height: 1; margin-bottom: 0.85rem; }
  .hero-subtitle { max-width: 465px; margin-bottom: 0.72rem; font-size: 0.84rem; line-height: 1.4; }
  .hero-stock-compact { gap: 0.1rem; padding: 0.5rem 0.72rem; margin-bottom: 0.65rem; }
  .hero-stock-compact strong { font-size: 0.95rem; }
  .hero-stock-compact em { font-size: 0.72rem; }
  .hero-stock-compact small { font-size: 0.68rem; }
  .hero-cta { margin-bottom: 0.48rem; }
  .hero-cta .btn { padding: 0.66rem 0.76rem; font-size: 0.72rem; }
  .hero-trust { gap: 0.5rem 0.95rem; font-size: 0.7rem; }
  .hero-index-item button { padding-top: 0.52rem; padding-bottom: 0.52rem; }
  .hero-quickbar a { min-height: 55px; padding: 0.46rem 0.62rem; }
}

@media (max-width: 560px) {
  .hero { min-height: 820px; }
  .hero-bg img { object-fit: cover; object-position: 62% center; transform: none; filter: brightness(1.16) contrast(1.04); }
  .hero-overlay { background: linear-gradient(90deg, rgba(3,11,20,.93), rgba(3,11,20,.35)), linear-gradient(180deg, transparent 40%, #040a12 100%); }
  .hero-layout { padding-bottom: 215px; }
  .hero-title { font-size: clamp(2.45rem, 13vw, 3.4rem); }
  .hero-title { margin-bottom: 1.2rem; }
  .hero-subtitle { font-size: 0.96rem; }
  .hero-cta { grid-template-columns: 1fr; }
  .hero-cta .btn { grid-column: auto !important; width: 100%; justify-self: stretch; left: 0; }
  .hero-cta .btn:nth-child(2), .hero-cta .btn:nth-child(4) { width: 100%; }
  .hero-trust { font-size: 0.68rem; }
}

/* Ajuste de portada para monitores de escritorio: evita que el encabezado
   tape el logo y mantiene todo el bloque visible en una pantalla de 24\". */
@media (min-width: 1200px) and (max-height: 1100px) {
  .hero-layout {
    grid-template-columns: minmax(0, 620px) minmax(250px, 1fr);
    padding-top: 132px;
    padding-bottom: 112px;
  }
  .hero-content {
    max-width: 620px;
    align-self: start;
    transform: none;
  }
  .hero-badge {
    margin-bottom: 0.7rem;
    font-size: 0.68rem;
    white-space: nowrap;
  }
  .hero-title {
    max-width: 620px;
    font-size: clamp(2.7rem, 3.8vw, 3.65rem);
    line-height: 1.02;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    max-width: 505px;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.43;
  }
  .hero-stock-compact {
    margin-bottom: 0.78rem;
  }
  .hero-cta {
    margin-bottom: 0.38rem;
  }
  .hero-cta .btn {
    padding-top: 0.56rem;
    padding-bottom: 0.56rem;
    font-size: 0.72rem;
  }
  .hero-trust {
    font-size: 0.7rem;
  }
  .hero-quickbar a {
    min-height: 54px;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
  }
}

/* Portátiles: compensar la menor altura disponible sin alterar el monitor grande. */
@media (min-width: 1200px) and (max-width: 1499px) and (max-height: 850px) {
  .hero-layout {
    padding-top: 88px;
    padding-bottom: 100px;
  }
  .hero-title {
    max-width: 700px;
    font-size: clamp(3.35rem, 4.5vw, 3.65rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    margin-bottom: 0.72rem;
  }
  .hero-subtitle {
    max-width: 470px;
    margin-bottom: 0.5rem;
    font-size: 0.81rem;
    line-height: 1.32;
  }
  .hero-stock-compact {
    padding: 0.46rem 0.68rem;
    margin-bottom: 0.5rem;
  }
  .hero-stock-compact strong { font-size: 0.94rem; }
  .hero-stock-compact em { font-size: 0.71rem; }
  .hero-stock-compact small { font-size: 0.67rem; }
  .hero-cta {
    gap: 0.32rem;
    margin-bottom: 0.22rem;
  }
  .hero-cta .btn {
    padding: 0.42rem 0.55rem;
    font-size: 0.67rem;
  }
  .hero-trust {
    gap: 0.35rem 0.7rem;
    font-size: 0.62rem;
  }
}

/* Monitores grandes: recuperar escala visual sin afectar notebooks. */
@media (min-width: 1500px) and (max-height: 1100px) {
  .hero-title {
    max-width: 760px;
    font-size: clamp(3.7rem, 4.8vw, 4.35rem);
    line-height: 1;
  }
  .hero-subtitle {
    max-width: 540px;
    font-size: 0.98rem;
  }
  .hero-stock-compact strong { font-size: 1.02rem; }
  .hero-stock-compact em { font-size: 0.78rem; }
  .hero-stock-compact small { font-size: 0.74rem; }
  .hero-cta .btn { font-size: 0.76rem; }
  .hero-trust { font-size: 0.74rem; }
}

/* ---------- Soluciones por proceso ---------- */
.solutions-section {
  padding: 2rem 0 2.25rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(47,139,255,0.08), transparent 34%),
    var(--bg);
}
.solutions-section .section-head { max-width: 900px; margin-bottom: 1.25rem; }
.solutions-section .section-head h2 { margin-bottom: 0.5rem; font-size: clamp(1.65rem, 3vw, 2.15rem); }
.solutions-section .section-lead { font-size: 0.96rem; }
.solutions-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.solution-card {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(47,139,255,0.055), var(--surface) 52%);
  color: var(--text);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.solution-card:hover { transform: translateY(-4px); border-color: rgba(0,212,255,0.4); box-shadow: 0 16px 34px rgba(0,0,0,0.18); }
.solution-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 0.7rem;
  place-items: center;
  border: 1px solid rgba(47,139,255,0.32);
  border-radius: 11px;
  background: rgba(47,139,255,0.09);
  color: var(--accent-2);
}
.solution-icon svg { width: 19px; height: 19px; stroke-width: 1.7; }
.solution-card h3 { margin-bottom: 0.35rem; font-size: 0.98rem; }
.solution-card p { color: var(--text-dim); font-size: 0.81rem; line-height: 1.45; }
.solution-card strong { margin-top: auto; padding-top: 0.65rem; color: var(--accent-2); font-size: 0.77rem; }
@media (min-width: 600px) { .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .solutions-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (max-width: 1199px) and (min-width: 860px) {
  .main-nav ul { gap: 1.45rem; }
}
@media (max-width: 1399px) and (min-width: 860px) {
  .main-nav ul { gap: 1.2rem; }
  .nav-link { white-space: nowrap; }
}

/* ---------- Sections ---------- */
.section {
  padding: 3rem 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px);
  background-size: 21px 21px;
}
.section-alt {
  background-color: var(--bg-alt);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 0.7px, transparent 0.7px);
  background-size: 21px 21px;
}

.section-head { max-width: 760px; margin-bottom: 1.4rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 0.9rem; }
.section-lead { color: var(--text-dim); font-size: 1.05rem; }
.catalog-technical-intro { margin-top: 0.75rem; }
.model-picker-head .eyebrow { display: block; margin-bottom: 0.55rem; }
.model-picker-label {
  display: block;
  margin-top: 0.9rem;
  color: #dff4ff;
  font-size: 1.08rem;
  font-weight: 800;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 2.5rem; }

/* ---------- Specs checklist ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.25s, transform 0.25s;
}
.spec-item:hover { border-color: rgba(47,139,255,0.4); transform: translateX(4px); }
.spec-item svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }

/* ---------- Gallery ---------- */
.video-copy-top { max-width: 680px; margin-bottom: 1.2rem; }
.video-copy-top h3 { font-size: 1.15rem; margin: 0.4rem 0 0.5rem; }
.video-copy-top p { color: var(--text-dim); font-size: 0.9rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Video (tercera celda de la galería) ---------- */
.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video-switcher {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 0.25rem;
  width: max-content;
  max-width: calc(100% - 1rem);
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}
.video-switch {
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.video-switch span { color: var(--text-dimmer); font-weight: 600; }
.video-switch:hover { color: var(--text); }
.video-switch.active {
  color: #03111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.video-switch.active span { color: rgba(3, 17, 31, 0.72); }
.video-preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.video-preview:hover img { transform: scale(1.05); }
.video-preview-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.12), rgba(4, 7, 13, 0.72));
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(6, 10, 18, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  transition: transform 0.22s var(--ease), background 0.22s;
}
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
  transform: translate(-42%, -50%);
}
.video-preview:hover .video-play {
  background: rgba(47, 139, 255, 0.9);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-preview-label {
  position: absolute;
  right: 0.7rem;
  bottom: 0.6rem;
  left: 0.7rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ---------- Visor de video ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: min(5vw, 48px);
  background: rgba(4, 7, 13, 0.9);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.video-modal.open { display: flex; opacity: 1; }
.video-modal-dialog {
  width: min(880px, 94vw);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #05080e;
  box-shadow: var(--shadow);
}
.video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  background: var(--surface);
}
.video-modal-head strong { font-size: 0.92rem; }
.video-modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  place-items: center;
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.1); }
.video-modal video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  aspect-ratio: 16/9;
  background: #000;
}

/* ---------- Component grid (detalle técnico) ---------- */
.component-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.component-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1/1;
  text-align: left;
}
.component-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.component-card:hover img { transform: scale(1.08); }
.component-info {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 0.9rem 1rem 0.8rem;
  background: linear-gradient(0deg, rgba(6,10,18,0.95) 10%, transparent 100%);
}
.component-info h4 { font-size: 1rem; margin-bottom: 2px; }
.component-info p { font-size: 0.82rem; color: var(--text-dim); }

/* ---------- Bloques de herramental (estándar / stock / catálogo) ---------- */
.tool-block-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.tool-block-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.tool-block-head h3 { font-size: 1.18rem; margin-bottom: 0.3rem; }
.tool-block-head p { color: var(--text-dim); font-size: 0.94rem; }
.tool-block .dado-card { margin-bottom: 1.2rem; }

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.subsection-head { max-width: 680px; margin-bottom: 1.6rem; }
.subsection-head h3 { font-size: 1.35rem; margin-bottom: 0.45rem; }
.subsection-head p { color: var(--text-dim); font-size: 0.98rem; }

/* ---------- Dado card (matrices) ---------- */
.dado-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 2rem;
  align-items: center;
}
.dado-img button {
  display: block; width: 100%;
  max-width: 200px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.dado-img img { width: 100%; height: 100%; object-fit: contain; padding: 0.7rem; }
.dado-copy h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.standard-tool-card {
  width: 100%;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.25fr);
  gap: 2rem;
  padding: 1.6rem;
}
.standard-tool-card .dado-img button {
  width: 100%;
  max-width: none;
  aspect-ratio: 5 / 3;
  border: 1px solid var(--border-strong);
}
.standard-tool-card .dado-img img { padding: 0.8rem; }
.standard-tool-card .dado-copy h4 {
  margin: 0.8rem 0 1rem;
  font-size: 1.35rem;
}
.mini-list { margin: 0.4rem 0 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mini-list li { color: var(--text-dim); font-size: 0.95rem; padding-left: 1.1rem; position: relative; }
.mini-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
}
.link-preview {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: left;
  transition: border-color 0.25s;
}
.link-preview:hover { border-color: var(--accent); }
.link-preview picture { width: 56px; height: 56px; flex-shrink: 0; }
.link-preview img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; flex-shrink: 0; }
.link-preview span { font-size: 0.86rem; font-weight: 600; color: var(--accent-2); }

/* ---------- Tool grid (matrices / punzones cards) ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tool-card:hover { transform: translateY(-6px); border-color: rgba(47,139,255,0.35); }
.tool-img { display: block; width: 100%; aspect-ratio: 4/3; background: #fff; }
.tool-img img { width: 100%; height: 100%; object-fit: contain; padding: 1.1rem; }
.tool-body { padding: 0.9rem; }
.tool-body h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.7rem; }
.tool-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.dimension-photo {
  display: block;
  width: min(100%, 460px);
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 5/3;
}
.dimension-photo img { width: 100%; height: 100%; object-fit: contain; padding: 1.2rem; transition: transform 0.4s var(--ease); }
.dimension-photo:hover img { transform: scale(1.02); }
.dimension-caption {
  max-width: 620px;
  margin: 0.7rem auto 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Model grid (catálogo KRRASS) ---------- */
.model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.model-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.model-card:hover { transform: translateY(-6px); border-color: rgba(47,139,255,0.35); }
.model-card.featured {
  border-color: rgba(37, 211, 102, 0.5);
  background: linear-gradient(160deg, rgba(37,211,102,0.1), var(--surface) 55%);
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.12);
}
.model-card.other {
  border-style: dashed;
  border-color: var(--border-strong);
  justify-content: center;
}
.model-badge {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
}
.badge-stock { background: rgba(37, 211, 102, 0.16); color: #4be08a; border: 1px solid rgba(37,211,102,0.4); }
.badge-order { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border-strong); }
.model-card h4 { font-size: 1.02rem; }
.model-stats { display: flex; gap: 1rem; }
.model-stats div { display: flex; flex-direction: column; }
.model-stats strong { font-size: 1.25rem; font-weight: 800; }
.model-stats span { font-size: 0.68rem; color: var(--text-dimmer); }
.model-note { font-size: 0.78rem; color: var(--text-dim); }
.model-card .btn { margin-top: auto; }
.model-card .tool-tags { margin-top: -0.2rem; }

.section-head-wide { max-width: none; }
.section-head-wide .section-lead { max-width: 1240px; }

.modelos-highlights-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1.3rem;
}

.series-preview {
  flex: 1 1 360px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.6rem;
}
.series-preview-item {
  width: 100%;
  padding: 0.85rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.series-preview-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(15, 38, 61, 0.95);
  box-shadow: 0 12px 26px rgba(0, 20, 42, 0.3);
}
.series-preview-item strong { display: block; font-size: 0.92rem; color: var(--accent-2); margin-bottom: 0.3rem; }
.series-preview-item span { display: block; font-size: 0.82rem; color: var(--text-dim); line-height: 1.45; }
.series-preview-item-wide { grid-column: 1 / -1; }

.featured-stock-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  flex: 1 1 480px;
  padding: 0.8rem 1.1rem;
  background: linear-gradient(160deg, rgba(37,211,102,0.1), var(--surface) 55%);
  border: 1px solid rgba(37, 211, 102, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.12);
}
.featured-stock-info {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
}
.featured-stock-info .model-badge { align-self: center; }
.featured-stock-info .model-stats { justify-content: center; }
.featured-stock-info .model-stats div { align-items: center; }
.featured-stock-info .tool-tags { justify-content: center; }
.featured-stock-card h3 { font-size: 1.1rem; }
.featured-stock-photo {
  flex: 1 1 50%;
  display: block;
  width: auto;
  align-self: stretch;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(37, 211, 102, 0.35);
}
.featured-stock-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.featured-stock-photo:hover img { transform: scale(1.05); }

.model-picker {
  margin-top: 1.2rem;
  background: linear-gradient(160deg, rgba(47, 139, 255, 0.08), var(--surface) 55%);
  border: 1px solid rgba(47, 139, 255, 0.35);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: 0 20px 45px rgba(47, 139, 255, 0.1);
}
.picker-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}
.cnc-platform-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
#panel-hibrida .hybrid-series-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.picker-tab {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  flex-direction: column;
  gap: 0.18rem;
}
.picker-tab strong,
.picker-tab span { display: block; width: 100%; }
.picker-tab strong { color: inherit; font-size: 0.88rem; line-height: 1.2; }
.picker-tab span { color: var(--text-dimmer); font-size: 0.68rem; font-weight: 500; line-height: 1.25; }
.picker-tab.active span { color: rgba(6, 18, 31, 0.78); }
.picker-tab:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(47, 139, 255, 0.15);
}
.picker-tab.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: var(--accent-2);
  color: #06121f;
  box-shadow: 0 10px 24px rgba(0, 212, 255, 0.28);
  transform: translateY(-1px);
}
.hybrid-series-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}
.hybrid-series-tab {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 18, 0.48);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hybrid-series-tab strong { color: var(--text); font-size: 0.96rem; }
.hybrid-series-tab span { color: var(--text-dimmer); font-size: 0.72rem; }
.hybrid-series-tab:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hybrid-series-tab.active {
  border-color: var(--accent-2);
  background: linear-gradient(135deg, rgba(47, 139, 255, 0.24), rgba(0, 212, 255, 0.18));
  box-shadow: 0 10px 24px rgba(0, 157, 255, 0.16);
}
.hybrid-series-tab.active strong { color: var(--accent-2); }
.hybrid-series-tab.active span { color: var(--text); }
.picker-panel { margin-top: 1rem; }
.picker-panel p { color: var(--text-dim); font-size: 0.94rem; max-width: 640px; margin-bottom: 0.7rem; }
.picker-panel p.series-description {
  max-width: 1080px;
  margin: 0 0 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}
.picker-panel p.series-description strong {
  color: var(--accent-2);
}
.picker-note { font-size: 0.82rem; color: var(--text-dimmer); margin-top: 0.6rem; max-width: 640px; }
.model-picker-head h3 {
  font-size: 1.06rem;
  margin-bottom: 0.3rem;
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}
.model-picker-head p { color: var(--text-dim); font-size: 0.9rem; max-width: 620px; }
.model-picker-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 0.9rem;
}
.picker-field { display: flex; flex-direction: column; gap: 0.4rem; }
.picker-field label,
.picker-field-label { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); }
.picker-field select {
  font: inherit;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
}
.picker-field select:disabled { opacity: 0.5; }
.picker-fixed-value {
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 0.58rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.48);
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.08);
}
.picker-fixed-value strong { color: var(--accent-2); font-size: 0.9rem; }
.picker-fixed-value small { color: var(--text-dimmer); font-size: 0.7rem; }
.picker-panel p.hybrid-series-intro {
  max-width: none;
  margin: 0.75rem 0 0;
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.55;
}
.hybrid-options-section {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
}
.hybrid-options-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.hybrid-options-heading h5 { color: var(--text); font-size: 0.92rem; }
.hybrid-options-heading span { color: var(--text-dimmer); font-size: 0.72rem; }
.hybrid-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.hybrid-option-group-wide { grid-column: 1 / -1; }
.hybrid-option-group {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 18, 0.36);
}
.hybrid-option-group h6 {
  margin-bottom: 0.48rem;
  color: var(--accent-2);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hybrid-option-group select {
  width: 100%;
  min-height: 42px;
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
}
.hybrid-option-fixed {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0.58rem 0.7rem;
  border: 1px solid rgba(0, 212, 255, 0.36);
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.07);
  color: var(--text);
  font-size: 0.82rem;
}
.hybrid-option-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.hybrid-check-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.hybrid-check-card input {
  width: 15px;
  height: 15px;
  margin: 0 0.42rem 0 0;
  accent-color: var(--accent-2);
}
.hybrid-check-card:has(input:checked) {
  border-color: var(--accent-2);
  background: rgba(0, 212, 255, 0.1);
  color: var(--text);
}
.hybrid-selected-media {
  margin-top: 0.9rem;
}
.hybrid-selected-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.hybrid-option-media-card {
  height: 160px;
}
.hybrid-option-media-card img {
  padding: 0.45rem;
}
.wc67k-option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wc67k-pedal-group {
  display: flex;
  flex-direction: column;
}
.wc67k-selected-media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wc67k-option-media-card { height: 180px; }
.wc67k-option-media-card img { padding: 0.5rem; }
.wc67k-options-section input:disabled,
.wc67k-options-section select:disabled { cursor: not-allowed; }
.wc67k-options-section .hybrid-check-card:has(input:disabled) {
  cursor: default;
  opacity: 0.82;
}
.epp-media-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
.epp-media-card {
  grid-column: auto;
  height: 190px;
}
.epp-media-card-feature {
  grid-column: auto;
  height: 190px;
}
.epp-media-card img {
  padding: 0.5rem;
}
.epp-verification-note {
  margin: 0.25rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 190, 80, 0.34);
  border-radius: 8px;
  background: rgba(255, 190, 80, 0.08);
  color: var(--text-muted);
  font-size: 0.78rem;
}
.model-picker-controls-single { max-width: 420px; }
.picker-result-ctrl { font-size: 0.85rem; color: var(--accent-2); }
.model-picker-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.picker-result-info { display: flex; flex: 1 1 720px; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.picker-result-info h4 { font-size: 1.25rem; }
.picker-result-specs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.picker-result-specs:empty { display: none; }
.picker-result-specs > div {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(6, 10, 18, 0.45);
}
.picker-result-specs strong,
.picker-result-specs span { display: block; }
.picker-result-specs strong { color: var(--text-dimmer); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.picker-result-specs span { color: var(--text); font-size: 0.85rem; margin-top: 0.18rem; }
.mb8-picker-result { display: block; }
.mb8-result-top .picker-result-info { flex-basis: 100%; }
.mb8-unified-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.picker-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.picker-result-actions .btn {
  min-width: 235px;
  min-height: 42px;
  white-space: normal;
  text-align: center;
}
.btn-pdf {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: var(--accent-2);
  color: #06121f;
  box-shadow: 0 10px 24px rgba(0, 157, 255, 0.22);
}
.btn-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 157, 255, 0.32);
}
.mb8-gallery-section { margin-top: 1.1rem; }
.mb8-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.mb8-section-heading h5 {
  color: var(--text);
  font-size: 0.92rem;
}
.mb8-section-heading > span {
  color: var(--text-dimmer);
  font-size: 0.74rem;
}
.mb8-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  gap: 0.8rem;
}
.mb8-media-card {
  position: relative;
  min-width: 0;
  height: clamp(230px, 22vw, 300px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: zoom-in;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.mb8-media-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.65);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}
.mb8-media-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.65rem;
}
#mb8MachineImg {
  transform: scale(1.15);
  transform-origin: center center;
}
.mb8-media-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1.8rem 0.75rem 0.55rem;
  background: linear-gradient(to bottom, rgba(6, 10, 18, 0), rgba(6, 10, 18, 0.76));
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
}
.mb8-zoom-hint {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  padding: 0.32rem 0.52rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.62);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(7px);
}
.picker-panel p.mb8-media-note {
  max-width: none;
  margin: 0.7rem 0 0;
  color: var(--text-dimmer);
  font-size: 0.78rem;
}

.model-cta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.model-cta p { color: var(--text-dim); max-width: 520px; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s var(--ease);
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(47,139,255,0.42); box-shadow: 0 15px 34px rgba(12, 93, 163, 0.16); }

@media (min-width: 1200px) {
  .why-section .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.why-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(47,139,255,0.18), rgba(0,212,255,0.08));
  color: var(--accent-2);
  margin-bottom: 0.7rem;
}
.why-icon svg { width: 20px; height: 20px; }
.why-card h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.why-card p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Nosotros ---------- */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  align-items: center;
}
.nosotros-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0.6rem 0 1rem; }
.nosotros-copy p { color: var(--text-dim); margin-bottom: 0.9rem; font-size: 1.02rem; }
.nosotros-copy .mini-list { margin: 1rem 0 1.4rem; }
.nosotros-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; }
.nosotros-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Preguntas frecuentes ---------- */
.faq-section {
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.075) 0.7px, transparent 0.7px),
    radial-gradient(circle at 15% 0%, rgba(47,139,255,0.1), transparent 34%);
  background-size: 21px 21px, auto;
}
.faq-section .section-head { margin-bottom: 2.25rem; }
.faq-section .section-head h2 { margin-bottom: 1.25rem; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.faq-column { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  will-change: height;
  transition: border-color 0.28s ease-in-out, background 0.28s ease-in-out, box-shadow 0.28s ease-in-out;
}
.faq-item:hover {
  border-color: rgba(47,139,255,0.46);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.faq-item[open] {
  border-color: rgba(0,212,255,0.42);
  background: linear-gradient(145deg, rgba(47,139,255,0.09), var(--surface) 58%);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}
.faq-item summary {
  position: relative;
  min-height: 3.25rem;
  padding: 0.95rem 3.25rem 0.95rem 1.1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%; right: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.28s ease-in-out, border-color 0.28s ease-in-out;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-answer { padding: 0 1.1rem 1.05rem; }
.faq-answer p {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  animation: faqAnswerFade 0.28s ease-in-out both;
}
@keyframes faqAnswerFade {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, rgba(47,139,255,0.08), var(--surface) 58%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.faq-contact-copy { display: flex; flex-direction: column; gap: 0.28rem; }
.faq-contact strong { font-size: 1.05rem; }
.faq-contact span { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.faq-contact small { color: var(--muted); font-size: 0.76rem; letter-spacing: 0.015em; }
.faq-contact .btn { flex-shrink: 0; }
.faq-contact .btn { font-size: 1.08rem; padding: 0.9rem 1.45rem; }

@media (max-width: 559px) {
  .faq-item summary { min-height: 3rem; padding: 0.85rem 2.8rem 0.85rem 0.9rem; font-size: 0.88rem; }
  .faq-item summary::after { right: 1rem; }
  .faq-answer { padding: 0 0.9rem 0.95rem; }
  .faq-answer p { font-size: 0.84rem; line-height: 1.55; }
  .faq-contact { padding: 1.1rem; }
  .faq-contact .btn { width: 100%; text-align: center; }
}

/* ---------- Contact ---------- */
#contacto { padding: 2.2rem 0; }
#contacto .section-head { margin-bottom: 1rem; }
#contacto .btn { padding-top: 0.72rem; padding-bottom: 0.72rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.9rem;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.contact-website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.contact-actions .btn-block {
  width: 100%;
}
@media (min-width: 560px) {
  .contact-actions {
    flex-direction: row;
  }
  .contact-actions .btn-block {
    flex: 1 1 0;
    min-width: 0;
  }
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row-half { flex-direction: column; gap: 0.7rem; }
.form-row-half > div { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.86rem; font-weight: 600; color: var(--text-dim); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.85rem;
  font-size: 0.98rem;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,139,255,0.18);
}
.form-note { font-size: 0.8rem; color: var(--accent-2); min-height: 1.2em; }

.contact-info { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.info-card h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.info-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 0.5rem; }
.contact-prep-card ul { display: grid; gap: 0.32rem; color: var(--text-dim); font-size: 0.86rem; }
.contact-prep-card li { position: relative; padding-left: 1rem; }
.contact-prep-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 1.1rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding-bottom: 0.8rem;
}
.footer-brand p { color: var(--text-dim); font-size: 0.95rem; margin-top: 0.4rem; max-width: 320px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links h5, .footer-contact h5 { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dimmer); margin-bottom: 0.2rem; }
.footer-links a, .footer-contact a, .footer-contact span { color: var(--text-dim); font-size: 0.96rem; transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 0.7rem 0;
  text-align: center;
  color: var(--text-dimmer);
  font-size: 0.82rem;
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.footer-privacy-link { color: var(--text-dim); transition: color 0.2s; }
.footer-privacy-link:hover { color: var(--accent-2); }
.privacy-note {
  max-width: 760px;
  margin: 0.55rem auto 0;
  color: var(--text-dimmer);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ---------- WhatsApp float button ---------- */
.wa-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  color: #06210f;
  z-index: 400;
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: wa-ring 2.4s ease-out infinite;
  pointer-events: none;
}

/* ---------- Asistente virtual de ventas ---------- */
.sales-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 218px;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(89, 192, 255, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, #167fdc, #08b6df);
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 75, 143, 0.38), inset 0 1px rgba(255,255,255,.2);
  text-align: left;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s ease;
}
.sales-chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(0, 100, 180, 0.48), 0 0 18px rgba(0,212,255,.12); }
.sales-chat-launcher svg { width: 25px; height: 25px; flex: 0 0 auto; }
.sales-chat-launcher span,
.sales-chat-launcher strong,
.sales-chat-launcher small { display: block; }
.sales-chat-launcher strong { font-size: .82rem; }
.sales-chat-launcher small { margin-top: .05rem; color: rgba(239,249,255,.78); font-size: .62rem; font-weight: 600; }
.sales-chat-label-compact { display: none !important; }
.sales-chat-launcher.is-hidden { pointer-events: none; opacity: 0; transform: translateY(12px); }

@media (min-width: 900px) {
  .sales-chat-launcher { bottom: 97px; }
  .sales-chat-launcher.is-compact {
    bottom: 24px;
    width: 140px;
    min-width: 140px;
    gap: 0.52rem;
    padding: 0.68rem 0.85rem;
  }
  .sales-chat-launcher.is-compact .sales-chat-label-full,
  .sales-chat-launcher.is-compact small { display: none; }
  .sales-chat-launcher.is-compact .sales-chat-label-compact {
    display: block !important;
    line-height: 1.15;
  }
}

.sales-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  width: min(410px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 40px));
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(77, 174, 238, .38);
  border-radius: 18px;
  background: #f7fafc;
  box-shadow: 0 28px 70px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .28s ease, transform .28s var(--ease);
}
.sales-chat-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.sales-chat-head {
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  align-items: center;
  gap: .65rem;
  padding: .78rem .86rem;
  background: linear-gradient(135deg, #0a2038, #0c4268);
  color: #fff;
}
.sales-chat-brand { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(151,220,255,.6); border-radius: 10px; background: linear-gradient(135deg,#249cff,#075187); font-size: .82rem; font-weight: 900; }
.sales-chat-head > span strong,
.sales-chat-head > span small { display: block; }
.sales-chat-head > span strong { font-size: .86rem; }
.sales-chat-head > span small { color: #91bdd8; font-size: .64rem; font-weight: 600; }
.sales-chat-head button { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #dcedf8; font-size: 1.5rem; line-height: 1; transition: background .2s ease; }
.sales-chat-head button:hover { background: rgba(255,255,255,.1); }
.sales-chat-status { padding: .42rem .86rem; border-bottom: 1px solid #dbe5ed; background: #eef5f8; color: #506779; font-size: .66rem; font-weight: 700; }
.sales-chat-status span { display: inline-block; width: 7px; height: 7px; margin-right: .3rem; border-radius: 50%; background: #27c76f; box-shadow: 0 0 0 3px rgba(39,199,111,.12); }
.sales-chat-fallback { padding: 1rem 1.2rem; background: rgba(255,255,255,0.04); border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }
.sales-chat-fallback p { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--text-dim); }
#salesChatIframe { width: 100%; height: 100%; border: 0; background: #fff; }

@media (max-width: 560px) {
  .sales-chat-launcher { right: 14px; bottom: 14px; min-width: 0; padding: .82rem; }
  .sales-chat-launcher span { display: none; }
  .sales-chat-panel { inset: 0; width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
}
@keyframes wa-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(4, 7, 13, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 5vh 5vw;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
.lightbox img.lightbox-img-compact {
  width: auto;
  max-width: min(680px, 72vw);
  max-height: 64vh;
  object-fit: contain;
}
.lightbox-caption { color: var(--text-dim); font-size: 0.92rem; max-width: 640px; text-align: center; }
.lightbox-close {
  position: absolute; top: 20px; right: 26px;
  font-size: 2.2rem;
  color: var(--text);
  line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  transition: background 0.2s, transform 0.2s;
}
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav:hover { background: rgba(255,255,255,0.14); }
.lightbox-prev { left: 3vw; }
.lightbox-next { right: 3vw; }
@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.lightbox-counter { color: var(--text-dimmer); font-size: 0.8rem; }

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

@media (min-width: 560px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .component-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .series-preview { grid-template-columns: repeat(2, 1fr); }
  .form-row-half { flex-direction: row; }
  .contact-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form > .btn-block { width: auto; min-width: 280px; align-self: flex-start; }
  #panel-wc67k .model-picker-controls,
  #panel-mb8 .model-picker-controls,
  #panel-hibrida .model-picker-controls,
  #panel-electrica .model-picker-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-picker-controls-single { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 719px) {
  .picker-result-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hybrid-option-grid { grid-template-columns: 1fr; }
  .hybrid-options-heading { align-items: flex-start; flex-direction: column; gap: 0.15rem; }
  .hybrid-selected-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hybrid-option-media-card { height: 145px; }
  .epp-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epp-media-card,
  .epp-media-card-feature { grid-column: auto; height: 165px; }
  .mb8-result-top { flex-direction: column; }
  .picker-result-actions { align-items: stretch; flex-direction: column; }
  .picker-result-actions .btn { width: 100%; }
  .mb8-section-heading { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .mb8-media-grid { grid-template-columns: 1fr; }
  .mb8-media-card { height: 220px; }
}

@media (min-width: 720px) and (max-width: 1050px) {
  .mb8-media-grid { grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.9fr); }
  .hybrid-selected-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .epp-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .epp-media-card,
  .epp-media-card-feature { grid-column: auto; height: 190px; }
}

@media (min-width: 560px) and (max-width: 899px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid .video-wrap { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .video-switcher {
    width: calc(100% - 1.25rem);
    max-width: none;
  }
  .video-switch {
    flex: 1;
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
    text-align: center;
  }
  .video-play { width: 56px; height: 56px; }
  .video-preview-label { font-size: 0.84rem; }
}

@media (max-width: 559px) {
  .picker-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker-tab { min-height: 62px; padding: 0.7rem 0.5rem; }
  .model-picker-controls,
  .picker-field { min-width: 0; }
  .picker-field select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .hybrid-series-tabs { grid-template-columns: 1fr; }
  .hybrid-series-tab {
    min-height: 58px;
    align-items: flex-start;
    padding-inline: 1rem;
    text-align: left;
  }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (min-width: 720px) {
  .dado-card { grid-template-columns: 280px 1fr; }
  .dado-card.standard-tool-card { grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.25fr); }
}

@media (max-width: 719px) {
  .standard-tool-card { grid-template-columns: 1fr; gap: 1.2rem; padding: 1rem; }
}

@media (min-width: 860px) {
  .main-nav {
    position: static; transform: none; background: none; box-shadow: none;
    padding: 0; height: auto; flex-direction: row;
  }
  .main-nav ul { flex-direction: row; }
  .menu-toggle { display: none; }
}

@media (max-width: 859px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: rgba(9, 14, 24, 0.98);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 490;
    padding: 100px 2rem 2rem;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.6rem; }
  .nav-link { font-size: 1.05rem; }
  .menu-toggle { display: flex; }
  .header-actions .btn-whatsapp span { display: none; }
  .header-actions .btn-whatsapp { padding: 0.7rem; border-radius: 50%; }
}

@media (min-width: 900px) {
  .specs-grid { grid-template-columns: repeat(5, 1fr); }
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .component-grid { grid-template-columns: repeat(4, 1fr); }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr); }
  .contact-info { grid-template-columns: 1fr; align-content: start; }
  .nosotros-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .faq-contact { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
  .footer-links { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 0.9rem; row-gap: 0.4rem; justify-self: center; }
  .footer-links h5 { grid-column: 1 / -1; text-align: center; }
  .footer-contact { justify-self: end; }
}

@media (min-width: 1100px) {
  .tool-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-offer { grid-template-columns: repeat(4, 1fr); max-width: none; }
}

@media (min-width: 1280px) {
  .model-grid { grid-template-columns: repeat(5, 1fr); }
  .component-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Accesibilidad: foco visible ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Respeta preferencia de movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .wa-float::after { display: none; }
}

/* ---------- Guía de selección inspirada en la presentación técnica KRRASS ---------- */
.selection-guide {
  padding-block: 3rem;
  border-block: 1px solid var(--border);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px),
    radial-gradient(circle at 50% 0%, rgba(0, 174, 239, 0.07), transparent 30%);
  background-size: 21px 21px, auto;
}
.selection-guide-head { max-width: 820px; margin: 0 auto 2.2rem; text-align: center; }
.selection-guide-head .eyebrow { display: block; margin-bottom: 0.55rem; }
.selection-guide-head h2 { color: var(--accent-2); font-size: clamp(2.15rem, 4vw, 3.05rem); line-height: 1; margin-bottom: 0.65rem; }
.selection-guide-head p { max-width: 700px; margin: 0 auto; color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }
.selection-intro { max-width: 1080px; margin: 0 auto 1.15rem; }
.selection-intro h3 { max-width: none; margin-bottom: 0.45rem; font-size: clamp(1.55rem, 2.7vw, 2.05rem); line-height: 1.05; white-space: nowrap; }
.selection-intro p { max-width: none; margin: 0; color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; white-space: nowrap; }
.selection-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 1.5rem; }
.selection-step {
  display: block;
  min-height: 176px;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
}
.selection-step-number { display: block; margin-bottom: 0.75rem; color: #06a9ea; font-size: 1.75rem; line-height: 1; letter-spacing: -0.06em; }
.selection-step h4 { margin-bottom: 0.45rem; font-size: 1rem; }
.selection-step p { color: var(--text-dim); font-size: 0.86rem; line-height: 1.55; }
.selection-information { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.selection-left-column,
.selection-right-column { display: grid; gap: 0.9rem; }
.selection-formula-card,
.selection-material-card,
.selection-copy-card {
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
}
.selection-formula-card { padding: 1.1rem 1.2rem; }
.selection-formula-card > span { color: #9cc9e1; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.selection-formula { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0.85rem 0 1rem; color: #f5f8fb; }
.selection-formula > b { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.selection-fraction { display: grid; justify-items: center; font-style: normal; }
.selection-fraction strong { padding: 0 0.65rem 0.3rem; border-bottom: 2px solid #c4d0dc; font-size: clamp(1.55rem, 2.8vw, 2.45rem); }
.selection-fraction i { padding-top: 0.2rem; font-size: 1.55rem; font-style: normal; font-weight: 800; }
.selection-symbols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
.selection-symbols div { min-height: 70px; padding: 0.65rem 0.7rem; border: 1px solid rgba(59, 119, 159, 0.34); border-radius: 8px; background: #08121e; }
.selection-symbols b { display: block; margin-bottom: 0.35rem; color: var(--accent-2); font-size: 0.72rem; }
.selection-symbols span { color: #bdc7d2; font-size: 0.72rem; line-height: 1.35; }
.selection-quick-rule { display: grid; gap: 0.3rem; margin-top: 0.7rem; padding: 0.7rem 0.8rem; border: 1px solid rgba(0, 174, 239, 0.45); border-radius: 8px; background: rgba(0, 113, 183, 0.13); }
.selection-quick-rule b { font-size: 0.83rem; }
.selection-quick-rule span { color: #c7d2dc; font-size: 0.8rem; line-height: 1.4; }
.selection-material-card { padding: 1rem 1.2rem; }
.selection-material-card h4,
.selection-copy-card h4 { margin-bottom: 0.7rem; font-size: 1.15rem; }
.selection-material-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }
.selection-material-grid div { min-height: 70px; padding: 0.65rem 0.7rem; border: 1px solid rgba(137, 164, 187, 0.25); border-radius: 8px; display: flex; flex-direction: column; justify-content: center; }
.selection-material-grid b { font-size: 1.35rem; }
.selection-material-grid span { margin-top: 0.2rem; color: #c7d2dc; font-size: 0.72rem; line-height: 1.25; font-weight: 700; }
.selection-copy-card { padding: 1.15rem 1.25rem; }
.selection-copy-card p { color: #bdc7d2; font-size: 0.86rem; line-height: 1.55; }
.selection-copy-card p + p { margin-top: 0.65rem; }
.selection-advice { padding: 0.8rem 1rem; border: 1px solid rgba(0, 174, 239, 0.5); border-radius: 8px; background: rgba(0, 113, 183, 0.13); color: #c7d2dc; font-size: 0.84rem; line-height: 1.45; }
.selection-advice b { color: #f6f8fa; }
.selection-calculator-open { width: 100%; border-radius: 5px; }

/* Calculadora modal */
.calculator-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 4, 8, 0.86);
  backdrop-filter: blur(8px);
}
.calculator-modal.open { display: flex; }
.calculator-modal-dialog {
  position: relative;
  min-height: 0;
  width: min(1060px, calc(100vw - 2rem));
  height: min(760px, calc(100vh - 2rem));
  max-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(480px, 1.22fr);
  overflow: hidden;
  border: 1px solid rgba(199, 219, 234, 0.45);
  border-radius: 14px;
  background: #12171c;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}
.calculator-modal-close { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; background: #1d252c; color: #fff; font-size: 1.45rem; }
.calculator-modal-close:hover { background: #27343e; }
.calculator-diagram { position: relative; min-height: 0; height: 100%; overflow: hidden; background: #dbeaf3; }
.calculator-diagram img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}
.calculator-diagram-legend { position: absolute; right: 0.7rem; bottom: 0.7rem; left: 0.7rem; display: flex; justify-content: center; gap: 1.15rem; padding: 0.42rem 0.5rem; border-top: 1px solid rgba(30, 66, 88, 0.28); background: rgba(219, 234, 243, 0.84); color: #35566b; font-size: 0.72rem; font-weight: 700; }
.calculator-diagram-legend b { color: #0877b6; font-size: 0.9rem; }
.calculator-modal-content { min-height: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.calculator-modal-scroll { min-height: 0; padding: 1.35rem 2.3rem 0.45rem; overflow-y: auto; }
.calculator-modal-scroll h3 { max-width: 620px; margin-top: 0.45rem; font-size: clamp(1.8rem, 3.2vw, 2.65rem); line-height: 1.05; }
.calculator-modal-scroll > p { margin: 0.6rem 0 0.95rem; color: var(--text-dim); font-size: 0.88rem; line-height: 1.45; }
.calculator-modal-scroll > p.calculator-help {
  margin-top: -0.35rem;
  padding: 0.55rem 0.7rem;
  border-left: 2px solid var(--accent-2);
  background: rgba(0, 212, 255, 0.06);
  color: #c9d7e7;
  font-size: 0.8rem;
  line-height: 1.4;
}
.tonnage-calculator { min-width: 0; }
.calculator-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.calculator-material-field { grid-column: 1 / -1; }
.calculator-fields label { min-width: 0; }
.calculator-fields label > span { display: block; margin-bottom: 0.45rem; color: #d6dde5; font-size: 0.8rem; font-weight: 700; }
.calculator-fields select,
.calculator-fields input { width: 100%; min-height: 46px; padding: 0.65rem 0.8rem; border: 1px solid #3a444d; border-radius: 7px; background: #1b2127; color: #f5f7f9; font: inherit; font-size: 0.86rem; }
.calculator-fields select { color-scheme: dark; }
.calculator-fields select:focus,
.calculator-fields input:focus { border-color: var(--accent-2); outline: 2px solid rgba(0, 174, 239, 0.15); }
.calculator-actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.65rem; }
.calculator-auto-hint { color: var(--accent-2); font-size: 0.78rem; font-weight: 700; }
.calculator-result { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-top: 0.65rem; padding: 0.75rem 1rem; border: 1px solid rgba(0, 174, 239, 0.42); border-radius: 9px; background: #08131f; }
.calculator-result div { display: grid; gap: 0.35rem; }
.calculator-result span { color: #b9c5cf; font-size: 0.76rem; font-weight: 700; }
.calculator-result strong { color: var(--accent-2); font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.1; }
.calculator-result p { grid-column: 1 / -1; padding-top: 0.65rem; border-top: 1px solid rgba(255,255,255,0.1); color: #b9c5cf; font-size: 0.8rem; }
.calculator-result p b { color: #fff; }
.calculator-note { margin-top: 0.35rem !important; color: #8f9ba6 !important; font-size: 0.7rem !important; line-height: 1.35 !important; }
.calculator-note b { color: #dceaf3; }
.calculator-modal-content #calcWhatsapp { width: auto; align-self: stretch; flex: 0 0 auto; margin: 0 2.3rem 0.75rem; min-height: 42px; padding: 0.62rem 1rem; font-size: 0.9rem; }
body.calculator-open { overflow: hidden; }

@media (max-width: 900px) {
  .selection-guide-head,
  .selection-intro { grid-template-columns: 1fr; row-gap: 0.75rem; }
  .selection-intro h3 { white-space: normal; }
  .selection-intro p { white-space: normal; }
  .selection-guide-head p,
  .selection-intro p { grid-column: 1; grid-row: auto; max-width: 720px; }
  .selection-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .selection-information { grid-template-columns: 1fr; }
  .calculator-modal-dialog { grid-template-columns: 1fr; }
  .calculator-diagram { display: none; }
  .calculator-diagram-legend { display: none; }
  .calculator-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .selection-guide { padding-block: 3.5rem; }
  .selection-guide-head { margin-bottom: 2rem; }
  .selection-guide-head h2 { font-size: 2.35rem; }
  .selection-intro h3 { font-size: 2rem; }
  .selection-steps { grid-template-columns: 1fr; }
  .selection-step { display: grid; grid-template-columns: 48px 1fr; gap: 0.8rem; min-height: 0; padding: 1.2rem 1rem; }
  .selection-step-number { margin-bottom: 0; }
  .selection-step-number { font-size: 1.55rem; }
  .selection-step p { font-size: 0.88rem; }
  .selection-formula-card,
  .selection-copy-card { padding: 1.3rem; }
  .selection-formula { gap: 0.6rem; }
  .selection-formula > b { font-size: 1.7rem; }
  .selection-fraction strong { font-size: 1.55rem; }
  .selection-symbols { grid-template-columns: repeat(2, 1fr); }
  .selection-material-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .selection-material-grid div { min-height: 90px; padding: 0.8rem; }
  .calculator-modal { padding: 0; align-items: stretch; }
  .calculator-modal-dialog { width: 100%; height: 100dvh; max-height: 100dvh; min-height: 0; grid-template-rows: minmax(0, 1fr); border: 0; border-radius: 0; }
  .calculator-modal-content { padding: 0; }
  .calculator-modal-scroll { padding: 4.5rem 1.1rem 0.75rem; }
  .calculator-modal-scroll h3 { font-size: 2rem; }
  .calculator-modal-content #calcWhatsapp { width: 88%; align-self: center; margin: 0 0 calc(0.75rem + env(safe-area-inset-bottom)); }
  .calculator-fields { grid-template-columns: 1fr; }
  .calculator-material-field { grid-column: auto; }
  .calculator-actions { align-items: stretch; flex-direction: column; }
  .calculator-actions .btn { width: 100%; }
  .calculator-result { grid-template-columns: 1fr; }
  .calculator-result p { grid-column: auto; }
}
