:root {
  --orange: #FB5E1A;
  --orange-dark: #E54D12;
  --orange-glow: rgba(251,94,26,0.18);
  --orange-border: rgba(251,94,26,0.3);
  --teal: #0F6E56;
  --teal-light: #14A67E;
  --teal-glow: rgba(15,110,86,0.2);
  --bg: #0A0A0A;
  --bg-card: #111111;
  --bg-card2: #161616;
  --line: rgba(255,255,255,0.07);
  --line-bright: rgba(255,255,255,0.13);
  --white: #FFFFFF;
  --white-60: rgba(255,255,255,0.6);
  --white-30: rgba(255,255,255,0.55); /* subido desde 0.3: contraste 2,6:1 -> 6,3:1 (WCAG 2.1 AA) */
  --white-10: rgba(255,255,255,0.07);
  --nav-bg: rgba(10,10,10,0.85);
  --nav-bg-solid: rgba(10,10,10,0.98);
  --radius: 20px;
  --radius-sm: 12px;
}

body.light {
  --bg: #F7F4EF;
  --bg-card: #FFFFFF;
  --bg-card2: #F0ECE5;
  --line: rgba(0,0,0,0.08);
  --line-bright: rgba(0,0,0,0.16);
  --white: #111111;
  --white-60: rgba(17,17,17,0.68);
  --white-30: rgba(17,17,17,0.62); /* subido desde 0.42 para contraste AA en modo claro */
  --white-10: rgba(17,17,17,0.06);
  --orange-glow: rgba(251,94,26,0.16);
  --orange-border: rgba(251,94,26,0.32);
  --teal-glow: rgba(15,110,86,0.12);
  --nav-bg: rgba(247,244,239,0.86);
  --nav-bg-solid: rgba(247,244,239,0.98);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }


/* ─── TYPOGRAPHY CONSISTENCY ─── */
h1, h2, h3, h4, h5, h6,
.hero-h1, .section-h2, .case-h3 {
  font-family: 'Montserrat', sans-serif;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}


.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 300,
  'GRAD' 0,
  'opsz' 24;
  vertical-align: middle;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.nav-logo {
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--white);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--orange); transform: scale(1); }
  50% { box-shadow: 0 0 16px var(--orange), 0 0 32px var(--orange-glow); transform: scale(1.2); }
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white-60);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-right {
  display: flex; align-items: center; gap: 12px;
}

.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-bright);
  background: var(--white-10); color: var(--white);
  cursor: pointer; transition: all 0.2s ease;
  font-size: 15px;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--orange-border); }
body.light .theme-toggle .moon { display: inline; }
body.light .theme-toggle .sun { display: none; }
.theme-toggle .moon { display: none; }
.theme-toggle .sun { display: inline; }

.lang-toggle {
  display: flex; align-items: center;
  background: var(--white-10); border-radius: 30px;
  padding: 4px; gap: 2px;
}
.lang-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 20px;
  border: none; cursor: pointer;
  transition: all 0.2s;
  background: transparent; color: var(--white-60);
}
.lang-btn.active {
  background: var(--orange); color: var(--white);}

.btn-demo-nav {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px; border-radius: 30px;
  background: var(--orange); color: var(--white);
  border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all 0.2s;}
.btn-demo-nav:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(251,94,26,0.32);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 5% 80px;
  position: relative; overflow: hidden;
}

.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(251,94,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,94,26,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute; z-index: 0;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,94,26,0.12) 0%, transparent 70%);
  top: 10%; right: -10%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute; z-index: 0;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,110,86,0.1) 0%, transparent 70%);
  bottom: 10%; left: -5%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 2rem;
  opacity: 0; animation: slideUp 0.6s ease 0.1s forwards;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 1px; background: var(--orange);
}

.hero-h1 {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 600; line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0; animation: slideUp 0.6s ease 0.2s forwards;
}

.hero-h1 em {
  font-style: normal;
  color: var(--orange);
  position: relative;
  text-shadow: 0 0 40px rgba(251,94,26,0.3);
}

.hero-subhero {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 300; color: var(--white-60);
  margin-bottom: 1rem; line-height: 1.4;
  opacity: 0; animation: slideUp 0.6s ease 0.3s forwards;
}

.hero-subhero strong {
  color: var(--white); font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 400; color: var(--white-30);
  max-width: 600px; line-height: 1.7;
  margin-bottom: 3rem;
  opacity: 0; animation: slideUp 0.6s ease 0.4s forwards;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  opacity: 0; animation: slideUp 0.6s ease 0.5s forwards;
}

.btn-primary {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px; border-radius: 50px;
  background: var(--orange); color: var(--white);
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.25s;display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251,94,26,0.35);
}

.btn-secondary {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  padding: 16px 32px; border-radius: 50px;
  background: transparent; color: var(--white-60);
  border: 1px solid var(--line-bright); cursor: pointer;
  text-decoration: none; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover {
  color: var(--white); border-color: var(--white-30);
  background: var(--white-10);
}

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--white-30); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 600;
  animation: bounceDown 2s ease-in-out infinite;
  z-index: 1;
}
.hero-scroll svg { opacity: 0.68; color: inherit; }
body.light .hero-scroll { color: rgba(17,17,17,0.72); }

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 5%;
  position: relative; z-index: 1;
}

.stats-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.stat-item {
  padding: 0 2rem;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-item:first-child { padding-left: 0; }

.stat-number {
  font-size: clamp(28px, 4vw, 42px); font-weight: 600;
  color: var(--orange); letter-spacing: -0.02em;
  line-height: 1; margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
}
.stat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white-30);
  line-height: 1.4;
}
.stat-sub {
  font-size: 10px; color: var(--white-30); margin-top: 4px;
  font-style: italic;
}

/* ─── SECTIONS COMMON ─── */
section {
  padding: 120px 5%;
  position: relative;
}

.section-inner {
  max-width: 1100px; margin: 0 auto;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 1.5rem;
}
.section-tag::before {
  content: ''; display: block;
  width: 20px; height: 1px; background: var(--orange);
}

.section-h2 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-lead {
  font-size: clamp(16px, 2vw, 20px); font-weight: 300;
  color: var(--white-60); max-width: 660px;
  line-height: 1.7;
}

/* ─── PROBLEM SECTION ─── */
.problem-section {
  background: var(--bg);
}

.problem-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; margin-top: 5rem;
}

.problem-card {
  padding: 40px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}


.problem-card.dimmed::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(251,94,26,0.05));
  border-radius: var(--radius);
  pointer-events: none;
}

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 22px;
}
.card-icon.orange { background: var(--orange-glow); border: 1px solid var(--orange-border); }
.card-icon.teal { background: var(--teal-glow); border: 1px solid rgba(15,110,86,0.3); }
.card-icon.dim { background: var(--white-10); border: 1px solid var(--line); }

.card-title {
  font-size: 20px; font-weight: 600; margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card-body {
  font-size: 15px; color: var(--white-60); line-height: 1.75;
}

.vs-divider {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.vs-divider::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--line); z-index: 0;
}
.vs-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--white-30); background: var(--bg);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 6px 14px; position: relative; z-index: 1;
}

/* ─── HOW IT WORKS ─── */
.how-section {
  background: var(--bg-card);
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 5rem;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.step-item {
  background: var(--bg-card2);
  padding: 48px 40px;
  position: relative;
  transition: background 0.3s;
}


.step-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--orange); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 8px;
}
.step-number::after { display: none; }
.step-icon {
  font-size: 36px; margin-bottom: 1.5rem; display: block;
}

.step-title {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 12px;
}

.step-body {
  font-size: 14px; color: var(--white-60);
  line-height: 1.75;
}

.step-detail {
  margin-top: 1.5rem; padding: 16px;
  background: var(--white-10); border-radius: var(--radius-sm);
  
  font-size: 13px; color: var(--white-60);
  font-style: italic;
}

/* ─── PLATFORM ─── */
.platform-section { background: var(--bg); }

.platform-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 5rem;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.platform-card::before { display: none; }



.platform-card-icon { font-size: 32px; margin-bottom: 1.5rem; }
.platform-card-title {
  font-size: 18px; font-weight: 600;
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.platform-card-body {
  font-size: 14px; color: var(--white-60);
  line-height: 1.75;
}

.platform-card.featured {
  background: linear-gradient(135deg, rgba(251,94,26,0.08), rgba(15,110,86,0.05));
  border-color: var(--orange-border);
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
}

.featured-text .platform-card-title { font-size: 24px; }

.consent-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-light);
  background: rgba(20,166,126,0.12); border: 1px solid rgba(20,166,126,0.25);
  border-radius: 20px; padding: 5px 12px; margin-bottom: 1rem;
}

.consent-visual {
  background: var(--bg-card2); border-radius: var(--radius-sm);
  padding: 24px; border: 1px solid var(--line);
}
.consent-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--white-60);
}
.consent-row:last-child { border-bottom: none; }
.consent-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-glow); border: 1px solid rgba(20,166,126,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--teal-light); flex-shrink: 0;
}

/* ─── VERTICALS ─── */
.verticals-section {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.verticals-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 4rem;
}

.vertical-card {
  background: var(--bg-card2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 28px 20px;
  text-align: center; transition: all 0.25s; cursor: default;
}


.vertical-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.vertical-name {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--white-60);
  line-height: 1.4;
}


/* ─── CLIENTS ─── */
.clients-section { background: var(--bg); }

.clients-intro {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white-30);
  margin-bottom: 3rem; margin-top: 4rem;
  text-align: center;
}

.clients-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.client-chip {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  font-size: 12px; font-weight: 600;
  color: var(--white-60); letter-spacing: 0.04em;
  transition: all 0.2s;
}


.client-footnote {
  margin-top: 2rem; text-align: center;
  font-size: 12px; color: var(--white-30);
  font-style: italic;
}

.latam-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 2.5rem;
  background: var(--teal-glow); border: 1px solid rgba(15,110,86,0.3);
  border-radius: 30px; padding: 10px 20px;
  font-size: 13px; font-weight: 600; color: var(--teal-light);
}


/* ─── CLIENTS TITLE ─── */
.clients-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 3rem;
}

/* ─── CLIENT LOGOS ─── */
.logo-grid {
  grid-template-columns: repeat(6, 1fr);
  align-items: stretch;
}

.client-logo-card {
  min-height: 92px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
}

.client-logo-card svg {
  max-width: 100%;
  max-height: 42px;
  display: block;
  filter: grayscale(1);
  opacity: 0.78;
}

@media (max-width: 1024px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo-card { min-height: 84px; padding: 18px 14px; }
  .client-logo-card svg { max-height: 36px; }
}

/* ─── CTA FINAL ─── */
.cta-section {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-inner {
  max-width: 700px; margin: 0 auto;
}

.cta-h2 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta-lead {
  font-size: 17px; color: var(--white-60);
  line-height: 1.7; margin-bottom: 3rem;
}

.cta-buttons {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; margin-bottom: 3rem;
}

.cta-note {
  font-size: 12px; color: var(--white-30);
  letter-spacing: 0.06em;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 3rem 5%;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-logo {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--white-60);
}
.footer-logo span { color: var(--orange); }

.footer-text {
  font-size: 12px; color: var(--white-30);
}

.footer-meta {
  font-size: 12px; color: var(--white-30);
}
.footer-meta a { color: var(--white-60); text-decoration: none; }
.footer-meta a:hover { color: var(--white); }

/* ─── ANIMATIONS ─── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ─── LANG CONTENT ─── */
.lang-en { display: none; }
.lang-es { display: block; }
body.en .lang-en { display: block; }
body.en .lang-es { display: none; }
/* for inline elements */
span.lang-en { display: none; }
span.lang-es { display: inline; }
body.en span.lang-en { display: inline; }
body.en span.lang-es { display: none; }

/* ─── USE CASES ─── */
.cases-section { background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cases-tabs {
  display: flex; gap: 8px; margin: 3rem 0 2.5rem;
  flex-wrap: wrap;
}
.case-tab {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 12px 22px; border-radius: 30px;
  border: 1px solid rgba(17,17,17,0.18);
  background: #FFFFFF;
  color: #1A1A1A;
  cursor: pointer; transition: all 0.2s ease;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.case-tab .material-symbols-outlined {
  font-size: 22px;
  color: currentColor;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.case-tab:hover {
  background: #F2F2F2;
  border-color: #1A1A1A;
  color: #111111;
}
.case-tab:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}
.case-tab.active {
  background: #111111;
  border-color: #111111;
  color: #FFFFFF;
  box-shadow: none;
}
body:not(.light) .case-tab.active {
  border-color: #FFFFFF;
}
body:not(.light) .case-tab:focus-visible {
  outline-color: #FFFFFF;
}

.case-panel { display: none; }
.case-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.case-context {
  display: flex; align-items: center; gap: 12px; margin-bottom: 2rem;
}
.case-context-chip {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
}
.case-context-chip.time { background: rgba(251,94,26,0.12); border: 1px solid var(--orange-border); color: var(--orange); }
.case-context-chip.place { background: var(--teal-glow); border: 1px solid rgba(15,110,86,0.3); color: var(--teal-light); }
.case-context-chip.person { background: var(--white-10); border: 1px solid var(--line-bright); color: var(--white-60); }

.case-h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1.25rem; }
.case-body { font-size: 15px; color: var(--white-60); line-height: 1.8; margin-bottom: 2rem; }

.case-response {
  background: var(--bg-card2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 24px;
  
}
.case-response-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.case-response-items { display: flex; flex-direction: column; gap: 10px; }
.case-response-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--white-60); line-height: 1.5;
}
.case-response-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  margin-top: 6px; flex-shrink: 0;
}

.case-visual {
  background: var(--bg-card2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.case-visual-moment {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px; font-weight: 500; color: var(--orange);
  letter-spacing: -0.02em; line-height: 1;
}
.case-visual-place {
  font-size: 14px; font-weight: 600; color: var(--white-60);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.case-visual-divider { display: none; }
.case-notification {
  background: var(--bg-card); border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm); padding: 16px;
  font-size: 13px; color: var(--white-60); line-height: 1.6;
}
.case-notification strong { color: var(--white); }
.case-notification-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 8px;
}

/* ─── SMILESAFE ─── */
.smilesafe-section {
  background: var(--bg);
  position: relative; overflow: hidden;
}
.smilesafe-section::before {
  content: '';
  position: absolute; top: -200px; right: -200px; z-index: 0;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,110,86,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.smilesafe-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; margin-top: 4rem;
  position: relative; z-index: 1;
}

.smilesafe-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15,110,86,0.12); border: 1px solid rgba(15,110,86,0.3);
  border-radius: 30px; padding: 8px 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-light); margin-bottom: 1.5rem;
}
.smilesafe-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 8px var(--teal-light);
  animation: pulse 2s ease-in-out infinite;
}

.smilesafe-verticals {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem;
}
.smilesafe-vertical {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 20px;
  background: var(--white-10); border: 1px solid var(--line-bright);
  color: var(--white-60);
}

.smilesafe-visual {
  background: var(--bg-card); border: 1px solid rgba(15,110,86,0.25);
  border-radius: var(--radius); padding: 40px;
  position: relative; overflow: hidden;
}
.smilesafe-visual::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,110,86,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.smilesafe-code-display {
  background: var(--bg-card2); border-radius: var(--radius-sm);
  padding: 32px; text-align: center; margin-bottom: 24px;
  border: 1px solid rgba(15,110,86,0.2);
  position: relative;
}
.smilesafe-code-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--teal-light); margin-bottom: 16px;
}
.smilesafe-code-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px; font-weight: 500; color: var(--teal-light);
  letter-spacing: 0.1em; line-height: 1;
  text-shadow: 0 0 30px rgba(20,166,126,0.4);
}
.smilesafe-code-sub {
  font-size: 11px; color: var(--white-30); margin-top: 8px;
  letter-spacing: 0.06em;
}
.smilesafe-match-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: rgba(15,110,86,0.08);
  border: 1px solid rgba(15,110,86,0.2); border-radius: var(--radius-sm);
}
.smilesafe-match-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-glow); border: 1px solid rgba(20,166,126,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.smilesafe-match-text { font-size: 13px; color: var(--white-60); line-height: 1.5; }
.smilesafe-match-text strong { color: var(--white); }

.smilesafe-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 1.5rem; }
.smilesafe-step {
  display: flex; gap: 16px; align-items: flex-start;
}
.smilesafe-step-num {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 500;
  color: var(--teal-light); width: 24px; flex-shrink: 0; margin-top: 2px;
}
.smilesafe-step-text { font-size: 14px; color: var(--white-60); line-height: 1.6; }


/* ─── CLEANER VISUAL SYSTEM ADJUSTMENTS ─── */
.case-visual,
.case-notification,
.problem-card,
.platform-card,
.vertical-card,
.client-chip,
.consent-visual,
.smilesafe-visual {
  border-color: transparent;
}

.case-visual,
.problem-card,
.platform-card,
.vertical-card,
.client-chip,
.smilesafe-visual {
  background-image: linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
}

.btn-primary,
.btn-demo-nav,
.lang-btn.active,
.case-tab.active {
  box-shadow: none;
}

.btn-primary:hover,
.btn-demo-nav:hover {
  box-shadow: 0 10px 30px rgba(251,94,26,0.35);
}

.case-visual-divider {
  display: none !important;
}


/* ─── CLEAN STATIC CARDS ─── */
.problem-card,
.platform-card,
.vertical-card,
.client-chip,
.step-item {
  transition: none;
}

.problem-card:hover,
.platform-card:hover,
.vertical-card:hover,
.client-chip:hover,
.step-item:hover {
  transform: none;
  box-shadow: none;
  background: inherit;
  border-color: inherit;
}

.platform-card:hover::before {
  opacity: 0;
}


/* ─── LOGO NOTROS ─── */
.nav-logo-svg,
.footer-logo-svg {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nav-logo-svg .notros-logo-svg {
  width: 104px;
  height: auto;
  display: block;
}

.footer-logo-svg .notros-logo-svg {
  width: 92px;
  height: auto;
  display: block;
  opacity: 0.72;
}

/* ─── CLIENT LOGOS CLEANUP ─── */
.client-logo-card {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  min-height: 92px;
  padding: 22px 18px;
}

.client-logo-card svg {
  max-width: 100%;
  max-height: 42px;
}

/* ─── HERO COMPACT PRODUCT LAYOUT ─── */
.hero {
  min-height: auto;
  padding: 112px 5% 72px;
  justify-content: flex-start;
}

.hero-layout {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.hero-inner {
  max-width: 760px;
}

.hero-h1 {
  font-size: clamp(44px, 6.8vw, 76px);
}

.hero-subtitle {
  margin-bottom: 2rem;
}

.hero-product-slot {
  min-height: clamp(360px, 44vw, 520px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 30%, rgba(251,94,26,0.12), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-product-placeholder {
  width: min(78%, 360px);
  aspect-ratio: 0.76;
  border-radius: 28px;
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: var(--white-30);
  padding: 28px;
}

.hero-product-placeholder .material-symbols-outlined {
  font-size: 44px;
  color: var(--orange);
}

.hero-product-placeholder p {
  font-size: 12px;
  line-height: 1.5;
  max-width: 220px;
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-product-slot {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 104px 4% 64px;
  }

  .hero-product-slot {
    min-height: 280px;
    border-radius: 24px;
  }

  .nav-logo-svg .notros-logo-svg {
    width: 92px;
  }
}


/* ─── DAY/NIGHT LOGO + CTA + NUMBER TYPOGRAPHY FIXES ─── */
.nav-logo-svg,
.footer-logo-svg {
  color: var(--white);
}

body.light .nav-logo-svg,
body.light .footer-logo-svg,
body.day .nav-logo-svg,
body.day .footer-logo-svg,
body:not(.dark) .nav-logo-svg,
body:not(.dark) .footer-logo-svg {
  color: #1C1C1C;
}

body:not(.light):not(.day) .nav-logo-svg,
body:not(.light):not(.day) .footer-logo-svg {
  color: var(--white);
}

.nav-logo-svg .notros-logo-svg,
.footer-logo-svg .notros-logo-svg,
.nav-logo-svg .notros-logo-svg *,
.footer-logo-svg .notros-logo-svg * {
  fill: currentColor;
  stroke: currentColor;
}

.btn-primary,
.btn-primary:visited,
.btn-demo-nav,
.btn-demo-nav:visited {
  background: var(--orange);
  color: #FFFFFF !important;
}

.btn-primary span,
.btn-demo-nav span {
  background: transparent !important;
  color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-demo-nav:hover {
  background: var(--orange-dark);
  color: #FFFFFF !important;
}

.stat-number,
.case-visual-moment,
.smilesafe-code-number,
#smileCode,
#smileCodeSms,
#smileCodeSms2,
.step-number,
.smilesafe-step-num {
  font-family: 'Montserrat', sans-serif !important;
}


/* ─── HERO MOCKUPS FIX ─── */
.hero {
  min-height: auto !important;
  padding: 112px 5% 72px !important;
}

.hero-layout {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.hero-product-slot.hero-mockups {
  position: relative;
  min-height: clamp(420px, 46vw, 590px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 56% 50%, rgba(251,94,26,0.11), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
  overflow: visible;
  display: block;
}

.mockup-phone {
  position: absolute;
  margin: 0;
  border-radius: 38px;
  overflow: hidden;
  background: transparent;
  line-height: 0;
  filter: drop-shadow(0 28px 58px rgba(0,0,0,0.34));
}

.mockup-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-phone-front {
  width: min(54%, 310px);
  right: 12%;
  top: 3%;
  z-index: 2;
}

.mockup-phone-back {
  width: min(47%, 270px);
  left: 8%;
  bottom: 0;
  z-index: 1;
  opacity: 0.9;
  transform: rotate(-6deg);
}

body.light .hero-product-slot.hero-mockups {
  background:
    radial-gradient(circle at 56% 50%, rgba(251,94,26,0.13), transparent 42%),
    linear-gradient(135deg, rgba(28,28,28,0.045), rgba(28,28,28,0.012));
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-product-slot.hero-mockups {
    min-height: 500px;
    overflow: hidden;
  }

  .mockup-phone-front {
    width: min(48%, 290px);
    right: 20%;
  }

  .mockup-phone-back {
    width: min(42%, 250px);
    left: 18%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 104px 4% 64px !important;
  }

  .hero-product-slot.hero-mockups {
    min-height: 430px;
    border-radius: 24px;
  }

  .mockup-phone-front {
    width: 54%;
    right: 8%;
    top: 7%;
  }

  .mockup-phone-back {
    width: 48%;
    left: 5%;
    bottom: 8%;
  }
}

/* Ensure the metrics strip remains visible and separated */
.stats-bar {
  display: block !important;
  position: relative !important;
  z-index: 2 !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); padding: 1.5rem; }
  .stat-item:nth-child(2n) { border-right: none; }
  .problem-split { grid-template-columns: 1fr; gap: 40px; }
  .vs-divider { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .verticals-grid { grid-template-columns: repeat(3, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .case-panel.active { grid-template-columns: 1fr; }
  .smilesafe-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  nav { padding: 0 4%; }
  .nav-links { display: none; }
  .btn-demo-nav { display: none; }
  .hero { padding: 120px 4% 80px; }
  .verticals-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  section { padding: 80px 4%; }
}

/* ─── FINAL BUTTON TEXT FIX ─── */
.btn-primary span,
.btn-demo-nav span {
  background: transparent !important;
  color: #FFFFFF !important;
}
.btn-primary,
.btn-primary:visited,
.btn-demo-nav,
.btn-demo-nav:visited {
  background: var(--orange) !important;
  color: #FFFFFF !important;
}



/* ─── HERO FLOATING MOCKUPS — DAY / NIGHT ANIMATION ─── */
.hero-product-slot.hero-mockups.hero-floating-showcase {
  position: relative !important;
  min-height: clamp(440px, 48vw, 620px) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: block !important;
  isolation: isolate;
}

.hero-product-slot.hero-mockups.hero-floating-showcase::before,
.hero-product-slot.hero-mockups.hero-floating-showcase::after {
  content: none !important;
  display: none !important;
}

.hero-mode-aura {
  position: absolute;
  inset: 9% -7% 5% -3%;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 58% 42%, rgba(247,244,239,0.34), transparent 36%),
    radial-gradient(circle at 42% 58%, rgba(251,94,26,0.18), transparent 42%);
  filter: blur(34px);
  opacity: 0.9;
  animation: heroAuraMode 14s ease-in-out infinite;
  pointer-events: none;
}

.mockup-float {
  position: absolute;
  margin: 0;
  line-height: 0;
  border-radius: 42px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 30px 55px rgba(0,0,0,0.28));
  will-change: transform, opacity;
}

.mockup-float img {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-mode-night {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: nightModeFade 14s ease-in-out infinite;
}

.mockup-mode-day {
  opacity: 1;
  animation: dayModeFade 14s ease-in-out infinite;
}

.mockup-float-primary {
  width: min(50%, 306px);
  right: 11%;
  top: 2%;
  z-index: 3;
  animation: phoneFloatPrimary 7s ease-in-out infinite;
}

.mockup-float-left {
  width: min(40%, 244px);
  left: 7%;
  bottom: 7%;
  z-index: 2;
  opacity: 0.94;
  transform: rotate(-6deg);
  animation: phoneFloatLeft 8s ease-in-out infinite;
}

@keyframes dayModeFade {
  0%, 43% { opacity: 1; }
  50%, 93% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes nightModeFade {
  0%, 43% { opacity: 0; }
  50%, 93% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes heroAuraMode {
  0%, 43% {
    opacity: 0.95;
    background:
      radial-gradient(circle at 58% 42%, rgba(247,244,239,0.42), transparent 36%),
      radial-gradient(circle at 42% 58%, rgba(251,94,26,0.18), transparent 42%);
  }
  50%, 93% {
    opacity: 0.86;
    background:
      radial-gradient(circle at 58% 42%, rgba(32,32,32,0.58), transparent 38%),
      radial-gradient(circle at 42% 58%, rgba(251,94,26,0.20), transparent 44%);
  }
  100% {
    opacity: 0.95;
    background:
      radial-gradient(circle at 58% 42%, rgba(247,244,239,0.42), transparent 36%),
      radial-gradient(circle at 42% 58%, rgba(251,94,26,0.18), transparent 42%);
  }
}

@keyframes phoneFloatPrimary {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(2deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(1deg); }
}

@keyframes phoneFloatLeft {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-7deg); }
  50% { transform: translate3d(-8px, -18px, 0) rotate(-5deg); }
}

@media (max-width: 1024px) {
  .hero-product-slot.hero-mockups.hero-floating-showcase {
    min-height: 520px !important;
    overflow: hidden !important;
  }

  .mockup-float-primary {
    width: min(48%, 292px);
    right: 20%;
  }

  .mockup-float-left {
    width: min(38%, 232px);
    left: 16%;
  }
}

@media (max-width: 768px) {
  .hero-product-slot.hero-mockups.hero-floating-showcase {
    min-height: 430px !important;
  }

  .hero-mode-aura {
    inset: 12% 0 8% 0;
    filter: blur(26px);
  }

  .mockup-float-primary {
    width: 55%;
    right: 7%;
    top: 7%;
  }

  .mockup-float-left {
    width: 44%;
    left: 5%;
    bottom: 9%;
  }
}

/* ─── v2: agrupación de clientes ─── */
.clients-group-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange);
  margin: 3rem 0 1.25rem; display: block;
}
.clients-group-label span.note {
  display: block; margin-top: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  text-transform: none; color: var(--white-30);
}
.legal-note {
  font-size: 12px; line-height: 1.7; color: var(--white-30);
  max-width: 760px; margin: 2.5rem auto 0; text-align: center;
}
.stats-footnote {
  max-width: 1100px; margin: 1.5rem auto 0;
  font-size: 11px; line-height: 1.7; color: var(--white-30);
  text-align: center;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 12px; color: var(--white-30); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.footer-links a:hover { color: var(--white-60); border-color: var(--line-bright); }
.trust-line {
  margin-top: 1.75rem; font-size: 12px; letter-spacing: .04em;
  color: var(--white-30); max-width: 560px;
  opacity: 0; animation: slideUp 0.6s ease 0.6s forwards;
}
.diff-block {
  margin-top: 4rem; padding: 40px;
  border: 1px solid var(--orange-border); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(251,94,26,0.05), transparent);
}
.diff-block h3 { font-size: clamp(22px,3vw,30px); font-weight: 600; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; }
.diff-block p { color: var(--white-60); font-weight: 300; line-height: 1.75; max-width: 760px; }
.diff-block p + p { margin-top: 1rem; }


/* ─── NAV · ESCALA Y RESPONSIVE 2026 ───
   Mantiene la navegación en una sola línea mientras existe espacio real.
   En anchos intermedios compacta progresivamente y, en móvil, prioriza
   marca + controles esenciales sin forzar saltos de línea. */
nav {
  height: 64px;
  padding: 0 clamp(18px, 3vw, 48px);
  gap: clamp(14px, 1.5vw, 28px);
}

.nav-logo {
  flex: 0 0 auto;
  min-width: 0;
}

.nav-logo-svg .notros-logo-svg {
  width: 88px;
  height: auto;
}

.nav-links {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: clamp(12px, 1.35vw, 24px);
}

.nav-links li {
  flex: 0 0 auto;
}

.nav-links a {
  display: block;
  position: relative;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.085em;
  padding-bottom: 8px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}

.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* El hover cambia el texto, pero la línea identifica únicamente la sección activa. */
.nav-links a:hover::after {
  opacity: 0;
  transform: scaleX(0.6);
}

/* Foco de teclado consistente con el sistema visual, sin el borde azul nativo. */
.nav-links a:focus { outline: none; }
.nav-links a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
  border-radius: 4px;
}

.nav-right {
  flex: 0 0 auto;
  gap: 8px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.lang-toggle {
  flex: 0 0 auto;
  padding: 3px;
}

.lang-btn {
  white-space: nowrap;
  font-size: 10.5px;
  padding: 4px 10px;
}

.btn-demo-nav {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.085em;
  padding: 11px 16px;
}

/* Desktop compacto / notebook */
@media (max-width: 1180px) {
  nav {
    padding: 0 20px;
    gap: 12px;
  }

  .nav-logo-svg .notros-logo-svg { width: 82px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.06em; }
  .nav-right { gap: 6px; }
  .theme-toggle { width: 34px; height: 34px; flex-basis: 34px; }
  .lang-btn { font-size: 10px; padding: 4px 8px; }
  .btn-demo-nav { font-size: 10px; padding: 10px 13px; letter-spacing: 0.06em; }
}

/* Tablet: desaparece el índice largo antes de que se comprima o quiebre.
   Se mantienen marca, tema, idioma y CTA comercial. */
@media (max-width: 900px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-logo-svg .notros-logo-svg { width: 82px; }
  .nav-right { margin-left: auto; }
  .btn-demo-nav { display: inline-block; }
}

/* Móvil amplio */
@media (max-width: 640px) {
  nav {
    height: 60px;
    padding: 0 12px;
    gap: 8px;
  }

  .nav-logo-svg .notros-logo-svg { width: 72px; }
  .nav-right { gap: 5px; }
  .theme-toggle { width: 32px; height: 32px; flex-basis: 32px; }
  .lang-toggle { padding: 2px; }
  .lang-btn { font-size: 9px; padding: 4px 7px; }
  .btn-demo-nav { font-size: 9px; padding: 9px 10px; }
}

/* Móvil estrecho: el CTA vive en el hero; el header conserva utilidades. */
@media (max-width: 430px) {
  .btn-demo-nav { display: none; }
  .nav-logo-svg .notros-logo-svg { width: 70px; }
}

/* ─────────────────────────────────────────────────────────────
   NOTROS · LANDING V2 · CONTEXTO PRIMERO + LIMPIEZA VISUAL
   Evolución sobre la landing 2026: mantiene contenido y assets.
   ───────────────────────────────────────────────────────────── */

/* Ritmo general: más aire y menos contenedores visuales */
section { padding-top: 104px; padding-bottom: 104px; }
.section-inner { max-width: 1160px; }
.section-lead { max-width: 720px; }

/* OPORTUNIDAD · lógica tomada de la narrativa contextual */
.opportunity-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.opportunity-layout {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(420px,.78fr);
  gap: clamp(52px,7vw,100px);
  align-items: center;
}
.opportunity-title { max-width: 760px; }
.opportunity-title em { font-style: normal; color: var(--orange); }
.opportunity-lead { max-width: 690px; }
.opportunity-signals {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.opportunity-signal {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--line);
}
.opportunity-signal + .opportunity-signal { padding-left: 18px; }
.opportunity-signal:last-child { border-right: 0; }
.opportunity-signal > .material-symbols-outlined {
  color: var(--orange);
  font-size: 24px;
}
.opportunity-signal span:last-child { display: flex; flex-direction: column; min-width: 0; }
.opportunity-signal small {
  color: var(--white-30);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.opportunity-signal strong { font-size: 12px; font-weight: 600; color: var(--white); line-height: 1.35; }

.opportunity-stage {
  min-height: 500px;
  position: relative;
  isolation: isolate;
}
.opportunity-stage::before {
  content: '';
  position: absolute;
  width: 430px;
  height: 430px;
  left: 5%;
  top: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,94,26,.13), transparent 66%);
  filter: blur(4px);
  z-index: -1;
}
.context-board {
  position: absolute;
  width: min(88%, 410px);
  right: 0;
  top: 0;
  padding: 24px 26px 18px;
  border-radius: 28px;
  background: #111111;
  color: #fff;
  box-shadow: 0 28px 64px rgba(0,0,0,.22);
}
body.light .context-board { background: #141414; color:#fff; }
.context-board-top { display:flex; justify-content:space-between; align-items:center; padding-bottom:15px; border-bottom:1px solid rgba(255,255,255,.13); }
.context-board-top strong { font:600 17px 'Montserrat',sans-serif; letter-spacing:.05em; }
.context-board-top span { color:var(--orange); font:600 13px 'Montserrat',sans-serif; }
.context-board-labels { display:grid; grid-template-columns: 88px 1fr; padding:13px 0 4px; color:rgba(255,255,255,.38); font-size:9px; letter-spacing:.12em; }
.context-board-labels .lang-en + .lang-es, .context-board-labels .lang-es + .lang-en { display:none; }
.context-board-row { display:grid; grid-template-columns:42px 1fr; gap:12px; align-items:center; padding:13px 0; border-top:1px solid rgba(255,255,255,.08); }
.context-board-row > .material-symbols-outlined { color:var(--orange); font-size:22px; }
.context-board-row div { display:flex; flex-direction:column; }
.context-board-row small { color:rgba(255,255,255,.44); font-size:9px; text-transform:uppercase; letter-spacing:.09em; margin-bottom:3px; }
.context-board-row strong { font-size:12px; font-weight:600; color:#fff; }
.context-person {
  position:absolute;
  left: 4%;
  top: 176px;
  width: 180px;
  height: 180px;
  display:grid;
  place-items:center;
}
.context-person-ring {
  position:absolute;
  inset:14px;
  border-radius:50%;
  border:1px solid var(--line-bright);
  background:var(--bg-card);
  box-shadow:0 24px 55px rgba(0,0,0,.13);
}
.context-person .material-symbols-outlined { position:relative; z-index:1; font-size:84px; color:var(--orange); font-variation-settings:'FILL' 0,'wght' 200,'GRAD' 0,'opsz' 48; }
.context-action {
  position:absolute;
  width:min(78%,360px);
  right: 2%;
  bottom: 8px;
  padding: 25px 27px;
  border-radius: 26px;
  background: var(--orange);
  color:#fff;
  box-shadow:0 24px 55px rgba(251,94,26,.25);
}
.context-action small { display:block; font-size:9px; font-weight:700; letter-spacing:.12em; opacity:.78; margin-bottom:9px; }
.context-action strong { display:block; font:600 18px/1.35 'Montserrat',sans-serif; }
.context-action p { margin-top:8px; font-size:11px; line-height:1.55; color:rgba(255,255,255,.78); }

.context-formula {
  margin-top: 72px;
  background: #111;
  color: #fff;
  border-radius: 34px;
  padding: clamp(34px,5vw,56px);
}
body.light .context-formula { background:#141414; color:#fff; }
.context-formula h3 { font-size:clamp(30px,4vw,48px); line-height:1.1; max-width:1000px; }
.context-formula h3 em { font-style:normal; color:var(--orange); }
.context-formula p { margin-top:20px; max-width:900px; color:rgba(255,255,255,.67); font-size:15px; line-height:1.75; }

/* CÓMO FUNCIONA · narración lineal, no cards */
.clean-flow-section { background: var(--bg-card); }
.clean-flow-head { display:grid; grid-template-columns: .9fr 1.1fr; gap:70px; align-items:end; }
.clean-flow-head .section-lead { margin-top:0; max-width:620px; }
.clean-flow {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-top:64px;
  border-top:1px solid var(--line-bright);
  border-bottom:1px solid var(--line-bright);
}
.clean-flow-step {
  position:relative;
  min-height:290px;
  padding:30px 26px 32px 0;
  border-right:1px solid var(--line);
}
.clean-flow-step + .clean-flow-step { padding-left:26px; }
.clean-flow-step:last-child { border-right:0; }
.clean-flow-index { display:block; color:var(--orange); font-size:10px; font-weight:700; letter-spacing:.12em; margin-bottom:28px; }
.clean-flow-step > .material-symbols-outlined { display:block; font-size:29px; color:var(--orange); margin-bottom:24px; }
.clean-flow-step h3 { font-size:19px; margin-bottom:12px; }
.clean-flow-step p { color:var(--white-60); font-size:13px; line-height:1.72; }
.clean-flow-note { display:flex; align-items:flex-start; gap:16px; margin-top:30px; max-width:800px; }
.clean-flow-note > .material-symbols-outlined { color:var(--orange); margin-top:2px; }
.clean-flow-note p { font-size:13px; color:var(--white-60); line-height:1.7; }
.clean-flow-note strong { color:var(--white); }

/* Limpieza de las secciones existentes: menos caja, mismo contenido */
.cases-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-panel.active { gap: clamp(40px,6vw,78px); }
.case-response { background:transparent !important; border:0 !important; border-top:1px solid var(--line) !important; border-bottom:1px solid var(--line) !important; border-radius:0 !important; padding:22px 0 !important; }
.case-visual { background:transparent !important; border:0 !important; border-radius:0 !important; padding:24px 0 !important; }
.case-notification { box-shadow:none; }

.platform-grid { gap:0 48px; background:transparent; }
.platform-card:not(.featured) {
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-top:1px solid var(--line) !important;
  border-radius:0 !important;
  padding:32px 0 34px !important;
}
.platform-card.featured { margin-top:20px; box-shadow:none; }

.vertical-card {
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-top:1px solid var(--line) !important;
  border-radius:0 !important;
  padding:26px 10px !important;
}
.client-logo-card { min-height:82px; }

/* El hero conserva identidad pero gana aire */
.hero-layout { gap:clamp(54px,7vw,96px); }
.hero-subtitle { max-width:640px; }

@media(max-width:1024px){
  .opportunity-layout,.clean-flow-head { grid-template-columns:1fr; }
  .opportunity-stage { min-height:470px; max-width:650px; }
  .clean-flow { grid-template-columns:repeat(2,1fr); }
  .clean-flow-step:nth-child(2){ border-right:0; }
  .clean-flow-step:nth-child(3),.clean-flow-step:nth-child(4){ border-top:1px solid var(--line); }
}
@media(max-width:700px){
  section { padding-top:78px; padding-bottom:78px; }
  .opportunity-signals { grid-template-columns:1fr; }
  .opportunity-signal,.opportunity-signal + .opportunity-signal { padding:15px 0; border-right:0; border-bottom:1px solid var(--line); }
  .opportunity-signal:last-child{border-bottom:0;}
  .opportunity-stage { min-height:570px; margin-top:8px; }
  .context-board { width:100%; }
  .context-person { top:275px; left:-8px; width:145px; height:145px; }
  .context-person .material-symbols-outlined { font-size:68px; }
  .context-action { width:76%; right:0; bottom:0; padding:20px; }
  .context-formula { margin-top:48px; border-radius:26px; }
  .clean-flow { grid-template-columns:1fr; }
  .clean-flow-step,.clean-flow-step + .clean-flow-step { min-height:auto; padding:26px 0; border-right:0; border-top:1px solid var(--line); }
  .clean-flow-step:first-child { border-top:0; }
}

/* ─── V3 · CONTEXTO DINÁMICO / REVELADO PROGRESIVO ─── */
.ctxdemo-section{background:var(--bg-card);border-top:1px solid var(--line);border-bottom:0}
.ctxdemo-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:44px;align-items:end;margin-bottom:34px}
.ctxdemo-head .section-h2{max-width:820px}
.ctxdemo-head .section-h2 em{font-style:normal;color:var(--orange)}
.ctxdemo-view-toggle{display:flex;padding:5px;background:var(--white-10);border:1px solid var(--line);border-radius:999px;align-self:start}
.ctxdemo-view-toggle button{font-family:'Montserrat',sans-serif;border:0;background:transparent;color:var(--white-60);padding:13px 20px;border-radius:999px;cursor:pointer;font-weight:500;font-size:12px;white-space:nowrap;transition:.2s ease}
.ctxdemo-view-toggle button.active{background:var(--white);color:var(--bg);box-shadow:none}
body.light .ctxdemo-view-toggle button.active{background:#111;color:#fff}
.ctxdemo-view-toggle.is-static{padding:0;background:transparent;border:0}
.ctxdemo-view-toggle.is-static .ctxdemo-view-pill{font-family:'Montserrat',sans-serif;display:inline-flex;align-items:center;padding:13px 20px;border-radius:999px;font-weight:500;font-size:12px;white-space:nowrap;background:#111;color:#fff}
body:not(.light) .ctxdemo-view-toggle.is-static .ctxdemo-view-pill{background:var(--white);color:var(--bg)}
.ctxdemo-case-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}
.ctxdemo-case-tabs button{font-family:'Montserrat',sans-serif;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line-bright);background:transparent;color:var(--white-60);padding:10px 15px;border-radius:999px;cursor:pointer;font-size:11px;font-weight:600;transition:.2s ease}
.ctxdemo-case-tabs button .material-symbols-outlined{font-size:18px}
.ctxdemo-case-tabs button:hover{color:var(--white);border-color:var(--white-30)}
.ctxdemo-case-tabs button.active{background:var(--white);color:var(--bg);border-color:var(--white)}
body.light .ctxdemo-case-tabs button.active{background:#111;color:#fff;border-color:#111}
.ctxdemo-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,.92fr);gap:18px;min-height:620px}
.ctxdemo-panel{border-radius:28px;overflow:hidden;position:relative;background:var(--bg-card2)}
.ctxdemo-visual{display:flex;align-items:center;justify-content:center;padding:42px;min-height:620px;background-image:linear-gradient(135deg,var(--white-10),transparent)}
.ctxdemo-copy{padding:52px 48px;display:flex;flex-direction:column;justify-content:center;min-height:620px;background:var(--bg)}
.ctxdemo-state{width:100%;transition:opacity .18s ease,transform .18s ease}.ctxdemo-state.swap{opacity:0;transform:translateY(7px)}
.ctx-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.ctx-meta span{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:7px 9px;border-radius:999px;background:var(--orange-glow);color:var(--orange)}
.ctx-kicker{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--orange);font-weight:700;margin-bottom:16px}
.ctx-title{font-family:'Montserrat',sans-serif;font-size:clamp(28px,3vw,46px);line-height:1.08;letter-spacing:-.035em;font-weight:600;max-width:620px;color:var(--white)}
.ctx-body{font-size:14px;line-height:1.75;color:var(--white-60);margin-top:20px;max-width:600px}
.ctx-response{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.ctx-response-label{font-size:9px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--white-30);margin-bottom:10px}.ctx-response p{font-size:13px;line-height:1.65;color:var(--white)}.ctx-response ul{list-style:none;display:flex;flex-direction:column;gap:10px;margin:0;padding:0}.ctx-response li{position:relative;padding-left:22px;font-size:13px;line-height:1.6;color:var(--white)}.ctx-response li::before{content:'•';position:absolute;left:0;top:0;color:var(--orange);font-weight:700}.ctx-response li.negative{color:rgba(239,68,68,.88)}.ctx-response li.negative::before{content:'✕';color:#EF4444}
.ctx-phone-wrap{position:relative;width:min(78%,410px);min-height:550px;display:flex;align-items:center;justify-content:center}.ctx-phone-aura{position:absolute;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,var(--orange-glow),transparent 68%);filter:blur(8px)}.ctx-case-mockup{position:relative;z-index:2;display:block;max-width:100%;width:auto;max-height:550px;height:auto;object-fit:contain}
.ctx-phone{position:relative;width:286px;min-height:520px;background:#fff;border:8px solid #171717;border-radius:42px;box-shadow:0 30px 68px rgba(0,0,0,.25);overflow:hidden;z-index:2;color:#171717}.ctx-phone-top{height:25px;display:flex;align-items:center;justify-content:center}.ctx-phone-notch{width:86px;height:17px;border-radius:0 0 14px 14px;background:#171717;margin-top:-2px}.ctx-phone-content{padding:21px 18px 22px}.ctx-phone-time{font-size:9px;font-weight:700;color:#777;margin-bottom:24px}.ctx-phone-location{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#777;margin-bottom:8px}.ctx-phone-greeting{font:600 21px/1.15 'Montserrat',sans-serif;letter-spacing:-.03em;margin-bottom:21px}.ctx-phone-card{background:#f3f3ef;border-radius:19px;padding:21px 17px;min-height:212px;display:flex;flex-direction:column;justify-content:space-between}.ctx-phone-card small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--orange);font-weight:700}.ctx-phone-card h3{font:600 18px/1.28 'Montserrat',sans-serif;letter-spacing:-.025em;margin:13px 0 10px;color:#171717}.ctx-phone-card p{font-size:11px;line-height:1.55;color:#666}.ctx-phone-cta{margin-top:17px;padding:12px 14px;background:var(--orange);color:#fff;border-radius:999px;text-align:center;font-size:10px;font-weight:700}.ctx-float{position:absolute;background:#fff;color:#171717;border:1px solid rgba(0,0,0,.1);box-shadow:0 14px 36px rgba(0,0,0,.10);padding:11px 14px;border-radius:16px;font-size:10px;font-weight:600;line-height:1.5;z-index:3}.ctx-float b{color:var(--orange)}.ctx-float-one{left:-22px;top:90px}.ctx-float-two{right:-38px;bottom:92px}
.ctx-system{width:100%;max-width:620px}.ctx-system-label{font-size:9px;letter-spacing:.11em;text-transform:uppercase;color:var(--white-30);font-weight:700;margin-bottom:12px}.ctx-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ctx-card{background:var(--bg);border-radius:20px;padding:19px 17px;min-height:140px;border:1px solid var(--line)}.ctx-card .icon{width:34px;height:34px;border-radius:11px;background:var(--orange-glow);display:grid;place-items:center;color:var(--orange);margin-bottom:18px}.ctx-card .icon .material-symbols-outlined{font-size:19px}.ctx-card small{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:var(--white-30);font-weight:700;margin-bottom:7px}.ctx-card strong{font-size:12px;line-height:1.4;font-weight:600;color:var(--white)}.ctx-arrow{display:flex;justify-content:center;padding:18px 0;color:var(--orange);font-size:28px}.ctx-activation{background:#111;color:#fff;border-radius:24px;padding:27px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.ctx-activation small{display:block;font-size:8px;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.48);font-weight:700;margin-bottom:8px}.ctx-activation strong{font:600 22px/1.18 'Montserrat',sans-serif;letter-spacing:-.02em;display:block;max-width:390px}.ctx-activation .badge{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--orange)}.ctx-activation .badge .material-symbols-outlined{font-size:22px}.ctx-sources{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.ctx-sources span{font-size:8px;padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.7)}.ctx-note{margin-top:20px;font-size:10px;line-height:1.6;color:var(--white-30);max-width:620px}
.ctxdemo-formula{margin-top:24px;padding:26px 0 0;border-top:0;display:grid;grid-template-columns:.8fr 1.2fr;gap:44px;align-items:start}.ctxdemo-formula strong{font:600 19px/1.4 'Montserrat',sans-serif;color:var(--white)}.ctxdemo-formula p{font-size:13px;line-height:1.7;color:var(--white-60);max-width:700px}
@media(max-width:1024px){.ctxdemo-head{grid-template-columns:1fr}.ctxdemo-view-toggle{justify-self:start}.ctxdemo-stage{grid-template-columns:1fr;min-height:0}.ctxdemo-visual,.ctxdemo-copy{min-height:auto}.ctxdemo-visual{padding:36px 18px}.ctxdemo-copy{padding:40px 32px}.ctxdemo-formula{grid-template-columns:1fr;gap:12px}}
@media(max-width:640px){.ctxdemo-view-toggle{width:100%}.ctxdemo-view-toggle button{flex:1;padding:11px 8px;font-size:9px}.ctxdemo-case-tabs{gap:6px}.ctxdemo-case-tabs button{font-size:9px;padding:8px 10px}.ctxdemo-case-tabs button .material-symbols-outlined{font-size:16px}.ctx-phone-wrap{width:100%;min-height:560px}.ctx-float-one{left:0}.ctx-float-two{right:0}.ctx-grid{grid-template-columns:1fr}.ctx-activation{grid-template-columns:1fr}.ctx-activation .badge{display:none}.ctx-title{font-size:31px}}

/* ─── V3 · MÉTRICAS PÚBLICAS SIMPLIFICADAS ─── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
  .stats-grid .stat-item { border-right: 1px solid var(--line); border-bottom: 0; padding: 0 1.5rem; }
  .stats-grid .stat-item:last-child { border-right: none; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; max-width: 420px; }
  .stats-grid .stat-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
  .stats-grid .stat-item:last-child { border-bottom: 0; }
}

/* V4 · CONTEXTO RECUPERADO */
.stats-definitions{
  max-width:1100px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:1.4rem;
  text-align:left;
}
.stats-definitions span{font-size:10.5px;line-height:1.55;color:var(--white-30);}
.stats-definitions strong{color:var(--white-60);font-weight:600;}
.clients-group-label{margin-top:3rem;margin-bottom:1.25rem;}
@media(max-width:768px){
  .stats-definitions{grid-template-columns:1fr;gap:8px;text-align:center;}
}

/* ─── V10 · MÉTRICAS HERO · 4 PILARES ─── */
.stats-grid {
  max-width: 1100px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid .stat-item {
  padding: 0 clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--line);
}

.stats-grid .stat-item:first-child {
  padding-left: clamp(1rem, 2vw, 2rem);
}

.stats-grid .stat-item:last-child {
  border-right: 0;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .stats-grid .stat-item {
    padding: 1.6rem 1.4rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stats-grid .stat-item:nth-child(2n) {
    border-right: 0;
  }

  .stats-grid .stat-item:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .stats-grid .stat-item,
  .stats-grid .stat-item:nth-child(2n),
  .stats-grid .stat-item:nth-last-child(-n+2) {
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-grid .stat-item:last-child {
    border-bottom: 0;
  }
}

/* ─── V15 · MENÚ: TRANSICIÓN ESTABLE, SIN SALTOS ─── */
.nav-links {
  position: relative;
}

/* Reserva el ancho del texto en bold para que el menú no salte al cambiar de activo. */
.nav-links a::before {
  content: attr(data-nav-es);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: inherit;
}
body.en .nav-links a::before { content: attr(data-nav-en); }

.nav-links a {
  font-weight: 400;
  color: var(--white-60);
  /* El peso no se anima: evita la sensación de retardo al cambiar de sección. */
  transition: color .12s ease;
}

.nav-links a.active {
  color: var(--white);
  font-weight: 700;
}

.nav-links a:not(.active):hover {
  color: var(--white);
}

/* El indicador responde rápido y termina con desaceleración suave. */
.nav-links a::after { display: none !important; }
.nav-links::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  top: var(--nav-indicator-top, 0px);
  width: var(--nav-indicator-width, 0px);
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  opacity: var(--nav-indicator-opacity, 0);
  transform: translate3d(var(--nav-indicator-x, 0px), 0, 0);
  transition: transform .14s cubic-bezier(.2,.8,.2,1),
              width .14s cubic-bezier(.2,.8,.2,1),
              opacity .08s ease,
              top .08s ease;
  pointer-events: none;
  will-change: transform, width;
}

/* Foco accesible, coherente con NOTROS y sin borde azul nativo. */
.nav-links a:focus { outline: none; }
.nav-links a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
  border-radius: 4px;
}

/* Los destinos respetan el header fijo también si se navega por hash. */
#como-funciona, #casos, #plataforma, #casandra, #smilesafe, #clientes {
  scroll-margin-top: 86px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-links::after, .nav-links a { transition: none !important; }
}
