/* =========================================
   HERO SECTION CON PARALLAX
   ========================================= */

/* Hero Section Principal */
.hero-parallax {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.parallax-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/panama.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
}

/* Overlay oscuro para mejor legibilidad */
.parallax-layer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 60, 255, 0.1));
  z-index: 1;
}

/* =========================================
   CONTENIDO DEL HERO
   ========================================= */

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 180px auto 0 auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   TIPOGRAFÍA Y ELEMENTOS DEL HERO
   ========================================= */

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 3px;
  background: linear-gradient(45deg, #ffffff, #4d9fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #4d9fff;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #ececec;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* =========================================
   BOTÓN CTA CON EFECTOS
   ========================================= */

.hero-cta {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(45deg, #003cff, #4d9fff);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 60, 255, 0.4);
  position: relative;
  overflow: hidden;
}

/* Efecto shimmer */
.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.hero-cta:hover::before {
  left: 100%;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 60, 255, 0.6);
  background: linear-gradient(45deg, #0028cc, #3d8cff);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-content {
    padding: 1.5rem;
    margin: 260px 1rem 0 1rem; // Adjusted margin for tablet
    border-radius: 12px;
  }
  
  .hero-parallax {
    min-height: 500px;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 1rem;
  }

  /* Prevenir problemas de performance en móviles */
  .parallax-layer {
    background-attachment: scroll;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .hero-content {
    padding: 1rem;
    margin: 200px 0.5rem 0 0.5rem;
  }
  
  .hero-parallax {
    min-height: 550px;
  }

  .hero-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}