/* ── Container ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar__logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-involucrA {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, #e07820, #4a8c3f, #e07820, #6b4fa0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.logo-tagline { font-size: .65rem; color: var(--text-light); font-weight: 600; }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #fff8f0 0%, #f0f8ed 50%, #f0ebfa 100%);
  padding: 60px 0 40px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.hero__subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 28px;
  max-width: 380px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

/* ── SECCIÓN GENÉRICA ── */
.section { padding: 64px 0; }
.section__title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 40px;
  position: relative;
  scroll-margin-top: 96px;
}
.section__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--orange);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ── CAUSAS ── */
.causas { background: var(--white); }
.causas__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
/* Si la ultima fila tiene 2 cards, se centran en las columnas 2 y 3. */
.causas__grid .causa-card:nth-last-child(2):nth-child(4n + 1) {
  grid-column: 2;
}

.causas__grid .causa-card:last-child:nth-child(4n + 2) {
  grid-column: 3;
}
@media (max-width: 900px) {
  .causas__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── ACCIONES DESTACADAS ── */
.acciones { background: var(--bg); }
.acciones__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── CÓMO FUNCIONA ── */
.como-funciona {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.como-funciona::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(90deg, rgba(74,140,63,.15), rgba(224,120,32,.15), rgba(107,79,160,.15));
  filter: blur(30px);
}
.pasos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

/* ── FOOTER ── */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 28px 0;
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__brand { font-size: 1.3rem; font-weight: 900; }
.footer__copy  { font-size: .8rem; opacity: .6; }

@media (max-width: 768px) {
  .navbar__nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: var(--shadow); gap: 16px; }
  .navbar__nav--open { display: flex; }
  .navbar__hamburger { display: block; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__images { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 1.7rem; }
  .acciones__grid { grid-template-columns: 1fr; }
  .pasos__grid    { grid-template-columns: 1fr; }
}