/* ============================================
   PÁGINA PRINCIPAL - HOME
   Diseño profesional para ONG en África
   ============================================ */

/* ============================================
   VARIABLES GLOBALES Y RESET BASE
   ============================================ */

: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);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  color: var(--foreground);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/public/hero-benin.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.heroPattern {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
}

.heroContent {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.heroTitle {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.75rem;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-optical-sizing: auto;
}

.heroSubtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: white;
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 4px 20px rgba(0, 0, 0, 0.7);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.003em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(25px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(25px) saturate(180%) brightness(110%);
  padding: 1.5rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.heroSubtitle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 100%);
  pointer-events: none;
}

.heroCta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .heroCta {
    flex-direction: row;
    gap: 1.25rem;
  }
}

.btnPrimary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  color: white;
  font-weight: 700;
  font-size: 1.0625rem;
  border-radius: 980px;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  min-width: 180px;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.btnPrimary:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btnPrimary:active {
  transform: translateY(0);
}

.btnSecondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  color: white;
  font-weight: 700;
  font-size: 1.0625rem;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  min-width: 180px;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.btnSecondary:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btnSecondary:active {
  transform: translateY(0);
}

/* Carousel Section */
.carouselSection {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom, #f9fafb, white);
  position: relative;
}

.carouselContainer {
  max-width: 1400px;
  margin: 0 auto;
}

.carouselHeader {
  text-align: center;
  margin-bottom: 3rem;
}

.carouselTitle {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.carouselTitle::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #d97706, #dc2626);
  border-radius: 2px;
}

.carouselSubtitle {
  font-size: 1.1rem;
  color: #4a5568;
  margin-top: 1.5rem;
}

/* Stats Section */
.statsSection {
  background: white;
  padding: 4rem 1rem;
  position: relative;
  z-index: 2;
}

.statsContainer {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.statCard {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.statCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.statNumber {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #d97706, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.statLabel {
  color: #4a5568;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mission Section */
.missionSection {
  background: white;
  padding: 5rem 1rem;
}

.sectionHeader {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.sectionTitle {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.sectionTitle::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #d97706, #dc2626);
  border-radius: 2px;
}

.sectionDescription {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.8;
  margin-top: 2rem;
}

/* Timeline Container */
.timelineContainer {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 0 1rem;
}

/* Timeline title */
.timelineTitle {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  padding-bottom: 1.25rem;
}

.timelineTitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  background: linear-gradient(90deg, #d97706, #ea580c, #dc2626);
  border-radius: 3px;
}

/* Timeline vertical line */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #d97706, #ea580c, #dc2626);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Timeline Item */
.timelineItem {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.timelineItem:nth-child(odd) {
  flex-direction: row;
}

.timelineItem:nth-child(even) {
  flex-direction: row-reverse;
}

/* Timeline Year Badge */
.timelineYear {
  flex: 0 0 100px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #d97706, #ea580c);
  padding: 0.625rem 0.875rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  line-height: 1;
}

.timelineItem:hover .timelineYear {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

/* Timeline Content Card */
.timelineContent {
  flex: 1;
  background: white;
  padding: 1.75rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid #fef3c7;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 2.5rem;
}

.timelineItem:nth-child(odd) .timelineContent {
  margin-left: 2.5rem;
  margin-right: 0;
}

.timelineItem:nth-child(even) .timelineContent {
  margin-right: 2.5rem;
  margin-left: 0;
}

.timelineContent:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.2);
  border-color: #d97706;
}

/* Arrow pointing to center line */
.timelineContent::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translateY(-50%);
}

.timelineItem:nth-child(odd) .timelineContent::before {
  right: -15px;
  border-width: 15px 0 15px 15px;
  border-color: transparent transparent transparent #fef3c7;
}

.timelineItem:nth-child(even) .timelineContent::before {
  left: -15px;
  border-width: 15px 15px 15px 0;
  border-color: transparent #fef3c7 transparent transparent;
}

.timelineItem:hover .timelineContent::before {
  border-color: transparent transparent transparent #d97706;
}

.timelineItem:nth-child(even):hover .timelineContent::before {
  border-color: transparent #d97706 transparent transparent;
}

/* Timeline Content Title */
.timelineContentTitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.75rem;
  margin-top: 0;
  background: linear-gradient(135deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

/* Timeline Content Text */
.timelineContentText {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

.missionGrid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.missionCard {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.missionCard::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.missionCard:hover::before {
  opacity: 1;
}

.missionCard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(217, 119, 6, 0.2);
  border-color: #d97706;
}

.missionIcon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.missionTitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.missionDescription {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
}

/* Impact Section */
.impactSection {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  padding: 5rem 1rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.impactSection::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;
}

.impactGrid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.impactCard {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.impactCard:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

.impactIcon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.impactTitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fbbf24;
}

.impactDescription {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* News Section */
.newsSection {
  background: linear-gradient(to bottom, #f9fafb, white);
  padding: 5rem 1rem;
}

.newsHeader {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.newsTitle {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1a202c;
}

.viewAllLink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d97706;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.viewAllLink:hover {
  color: #b45309;
  transform: translateX(4px);
}

.newsGrid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.emptyState {
  text-align: center;
  padding: 4rem 2rem;
  background: #fef3c7;
  border-radius: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.emptyStateIcon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.emptyStateText {
  color: #4a5568;
  font-size: 1.2rem;
  font-weight: 500;
}

/* ============================================
   CAROUSEL STYLES - PREMIUM VERSION
   ============================================ */

.carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: #000;
}

.carousel-track {
  display: flex;
  position: relative;
}

.carousel-slide {
  min-width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  z-index: 2;
}

.carousel-slide.exiting {
  position: absolute;
  opacity: 0;
  transform: scale(0.9);
  z-index: 1;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.carousel-video {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.news-card-gradient {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.gradient-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
  opacity: 0.5;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  color: white;
  z-index: 2;
}

.carousel-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.carousel-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 119, 6, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.carousel-social-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-social-badge span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

.carousel-social-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.carousel-social-icon {
  font-size: 6rem;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.carousel-content h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.carousel-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.carousel-meta-icon {
  font-size: 1rem;
}

.carousel-content a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-content a:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-button-arrow {
  transition: transform 0.3s ease;
}

.carousel-content a:hover .carousel-button-arrow {
  transform: translateX(4px);
}

.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 3;
  overflow: hidden;
}

.carousel-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #dc2626);
  width: 0%;
  animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  position: relative;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.carousel-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #d97706;
  width: 32px;
  border-radius: 6px;
  border-color: #fbbf24;
}

.carousel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
}

.carousel-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.carousel-empty-text {
  font-size: 1.25rem;
  color: #4a5568;
  font-weight: 600;
  text-align: center;
}

/* Responsive carousel */
@media (max-width: 768px) {
  .carousel-slide img,
  .carousel-slide video,
  .news-card-gradient {
    height: 400px;
  }

  .carousel-video {
    height: 400px;
  }

  .carousel-content {
    padding: 2rem 1.5rem 1.5rem;
  }

  .carousel-content h3 {
    font-size: 1.5rem;
  }

  .carousel-content p {
    font-size: 0.95rem;
  }

  .carousel-meta {
    gap: 1rem;
  }

  .carousel-content a {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .carousel-slide img,
  .carousel-slide video,
  .news-card-gradient {
    height: 350px;
  }

  .carousel-video {
    height: 350px;
  }

  .carousel-content {
    padding: 1.5rem 1rem 1rem;
  }

  .carousel-featured-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contactSection {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  padding: 5rem 1rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.contactSection::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
}

.contactContent {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contactHeader {
  text-align: center;
  margin-bottom: 3rem;
}

.contactTitle {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.contactSubtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
}

.contactGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contactCard {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.contactCard:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contactIcon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.contactCardTitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contactInfo {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    min-height: 75vh;
    background-position: 65% center;
    background-attachment: scroll;
    padding: 3rem 1.25rem;
  }

  .hero::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.5) 100%);
  }

  .heroTitle {
    margin-bottom: 1.5rem;
  }

  .heroSubtitle {
    padding: 1.25rem 1.75rem;
    margin-bottom: 2.5rem;
  }

  .btnPrimary,
  .btnSecondary {
    width: 100%;
    max-width: 300px;
  }

  .statsSection {
    padding: 3rem 1rem;
  }

  .missionSection,
  .newsSection,
  .contactSection {
    padding: 3rem 1rem;
  }

  .missionCard,
  .contactCard {
    padding: 2rem;
  }

  /* Timeline responsive */
  .timelineContainer {
    padding: 0 0.75rem;
  }

  .timelineTitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timelineItem {
    flex-direction: column !important;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-left: 60px;
  }

  .timelineYear {
    flex: 0 0 auto;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    position: absolute;
    left: 0;
    top: 0;
  }

  .timelineContent {
    margin: 0 !important;
    padding: 1.25rem 1.5rem;
    width: 100%;
    margin-top: 3.5rem !important;
  }

  .timelineContent::before {
    display: none;
  }

  .timelineContentTitle {
    font-size: 1.15rem;
  }

  .timelineContentText {
    font-size: 0.95rem;
  }
}

/* ============================================
   SCROLLBAR PERSONALIZADA
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f9fafb;
}

::-webkit-scrollbar-thumb {
  background: #d97706;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b45309;
}

/* ============================================
   SMOOTH SCROLL PARA ENLACES INTERNOS
   ============================================ */

html {
  scroll-behavior: smooth;
}
