/**
* AeroExpress Envíos - Estilos Principales
* Archivo: css/style.css
* Color Palette: Red (#FF0000) + Black (#000000)
* VERSIÓN CORREGIDA PARA MÓVIL
*/

/* ==========================================
   VARIABLES CSS
   ========================================== */
:root {
  /* Colores Principales */
  --color-primary: #FF0000;
  --color-primary-dark: #CC0000;
  --color-primary-light: #FF3333;
  --color-secondary: #000000;
  --color-secondary-light: #1a1a1a;
  --color-secondary-lighter: #2d2d2d;

  /* Colores de Estado */
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #17a2b8;

  /* Colores de Fondo */
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;

  /* Colores de Texto */
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;

  /* Fuentes */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Transiciones */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ==========================================
   ESTILOS GLOBALES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 70px;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar-custom {
  background-color: var(--color-secondary) !important;
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000 !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand i {
  font-size: 1.75rem;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
}

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

.btn-primary-custom {
  background-color: var(--color-primary);
  border: none;
  color: var(--text-primary);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-primary-custom:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.navbar-toggler {
  border-color: var(--color-primary) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 100px 0 80px 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-hero-primary {
  background-color: var(--color-primary);
  color: var(--text-primary);
  border: 2px solid var(--color-primary);
}

.btn-hero-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
}

.btn-hero-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-secondary);
}

.btn-hero-outline:hover {
  background-color: var(--color-secondary-light);
  border-color: var(--color-primary);
  color: var(--text-primary);
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background-color: var(--color-secondary-light);
  padding: 2rem;
  border-radius: 12px;
  transition: all var(--transition-base);
  height: 100%;
  border: 1px solid var(--color-secondary-lighter);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.how-it-works-section {
  padding: 80px 0;
  background-color: var(--bg-darker);
}

.step-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-lg);
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: var(--color-secondary);
  padding: 60px 0 20px 0;
  color: var(--text-secondary);
}

.footer h5 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-secondary-lighter);
  text-align: center;
  color: var(--text-muted);
}

/* ==========================================
   RESPONSIVE - MOBILE FIXES
   ========================================== */
@media (max-width: 768px) {
  /* Body padding para navbar fijo */
  body {
    padding-top: 80px !important;
  }

  /* Navbar */
  .navbar-custom {
    padding: 0.75rem 0 !important;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-collapse {
    background-color: var(--color-secondary-light);
    padding: 1rem;
    margin-top: 0.75rem;
    border-radius: 8px;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--color-secondary-lighter);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  /* Hero Section - CRÍTICO PARA MÓVIL */
  .hero-section {
    padding-top: 120px !important;
    padding-bottom: 60px !important;
    min-height: auto !important;
  }

  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    margin-top: 1rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-image {
    margin-top: 2rem;
  }

  /* Sections */
  .features-section,
  .how-it-works-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .feature-card,
  .step-card {
    margin-bottom: 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px 0;
  }

  .footer .row > div {
    margin-bottom: 2rem;
    text-align: center;
  }

  .footer h5 {
    font-size: 1.125rem;
  }

  .footer-links {
    text-align: center;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-primary-custom {
  color: var(--color-primary) !important;
}

.bg-dark-custom {
  background-color: var(--bg-dark) !important;
}

.bg-darker-custom {
  background-color: var(--bg-darker) !important;
}
