/* ===========================================
   McFLY EXPRESS - Estilos de Landing Page
   Diseño: Retro-futurista inspirado en Back to the Future
   =========================================== */

/* ===== VARIABLES CSS ===== */
:root {
  /* Colores basados en el logo McFLY EXPRESS */
  --primary-gradient: linear-gradient(135deg, #FFD700 0%, #FF8C00 50%, #FF4500 100%);
  --secondary-gradient: linear-gradient(45deg, #FF6B35 0%, #FFA500 50%, #FFD700 100%);
  --metallic-silver: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 50%, #A8A8A8 100%);
  --dark-background: #0a0a0a;
  --dark-surface: #1a1a1a;
  --dark-card: #2a2a2a;
  --text-light: #ffffff;
  --text-gray: #cccccc;
  --text-dark: #333333;

  /* Tipografía */
  --font-primary: 'Orbitron', monospace;
  --font-secondary: 'Roboto', sans-serif;

  /* Espaciado */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --border-radius: 12px;
  --border-radius-large: 20px;

  /* Animaciones */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* ===== ACCESIBILIDAD ===== */
:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 4px;
}

/* Mejora de contraste para inputs */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #FFD700 !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* ===== MARCA DE AGUA DEL LOGOTIPO ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('imagenes/Logo.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 800px auto;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

/* ===== RESPONSIVE DE LA MARCA DE AGUA ===== */
@media (max-width: 768px) {
  body::before {
    background-size: 500px auto;
    opacity: 0.04;
  }
}

@media (max-width: 480px) {
  body::before {
    background-size: 350px auto;
    opacity: 0.05;
  }
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background: var(--dark-background);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--dark-background);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  margin-bottom: 40px;
}

.loading-text {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-align: center;
  animation: pulse 2s infinite;
}

.loading-arrow {
  width: 60px;
  height: 4px;
  background: var(--secondary-gradient);
  margin: 0 auto;
  border-radius: 2px;
  animation: speed-streak 1.5s infinite;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--primary-gradient);
  animation: loading 3s ease-in-out forwards;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition-fast);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.nav-logo .logo-text {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-image {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

.logo-image:hover {
  transform: scale(1.05);
}

.footer-logo-img {
  height: 300px;
  width: auto;
  object-fit: contain;
  object-fit: contain;
  margin-bottom: 15px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: #FFD700;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition-fast);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.speed-lines {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.1) 50%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 140, 0, 0.1) 50%, transparent 100%);
  animation: speed-lines 4s linear infinite;
  will-change: transform;
}

.energy-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: energy-pulse 3s ease-in-out infinite;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-primary);
  margin-bottom: 30px;
}

.title-main {
  display: block;
  font-size: 4.5rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 0.9;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.title-sub {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 10px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.highlight {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-top: 5px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== BOTONES ===== */
.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.btn-primary.large {
  padding: 20px 40px;
  font-size: 1.1rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 215, 0, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #FFD700;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ===== TRUCK ANIMATION ===== */
.hero-visual {
  position: relative;
  height: 400px;
}

.truck-animation {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.truck-body {
  position: relative;
  width: 300px;
  height: 120px;
  height: 120px;
  animation: truck-move 4s ease-in-out infinite;
  will-change: transform;
}

.truck-cab {
  position: absolute;
  left: 0;
  top: 20px;
  width: 100px;
  height: 80px;
  background: var(--secondary-gradient);
  border-radius: 10px 10px 10px 5px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.truck-trailer {
  position: absolute;
  right: 0;
  top: 10px;
  width: 180px;
  height: 90px;
  background: var(--metallic-silver);
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(192, 192, 192, 0.2);
}

.truck-wheels {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.wheel {
  width: 40px;
  height: 40px;
  background: var(--dark-surface);
  border-radius: 50%;
  border: 4px solid #333;
  border: 4px solid #333;
  animation: wheel-spin 2s linear infinite;
  will-change: transform;
}

.speed-trail {
  position: absolute;
  top: 50%;
  left: -100px;
  width: 80px;
  height: 4px;
  background: var(--secondary-gradient);
  border-radius: 2px;
  animation: trail-glow 1.5s ease-in-out infinite;
}

.delivery-packages {
  position: absolute;
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
}

.package {
  position: absolute;
  font-size: 1.5rem;
  animation: package-float 3s ease-in-out infinite;
}

.package-1 {
  top: -30px;
  animation-delay: 0s;
}

.package-2 {
  top: 0;
  animation-delay: 0.5s;
}

.package-3 {
  top: 30px;
  animation-delay: 1s;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid #FFD700;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

/* ===== SECCIONES ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: var(--section-padding);
  background: var(--dark-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--dark-card);
  border-radius: var(--border-radius-large);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition-medium);
  border: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: var(--transition-slow);
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  background: var(--secondary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.service-icon svg {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-light);
}

.service-card p {
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  color: var(--text-gray);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.service-features li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  color: #FFD700;
}

/* ===== FLEET SECTION ===== */
.flota {
  padding: var(--section-padding);
  background: var(--dark-background);
}

.flota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.truck-card {
  background: var(--dark-card);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  transition: var(--transition-medium);
  border: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
}

.truck-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.3);
}

.truck-image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.truck-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.truck-card:hover .truck-image img {
  transform: scale(1.1);
}

.truck-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.truck-card:hover .truck-overlay {
  opacity: 1;
}

.truck-info {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
}

.truck-info h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.truck-info p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.truck-details {
  padding: 30px;
}

.truck-details h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-light);
}

.truck-details p {
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.truck-features {
  list-style: none;
}

.truck-features li {
  color: var(--text-gray);
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
  font-size: 0.9rem;
}

.truck-features li::before {
  content: '🚛';
  position: absolute;
  left: 0;
  font-size: 1rem;
}

/* ===== ADVANTAGES SECTION ===== */
.advantages {
  padding: var(--section-padding);
  background: var(--dark-background);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.advantage-item {
  text-align: center;
  padding: 30px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition-medium);
  border: 1px solid transparent;
}

.advantage-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 215, 0, 0.2);
  transform: translateY(-5px);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  color: #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon svg {
  width: 40px;
  height: 40px;
}

.advantage-item h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-light);
}

.advantage-item p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('../img/flota2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 0%, var(--dark-background) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-light);
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--section-padding);
  background: var(--dark-surface);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--dark-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.contact-item:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateX(5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-details h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-light);
}

.contact-details p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.whatsapp-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.whatsapp-contact-link:hover {
  color: #128C7E;
}

.whatsapp-contact-icon {
  width: 24px;
  height: 24px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--dark-card);
  padding: 40px;
  border-radius: var(--border-radius-large);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-light);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.full-width {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* ===== FOOTER ===== */
.footer {
  background: #050505;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-gray);
  margin-bottom: 30px;
  max-width: 400px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-gradient);
  color: var(--text-light);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-column h4 {
  font-family: var(--font-primary);
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: #FFD700;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  color: #666;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    gap: 40px;
  }

  .title-main {
    font-size: 3.5rem;
  }

  .title-sub {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-medium);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1000;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    height: 300px;
    margin-top: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .title-main {
    font-size: 2.5rem;
  }

  .title-sub {
    font-size: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ===== ANIMACIONES Y ESTILOS DINÁMICOS (MIGRADO DE JS) ===== */
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-element.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.service-card.animate-in {
  animation: slideInUp 0.6s ease forwards;
}

.advantage-item.animate-in {
  animation: fadeInScale 0.8s ease forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.nav-link.active {
  color: #FFD700 !important;
}

.nav-link.active::after {
  width: 100% !important;
}

.field-error {
  animation: shake 0.5s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* Efectos hover mejorados */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Efectos de energía */
.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: energy-rotate 20s linear infinite;
}

@keyframes energy-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}