/* ==========================================================================
   hero.css - Bloque Hero Principal y Hero de Artículos
   Emaús Solidaridad Para Todos
   ========================================================================== */

/* Hero Principal de la Landing (#top) */
.hero-main-section {
  padding: 1.5rem 1rem 2rem 1rem;
  background-color: var(--color-white);
}

@media (min-width: 768px) {
  .hero-main-section {
    padding: 2rem 1.5rem 2.5rem 1.5rem;
  }
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-2xl);
  margin-left: auto;
  margin-right: auto;
  max-width: var(--container-max-width);
  width: 100%;
}

@media (min-width: 768px) {
  .hero-main-card {
    min-height: 640px;
    border-radius: 2.5rem;
  }
}

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

.hero-main-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(239, 68, 68, 0.96) 0%, rgba(239, 68, 68, 0.85) 50%, rgba(239, 68, 68, 0) 100%);
}

.hero-main-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
  .hero-main-content {
    padding: 4rem 3.5rem;
    max-width: 720px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

.hero-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  animation: pulse-heart 2s infinite ease-in-out;
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.hero-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-title span {
  color: #ffffff;
  display: inline-block;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 540px;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.25rem;
  }
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #ffffff;
  color: var(--emaus-red);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.0625rem;
  box-shadow: var(--shadow-xl);
  transition: all 0.25s ease;
  text-decoration: none;
}

.hero-cta-btn:hover {
  background-color: var(--color-gray-50);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-2xl);
}

.hero-cta-icon-circle {
  background-color: var(--emaus-red);
  color: #ffffff;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.hero-cta-btn:hover .hero-cta-icon-circle {
  background-color: var(--emaus-red-hover);
}

/* Badge Flotante de Familias Ayudadas en Hero */
.hero-stats-badge {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #ffffff;
  border-top-left-radius: 3rem;
  padding: 1.25rem 2.5rem 1.25rem 2rem;
  box-shadow: -10px -10px 20px rgba(0, 0, 0, 0.05);
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-stats-badge {
    display: flex;
  }
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  border: 4px solid #ffffff;
  object-fit: cover;
  margin-left: -1rem;
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-stat-info {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emaus-red);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
