/* ================================================================
   NINA LANDING — CSS
   Completamente aislado de la plataforma MedHub.
   Solo se carga desde layouts/landing.html.erb
   ================================================================ */

/* ── 1. Variables ─────────────────────────────────────────────── */
body.landing-theme {
  --ln-bg-base:       #0b0c11;
  --ln-bg-surface:    #141720;
  --ln-bg-elevated:   #1E2230;
  --ln-bg-light:      #F8F9FC;
  --ln-bg-light-card: #FFFFFF;

  --ln-accent:        #3E5FE6;
  --ln-accent-hover:  #5F7AFF;
  --ln-accent-subtle: rgba(62, 95, 230, 0.10);
  --ln-accent-border: rgba(62, 95, 230, 0.22);

  --ln-text-primary:   #FFFFFF;
  --ln-text-secondary: #a8acc2;
  --ln-text-tertiary:  #656882;

  --ln-text-dark-primary:   #1A1D2E;
  --ln-text-dark-secondary: #6B7080;

  --ln-border:        rgba(255, 255, 255, 0.07);
  --ln-border-mid:    rgba(255, 255, 255, 0.12);
  --ln-border-accent: rgba(62, 95, 230, 0.25);

  --ln-success:        #1D9E75;
  --ln-accent-success: #2ECC8F;
  --ln-warning: #BA7517;
  --ln-error:   #E24B4A;

  --ln-max-width:    1160px;
  --ln-section-v:    7rem;
  --ln-section-v-sm: 4rem;
}

/* ── 2. Base / Reset ──────────────────────────────────────────── */
body.landing-theme *,
body.landing-theme *::before,
body.landing-theme *::after {
  box-sizing: border-box;
}

body.landing-theme {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  background: var(--ln-bg-base);
  color: var(--ln-text-secondary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.landing-theme h1,
.landing-theme h2,
.landing-theme h3,
.landing-theme h4,
.landing-theme p,
.landing-theme ul,
.landing-theme ol,
.landing-theme figure,
.landing-theme blockquote {
  margin: 0;
  padding: 0;
}

body.landing-theme a {
  text-decoration: none;
  color: inherit;
}

body.landing-theme img {
  max-width: 100%;
  display: block;
}

body.landing-theme ul,
body.landing-theme ol {
  list-style: none;
}

/* ── 3. Tipografía ────────────────────────────────────────────── */
.ln-display-xl {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ln-text-primary);
}

.ln-display-lg {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ln-text-primary);
}

.ln-display-md {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ln-text-primary);
}

.ln-body-lg {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ln-text-secondary);
}

.ln-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ln-text-secondary);
}

.ln-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ln-accent-hover);
}

/* ── 4. Componentes ───────────────────────────────────────────── */
.btn-ln-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--ln-accent);
  color: #FFFFFF !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ln-primary:hover {
  background: var(--ln-accent-hover);
  transform: translateY(-1px);
  color: #FFFFFF !important;
}
.btn-ln-primary:active { transform: translateY(0); }

.btn-ln-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--ln-text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--ln-border-mid);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ln-secondary:hover {
  border-color: var(--ln-accent-border);
  background: var(--ln-accent-subtle);
  color: var(--ln-text-primary);
}

.btn-ln-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #FFFFFF;
  color: var(--ln-accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ln-white:hover {
  background: #F0F1FF;
  transform: translateY(-1px);
  color: var(--ln-accent);
}

.ln-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.875rem;
  background: var(--ln-accent-subtle);
  border: 1px solid var(--ln-accent-border);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ln-accent-hover);
}

.ln-badge-success {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: rgba(46, 204, 143, 0.12);
  border: 1px solid rgba(46, 204, 143, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ln-accent-success);
}

.ln-badge-soon {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--ln-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ln-text-tertiary);
}

.ln-feature-card {
  padding: 2rem;
  background: var(--ln-bg-surface);
  border: 1px solid var(--ln-border);
  border-radius: 16px;
  position: relative;
  overflow: visible;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.ln-feature-card:hover {
  border-color: var(--ln-border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(91, 106, 208, 0.18);
}

@keyframes iconPopGlass {
  0%   { opacity: 0; transform: scale(0.5) translateY(6px); }
  70%  { opacity: 1; transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── 5. Layout ────────────────────────────────────────────────── */
.ln-container {
  max-width: var(--ln-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ln-section {
  padding: var(--ln-section-v) 0;
}

.ln-section-header {
  margin-bottom: 3.5rem;
}

.ln-section-header .ln-label {
  display: block;
  margin-bottom: 0.75rem;
}

/* ── 6. Nav ───────────────────────────────────────────────────── */
.ln-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: rgba(13, 15, 20, 0.6);
  border-bottom: 1px solid var(--ln-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ln-nav.scrolled {
  background: rgba(20, 23, 32, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--ln-border-mid);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.ln-nav-inner {
  max-width: var(--ln-max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ln-nav.scrolled .ln-nav-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.ln-nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #ffffff;
}

.ln-nav-brand img,
.ln-nav-brand svg {
  height: 26px;
  width: auto;
}

.ln-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1.5rem;
}

.ln-nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: color 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
}

.ln-nav-links a:hover {
  color: #ffffff;
  opacity: 1;
  filter: none;
}

.ln-nav-links:has(a:hover) a:not(:hover) {
  opacity: 0.35;
  filter: blur(1.5px);
  color: rgba(255, 255, 255, 0.5);
}

.ln-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.ln-nav-actions .btn-ln-secondary {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.ln-nav-actions .btn-ln-primary {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.ln-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ln-text-primary);
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
  margin-left: auto;
}
.ln-hamburger:hover { background: rgba(255,255,255,0.06); }
.ln-hamburger svg { width: 22px; height: 22px; }

.ln-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem 1.25rem;
  border-top: 1px solid var(--ln-border);
  background: rgba(20, 23, 32, 0.97);
}

.ln-mobile-menu.open { display: flex; }

.ln-mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ln-text-secondary);
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s;
}
.ln-mobile-menu a:hover { color: var(--ln-text-primary); }

.ln-mobile-menu .btn-ln-primary,
.ln-mobile-menu .btn-ln-secondary {
  margin-top: 0.5rem;
  justify-content: center;
  width: 100%;
}

/* ── 7. Hero ──────────────────────────────────────────────────── */
.ln-hero {
  background: var(--ln-bg-base);
  padding-top: 10rem;
  padding-bottom: 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-grid-base,
.hero-grid-highlight,
.features-grid-base,
.features-grid-highlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(80, 98, 210, 1) 1px, transparent 1px),
    linear-gradient(to right,  rgba(80, 98, 210, 1) 1px, transparent 1px);
  background-size: 52px 52px;
}
.hero-grid-base,
.features-grid-base { opacity: 0.03; z-index: 0; }
.hero-grid-highlight,
.features-grid-highlight {
  opacity: 0.22;
  z-index: 0;
  mask-image: radial-gradient(circle 170px at -999px -999px, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 170px at -999px -999px, black 0%, transparent 100%);
}
.ln-hero .ln-container { position: relative; z-index: 1; }

.ln-hero-content {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 1.75rem;
}

.hero-title {
  width: 100%;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  max-width: 560px;
  width: 100%;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-hint {
  font-size: 0.8125rem;
  color: var(--ln-text-tertiary);
}

.hero-mockup {
  margin-top: 4rem;
  position: relative;
}

.hero-mockup-window {
  background: var(--ln-bg-surface);
  border: 1px solid var(--ln-border-mid);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.22), 0 8px 20px rgba(0,0,0,0.10);
  max-width: 860px;
  margin: 0 auto;
  text-align: left;

  /* ── Simula el light theme de la plataforma ── */
  --ln-bg-surface:     #ffffff;
  --ln-bg-elevated:    #f0efed;
  --ln-border:         #D9D5D1;
  --ln-border-mid:     #C5C1BC;
  --ln-text-primary:   #1F2933;
  --ln-text-secondary: #5B6570;
  --ln-text-tertiary:  #7A838C;
  --ln-accent:         #3E5FE6;
  --ln-accent-hover:   #3253D4;
  --ln-accent-subtle:  rgba(62, 95, 230, 0.10);
  --ln-accent-border:  rgba(62, 95, 230, 0.25);
}

.hm-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--ln-border);
  background: var(--ln-bg-elevated);
}

.hm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hm-dot.red    { background: #FF5F57; }
.hm-dot.yellow { background: #FFBD2E; }
.hm-dot.green  { background: #28C840; }

.hm-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ln-text-tertiary);
  margin-left: 0.5rem;
}

.hm-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 280px;
}

.hm-sidebar {
  background: rgba(62, 95, 230, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hm-sidebar-dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}
.hm-sidebar-dot.active {
  background: rgba(255, 255, 255, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hm-content {
  padding: 1.5rem;
}

.hm-patient-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ln-border);
}

.hm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ln-accent-subtle);
  border: 1px solid var(--ln-accent-border);
  flex-shrink: 0;
}

.hm-patient-name {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ln-text-primary);
}

.hm-patient-meta {
  font-size: 0.75rem;
  color: var(--ln-text-tertiary);
  margin-top: 0.125rem;
}

.hm-badge {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(29, 158, 117, 0.12);
  color: #1D9E75;
  border: 1px solid rgba(29, 158, 117, 0.2);
  white-space: nowrap;
}

.hm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hm-stat {
  background: var(--ln-bg-elevated);
  border-radius: 10px;
  padding: 0.875rem;
  border: 1px solid var(--ln-border);
}

.hm-stat-value {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ln-text-primary);
  margin-bottom: 0.2rem;
}

.hm-stat-label {
  font-size: 0.6875rem;
  color: var(--ln-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hm-progress-section {
  margin-bottom: 1.25rem;
}

.hm-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ln-text-secondary);
  margin-bottom: 0.5rem;
}

.hm-progress-header span:last-child {
  color: var(--ln-accent-hover);
  font-weight: 500;
}

.hm-progress-bar {
  height: 5px;
  background: var(--ln-border);
  border-radius: 100px;
  overflow: hidden;
}

.hm-progress-fill {
  height: 100%;
  width: 70%;
  background: var(--ln-accent);
  border-radius: 100px;
}

.hm-vitals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.hm-vital-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  background: var(--ln-bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--ln-border);
}

.hm-vital-label {
  color: var(--ln-text-tertiary);
}

.hm-vital-value {
  color: var(--ln-text-primary);
  font-weight: 500;
}

/* ── 8. Trust Bar ─────────────────────────────────────────────── */
.ln-trust-bar {
  background: linear-gradient(135deg, #3E5FE6 0%, #5272F0 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}

.ln-trust-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(255,255,255,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.ln-trust-bar-inner {
  max-width: var(--ln-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}

.ln-trust-item {
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.ln-trust-item:last-child {
  border-right: none;
}

.ln-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ln-trust-icon svg {
  width: 18px;
  height: 18px;
  color: var(--ln-accent-success);
}

.ln-trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ln-trust-main {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.ln-trust-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
}

/* ── 9. Features ──────────────────────────────────────────────── */
.features-section {
  background: var(--ln-bg-base);
  padding: var(--ln-section-v) 0;
  position: relative;
  overflow: hidden;
}
.features-section .ln-container { position: relative; z-index: 1; }

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

.ln-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: absolute;
  top: -16px;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(91, 106, 208, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5) translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}

.ln-feature-card:hover .ln-feature-icon {
  visibility: visible;
  transition: none;
  animation: iconPopGlass 240ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ln-feature-icon svg {
  width: 20px;
  height: 20px;
  color: #5B6AD0;
  stroke: #5B6AD0;
}

.ln-feature-card h3 {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ln-text-primary);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.ln-feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ln-text-secondary);
}

/* ── 10. Narrativas ───────────────────────────────────────────── */
.narrative-section {
  background: var(--ln-bg-surface);
  padding: var(--ln-section-v) 0;
  border-top: 1px solid var(--ln-border);
  border-bottom: 1px solid var(--ln-border);
}

/* Carousel */
.ln-narrative-carousel {
  position: relative;
}

.ln-carousel-viewport {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: min(70vh, 640px);
  min-height: 420px;
}

.ln-carousel-track {
  position: relative;
  height: 100%;
}

.ln-carousel-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.ln-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.nslide-bg {
  position: absolute;
  inset: 0;
}

.nslide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7s ease;
}

.ln-carousel-slide.active .nslide-bg img {
  transform: scale(1);
}

.nslide-bg--1 { background: linear-gradient(145deg, #141a2e 0%, #1c2040 60%, #111520 100%); }
.nslide-bg--2 { background: linear-gradient(145deg, #0e1e1a 0%, #152824 60%, #0b1512 100%); }
.nslide-bg--3 { background: linear-gradient(145deg, #1a1230 0%, #221640 60%, #110e1e 100%); }
.nslide-bg--4 { background: linear-gradient(145deg, #1e1812 0%, #2e2218 60%, #14100a 100%); }

.nslide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

.nslide-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.25;
}

.nslide-placeholder span {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.4;
}

.nslide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top right,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.38) 40%,
    transparent 68%
  );
}

.nslide-copy {
  position: absolute;
  bottom: 2.75rem;
  left: 2.75rem;
  z-index: 2;
  max-width: 730px;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

.ln-carousel-slide.active .nslide-copy {
  transform: translateY(0);
  opacity: 1;
}

.nslide-copy span {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Dots */
.ln-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.ln-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.3s ease;
  flex-shrink: 0;
}

.ln-dot.active {
  width: 24px;
  background: var(--ln-accent);
}

/* ── 11. Mock-ups del producto ────────────────────────────────── */
.product-section {
  background: var(--ln-bg-base);
  padding: var(--ln-section-v) 0;
  border-top: 1px solid var(--ln-border-mid);
  border-bottom: 1px solid var(--ln-border-mid);
  position: relative;
  overflow: hidden;
}
.product-grid-highlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(80, 98, 210, 1) 1px, transparent 1px),
    linear-gradient(to right,  rgba(80, 98, 210, 1) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.22;
  z-index: 0;
  mask-image: radial-gradient(circle 170px at -999px -999px, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 170px at -999px -999px, black 0%, transparent 100%);
}
.product-section .ln-container { position: relative; z-index: 1; }

.ln-product-tabs {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 2.5rem;
  background: var(--ln-bg-surface);
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--ln-border);
  width: fit-content;
}

.ln-tab-btn {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ln-text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.ln-tab-btn:hover { color: var(--ln-text-primary); }

.ln-tab-btn.active {
  background: var(--ln-bg-elevated);
  color: var(--ln-text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.ln-product-panel {
  display: none;
}
.ln-product-panel.active { display: block; }

.product-mockup {
  background: var(--ln-bg-surface);
  border: 1px solid var(--ln-border-mid);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.08);

  /* ── Simula el light theme de la plataforma ── */
  --ln-bg-surface:     #ffffff;
  --ln-bg-elevated:    #f0efed;
  --ln-border:         #D9D5D1;
  --ln-border-mid:     #C5C1BC;
  --ln-text-primary:   #1F2933;
  --ln-text-secondary: #5B6570;
  --ln-text-tertiary:  #7A838C;
  --ln-accent:         #3E5FE6;
  --ln-accent-hover:   #3253D4;
  --ln-accent-subtle:  rgba(62, 95, 230, 0.10);
  --ln-accent-border:  rgba(62, 95, 230, 0.25);
  --ln-warning:        #E6A23C;
}

/* Product mockup — vista 1: control prenatal */
.pm-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--ln-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--ln-bg-elevated);
}

.pm-header-text h4 {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ln-text-primary);
}

.pm-header-text span {
  font-size: 0.8125rem;
  color: var(--ln-text-tertiary);
}

.pm-nom-badge {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(62, 95, 230, 0.12);
  color: var(--ln-accent-hover);
  border: 1px solid var(--ln-accent-border);
}

.pm-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.pm-vitals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.pm-vital-card {
  background: var(--ln-bg-elevated);
  border: 1px solid var(--ln-border);
  border-radius: 8px;
  padding: 0.875rem;
}

.pm-vital-card .label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ln-text-tertiary);
  margin-bottom: 0.25rem;
}

.pm-vital-card .value {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ln-text-primary);
  line-height: 1.1;
}

.pm-vital-card .unit {
  font-size: 0.75rem;
  color: var(--ln-text-tertiary);
  font-weight: 400;
}

.pm-soap {
  background: var(--ln-bg-elevated);
  border: 1px solid var(--ln-border);
  border-radius: 8px;
  padding: 1rem;
}

.pm-soap-section {
  margin-bottom: 0.875rem;
}
.pm-soap-section:last-child { margin-bottom: 0; }

.pm-soap-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ln-accent-hover);
  margin-bottom: 0.3rem;
}

.pm-soap-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ln-text-secondary);
}

/* Agenda mockup */
.pm-agenda-body {
  padding: 1.25rem;
}

.pm-agenda-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.pm-day-col {
  min-width: 0;
}

.pm-day-header {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ln-text-tertiary);
  margin-bottom: 0.625rem;
  text-align: center;
}

.pm-day-header.today {
  color: var(--ln-accent-hover);
}

.pm-slot {
  background: var(--ln-bg-elevated);
  border: 1px solid var(--ln-border);
  border-radius: 6px;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  min-height: 44px;
}

.pm-slot.prenatal {
  border-left: 2px solid var(--ln-accent);
}

.pm-slot.primera-vez {
  border-left: 2px solid #1D9E75;
}

.pm-slot.seguimiento {
  border-left: 2px solid var(--ln-warning);
}

.pm-slot-time {
  color: var(--ln-text-tertiary);
  margin-bottom: 0.125rem;
  font-size: 0.625rem;
}

.pm-slot-name {
  color: var(--ln-text-primary);
  font-weight: 500;
  line-height: 1.3;
}

.pm-slot-type {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ln-text-tertiary);
  margin-top: 0.125rem;
}

.pm-slot.empty {
  background: transparent;
  border: 1px dashed var(--ln-border);
  opacity: 0.4;
}

/* Receta mockup */
.pm-rx-body {
  padding: 1.5rem;
}

.pm-rx-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ln-border);
  margin-bottom: 1rem;
}

.pm-rx-brand {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ln-text-primary);
}

.pm-rx-brand span {
  font-weight: 400;
  color: var(--ln-accent-hover);
}

.pm-rx-folio {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--ln-text-tertiary);
  background: var(--ln-bg-elevated);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  border: 1px solid var(--ln-border);
}

.pm-rx-doctor {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ln-border);
}

.pm-rx-doctor-name {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ln-text-primary);
  margin-bottom: 0.25rem;
}

.pm-rx-doctor-meta {
  font-size: 0.75rem;
  color: var(--ln-text-tertiary);
}

.pm-rx-patient-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ln-border);
}

.pm-rx-patient-row .lbl { color: var(--ln-text-tertiary); }
.pm-rx-patient-row .val { color: var(--ln-text-primary); font-weight: 500; }

.pm-rx-meds {
  margin-bottom: 1.25rem;
}

.pm-rx-med {
  background: var(--ln-bg-elevated);
  border: 1px solid var(--ln-border);
  border-left: 2px solid var(--ln-accent);
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  margin-bottom: 0.625rem;
}

.pm-rx-med-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ln-text-primary);
  margin-bottom: 0.2rem;
}

.pm-rx-med-dose {
  font-size: 0.75rem;
  color: var(--ln-text-secondary);
}

.pm-rx-qr-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ln-border);
}

.pm-rx-qr-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--ln-bg-elevated);
  border: 1px solid var(--ln-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-rx-qr-placeholder svg {
  width: 24px;
  height: 24px;
  color: var(--ln-text-tertiary);
}

.pm-rx-qr-text {
  font-size: 0.75rem;
  color: var(--ln-text-tertiary);
  line-height: 1.5;
}

/* ── 12. Ecosistema ───────────────────────────────────────────── */
.ecosystem-section {
  background: var(--ln-bg-surface);
  padding: var(--ln-section-v) 0;
  border-top: 1px solid var(--ln-border);
  border-bottom: 1px solid var(--ln-border);
}

.ln-ecosystem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}


.ln-ecosystem-intro .ln-display-lg {
  margin-bottom: 1.25rem;
}

.ln-ecosystem-intro .ln-body-lg {
  max-width: 420px;
}

.ln-ecosystem-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ln-eco-card {
  background: var(--ln-bg-elevated);
  border: 1px solid var(--ln-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}
.ln-eco-card:hover { border-color: var(--ln-border-mid); }

.ln-eco-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ln-eco-card-name {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ln-text-primary);
}

.ln-eco-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ln-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.625rem;
}

.ln-eco-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ln-text-secondary);
}

/* ── 13. Precios ──────────────────────────────────────────────── */
.pricing-section {
  background: var(--ln-bg-surface);
  padding: var(--ln-section-v) 0;
  border-top: 1px solid var(--ln-border);
}

.ln-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.pricing-card {
  background: var(--ln-bg-elevated);
  border: 1px solid var(--ln-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { border-color: var(--ln-border-mid); }

.pricing-card.featured {
  border-color: var(--ln-accent);
  transform: translateY(-8px);
  position: relative;
  overflow: hidden;
}

/* Orb superior derecho */
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 98, 210, 0.35) 0%, transparent 68%);
  filter: blur(18px);
  pointer-events: none;
  animation: ln-orb-breathe 4.5s ease-in-out infinite;
  z-index: 0;
}

/* Orb inferior izquierdo */
.pricing-card.featured::after {
  content: '';
  position: absolute;
  bottom: -45px;
  left: -35px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 138, 224, 0.28) 0%, transparent 68%);
  filter: blur(16px);
  pointer-events: none;
  animation: ln-orb-breathe 5.5s ease-in-out infinite reverse;
  z-index: 0;
}

@keyframes ln-orb-breathe {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.18); opacity: 0.65; }
}

.pricing-card.featured .pricing-card-top,
.pricing-card.featured .pricing-features {
  position: relative;
  z-index: 1;
}

.pricing-plan-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}

.pricing-plan-name {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ln-text-tertiary);
}

.pricing-popular-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  background: var(--ln-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
}

.pricing-free-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  background: rgba(37, 219, 207, 0.1);
  color: #25dbcf;
  border: 1px solid rgba(37, 219, 207, 0.25);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
}

.pricing-price {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ln-text-primary);
  line-height: 1;
  margin-bottom: 0.625rem;
}

.pricing-price--free { color: #25dbcf; }

.pricing-price-period {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ln-text-tertiary);
}

.pricing-tagline {
  font-size: 0.9375rem;
  color: var(--ln-text-secondary);
  line-height: 1.6;
}

.pricing-card-top {
  margin-bottom: 1.75rem;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ln-text-secondary);
}

.pricing-feature-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ln-accent-hover);
}

.pricing-footer-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--ln-text-tertiary);
  text-align: center;
  line-height: 1.5;
}

.ln-enterprise-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem 2.5rem;
  background: var(--ln-bg-elevated);
  border: 1px solid var(--ln-border-mid);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.ln-enterprise-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 98, 210, 0.25) 0%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.ln-enterprise-body {
  flex: 1;
  min-width: 0;
}

.ln-enterprise-headline {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ln-text-primary);
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
}

.ln-enterprise-sub {
  font-size: 0.9375rem;
  color: var(--ln-text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

.ln-enterprise-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ln-enterprise-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ln-text-secondary);
}

.ln-enterprise-feature svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ln-accent-hover);
}

.ln-enterprise-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

.ln-enterprise-price-block {
  text-align: right;
}

.ln-enterprise-price-label {
  font-family: 'Geist', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ln-text-primary);
}

.ln-enterprise-price-sub {
  font-size: 0.8125rem;
  color: var(--ln-text-tertiary);
  margin-top: 0.2rem;
}

@media (max-width: 640px) {
  .ln-enterprise-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .ln-enterprise-action {
    align-items: flex-start;
    width: 100%;
  }

  .ln-enterprise-price-block {
    text-align: left;
  }
}

.pricing-see-all {
  text-align: center;
  margin-top: 2rem;
}

.pricing-see-all-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ln-accent-hover);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.pricing-see-all-link:hover {
  opacity: 0.75;
}

/* ── 14. Páginas internas (Precios, etc.) ─────────────────────── */

/* Inner hero — sin mockup, solo texto centrado */
.ln-inner-hero {
  background: var(--ln-bg-base);
  padding-top: 9rem;
  padding-bottom: 4rem;
  text-align: center;
  border-bottom: 1px solid var(--ln-border);
}

.ln-inner-hero h1 { margin-top: 1rem; }

.ln-inner-hero .ln-body-lg {
  margin-top: 1.25rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.ln-inner-hero + .pricing-section {
  padding-top: 0;
  border-top: none;
}

.pricing-hero-wrap {
  position: relative;
  background: var(--ln-bg-base);
}

.pricing-hero-wrap .ln-inner-hero {
  background: transparent;
  border-bottom: none;
}

.pricing-hero-wrap .pricing-section {
  background: transparent;
  border-top: none;
  padding-top: 2rem;
}

/* Nav active link */
.ln-nav-active {
  color: var(--ln-text-primary) !important;
}

/* Inner hero compact (páginas legales e internas sin mockup grande) */
.ln-inner-hero--compact {
  padding-top: 7.5rem;
  padding-bottom: 3rem;
}

/* ── Páginas legales ──────────────────────────────────────────── */
.ln-legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ln-text-tertiary);
}

.ln-legal-breadcrumb a {
  color: var(--ln-text-tertiary);
  transition: color 0.2s;
}

.ln-legal-breadcrumb a:hover { color: var(--ln-text-secondary); }

.ln-legal-breadcrumb span { color: var(--ln-text-tertiary); }

.ln-legal-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ln-text-tertiary);
  margin-top: 1rem;
}

.ln-legal-date svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ln-legal-section {
  background: var(--ln-bg-base);
  padding: 3rem 0 var(--ln-section-v);
}

.ln-legal-doc {
  max-width: 720px;
  margin: 0 auto;
  background: var(--ln-bg-surface);
  border: 1px solid var(--ln-border);
  border-radius: 16px;
  padding: 3rem;
}

.ln-legal-doc--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem;
  text-align: center;
}

.ln-legal-empty-icon svg {
  width: 40px;
  height: 40px;
  color: var(--ln-text-tertiary);
  opacity: 0.4;
}

.ln-legal-empty-text {
  font-size: 0.9375rem;
  color: var(--ln-text-tertiary);
}

/* Contenido legal (salida de simple_format) */
.ln-legal-body p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ln-text-secondary);
  margin-bottom: 1.25rem;
}

.ln-legal-body h2 {
  font-family: 'Geist', sans-serif;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--ln-text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ln-border);
}

.ln-legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ln-legal-body h3 {
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ln-text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.ln-legal-body ul,
.ln-legal-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: disc;
}

.ln-legal-body ol { list-style: decimal; }

.ln-legal-body li {
  padding: 0.2rem 0;
  color: var(--ln-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.ln-legal-body a {
  color: var(--ln-accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ln-legal-body strong {
  font-weight: 600;
  color: var(--ln-text-primary);
}

/* Nav entre páginas legales */
.ln-legal-sitenav {
  max-width: 720px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ln-text-tertiary);
}

.ln-legal-sitenav a {
  color: var(--ln-text-secondary);
  transition: color 0.2s;
}

.ln-legal-sitenav a:hover { color: var(--ln-accent-hover); }

.ln-legal-sitenav a.active {
  color: var(--ln-accent-hover);
  font-weight: 500;
}

@media (max-width: 768px) {
  .ln-legal-doc {
    padding: 1.75rem;
  }

  .ln-inner-hero--compact {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }
}

/* Comparison table */
.ln-compare-section {
  background: var(--ln-bg-surface);
  padding: var(--ln-section-v) 0;
  border-top: 1px solid var(--ln-border);
}

.ln-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--ln-border);
}

.ln-compare-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.ln-compare-table thead tr {
  border-bottom: 1px solid var(--ln-border-mid);
}

.ln-compare-table th {
  padding: 1rem 1.25rem;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ln-text-primary);
  text-align: center;
  background: var(--ln-bg-surface);
}

.ln-compare-table th.ln-compare-feature-col {
  text-align: left;
  width: 40%;
}

.ln-compare-table th.ln-compare-featured {
  background: rgba(80, 98, 210, 0.12);
  color: var(--ln-accent-hover);
  border-left: 1px solid var(--ln-accent-border);
  border-right: 1px solid var(--ln-accent-border);
}

.ln-compare-table td {
  padding: 0.875rem 1.25rem;
  color: var(--ln-text-secondary);
  border-bottom: 1px solid var(--ln-border);
  text-align: center;
  background: var(--ln-bg-surface);
}

.ln-compare-table td:first-child {
  text-align: left;
  color: var(--ln-text-primary);
  font-size: 0.9rem;
}

.ln-compare-table td.ln-compare-featured {
  background: rgba(80, 98, 210, 0.07);
  border-left: 1px solid var(--ln-accent-border);
  border-right: 1px solid var(--ln-accent-border);
}

.ln-compare-category td {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ln-text-tertiary) !important;
  background: var(--ln-bg-elevated) !important;
  border-top: 1px solid var(--ln-border-mid);
}

.ln-compare-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ln-accent-hover);
}

.ln-compare-check svg {
  width: 16px;
  height: 16px;
}

.ln-compare-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ln-text-tertiary);
  opacity: 0.5;
}

.ln-compare-dash svg {
  width: 16px;
  height: 16px;
}

.ln-compare-text {
  font-size: 0.875rem;
  color: var(--ln-text-secondary);
}

/* FAQ */
.ln-faq-section {
  background: var(--ln-bg-base);
  padding: var(--ln-section-v) 0;
  border-top: 1px solid var(--ln-border);
  border-bottom: 1px solid var(--ln-border);
}

.ln-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ln-faq-item {
  background: var(--ln-bg-elevated);
  border: 1px solid var(--ln-border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s ease;
}

.ln-faq-item:hover { border-color: var(--ln-border-mid); }

.ln-faq-q {
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ln-text-primary);
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

.ln-faq-a {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ln-text-secondary);
}

/* ── 15. CTA Final ────────────────────────────────────────────── */
.ln-cta-section {
  background-color: #3E5FE6;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.ln-cta-section::before {
  content: '';
  position: absolute;
  width: 1600px;
  height: 1600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 38%, transparent 65%);
  left: -700px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.ln-cta-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.ln-cta-left {
  max-width: 520px;
}

.ln-cta-heading {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.ln-cta-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.ln-cta-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
}

.ln-cta-card-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ln-cta-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #ffffff;
  color: #3E5FE6;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ln-cta-card-btn:hover {
  opacity: 0.9;
  color: #3E5FE6;
}

.ln-cta-checks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.ln-cta-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.ln-cta-check svg {
  width: 14px;
  height: 14px;
  color: #2ECC8F;
  flex-shrink: 0;
}

/* ── 15. Footer ───────────────────────────────────────────────── */
.ln-footer {
  background: var(--ln-bg-surface);
  border-top: 1px solid var(--ln-border);
  padding: 4rem 0 2rem;
}

.ln-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ln-border);
}

.ln-footer-brand {
  color: #ffffff;
}

.ln-footer-brand img,
.ln-footer-brand svg {
  height: 28px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.ln-footer-disclaimer {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ln-text-tertiary);
  max-width: 280px;
}

.ln-footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ln-text-tertiary);
  margin-bottom: 1rem;
}

.ln-footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--ln-text-secondary);
  margin-bottom: 0.625rem;
  transition: color 0.2s;
}
.ln-footer-col a:hover { color: var(--ln-text-primary); }

.ln-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ln-footer-bottom p {
  font-size: 0.8125rem;
  color: var(--ln-text-tertiary);
}

.ln-footer-email {
  font-size: 0.8125rem;
  color: var(--ln-text-tertiary);
  transition: color 0.2s;
}
.ln-footer-email:hover { color: var(--ln-text-primary); }

/* ── 16. Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ln-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ln-cta-section::before {
    width: 480px;
    height: 480px;
    left: 50%;
    top: -160px;
    transform: translateX(-50%);
  }

  .ln-cta-inner {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .ln-cta-left {
    max-width: 100%;
  }

  .ln-cta-card {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }

  .ln-ecosystem-layout {
    grid-template-columns: 1fr;
  }

  .ln-ecosystem-cards {
    flex-direction: row;
  }

  .ln-eco-card { flex: 1; }

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

  .pm-agenda-days {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  body.landing-theme {
    --ln-section-v: 4rem;
  }

  .ln-nav-links,
  .ln-nav-actions {
    display: none;
  }

  .ln-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ln-hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

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

  .hero-ctas .btn-ln-primary,
  .hero-ctas .btn-ln-secondary {
    justify-content: center;
    width: 100%;
  }

  .ln-features-grid {
    grid-template-columns: 1fr;
  }

  .ln-carousel-viewport {
    height: min(55vw, 420px);
    min-height: 300px;
  }

  .nslide-copy {
    left: 1.5rem;
    bottom: 1.5rem;
  }

  .nslide-copy span {
    font-size: clamp(1.5rem, 5.5vw, 2.25rem);
  }

  .ln-pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .ln-faq-grid {
    grid-template-columns: 1fr;
  }

  .ln-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hm-sidebar {
    display: none;
  }

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

  .hm-vitals {
    grid-template-columns: 1fr;
  }

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

  .ln-product-tabs {
    width: 100%;
    justify-content: center;
  }

  .ln-trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .ln-trust-item {
    padding: 1.25rem 1.5rem;
  }

  .ln-trust-item:nth-child(2) {
    border-right: none;
  }

  .ln-trust-item:nth-child(1),
  .ln-trust-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .ln-ecosystem-cards {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .pm-agenda-days {
    grid-template-columns: 1fr;
  }

  .pm-rx-body {
    padding: 1rem;
  }

  .hm-stats {
    grid-template-columns: 1fr;
  }
}

/* ── Enterprise contact dialog ────────────────────────────────── */
.ec-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 540px;
  width: calc(100vw - 2rem);
}
.ec-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ec-dialog-inner {
  background: var(--ln-bg-surface);
  border: 1px solid var(--ln-border-mid);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
}
.ec-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ln-text-tertiary);
  padding: 4px;
  line-height: 0;
  transition: color 0.15s;
}
.ec-dialog-close:hover { color: var(--ln-text-primary); }
.ec-dialog-close svg { width: 18px; height: 18px; }

.ec-dialog-header { margin-bottom: 1.5rem; }
.ec-dialog-header .ln-label { margin-bottom: 0.5rem; }
.ec-dialog-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ln-text-primary);
  margin: 0.375rem 0 0.5rem;
}
.ec-dialog-sub {
  font-size: 0.875rem;
  color: var(--ln-text-secondary);
  margin: 0;
}

.ec-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ec-form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.ec-col-2 { grid-column: 1 / -1; }
.ec-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ln-text-secondary);
}
.ec-required { color: var(--ln-accent); }
.ec-hint { color: var(--ln-text-tertiary); font-weight: 400; }
.ec-input {
  background: var(--ln-bg-elevated);
  border: 1px solid var(--ln-border-mid);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  color: var(--ln-text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.ec-input:focus {
  outline: none;
  border-color: var(--ln-accent);
}
.ec-textarea { resize: vertical; min-height: 80px; }

.ec-form-error {
  font-size: 0.875rem;
  color: #f87171;
  margin-top: 0.5rem;
}
.ec-submit {
  margin-top: 1.25rem;
  width: 100%;
  background: var(--ln-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.8125rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.ec-submit:hover { background: var(--ln-accent-hover, #3d52c4); }
.ec-submit:active { transform: scale(0.98); }

.ec-state[hidden] { display: none; }

.ec-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(80, 98, 210, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.ec-success-icon svg { width: 28px; height: 28px; color: var(--ln-accent); }
#ec-state-success { text-align: center; padding: 1rem 0; }
#ec-state-success .ec-dialog-sub { margin: 0 auto 1.5rem; max-width: 340px; }

@media (max-width: 480px) {
  .ec-form-grid { grid-template-columns: 1fr; }
  .ec-col-2 { grid-column: 1; }
}

/* ── Cookie Consent Banner (landing) ── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  font-family: 'DM Sans', sans-serif;
}
.ck-inner { padding: 1.25rem; }
.ck-title { font-size: 0.875rem; font-weight: 600; color: #1A1D2E; margin: 0 0 0.375rem; }
.ck-text { font-size: 0.875rem; color: #6B7080; margin: 0 0 1rem; line-height: 1.5; }
.ck-link { color: #3E5FE6; text-decoration: none; }
.ck-link:hover { text-decoration: underline; }
.ck-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.ck-btn {
  width: 100%; padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; text-align: center;
  transition: background 0.15s, color 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.ck-btn--primary { background: #3E5FE6; color: #fff; }
.ck-btn--primary:hover { background: #5F7AFF; }
.ck-btn--secondary { background: transparent; border-color: #E3DFDB; color: #1A1D2E; }
.ck-btn--secondary:hover { background: #f5f5f7; }
.ck-btn--ghost { background: transparent; color: #6B7080; font-size: 0.75rem; padding: 0.25rem 0; }
.ck-btn--ghost:hover { color: #1A1D2E; }
.ck-panel { border-top: 1px solid #eee; padding-top: 1rem; margin-top: 1rem; }
.ck-categories { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 1rem; }
.ck-category { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ck-category-info { flex: 1; }
.ck-category-name { display: block; font-size: 0.875rem; font-weight: 500; color: #1A1D2E; }
.ck-category-desc { display: block; font-size: 0.75rem; color: #6B7080; margin-top: 0.125rem; line-height: 1.4; }
.ck-always-on { font-size: 0.75rem; color: #3E5FE6; font-weight: 500; white-space: nowrap; padding-top: 2px; }
.ck-toggle { position: relative; display: inline-flex; cursor: pointer; flex-shrink: 0; padding-top: 2px; }
.ck-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ck-toggle-track { width: 36px; height: 20px; background: #ddd; border-radius: 999px; transition: background 0.2s; position: relative; }
.ck-toggle input:checked + .ck-toggle-track { background: #3E5FE6; }
.ck-toggle-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s; }
.ck-toggle input:checked + .ck-toggle-track .ck-toggle-thumb { transform: translateX(16px); }
.ck-panel-actions { display: flex; flex-direction: column; gap: 0.5rem; }
@media (max-width: 480px) {
  #cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; width: auto; }
}
