/* --- Fuentes --- */

/* ==========================================
   NAVBAR
   ========================================== */

.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  background: transparent;
}

/* Estado con scroll: fondo cristal */

.main-navbar.scrolled {
  padding: 12px 0;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* --- Logo --- */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.03);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(74, 144, 226, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #4a90e2;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.logo-text {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* --- Menú Desktop --- */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #b0d552 0%, #1f6d0a 100%);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(74, 144, 226, 0.6);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* --- Acciones a la Derecha --- */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Selector de Idioma */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s ease;
}

.lang-btn.active, .lang-btn:hover {
  color: #9fcb2d;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

/* --- Botón CTA --- */

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #b0d552 0%, #1f6d0a 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(26,184,32,0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,235,92,0.55), 0 0 20px rgba(74, 144, 226, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.nav-cta:hover::before {
  left: 100%;
}

.nav-cta:active {
  transform: translateY(0) scale(0.98);
}

/* --- Botón Hamburguesa --- */

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background: #4a90e2;
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background: #4a90e2;
}

/* ==========================================
   MENÚ MÓVIL
   ========================================== */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
  padding: 110px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-link {
  display: block;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-link:hover, .mobile-link.active {
  color: #ffffff;
  background: rgba(74, 144, 226, 0.1);
  padding-left: 30px;
}

.mobile-link.active::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: #4a90e2;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(74, 144, 226, 0.6);
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-switch-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.lang-switch-mobile .lang-btn {
  font-size: 0.9rem;
}

.mobile-cta {
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
}

/* Overlay del menú móvil */

body.menu-open::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 998;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   HERO PRINCIPAL
   ========================================== */

.main-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #050505;
  font-family: 'Inter', sans-serif;
}

/* Video de fondo */

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

/* Imagen de fondo */

.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  background-color: #0a0a0a;
}

/* Capas de overlay */

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.12);
  z-index: 1;
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.85) 0%, rgba(5,5,5,0.06) 30%, rgba(5,5,5,0.06) 70%, rgb(5,5,5) 100%), linear-gradient(90deg, rgba(5,5,5,0.17) 0%, rgba(5, 5, 5, 0) 60%);
  z-index: 1;
}

/* Patrón de cuadrícula sutil (efecto blueprint) */

.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background-image: linear-gradient(rgba(74, 144, 226, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 144, 226, 0.06) 1px, transparent 1px);*/
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,10) 50%, rgba(0,0,0,0.4) 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,10) 50%, rgba(0,0,0,0.4) 70%);
  pointer-events: none;
}

/* Contenido del Hero */

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.hero-content {
  max-width: 780px;
  padding-top: 60px;
}

/* Badge Superior */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(74, 144, 226, 0.15), transparent);
  animation: badgeShine 4s infinite;
}

@keyframes badgeShine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

.badge-icon {
  font-size: 1rem;
}

/* Titular Principal */

.hero-main-title {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 25px;
}

.highlight-text {
  background: linear-gradient(135deg, #5fe24a 0%, #60fae8 50%, #25eb5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

/* Subtítulo */

.hero-main-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.2rem;
  line-height: 1.65;
  margin-bottom: 45px;
  max-width: 620px;
}

/* Botones del Hero */

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 38px;
  border-radius: 50px;
  background: linear-gradient(135deg, #b0d552 0%, #1f6d0a 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(26,184,32,0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px rgba(37,235,92,0.55), 0 0 30px rgba(74, 144, 226, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 18px 38px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-4px);
  text-decoration: none;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary:active {
  transform: translateY(0) scale(0.98);
}

/* Indicador de Scroll */

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(180deg, rgba(74, 144, 226, 0) 0%, rgba(74, 144, 226, 0.8) 50%, rgba(74, 144, 226, 0) 100%);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: #4a90e2;
  border-radius: 2px;
  box-shadow: 0 0 10px #4a90e2, 0 0 20px #4a90e2;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    top: -20px;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    top: 50px;
    opacity: 0;
  }
}

/* --- Animaciones de entrada del Hero --- */

.reveal-hero {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-content .reveal-hero:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-content .reveal-hero:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-content .reveal-hero:nth-child(3) {
  animation-delay: 0.6s;
}

.hero-content .reveal-hero:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1200px) {
  .nav-menu {
    gap: 25px;
  }
}

@media (max-width: 1200px) {
  .nav-link {
    font-size: 0.88rem;
  }
}

@media (max-width: 1200px) {
  .hero-main-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 991px) {
  .nav-menu, .lang-switch, .nav-actions .nav-cta {
    display: none;
  }
}

@media (max-width: 991px) {
  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 991px) {
  .nav-container {
    padding: 0 20px;
  }
}

@media (max-width: 991px) {
  .hero-main-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 991px) {
  .hero-main-subtitle {
    font-size: 1.05rem;
  }
}

@media (max-width: 991px) {
  .hero-content {
    padding-top: 40px;
  }
}

@media (max-width: 768px) {
  .main-navbar {
    padding: 15px 0;
  }
}

@media (max-width: 768px) {
  .main-navbar.scrolled {
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .logo-icon {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 768px) {
  .hero-content-wrapper {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2.2rem;
    letter-spacing: -0.8px;
  }
}

@media (max-width: 768px) {
  .hero-main-subtitle {
    font-size: 1rem;
    margin-bottom: 35px;
  }
}

@media (max-width: 768px) {
  .hero-badge {
    font-size: 0.78rem;
    padding: 8px 16px;
  }
}

@media (max-width: 768px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
  }
}

@media (max-width: 768px) {
  .mobile-menu {
    max-width: 100%;
    padding: 100px 30px 30px 30px;
  }
}

@media (max-width: 768px) {
  .mobile-link {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    padding: 90px 20px 20px 20px;
  }
}


