:root {
  --color-dark: #040714;
  --color-dark-alt: #080c1c;
  --color-primary: #5c7cfa;
  --color-primary-dark: #4b63d9;
  --color-secondary: #22d2b5;
  --color-accent: #f6ad55;
  --color-muted: #8d91a8;
  --color-light: #f4f6ff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px rgba(11, 12, 28, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
  background-color: #050815;
  line-height: 1.6;
  margin: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

main {
  margin-top: 110px;
}

section {
  scroll-margin-top: 120px;
}

.eyebrow {
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.78);
}

.main-nav {
  background: rgba(245, 248, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 35px rgba(11, 23, 60, 0.08);
}

.main-nav.is-scrolled {
  background: rgba(235, 241, 255, 0.98);
  box-shadow: 0 20px 65px rgba(5, 5, 17, 0.15);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  max-width: 190px;
  transition: transform 0.25s ease;
}

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

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.75);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--color-dark);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.btn-donate {
  background: linear-gradient(120deg, var(--color-secondary), #1abc9c);
  color: #04121c;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(34, 210, 181, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero {
  position: relative;
  padding: 9rem 0 6rem;
  background-image:
    linear-gradient(120deg, rgba(6, 7, 34, 0.95), rgba(9, 21, 67, 0.8)),
    url('img/industry-2738405.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 25%, rgba(92, 124, 250, 0.35), transparent 50%);
  pointer-events: none;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.glass-card.hero-insights {
  position: relative;
  isolation: isolate;
}

.glass-card.hero-insights::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
}

.hero-list i {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

.mini-report {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.partners {
  background: #f7f8ff;
  border-bottom: 1px solid rgba(5, 10, 26, 0.07);
}

.partner-carousel {
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0 1.5rem;
}

.partner-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: partner-scroll 30s linear infinite;
}

.partner-carousel:hover .partner-track {
  animation-play-state: paused;
}

.partner-logo {
  flex: 0 0 auto;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.1);
  opacity: 0.85;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.partner-logo img:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.03);
}

@keyframes partner-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.section-padding {
  padding: 5.5rem 0;
}

#servicios.section-padding {
  padding-bottom: 3rem;
}

#Proyectos.section-padding {
  padding-top: 3rem;
}

#impacto {
  background: #f9fbff;
}

#impacto .section-header h2 {
  color: #0f172a;
}

#impacto .section-header p {
  color: #4b4f63;
}

#impacto .section-header {
  color: #131c34;
}

#impacto .stat-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  color: #131c34;
}

#impacto .stat-card .stat-label {
  color: #4b4f63;
}

#impacto .stat-card .stat-value {
  color: #1b2559;
}

.team-section-dark {
  background: linear-gradient(180deg, #050816 0%, #0d1430 100%);
}

#equipo {
  background: linear-gradient(180deg, #050816 0%, #0d1430 100%);
  position: relative;
}

#equipo .section-header .eyebrow,
#equipo .section-header p {
  color: rgba(236, 243, 255, 0.8);
}

#equipo .section-header h2 {
  color: #f1f4ff;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  color: #dbe3ff;
}

.section-header p {
  color: #9fb4ff;
}

.section-header .text-muted {
  color: #9fb4ff !important;
  opacity: 0.95;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: #1d2136;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.kpi-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(92, 124, 250, 0.1);
}

.kpi-value {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-primary);
}

.kpi-label {
  margin: 0;
  color: #4b4f63;
}

.mv-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(5, 5, 17, 0.05);
  box-shadow: 0 15px 35px rgba(9, 12, 28, 0.07);
  text-align: center;
}

.mv-card.highlight {
  background: linear-gradient(135deg, rgba(92, 124, 250, 0.1), rgba(34, 210, 181, 0.15));
}

.pillars li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pillars li::before {
  content: '•';
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
}

.service-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(5, 5, 17, 0.05);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(92, 124, 250, 0.12);
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags span {
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(92, 124, 250, 0.08);
  color: var(--color-primary);
}

.bg-gradient {
  background: linear-gradient(135deg, #050714, #111c3d);
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
}

.project-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-body {
  padding: 2rem;
  color: #ffffff;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-list {
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.timeline {
  border-left: 2px solid rgba(15, 23, 42, 0.15);
  padding-left: 2.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  position: relative;
  margin-bottom: 2rem;
}

.timeline-year {
  position: absolute;
  left: -4.6rem;
  top: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: #1b2559;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.timeline-item h4 {
  color: #1c2854;
}

.timeline-item p {
  color: #545b78;
}

.team-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(5, 5, 17, 0.06);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  border: 4px solid rgba(92, 124, 250, 0.15);
}

.team-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.team-tags span {
  background: rgba(92, 124, 250, 0.12);
  color: var(--color-primary);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.contact-section {
  background: #030713;
  color: #ffffff;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
}

.contact-card i {
  font-size: 1.4rem;
  color: var(--color-secondary);
}

.contact-card a {
  color: #ffffff;
  font-weight: 600;
}

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.contact-form .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.contact-form .form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 0.2rem rgba(34, 210, 181, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.contact-form label {
  font-weight: 500;
}

.form-status {
  font-weight: 600;
  min-height: 1.5rem;
}

.form-status.is-success {
  color: #34d399;
}

.form-status.is-error {
  color: #f87171;
}

.donation {
  background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.15), transparent 35%), linear-gradient(135deg, #5c7cfa, #141727);
}

.footer {
  background: #f4f6fb;
  padding: 4rem 0 2rem;
  color: #1a2142;
}

.footer h5 {
  color: #0f172a;
  font-weight: 600;
}

.footer a {
  color: #1f3c88;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #0e1f55;
}

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

.contact-links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #1a2142;
}

.contact-links i {
  color: #4b63d9;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6e9ff;
  color: #1a2142;
  font-size: 1rem;
}

.social-links a:hover {
  background: #4b63d9;
  color: #ffffff;
}

.border-white-10 {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

.glass {
  backdrop-filter: blur(12px);
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .navbar-brand img {
    max-width: 150px;
  }

  main {
    margin-top: 90px;
  }

  .hero {
    padding: 8rem 0 5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero {
    text-align: center;
  }

  .hero-list li {
    justify-content: center;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
