/* ============================================
   V2 - Modern Header / Hero
   ============================================ */

.site-header {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(147,197,253,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(59,130,246,0.08) 0%, transparent 40%);
  animation: headerPulse 12s ease-in-out infinite alternate;
}

@keyframes headerPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
}

/* Logo image */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-logo-img {
  max-height: 120px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Fallback text logo */
.hero-logo {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.hero-brands {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-brand-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 0.85rem;
  color: var(--text-inverse);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  text-decoration: none;
}

.hero-brand-badge:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
  color: var(--text-inverse);
}

/* Compact header for internal pages */
.site-header--compact .hero-inner {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.site-header--compact .hero-logo-img {
  max-height: 120px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
}

.site-header--compact .hero-logo {
  font-size: 1.6rem;
  margin-bottom: 0;
}

.site-header--compact .hero-tagline {
  display: none;
}

.site-header--compact .hero-brands {
  display: none;
}

/* Section color accents */
.site-header--teco {
  background: linear-gradient(135deg, #0c1d3d 0%, #1a3a6b 50%, #2a5298 100%);
}
.site-header--ssd {
  background: linear-gradient(135deg, #0a1628 0%, #162d50 50%, #1e4080 100%);
}
.site-header--adlee {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a3a6b 50%, #2a5298 100%);
}
.site-header--motores {
  background: linear-gradient(135deg, #0c1a30 0%, #162d50 50%, #1e4080 100%);
}

@media (max-width: 768px) {
  .hero-inner { padding: 32px 20px; }
  .hero-logo { font-size: 2rem; letter-spacing: 2px; }
  .hero-logo-img { max-height: 80px; }
  .hero-tagline { font-size: 0.85rem; }
  .hero-brand-badge { padding: 6px 18px; font-size: 0.75rem; }
  .site-header--compact .hero-inner { padding: 12px 20px; }
  .site-header--compact .hero-logo-img { max-height: 120px; }
  .site-header--compact .hero-logo { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hero-logo { font-size: 1.6rem; }
  .hero-logo-img { max-height: 60px; }
  .hero-tagline { font-size: 0.78rem; }
  .hero-brands { gap: 10px; }
  .hero-brand-badge { padding: 5px 14px; font-size: 0.7rem; }
}
