/* ==========================================================================
   S&A — Sistemas & Automatización + Lex Creative Studio
   Estética dual armónica: precisión técnica S&A + morado intenso y negro Lex
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-subtle: #f5f8fc;
  --bg-surface: #ffffff;
  --bg-dark: #071426;
  --bg-dark-card: #0d2038;

  --ink: #072247;
  --ink-secondary: #475569;
  --ink-muted: #64748b;
  --ink-on-dark: #f8fafc;
  --ink-on-dark-muted: #94a3b8;

  /* Paleta técnica S&A */
  --sa-navy: #072247;
  --sa-teal: #0d5c6b;
  --sa-cyan: #0ea5e9;
  --sa-green: #2ecc71;
  --sa-green-dark: #1da851;
  --primary: #0d5c6b;
  --primary-hover: #072247;
  --primary-soft: #ecfeff;

  /* Paleta Lex Creative Studio */
  --lex-black: #000000;
  --lex-surface: #0d0a14;
  --lex-purple: #7b2cbf;
  --lex-purple-bright: #9333ea;
  --lex-lavender: #e9d5ff;
  --lex-border: rgba(147, 51, 234, 0.35);

  /* Acentos por división */
  --pos-accent: #16a34a;
  --ind-accent: #d97706;
  --hosp-accent: #e11d48;
  --edge-accent: #0284c7;

  /* WhatsApp */
  --wa: #25d366;
  --wa-hover: #1da851;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-dark: rgba(148, 163, 184, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(7, 34, 71, 0.05);
  --shadow-md: 0 12px 32px rgba(7, 34, 71, 0.09);
  --shadow-lg: 0 24px 60px rgba(7, 34, 71, 0.14);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --container: 1180px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--sa-navy);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
}

.skip-link:focus {
  left: 12px;
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.026em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 4.3vw, 3.55rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.48rem);
  font-weight: 700;
}

h3 {
  font-size: 1.22rem;
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(120deg, var(--sa-teal) 0%, var(--lex-purple-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Emblemas oficiales S&A + Lex Creative (sin alterar logos) ---------- */
.logos-lockup {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.sa-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--sa-navy);
  border: 2px solid var(--sa-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', var(--font-display), sans-serif;
  font-weight: 900;
  font-size: 0.84rem;
  letter-spacing: -0.02em;
  box-shadow: 0 3px 8px rgba(7, 34, 71, 0.16);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.sa-avatar span {
  color: var(--sa-green);
}

.sa-avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 0.74rem;
}

.sa-avatar-xs {
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
  border-width: 1.5px;
}

.lex-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #000000;
  border: 2px solid var(--lex-purple-bright);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -10px;
  box-shadow: 0 3px 8px rgba(123, 44, 191, 0.25);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.lex-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lex-avatar-xs {
  width: 28px;
  height: 28px;
  margin-left: 0;
  border-width: 1.5px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.54rem 1.05rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 0.96rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(120deg, var(--sa-navy), var(--sa-teal));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(7, 34, 71, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 26px rgba(7, 34, 71, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--sa-teal);
}

.btn-wa {
  background: var(--wa);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.26);
}

.btn-wa:hover {
  background: var(--wa-hover);
  transform: translateY(-1px);
}

.btn-qr {
  background: var(--lex-black);
  color: var(--lex-lavender);
  border-color: var(--lex-border);
}

.btn-qr:hover {
  background: var(--lex-purple);
  color: #ffffff;
  border-color: var(--lex-purple);
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(7, 34, 71, 0.06);
}

.nav-container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sa-navy);
}

.brand-collab {
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.brand-collab span {
  color: var(--lex-purple);
  font-weight: 700;
}

.brand-light .brand-text strong {
  color: #ffffff;
}

.brand-light .brand-text small {
  color: var(--lex-lavender);
}

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

.nav-links a {
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--sa-teal);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 1.2rem 0 1.6rem;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu a:not(.btn) {
  padding: 0.45rem 0;
  font-weight: 600;
  color: var(--ink-secondary);
}

.mobile-menu-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 5.5vw, 4.8rem) 0 clamp(3.4rem, 6vw, 4.8rem);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(13, 92, 107, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(123, 44, 191, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(13, 92, 107, 0.08), rgba(123, 44, 191, 0.1));
  border: 1px solid rgba(123, 44, 191, 0.22);
  color: var(--sa-navy);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sa-green);
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.24);
}

.hero-lead {
  margin: 1.3rem 0 2rem;
  font-size: 1.05rem;
  color: var(--ink-secondary);
  max-width: 56ch;
}

.hero-lead strong {
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.3rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.metric-item strong {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sa-navy);
}

.metric-item span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Hero Visual + Tarjetas Duales */
.hero-visual {
  position: relative;
}

.hero-media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.float-card {
  position: absolute;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.float-card-top {
  top: -18px;
  left: -18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.float-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--sa-navy);
}

.float-sub {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.float-card-lex {
  bottom: -20px;
  right: 16px;
  background: var(--lex-black);
  border: 1px solid var(--lex-border);
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(123, 44, 191, 0.28);
}

.float-lex-thumb {
  width: 52px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-lex-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.float-lex-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.float-lex-sub {
  font-size: 0.73rem;
  color: var(--lex-lavender);
}

/* ---------- Franja de Ecosistema ---------- */
.ecosystem-strip {
  padding: 1.9rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.strip-label {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.ecosystem-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.eco-pill {
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.eco-pill-lex {
  background: var(--lex-black);
  color: var(--lex-lavender);
  border-color: var(--lex-purple);
}

/* ---------- Secciones generales ---------- */
.section {
  padding: clamp(4.2rem, 7vw, 6rem) 0;
}

.section-tinted {
  background: var(--bg-subtle);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: var(--ink-on-dark);
}

.section-kicker {
  display: inline-block;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sa-teal);
  margin-bottom: 0.6rem;
}

.kicker-light {
  color: #38bdf8;
}

.section-header {
  margin-bottom: 2.4rem;
}

.section-header-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 2rem;
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.section-desc {
  margin: 0.75rem 0 0;
  color: var(--ink-secondary);
  font-size: 1rem;
}

.desc-light {
  color: var(--ink-on-dark-muted);
}

/* ---------- Filtros y Bento Grid de 6 Divisiones ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.56rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--sa-teal);
  color: var(--sa-teal);
}

.filter-btn.active {
  background: var(--sa-navy);
  color: #ffffff;
  border-color: var(--sa-navy);
}

.filter-btn-lex:hover {
  border-color: var(--lex-purple);
  color: var(--lex-purple);
}

.filter-btn-lex.active {
  background: linear-gradient(120deg, var(--lex-black), var(--lex-purple));
  border-color: var(--lex-purple);
  color: #ffffff;
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.45rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 92, 107, 0.35);
}

.service-card.is-hidden {
  display: none;
}

.services-bento.is-filtered .service-card-featured,
.services-bento.is-filtered .service-card-compact,
.services-bento.is-filtered .service-card-wide {
  grid-column: span 6;
}

.services-bento.is-filtered .service-card-wide {
  display: flex;
  flex-direction: column;
}

.services-bento.is-filtered .wide-visual-side {
  width: 100%;
  max-height: 220px;
}

.service-card-featured {
  grid-column: span 6;
}

.service-card-compact {
  grid-column: span 4;
  padding: 1.8rem;
}

.service-card-wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

/* Estética dedicada Lex Creative Studio (Negro + Morado Intenso) */
.service-card-lex {
  background: linear-gradient(165deg, #000000 0%, #160926 100%);
  border: 1px solid var(--lex-border);
  color: #f3e8ff;
}

.service-card-lex:hover {
  border-color: var(--lex-purple-bright);
  box-shadow: 0 18px 42px rgba(123, 44, 191, 0.24);
}

.service-visual {
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.service-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-visual-lex {
  background: #000000;
  border-bottom: 1px solid rgba(147, 51, 234, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  aspect-ratio: 16 / 9;
}

.service-visual-lex img.lex-official-logo {
  width: auto;
  height: 100%;
  max-height: 195px;
  aspect-ratio: auto;
  object-fit: contain;
}

.service-card:hover .service-visual img:not(.lex-official-logo) {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.34rem 0.78rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-primary {
  background: rgba(7, 34, 71, 0.9);
  color: #ffffff;
}

.badge-lex {
  background: linear-gradient(90deg, var(--lex-purple), var(--lex-purple-bright));
  color: #ffffff;
}

.service-body {
  padding: 1.75rem 1.85rem 1.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-lex h3 {
  color: #ffffff;
}

.service-card-lex p {
  color: #d8b4fe;
}

.service-meta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sa-teal);
  margin-bottom: 0.45rem;
}

.meta-lex { color: #c084fc; }
.meta-pos { color: var(--pos-accent); }
.meta-ind { color: var(--ind-accent); }
.meta-hosp { color: var(--hosp-accent); }
.meta-edge { color: var(--edge-accent); }

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--sa-teal);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.icon-pos { background: #dcfce7; color: var(--pos-accent); }
.icon-ind { background: #fef3c7; color: var(--ind-accent); }
.icon-hosp { background: #ffe4e6; color: var(--hosp-accent); }

.accent-pos { border-top: 3px solid var(--pos-accent); }
.accent-ind { border-top: 3px solid var(--ind-accent); }
.accent-hosp { border-top: 3px solid var(--hosp-accent); }

.service-card h3 {
  margin-bottom: 0.65rem;
}

.service-card p {
  margin: 0 0 1.05rem;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.service-bullets {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-bullets li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.87rem;
  color: var(--ink-secondary);
}

.service-bullets li strong {
  color: var(--ink);
}

.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sa-teal);
}

.bullets-lex li {
  color: #e5e7eb;
}

.bullets-lex li strong {
  color: #ffffff;
}

.bullets-lex li::before {
  background: var(--lex-purple-bright);
}

.service-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.footer-lex {
  border-top-color: rgba(147, 51, 234, 0.28);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--sa-teal);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.link-btn-lex {
  color: #d8b4fe;
}

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

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

/* Tarjeta 6 horizontal (Control, Electrónica y Edge AI) */
.wide-visual-side {
  overflow: hidden;
  background: var(--bg-subtle);
}

.wide-visual-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-main {
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.edge-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.edge-pills span {
  padding: 0.36rem 0.78rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 600;
}

.wide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Sección Oscura: Sistemas en Acción ---------- */
.scenario-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.2rem;
}

.scenario-tab {
  padding: 0.68rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-on-dark-muted);
  font-size: 0.91rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-tab:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
}

.scenario-tab.active {
  background: linear-gradient(120deg, var(--sa-teal), var(--lex-purple));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(123, 44, 191, 0.32);
}

.pipeline-stage {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.pipeline-nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.pipe-node {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.pipe-node:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.pipe-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: #38bdf8;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pipe-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sa-green);
  box-shadow: 0 0 10px var(--sa-green);
}

.pipe-node h3 {
  font-size: 1.04rem;
  margin-bottom: 0.45rem;
  color: #ffffff;
}

.pipe-node p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-on-dark-muted);
  line-height: 1.5;
}

.pipe-tag {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.24rem 0.6rem;
  border-radius: 6px;
  background: rgba(147, 51, 234, 0.2);
  color: #e9d5ff;
  font-size: 0.72rem;
}

.pipeline-comparison {
  margin-top: 1.7rem;
  padding-top: 1.45rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
}

.compare-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.compare-pill {
  padding: 0.52rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
}

.compare-before {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.compare-after {
  background: rgba(46, 204, 113, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(46, 204, 113, 0.32);
}

.compare-arrow {
  color: var(--ink-on-dark-muted);
  font-weight: 700;
}

.compare-impact {
  font-size: 0.89rem;
  color: #cbd5e1;
}

/* ---------- Simulador de Ahorro ---------- */
.calc-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

.calc-controls {
  padding: clamp(2rem, 4vw, 3rem);
}

.calc-intro {
  margin: 0.75rem 0 1.9rem;
  color: var(--ink-secondary);
}

.slider-group {
  margin-bottom: 1.6rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.slider-header label,
.slider-label-static {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.slider-label-static {
  margin-bottom: 0.7rem;
}

.slider-val {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sa-teal);
  background: var(--primary-soft);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--sa-teal);
  cursor: pointer;
}

.level-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.level-pill {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.level-pill.active {
  background: var(--sa-navy);
  border-color: var(--sa-navy);
  color: #ffffff;
}

.calc-results {
  background: linear-gradient(155deg, var(--sa-navy) 0%, #102a49 60%, #1c1033 100%);
  color: #ffffff;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-badge {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sa-green);
  margin-bottom: 0.8rem;
}

.result-primary {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.result-number {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.result-unit {
  font-size: 0.98rem;
  color: #cbd5e1;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.result-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
}

.result-box strong {
  display: block;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.result-box span {
  font-size: 0.78rem;
  color: #94a3b8;
}

.result-note {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

/* ---------- Proceso ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.process-step {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.45rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--sa-teal);
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 1.05rem;
}

.process-step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.process-step p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-secondary);
}

/* ---------- Casos ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.95rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.case-sector {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.case-metric {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sa-teal);
  line-height: 1;
  margin-bottom: 0.85rem;
}

.case-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
}

.case-card p {
  margin: 0 0 1.35rem;
  font-size: 0.91rem;
  color: var(--ink-secondary);
  flex: 1;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.case-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

/* ---------- Contacto, Canales y QR ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: clamp(2rem, 4.5vw, 3.6rem);
  align-items: start;
}

.contact-lead {
  margin: 0.9rem 0 1.5rem;
  color: var(--ink-secondary);
}

.contact-direct-cards {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.channel-card:hover {
  border-color: var(--sa-teal);
  transform: translateY(-2px);
}

.channel-wa {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.channel-wa:hover {
  border-color: var(--wa);
}

.channel-email {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.channel-email:hover {
  border-color: var(--sa-teal);
}

.channel-email .channel-tag {
  color: var(--sa-navy);
}

.channel-tag {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sa-teal);
}

.channel-wa .channel-tag {
  color: var(--wa-hover);
}

.channel-card strong {
  font-size: 1rem;
  color: var(--ink);
}

.channel-card small {
  font-size: 0.81rem;
  color: var(--ink-muted);
}

/* Bloque de QR en contacto */
.qr-showcase {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.qr-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.qr-showcase-header h3 {
  font-size: 1rem;
}

.qr-showcase-header span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.qr-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.qr-box-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sa-navy);
}

.qr-box img {
  width: 100%;
  max-width: 112px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
}

.qr-box span {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.qr-box-lex {
  background: #0d0a14;
  border-color: var(--lex-border);
}

.qr-box-lex .qr-box-title {
  color: var(--lex-lavender);
}

.qr-box-lex img {
  background: #111111;
  padding: 0;
  aspect-ratio: auto;
  max-height: 112px;
  object-fit: contain;
}

.qr-box-lex span {
  color: #c084fc;
}

/* Formulario */
.contact-form-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-md);
}

.form-head {
  margin-bottom: 1.35rem;
}

.form-head h3 {
  margin-bottom: 0.35rem;
}

.form-head p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-secondary);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label,
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.42rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.74rem 0.92rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sa-teal);
  box-shadow: 0 0 0 3px rgba(13, 92, 107, 0.14);
}

.chip-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.chip-btn {
  padding: 0.44rem 0.82rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chip-btn.active {
  background: var(--primary-soft);
  border-color: var(--sa-teal);
  color: var(--sa-teal);
}

.chip-btn.chip-lex.active {
  background: var(--lex-black);
  border-color: var(--lex-purple-bright);
  color: var(--lex-lavender);
}

.form-feedback {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.87rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.form-feedback.is-loading {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: var(--sa-navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.form-feedback.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.feedback-fallback {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.feedback-fallback a {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.78rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.feedback-fallback a:hover {
  background: #fee2e2;
}

.loading-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(13, 92, 107, 0.25);
  border-top-color: var(--sa-teal);
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-submit-group {
  margin-top: 0.25rem;
}

.btn-submit-request:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.form-privacy {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}

.form-privacy a {
  color: var(--sa-teal);
  font-weight: 600;
  text-decoration: underline;
}

.form-success {
  text-align: center;
  padding: 1.8rem 0.8rem;
}

.success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--wa-hover);
  display: grid;
  place-items: center;
  margin: 0 auto 1.1rem;
}

.form-success h3 {
  margin-bottom: 0.6rem;
}

.form-success p {
  color: var(--ink-secondary);
  margin: 0 auto 1.4rem;
  max-width: 44ch;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark-muted);
  padding: 4rem 0 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 0.9fr 1.1fr;
  gap: 2.2rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand p {
  margin: 1rem 0 0;
  font-size: 0.89rem;
  max-width: 38ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.footer-col a,
.footer-qr-link {
  font-size: 0.87rem;
  color: var(--ink-on-dark-muted);
  transition: color 0.18s ease;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.footer-col a:hover,
.footer-qr-link:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.81rem;
}

/* ---------- Modales (Servicios y QR Dual) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 20, 38, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.15rem;
  box-shadow: var(--shadow-lg);
}

.modal-panel.is-lex {
  background: #0a0710;
  color: #f3e8ff;
  border: 1px solid var(--lex-border);
}

.modal-panel.is-lex h3,
.modal-panel.is-lex h4,
.modal-panel.is-lex strong {
  color: #ffffff;
}

.modal-panel.is-lex .modal-desc,
.modal-panel.is-lex li {
  color: #d8b4fe;
}

.modal-panel.is-lex .modal-meta-box {
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.3);
}

.modal-panel.is-lex .modal-meta-box span {
  color: #c084fc;
}

.modal-panel.is-lex .modal-close {
  background: #1f1430;
  border-color: var(--lex-border);
  color: #ffffff;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-secondary);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.modal-kicker {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sa-teal);
  margin-bottom: 0.4rem;
}

.modal-panel.is-lex .modal-kicker {
  color: #c084fc;
}

.modal-desc {
  margin: 0.8rem 0 1.35rem;
  color: var(--ink-secondary);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.45rem;
}

.modal-meta-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.modal-meta-box span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.modal-meta-box strong {
  font-size: 0.89rem;
  color: var(--ink);
}

.modal-list-wrap h4 {
  font-size: 0.94rem;
  margin-bottom: 0.75rem;
}

.modal-list-wrap ul {
  margin: 0 0 1.65rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--ink-secondary);
  font-size: 0.91rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Modal de QR */
.modal-qr-panel {
  width: min(720px, 100%);
}

.qr-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qr-modal-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.qr-modal-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
}

.qr-modal-card img {
  width: 100%;
  max-width: 165px;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  border: 1px solid var(--border);
}

.qr-modal-card a,
.qr-modal-card span {
  font-size: 0.76rem;
  color: var(--sa-teal);
  font-weight: 600;
  word-break: break-word;
}

.qr-modal-card-lex {
  background: #0d0a14;
  border-color: var(--lex-border);
  color: #ffffff;
}

.qr-modal-card-lex img.qr-lex-full {
  background: #111111;
  border-color: rgba(147, 51, 234, 0.3);
  padding: 0;
  max-height: 215px;
  width: auto;
  object-fit: contain;
}

.qr-modal-card-lex span {
  color: #d8b4fe;
}

/* ---------- Animaciones de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-layout,
  .section-header-split,
  .calc-card,
  .contact-layout,
  .service-card-wide {
    grid-template-columns: 1fr;
  }

  .wide-visual-side {
    max-height: 240px;
  }

  .float-card-top {
    top: 12px;
    left: 12px;
  }

  .float-card-lex {
    bottom: 12px;
    right: 12px;
  }

  .service-card-featured,
  .service-card-compact {
    grid-column: span 6;
  }

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

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

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

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn-wa {
    display: none;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .brand-collab {
    font-size: 0.68rem;
  }

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

  .service-card-featured,
  .service-card-compact,
  .service-card-wide,
  .services-bento.is-filtered .service-card-featured,
  .services-bento.is-filtered .service-card-compact,
  .services-bento.is-filtered .service-card-wide {
    grid-column: span 12;
  }

  .pipeline-nodes,
  .process-grid,
  .form-row-2,
  .modal-meta-grid,
  .qr-grid,
  .qr-modal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .float-card {
    position: static;
    margin-top: 0.85rem;
  }

  .level-pills {
    grid-template-columns: 1fr;
  }
}
