/* ══════════════════════════════════════════════════════════════
   Mappi · Sistema visual v3 · tema claro
   Se carga después de style.css y mappi-v2.css. Redefine tokens,
   nav, masthead (sin Hero clásico), ritmo de secciones, tarjetas,
   medios y pie. Paleta tomada de img/mappi.svg.

   #05347F Azul Mappi Oscuro → títulos y acentos fuertes
   #1360C1 Azul Profundo     → botones y enlaces
   #0287FF Azul Brillante    → estados activos y bordes de foco
   #02C5FF Cian              → líneas decorativas e iconos
   #1E293B Gris Pizarra      → texto principal
   #64748B Gris Medio        → texto secundario
   #E2E8F0 Gris Claro        → filos y superficies
   #EEF5FD Azul Tinta        → secciones alternas
══════════════════════════════════════════════════════════════ */

:root {
  --mp-navy: #05347F;
  --mp-deep: #1360C1;
  --mp-bright: #0287FF;
  --mp-cyan: #02C5FF;
  --mp-slate: #05347F;
  --mp-mid: #64748B;
  --mp-light: #E2E8F0;
  --mp-ink: #EEF5FD;

  --primary: #1360C1;
  --primary-light: #0287FF;
  --primary-dark: #05347F;
  --indigo: #05347F;
  --purple: #0287FF;
  --cyan: #02C5FF;
  --violet-glow: transparent;
  --purple-glow: transparent;
  --cyan-glow: transparent;

  --bg-dark: #FFFFFF;
  --bg-alt: #CFE3FA;
  --bg-card: #FFFFFF;
  --bg-raised: #F0F6FD;
  --border: #E2E8F0;
  --border-hover: #0287FF;
  --line-strong: rgba(5, 52, 127, .30);

  --text-white: #1E293B;
  --text-muted: #475569;
  --text-subtle: #64748B;

  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 6px;

  --shadow-glow: none;
  --shadow-card: none;
  --shadow-btn: none;

  --font-display: "Hind", Arial, sans-serif;
  --font-body: "Hind", Arial, sans-serif;
  --mp-maxw: 1180px;
  --mp-gap: clamp(2.5rem, 5vw, 5rem);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--mp-slate); letter-spacing: -.01em; }

a { color: var(--mp-deep); }

.container { padding: 0 clamp(16px, 3vw, 32px); }

/* ── Logotipo: versión a color para fondos claros ── */
#navbar .logo-img-blank,
#footer .nav-logo .logo-img-blank { display: none !important; }
#navbar .logo-img-colored,
#footer .nav-logo .logo-img-colored { display: block !important; }

/* ── Navegación clara, filo inferior ── */
#navbar {
  background: rgba(255, 255, 255, .94) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: none !important;
}
#navbar.scrolled { background: #FFFFFF !important; box-shadow: none !important; }
#navbar .nav-links a,
body.home-page #navbar:not(.scrolled) .nav-links a { color: var(--mp-slate) !important; }
#navbar .nav-links a:hover { color: var(--mp-deep) !important; }

/* ── Botones ── */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: var(--mp-deep);
  border: 1px solid var(--mp-deep);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--mp-navy);
  border-color: var(--mp-navy);
  box-shadow: none;
  transform: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--mp-deep);
  color: var(--mp-deep);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--mp-ink);
  border-color: var(--mp-navy);
  color: var(--mp-navy);
  transform: none;
}

/* ── Masthead sin Hero clásico ──
   Título a la izquierda; descripción y acciones a la derecha; banda de
   tres cifras separada por filos. Sin orbes, sin centrado. */
#hero {
  background: #FFFFFF;
  min-height: 0;
  padding: clamp(8rem, 14vw, 10.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--border);
}
#hero .orb,
#hero .hero-bg,
#hero .hero-grid { display: none !important; }
#hero .hero-content {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(3rem, 6vw, 4.5rem);
  max-width: none !important;
  margin: 0 !important;
  text-align: left;
}
#hero .hero-text {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: 1.5rem;
  align-items: end;
  max-width: none;
  margin: 0;
  text-align: left;
}
#hero .hero-badge {
  grid-column: 1 / -1;
  justify-content: flex-start !important;
  margin: 0;
}
#hero .badge {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--mp-deep);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
}
#hero .hero-title {
  grid-column: 1;
  grid-row: 2 / span 2;
  margin: 0;
  text-align: left !important;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 600;
  color: var(--mp-slate);
}
.line-gradient, .text-gradient, .highlight {
  background: none !important;
  -webkit-text-fill-color: currentColor;
  color: var(--mp-deep) !important;
}
#hero .hero-description {
  grid-column: 2;
  grid-row: 2;
  margin: 0 !important;
  max-width: none;
  text-align: left !important;
  font-size: 1.08rem;
  color: var(--text-muted);
  border-left: 1px solid var(--mp-cyan);
  padding-left: 1.5rem;
}
#hero .hero-actions {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding-left: 1.5rem;
}
#hero .hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 !important;
  border-top: 1px solid var(--border);
}
#hero .stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.4rem 1.5rem 0;
  border-left: 1px solid var(--border);
  text-align: left;
}
#hero .stat-item:first-child { border-left: 0; padding-left: 0; }
#hero .stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--mp-navy);
  line-height: 1.1;
}
#hero .stat-label { color: var(--text-subtle); font-size: .9rem; }
#hero .hero-visual { width: 100%; }
#hero .demo-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: none;
  height: auto;
}
#hero .demo-frame::before,
#hero .demo-frame::after { background-color: var(--bg-raised) !important; }
#hero .demo-frame video {
  display: block;
  width: 100%;
  height: auto;
}
#hero .float-badge {
  border-radius: 2px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--mp-slate);
}

/* ── Ritmo de secciones: alturas desiguales, no repetidas ── */
.mp-section {
  position: relative;
  border-top: 1px solid var(--border);
}
section.mp-section:nth-of-type(3n+1) {
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(3.5rem, 6vw, 5rem);
}
section.mp-section:nth-of-type(3n+2) {
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(6rem, 10vw, 9rem);
}
section.mp-section:nth-of-type(3n) {
  padding: clamp(4.5rem, 7.5vw, 6.5rem) 0;
}
.mp-section.alt {
  background: var(--bg-alt);
  border-top: 2px solid var(--mp-navy);
}

/* ── Encabezado de sección: título y texto en dos columnas con filo ── */
.mp-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: end;
  gap: .25rem 3rem;
  max-width: none;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.mp-head > .mp-kicker {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0 0 1.1rem;
}
.mp-head .section-title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  max-width: none;
  text-align: left;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.12;
  font-weight: 600;
  color: var(--mp-slate);
}
.mp-head .section-sub {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: none;
  text-align: left;
  color: var(--text-muted);
  font-size: 1.02rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--mp-cyan);
}
.highlight { display: inline !important; }
.section-title .highlight,
.mp-head .section-title .highlight {
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  color: var(--mp-deep) !important;
}

.mp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mp-deep);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 5px 10px;
  margin-bottom: 1rem;
}
.mp-kicker .material-symbols-outlined { font-size: 16px; }

/* ── Filas texto + medio ── */
.mp-row { gap: clamp(2.5rem, 6vw, 5.5rem); }
.mp-row + .mp-row { margin-top: clamp(4rem, 8vw, 7rem); }
.mp-row-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.15;
  margin: .4rem 0 1rem;
  color: var(--mp-slate);
}
.mp-row-text .mp-lead { color: var(--text-muted); font-size: 1.04rem; margin-bottom: 1.5rem; }
.mp-feature-list {
  gap: 0;
  margin: 0 0 1.8rem;
  border-top: 1px solid var(--border);
}
.mp-feature-list li {
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.mp-feature-list .material-symbols-outlined {
  font-size: 18px;
  color: var(--mp-deep);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 3px;
  margin-top: 2px;
}
.mp-feature-list b { color: var(--mp-slate); font-weight: 600; }
.about-pill, .about-pills span {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  font-size: .85rem;
}
.mp-cap-num {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--mp-deep);
}
.mp-new {
  background: var(--mp-deep);
  border-radius: 2px;
  letter-spacing: .08em;
}

/* ── Marcos de medios ── */
.mp-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.mp-frame.browser::before {
  height: 32px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.mp-frame.browser::after {
  top: 11px;
  left: 14px;
  width: 8px;
  height: 8px;
  background: #CBD5E1;
  box-shadow: 14px 0 0 #CBD5E1, 28px 0 0 #CBD5E1;
}
.mp-frame.phone {
  border: 6px solid var(--mp-slate);
  border-radius: 24px;
  background: #FFFFFF;
}
.mp-slide figcaption {
  background: linear-gradient(180deg, transparent, rgba(5, 52, 127, .85));
  font-weight: 500;
  font-size: .9rem;
}
.mp-arrow {
  background: #FFFFFF;
  color: var(--mp-navy);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: none;
  width: 38px;
  height: 38px;
}
.mp-arrow:hover {
  background: var(--mp-deep);
  color: #fff;
  transform: translateY(-50%);
}
.mp-dots { margin-top: 1rem; gap: 6px; }
.mp-dot {
  background: var(--mp-light);
  border-radius: 1px;
  height: 3px;
  width: 14px;
}
.mp-dot.active { background: var(--mp-deep); width: 26px; border-radius: 1px; }
.mp-video { background: var(--bg-raised); }
.mp-play {
  background: #FFFFFF;
  color: var(--mp-deep);
  border: 1px solid var(--mp-deep);
  box-shadow: none;
}
.mp-video-tag {
  background: var(--mp-deep);
  border-radius: 2px;
}

/* ── Tarjetas de aplicaciones: rejilla de filos ── */
.mp-apps {
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mp-app-card {
  background: var(--bg-card);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.mp-app-card:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-raised);
  border-color: transparent;
}
.mp-app-card .mp-app-media {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.mp-app-body { padding: 1.4rem 1.4rem 1.6rem; }
.mp-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--mp-deep);
}
.mp-app-body h3 { font-weight: 600; font-size: 1.2rem; color: var(--mp-slate); }
.mp-app-body .mp-app-role { color: var(--mp-deep); font-size: .75rem; letter-spacing: .1em; }
.mp-app-body p { color: var(--text-muted); font-size: .94rem; }
.mp-app-link { color: var(--mp-deep); font-size: .9rem; }

/* ── Tarjetas de paso, beneficio, plan, FAQ ── */
.step-card,
.benefit-item,
.pricing-card,
.faq-item,
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.faq-item { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; background: transparent; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.benefit-icon {
  background: transparent !important;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--mp-deep);
  box-shadow: none !important;
}
.step-number {
  background: transparent !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 3px !important;
  color: var(--mp-deep) !important;
  box-shadow: none !important;
}
.step-card:hover .step-number {
  background: var(--mp-deep) !important;
  border-color: var(--mp-deep) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.pricing-card.popular {
  background: var(--bg-card) !important;
  border: 1px solid var(--mp-deep) !important;
  box-shadow: none !important;
}
.pricing-card.enterprise {
  background: var(--bg-raised) !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: none !important;
}
.pricing-card.enterprise:hover,
.pricing-card.popular:hover { box-shadow: none !important; }
.popular-badge {
  background: var(--mp-deep) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

/* ── Llamado a la acción y pie ── */
#cta {
  background: var(--bg-alt) !important;
  border-top: 1px solid var(--border);
}
.cta-box {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}
.cta-box::before,
.cta-box::after { display: none !important; }
#footer {
  background: var(--bg-alt) !important;
  border-top: 1px solid var(--border);
}

/* ── Adaptación ── */
@media (max-width: 960px) {
  #hero .hero-text { grid-template-columns: 1fr; }
  #hero .hero-title,
  #hero .hero-description,
  #hero .hero-actions { grid-column: 1; grid-row: auto; }
  #hero .hero-description {
    border-left: 0;
    padding-left: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
  }
  #hero .hero-actions { padding-left: 0; }
  #hero .hero-text { order: 1; }
  #hero .hero-visual { order: 2; }
  .mp-row { grid-template-columns: 1fr; }
  .mp-row.reverse .mp-row-media { order: 0; }
  .mp-head { grid-template-columns: 1fr; }
  .mp-head .section-title,
  .mp-head .section-sub { grid-column: 1; grid-row: auto; }
  .mp-head .section-sub {
    border-left: 0;
    padding-left: 0;
    margin-top: 1rem;
  }
  .mp-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  #hero { padding-top: 7.5rem; }
  #hero .hero-stats { grid-template-columns: 1fr; }
  #hero .stat-item {
    border-left: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }
  #hero .stat-item:last-child { border-bottom: 0; }
  .mp-apps { grid-template-columns: 1fr; }
}

/* ── Plan destacado: texto oscuro sobre fondo claro ── */
.pricing-card.enterprise .plan-name,
.pricing-card.enterprise .plan-price,
.pricing-card.enterprise .plan-features li,
.pricing-card.enterprise .plan-includes-label,
.pricing-card.enterprise .plan-desc { color: var(--mp-slate) !important; }
.pricing-card.enterprise .plan-desc { color: var(--text-muted) !important; border-bottom-color: var(--border) !important; }
.pricing-card.enterprise .plan-features li .material-symbols-outlined { color: var(--mp-deep) !important; }

@media (max-width: 640px) {
  #hero .float-badge {
    left: 12px !important;
    right: auto !important;
    top: auto !important;
    bottom: 12px !important;
  }
}

/* ── Resaltados visibles: vencen a style.css ── */
#hero .hero-title .line-gradient,
.hero-title .line-gradient,
.section-title .highlight,
.mp-head .section-title .highlight,
.highlight,
.line-gradient,
.text-gradient {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--mp-deep) !important;
  display: inline !important;
}

/* ── Etiqueta del hero: bloque de color, legible ── */
#hero .badge,
.hero-badge .badge {
  background: var(--mp-deep) !important;
  border: 1px solid var(--mp-deep) !important;
  color: #FFFFFF !important;
  border-radius: 2px !important;
}
#hero .badge .material-symbols-outlined,
.hero-badge .badge .material-symbols-outlined { color: #FFFFFF !important; }

/* ── Caja de llamado a la acción: respiración interior ── */
#cta .cta-box,
.cta-box {
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--bg-card) !important;
  max-width: 880px;
  margin: 0 auto;
}
.cta-box h2 { margin-bottom: 1rem !important; }
.cta-box .cta-sub { margin-bottom: 2rem !important; }

/* ── Etiqueta de sección (mp-kicker): bloque sólido, legible ── */
.mp-kicker {
  background: var(--mp-navy) !important;
  border: 1px solid var(--mp-navy) !important;
  color: #FFFFFF !important;
  border-radius: 2px !important;
}
.mp-kicker .material-symbols-outlined { color: #FFFFFF !important; }

/* ── Tarjetas de aplicaciones: separación real entre elementos ── */
.mp-apps {
  gap: clamp(1rem, 2vw, 1.5rem) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.mp-app-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  background: var(--bg-card) !important;
}
.mp-app-card:hover {
  border-color: var(--mp-bright) !important;
  background: var(--bg-card) !important;
}

/* ── Gama B · Azul Mappi (tono de secciones alternas en azul medio) ── */
.highlight,
.section-title .highlight,
.mp-head .section-title .highlight,
.line-gradient { color: var(--mp-deep) !important; }

/* ── Encabezado en Azul Mappi Oscuro (#05347F) ── */
#navbar,
#navbar.scrolled,
body.home-page #navbar:not(.scrolled) {
  background: #05347F !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#navbar .logo-img-colored { display: none !important; }
#navbar .logo-img-blank { display: block !important; }
#navbar .nav-links a,
body.home-page #navbar:not(.scrolled) .nav-links a { color: #EEF5FD !important; }
#navbar .nav-links a:hover { color: #FFFFFF !important; }
#navbar .nav-cta .btn-primary,
#navbar .nav-mobile-cta-item .btn-primary {
  background: #FFFFFF !important;
  color: #05347F !important;
  border-color: #FFFFFF !important;
}
#navbar .nav-mobile-toggle,
#navbar .nav-mobile-toggle .material-symbols-outlined { color: #FFFFFF !important; }
#navbar .nav-mobile-toggle { border-color: rgba(255, 255, 255, .35) !important; }
@media (max-width: 768px) {
  #navbar .nav-links { background: #05347F !important; }
}

/* ── Pie de página en blanco ── */
#footer {
  background: #FFFFFF !important;
  border-top: 1px solid var(--border);
}
#footer .nav-logo .logo-img-blank { display: none !important; }
#footer .nav-logo .logo-img-colored { display: block !important; }

/* ── Menús desplegables del encabezado: texto legible en escritorio ── */
#navbar .nav-dropdown-menu {
  background: #FFFFFF !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 8px 24px rgba(5, 52, 127, .12) !important;
}
#navbar .nav-dropdown-menu a,
#navbar .nav-dropdown-item,
body.home-page #navbar .nav-dropdown-menu a {
  color: #1E293B !important;
}
#navbar .nav-dropdown-item .material-symbols-outlined { color: #1360C1 !important; }
#navbar .nav-dropdown-item:hover { background: #EEF5FD !important; color: #05347F !important; }
@media (max-width: 768px) {
  #navbar .nav-dropdown-menu {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  #navbar .nav-dropdown-menu a,
  #navbar .nav-dropdown-item,
  body.home-page #navbar .nav-dropdown-menu a { color: #EEF5FD !important; }
  #navbar .nav-dropdown-item .material-symbols-outlined { color: #BFDBFE !important; }
  #navbar .nav-dropdown-item:hover { background: transparent !important; color: #FFFFFF !important; }
}

/* ── Elementos del desplegable: vencer la regla general de enlaces del menú ── */
#navbar .nav-links .nav-dropdown-menu a,
#navbar .nav-links .nav-dropdown-menu .nav-dropdown-item,
body.home-page #navbar:not(.scrolled) .nav-links .nav-dropdown-menu a {
  color: #1E293B !important;
}
#navbar .nav-links .nav-dropdown-menu a:hover,
#navbar .nav-links .nav-dropdown-menu .nav-dropdown-item:hover {
  color: #05347F !important;
  background: #EEF5FD !important;
}
@media (max-width: 768px) {
  #navbar .nav-links .nav-dropdown-menu a,
  #navbar .nav-links .nav-dropdown-menu .nav-dropdown-item,
  body.home-page #navbar:not(.scrolled) .nav-links .nav-dropdown-menu a {
    color: #EEF5FD !important;
  }
  #navbar .nav-links .nav-dropdown-menu a:hover {
    color: #FFFFFF !important;
    background: transparent !important;
  }
}

/* ── Menú A · Subrayado: mayúsculas y línea cian al pasar el cursor ── */
#navbar .nav-logo { flex-shrink: 0; }
#navbar .nav-links a {
  text-transform: uppercase !important;
  font-size: .72rem !important;
  letter-spacing: .06em !important;
  font-weight: 700 !important;
  padding: 10px 0 !important;
  white-space: nowrap !important;
  position: relative;
}
#navbar .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: #02C5FF;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
#navbar .nav-links a:hover::after { transform: scaleX(1); }
#navbar .nav-dropdown-menu {
  border-top: 3px solid #02C5FF !important;
  border-radius: 4px !important;
}
#navbar .nav-links .nav-dropdown-menu .nav-dropdown-item {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .92rem !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
}
@media (max-width: 768px) {
  #navbar .nav-links a { font-size: .95rem !important; letter-spacing: .04em !important; padding: 14px 0 !important; }
  #navbar .nav-links .nav-dropdown-menu .nav-dropdown-item { font-size: .95rem !important; }
}

/* ── Iconos de beneficio: visibles sobre el fondo claro ── */
.benefit-icon .material-symbols-outlined,
.benefit-item .benefit-icon .material-symbols-outlined {
  color: var(--mp-deep) !important;
  font-size: 22px;
}
.mp-app-icon .material-symbols-outlined { color: var(--mp-deep) !important; }

/* ── Hero con video: texto a la izquierda, video a la derecha, cifras abajo ──
   Solo aplica cuando la página tiene .hero-visual (index). Las demás páginas
   conservan su disposición de una columna. */
#hero .hero-text { display: contents !important; }
#hero .hero-content:has(.hero-visual) {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important;
  column-gap: clamp(2rem, 5vw, 4.5rem) !important;
  row-gap: 1.5rem !important;
  align-items: start !important;
}
#hero .hero-content:has(.hero-visual) .hero-badge { grid-column: 1 !important; grid-row: 1 !important; }
#hero .hero-content:has(.hero-visual) .hero-title {
  grid-column: 1 !important;
  grid-row: 2 !important;
}
#hero .hero-content:has(.hero-visual) .hero-description {
  grid-column: 1 !important;
  grid-row: 3 !important;
  border-left: 0 !important;
  padding-left: 0 !important;
  max-width: 34rem !important;
}
#hero .hero-content:has(.hero-visual) .hero-actions {
  grid-column: 1 !important;
  grid-row: 4 !important;
  padding-left: 0 !important;
}
#hero .hero-content:has(.hero-visual) .hero-visual {
  grid-column: 2 !important;
  grid-row: 1 / span 4 !important;
  align-self: center !important;
}
#hero .hero-content:has(.hero-visual) .hero-stats {
  grid-column: 1 / -1 !important;
  grid-row: 5 !important;
}
@media (max-width: 960px) {
  #hero .hero-content:has(.hero-visual) {
    grid-template-columns: 1fr !important;
  }
  #hero .hero-content:has(.hero-visual) .hero-visual {
    order: -1 !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: auto !important;
  }
  #hero .hero-content:has(.hero-visual) .hero-badge,
  #hero .hero-content:has(.hero-visual) .hero-title,
  #hero .hero-content:has(.hero-visual) .hero-description,
  #hero .hero-content:has(.hero-visual) .hero-actions,
  #hero .hero-content:has(.hero-visual) .hero-stats {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* ── Cifras del hero en una sola línea (también en móvil) ── */
#hero .hero-stats,
#hero .hero-content:has(.hero-visual) .hero-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
}
#hero .stat-item {
  min-width: 0;
  border-bottom: 0 !important;
}
@media (max-width: 640px) {
  #hero .hero-stats,
  #hero .hero-content:has(.hero-visual) .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #hero .stat-item {
    padding: 1rem .75rem 0 !important;
    border-left: 1px solid var(--border) !important;
  }
  #hero .stat-item:first-child {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
  #hero .stat-number { font-size: 1.45rem !important; }
  #hero .stat-label { font-size: .78rem !important; line-height: 1.35; }
}

/* ── Hero: columna del video más ancha ── */
#hero .hero-content:has(.hero-visual) {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr) !important;
}
@media (max-width: 960px) {
  #hero .hero-content:has(.hero-visual) {
    grid-template-columns: 1fr !important;
  }
}

/* ── Título del hero con columna izquierda más estrecha ── */
#hero .hero-content:has(.hero-visual) .hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem) !important;
}

/* ── Mismo hero con video para Client, Admin, Catalog y Field ──
   Aquí el video es un .demo-frame hijo directo de .hero-content. */
#hero .hero-content:has(> .demo-frame) {
  display: grid !important;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr) !important;
  column-gap: clamp(2rem, 5vw, 4.5rem) !important;
  row-gap: 1.5rem !important;
  align-items: start !important;
}
#hero .hero-content:has(> .demo-frame) .hero-badge { grid-column: 1 !important; grid-row: 1 !important; }
#hero .hero-content:has(> .demo-frame) .hero-title {
  grid-column: 1 !important;
  grid-row: 2 !important;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem) !important;
}
#hero .hero-content:has(> .demo-frame) .hero-description {
  grid-column: 1 !important;
  grid-row: 3 !important;
  border-left: 0 !important;
  padding-left: 0 !important;
  max-width: 34rem !important;
}
#hero .hero-content:has(> .demo-frame) .hero-actions {
  grid-column: 1 !important;
  grid-row: 4 !important;
  padding-left: 0 !important;
}
#hero .hero-content:has(> .demo-frame) > .demo-frame {
  grid-column: 2 !important;
  grid-row: 1 / span 4 !important;
  align-self: center !important;
}
@media (max-width: 960px) {
  #hero .hero-content:has(> .demo-frame) { grid-template-columns: 1fr !important; }
  #hero .hero-content:has(> .demo-frame) > .demo-frame {
    order: -1 !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: auto !important;
  }
  #hero .hero-content:has(> .demo-frame) .hero-badge,
  #hero .hero-content:has(> .demo-frame) .hero-title,
  #hero .hero-content:has(> .demo-frame) .hero-description,
  #hero .hero-content:has(> .demo-frame) .hero-actions {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* ── Etiqueta del hero: ancho de su contenido, no de la columna ── */
#hero .hero-content:has(.hero-visual) .hero-badge,
#hero .hero-content:has(> .demo-frame) .hero-badge { justify-self: start !important; width: auto !important; }
#hero .hero-content:has(.hero-visual) .hero-badge .badge,
#hero .hero-content:has(> .demo-frame) .hero-badge .badge { display: inline-flex !important; }

/* ── Corrección: el video no se estira sobre varias filas ──
   Texto y video quedan en una sola fila (columna 1 y columna 2). Así,
   una altura grande del video ya no empuja el título hacia abajo. */
#hero .hero-content:has(> .demo-frame),
#hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) {
  grid-template-rows: auto !important;
}
#hero .hero-content:has(> .demo-frame) > .hero-text,
#hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) > .hero-text {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
}
#hero .hero-content:has(> .demo-frame) > .demo-frame,
#hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) > .hero-visual {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
}
@media (max-width: 960px) {
  #hero .hero-content:has(> .demo-frame) > .hero-text,
  #hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) > .hero-text {
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: auto !important;
  }
  #hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) > .hero-visual {
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: auto !important;
    order: -1 !important;
  }
}

/* ── Separación del texto en el hero de producto ── */
#hero .hero-content:has(> .demo-frame) .hero-title,
#hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) .hero-title { margin-top: 1.25rem !important; }
#hero .hero-content:has(> .demo-frame) .hero-description,
#hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) .hero-description { margin-top: 1.5rem !important; }
#hero .hero-content:has(> .demo-frame) .hero-actions,
#hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) .hero-actions { margin-top: 2rem !important; }

/* ── Inicio: el video ocupa solo las filas del texto (no la etiqueta) ── */
#hero .hero-content:has(.hero-visual):has(.hero-stats) > .hero-visual {
  grid-row: 2 / span 3 !important;
}

/* ── Móvil: video a ancho completo, arriba del texto (Client, Admin, Catalog, Field) ──
   Va al final para ganar a las reglas base de escritorio que fijan columna 2. */
@media (max-width: 960px) {
  #hero .hero-content:has(> .demo-frame),
  #hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #hero .hero-content:has(> .demo-frame) > .demo-frame,
  #hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) > .hero-visual {
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    order: -1 !important;
  }
  #hero .hero-content:has(> .demo-frame) > .hero-text,
  #hero .hero-content:has(.hero-visual):not(:has(.hero-stats)) > .hero-text {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
  }
}
