/* ===============================
   HERO
================================ */
.hero {
  background: linear-gradient(
    135deg,
    var(--color-oscuro),
    var(--color-primario)
  );
  color: white;
  text-align: center;
  padding: calc(100px + 4rem) 1rem 6rem;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 750px;
  margin: auto;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* ===============================
   FEATURES
================================ */
.features {
  padding: 5rem 1rem;
  background: white;
  text-align: center;
}

.features-grid {
  max-width: 1200px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.feature-item {
  background: white;
  padding: 3rem 2rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-bottom: 4px solid var(--color-acento);
}

.feature-icon {
  width: 140px;
  height: 140px;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.feature-item h3 {
  font-size: 1.3rem;
  color: var(--color-oscuro);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-item p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===============================
   CTA
================================ */
.cta {
  padding: 6rem 1rem;
  background: var(--color-oscuro);
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    circle,
    var(--color-primario) 0%,
    transparent 60%
  );
  opacity: 0.35;
  pointer-events: none;
}

.cta-box {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 4rem 2rem;
  max-width: 900px;
  width: 100%;
  text-align: center;
  color: white;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  z-index: 1;
}

.cta-box h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.85;
  color: #cbd5e1;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Botón ghost */
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: white;
  padding: 12px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: white;
  color: var(--color-acento);
  transform: translateY(-2px);
}

/* ===============================
   RESPONSIVE
================================ */

/* TABLET */
@media (max-width: 992px) {
  .hero {
    padding-top: calc(100px + 3rem);
    padding-bottom: 4.5rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .cta-box h2 {
    font-size: 2.1rem;
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  .hero {
    padding-top: calc(100px + 2.5rem);
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .features {
    padding: 4rem 1rem;
  }

  .feature-icon {
    width: 110px;
    height: 110px;
  }

  .cta {
    padding: 4rem 1rem;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 480px) {
  .hero {
    padding-top: calc(100px + 2rem);
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .cta-box h2 {
    font-size: 1.8rem;
  }
}
