@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap");

:root {
  --purple-950: #24103f;
  --purple-900: #321255;
  --purple-800: #45176f;
  --purple-700: #5c258d;
  --purple-600: #7134a2;
  --green-800: #237326;
  --green-700: #2f8d35;
  --green-600: #3c9e42;
  --green-100: #eef8ee;
  --gold: #d9a618;
  --cream: #fffaf0;
  --cream-2: #fbf5e8;
  --white: #ffffff;
  --ink: #191724;
  --text: #48444e;
  --muted: #726d79;
  --border: #e8e5eb;
  --shadow-sm: 0 8px 24px rgb(32 20 46 / 8%);
  --shadow-md: 0 20px 50px rgb(33 18 48 / 12%);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--white);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.9vw, 4.65rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.07rem;
  font-weight: 800;
}

p {
  margin-bottom: 1rem;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--purple-900);
  border-radius: 8px;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.primary-nav a:focus-visible,
.social-circle:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid rgb(47 141 53 / 30%);
  outline-offset: 4px;
}

.button-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.button-primary {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 10px 24px rgb(47 141 53 / 20%);
}

.button-primary:hover {
  background: var(--green-800);
  box-shadow: 0 14px 30px rgb(47 141 53 / 28%);
}

.button-outline {
  color: var(--purple-800);
  background: rgb(255 255 255 / 72%);
  border-color: var(--purple-600);
}

.button-outline:hover {
  color: var(--white);
  background: var(--purple-700);
}

.button-white {
  color: var(--purple-900);
  background: var(--white);
}

.button-white:hover {
  color: var(--white);
  background: var(--purple-950);
}

.button-whatsapp {
  color: var(--white);
  border-color: rgb(255 255 255 / 54%);
  background: transparent;
}

.button-whatsapp:hover {
  border-color: var(--white);
  background: rgb(255 255 255 / 10%);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow-purple {
  color: var(--purple-700);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-700);
  font-size: 0.9rem;
  font-weight: 800;
}

.text-link .icon {
  transition: transform var(--transition);
}

.text-link:hover .icon {
  transform: translateX(5px);
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid rgb(43 22 67 / 7%);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  min-height: 78px;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 175px;
  height: auto;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.3vw, 34px);
}

.primary-nav a {
  position: relative;
  padding: 28px 0 25px;
  color: #27212d;
  font-size: 0.87rem;
  font-weight: 700;
  white-space: nowrap;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--green-700);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-circle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), color var(--transition), background var(--transition);
}

.social-circle:hover {
  color: var(--white);
  background: var(--green-700);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--purple-900);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle .icon-close {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background:
    radial-gradient(circle at 3% 76%, rgb(243 217 138 / 26%), transparent 28%),
    linear-gradient(100deg, #fff8e8 0%, #fffdf7 46%, #faf7ea 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 330px;
  content: "";
  opacity: 0.34;
  background:
    radial-gradient(ellipse at center, transparent 57%, rgb(114 132 58 / 18%) 58%, transparent 61%) 0 0 / 46px 46px;
  pointer-events: none;
}

.hero::before {
  left: -105px;
  bottom: -75px;
  transform: rotate(15deg);
}

.hero::after {
  right: -80px;
  top: 25px;
  transform: rotate(-18deg);
}

.hero-contours {
  position: absolute;
  top: 25px;
  left: 42%;
  width: 250px;
  height: 210px;
  opacity: 0.22;
  background:
    repeating-radial-gradient(
      ellipse at center,
      transparent 0 11px,
      rgb(137 115 79 / 22%) 12px 13px
    );
  border-radius: 44% 56% 52% 48%;
  transform: rotate(-12deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 540px;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 28px;
}

.hero-copy {
  max-width: 610px;
  padding: 78px 0 84px;
}

.hero-copy h1 {
  color: var(--purple-800);
}

.hero-description {
  max-width: 560px;
  margin-bottom: 32px;
  color: #4a444e;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-image-frame {
  position: relative;
  width: min(100%, 620px);
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-image-frame::after {
  position: absolute;
  right: 2%;
  bottom: 0;
  left: 0;
  height: 32px;
  content: "";
  background: var(--purple-900);
  clip-path: polygon(10% 0, 100% 0, 96% 100%, 4% 100%);
}

.hero-image-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
}

.triangle {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  width: 76%;
  height: 84%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.triangle-yellow {
  left: 3%;
  background: #e2ae16;
  transform: rotate(-4deg);
}

.triangle-green {
  right: -4%;
  width: 66%;
  height: 76%;
  background: #77a735;
  transform: rotate(8deg);
}

/* Franja de principios */

.principles {
  position: relative;
  z-index: 3;
  color: var(--white);
  background:
    radial-gradient(circle at 50% -120%, rgb(255 255 255 / 18%), transparent 55%),
    linear-gradient(90deg, var(--purple-900), var(--purple-700), var(--purple-900));
}

.principles-grid {
  display: grid;
  min-height: 116px;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.principle {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 26px;
  border-right: 1px solid rgb(255 255 255 / 24%);
}

.principle:last-child {
  border-right: 0;
}

.principle .icon {
  width: 48px;
  height: 48px;
}

.principle span {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Encabezados */

.section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.section-heading-row > div {
  flex: 1;
  text-align: center;
}

.heading-line {
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--green-700);
  border-radius: 999px;
}

.section-heading-light h2 {
  color: var(--white);
}

.section-heading-light .heading-line {
  background: var(--white);
}

/* Tarjetas */

.work-lines {
  background: var(--white);
}

.cards-grid {
  display: grid;
  gap: 28px;
}

.cards-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover,
.project-card:hover {
  border-color: rgb(92 37 141 / 22%);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.info-card {
  display: flex;
  min-height: 325px;
  flex-direction: column;
  padding: 30px 26px 24px;
  border-radius: var(--radius-sm);
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  color: var(--green-700);
}

.info-card h3 {
  min-height: 42px;
  margin-bottom: 18px;
}

.info-card p {
  color: var(--text);
  font-size: 0.94rem;
}

.info-card .text-link {
  margin-top: auto;
}

/* Proyectos */

.projects-section {
  background: #fafafa;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7.5;
  background: #e7e7e7;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.045);
}

.status {
  position: absolute;
  bottom: 10px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.status-progress {
  color: #246927;
  background: #e8f6e7;
}

.status-finished {
  color: var(--purple-800);
  background: #f0e7f7;
}

.status-next {
  color: #775500;
  background: #fff1b5;
}

.project-content {
  display: flex;
  min-height: 225px;
  flex-direction: column;
  padding: 26px 24px 24px;
}

.project-content p {
  font-size: 0.94rem;
}

.project-content .text-link {
  margin-top: auto;
}

/* Impacto */

.impact-section {
  position: relative;
  overflow: hidden;
  padding: 54px 0 48px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgb(255 255 255 / 9%), transparent 28%),
    linear-gradient(90deg, #267b2b, #38933b, #267b2b);
}

.impact-section::before,
.impact-section::after {
  position: absolute;
  width: 180px;
  height: 180px;
  content: "";
  opacity: 0.11;
  border: 3px solid var(--white);
  border-radius: 50% 0 50% 50%;
}

.impact-section::before {
  left: -70px;
  top: 20px;
  transform: rotate(35deg);
}

.impact-section::after {
  right: -70px;
  bottom: -70px;
  transform: rotate(210deg);
}

.impact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.impact-item {
  display: grid;
  min-height: 120px;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 18px;
  padding: 8px 34px;
  border-right: 1px solid rgb(255 255 255 / 42%);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-icon {
  width: 55px;
  height: 55px;
  grid-row: span 2;
}

.impact-item strong {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.impact-item span {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Publicación */

.featured-publication {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(255 248 229 / 78%), rgb(255 255 255 / 92%) 45%, rgb(255 248 229 / 72%));
}

.featured-publication::before,
.featured-publication::after {
  position: absolute;
  width: 130px;
  height: 180px;
  content: "";
  opacity: 0.14;
  border: 2px solid var(--gold);
  border-radius: 50% 0 50% 50%;
}

.featured-publication::before {
  left: -65px;
  top: 75px;
  transform: rotate(25deg);
}

.featured-publication::after {
  right: -65px;
  bottom: 20px;
  transform: rotate(205deg);
}

.publication-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 275px;
  align-items: center;
  gap: 38px;
}

.publication-cover {
  margin: 0;
  filter: drop-shadow(0 18px 14px rgb(30 22 21 / 22%));
}

.publication-cover img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
}

.publication-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.publication-copy h3 {
  margin: 20px 0 8px;
  color: var(--purple-700);
  font-size: 0.9rem;
}

.publication-copy p {
  margin-bottom: 10px;
  font-size: 0.94rem;
}

.publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  color: var(--purple-700);
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.launch-card {
  padding: 26px;
  border: 1px solid #d7ab4f;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 72%);
}

.launch-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--purple-800);
}

.launch-card-title .icon {
  width: 31px;
  height: 31px;
}

.launch-card p {
  margin-left: 44px;
  color: var(--text);
}

/* CTA */

.collaboration {
  color: var(--white);
  background:
    radial-gradient(circle at 30% -100%, rgb(255 255 255 / 16%), transparent 55%),
    linear-gradient(90deg, var(--purple-800), var(--purple-700), var(--purple-900));
}

.collaboration-inner {
  display: flex;
  min-height: 114px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.collaboration h2 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.55rem;
}

.collaboration p {
  margin: 0;
  font-size: 0.86rem;
}

.collaboration-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

/* Footer */

.site-footer {
  color: rgb(255 255 255 / 86%);
  background:
    radial-gradient(circle at 50% 0, rgb(129 79 179 / 22%), transparent 46%),
    var(--purple-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr 1fr;
  gap: 48px;
  padding-top: 54px;
  padding-bottom: 46px;
}

.footer-brand img {
  width: 180px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 280px;
  font-size: 0.84rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--purple-950);
  background: var(--white);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  transition: transform var(--transition), background var(--transition);
}

.social-links a:hover {
  background: #e8d6f7;
  transform: translateY(-2px);
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
}

.footer-nav h2,
.footer-contact h2 {
  margin-bottom: 9px;
  color: var(--white);
  font-size: 1rem;
}

.footer-nav a,
.footer-contact a,
.footer-contact span {
  font-size: 0.82rem;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .icon {
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 22px;
  color: rgb(255 255 255 / 55%);
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.76rem;
}

/* Animaciones */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 170px 1fr auto;
    gap: 16px;
  }

  .primary-nav {
    gap: 16px;
  }

  .primary-nav a {
    font-size: 0.78rem;
  }

  .header-actions .button {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  }

  .cards-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle {
    padding-inline: 15px;
  }

  .impact-item {
    padding-inline: 18px;
  }

  .publication-grid {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .launch-card {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 2 / -1;
  }
}

/* Menú móvil */

@media (max-width: 860px) {
  .header-inner {
    min-height: 70px;
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 160px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu-toggle[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 70px 0 auto;
    display: flex;
    max-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 18px 34px rgb(31 17 46 / 12%);
    transition: max-height 300ms ease;
  }

  .primary-nav.is-open {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .primary-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }

  .primary-nav a::after {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    max-width: 720px;
    padding: 68px 0 24px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-image-frame {
    min-height: 390px;
  }

  .hero-image-frame img {
    max-height: 390px;
  }

  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle {
    border-bottom: 1px solid rgb(255 255 255 / 20%);
  }

  .principle:nth-child(2) {
    border-right: 0;
  }

  .principle:nth-child(3),
  .principle:nth-child(4) {
    border-bottom: 0;
  }

  .cards-grid-three {
    grid-template-columns: 1fr;
  }

  .project-card {
    display: grid;
    grid-template-columns: 42% 58%;
  }

  .project-image {
    min-height: 245px;
    aspect-ratio: auto;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-item:nth-child(2) {
    border-right: 0;
  }

  .impact-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgb(255 255 255 / 35%);
  }

  .publication-grid {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .launch-card {
    grid-column: 1 / -1;
  }

  .collaboration-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .collaboration-actions {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-contact {
    grid-column: auto;
  }
}

/* Móvil */

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }

  .hero-copy {
    padding-top: 50px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions,
  .publication-actions,
  .collaboration-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .publication-actions .button,
  .collaboration-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 310px;
  }

  .hero-image-frame {
    min-height: 310px;
  }

  .hero-image-frame img {
    max-height: 310px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 22%);
  }

  .principle:nth-child(3) {
    border-bottom: 1px solid rgb(255 255 255 / 22%);
  }

  .cards-grid-four {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 280px;
  }

  .section-heading-row {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .project-card {
    display: block;
  }

  .project-image {
    min-height: 190px;
    aspect-ratio: 16 / 8.5;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-item {
    min-height: 105px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 35%);
  }

  .impact-item:nth-child(3) {
    border-bottom: 1px solid rgb(255 255 255 / 35%);
  }

  .impact-item:last-child {
    border-bottom: 0;
  }

  .publication-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .publication-cover {
    width: 180px;
    margin-inline: auto;
  }

  .launch-card {
    grid-column: auto;
  }

  .launch-card p {
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Reduce motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   Página Quiénes somos
   ========================================================= */

.about-page { background: #fff; }

.page-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--cream);
}

.page-hero-about {
  background-image: url("assets/images/about-hero.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(255 249 235 / 97%) 0%, rgb(255 249 235 / 92%) 33%, rgb(255 249 235 / 65%) 51%, rgb(255 249 235 / 10%) 76%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 520px;
  align-items: center;
}

.page-hero-content {
  width: min(620px, 58%);
  padding: 80px 0;
}

.page-hero-content h1 {
  margin-bottom: 22px;
  color: var(--purple-800);
  font-size: clamp(2.25rem, 4.2vw, 4rem);
}

.page-hero-content > p {
  max-width: 570px;
  margin-bottom: 0;
  color: #47404b;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--purple-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.breadcrumb svg { width: 15px; height: 15px; }
.breadcrumb a:hover { text-decoration: underline; }

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-kicker-light { color: #dff4df; }
.section-heading-left { margin-bottom: 25px; text-align: left; }
.section-heading-left .heading-line { margin-left: 0; }

.about-summary { background: var(--white); }

.about-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(440px, 0.9fr);
  align-items: center;
  gap: 72px;
}

.about-summary-copy { max-width: 650px; }
.about-summary-copy .lead-copy { color: var(--ink); font-size: 1.16rem; font-weight: 700; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fact-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(145deg, #ffffff, #fbfafc);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.fact-card svg { width: 31px; height: 31px; margin-bottom: 18px; color: var(--green-700); stroke-width: 1.7; }
.fact-card strong { margin-bottom: 6px; color: var(--purple-800); font-size: 1.55rem; line-height: 1.1; }
.fact-card span { color: var(--muted); font-size: 0.84rem; line-height: 1.35; }

.purpose-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfafc, #ffffff);
}

.purpose-section::before {
  position: absolute;
  top: -150px;
  left: -120px;
  width: 390px;
  height: 390px;
  content: "";
  background: radial-gradient(circle, rgb(92 37 141 / 8%), transparent 68%);
  pointer-events: none;
}

.purpose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.purpose-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  min-height: 330px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.purpose-card::after {
  position: absolute;
  right: -65px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  content: "";
  border: 35px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
}

.purpose-card-mission { color: #f6f1fb; background: linear-gradient(135deg, var(--purple-900), var(--purple-700)); border-color: transparent; }
.purpose-card-vision { color: #eff9ef; background: linear-gradient(135deg, var(--green-800), var(--green-600)); border-color: transparent; }
.purpose-card h3 { margin-bottom: 18px; color: var(--white); font-size: 1.55rem; }
.purpose-card p { position: relative; z-index: 1; margin-bottom: 0; }
.purpose-card .section-kicker { color: rgb(255 255 255 / 70%); }

.purpose-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgb(255 255 255 / 13%);
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 18px;
}
.purpose-icon svg { width: 31px; height: 31px; }

.history-section { background: radial-gradient(circle at 95% 16%, rgb(217 166 24 / 10%), transparent 26%), var(--cream); }
.history-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr); align-items: start; gap: 80px; }
.history-intro { position: sticky; top: 120px; }

.history-note {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 18px;
  color: #5d5142;
  background: rgb(255 255 255 / 62%);
  border: 1px solid rgb(217 166 24 / 30%);
  border-radius: var(--radius-sm);
}
.history-note svg { width: 23px; height: 23px; flex: 0 0 auto; margin-top: 3px; color: var(--gold); }
.history-note p { margin: 0; font-size: 0.87rem; }

.timeline { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 30px; bottom: 30px; left: 31px; width: 2px; content: ""; background: linear-gradient(var(--green-700), var(--purple-700)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 23px; padding: 26px 28px 26px 0; background: rgb(255 255 255 / 82%); border: 1px solid rgb(91 68 44 / 10%); border-radius: var(--radius-sm); box-shadow: 0 8px 25px rgb(71 50 21 / 5%); }
.timeline-marker { position: relative; z-index: 1; display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; color: var(--white); background: var(--purple-800); border: 7px solid var(--cream); border-radius: 50%; font-size: 0.72rem; font-weight: 900; }
.timeline-item time { display: block; margin-bottom: 5px; color: var(--green-700); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.timeline-item h3 { margin-bottom: 8px; font-size: 1.12rem; }
.timeline-item p { margin: 0; font-size: 0.9rem; }

.actions-section { background: #fff; }
.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.action-card { min-height: 250px; padding: 30px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.action-card:hover { transform: translateY(-5px); border-color: rgb(47 141 53 / 25%); box-shadow: var(--shadow-md); }
.action-card > svg { width: 42px; height: 42px; margin-bottom: 24px; color: var(--green-700); stroke-width: 1.55; }
.action-card h3 { margin-bottom: 13px; color: var(--purple-800); font-size: 1.1rem; }
.action-card p { margin-bottom: 0; font-size: 0.9rem; }

.alliances-section { background: #f8f8f9; }
.alliances-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.alliance-panel { min-height: 480px; padding: 42px; border-radius: var(--radius-md); }
.alliance-panel-academic { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.alliance-panel-network { color: rgb(255 255 255 / 85%); background: radial-gradient(circle at 95% 5%, rgb(255 255 255 / 15%), transparent 28%), linear-gradient(145deg, var(--purple-900), var(--purple-700)); }
.alliance-panel-network h2 { color: var(--white); }
.alliance-panel-network .section-kicker { color: #d9c3ea; }
.alliance-icon { display: flex; width: 62px; height: 62px; align-items: center; justify-content: center; margin-bottom: 30px; color: var(--green-700); background: var(--green-100); border-radius: 18px; }
.alliance-panel-network .alliance-icon { color: var(--white); background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 20%); }
.alliance-icon svg { width: 32px; height: 32px; }
.check-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.check-list svg { width: 18px; height: 18px; color: #b9e6b9; }

.reach-section { position: relative; overflow: hidden; padding: 80px 0; color: var(--white); background: radial-gradient(circle at 30% -20%, rgb(255 255 255 / 13%), transparent 40%), linear-gradient(100deg, #216b25, #328e37 56%, #246e29); }
.reach-section::after { position: absolute; right: -130px; bottom: -190px; width: 430px; height: 430px; content: ""; border: 65px solid rgb(255 255 255 / 5%); border-radius: 50%; }
.reach-inner { position: relative; z-index: 1; }
.reach-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.reach-heading h2 { color: var(--white); }
.reach-heading p { margin-bottom: 0; color: rgb(255 255 255 / 80%); }
.reach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.reach-card { position: relative; min-height: 260px; padding: 32px; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--radius-sm); backdrop-filter: blur(6px); }
.reach-card > span { position: absolute; top: 21px; right: 23px; color: rgb(255 255 255 / 20%); font-size: 2rem; font-weight: 900; }
.reach-card > svg { width: 42px; height: 42px; margin-bottom: 27px; }
.reach-card h3 { color: var(--white); font-size: 1.2rem; }
.reach-card p { margin: 0; color: rgb(255 255 255 / 76%); font-size: 0.9rem; }

.agenda-section { background: radial-gradient(circle at 10% 50%, rgb(217 166 24 / 11%), transparent 28%), #fffdf9; }
.agenda-card { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 35px; padding: 38px; background: var(--white); border: 1px solid rgb(217 166 24 / 37%); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.agenda-symbol { position: relative; display: flex; width: 130px; height: 130px; align-items: center; justify-content: center; color: var(--green-700); background: var(--green-100); border-radius: 50%; }
.agenda-symbol span { position: relative; z-index: 1; color: var(--purple-800); font-size: 1.55rem; font-weight: 900; }
.agenda-symbol svg { position: absolute; width: 95px; height: 95px; opacity: 0.22; stroke-width: 1; }
.agenda-copy h2 { font-size: 1.85rem; }
.agenda-copy p { margin-bottom: 0; }

.footer-social-text { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 22px; }
.footer-social-text a { font-size: 0.76rem; font-weight: 800; }
.footer-social-text a:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 1080px) {
  .about-summary-grid { grid-template-columns: 1fr; gap: 45px; }
  .about-summary-copy { max-width: 760px; }
  .history-grid { grid-template-columns: 1fr; gap: 45px; }
  .history-intro { position: static; }
  .agenda-card { grid-template-columns: 130px minmax(0, 1fr); }
  .agenda-card > .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 860px) {
  .page-hero, .page-hero-inner { min-height: 500px; }
  .page-hero-overlay { background: linear-gradient(90deg, rgb(255 249 235 / 97%) 0%, rgb(255 249 235 / 89%) 48%, rgb(255 249 235 / 30%) 100%); }
  .page-hero-content { width: min(610px, 76%); }
  .purpose-grid, .alliances-grid { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach-grid { grid-template-columns: 1fr; }
  .reach-card { min-height: auto; }
}

@media (max-width: 620px) {
  .page-hero, .page-hero-inner { min-height: 480px; }
  .page-hero-about { background-position: 68% center; }
  .page-hero-overlay { background: linear-gradient(180deg, rgb(255 249 235 / 96%) 0%, rgb(255 249 235 / 88%) 58%, rgb(255 249 235 / 42%) 100%); }
  .page-hero-content { width: 100%; padding: 60px 0; }
  .page-hero-content h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .page-hero-content > p { font-size: 0.98rem; }
  .about-facts, .action-grid { grid-template-columns: 1fr; }
  .fact-card { min-height: 155px; }
  .purpose-card { grid-template-columns: 1fr; min-height: auto; padding: 30px; }
  .timeline::before { left: 24px; }
  .timeline-item { grid-template-columns: 50px 1fr; gap: 17px; padding-right: 18px; }
  .timeline-marker { width: 50px; height: 50px; border-width: 5px; }
  .alliance-panel { min-height: auto; padding: 30px; }
  .agenda-card { grid-template-columns: 1fr; padding: 28px; }
  .agenda-symbol { width: 110px; height: 110px; }
  .agenda-card > .button { grid-column: auto; width: 100%; }
}
