:root {
  --color-blue: #0f4c81;
  --color-cream: #eeebe5;
  --color-light-blue: #b1c9e3;
  --color-white: #ffffff;
  --color-text: #0f4c81;
  --section-max: 1920px;
  --space-page: clamp(1rem, 10.37vw, 12.45rem);
  --site-header-height: clamp(8.5rem, 16.04vw, 307.93px);
  --radius: 0;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

h1, h2, p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.section {
  width: min(100% - (var(--space-page) * 2), var(--section-max));
  margin-inline: auto;
}

.site-header {
  display: grid;
  align-items: center;
  min-height: var(--site-header-height);
  background: var(--color-cream);
  padding-block: clamp(0.75rem, 2vw, 1.5rem);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
}

.brand {
  width: fit-content;
  min-width: 0;
}

.brand__logo {
  width: clamp(11rem, 58vw, 30.69rem);
}

.site-nav-toggle {
  display: inline-grid;
  justify-self: end;
  place-items: center;
  gap: 0.28rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  border: 2px solid var(--color-blue);
  background: transparent;
  color: var(--color-blue);
  cursor: pointer;
}

.site-nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header[data-nav-open="true"] .site-nav-toggle__bar:nth-child(2) {
  transform: translateY(0.38rem) rotate(45deg);
}

.site-header[data-nav-open="true"] .site-nav-toggle__bar:nth-child(3) {
  opacity: 0;
}

.site-header[data-nav-open="true"] .site-nav-toggle__bar:nth-child(4) {
  transform: translateY(-0.38rem) rotate(-45deg);
}

.site-nav {
  display: none;
  grid-column: 1 / -1;
  gap: 1rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem;
  background: var(--color-white);
  border: 2px solid color-mix(in srgb, var(--color-blue), transparent 65%);
}

.site-header[data-nav-open="true"] .site-nav {
  display: grid;
}

.site-nav__links {
  display: grid;
  gap: 0;
  font-size: 1rem;
  font-weight: 600;
}

.site-nav__links li + li {
  border-top: 1px solid color-mix(in srgb, var(--color-blue), transparent 78%);
}

.site-nav__links a {
  display: block;
  padding: 0.9rem 0.75rem;
}

.site-nav__links a[aria-current="page"] {
  background: var(--color-blue);
  color: var(--color-white);
}

.site-nav__links a,
.site-nav__social a {
  outline-offset: 0.35rem;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: var(--color-light-blue);
}

.site-nav__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.1rem 0.75rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* mobile hamburger panel: hide Seguinos + social icons (nav links only) */
@media (max-width: 759px) {
  .site-nav__social { display: none !important; }
}

.site-nav__social span {
  margin-right: auto;
}

.site-nav__social a {
  display: grid;
  place-items: center;
  width: clamp(1.75rem, 2.4vw, 2.875rem);
  height: clamp(1.75rem, 2.4vw, 2.875rem);
}

.site-nav__social img {
  width: clamp(1.65rem, 2.16vw, 2.59rem);
  height: clamp(1.65rem, 2.16vw, 2.59rem);
  object-fit: contain;
}

.hero {
  --hero-stage-height: clamp(30rem, calc(100dvh - var(--site-header-height)), 38rem);
  background: var(--color-cream);
  color: var(--color-cream);
}

.hero__stage {
  position: relative;
  display: grid;
  background: var(--color-blue);
}

.hero__media {
  position: relative;
  min-height: clamp(21rem, 72vw, 36rem);
  background: var(--color-blue);
  overflow: hidden;
}

.hero__flora {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero__photo-wrap {
  position: relative;
  width: min(100% - (var(--space-page) * 2), 22rem);
  margin: -2.5rem auto 0;
  background: var(--color-cream);
  padding: clamp(0.75rem, 2vw, 1.35rem);
}

.hero__rect60,
.hero__rect28 {
  display: none;
}

.hero__building {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero__content {
  padding-block: clamp(5rem, 12vw, 8rem) clamp(3rem, 8vw, 6rem);
}

.hero h1 {
  max-width: 13.5em;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
}

.hero p {
  margin-top: 1.25rem;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 500;
}

.identity {
  display: grid;
  gap: clamp(2rem, 7vw, 5rem);
  padding-block: clamp(4rem, 10vw, 8rem);
}

.identity__title {
  margin-bottom: clamp(2rem, 5vw, 3.75rem);
  color: var(--color-blue);
  font-size: clamp(1.55rem, 2.6vw, 3.125rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.identity__copy {
  color: var(--color-blue);
  font-size: clamp(1rem, 1.25vw, 1.5rem);
}

.identity__copy p + p {
  margin-top: 1rem;
}

.identity__copy strong {
  font-weight: 700;
}

.identity__figure {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 32rem);
  aspect-ratio: 720.98 / 787.1;
}

.identity__back {
  position: absolute;
  width: 86.13%;
  height: 87.3%;
  pointer-events: none;
}

.identity__back--blue {
  left: 13.87%;
  top: 0;
  background: var(--color-light-blue);
}

.identity__back--cream {
  left: 0;
  top: 12.7%;
  background: var(--color-cream);
}

.identity__figure img {
  position: absolute;
  z-index: 1;
  left: 2.08%;
  top: 14.61%;
  width: 81.97%;
  height: auto;
}

/* phone-size: hide hero photos (hero-01-g60.webp + hero-02-g61.webp).
   Mobile layout keeps the dark-blue stage with the quote text only. */
@media (max-width: 759px) {
  .hero__media,
  .hero__photo-wrap {
    display: none;
  }
  .hero__stage { background: var(--color-blue); }
  .hero__content { padding-block: clamp(3rem, 10vw, 5rem); }
}

@media (min-width: 760px) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
  }

  .site-nav-toggle {
    display: none;
  }

  .brand__logo {
    width: clamp(13rem, 25.58vw, 30.69rem);
  }

  .site-nav {
    display: grid;
    grid-column: auto;
    justify-items: end;
    width: auto;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .site-nav::before {
    content: "";
    order: 2;
    width: min(100%, 42rem);
    height: 1px;
    background: color-mix(in srgb, var(--color-blue), transparent 45%);
  }

  .site-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: flex-end;
    font-size: clamp(1rem, 1.51vw, 1.8125rem);
    font-weight: 500;
    order: 1;
  }

  .site-nav__links li + li {
    border-top: 0;
  }

  .site-nav__links a {
    display: inline;
    padding: 0;
  }

  .site-nav__links a[aria-current="page"] {
    position: relative;
    background: transparent;
    color: var(--color-blue);
    font-weight: 700;
  }

  .site-nav__links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 3px;
    background: var(--color-light-blue);
  }

  .site-nav__social {
    padding: 0;
    font-weight: 500;
    order: 3;
  }

  .site-nav__social span {
    margin-right: 0;
  }

  .hero {
    padding-bottom: 0;
  }

  .hero__stage {
    min-height: var(--hero-stage-height);
    grid-template-columns: 33.333% minmax(0, 1fr);
    align-items: stretch;
    overflow: visible;
  }

  .hero__media {
    min-height: 0;
    overflow: visible;
  }

  .hero__rect60,
  .hero__rect28 {
    display: block;
    position: absolute;
    pointer-events: none;
  }

  .hero__rect60 {
    left: 9.87%;
    top: 15.51%;
    width: 33.33%;
    height: 84.49%;
    background: var(--color-cream);
    z-index: 2;
  }

  .hero__rect28 {
    left: 33.31%;
    top: 10.64%;
    width: 11.98%;
    height: 59.12%;
    background: var(--color-light-blue);
    z-index: 1;
  }

  .hero__photo-wrap {
    position: absolute;
    left: 10.65%;
    top: 17.34%;
    width: 31.77%;
    height: 82.66%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    z-index: 3;
  }

  .hero__building {
    height: 100%;
  }

  .hero__content {
    display: grid;
    align-content: center;
    padding-block: clamp(4rem, 10vw, 8rem);
    padding-left: clamp(7rem, 17vw, 16rem);
  }

  .identity {
    grid-template-columns: minmax(0, 45%) minmax(0, 39%);
    justify-content: space-between;
    align-items: start;
  }

  .identity__copy {
    padding-top: clamp(0.5rem, 2vw, 1.5rem);
  }

  .identity__figure {
    justify-self: stretch;
    width: 100%;
  }
}

@media (min-width: 1120px) {
  .brand__logo {
    width: min(25.58vw, 30.69rem);
  }
}

/* SVG: rect17 = 1920 × 338.24 dark-blue band; text starts ~28.7% from top
   Cols: logo ~37% / nav ~15% / contact ~25% / legal ~23%
   Text class st13 = Poppins Regular 23px cream; line-spacing ~49.6px */
.site-footer {
  background: var(--color-blue);
  color: var(--color-cream);
  /* footer band aspect ratio 1920:338.24 → height ≈ 17.6vw */
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.site-footer__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

/* logo + social stacked on the left */
.site-footer__brand-stack {
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.75rem);
  justify-items: start;
}

.site-footer__brand img {
  width: clamp(10rem, 16.4vw, 19.7rem);   /* SVG logo ~314px wide on 1920 */
}

.site-footer__nav {
  display: grid;
  gap: clamp(0.4rem, 0.6vw, 0.75rem);
  font-size: clamp(1rem, 1.2vw, 1.4375rem);  /* st13 = 23px */
  line-height: 1.45;
}

.site-footer__contact,
.site-footer__legal {
  margin: 0;
  font-style: normal;
  font-size: clamp(0.95rem, 1.2vw, 1.4375rem);
  line-height: 1.45;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.9vw, 0.85rem);
}

.site-footer__social a {
  display: grid;
  place-items: center;
  width: clamp(2rem, 1.84vw, 2.25rem);   /* SVG circles r=17.68 → ~36px diameter on 1920 */
  height: clamp(2rem, 1.84vw, 2.25rem);
}

.site-footer__social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 760px) {
  /* SVG ratios: 37 / 15 / 25 / 23 */
  .site-footer__inner {
    grid-template-columns:
      minmax(10rem, 1.6fr)   /* brand + social */
      minmax(0, 0.65fr)      /* nav */
      minmax(0, 1.1fr)       /* contact */
      minmax(0, 1fr);        /* legal */
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }
}

/* merged: assets/css/proposito.css */
/* NUESTRO PROPÓSITO — section styles
   Geometry source: pm/source-files/pageindex.opt2.svg
   Pattern: mobile-first; desktop overrides at 760px+.
   Depends on spec.css tokens (--color-blue, --color-cream, --color-light-blue, --space-page, --section-max).
*/

.proposito {
  display: grid;
  gap: clamp(1.5rem, 5vw, 3rem);
  padding-block: clamp(3rem, 9vw, 6rem);
}

.proposito__figure {
  position: relative;
  margin: 0;
  isolation: isolate;
}

/* rect20 (light blue backdrop, st48) — peeks out bottom-left on mobile */
.proposito__figure::after {
  content: "";
  position: absolute;
  inset: auto -1.25rem -1.25rem -1.25rem;
  width: auto;
  height: 35%;
  background: var(--color-light-blue);
  z-index: -3;
}

.proposito__figure img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  z-index: 1;
}

/* rect22 (cream frame, st12) — wraps photo with ~2.5% cream peek on each side */
.proposito__rect22 {
  display: none;
}

/* rect21 (dark blue block, st24) — mostly hidden by photo+rect22; visible only
   as a left strip + bottom strip peeking out from behind the cream frame */
.proposito__rect21 {
  display: none;
}

/* mobile: photo full-width on top, then title band, then body */
.proposito__band {
  background: var(--color-blue);
  color: var(--color-cream);
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem);
}

.proposito__band h2 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 3.125rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.proposito__copy {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  line-height: 1.45;
}

.proposito__copy p {
  margin: 0;
}

.proposito__copy p + p {
  margin-top: 1.1em;
}

.proposito__copy strong {
  font-weight: 700;
}

/* desktop layout — geometry from pageindex.opt2.svg
   photo (g429): top y=2187.6  →  reference 0% of figure
   rect22 (cream frame): -2.46% / -2.02% / +2.46% / +2.03%   (~15px each side)
   rect20 (light blue, behind):  top 12.24% / right -28.61% / bottom -23.04% / left -33.53%
   rect21 (dark blue block, mostly hidden): top 45.81% / left -6.35% / w 36.99% / h 65.54%
   rect23 (title bar): starts at top=12.5% of figure, overlaps photo right by 28.6% of figure width
*/
@media (min-width: 760px) {
  .proposito {
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    /* row 1 = empty offset above title band (matches title's 12.5% drop from photo top) */
    grid-template-rows: clamp(2.5rem, 5.5vw, 4.5rem) auto 1fr;
    column-gap: clamp(1.5rem, 4vw, 3rem);
    row-gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
    position: relative;
  }

  /* photo spans all 3 rows on the left */
  .proposito__figure {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  /* rect20 — precise SVG-derived percentages, peeks down-left behind photo */
  .proposito__figure::after {
    inset: 12.24% 28.61% -23.04% -33.53%;
    width: auto;
    height: auto;
  }

  /* rect22 — cream frame around photo (15px each side ≈ 2.5%) */
  .proposito__rect22 {
    display: block;
    position: absolute;
    inset: -2.02% -2.46% -2.03% -2.46%;
    background: var(--color-cream);
    z-index: 0;          /* between rect20(-3) and photo(1) */
    pointer-events: none;
  }

  /* rect21 — substantial dark-blue block, mostly hidden behind photo+rect22
     Visible parts: thin left strip (left of cream frame) + bottom strip below photo */
  .proposito__rect21 {
    display: block;
    position: absolute;
    left: -6.35%;
    top: 45.81%;
    width: 36.99%;
    height: 65.54%;
    background: var(--color-blue);
    z-index: -1;         /* above rect20(-3), below rect22(0) and photo(1) */
    pointer-events: none;
  }

  /* title bar (rect23) — drops 12.5% from figure top to align with rect20's top.
     Lives in row 2, slides left to overlap photo's right edge by ~28.6% of figure width */
  .proposito__band {
    grid-column: 2;
    grid-row: 2;
    margin-left: clamp(-5rem, -9vw, -2.5rem);
    padding-block: clamp(2rem, 4vw, 3rem);
    padding-inline: clamp(2rem, 5vw, 4rem);
    position: relative;
    z-index: 2;          /* above photo to simulate notch + extension */
  }

  .proposito__copy {
    grid-column: 2;
    grid-row: 3;
    padding-inline-start: clamp(1.5rem, 3vw, 2.5rem);
    padding-block-start: clamp(1rem, 2vw, 1.75rem);
  }
}

@media (min-width: 1120px) {
  .proposito__band h2 {
    font-size: 3.125rem;       /* st15 = 50px */
  }
  .proposito__copy {
    font-size: 1.5rem;         /* st25 = 24px */
  }
}

/* merged: assets/css/capital-humano.css */
/* NUESTRO CAPITAL HUMANO — section styles
   Geometry source: pm/source-files/pageindex.opt2.svg
     - Section bg: rect18 (st24 #0f4c81), 1920×566.58 starting y=3321.001
     - Title (st15): Poppins Bold 50px, fill #efebe4 (cream)
     - Intro: 24px Poppins Regular, cream
     - 5 role boxes: rect114-118, each 278.86×86.67, stroke #efebe4 2px, fill none
     - Role labels (st19): Poppins SemiBold 23px, cream
   Pattern: mobile-first; desktop overrides at 760px+.
   Depends on spec.css tokens.
*/

.capital {
  background: var(--color-blue);
  color: var(--color-cream);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.capital__inner {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.capital h2 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.125rem);   /* st15 = 50px on 1920w */
  font-weight: 700;
  line-height: 1.1;
}

.capital__intro {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.5rem);         /* st25-ish = 24px */
  line-height: 1.45;
  max-width: 70ch;
}

.capital__roles {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}

.capital__roles li {
  border: 2px solid var(--color-cream);
  padding: clamp(0.85rem, 2vw, 1.25rem);
  text-align: center;
  font-size: clamp(0.95rem, 1.2vw, 1.4375rem); /* st19 = 23px */
  font-weight: 600;
  line-height: 1.15;
  display: grid;
  place-items: center;
  min-height: clamp(3.75rem, 5.4vw, 5.4rem);   /* matches SVG box height ratio */
}

@media (min-width: 560px) {
  .capital__roles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 760px) {
  .capital__roles {
    /* 5 boxes side-by-side, exact SVG layout: gaps ~22.6/278.86 ≈ 8% of box */
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(0.9rem, 1.5vw, 1.4rem);
  }
}

/* merged: assets/css/espacios.css */
/* NUESTROS ESPACIOS — section styles
   Geometry source: pm/source-files/pageindex.opt2.svg
     - Title (st15-style inline): Poppins Bold ~50px, fill #0f4c81
     - Intro (st27): Poppins Regular 24px, dark blue
     - 3 cards (rect197/198/199): each 486.62×978.25 on a 1920 canvas (~31.6% × ~50.9%)
       gaps ≈ 39.48px (~2.6% of section width)
     - Card 1 dark blue (st24) + cream text
     - Card 2 light blue (st48) + dark blue text
     - Card 3 cream (st12) + dark blue text
     - Subtitle (st26): Poppins SemiBold 43.18px, ~2 lines centered
     - Body (st29-ish): Poppins Regular 22px, multi-paragraph
   Pattern: mobile-first; 3-column desktop layout at 880px+.
*/

.espacios {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: #efebe4;
  box-shadow: 0 0 0 100vmax #efebe4;
  clip-path: inset(0 -100vmax);
}

.espacios__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.espacios h2 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.125rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 0.005em;
}

.espacios__intro {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  max-width: 70ch;
  color: var(--color-blue);
}

.espacios__cards {
  display: grid;
  gap: clamp(1.25rem, 2.6vw, 2rem);
  margin-top: clamp(1rem, 2.5vw, 2rem);
}

.espacio-card {
  /* aspect ratio mirrors SVG card 486.62 / 978.25 ≈ 0.497 (portrait) */
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4.2vw, 3.4rem) clamp(1.75rem, 3.5vw, 2.6rem);
  min-height: clamp(28rem, 50vw, 40rem);
}

.espacio-card--blue   { background: var(--color-blue);       color: var(--color-cream); }
.espacio-card--light  { background: var(--color-light-blue); color: var(--color-blue); }
.espacio-card--cream  { background: #efebe4;                 color: var(--color-blue); }

/* Card icon — sits centered above the title.
   SVG: g263/g262/g266 at y≈4310-4360, ~71px below card top (4248.7) = ~7.3% of card height */
.espacio-card__icon {
  display: block;
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  width: auto;
  height: clamp(2.5rem, 4.5vw, 4rem);
  object-fit: contain;
}

.espacio-card__title {
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.7rem);   /* st26 = 43.18px */
  font-weight: 600;
  line-height: 1.05;
}

.espacio-card__body {
  font-size: clamp(0.95rem, 1.15vw, 1.375rem);   /* ~22px on 1920w */
  line-height: 1.4;
}

.espacio-card__body p + p {
  margin-top: 0.75em;
}

@media (min-width: 880px) {
  .espacios__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* merged: assets/css/agendas.css */
/* AGENDAS — section styles
   Geometry source: pm/source-files/pageindex.opt2.svg
     - Title bar rect26 (st24 dark blue): 1090.48×211.35 at (190.8, 5599.9)
       contains "AGENDAS" (st15 Poppins Bold 50px, cream)
     - Intro paragraph (st27): 24px Poppins Regular, dark blue on cream
     - List (st25): 24px Poppins Regular, dark blue. 3 categories: cultural, académica, social
     - Right column: image (galeria-arte) with backdrops:
         rect24 (st24 dark blue) 640×821 offset down-right behind image
         rect25 (st48 light blue) 225.62×485.62 accent inside image area
   Pattern: mobile-first; 2-column layout at 880px+.
*/

.agendas {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.agendas__inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

/* mobile order: title-bar, intro, list, then image */
.agendas__band {
  background: var(--color-blue);
  color: var(--color-cream);
  padding: clamp(1.25rem, 3.5vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
}

.agendas__band h2 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.125rem);   /* st15 = 50px */
  font-weight: 700;
  line-height: 1.1;
}

.agendas__copy {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  color: var(--color-blue);
  font-size: clamp(1rem, 1.5vw, 1.5rem);       /* st27/st25 = 24px */
  line-height: 1.4;
  max-width: 70ch;
}

.agendas__intro {
  margin: 0;
}

.agendas__list {
  display: grid;
  gap: 1em;
}

.agendas__list li {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75em;
}

/* Icon size from SVG: g163 = 53.99 × 86.10 canvas units on 1920w
   → height ≈ 4.48vw, max ~86px. Webp files are 426×426 (square) so width=height.
   Same size for icon-15/g303 and icon-16/g154 for visual consistency. */
.agendas__list-icon {
  width: clamp(3.25rem, 4.48vw, 5.375rem);
  height: auto;
  flex-shrink: 0;
}

.agendas__list strong {
  font-weight: 700;
}

.agendas__figure {
  position: relative;
  margin: 0;
  isolation: isolate;
  aspect-ratio: 742.4 / 921.6;   /* g427 displayed dims */
  overflow: hidden;              /* clip rect24/rect25 so they never enter the footer */
}

.agendas__polygon426 {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.agendas__polygon426 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agendas__figure::before,
.agendas__figure::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* rect25 — light blue block, partially overlapping image (SVG-derived %) */
.agendas__figure::before {
  left: 64.57%;            /* (1529.86 - 1050.5) / 742.4 */
  top: 55.24%;             /* (5846.76 - 5337.7) / 921.6 */
  width: 30.39%;           /* 225.62 / 742.4 */
  height: 52.69%;          /* 485.62 / 921.6 */
  background: var(--color-light-blue);
  z-index: 1;
}

/* rect24 — dark blue block behind g427, offset down (SVG-derived %) */
.agendas__figure::after {
  left: 31.07%;            /* (1281.2 - 1050.5) / 742.4 */
  top: 28.24%;             /* (5598.0 - 5337.7) / 921.6 */
  width: 86.21%;           /* 640 / 742.4 */
  height: 89.13%;          /* 821.38 / 921.6 — was 110.8% (bug) */
  background: var(--color-blue);
  z-index: 0;
}

@media (min-width: 880px) {
  /* SVG ratios on .section content area:
       text col: 0-56% (right edge = image left edge x=1050.5/1540 ≈ 56%)
       image col: 56-100%
       title bar (rect26) extends past col 1 by ~15% into image area (overlap with image's left)
  */
  .agendas__inner {
    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
    grid-template-rows: clamp(2rem, 4vw, 5.75rem) auto 1fr;
    column-gap: 0;
    row-gap: 0;
    align-items: start;
    position: relative;
  }

  .agendas__band {
    grid-column: 1;
    grid-row: 2;
    padding-block: clamp(2rem, 4vw, 3rem);
    padding-inline: clamp(2rem, 5vw, 4rem);
    /* extend right past col 1 by ~27% of col 1 width = ~15% of total → into image area */
    width: calc(100% + 26.79%);
    position: relative;
    z-index: 4;                /* above figure (3) so it sits IN FRONT of image */
  }

  .agendas__copy {
    grid-column: 1;
    grid-row: 3;
    /* stays inside col 1 — no overlap with image */
    padding-inline-start: clamp(1.5rem, 3vw, 2.5rem);
    padding-inline-end:   clamp(1.5rem, 3vw, 2.5rem);
    padding-block-start:  clamp(1rem, 2vw, 1.75rem);
    position: relative;
    z-index: 1;
  }

  .agendas__figure {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 100%;
    margin-left: 0;            /* don't bleed into text column */
    z-index: 3;
  }
}
/* CONTACTO — page-specific styles
   Geometry source: pm/source-files/boceto-page-contacto.svg (canvas 1920×2601)
   Depends on spec.css tokens.
*/

/* signature in footer (ElazarPimentel.com) — small, subdued, on dark blue */
.signature {
  display: inline-block;
  margin-top: 0.5em;
  font-size: clamp(0.75rem, 0.9vw, 1rem);
  opacity: 0.65;
}
.signature a {
  text-decoration: underline;
}
.signature a:hover {
  opacity: 1;
  color: var(--color-light-blue);
}

/* a11y utility — hide labels visually but keep them in the AT tree */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   TOP BANNER — dark blue band with title, subtitle, contact info
   and building photo on the right
   ============================================================ */
.contacto-banner {
  background: var(--color-blue);
  color: var(--color-cream);
  /* SVG band: 1920 × 920.77 → aspect 2.085 */
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.contacto-banner__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.contacto-banner__copy {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.contacto-banner h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.125rem);   /* st15 = 50px */
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
}

.contacto-banner__subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.4375rem);   /* st16 = 23px Bold */
  font-weight: 700;
  line-height: 1.4;
}

.contacto-banner__details {
  margin: 0;
  font-style: normal;
  font-size: clamp(0.95rem, 1.2vw, 1.4375rem);  /* st13 = 23px Regular */
  line-height: 1.55;
}

.contacto-banner__details a { text-decoration: underline; }
.contacto-banner__details a:hover { color: var(--color-light-blue); }

.contacto-banner__figure {
  position: relative;
  margin: 0;
  isolation: isolate;
  aspect-ratio: 958 / 613;        /* SVG clip box */
}

/* light-blue accent (st48 533×594), bleeds top-right behind photo */
.contacto-banner__figure::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 56%;
  height: 97%;
  background: var(--color-light-blue);
  z-index: 0;
  pointer-events: none;
}

/* dark-blue thin frame around the photo (st24 987×643, ≈3% larger each side) */
.contacto-banner__figure::after {
  content: "";
  position: absolute;
  top: -1.5%;
  left: -1.5%;
  width: 103%;
  height: 103%;
  background: var(--color-blue);
  z-index: 1;
  pointer-events: none;
}

.contacto-banner__figure img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 760px) {
  .contacto-banner__inner {
    /* SVG: text col x=214-960 (~50% of canvas), photo col x=960-1730 */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
  }
}

/* ============================================================
   MAPA DE CONTACTO
   ============================================================ */
.contacto-map {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  padding-block: clamp(3rem, 7vw, 5.5rem) 0;
}

.contacto-map__copy {
  display: grid;
  gap: 0.65rem;
}

.contacto-map h2 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.125rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-blue);
}

.contacto-map address {
  margin: 0;
  font-style: normal;
  font-size: clamp(0.95rem, 1.2vw, 1.4375rem);
  line-height: 1.45;
}

.contacto-map__frame {
  position: relative;
  width: 100%;
  min-height: clamp(18rem, 36vw, 34rem);
  background: var(--color-light-blue);
  overflow: hidden;
}

.contacto-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

/* ============================================================
   FORMULARIO DE CONTACTO — light-blue form box on cream page
   ============================================================ */
.contacto-form {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.contacto-form__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.contacto-form h2 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.125rem);    /* st28 = 50px */
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-blue);
}

.contacto-form__box {
  background: var(--color-light-blue);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
}

.contacto-form__row {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
}

.contacto-form__row--split {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .contacto-form__row--split {
    grid-template-columns: 1fr 1fr;
  }
}

.contacto-form__field {
  display: block;
  position: relative;
}

.contacto-form__field input,
.contacto-form__field textarea {
  display: block;
  width: 100%;
  background: #fff;
  border: 0;
  padding: clamp(1rem, 1.6vw, 1.4rem) clamp(1.25rem, 2vw, 1.85rem);
  font: inherit;
  font-size: clamp(0.95rem, 1.2vw, 1.4375rem);  /* st36 ≈ 23px */
  color: var(--color-blue);
  outline-offset: -2px;
  outline: 2px solid transparent;
}

.contacto-form__field input::placeholder,
.contacto-form__field textarea::placeholder {
  color: var(--color-blue);
  opacity: 1;
}

.contacto-form__field input:focus,
.contacto-form__field textarea:focus {
  outline-color: var(--color-blue);
}

.contacto-form__field--textarea textarea {
  min-height: clamp(10rem, 18vw, 14.5rem);    /* SVG textarea h=330 ≈ 17% of 1920 */
  resize: vertical;
}

.contacto-form__field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contacto-form__turnstile {
  min-height: 65px;
}

.contacto-form__status {
  min-height: 1.5em;
  margin: 0;
  color: var(--color-blue);
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-weight: 600;
}

.contacto-form__status[data-type="error"] {
  color: #8b1e1e;
}

.contacto-form__status[data-type="success"] {
  color: #0f4c35;
}

.contacto-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(0.5rem, 1vw, 0.75rem);
}

.contacto-form__submit {
  background: var(--color-blue);
  color: #fff;
  border: 0;
  padding: clamp(0.85rem, 1.6vw, 1.25rem) clamp(2rem, 4vw, 3.5rem);
  font: inherit;
  font-size: clamp(1rem, 1.2vw, 1.4375rem);   /* st38 ≈ 23px */
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.contacto-form__submit:hover,
.contacto-form__submit:focus-visible {
  background: color-mix(in srgb, var(--color-blue), var(--color-light-blue) 35%);
  outline: none;
}

.contacto-form__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* ============================================================
   NOVEDADES PAGE — editorial calendar treatment
   ============================================================ */
.novedades-page {
  padding-block-end: clamp(3rem, 8vw, 6rem);
}

/* HERO: dark-blue masthead with eyebrow → giant title → lede.
   Decorative light-blue block peeks from the right edge like a dateline stamp. */
.novedades-hero {
  position: relative;
  background: var(--color-blue);
  color: var(--color-cream);
  padding-block: clamp(3rem, 8vw, 6.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}

/* faded large "N" bleeding top-right (editorial drop-cap feel) */
.novedades-hero::before {
  content: "N";
  position: absolute;
  top: -6vw;
  right: -2vw;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(12rem, 28vw, 32rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--color-cream), transparent 92%);
  pointer-events: none;
  user-select: none;
}

.novedades-hero__eyebrow {
  margin: 0 0 clamp(0.85rem, 2vw, 1.5rem);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: color-mix(in srgb, var(--color-cream), transparent 88%);
  color: var(--color-cream);
  font-size: clamp(0.75rem, 0.95vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.novedades-hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.novedades-hero__lede {
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.55vw, 1.5rem);
  line-height: 1.4;
  font-weight: 400;
  color: color-mix(in srgb, var(--color-cream), transparent 10%);
}

/* thin accent rule beneath the lede */
.novedades-hero::after {
  content: "";
  display: block;
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
  width: clamp(3rem, 8vw, 6rem);
  height: 3px;
  background: var(--color-light-blue);
  position: relative;
  z-index: 1;
}

/* SECTION: title with rule + small lede; "PRÓXIMOS"/"PASADOS" feels like an issue spread */
.novedades-section {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.novedades-section__heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(0.85rem, 2vw, 1.25rem);
  border-bottom: 2px solid var(--color-blue);
}

.novedades-section h2 {
  margin: 0;
  color: var(--color-blue);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.novedades-section--past h2 {
  color: color-mix(in srgb, var(--color-blue), transparent 25%);
}

.novedades-section__heading p {
  margin: 0;
  color: color-mix(in srgb, var(--color-blue), transparent 30%);
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
}

/* GRID: 1-up mobile, 2-up md, generous gap */
.event-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

/* CARD: editorial split — flyer (1fr) | body (1.1fr). On mobile stacks. */
.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-white);
  color: var(--color-blue);
  /* subtle 4px accent stripe along the top */
  border-top: 4px solid var(--color-blue);
}

.novedades-section--past .event-card {
  border-top-color: color-mix(in srgb, var(--color-blue), var(--color-light-blue) 50%);
}

.event-card__flyer {
  display: block;
  background: var(--color-light-blue);
  overflow: hidden;
}

.event-card__flyer img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;   /* portrait flyers get cropped from bottom, preserving the title area */
  transition: transform 380ms cubic-bezier(.2,.7,.2,1);
}

.event-card:hover .event-card__flyer img,
.event-card:focus-within .event-card__flyer img {
  transform: scale(1.03);
}

.event-card__body {
  display: grid;
  align-content: start;
  gap: clamp(0.85rem, 1.4vw, 1.1rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* TYPE pill — small uppercase chip, dark blue on light blue */
.event-card__type {
  justify-self: start;
  margin: 0;
  padding: 0.3rem 0.75rem;
  background: var(--color-light-blue);
  color: var(--color-blue);
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
}

.event-card p {
  margin: 0;
  color: color-mix(in srgb, var(--color-blue), transparent 15%);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.5;
}

.event-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin: 0.25rem 0 0;
  padding-block-start: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--color-blue), transparent 80%);
}

.event-card__meta div {
  display: grid;
  gap: 0.15rem;
}

.event-card__meta dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-blue), transparent 35%);
}

.event-card__meta dd {
  margin: 0;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.3;
}

.event-card__link {
  justify-self: start;
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 1vw, 1rem);
  transition: background 200ms ease;
}

.event-card__link:hover,
.event-card__link:focus-visible {
  background: color-mix(in srgb, var(--color-blue), var(--color-light-blue) 35%);
  outline: none;
}

@media (min-width: 760px) {
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    /* portrait flyer left, body right */
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  }
}

/* ============================================================
   404 NOT FOUND
   ============================================================ */
.not-found {
  background: var(--color-blue);
  color: var(--color-cream);
  /* fill remaining viewport: 100dvh - header - footer-approx */
  min-height: calc(100dvh - var(--site-header-height) - 18rem);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* huge faded "OM" monogram bleeding off the right edge — adds depth */
.not-found::before {
  content: "OM";
  position: absolute;
  right: -3vw;
  bottom: -8vw;
  font-family: "Poppins", serif;
  font-weight: 700;
  font-size: clamp(20rem, 50vw, 56rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--color-cream), transparent 92%);
  pointer-events: none;
  user-select: none;
}

.not-found__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-block: clamp(3rem, 8vw, 5rem);
  max-width: 52rem;
}

.not-found__eyebrow {
  margin: 0;
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-cream), transparent 40%);
}

.not-found__numerals {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(5.5rem, 18vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--color-light-blue);
}

.not-found__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
}

.not-found__lede {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-cream), transparent 15%);
}

.not-found__cite {
  margin: clamp(0.75rem, 2vw, 1.25rem) 0;
  padding-inline-start: clamp(1rem, 2vw, 1.5rem);
  border-inline-start: 3px solid var(--color-light-blue);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-cream), transparent 25%);
}

.not-found__cite em {
  font-style: italic;
  color: var(--color-cream);
}

.not-found__cite span {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85em;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--color-cream), transparent 45%);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

.not-found__cta {
  display: inline-block;
  padding: clamp(0.85rem, 1.4vw, 1.1rem) clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  border: 2px solid var(--color-cream);
  color: var(--color-cream);
  transition: background 180ms ease, color 180ms ease;
}

.not-found__cta--primary {
  background: var(--color-cream);
  color: var(--color-blue);
}

.not-found__cta:hover,
.not-found__cta:focus-visible {
  background: var(--color-light-blue);
  color: var(--color-blue);
  border-color: var(--color-light-blue);
  outline: none;
}
