:root {
  --bg: #0a0a0a;
  --bg-alt: #101010;
  --card: #111;
  --accent: #00d9ff;
  --accent2: #7f00ff;
  --accent-soft: rgba(0, 217, 255, 0.12);
  --text: #ffffff;
  --muted: #cccccc;
  --turq: #5efce8;

  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 14px 35px rgba(0, 217, 255, 0.25);
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  padding: 4.5rem 0;
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #000 100%);
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;

  /* estilo visual */
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);

  /* altura y alineación */
  height: 90px;
  display: flex;
  align-items: center;
}



.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1.5rem; /* NO vertical padding */
}


.logo {
  display: flex;
  align-items: center;
}



.logo-img {
  height: 180px;
  width: auto;
  object-fit: contain;
  
}






.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.highlight {
  background: linear-gradient(90deg, #00d9ff, #7f00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}




/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(to right, #00d9ff, #7f00ff);
  color: #0a0a0a;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}


.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* Hero media */
.hero-media {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #0f172a, #020617 60%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-card-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 320px;
  overflow-y: auto;
}

.bubble {
  padding: 0.6rem 0.8rem;
  border-radius: 0.9rem;
  font-size: 0.88rem;
  max-width: 90%;
  white-space: pre-line;
}

.bubble-user {
  background: rgba(15, 23, 42, 0.9);
  align-self: flex-end;
  border-bottom-right-radius: 0.2rem;
}

.bubble-bot {
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.4);
  align-self: flex-start;
  border-bottom-left-radius: 0.2rem;
}

/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: radial-gradient(circle at top left,
    rgba(0, 217, 255, 0.08),
    rgba(15, 23, 42, 0.92)
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.4rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#problema .card,
#sistema .card {
  border-color: rgba(0, 217, 255, 0.4);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.9);
  border-color: rgba(94, 252, 232, 0.7);
}
.card h3 {
  color: #ffffff;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}


/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.plan-card {
  position: relative;
}

.plan-card-featured {
  border-color: var(--accent);
  box-shadow: 0 18px 50px rgba(56, 189, 248, 0.25);
  transform: translateY(-4px);
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.plan-card ul {
  list-style: none;
  padding-left: 0;
}

.plan-card li {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* Demo */
.demo-actions {
  display: flex;
  justify-content: center;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 1.5rem;
}

.about-grid p {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: #020617;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-mini {
  margin-top: 0.3rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .grid-3, .plans {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none; /* luego si quieres hacemos menú móvil */
  }
}

/* Sección PROBLEMA: fondo con luz azul suave */
#problema {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top, #050816 0, #020617 40%, #000 100%);
}

#problema::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 217, 255, 0.22), transparent 60%),
    radial-gradient(circle at 100% 30%, rgba(127, 0, 255, 0.18), transparent 65%);
  opacity: 0.8;
  z-index: 0;
}

#problema .container {
  position: relative;
  z-index: 1;
}

/* Sección SOLUCIÓN: gradiente más claro y limpio */
#sistema {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #050816 0%,
    #020617 35%,
    #050816 100%
  );
}

#sistema::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 217, 255, 0.2), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(94, 252, 232, 0.15), transparent 60%);
  opacity: 0.9;
  z-index: 0;
}

#sistema .container {
  position: relative;
  z-index: 1;
}
