:root {
  --bg: #0f1115;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #12151c;
  --stroke: rgba(229, 231, 235, 0.08);
  --primary: #2563eb;
  --primary-hover: #1e40af;
  --accent: #14b8a6;
  --accent-strong: #22c55e;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: white;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(15, 17, 21, 0.8);
  z-index: 10;
  border-bottom: 1px solid var(--stroke);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.12);
}

/* =========================
   HERO CON FONDO ABSTRACTO
   (ocupa todo el ancho)
   ========================= */

.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

/* Capa visual full-width */
.hero-bg-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Glow base (atmósfera) */
.hero::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(37, 99, 235, 0.20), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(20, 184, 166, 0.16), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.10), transparent 60%);
  filter: blur(45px);
  opacity: 0.95;
}

/* Textura ultra sutil */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Aura principal */
.hero-bg-visual .aura {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -220px;
  top: -360px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.45), transparent 60%),
    radial-gradient(circle at 70% 65%, rgba(20, 184, 166, 0.35), transparent 55%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.10), transparent 50%);
  filter: blur(120px);
  opacity: 0.9;
  animation: floatHero 18s ease-in-out infinite;
}

@keyframes floatHero {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, 30px, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Contenido arriba del fondo */
.hero .container {
  position: relative;
  z-index: 1;
}

/* Layout: 1 columna siempre (ya no hay visual a la derecha) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  letter-spacing: -0.02em;
}

.hero-copy p {
  color: var(--muted);
  margin: 1rem 0 1.5rem;
  max-width: 640px;
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  color: var(--text);
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-hover));
  color: white;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 48px rgba(30, 64, 175, 0.45);
}

.btn.secondary {
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}

.btn.secondary:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-visual .aura {
    animation: none;
  }
}

.panel {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(37, 99, 235, 0.06));
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric:last-child {
  margin-bottom: 0;
}

.metric .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 10px rgba(20, 184, 166, 0.12);
}

.metric h3 {
  margin: 0;
  font-size: 1rem;
}

.section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.1rem;
}

.card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.kaia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.08));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
}

.kaia h3 {
  margin: 0 0 0.35rem;
}

.kaia p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.values {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.value-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.value-item strong {
  font-size: 1rem;
}

.value-item span {
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--stroke);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.footer a {
  color: var(--text);
}

.footer a:hover {
  color: white;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.tagline::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(20, 184, 166, 0.12);
}

@media (min-width: 720px) {
  .hero {
    padding: 5rem 0 4rem;
  }

  .kaia {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 719px) {
  .navbar {
    padding: 1rem 0;
  }

  .badge {
    margin-left: auto;
  }

  .hero-bg-visual .aura {
    width: 700px;
    height: 700px;
    right: -220px;
    top: -260px;
    filter: blur(105px);
    opacity: 0.9;
  }
}
