@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Outfit:wght@400;500;600;700;800&family=Lora:wght@500;600;700&display=swap');

/* --- NÚCLEO DE COLORES INSTITUCIONALES (Estilo Verde-Naranja Oficial) --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-brand: 'Lora', serif;

  --color-primary: #1b4332;       /* Verde Selva Profundo */
  --color-secondary: #40916c;     /* Verde Claro Brillante */
  --color-accent: #f97316;        /* Naranja Vibrante / Acentos y CTA */
  --color-dark: #081c15;          /* Verde Oscuro (reemplaza azul/slate) */
  --color-light: #f4faf7;         /* Blanco con tinte verde suave */
  --color-card-bg: rgba(255, 255, 255, 0.95);
  --border-color: rgba(27, 67, 50, 0.08);
  --border-focus: rgba(27, 67, 50, 0.4);
  
  --shadow-sm: 0 2px 4px rgba(8, 28, 21, 0.04);
  --shadow-md: 0 8px 24px rgba(8, 28, 21, 0.06);
  --shadow-lg: 0 16px 36px rgba(8, 28, 21, 0.1);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- BASE & SEGURIDAD RESPONSIVA --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-body);
  background-color: var(--color-light);
  color: #334155;
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* --- BARRA UTILDAD SUPERIOR (Estilo Perspektiva) --- */
.top-utility-bar {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 2rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 101;
  position: relative;
}

.utility-info {
  display: flex;
  gap: 2rem;
}

.utility-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.utility-item i {
  color: var(--color-secondary);
}

.utility-socials {
  display: flex;
  gap: 1rem;
}

.utility-socials a:hover {
  color: var(--color-secondary);
  transform: scale(1.1);
}

/* --- NAVEGACIÓN PRINCIPAL --- */
.main-navigation {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: var(--transition-smooth);
}

.brand-logo:hover {
  transform: scale(1.08) rotate(1deg);
  filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.2));
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-smooth);
  letter-spacing: -0.01em;
}

.brand-name:hover {
  transform: scale(1.02);
}

/* Menú de Enlaces */
.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-menu-item {
  position: relative;
}

.nav-menu-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.nav-menu-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-menu-link:hover::after, .nav-menu-link.active::after {
  width: 80%;
}

.nav-menu-link:hover, .nav-menu-link.active {
  color: var(--color-primary);
}

/* Dropdowns Flotantes Premium */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  list-style: none;
}

.nav-menu-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
}

.dropdown-link:hover {
  background: rgba(27, 67, 50, 0.05);
  color: var(--color-primary);
  padding-left: 1.5rem;
}

/* Call to Action en el menú */
.nav-callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
}

.callout-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.1);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.callout-info h5 {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.callout-info a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.menu-toggler {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- HERO SECTION (SLIDER DINÁMICO) --- */
.hero-slider {
  position: relative;
  height: 85vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

/* Slideshow Container */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
}

/* Filtro/Overlay más suave y tenue (deja ver las fotos) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 38, 28, 0.5) 0%, rgba(15, 23, 42, 0.45) 100%);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 4;
  max-width: 900px;
  animation: fadeInUp 0.8s ease-out;
}

/* Separador Ripped Paper SVG (Perspektiva Style) */
.ripped-paper-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  fill: var(--color-light);
  transform: scaleY(-1);
  z-index: 5;
}

.hero-inner {
  max-width: 900px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.65rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 4px 15px rgba(8, 28, 21, 0.45);
}

.hero-lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(8, 28, 21, 0.35);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- BOTONES GENERALES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* --- SECCIÓN PUBLIC: ESTRUCTURA --- */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-alt {
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: 0.75rem auto 0 auto;
}

/* --- QUIÉNES SOMOS --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-bullets {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-bullet {
  display: flex;
  gap: 0.75rem;
}

.about-bullet i {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.about-bullet-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.about-bullet-info p {
  font-size: 0.85rem;
  color: #64748b;
}

.about-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.about-premium-logo-wrapper {
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.about-premium-logo-wrapper:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.about-premium-logo-wrapper img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
  animation: logoPulse 6s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06) rotate(1deg); }
}

.about-experience-card {
  background: var(--color-primary);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  max-width: 200px;
  border: 1px solid transparent;
}

.about-experience-card h4 {
  font-size: 1.75rem;
  color: var(--color-accent);
  font-weight: 800;
  margin-bottom: 0.25rem;
  transition: var(--transition-smooth);
}

.about-experience-card p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Estado Expandido al Hacer Clic */
.about-experience-card.expanded {
  transform: scale(1.25) translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: var(--color-dark);
  border-color: var(--color-accent);
}

.about-experience-card.expanded h4 {
  font-size: 2.25rem;
}
}

/* --- ÁREAS DE TRABAJO (Rejilla de Cartas) --- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.area-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.area-card-header {
  margin-bottom: 1.5rem;
}

.area-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(27, 67, 50, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}

.area-card:hover .area-icon-box {
  background: var(--color-primary);
  color: #ffffff;
}

.area-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.area-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.area-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  cursor: pointer;
}

.area-link:hover {
  color: var(--color-secondary);
}

/* --- PROYECTOS DESTACADOS --- */
.projects-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-card-body {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

/* --- IMPACT STATISTICS (LOGROS) --- */
.stats-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #112d21 100%);
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--color-secondary);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
}

/* --- BANCO DE PROYECTOS ("Tus Ideas Valen") --- */
.banco-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.95) 100%);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.banco-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.banco-steps {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.banco-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.step-text p {
  font-size: 0.85rem;
  color: #64748b;
}

/* --- FORMULARIOS PREMIUM --- */
.premium-form {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  background-color: var(--color-light);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* --- RECURSOS DESCARGABLES --- */
.resources-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.resource-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.resource-item:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.resource-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.resource-info p {
  font-size: 0.85rem;
  color: #64748b;
}

.resource-info span {
  font-size: 0.75rem;
  color: var(--color-secondary);
  font-weight: 600;
}

/* --- PARTICIPA & DONACIONES --- */
.participa-tabs {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.donation-card {
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.donation-card h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.donation-types {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.donation-type-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.donation-type-btn.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

/* --- FOOTER GENERAL --- */
.main-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 2rem 2rem 2rem;
  font-size: 0.9rem;
  border-top: 4px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
  margin-top: 0.5rem;
}

.footer-col p {
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 0.25rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  font-size: 0.8rem;
}

/* --- MODAL DETALLES ÁREAS (PUBLIC POPUP) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 700px;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.show .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--color-danger);
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVIDAD (ZERO OVERFLOW) --- */
@media (max-width: 992px) {
  .main-navigation {
    padding: 1rem;
  }
  .nav-menu-list {
    display: none; /* Se maneja con toggle lateral en JS */
  }
  .menu-toggler {
    display: block;
  }
  .about-grid, .banco-container, .participa-tabs {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .areas-grid, .projects-slider {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .top-utility-bar {
    display: none; /* Ocultar barra superior en móviles pequeños para ganar espacio */
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .areas-grid, .projects-slider, .stats-container, .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-box {
    padding: 1.5rem;
  }
}

/* --- SECCIÓN DE ALIANZAS Y MARCAS (Premium Brand Showcase) --- */
.alianzas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.alianza-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  width: 240px; /* Tamaño base incrementado */
  height: 120px;
  cursor: pointer;
}

.alianza-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: var(--transition-smooth);
}

.alianza-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.alianza-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Tarjeta Destacada de Kallari (+40% de tamaño) */
.alianza-card.kallari-featured {
  width: 336px;
  height: 168px;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.alianza-card.kallari-featured img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Animaciones del Preloader */
@keyframes loadingBar {
  0% { left: -50px; }
  50% { left: 140px; }
  100% { left: -50px; }
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification.error {
  background: #ef4444;
}

.toast-notification.info {
  background: var(--color-accent);
}

.footer-logo-premium {
  height: 80px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

.footer-logo-premium:hover {
  transform: scale(1.1) rotate(1deg);
}

