/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* ========== HERO VIDEO ========== */
.hero-video {
  position: absolute;
  top: 0;
  left: 50%;
  width: 85%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  transform: translateX(-25%);
}

.hero-video-player {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-video-player.active {
  opacity: 1;
  visibility: visible;
}

/* Overlay para fade gradient */
.spline-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Fade en los bordes izquierdo */
.hero-video::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12%;
  width: 42%;
  height: 100%;
  background: linear-gradient(to right, var(--bg) 20%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Ajuste de opacidad en modo claro */
[data-theme="light"] .hero-video {
  opacity: 0.8;
}

[data-theme="light"] .hero-video::before {
  background: linear-gradient(to right, var(--bg) 30%, transparent 100%);
}

/* Ocultar video y scroll indicator en pantallas menores a 1024px */
@media (max-width: 1024px) {
  .hero-video {
    display: none !important;
  }
  
  .scroll-indicator {
    display: none !important;
  }
}

/* Responsive */
@media (max-width: 968px) {
  .hero-ctas {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .trust-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .trust-divider {
    width: 60px;
    height: 1px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: var(--nav-h) 0 60px;
  }
  
  .hero-content {
    padding-top: 40px;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .trust-stats {
    align-items: center;
  }
  
  .trust-number {
    font-size: 32px;
  }
}

.hero-container {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}

.hero-content {
  max-width: 680px;
  padding-top: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  background: linear-gradient(
    135deg,
    var(--text) 0%,
    var(--text) 30%,
    var(--primary) 50%,
    var(--primary-light) 70%,
    var(--text) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient 8s ease infinite, fadeUp 0.8s ease 0.3s both;
  filter: drop-shadow(0 0 40px rgba(0, 188, 212, 0.3));
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 40px;
  max-width: 540px;
  animation: fadeUp 0.8s ease 0.5s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  animation: fadeUp 0.8s ease 0.7s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font);
}

[data-theme="light"] .btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 188, 212, 0.3);
}

.btn-primary svg {
  transition: 0.2s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--primary);
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s ease 0.9s both;
}

.trust-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-number {
  font-family: var(--font);
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.trust-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: fadeUp 0.8s ease 1.2s both, float 3s ease-in-out infinite 1.2s;
}

@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: wheel 2s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========== RESPONSIVE ADICIONALES ========== */
@media(max-width:425px){
    .hero{
        padding:calc(var(--nav-h) + 20px) 0 50px;
    }
    
    .hero-content{
        padding-top:30px;
    }
    
    .hero-badge{
        font-size:12px;
        padding:7px 14px;
        margin-bottom:20px;
    }
    
    .badge-dot{
        width:7px;
        height:7px;
    }
    
    .hero-title{
        font-size:36px;
        margin-bottom:20px;
    }
    
    .hero-desc{
        font-size:15px;
        margin-bottom:32px;
    }
    
    .hero-ctas{
        gap:12px;
        margin-bottom:50px;
    }
    
    .btn-primary,
    .btn-secondary{
        padding:14px 24px;
        font-size:14px;
    }
    
    .trust-number{
        font-size:28px;
    }
    
    .trust-label{
        font-size:12px;
    }
    
    .trust-tagline{
        font-size:13px;
    }
}

@media(max-width:375px){
    .hero-title{
        font-size:32px;
    }
    
    .hero-desc{
        font-size:14px;
    }
    
    .btn-primary,
    .btn-secondary{
        padding:12px 20px;
        font-size:13px;
    }
}