/* ==========================================================================
   header.css - Cabecera y Navegación Modular (Código Puro CSS)
   Emaús Solidaridad Para Todos
   ========================================================================== */

/* Barra Superior Informativa */
.top-bar {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  display: none;
}

@media (min-width: 768px) {
  .top-bar {
    display: block;
  }
}

.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contacts {
  display: flex;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.top-bar-item:hover {
  color: #f3f4f6;
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #ffffff;
  border-radius: 0.375rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  text-decoration: none;
}

.social-icon-btn:hover {
  transform: translateY(-2px) scale(1.1);
}

/* Barra Principal de Navegación (Sticky Header) */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #f3f4f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.main-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .main-header-inner {
    padding: 1rem 1.5rem;
  }
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo img {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .header-logo img {
    height: 3.25rem;
  }
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .nav-menu {
    gap: 2rem;
  }
}

.nav-link {
  color: #374151;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ==========================================================================
   BOTÓN DONA AQUÍ (CÓDIGO PURO)
   ========================================================================== */
.btn-donate {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.65rem 1.75rem !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  background-color: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.03em !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  line-height: 1.25 !important;
  border: none !important;
}

.btn-donate:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.5) !important;
}

.btn-donate:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Botón Hamburguesa Móvil */
.mobile-menu-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1f2937;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
  width: 100%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.25rem;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu.open {
  display: flex !important;
}

.mobile-nav-link {
  padding: 0.65rem 0;
  border-bottom: 1px solid #f9fafb;
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mobile-nav-link:hover {
  color: #ef4444;
}

.mobile-btn-donate {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #ef4444;
  color: #ffffff;
  padding: 0.85rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.5rem;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Contenedor Unificado y Márgenes Simétricos (Desktop y Mobile)
   Emaús Solidaridad Para Todos - Pure CSS Modular
   ========================================================================== */

/* Estandarización de .container para que coincida exactamente con el ancho máximo del Hero y Header */
.container,
.site-container {
  width: 100% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  .container,
  .site-container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (min-width: 1280px) {
  .container,
  .site-container {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}

/* El Hero card exterior mantiene max-width: 1400px y márgenes sincronizados */
#top .max-w-350,
.max-w-350 {
  max-width: 1400px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* El contenido interno del hero alineado uniformemente */
#top .container {
  max-width: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

@media (min-width: 768px) {
  #top .container {
    padding-left: 3.5rem !important;
    padding-right: 3.5rem !important;
  }
}

/* Padding uniforme entre secciones */
section.py-20 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

@media (min-width: 768px) {
  section.py-20 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
}
