:root {
  --ink: #1b1b1b;
  --muted: #64615b;
  --paper: #fbf7ee;
  --line: rgba(27, 27, 27, 0.14);
  --red: #ff2b24;
  --yellow: #ffd33d;
  --green: #11b84f;
  --blue: #2457ff;
  --white: #fffaf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 237, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.header-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 54px;
  height: 42px;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.nav {
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a:hover,
.header-action:hover {
  color: var(--red);
}

.header-action {
  min-height: 42px;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 800;
}

.hero {
  min-height: calc(100svh - 75px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(48px, 8vw, 104px) clamp(18px, 4vw, 56px) 42px;
  background:
    linear-gradient(rgba(27, 27, 27, 0.18), rgba(27, 27, 27, 0.2)),
    url("assets/frente-la-planta.jpg") center / cover;
  color: var(--white);
}

.hero-content {
  max-width: 860px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

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

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 250, 240, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 2px solid var(--white);
  font-weight: 800;
}

.button.primary {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.button.ghost {
  color: var(--white);
  background: rgba(27, 27, 27, 0.24);
}

.hero-panel {
  display: block;
  padding: 24px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--green);
}

.hero-panel:hover,
.hero-panel:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--green);
  outline: none;
}

.hero-panel span,
.event-card time,
.event-card span,
.contact-grid span {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 10px 0;
  font-size: 1.55rem;
  line-height: 1.05;
}

.hero-panel p {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.78);
  line-height: 1.5;
}

.section {
  padding: clamp(56px, 9vw, 112px) clamp(18px, 4vw, 56px);
}

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

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.about-copy h2 {
  max-width: none;
  font-size: clamp(2.8rem, 5.4vw, 5.8rem);
  line-height: 0.96;
  text-align: left;
}

.about-copy h2 span,
.about-copy h2 small {
  display: block;
}

.about-copy h2 small {
  margin-top: 8px;
  font: inherit;
  font-size: clamp(2.35rem, 4.1vw, 4.5rem);
  line-height: 1.03;
}

.rich-text p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  text-align: justify;
}

.about-values {
  padding-top: 0;
}

.about-values blockquote {
  margin: 0 0 30px;
  padding: 24px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--green);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.16;
  text-align: justify;
}

.about-context {
  margin: 0 0 clamp(26px, 4vw, 44px);
}

.about-context p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.about-pillars h3 {
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.16;
  text-align: left;
}

.about-details {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  gap: clamp(28px, 4vw, 54px);
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(16px, 2vw, 24px);
  background: var(--paper);
}

.about-team-panel h3 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.team-intro {
  margin-bottom: 14px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  text-align: justify;
}

.team-intro p + p {
  margin-top: 12px;
}

.about-team-panel .people-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-team-panel .people-grid article {
  min-height: 150px;
  padding: 16px;
  background: transparent;
  border-width: 1px;
}

.about-team-panel .people-grid h4 {
  margin-bottom: 6px;
}

.about-team-panel .people-grid p {
  font-size: 0.95rem;
  line-height: 1.45;
}

.about-story {
  max-width: 1050px;
  margin: clamp(48px, 7vw, 84px) auto 0;
  columns: 2;
  column-gap: clamp(28px, 5vw, 64px);
}

.about-story p {
  break-inside: avoid;
}

.about-block {
  margin-top: 34px;
}

.about-block h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.pillar-list,
.network-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.pillar-list li,
.network-list li {
  padding: 18px;
  background: var(--paper);
  border-left: 8px solid var(--green);
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.35;
}

.pillar-list li:nth-child(2n) {
  border-color: var(--red);
}

.pillar-list li:nth-child(3n) {
  border-color: var(--blue);
}

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

.people-grid article {
  padding: 18px;
  background: var(--white);
  border: 2px solid var(--ink);
}

.people-grid h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.people-grid p {
  margin: 0;
  font-size: 0.95rem;
}

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

.network-list li {
  border-color: var(--yellow);
  font-size: 0.95rem;
}

.about-gallery {
  display: block;
}

.about-gallery figure {
  height: 100%;
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.about-gallery figure:first-child {
  box-shadow: 10px 10px 0 var(--green);
}

.about-gallery figure:nth-child(2) {
  box-shadow: 8px 8px 0 var(--red);
}

.about-gallery img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
}

.about-gallery figure:nth-child(2) img {
  height: clamp(180px, 25vw, 320px);
}

.intro {
  background: var(--ink);
  color: var(--white);
}

.intro p {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--ink);
}

.event-card.featured {
  background: var(--ink);
  color: var(--white);
}

.event-card time {
  margin-bottom: 56px;
  color: var(--red);
}

.event-card.featured time {
  color: var(--green);
}

.event-card p {
  color: var(--muted);
  line-height: 1.55;
}

.event-card.featured p {
  color: rgba(255, 250, 240, 0.82);
}

.event-card span {
  margin-top: auto;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 80px);
  background: var(--white);
}

.split > div:first-child p:last-child,
.space-text p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.workshop-list article {
  background: var(--paper);
  border-left: 8px solid var(--blue);
}

.workshop-link {
  width: 100%;
  height: 100%;
  padding: 22px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.workshop-link h3 {
  margin-bottom: 8px;
}

.workshop-list article:nth-child(2) {
  border-color: var(--red);
}

.workshop-list article:nth-child(3) {
  border-color: var(--yellow);
}

.workshop-list article:nth-child(4) {
  border-color: var(--green);
}

.workshop-list p {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.workshop-list small {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.workshop-link span {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 2px solid currentColor;
}

.workshop-link:hover,
.workshop-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -8px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.62);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: clamp(24px, 5vw, 46px);
  color: var(--ink);
  background: #fffaf0;
  border: 2px solid var(--ink);
  box-shadow: 9px 9px 0 var(--green);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.modal-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.modal-schedule {
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 900;
}

.modal-panel > p:not(.eyebrow),
.modal-details {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
}

.modal-details p {
  margin-top: 14px;
}

.modal-action {
  margin-top: 26px;
}

body.modal-open {
  overflow: hidden;
}

.space-intro {
  max-width: 900px;
  margin-bottom: clamp(42px, 7vw, 84px);
}

.space-intro > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.space-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.space-button {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.space-button:nth-child(2) {
  color: var(--ink);
  background: var(--yellow);
}

.space-list {
  display: grid;
  gap: clamp(60px, 9vw, 112px);
}

.space-area {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  scroll-margin-top: 120px;
}

.space-area.reverse .space-area-copy {
  order: 2;
}

.space-area.reverse .space-gallery-wrap {
  order: 1;
}

.space-area-copy span {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
}

.space-area-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.space-area-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.space-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.space-gallery::-webkit-scrollbar {
  display: none;
}

.space-gallery figure {
  flex: 0 0 100%;
  margin: 0;
  border: 2px solid var(--ink);
  scroll-snap-align: start;
  overflow: hidden;
}

.space-gallery-wrap {
  min-width: 0;
  box-shadow: 9px 9px 0 var(--blue);
}

.space-gallery img {
  width: 100%;
  height: clamp(300px, 38vw, 520px);
  display: block;
  object-fit: cover;
}

.space-photo-placeholder {
  min-height: 360px;
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  background: var(--white);
  border: 2px dashed var(--ink);
  font-weight: 800;
}

.carousel-controls {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 58px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
}

.carousel-controls span {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.carousel-controls button {
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 1.6rem;
  cursor: pointer;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  outline: none;
}

.links-section {
  background: var(--white);
}

.support-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--ink);
  color: var(--white);
}

.support-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.12rem;
  line-height: 1.65;
}

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

.support-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--white);
  box-shadow: 8px 8px 0 var(--green);
}

.support-card:nth-child(2) {
  box-shadow: 8px 8px 0 var(--yellow);
}

.support-card span {
  color: var(--red);
  font-weight: 900;
}

.support-card h3 {
  margin: 20px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.support-card p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.55;
}

.support-buttons {
  display: grid;
  gap: 10px;
}

.support-buttons .button {
  width: 100%;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.support-buttons .button:hover,
.support-buttons .button:focus-visible {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.contact-grid a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-weight: 800;
}

.contact-grid a:nth-child(1) {
  box-shadow: 6px 6px 0 var(--green);
}

.contact-grid a:nth-child(2) {
  box-shadow: 6px 6px 0 var(--red);
}

.contact-grid a:nth-child(3) {
  box-shadow: 6px 6px 0 var(--yellow);
}

.contact-grid a:nth-child(4) {
  box-shadow: 6px 6px 0 var(--blue);
}

.contact-grid a:nth-child(5) {
  box-shadow: 6px 6px 0 var(--green);
}

.contact-grid a:nth-child(6) {
  box-shadow: 6px 6px 0 var(--red);
}

.contact-grid span {
  color: var(--red);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 44px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--red);
}

.footer h2 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 4vw, 3.8rem);
}

.footer p {
  margin: 0;
  color: rgba(255, 250, 240, 0.86);
}

address {
  font-style: normal;
  line-height: 1.7;
  font-weight: 700;
}

address a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-action {
    display: none;
  }

  .hero,
  .about-intro,
  .about-details,
  .split,
  .space-area,
  .space,
  .support-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .space-area.reverse .space-area-copy,
  .space-area.reverse .space-gallery-wrap {
    order: initial;
  }

  .hero {
    min-height: 88svh;
    align-items: end;
  }

  .event-grid,
  .pillar-list,
  .people-grid,
  .about-team-panel .people-grid,
  .network-list,
  .workshop-list,
  .support-actions,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-story {
    columns: 1;
  }

  .about-copy h2,
  .rich-text p,
  .about-pillars h3 {
    text-align: left;
  }

  .about-values {
    padding-top: 0;
  }

  .about-gallery img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .about-gallery figure {
    height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    width: 48px;
    height: 38px;
  }

  h1 {
    font-size: clamp(2.6rem, 17vw, 4.4rem);
  }

  .hero {
    padding: 42px 16px 28px;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    box-shadow: 5px 5px 0 var(--ink);
  }
}
