/* ============================================
   FOOTER COMPONENT
   Diseño profesional para pie de página ONG
   ============================================ */

/* Variables si no están definidas en otro lugar */
:root {
  /* Colores principales */
  --background: #ffffff;
  --foreground: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  /* Colores de marca - Inspirados en África */
  --primary: #d97706;
  --primary-dark: #b45309;
  --primary-light: #fbbf24;
  --primary-lighter: #fef3c7;

  --secondary: #059669;
  --secondary-dark: #047857;
  --secondary-light: #34d399;

  --accent: #0284c7;
  --accent-dark: #0369a1;
  --accent-light: #38bdf8;

  /* Colores humanitarios */
  --humanitarian-red: #dc2626;
  --humanitarian-orange: #ea580c;
  --humanitarian-blue: #0284c7;
  --humanitarian-green: #059669;

  /* Colores de estado */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Fondos */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-dark: #1f2937;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* Bordes */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #9ca3af;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Radios de borde */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  color: var(--foreground);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.875rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

.footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: white;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px);
  pointer-events: none;
}

.footerContent {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  position: relative;
  z-index: 2;
}

.footerGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Footer Sections */
.footerSection {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footerTitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  display: inline-block;
}

.footerTitle::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #d97706, #dc2626);
  border-radius: 2px;
}

.footerDescription {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Organization Info */
.organizationInfo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.orgItem {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  border-left: 3px solid #d97706;
  transition: all 0.3s ease;
}

.orgItem:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #ea580c;
  transform: translateX(4px);
}

.orgItem strong {
  color: #fbbf24;
  font-weight: 700;
}

/* Links */
.footerLinks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footerLink {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footerLink::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footerLink:hover {
  color: #fbbf24;
  transform: translateX(8px);
}

.footerLink:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Contact Info */
.contactList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contactItem {
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.contactItem:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.contactItem strong {
  color: #fbbf24;
  display: block;
  margin-bottom: 0.25rem;
}

.contactIcon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Location List - Compact version */
.locationList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.locationItem {
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
}

.locationItem:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
  border-left-color: #d97706;
}

.locationIcon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.locationItem strong {
  color: #fbbf24;
  font-weight: 700;
}

/* Social Links */
.socialLinks {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.socialLink {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.socialLink:hover {
  background: linear-gradient(135deg, #d97706, #dc2626);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

/* Newsletter Section */
.newsletter {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.newsletterTitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fbbf24;
}

.newsletterDescription {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.newsletterForm {
  display: flex;
  gap: 0.75rem;
}

.newsletterInput {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletterInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletterInput:focus {
  outline: none;
  border-color: #d97706;
  background: rgba(255, 255, 255, 0.15);
}

.newsletterButton {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #d97706, #ea580c);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletterButton:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

/* Footer Bottom */
.footerBottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footerCopyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footerBottomLinks {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footerBottomLink {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footerBottomLink:hover {
  color: #fbbf24;
}

/* Responsive */
@media (max-width: 640px) {
  .footerContent {
    padding: 3rem 1rem 1.5rem;
  }

  .footerGrid {
    gap: 2rem;
  }

  .newsletter {
    padding: 1.5rem;
  }

  .newsletterForm {
    flex-direction: column;
  }

  .footerBottomLinks {
    flex-direction: column;
    gap: 0.75rem;
  }
}
