/* Estilos personalizados adicionales para LINARESWEB */

/* ==================== VARIABLES CSS ==================== */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --background-light: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== FUENTE ORBITRON PARA MENÚ ==================== */
.orbitron-font {
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==================== ANIMACIONES HERO PROFESIONALES ==================== */
.hero-content h1 {
  animation: heroTitleRise 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

@keyframes heroTitleRise {
  0% {
    opacity: 0;
    transform: translateY(60px) rotateX(-15deg) scale(0.9);
    filter: blur(10px);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-10px) rotateX(5deg) scale(1.02);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0px);
  }
}

.hero-content p {
  animation: heroSubtitleFade 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

@keyframes heroSubtitleFade {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(5px);
  }
  70% {
    opacity: 0.9;
    transform: translateY(-5px) scale(1.01);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.hero-content .flex {
  animation: heroButtonsSlide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

@keyframes heroButtonsSlide {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-8px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==================== ANIMACIONES RÁPIDAS Y FLUIDAS ==================== */
.crazy-gallery-grid {
  animation: galleryFadeIn 0.5s ease-out 0.1s both;
}

@keyframes galleryFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.crazy-project-card {
  animation: cardFloat 3s ease-in-out infinite;
}

.crazy-project-card:nth-child(1) { animation-delay: 0s; }
.crazy-project-card:nth-child(2) { animation-delay: 0.2s; }
.crazy-project-card:nth-child(3) { animation-delay: 0.4s; }
.crazy-project-card:nth-child(4) { animation-delay: 0.6s; }

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

.crazy-team-grid {
  animation: teamSlideIn 0.6s ease-out 0.1s both;
}

@keyframes teamSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.crazy-team-content {
  animation: teamContentFade 0.5s ease-out 0.2s both;
}

@keyframes teamContentFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.crazy-values-card {
  animation: cardHover 2s ease-in-out infinite;
}

@keyframes cardHover {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.crazy-stats-grid {
  animation: statsAppear 0.6s ease-out 0.3s both;
}

@keyframes statsAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.crazy-team-image {
  animation: imageSlideIn 0.6s ease-out 0.2s both;
}

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

.crazy-tech-content {
  animation: techFadeIn 0.5s ease-out 0.1s both;
}

@keyframes techFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.crazy-tech-description {
  animation: descriptionSlide 0.6s ease-out 0.2s both;
}

@keyframes descriptionSlide {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.crazy-tech-text {
  animation: textFadeIn 0.4s ease-out 0.3s both;
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.crazy-tech-paragraph {
  animation: paragraphSlide 0.5s ease-out 0.4s both;
}

@keyframes paragraphSlide {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.crazy-tech-image-container {
  animation: imageContainerSlide 0.6s ease-out 0.3s both;
}

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

.crazy-tech-image {
  animation: imageFloat 2s ease-in-out infinite;
}

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

.crazy-modal {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* BOTÓN SCROLL TO TOP SIMPLE */
#scrollToTop {
  transition: all 0.3s ease;
}

/* ANIMACIONES DE SCROLL RÁPIDAS */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left-scroll {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.4s ease-out;
}

.slide-left-scroll.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right-scroll {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.4s ease-out;
}

.slide-right-scroll.visible {
  opacity: 1;
  transform: translateX(0);
}

/* IMÁGENES FLOTANTES RÁPIDAS */
.floating-image {
  animation: floatImage 2s ease-in-out infinite;
}

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

.floating-element {
  animation: floatElement 3s ease-in-out infinite;
}

@keyframes floatElement {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-8px) rotate(2deg);
  }
  66% {
    transform: translateY(-4px) rotate(-1deg);
  }
}

/* ==================== NAVEGACIÓN FLUIDA ==================== */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.active-nav {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.section-highlight {
  animation: sectionGlow 0.8s ease-out;
}

@keyframes sectionGlow {
  0% {
    box-shadow: inset 0 0 0 0 rgba(59, 130, 246, 0.1);
  }
  50% {
    box-shadow: inset 0 0 20px 5px rgba(59, 130, 246, 0.1);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(59, 130, 246, 0.1);
  }
}

@keyframes rippleEffect {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ==================== SPIN LOADER MEJORADO ==================== */
#loader {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9999;
}

#loader .animate-spin {
  animation: spinLoader 1s linear infinite;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
}

@keyframes spinLoader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==================== LOADER BÁSICO ==================== */
#loader {
  z-index: 9999;
}

/* ==================== MENÚ HAMBURGUESA CONSISTENTE ==================== */
#mobile-menu-btn {
  position: relative;
}

.hamburger-line {
  transform-origin: center;
  will-change: transform, opacity;
}

/* ==================== ANIMACIONES MEJORADAS DE SCROLL ==================== */
.crazy-project-card {
  opacity: 0;
  transform: translateY(50px) rotateY(-15deg) scale(0.9);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.crazy-project-card.animated {
  opacity: 1;
  transform: translateY(0) rotateY(0deg) scale(1);
}

.crazy-team-content {
  opacity: 0;
  transform: translateX(-40px) scale(0.95);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crazy-team-content.animated {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.crazy-tech-content {
  opacity: 0;
  transform: translateY(40px) rotateX(-10deg);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.crazy-tech-content.animated {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* ==================== HOVER EFFECTS PROFESIONALES ==================== */
.crazy-project-card:hover {
  transform: translateY(-15px) rotateY(5deg) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.crazy-values-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.15);
}

/* ==================== SMOOTH TRANSITIONS ==================== */
* {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Optimización de rendimiento */
.hero-section,
.projects-section,
.team-section,
.tech-section {
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* ==================== NAVEGACIÓN ACTIVA ==================== */
.nav-link.active-nav {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Efecto hover mejorado para enlaces de navegación */
.nav-link:not(.active-nav):hover {
  transform: translateY(-2px);
  text-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

/* Animación de scroll suave para secciones */
section {
  scroll-margin-top: 80px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efecto de llegada a sección */
section.section-highlight {
  transform: scale(1.01);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}



/* Animación para enlaces del menú móvil */
.mobile-nav-link {
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
  left: 100%;
}

/* Efecto ripple para llegada a sección */
@keyframes rippleEffect {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Animación adicional para botones del footer */
footer a {
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* ==================== RESPONSIVE ANIMATIONS ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}