/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  --azul-profundo: #0b1f4b;
  --azul: #1640a0;
  --azul-medio: #2563eb;
  --azul-acento: #60a5fa;
  --azul-suave: #93c5fd;

  --fondo: #0a0a0f;
  --fondo-2: #0f1117;
  --fondo-card: #131620;
  --fondo-card-hover: #171c2b;

  --blanco: #f0f4ff;
  --texto-suave: #7b8aab;
  --texto-medio: #a8b8d8;

  --borde: rgba(96, 165, 250, 0.12);
  --borde-hover: rgba(96, 165, 250, 0.35);

  --transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET Y BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--azul) var(--fondo-2);
}

body {
  background-color: var(--fondo);
  color: var(--blanco);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0;
  transition: var(--transicion);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom: 1px solid var(--borde);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  height: 44px;
  transition: var(--transicion);
}

.logo:hover {
  opacity: 0.85;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: var(--texto-medio);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.6px;
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--azul-acento);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--azul-acento);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(22, 64, 160, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--azul-acento);
  border: 1px solid var(--borde-hover);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

#hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.highlight {
  color: var(--azul-acento);
  position: relative;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--texto-medio);
  max-width: 520px;
  margin-bottom: 44px;
  font-weight: 300;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== BOTONES ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--azul-medio);
  color: var(--blanco);
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: var(--transicion);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--azul);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--azul-acento);
  border: 1px solid var(--borde-hover);
  padding: 11px 24px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--transicion);
  margin-top: 20px;
}

.btn-secondary:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: var(--azul-acento);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--texto-medio);
  border: 1px solid var(--borde);
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transicion);
}

.btn-outline:hover {
  border-color: var(--azul-acento);
  color: var(--azul-acento);
  transform: translateY(-2px);
}

/* ===== SECCIONES ===== */
section {
  padding: 100px 0;
}

.section-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--azul-acento);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.section-sub {
  text-align: center;
  color: var(--texto-suave);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 60px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SERVICIOS ===== */
#servicios {
  background-color: var(--fondo-2);
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--azul-acento), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--borde-hover);
  background: var(--fondo-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 20px;
  display: block;
  color: var(--azul-acento);
}

.card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
  color: var(--blanco);
}

.card p {
  color: var(--texto-suave);
  font-size: 0.92rem;
  flex: 1;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== POR QUÉ ===== */
#por-que {
  background-color: var(--fondo);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature {
  text-align: center;
  padding: 36px 24px;
  border-radius: 12px;
  border: 1px solid var(--borde);
  background: var(--fondo-card);
  transition: var(--transicion);
}

.feature:hover {
  border-color: var(--borde-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 16px;
  color: var(--azul-acento);
}

.feature h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.feature p {
  font-size: 0.88rem;
  color: var(--texto-suave);
  font-weight: 300;
  line-height: 1.7;
}

/* ===== CONTACTO ===== */
#contacto {
  background: var(--fondo-2);
  border-top: 1px solid var(--borde);
  position: relative;
  overflow: hidden;
}

#contacto::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22, 64, 160, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.contacto-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.contacto-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--fondo);
  border-top: 1px solid var(--borde);
  padding: 44px 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.logo-footer {
  height: 34px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.logo-footer:hover {
  opacity: 1;
}

footer p {
  font-size: 0.82rem;
  color: var(--texto-suave);
  font-weight: 300;
}

.footer-sub {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase;
  color: var(--azul-acento) !important;
}

/* ===== ANIMACIONES DE ENTRADA ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .logo {
    height: 36px;
  }

  .nav-inner {
    padding: 0 10px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .contacto-links {
    flex-direction: column;
    align-items: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BOTÓN FLOTANTE INSTAGRAM ===== */
.btn-flotante {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transicion);
}

.btn-flotante:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(131, 58, 180, 0.5);
}

/* ===== CÓMO FUNCIONA ===== */
#como-funciona {
  background-color: var(--fondo-2);
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
}

.pasos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.paso {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  flex: 1;
  max-width: 280px;
  position: relative;
  transition: var(--transicion);
}

.paso:hover {
  border-color: var(--borde-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.paso-numero {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--borde-hover);
  line-height: 1;
  margin-bottom: 16px;
}

.paso-icono {
  font-size: 1.6rem;
  color: var(--azul-acento);
  margin-bottom: 16px;
}

.paso h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.paso p {
  font-size: 0.9rem;
  color: var(--texto-suave);
  font-weight: 300;
  line-height: 1.7;
}

.paso-linea {
  flex: 0 0 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--azul-acento), var(--azul));
  opacity: 0.4;
}

@media (max-width: 640px) {
  .pasos-grid {
    flex-direction: column;
    gap: 16px;
  }

  .paso-linea {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--azul-acento), var(--azul));
  }

  .paso {
    max-width: 100%;
    width: 100%;
  }
}