/* ==========================================================================
   Academia Gonzalez Prada — public site
   Mobile first. Brand: green #177037 + red #C80C1D.
   Type: Lato (headings, display) + Public Sans (body).
   ========================================================================== */

:root {
  /* brand: green #177037 (primary) + red #C80C1D (accent) */
  --green: #177037;
  --green-800: #115a2b;
  --green-900: #0b3d1d;
  --green-100: #d3ecdb;
  --green-050: #eef7f1;
  --red: #c80c1d;
  --red-300: #ffb3b9; /* light accent for text/icons on dark green (AA on --green-900) */
  --red-100: #fde4e6;
  --red-text: #a50a18; /* red text on white */
  --ink: #13201a;
  --muted: #4a5a50;
  --line: #d8e4dc;
  --mist: #f4f8f5;
  --white: #fff;

  --font-display: 'Lato', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgb(8 40 20 / 6%), 0 8px 24px rgb(8 40 20 / 8%);
  --shadow-lg: 0 2px 4px rgb(8 40 20 / 8%), 0 18px 40px rgb(8 40 20 / 16%);
  --wrap: 1180px;
  --wrap-nav: 1360px; /* header + menus: 9 sections and Matrícula fit in one line on wide screens */
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-800); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--green-900); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
[x-cloak] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--green); color: var(--white); border-radius: var(--radius); transition: top .2s;
}
.skip:focus { top: 12px; color: var(--white); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 900; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  background: var(--green); color: var(--white);
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-300); color: var(--green-900); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--white); }
.btn--ghost:hover { background: rgb(255 255 255 / 12%); }
.btn--outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--small { min-height: 40px; padding: .45em 1em; font-size: .92rem; }
.link-more {
  display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-display); font-weight: 900;
  color: var(--green); text-decoration: none;
}
.link-more i { transition: transform .2s var(--ease); }
.link-more:hover i { transform: translateX(4px); }

/* ------------------------------------------------------------------ announcement bar (text carousel) */
.bar {
  display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 var(--gutter);
  background: var(--red); color: var(--white); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.bar:hover { color: var(--green-900); text-decoration: none; background: var(--red-300); }
.bar__label {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem;
}
.bar__label span { display: none; }
.bar__viewport { position: relative; flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
.bar__track { display: inline-flex; }
.bar__track.is-moving { animation: marquee var(--marquee-duration, 30s) linear infinite; }
.bar:hover .bar__track.is-moving { animation-play-state: paused; }
.bar__group { display: inline-flex; flex: none; }
.bar__item { padding-right: 2.5em; }
.bar__item + .bar__item::before { content: '•'; margin-right: 2.5em; color: var(--green); opacity: .5; }
.bar__go { flex: none; font-size: .75rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ header: wordmark + call actions */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--wrap-nav); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding-block: 8px; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--green); }
.wordmark:hover { text-decoration: none; color: var(--green-800); }
.wordmark__pre { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red-text); }
.wordmark__name { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; letter-spacing: -.01em; }
.actions { display: flex; gap: 8px; }
.action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--green); color: var(--green); background: var(--white);
  text-decoration: none; font-size: .95rem; white-space: nowrap; transition: background .2s, color .2s;
}
.action:hover { background: var(--green); color: var(--white); text-decoration: none; }
.action--wa { background: var(--green); color: var(--white); }
.action--wa:hover { background: var(--green-900); color: var(--white); }
.action--wa i { color: var(--red-300); font-size: 1.1rem; }
.action strong { font-weight: 700; letter-spacing: .02em; }
.action__text { display: none; }         /* phones: icon buttons */
.action__label { display: none; font-weight: 400; }

/* ------------------------------------------------------------------ navigation: main bar + section submenu */
html { scroll-padding-top: 130px; overflow-anchor: none; } /* anchors clear the sticky bars; stickyNav compensates height changes itself */
.navbars {
  position: sticky; top: 0; z-index: 60;
  transition: transform .3s ease; will-change: transform;
}
/* hidden: only the main bar slides out, so the submenu stays at the top */
.navbars.is-hidden { transform: translateY(calc(-1 * var(--gnav-h, 56px))); }
.navbars.is-hidden:not(.has-sub) { box-shadow: none; }

/* horizontal scroller with edge fades, shared by both lines */
.hscroll { --fade: var(--green); position: relative; flex: 1 1 auto; min-width: 0; }
.hscroll--dark { --fade: var(--green-900); }
.hscroll::before, .hscroll::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 32px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .2s;
}
.hscroll::before { left: 0; background: linear-gradient(90deg, var(--fade), transparent); }
.hscroll::after { right: 0; background: linear-gradient(270deg, var(--fade), transparent); }
.hscroll.can-left::before, .hscroll.can-right::after { opacity: 1; }
.gnav__list, .gsub__list { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.gnav__list::-webkit-scrollbar, .gsub__list::-webkit-scrollbar { display: none; }
.gnav__list li, .gsub__list li { flex: none; }

.gnav { background: var(--green); box-shadow: 0 6px 18px rgb(8 40 20 / 14%); }
.gnav__bar { display: flex; align-items: center; gap: 8px; max-width: var(--wrap-nav); margin: 0 auto; padding-right: 10px; }
.gnav__link {
  display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 14px;
  color: var(--white); text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: inset 0 -3px 0 transparent; transition: background .2s, box-shadow .2s; /* no height transition: stickyNav measures it */
}
.gnav__link i { color: var(--red-300); font-size: .95em; }
.gnav__link:hover { color: var(--white); background: rgb(255 255 255 / 8%); text-decoration: none; }
.gnav__link.is-active { background: rgb(255 255 255 / 10%); box-shadow: inset 0 -3px 0 var(--red); }
.gnav__cta {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 6px;
  background: var(--red); color: var(--white); text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 900; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase;
}
.gnav__cta:hover { background: var(--red-300); color: var(--green-900); text-decoration: none; }
.navbars.is-compact .gnav__link { height: 44px; }

/* submenu: intentionally larger than the main items */
.gsub { background: var(--green-900); box-shadow: 0 6px 18px rgb(8 40 20 / 18%); }
.gsub .hscroll { max-width: var(--wrap-nav); margin: 0 auto; }
.gsub__link {
  display: flex; align-items: center; height: 52px; padding: 0 18px;
  color: rgb(255 255 255 / 86%); text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  box-shadow: inset 0 -3px 0 transparent; transition: background .2s, color .2s;
}
.gsub__link:hover { color: var(--white); background: rgb(255 255 255 / 6%); text-decoration: none; }
.gsub__link.is-active { color: var(--white); background: rgb(255 255 255 / 10%); box-shadow: inset 0 -3px 0 var(--red); }

/* ------------------------------------------------------------------ hero (shared) */
.hero { position: relative; overflow: hidden; background: var(--green-900); }

/* hero 1: animated academy name */
.hero-1 {
  color: var(--white); text-align: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgb(200 12 29 / 30%), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgb(60 170 100 / 35%), transparent 50%),
    linear-gradient(160deg, var(--green) 0%, var(--green-900) 100%);
}
.hero-1::before { /* subtle texture: fine dot grid */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: radial-gradient(rgb(255 255 255 / 70%) 1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero-1__inner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52svh; padding-block: 44px 40px; }
.hero-1__kicker {
  display: inline-flex; gap: 8px; align-items: center; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: rgb(255 255 255 / 10%); color: var(--red-300); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
}
.hero-1__title {
  margin: 0; color: var(--white); font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 12vw, 6.2rem); line-height: 1.04; letter-spacing: -.02em;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .26em; perspective: 600px;
}
.hero-1__letter { display: inline-block; will-change: transform, opacity; }
.hero-1__letter:nth-child(n) { text-shadow: 0 6px 30px rgb(0 0 0 / 25%); }
.hero-1__word { display: inline-flex; white-space: nowrap; }
.hero-1__tagline { margin: 18px 0 0; max-width: 40ch; text-wrap: balance; font-size: clamp(1.05rem, 3.6vw, 1.45rem); color: var(--red-300); font-weight: 600; }
.hero-1__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* hero 2: carousel 16:9 (1 per view on phones, 3 on desktop) */
.hero-2 { background: var(--green-900); padding-block: 0 14px; }
.carousel { overflow: hidden; }
.carousel__track { display: flex; transition: transform .8s var(--ease); will-change: transform; }
.carousel__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 16 / 9; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; padding-top: 12px; }
.carousel__dot { width: 28px; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; position: relative; }
.carousel__dot::before {
  content: ''; position: absolute; inset: 11px 4px; border-radius: 999px; background: rgb(255 255 255 / 35%); transition: background .3s;
}
.carousel__dot.is-active::before { background: var(--red); }

/* hero 3: extra wide image, linear pan between the viewport edges */
.hero-3 { background: var(--green-900); }
.pan { position: relative; height: 240px; overflow: hidden; }
.pan__img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; will-change: transform; }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(48px, 9vw, 96px); }
.section--mist { background: var(--mist); }
.section--green { background: var(--green-900); color: var(--white); }
.section--green .section__title, .section--green .section__title a { color: var(--white); }
.section--green .section__lead { color: rgb(255 255 255 / 78%); }
.section--green .link-more { color: var(--red-300); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section__head .section__lead { margin-bottom: 0; }
.section__title { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 900; margin-bottom: .45em; }
.section__title a { color: inherit; text-decoration: none; }
.section__title a:hover { text-decoration: underline; }
.section__lead { max-width: 60ch; color: var(--muted); font-size: 1.08rem; }
.kicker {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 900; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red-text);
}
.kicker--red { color: var(--red-300); }

/* welcome */
.welcome__grid { display: grid; gap: 18px 56px; }
.welcome__title { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; color: var(--green); }
.welcome__text { font-size: 1.12rem; color: var(--ink); max-width: 62ch; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.fact {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 16px; border-radius: var(--radius);
  background: var(--green-050); border: 1px solid var(--green-100);
}
.fact i { font-size: 1.35rem; color: var(--red-text); margin-bottom: 8px; }
.fact strong { font-family: var(--font-display); font-weight: 900; color: var(--green); font-size: 1.08rem; line-height: 1.2; }
.fact span { font-size: .9rem; color: var(--muted); line-height: 1.4; }

/* shortcuts */
.shortcuts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shortcut {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--green-900);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.shortcut:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); color: var(--green-900); text-decoration: none; }
.shortcut__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.shortcut__icon {
  display: grid; place-items: center; aspect-ratio: 1; font-size: clamp(2.2rem, 9vw, 3.2rem); color: var(--white);
  background: radial-gradient(circle at 30% 20%, var(--green) 0%, var(--green-900) 100%);
}
.shortcut__label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; margin-top: auto;
  font-family: var(--font-display); font-weight: 900; font-size: 1rem; line-height: 1.2;
}
.shortcut__label i { color: var(--red-text); font-size: .85em; transition: transform .2s var(--ease); }
.shortcut:hover .shortcut__label i { transform: translateX(4px); }

/* videos (lazy youtube) */
.videos { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.video {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg);
  overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; text-align: left;
}
.video__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; opacity: .9; }
.video:hover .video__thumb { transform: scale(1.05); opacity: 1; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: var(--white); font-size: 1.3rem; box-shadow: 0 8px 26px rgb(0 0 0 / 35%);
  transition: transform .25s var(--ease);
}
.video__play i { margin-left: 4px; }
.video:hover .video__play { transform: scale(1.1); }
.video__title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: var(--white); font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 75%));
}
.video-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.video-modal__backdrop, .popup__backdrop { position: absolute; inset: 0; background: rgb(4 22 11 / 82%); backdrop-filter: blur(3px); }
.video-modal__box { position: relative; width: min(100%, 1000px); aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.video-modal__box iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.video-modal__close, .popup__close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--green-900); font-size: 1.2rem; box-shadow: var(--shadow);
}

/* extras */
.extras { display: grid; gap: 18px; }
.extra { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.extra img { width: 100%; transition: transform .6s var(--ease); }
a.extra:hover img { transform: scale(1.02); }

/* closing call to action */
.cta-band { background: linear-gradient(120deg, var(--green) 0%, var(--green-900) 100%); color: var(--white); position: relative; overflow: hidden; }
.cta-band::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 40px solid rgb(200 12 29 / 22%); pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 22px; padding-block: clamp(40px, 7vw, 64px); }
.cta-band__kicker { margin: 0 0 6px; color: var(--red-300); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.cta-band__title { margin: 0; color: var(--white); font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 900; max-width: 22ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ inner pages */
.page-head { background: linear-gradient(180deg, var(--green-050), var(--white)); padding-block: clamp(32px, 6vw, 64px) clamp(18px, 3vw, 28px); }
.page-head__section {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--red-text);
  font-family: var(--font-display); font-weight: 900; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.page-head__title { font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 900; color: var(--green); margin-bottom: .25em; max-width: 20ch; }
.page-head__lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 60ch; margin: 0; }
.page-banner { margin-bottom: 8px; }
.page-banner img { width: 100%; aspect-ratio: 32 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.page-body { padding-block: clamp(24px, 5vw, 48px) clamp(56px, 9vw, 96px); }
.page-body > .wrap + .wrap { margin-top: clamp(40px, 7vw, 72px); }

.prose { font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--green); margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.lead-paragraph { font-size: clamp(1.15rem, 3vw, 1.35rem); line-height: 1.55; color: var(--green-900); }
.signature { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--red-text); }
.split { display: grid; gap: 28px 56px; align-items: center; }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.figure--contain img { box-shadow: none; max-width: 520px; margin-inline: auto; }
.figure--portrait img { max-width: 520px; }
.figure figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

.timeline { list-style: none; display: grid; gap: 14px; counter-reset: t; }
.timeline li { padding: 20px; border-radius: var(--radius); background: var(--green-900); color: rgb(255 255 255 / 88%); }
.timeline p { margin: 0; }
.timeline__year { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; color: var(--red-300); line-height: 1.1; margin-bottom: 6px; }

.checks { list-style: none; display: grid; gap: 14px; margin-top: 18px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--mist); border-left: 4px solid var(--red); }
.checks i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--red-300); }
.checks p { margin: 0; }

.pair { display: grid; gap: 16px; }
.card { padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card__kicker { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--red-text); }
.card--green { background: var(--green); color: rgb(255 255 255 / 92%); border: 0; }
.card--green .card__kicker { color: var(--red-300); }
.card--red { background: var(--red-100); border-color: #f6c2c7; }
.card__big { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.25; color: var(--green-900); }

.principles { list-style: none; display: grid; gap: 14px; margin-top: 10px; }
.principles > li { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.principles h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; color: var(--green); }
.principles h3 span { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--white); font-size: 1rem; }
.principles p:last-child { margin-bottom: 0; }
.values, .ticks { list-style: none; display: grid; gap: 10px; }
.values li { padding: 12px 14px; border-radius: var(--radius); background: var(--mist); }
.values strong { color: var(--green); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: '\f00c'; font-family: 'Font Awesome 7 Free', 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--red-text); }
.quote { margin: 32px 0 0; padding: 26px 26px 26px 30px; border-left: 5px solid var(--red); background: var(--green-050); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.quote p { font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.35rem); font-style: italic; color: var(--green-900); }
.quote cite { font-style: normal; font-size: .92rem; color: var(--muted); }
.quote--center { max-width: 820px; margin-inline: auto; }

/* block (not flex) so mixed text + links flow as one paragraph; the icon hangs in the padding */
.note { position: relative; margin: 18px 0 0; padding: 12px 16px 12px 42px; border-radius: var(--radius); background: var(--red-100); color: var(--ink); font-size: .95rem; }
.note > i:first-child { position: absolute; left: 16px; top: 16px; color: var(--red-text); }
.empty { position: relative; margin: 0; padding: 22px 22px 22px 62px; border-radius: var(--radius-lg); background: var(--mist); border: 1px dashed var(--line); color: var(--muted); }
.empty > i:first-child { position: absolute; left: 22px; top: 22px; font-size: 1.4rem; color: var(--green); }

/* cycles */
.cycles { list-style: none; display: grid; gap: 16px; }
.cycle {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 5px solid var(--green);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.cycle:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cycle__head { display: flex; gap: 14px; align-items: center; }
.cycle__icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--green); color: var(--red-300); font-size: 1.35rem; }
.cycle__name { font-size: 1.35rem; margin: 0; color: var(--green); }
.cycle__exam { margin: 2px 0 0; color: var(--red-text); font-weight: 700; font-size: .92rem; }
.cycle__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cycle__facts div { padding: 10px 12px; border-radius: var(--radius); background: var(--mist); }
.cycle__facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.cycle__facts dt i { color: var(--red-text); }
.cycle__facts dd { margin: 2px 0 0; font-weight: 700; color: var(--green-900); line-height: 1.35; }
.cycle__note { margin: 0; color: var(--muted); font-size: .95rem; }
.cycle__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 14px; }

.tiles { list-style: none; display: grid; gap: 14px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px; border-radius: var(--radius-lg); text-decoration: none;
  background: var(--green-050); color: var(--ink); border: 1px solid var(--green-100); transition: background .2s, transform .25s var(--ease);
}
.tile:hover { background: var(--green); color: var(--white); transform: translateY(-3px); text-decoration: none; }
.tile i { font-size: 1.5rem; color: var(--red-text); margin-bottom: 6px; }
.tile:hover i { color: var(--red-300); }
.tile strong { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--green); }
.tile:hover strong { color: var(--white); }
.tile span { font-size: .95rem; color: inherit; opacity: .85; }

/* methodology pillars */
.pillars { list-style: none; display: grid; gap: 14px; }
.pillar { position: relative; padding: 24px 22px 22px; border-radius: var(--radius-lg); background: var(--green-900); color: rgb(255 255 255 / 86%); overflow: hidden; }
.pillar h3 { color: var(--white); font-size: 1.25rem; position: relative; }
.pillar p { margin: 0; position: relative; }
.pillar__letter {
  position: absolute; right: 10px; top: -18px; font-family: var(--font-display); font-weight: 900; font-size: 7rem; line-height: 1;
  color: var(--red); opacity: .25;
}

.features { list-style: none; display: grid; gap: 14px; }
.features li { padding: 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); scroll-margin-top: 90px; }
.features li:target { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-100); }
.features i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--red-100); color: var(--red-text); font-size: 1.2rem; margin-bottom: 12px; }
.features h3 { font-size: 1.15rem; color: var(--green); margin-bottom: .35em; }
.features p { margin: 0; color: var(--muted); }
.features--compact { margin-top: 18px; }

/* areas */
.areas { list-style: none; display: grid; gap: 16px; }
.area { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.area__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--red-300); font-size: 1.4rem; margin-bottom: 14px; }
.area h2 { font-size: 1.4rem; color: var(--green); margin-bottom: .3em; }
.area__careers { color: var(--muted); font-size: .95rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--green-050); color: var(--green); font-weight: 600; font-size: .88rem; }

/* distinctive features + tutoring */
.distinct { list-style: none; display: grid; gap: 14px; }
.distinct li { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: var(--mist); }
.distinct i { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: var(--red-300); font-size: 1.2rem; }
.distinct p { margin: 0; }
.distinct strong { color: var(--green); }

/* admission steps + accounts */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 22px 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step__num { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--white); font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; margin-bottom: 12px; }
.step h2 { font-size: 1.35rem; color: var(--green); }
.step p { color: var(--muted); }
.step .btn { margin-top: auto; }
.accounts { list-style: none; display: grid; gap: 14px; }
.account { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--green-900); color: rgb(255 255 255 / 85%); }
.account p { margin: 0; }
.account__title { color: var(--red-300); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px !important; }
.account__bank { font-weight: 600; }
.account__number { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.25rem, 4vw, 1.5rem); color: var(--white); letter-spacing: .02em; user-select: all; }
.account__cci, .account__holder { font-size: .9rem; }

/* fees table (stacked cards on phones) */
.table-wrap { border-radius: var(--radius-lg); }
.fees { width: 100%; border-collapse: collapse; }
.fees thead { display: none; }
.fees tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 18px; margin-bottom: 12px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.fees th[scope=row] { grid-column: 1 / -1; text-align: left; }
.fees td { display: flex; flex-direction: column; font-weight: 700; color: var(--green-900); }
.fees td::before { content: attr(data-label); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fees__name { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--green); }
.fees__exam { display: block; font-size: .88rem; color: var(--red-text); font-weight: 700; }
.fees__price { color: var(--green) !important; font-size: 1.1rem; }

.benefits { list-style: none; display: grid; gap: 12px; }
.benefits li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); font-weight: 600; }
.benefits i { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--red-100); color: var(--red-text); font-size: 1.1rem; }

/* ingresantes */
.exam { padding: 22px; border-radius: var(--radius-lg); background: var(--mist); margin-bottom: 18px; }
.exam__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.exam__title { font-size: 1.35rem; color: var(--green); margin: 0; }
.exam__title i { color: var(--red-text); }
.exam__date { margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.exam__summary { margin: 10px 0 16px; max-width: 72ch; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 9 / 5; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }

/* announcements */
.notices { list-style: none; display: grid; gap: 16px; }
.notice { padding: 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 5px solid var(--red); }
.notice__date { margin-bottom: 6px; color: var(--red-text); font-weight: 700; font-size: .88rem; }
.notice__title { font-size: 1.3rem; color: var(--green); }
.notice__subtitle { font-weight: 700; color: var(--green-900); }
.notice__signer { font-size: .88rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.notice__image { display: block; margin: 6px 0 4px; }
.notice__image img { border-radius: var(--radius); max-height: 640px; width: auto; }

/* downloads */
.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.anchors a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--green-050); text-decoration: none; font-weight: 700; }
.downloads { scroll-margin-top: 80px; margin-bottom: 30px; }
.downloads__title { font-size: 1.4rem; color: var(--green); padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.downloads__list { list-style: none; display: grid; gap: 10px; }
.download { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--green-900); font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.download:hover { border-color: var(--green); box-shadow: var(--shadow); text-decoration: none; }
.download > i:first-child { color: #c0392b; font-size: 1.4rem; }
.download span { flex: 1; }
.download__go { color: var(--green); }

/* legal */
.facts-list { display: grid; gap: 12px; margin: 0; }
.facts-list div { padding: 18px 20px; border-radius: var(--radius); background: var(--mist); }
.facts-list dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.facts-list dt i { color: var(--red-text); }
.facts-list dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; color: var(--green); }
.legal__isotipo { width: 110px; margin-top: 8px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--green-900); color: rgb(255 255 255 / 80%); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 30px; padding-block: 52px 40px; }
.site-footer__brand { display: flex; gap: 16px; align-items: center; }
.site-footer__brand img { width: 60px; border-radius: 10px; border: 1px solid rgb(200 12 29 / 60%); box-shadow: 0 0 0 4px rgb(255 255 255 / 6%); }
.site-footer__name { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--white); }
.site-footer__tag { margin: 0; color: var(--red-300); }
.site-footer__title { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red-300); margin-bottom: 14px; }
.site-footer__line, .site-footer__link { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; color: rgb(255 255 255 / 85%); text-decoration: none; }
.site-footer__line i, .site-footer__link i { width: 18px; margin-top: 4px; color: var(--red-300); flex: none; }
.site-footer__link:hover { color: var(--white); text-decoration: underline; }
.site-footer__links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.site-footer__links a { color: rgb(255 255 255 / 85%); text-decoration: none; }
.site-footer__links a:hover { color: var(--white); text-decoration: underline; }
.social { list-style: none; display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 10%); color: var(--white); text-decoration: none; transition: background .2s, color .2s; }
.social a:hover { background: var(--red); color: var(--white); }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / 12%); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 18px; font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.site-footer__bottom a { color: rgb(255 255 255 / 85%); }

/* ------------------------------------------------------------------ pop up */
.popup { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 64px 16px 16px; }
.popup__box { position: relative; max-width: min(92vw, 520px); }
.popup__box img { max-height: calc(100svh - 110px); width: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------------ breakpoints */
@media (min-width: 560px) {
  .bar__label span { display: inline; }
  .action__text { display: inline; }
  .action { padding: 0 16px; }
  .wordmark__name { font-size: 1.85rem; }
  .shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .accounts { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (min-width: 768px) {
  .pan { height: clamp(240px, 26vw, 440px); }
  .carousel__slide { flex-basis: calc(100% / 3); }
  .hero-2 .carousel { padding-inline: 0; }
  .welcome__grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first { grid-template-columns: 5fr 7fr; }
  .pair { grid-template-columns: 1fr 1fr; }
  .cycles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-band__inner { grid-template-columns: 1fr auto; align-items: center; }
  .facts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* real table on larger screens */
  .fees { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
  .fees thead { display: table-header-group; }
  .fees tr { display: table-row; padding: 0; margin: 0; border: 0; box-shadow: none; border-radius: 0; }
  .fees th, .fees td { display: table-cell; padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .fees td::before { content: none; }
  .fees thead th { background: var(--green); color: var(--white); font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
  .fees tbody tr:nth-child(even) { background: var(--mist); }
  .fees tbody tr:last-child > * { border-bottom: 0; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .gnav__link i { display: none; } /* tablets: text only, so the main bar fits */
}
@media (min-width: 1024px) {
  .action__label { display: inline; }
  /* first item's text lines up with the wordmark */
  .gnav__bar, .gsub .hscroll { padding-inline: calc(var(--gutter) - 13px) var(--gutter); }
  .gnav__link { padding: 0 13px; }
  .gsub__link { padding: 0 13px; margin-right: 10px; }
  .gnav__cta { padding: 0 14px; font-size: .8rem; gap: 8px; }
  .shortcuts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .welcome__grid { grid-template-columns: 4fr 8fr; }
  .cycles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .hero-1__inner { min-height: 58vh; }
  .extras { gap: 24px; }
}

/* ------------------------------------------------------------------ scroll reveal (hidden only when JS runs) */
.reveal-ready [data-reveal], .reveal-ready [data-reveal-stagger]:not(.is-revealed) > * { opacity: 0; }

/* ------------------------------------------------------------------ motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .bar__track.is-moving { animation: none; }
}


/* ------------------------------------------------------------------ pending content (client must fill it) */
.todo { padding: 10px 14px; border: 2px dashed var(--red); border-radius: var(--radius); background: var(--red-100); color: var(--red-text); font-weight: 600; }
.todo i { margin-right: 6px; }
