/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Fondo general oscuro, el hero ya trae su propia imagen */
  background: #020617;
  color: #f5f7fb;
  line-height: 1.6;
}

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 6vw;
  background: linear-gradient(to bottom, rgba(2, 8, 20, 0.96), rgba(2, 8, 20, 0.8));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

/* LOGO NUEVO (ICONO + TEXTO) */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e5e7eb;
}

.nav-logo img {
  height: 52px;      /* MÁS GRANDE */
  width: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #e2e8f0;
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: #22c55e;
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid #22c55e;
}

/* HERO CON FONDO DE VELAS */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4.5rem 6vw 3rem;
  background-image: url("hero-bg-chart.png");
  background-size: 120%;      /* ligero zoom para que se vean más las velas */
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate; /* para que el overlay no afecte a otras cosas */
}

/* Overlay más transparente para que se vea más la gráfica */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.45),   /* antes 0.88 */
    rgba(2, 6, 23, 0.65)      /* antes 0.94 */
  );
  z-index: -1;
}

.hero-content {
  position: relative;
  max-width: 900px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5f3fc;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.hero p {
  max-width: 620px;
  color: #cbd5f5;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease, opacity 0.12s ease;
}

.btn.primary {
  background: linear-gradient(to right, #22c55e, #4ade80);
  color: #052e16;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.45);
}

.btn.secondary {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.5);
}

.btn.secondary:hover {
  border-color: #22c55e;
  opacity: 0.95;
}

/* HERO STATS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 640px;
}

.hero-stats div {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.9));
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
}

.hero-stats span {
  font-size: 0.8rem;
  color: #cbd5f5;
}

/* SECCIONES */
.section {
  padding: 4rem 6vw;
}

.section.alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #cbd5f5;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.4rem 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(8, 16, 32, 0.95));
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin-bottom: 0.75rem;
}

.card ul {
  list-style: disc;
  padding-left: 1.1rem;
  color: #e2e8f0;
  font-size: 0.86rem;
}

/* CONTACTO */
.contact {
  text-align: left;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-form input {
  flex: 1 1 220px;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.contact-form input::placeholder {
  color: #64748b;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  padding: 1.25rem 6vw 2rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    padding-inline: 1.25rem;
  }

  .nav-links {
    display: none; /* si luego quieres menú hamburguesa, aquí lo metemos */
  }

  .hero {
    padding-inline: 1.25rem;
    background-size: 150%; /* un poco más de zoom en móvil */
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding-inline: 1.25rem;
  }

  .contact-form {
    flex-direction: column;
    align-items: stretch;
  }
}
