/* ============================================
   MAIN.CSS - Estilos Globales y Compartidos
   ============================================ */

:root {
  --bg-primary: #0E1116;
  --bg-alternate: #2B3442;
  --text-primary: #F5F7FA;
  --accent-primary: #0066FF;
  --accent-secondary: #003C99;
}

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

html, body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-body {
  font-family: 'Inter', sans-serif;
}

/* Navigation Styles */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--accent-primary);
}

/* Button Styles */
.btn-primary {
  background: var(--accent-primary);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid var(--text-primary);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(245, 247, 250, 0.1);
  transform: translateY(-2px);
}

/* Form Styles */
.form-input {
  background: transparent;
  border: 1px solid rgba(245, 247, 250, 0.15);
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Divider */
.thin-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-secondary), transparent);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Responsive adjustments for fixed navigation */
section:first-of-type {
  padding-top: 0;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Botón play manual (solo desarrollo, sin autoplay) */
.video-manual-play-btn {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(14, 17, 22, 0.4);
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
  padding: 0;
}

.video-manual-play-btn:hover {
  background: rgba(14, 17, 22, 0.55);
}

.video-manual-play-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

video.video-manual-play-target,
.video-manual-pause-tap {
  cursor: pointer;
}

.video-manual-pause-tap {
  position: absolute;
  inset: 0;
  z-index: 16;
  border: none;
  background: transparent;
  padding: 0;
}

.video-manual-pause-tap.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#demo-reel-video[data-manual-play-attached='true'] {
  cursor: pointer;
}

.video-manual-play-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #000;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.video-manual-play-btn__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 767px) {
  .video-manual-play-btn__icon {
    width: 3.25rem;
    height: 3.25rem;
  }
}
