/* EduQuiriat - Landing Page - Estilo agresivo */
html { scroll-behavior: smooth; }
:root {
  --landing-primary: #22d3ee;
  --landing-primary-dark: #06b6d4;
  --landing-accent: #6366f1;
  --landing-bg: #0f172a;
  --landing-bg-card: rgba(15, 23, 42, 0.95);
  --landing-card: rgba(30, 41, 59, 0.8);
  --landing-card-border: rgba(34, 211, 238, 0.15);
  --landing-text: #f1f5f9;
  --landing-text-muted: #94a3b8;
  --landing-glow: rgba(34, 211, 238, 0.4);
}

.landing {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--landing-bg);
  color: var(--landing-text);
  overflow-x: hidden;
  position: relative;
}

/* Fondo: grid base (parallax layer 0) */
.landing::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Parallax: orbes flotantes animados */
.landing-parallax {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.landing-parallax .parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
}

.landing-parallax .parallax-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--landing-primary);
  top: -100px;
  right: -100px;
  animation: floatOrb1 20s ease-in-out infinite;
}

.landing-parallax .parallax-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--landing-accent);
  bottom: 20%;
  left: -80px;
  animation: floatOrb2 25s ease-in-out infinite;
}

.landing-parallax .parallax-orb-3 {
  width: 200px;
  height: 200px;
  background: var(--landing-primary);
  bottom: -50px;
  right: 20%;
  animation: floatOrb3 18s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 50px) scale(1.1); }
  66% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.15); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-50px, -20px); }
  66% { transform: translate(30px, 30px); }
}

/* Nav */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.landing-nav.scrolled {
  background: var(--landing-bg-card);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.landing-nav .logo {
  height: 2rem;
}

.landing-nav .btn-login {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--landing-text);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.landing-nav .btn-login:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* Video de fondo tipo parallax */
.section-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.section-video-bg .section-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  z-index: 1;
}

/* Hero: fondo con imagen header-landing.jpg (la URL se inyecta desde landing.php con baseUrl) */
.hero-image-section {
  position: relative;
  z-index: 1;
  background-color: var(--landing-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-image-section .hero-container {
  position: relative;
  z-index: 2;
}

/* Problema: layout contenido + video al costado */
.problema-section {
  padding: 5rem 2rem;
}

.problema-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.problema-content {
  max-width: 540px;
}

.problema-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.problema-intro {
  font-size: 1.1rem;
  color: var(--landing-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.problema-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: grid;
  gap: 0.75rem;
}

.problema-list li {
  padding: 0.9rem 1.25rem;
  padding-left: 3rem;
  position: relative;
  color: var(--landing-text);
  font-size: 0.95rem;
  line-height: 1.5;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.problema-list li:hover {
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(30, 41, 59, 0.8);
}

.problema-list li::before {
  content: '▸';
  position: absolute;
  left: 1.25rem;
  color: var(--landing-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.problema-result {
  padding: 1.5rem 1.75rem;
  background: rgba(214, 57, 57, 0.08);
  border: 1px solid rgba(214, 57, 57, 0.25);
  border-radius: 12px;
}

.problema-result-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f87171;
  margin: 0 0 0.35rem 0;
}

.problema-result-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--landing-text);
  margin: 0;
  line-height: 1.5;
}

.problema-video-side {
  position: relative;
}

.problema-video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px rgba(34, 211, 238, 0.08);
}

.problema-video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.problema-video-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  background: rgba(15, 23, 42, 0.85);
  color: var(--landing-primary);
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

@media (max-width: 900px) {
  .problema-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .problema-content { max-width: none; }
  .problema-video-side { order: -1; }
}

/* IA: imagen de fondo (antes video) cubre toda la sección */
.ia-image-section {
  position: relative;
  overflow: hidden;
  background: var(--landing-bg);
}

.ia-image-section .ia-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.ia-image-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ia-image-section .ia-section-overlay,
.ia-image-section .section-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 23, 42, 0.78);
}

.ia-section-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;  /* mismo padding que el resto de secciones */
}

/* Hero */
.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero-content {
  text-align: left;
}

.hero-visual {
  position: relative;
}

/* Construcción del sistema - bloques que revelan el dashboard */
.dashboard-build {
  overflow: hidden;
  border-radius: 16px;
}

.dashboard-img-wrap {
  position: relative;
  display: block;
}

.dashboard-build .hero-mockup {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(34, 211, 238, 0.08);
}

.dashboard-reveal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.dashboard-reveal .dashboard-card {
  flex: 1;
  min-height: 16.666%;
  background: var(--landing-bg);
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}

/* Línea de escaneo digital */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.6), transparent);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
  z-index: 3;
  pointer-events: none;
  top: 0;
}

.hero-mockup {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(34, 211, 238, 0.08);
}

/* Panel institucional - imagen con glow y sombra */
.panel-section .panel-img-wrap {
  position: relative;
  display: inline-block;
}

.panel-img {
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 60px rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

/* IA - contenedor para zoom + highlight */
.ia-visual-wrap {
  position: relative;
  display: inline-block;
}

.ia-highlight {
  position: absolute;
  inset: -8px;
  border-radius: 16px;
  border: 2px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.ia-visual-wrap .section-img {
  position: relative;
  z-index: 0;
}

/* Game section - visión futuro */
/* Visión Futuro - dos novedades */
.vision-futuro-section {
  padding-bottom: 5rem;
}

.vision-futuro-section h2 {
  margin-bottom: 0.75rem;
}

.vision-futuro-section .section-intro {
  max-width: 560px;
  margin-bottom: 3rem;
}

.vision-futuro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.vision-futuro-card {
  background: var(--landing-card);
  border: 1px solid var(--landing-card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.vision-futuro-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 40px rgba(34, 211, 238, 0.08);
}

.vision-futuro-card-visual {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.vision-futuro-card-visual--game {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.15), rgba(34, 211, 238, 0.08));
  border-bottom: 1px solid var(--landing-card-border);
}

.vision-futuro-card-visual--meduca {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.1));
  border-bottom: 1px solid var(--landing-card-border);
}

.vision-futuro-img {
  max-width: 100%;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
}

.vision-futuro-meduca-preview {
  width: 100%;
  max-width: 320px;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 12px;
}

.vision-futuro-meduca-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--landing-primary);
  margin-bottom: 0.75rem;
}

.vision-futuro-meduca-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.vision-futuro-meduca-cols span {
  font-size: 0.8rem;
  color: var(--landing-text-muted);
  padding: 0.25rem 0.5rem;
  background: rgba(34, 211, 238, 0.08);
  border-radius: 6px;
}

.vision-futuro-card-body {
  padding: 2rem;
  flex: 1;
}

.vision-futuro-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--landing-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.vision-futuro-card-desc {
  color: var(--landing-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.vision-futuro-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vision-futuro-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--landing-text-muted);
  line-height: 1.5;
}

.vision-futuro-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  background: var(--landing-primary);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .vision-futuro-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .vision-futuro-card-visual {
    min-height: 180px;
  }

  .vision-futuro-card-body {
    padding: 1.5rem;
  }
}

/* Imágenes de sección */
.section-with-image {
  margin: 2rem 0;
  text-align: center;
}

.section-img {
  max-width: 100%;
  width: 400px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.15);
}

.section-img-wide {
  width: 100%;
  max-width: 600px;
}

.landing-hero {
  position: relative;
  z-index: 1;
}

.hero-content .hero-title,
.landing-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 100%;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: normal;
}

.landing-hero h1 .word {
  display: inline-block;
  white-space: nowrap;
}

.landing-hero h1 .char {
  display: inline-block;
}

.landing-hero .hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--landing-text-muted);
  max-width: 100%;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

.landing-hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.landing-hero .btn-primary-cta {
  background: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
  color: #0f172a;
  padding: 1rem 2.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 0 30px var(--landing-glow);
}

.landing-hero .btn-primary-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px var(--landing-glow), 0 0 60px rgba(34, 211, 238, 0.2);
  color: #0f172a;
}

.landing-hero .btn-secondary-cta {
  background: transparent;
  border: 2px solid rgba(34, 211, 238, 0.5);
  color: var(--landing-primary);
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.landing-hero .btn-secondary-cta:hover {
  border-color: var(--landing-primary);
  background: rgba(34, 211, 238, 0.1);
  color: var(--landing-primary);
}

/* Section común */
.landing-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Secciones con video de fondo: ancho completo para que el video cubra todo */
.landing-section.ia-image-section {
  max-width: none;
  width: 100%;
  padding: 0;
}

.landing-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.landing-section .section-intro {
  font-size: 1.125rem;
  color: var(--landing-text-muted);
  margin-bottom: 3rem;
  max-width: 640px;
  line-height: 1.6;
}

/* Secciones con z-index */
.landing-section, .landing-cta, .landing-footer {
  position: relative;
  z-index: 1;
}

/* Problema */
.landing-problema {
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.04) 50%, transparent 100%);
}

.landing-problema ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-problema li {
  padding: 1rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--landing-text-muted);
  line-height: 1.5;
}

.landing-problema li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--landing-primary);
  font-weight: bold;
}

/* Diferenciador - contraste "no es" / "sí es" */
.diferenciador-section .section-intro {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.diferenciador-contraste {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

.diferenciador-block {
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.diferenciador-block--no {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--landing-card-border);
  opacity: 0.9;
}

.diferenciador-block-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.diferenciador-block--no .diferenciador-block-label {
  color: var(--landing-text-muted);
}

.diferenciador-block--si .diferenciador-block-label {
  color: var(--landing-primary);
}

.diferenciador-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.diferenciador-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--landing-text-muted);
  line-height: 1.5;
}

.diferenciador-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: rgba(248, 113, 113, 0.8);
  font-weight: 700;
  font-size: 1.1rem;
}

.diferenciador-block--si {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.08);
}

.diferenciador-mensaje {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--landing-text);
  margin: 0;
  flex: 1;
}

.diferenciador-mensaje strong {
  color: var(--landing-primary);
}

@media (max-width: 700px) {
  .diferenciador-contraste {
    grid-template-columns: 1fr;
  }

  .diferenciador-block {
    padding: 1.5rem;
  }
}

/* Solución / Beneficios - Cards */
.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.landing-card {
  background: var(--landing-card);
  border: 1px solid var(--landing-card-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.landing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(34, 211, 238, 0.1);
}

.landing-card .card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(99, 102, 241, 0.2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.landing-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.landing-card p {
  color: var(--landing-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Cards con imagen superior (Agente IA) - estilo Tabler "Card with top image" */
.landing-cards--ia {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.landing-cards--ia .landing-card-img {
  background: var(--landing-card);
  border: 1px solid var(--landing-card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.landing-cards--ia .landing-card-img:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(34, 211, 238, 0.1);
}

.landing-cards--ia .landing-card-img .card-img-top.landing-card-img-top {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

.landing-cards--ia .landing-card-img .card-body {
  background: var(--landing-card);
  color: var(--landing-text);
  padding: 1.5rem;
}

.landing-cards--ia .landing-card-img .card-title {
  color: var(--landing-text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.landing-cards--ia .landing-card-img .card-body .text-secondary {
  color: var(--landing-text-muted) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Cómo funciona - Steps */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.landing-step {
  text-align: center;
  position: relative;
}

.landing-step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
  color: #0f172a;
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 48px;
}

.landing-step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.landing-step p {
  color: var(--landing-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* CTA Pre-footer (video de fondo, correo principal) */
.cta-prefooter {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
  text-align: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-prefooter-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.cta-prefooter-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-prefooter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  z-index: 1;
}

.cta-prefooter-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.cta-prefooter h2 {
  margin-bottom: 0.75rem;
  font-weight: 800;
  color: var(--landing-text);
}

.cta-prefooter-intro {
  color: var(--landing-text-muted);
  margin-bottom: 1rem;
}

.cta-prefooter-email {
  margin: 0.5rem 0;
}

.cta-email-main {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--landing-primary);
  text-decoration: none;
  text-shadow: 0 0 20px var(--landing-glow);
}

.cta-email-main:hover {
  color: var(--landing-accent);
  text-decoration: underline;
}

.cta-prefooter-phone {
  font-size: 0.95rem;
  color: var(--landing-text-muted);
  margin-bottom: 1.5rem;
}

.cta-prefooter-phone .cta-phone-link {
  color: var(--landing-text-muted);
  text-decoration: none;
}

.cta-prefooter-phone .cta-phone-link:hover {
  color: var(--landing-primary);
  text-decoration: underline;
}

.cta-prefooter-btns {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-prefooter .btn-primary-cta {
  background: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 0 30px var(--landing-glow);
  border: none;
  cursor: pointer;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
}

.cta-prefooter .btn-primary-cta.cta-pulse {
  animation: ctaGlow 2s ease-in-out infinite;
}

.cta-prefooter .btn-secondary-cta {
  cursor: pointer;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: transparent;
  color: var(--landing-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.cta-prefooter .btn-secondary-cta:hover {
  background: rgba(34, 211, 238, 0.15);
  color: var(--landing-text);
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 25px var(--landing-glow); transform: scale(1); }
  50% { box-shadow: 0 0 45px var(--landing-glow), 0 0 70px rgba(34, 211, 238, 0.2); transform: scale(1.03); }
}

/* Modal contacto landing */
.modal-contacto-content {
  background: var(--landing-card, #1e293b);
  border: 1px solid var(--landing-card-border, rgba(34, 211, 238, 0.2));
  border-radius: 16px;
  color: var(--landing-text, #e2e8f0);
}

.modal-contacto-content .modal-header {
  border-bottom-color: var(--landing-card-border, rgba(255,255,255,0.08));
}

.modal-contacto-content .modal-title {
  color: var(--landing-text, #e2e8f0);
}

.modal-contacto-content .modal-body .form-label {
  color: var(--landing-text-muted, #94a3b8);
}

.modal-contacto-content .form-control {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--landing-card-border);
  color: var(--landing-text);
}

.modal-contacto-content .form-control::placeholder {
  color: var(--landing-text-muted);
}

.modal-contacto-content .form-control:focus {
  border-color: var(--landing-primary);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.modal-contacto-content .btn-close {
  filter: invert(1);
}

.modal-contacto-content .btn-primary {
  background: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
  border: none;
  color: #0f172a;
  font-weight: 600;
}

/* Footer */
.landing-footer {
  padding: 2rem;
  text-align: center;
  color: var(--landing-text-muted);
  font-size: 0.9rem;
}

.landing-footer a {
  color: var(--landing-primary);
  text-decoration: none;
}

/* Antes vs Después */
.landing-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.landing-before, .landing-after {
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
}

.landing-before {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.landing-after {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.landing-before h3, .landing-after h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.landing-before h3 { color: #f87171; }
.landing-after h3 { color: var(--landing-primary); }

.landing-before ul, .landing-after ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-before li, .landing-after li {
  padding: 0.5rem 0;
  color: var(--landing-text-muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .landing-comparison { grid-template-columns: 1fr; }
}

/* Lista SaaS */
.landing-saas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.landing-saas-list li {
  padding: 1rem 1.5rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
  color: var(--landing-text);
  font-weight: 500;
  position: relative;
  padding-left: 2.5rem;
}

.landing-saas-list li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  color: var(--landing-primary);
  font-weight: 700;
}

/* Tabler pricing cards (template/pricing.html) - overrides para landing */
.landing-saas .row-cards {
  margin-top: 3rem;
}

.landing-saas .card {
  border-color: rgba(34, 211, 238, 0.2);
}

.landing-saas .card-active {
  border-color: var(--landing-primary);
}

.landing-saas .btn {
  font-weight: 600;
}

.landing-footer a:hover {
  text-decoration: underline;
}

/* Sin estilos iniciales que oculten - GSAP anima desde opacity 0 */
@media (max-width: 768px) {
  .landing-nav { padding: 1rem; }
  .landing-hero { padding: 5rem 1.5rem 3rem; }
  .hero-container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { text-align: center; }
  .landing-hero .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .landing-section { padding: 3rem 1.5rem; }
}
