/* =====================
   ESTILOS GENERALES
===================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #0f2027, #203a43, #1E90FF);
  color: #f5f5f5;
  line-height: 1.6;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =====================
   NAVBAR
===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  background: rgba(10, 148, 228, 0.35);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 157, 255, 0.3);
  z-index: 1000;
}

.logo {
  background: #ffffff;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo img {
  height: 55px;
  border-radius: 50%;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.logo img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px #1E90FF);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f5;
  transition: 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #FF69B4);
  transition: width 0.3s ease-in-out;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* =====================
   HERO SECTION
===================== */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px;
  background: radial-gradient(circle at top left, #0f2027, #203a43, #1E90FF);
  width: 100%;
}

.hero-wrapper {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.hero-info {
  flex: 1 1 450px;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
}

.hero-info h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #e4514a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(50,205,50,0.7);
}

.hero-info p {
  font-size: 1.2rem;
  color: #dfefff;
  max-width: 500px;
  margin: 0 auto 40px auto;
}

.btn-wrapper {
  text-align: center;
}

.btn-primary {
  display: inline-block;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  padding: 16px 50px;
  border-radius: 60px;
  background: linear-gradient(135deg, #e4514a, #4447fa, #32CD32);
  background-size: 300% 300%;
  animation: gradientMove 4s ease infinite;
  box-shadow: 0 15px 40px rgba(50,205,50,0.4);
  transition: all 0.5s ease;
  margin-top: 1.3cm;
}

.btn-primary:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 25px 60px rgba(50,205,50,0.6);
}

/* =====================
   HERO CARDS CON CONTORNO ANIMADO
===================== */
.hero-cards {
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: fadeInRight 1s ease forwards;
}

.hero-cards .card {
  position: relative;
  background: rgba(255,255,255,0.08);
  border-radius: 30px;
  padding: 35px 30px;
  text-align: center;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  z-index: 0;
  overflow: hidden;
}

.hero-cards .card:hover {
  transform: translateY(-15px) rotate(-2deg);
  box-shadow: 0 30px 70px rgba(0,0,0,0.7);
}

.hero-cards .card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 3px;
  background: linear-gradient(270deg, #6edf6e, #1E90FF, #FF69B4, #6edf6e);
  background-size: 600% 600%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  animation: neonBorder 4s linear infinite;
  pointer-events: none;
}

.hero-cards .card img {
  width: 190px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 auto 15px auto;
  transition: transform 0.4s ease, filter 0.4s ease;
  z-index: 2;
}

.hero-cards .card img:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* =====================
   ANIMACIÓN CONTORNO
===================== */
@keyframes neonBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =====================
   FEATURES
===================== */
.features-section {
  padding: 100px 20px;
  text-align: center;
  background: rgba(255,255,255,0.05);
}

.features-section h2 {
  font-size: 3rem;
  margin-bottom: 60px;
  color: #6edf6e;
  text-shadow: 0 0 15px #1E90FF;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature img {
  width: 100%;
  max-width: 3000px;
  height: 305px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.7s ease, filter 0.7s ease;
  animation: float 4s ease-in-out infinite;
  margin-bottom: 20px;
}

.feature img:hover {
  transform: scale(1.12) rotate(3deg);
  filter: brightness(1.15);
}

/* =====================
   CTA FINAL
===================== */
.cta-section {
  background: linear-gradient(135deg, #1E90FF, #e4514a, #6edf6e);
  text-align: center;
  color: #fff;
  padding: 80px 20px;
  border-radius: 50px 50px 0 0;
}

/* =====================
   FOOTER
===================== */
.footer {
  width: 100%;
  background: linear-gradient(135deg, #0f2027, #203a43, #1E90FF);
  color: #f5f5f5;
  text-align: center;
  padding: 3px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.4);
  font-size: 1rem;
  letter-spacing: 0.5px;
  animation: fadeInUp 1s ease;
  margin-top: auto;
}

.footer p {
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

.footer span {
  font-weight: 700;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #e4514a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =====================
   ANIMACIONES
===================== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(80px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .hero-wrapper {
    flex-direction: column;
    gap: 50px;
  }

  .hero-info h1 {
    font-size: 2.8rem;
  }

  .btn-primary {
    padding: 14px 40px;
    font-size: 1rem;
  }

  .features-section h2 {
    font-size: 2.4rem;
  }

  /* --- Navbar hamburguesa igual al de nosotros --- */
  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 50, 0.95);
    gap: 20px;
    padding: 20px 0;
    display: none;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
