:root {
  --bg: #020617;
  --bg-alt: #020617;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #6366f1;
  --glow: rgba(99,102,241,.4);
  --shadow-card: 0 20px 40px rgba(0,0,0,.35);
  --shadow-hover: 0 25px 60px rgba(0,0,0,.45);
  --background-body:radial-gradient(circle at top, #0f172a, var(--bg));
}

body.light {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --glass: rgba(255,255,255,0.7);
  --glass-border: rgba(15,23,42,0.1);
  --text: #020617;
  --muted: #475569;
  --primary:#8286c6;
  --glow: rgba(79,70,229,.25);
  --shadow-card: 0 20px 40px rgba(15,23,42,.08);
  --shadow-hover: 0 25px 60px rgba(15,23,42,.12);
  --background-body:radial-gradient(circle at top, #f0f0f0, #fff);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ======================
   DARK MODE
====================== */
body {
  background:
    radial-gradient(circle at top, rgba(17, 24, 39,.18), transparent 55%),
    var(--bg);
  color: var(--text);
}


body.light {
  background:
    radial-gradient(circle at top, rgba(59,130,246,.12), transparent 55%),
    linear-gradient(#ffffff, #f8fafc);
}




/* HEADER GLASS */
header {
  position: fixed; /* Cambiado a fixed para asegurar el control de scroll */
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: transform 0.4s ease-in-out;
  backdrop-filter: blur(14px);
  background: rgba(2, 6, 23, 0.75);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  max-width: 1100px;
  margin: auto;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.8rem;
}

.logo img {
  border-radius: 8px;
  width:50px;
}

/* Enlaces de Navegación */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  opacity: 0.8;
}

.nav-links a:hover {
  color: var(--primary);
  opacity: 1;
}

body.light header {
  background: rgba(255,255,255,.75);
}


body.light .testimonials-fade {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(248,250,252,.8) 40%,
    rgba(248,250,252,1) 100%
  );
}

/* Ajuste para el modo LIGHT (azul más sutil) */
body.light .solution::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}



/* Estilo base del botón */
.theme-toggle {
  background: transparent;
  border:none;
  color: var(--text);
  padding: .5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Ocultar iconos por defecto */
.sun-icon, .moon-icon {
  display: none;
  transition: transform 0.4s ease;
}

/* MODO DARK (Estado inicial) */
body:not(.light) .sun-icon {
  display: block;
}

/* MODO LIGHT (Cuando se activa la clase .light) */
body.light .moon-icon {
  display: block;
}

/* Animación al pasar el mouse */
.theme-toggle:hover {
  background: var(--glass);
  transform: scale(1.1);
}



/* BOTONES */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: white;
}

.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--glow);
  transform: translateY(-2px);
}



.nav {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}



button {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: .45rem .7rem;
  border-radius: 8px;
  cursor: pointer;
}

/* HERO */
.hero {
  max-width: 1100px;
  margin: auto;
  padding: 6rem 1rem 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
}

.hero p {
  max-width: 720px;
  margin: 1rem auto 2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: white;
  padding: .9rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 0 0 transparent;
  transition: all .3s ease;
}

.btn:hover {
  box-shadow: 0 0 30px var(--glow);
  transform: translateY(-2px);
}

/* SECTIONS */
section {
  padding: 4rem 1rem;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* GLASS CARDS */
.card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all .35s ease;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(255,255,255,.15), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}


.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  border-color: var(--primary);
}

.card h3 {
  margin-bottom: .8rem;
}

.card ul {
  list-style: none;
}

.card li {
  color: var(--muted);
  margin-bottom: .5rem;
}

/* FINAL CTA */
.final {
  background: linear-gradient(180deg, transparent, rgba(99,102,241,.1));
  text-align: center;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: .9rem;
  color: var(--muted);
}


/* Contenedor del brillo independiente */
.glow-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none; /* No interfiere con clics o selección de texto */
  overflow: hidden;
  z-index: 0;
}

/* El círculo de luz azul */
.glow-spot {
  position: absolute;
  width: 500px;
  height: 500px;
  /* Color Azul Difuso (vibrante en dark, suave en light) */
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
}

/* Posiciones personalizadas (puedes crear más) */
.spot-right { top: 20%; right: -10%; }
.spot-left { bottom: 20%; left: -10%; }
.spot-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Ajuste automático para Modo Light */
body.light .glow-spot {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  filter: blur(100px);
}


.features-testimonials {
  padding: 6rem 1rem;
  background: radial-gradient(circle at center, rgba(99,102,241,.15), transparent 70%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 8rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  transition: all .3s ease;
  text-align:left;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.check {
  color: var(--primary);
  font-weight: bold;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 2rem;
  transition: all .3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.user {
  display: flex;
  gap: .8rem;
  align-items: center;
  margin-bottom: .8rem;
}

.user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.user span {
  font-size: .85rem;
  color: var(--muted);
}

.stars {
  color: #a855f7;
  margin-bottom: .6rem;
}

.final-cta {
  padding: 6rem 1rem;
  /*background: radial-gradient(circle at top, rgb(20, 27, 49), #eee0 50%);*/
}

.cta-box {
  max-width: 720px;
  margin: auto;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-card);
}

.cta-box h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  display: block;
  margin-top: 1.5rem;
  font-size: .85rem;
  color: var(--muted);
}


.hero {
  padding: 7rem 1rem 5rem;
  text-align: center;
}

.hero-center {
  max-width: 900px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 720px;
  margin: auto;
  color: var(--muted);
}

.hero-mockup {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.mockup-window {
  background: #0b1220;
  color: #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  width: 520px;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.mockup-title {
  display: block;
  font-size: .85rem;
  opacity: .6;
  margin-bottom: .5rem;
}

/* ================= */

.problem {
  padding: 4rem 1rem 6rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  text-align: left;
}

.problem-item h3 {
  margin: 1rem 0 .5rem;
}

.problem-item p {
  color: var(--muted);
  font-size: .95rem;
}



.solution-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.solution-image-on img {
  width: 100%;
  border-radius: 16px;  
}



.solution {
  padding: 6rem 1rem;
  text-align: center;
  position: relative; /* Importante */
  overflow: hidden;   /* Evita scroll lateral por el brillo */
  
}


/* El efecto de brillo azul */
.solution::before {
  content: "";
  position: fixed;
  top: 50%;
  right: -10%; /* Lo posicionamos hacia un lado para que no sea un círculo perfecto al centro */
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

/* En la segunda sección (la invertida), ponemos el brillo al otro lado */
.solution-reverse::before {
  right: auto;
  left: -10%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.solution-content{
	text-align:left;
}

.solution-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.solution-content p {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.solution-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}

.solution-lists ul {
  list-style: none;
  padding: 0;
}

.solution-lists li {
  margin-bottom: .6rem;
  color: var(--text);
}

.solution-lists li span{
  margin-bottom: .6rem;
  color:#1d376a;
}

.solution-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.solution-visual-off img {
  width: 100%;
  border-radius: 18px;
  
}

/* Invertir orden */
.solution-reverse .solution-grid {
  direction: rtl;
}

.solution-reverse .solution-content {
  direction: ltr;
}


/* Encabezado */
.solutions-header {
  max-width: 720px;
  margin: 0 auto 4rem;
  margin-bottom:15%;
}

.solutions-header h2 {
  font-size: clamp(2.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.solutions-header p {
  font-size: 1.05rem;
  color: var(--muted);
  width:100%;
  max-width:500px;
  margin:0 auto;
}



.testimonials {
  position: relative;
  padding: 6rem 1rem 8rem;
  background: radial-gradient(circle at top, rgba(99, 115, 176,.15), transparent 60%);
  overflow: hidden;
}

.testimonials-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
}

.testimonial-card img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.testimonial-card span {
  font-size: .85rem;
  color: var(--accent);
}

/* =========================
   DEGRADADO DIFUSO INFERIOR
========================= */
.testimonials-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 260px;
  pointer-events: none;
  background: linear-gradient( to bottom, rgba(84, 98, 136, 0) 0%, rgba(1, 7, 21, 0.65) 40%, rgb(2, 6, 23) 100% );
  z-index: 3;
}



.ctn0p {
    --tw-gradient-to: transparent;
}
.c7sf3 {
    --tw-gradient-from: #111827;
    --tw-gradient-to: rgb(17 24 39 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.c4wey {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}
.cw2sg {
    height: 15rem;
}
.cxe4z {
    z-index: 10;
}
.c5n0y {
    right: 0px;
}
.cpg49 {
    left: 0px;
}
.c8igq {
    bottom: 0px;
}
.c307p {
    position: absolute;
}
.c5sfa {
    pointer-events: none;
}


/* MEDIA QUERIES PARA DISPOSITIVOS PEQUEÑOS 420px */
@media (max-width: 480px) {
  .solution-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .solution-lists {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .solution-reverse .solution-grid {
    display: flex;
    flex-direction: column-reverse;
  }

  .cta-actions .btn-primary, .cta-actions .btn-secondary {
    width: 100%;
  }

  .hero { padding-top: 3rem; }
}

/* Ajustes para móviles menores a 420px */
@media (max-width: 420px) {
  .nav-links {
    display: none; /* Se recomienda un menú hamburguesa, pero por ahora los ocultamos para evitar amontonamiento */
  }
  .logo span {
    font-size: 1.8rem;
  }
}