/* ===== HERO ESTANDARIZADO PARA TODAS LAS PÁGINAS ===== */
/* Basado en nosotros.php pero más compacto verticalmente */

.page-hero.productos-hero,
.page-hero.nosotros-hero,
.page-hero.contacto-hero,
.page-hero.blog-hero,
.page-hero.galeria-hero,
.page-hero {
  position: relative;
  min-height: 50vh !important; /* Reducido de 60vh a 50vh para que sea más compacto */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #C4925A 0%, #D4A574 30%, #E8C4A0 50%, #D4A574 70%, #C4925A 100%) !important; /* Gradiente dorado suave y cálido como en la imagen */
  color: white !important;
  text-align: center !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px; /* Reducido de 60px a 40px */
}

/* ===== PARTÍCULAS DE FONDO ===== */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-particles::after {
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

/* ===== BADGE HERO ===== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 8px 20px; /* Reducido de 10px 24px */
  font-size: 0.9rem; /* Reducido de 1rem */
  font-weight: 600;
  color: white;
  margin-bottom: 20px; /* Reducido de 24px */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-badge i {
  font-size: 1rem;
}

/* ===== TÍTULO HERO ===== */
.hero-title {
  font-size: 2.5rem; /* Reducido de 3rem */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px; /* Reducido de 20px */
  color: white;
}

.text-highlight {
  color: #D6AD60;
  position: relative;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #D6AD60, #F4E4BC);
  border-radius: 2px;
}

/* ===== DESCRIPCIÓN HERO ===== */
.hero-description {
  font-size: 1.1rem; /* Reducido de 1.2rem */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px; /* Reducido de 40px */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ESTADÍSTICAS HERO ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* Reducido de 30px */
  margin-top: 32px; /* Reducido de 40px */
}

.hero-stat {
  text-align: center;
  padding: 16px; /* Reducido de 20px */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px; /* Reducido de 15px */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-stat-number {
  display: block;
  font-size: 2rem; /* Reducido de 2.5rem */
  font-weight: 700;
  color: white;
  margin-bottom: 4px; /* Reducido de 8px */
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem; /* Reducido de 0.9rem */
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 1.2;
}

/* ===== ESTADÍSTICAS EXTENDIDAS (4 elementos) ===== */
.hero-stats-extended {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-stats-extended {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats-extended {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===== BOTONES CTA ===== */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #DAA520 0%, #F0C814 25%, #FFD700 50%, #F0C814 75%, #DAA520 100%);
  color: white;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #F0C814 0%, #FFD700 25%, #DAA520 50%, #F0C814 75%, #DAA520 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
  color: white;
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: white;
}

@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .page-hero {
    min-height: 50vh; /* Más compacto en móviles */
    padding: 40px 0; /* Reducido para móviles */
  }
  
  .hero-title {
    font-size: 2rem; /* Reducido de 2.5rem */
    margin-bottom: 15px;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .hero-stats {
    gap: 25px;
    margin-top: 25px;
  }
  
  .hero-stat {
    min-width: 100px;
  }
  
  .hero-stat-number {
    font-size: 2rem;
  }
  
  .hero-stat-label {
    font-size: 0.8rem;
  }
  
  .hero-badge {
    padding: 6px 16px;
    font-size: 0.8rem;
    margin-bottom: 15px;
  }
  
  /* Ocultar partículas en móviles para mejor rendimiento */
  .hero-particles {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-hero {
    min-height: 45vh;
    padding: 30px 0;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .hero-stat {
    min-width: auto;
  }
}

/* ===== VARIACIONES POR PÁGINA ===== */
.contacto-hero {
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

.productos-hero {
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

.blog-hero {
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

.galeria-hero {
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

.nosotros-hero {
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}
