:root {
  --green-950: #012b20;
  --green-900: #003d2d;
  --green-800: #064735;
  --green-700: #0b6046;
  --green-100: #e9f2ed;
  --gold-600: #c99413;
  --gold-500: #e0aa18;
  --gold-300: #f3d477;
  --ink: #102019;
  --muted: #5e6c65;
  --line: #dfe8e3;
  --surface: #ffffff;
  --soft: #f6f8f6;
  --shadow: 0 18px 48px rgba(1, 43, 32, 0.14);
  --shadow-soft: 0 12px 28px rgba(1, 43, 32, 0.09);
  --radius: 8px;
  --header-height: 76px;
  --max-width: 1180px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

button {
  font: inherit;
}

svg {
  width: 1.1em;
  height: 1.1em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 10px clamp(14px, 2.5vw, 32px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(1, 43, 32, 0.08);
  box-shadow: 0 8px 24px rgba(1, 43, 32, 0.05);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 170px;
}

.brand img {
  width: clamp(150px, 14vw, 196px);
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(9px, 1.18vw, 17px);
  padding: 0 12px;
}

.main-nav a {
  position: relative;
  color: #0d1f18;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  height: 3px;
  background: var(--gold-500);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

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

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--green-900);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  transition: 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(690px, calc(100vh - var(--header-height)));
  overflow: hidden;
  color: #fff;
  background: var(--green-950);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(90deg, rgba(0, 29, 21, 0.82), rgba(0, 51, 38, 0.4) 44%, rgba(0, 35, 26, 0.76)),
    url("Assets/Portada/fondo.webp");
  background-size: cover;
  background-position: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at calc(72% + var(--mouse-x, 0px)) calc(32% + var(--mouse-y, 0px)), rgba(255, 214, 109, 0.42), transparent 18rem),
    linear-gradient(95deg, rgba(0, 0, 0, 0.28) 0 36%, transparent 68%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: -20%;
  z-index: -1;
  width: 26vw;
  min-width: 230px;
  background: linear-gradient(105deg, transparent 0 20%, rgba(255, 204, 66, 0.1) 45%, rgba(255, 255, 255, 0.55) 52%, rgba(255, 191, 41, 0.14) 60%, transparent 80%);
  content: "";
  filter: blur(5px);
  opacity: 0.9;
  transform: translateX(-20vw) skewX(-14deg);
  animation: lightSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
  align-items: stretch;
  width: min(var(--max-width), calc(100% - 64px));
  min-height: inherit;
  margin: 0 auto;
  padding: 62px 0 0;
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  max-width: 560px;
  padding-bottom: 50px;
}

.hero-title-art {
  width: min(100%, 570px);
  margin: 0 0 24px -12px;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.3));
}

.hero-copy h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-copy p {
  max-width: 410px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 650;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.hero-copy p::before {
  display: block;
  width: 58px;
  height: 3px;
  margin: 0 0 18px;
  background: var(--green-700);
  content: "";
  box-shadow: 34px 0 0 var(--gold-500);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.btn svg {
  flex: 0 0 auto;
  color: currentColor;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #004832, #003426);
  border-color: rgba(224, 170, 24, 0.76);
  box-shadow: 0 14px 28px rgba(0, 34, 25, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(180deg, #075c43, #003d2d);
  box-shadow: 0 18px 30px rgba(0, 34, 25, 0.28);
}

.btn-light {
  color: var(--green-900);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.btn-light svg {
  color: var(--gold-600);
}

.btn-outline {
  color: var(--green-900);
  background: #fff;
  border-color: #cfdcd5;
}

.btn-outline:hover {
  border-color: var(--green-700);
  box-shadow: var(--shadow-soft);
}

.btn-gold {
  color: #fff;
  background: linear-gradient(180deg, var(--gold-500), #b68008);
  box-shadow: 0 16px 28px rgba(130, 90, 0, 0.26);
}

.btn-compact {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.74rem;
}

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: 100%;
  transform: translate3d(calc(var(--mouse-x, 0px) * -0.015), calc(var(--mouse-y, 0px) * -0.012), 0);
}

.hero-mark {
  position: absolute;
  top: 0;
  right: -1%;
  width: min(74vw, 660px);
  max-width: none;
  opacity: 0.96;
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.88))
    drop-shadow(0 0 22px rgba(255, 217, 122, 0.38));
  transform: translate3d(calc(var(--mouse-x, 0px) * 0.026), calc(var(--mouse-y, 0px) * 0.018), 0) rotate(2deg);
  animation: markPulse 5.5s ease-in-out infinite;
}

.hero-mascot {
  position: absolute;
  right: 17%;
  bottom: -2px;
  width: min(48vw, 535px);
  max-width: none;
  filter: drop-shadow(0 30px 26px rgba(0, 0, 0, 0.34));
  transform: translate3d(calc(var(--mouse-x, 0px) * -0.018), calc(var(--mouse-y, 0px) * -0.018), 0);
}

.hero-glow {
  position: absolute;
  z-index: 3;
  width: 6px;
  height: 250px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, rgba(255, 212, 92, 0.98), transparent);
  filter: blur(2px);
  opacity: 0.78;
  transform: rotate(28deg);
  mix-blend-mode: screen;
}

.hero-glow-one {
  top: 32%;
  right: 34%;
  animation: glowFloat 4.4s ease-in-out infinite;
}

.hero-glow-two {
  top: 44%;
  right: 9%;
  height: 180px;
  animation: glowFloat 5.8s ease-in-out infinite reverse;
}

.hero-signature {
  position: absolute;
  right: 5%;
  bottom: 70px;
  z-index: 5;
  display: grid;
  gap: 2px;
  color: var(--gold-500);
  text-align: left;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.52);
}

.hero-signature span {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--gold-500);
}

.hero-signature strong {
  padding-left: 42px;
  color: var(--gold-300);
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0;
  background: #fff;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 78px;
  color: var(--green-900);
  border-right: 1px solid var(--line);
}

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

.stat-item svg {
  width: 42px;
  height: 42px;
}

.stat-item strong {
  display: block;
  color: var(--green-900);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.stat-item span {
  display: block;
  max-width: 116px;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.section {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 58px 0;
}

.why {
  display: grid;
  grid-template-columns: 275px 1fr;
  gap: 44px;
  align-items: start;
  border-top: 1px solid rgba(1, 43, 32, 0.08);
}

.section-intro {
  max-width: 285px;
}

.small-label {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-600);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

h2 {
  margin-bottom: 12px;
  color: var(--green-900);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 950;
  line-height: 1.08;
}

h2 em {
  display: block;
  color: var(--gold-600);
  font-style: normal;
}

.section-intro h2::after,
.programs-head h2::after {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 18px;
  background: var(--green-900);
  content: "";
  box-shadow: 32px 0 0 var(--gold-500);
}

.section-intro p,
.programs-head p,
.section-row p,
.wow-copy p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 365px;
  background: #fff;
  border: 1px solid rgba(1, 43, 32, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.feature-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.feature-card:nth-child(1) img {
  object-position: 48% 50%;
}

.feature-card:nth-child(2) img {
  object-position: 50% 48%;
}

.feature-card:nth-child(3) img {
  object-position: 50% 50%;
}

.feature-card:nth-child(4) img {
  object-position: 50% 48%;
}

.card-icon {
  position: absolute;
  top: 132px;
  left: 24px;
  z-index: 3;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin: 0;
  color: var(--gold-300);
  background: var(--green-800);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(1, 43, 32, 0.2);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3,
.feature-card p {
  padding: 0 24px;
}

.feature-card h3 {
  margin-top: 42px;
  margin-bottom: 10px;
  color: #17241d;
  font-size: 1.27rem;
  font-weight: 950;
  line-height: 1.1;
}

.feature-card p {
  margin-bottom: 24px;
  color: #45534d;
  font-size: 0.88rem;
  font-weight: 600;
}

.programs {
  padding-top: 38px;
  border-top: 1px solid rgba(1, 43, 32, 0.08);
}

.programs-head,
.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.programs-head h2,
.section-row h2 {
  margin-bottom: 6px;
  font-size: clamp(1.85rem, 2.3vw, 2.35rem);
  text-transform: uppercase;
}

.programs-head p,
.section-row p {
  margin-bottom: 0;
  font-size: 1rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.program-grid article {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 210px;
  padding: 28px 20px 24px;
  background: #fff;
  border-right: 1px solid var(--line);
  text-align: center;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.program-grid article:hover {
  background: #fffdf7;
  box-shadow: inset 0 -3px 0 var(--gold-500);
}

.program-grid article:last-child {
  border-right: 0;
}

.program-grid svg {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  color: var(--green-900);
}

.program-grid h3 {
  margin-bottom: 12px;
  color: var(--gold-600);
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.program-grid p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.program-grid button {
  align-self: end;
  padding: 0;
  color: var(--green-900);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.student-life {
  padding-top: 44px;
}

.section-row.compact {
  align-items: center;
  margin-bottom: 22px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-controls a,
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.carousel-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--green-900);
  background: #fff;
  border: 1px solid #cdd9d3;
  border-radius: 999px;
  cursor: pointer;
}

.carousel-controls button:hover {
  color: #fff;
  background: var(--green-900);
}

.life-rail {
  display: grid;
  grid-auto-columns: 220px;
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.life-rail::-webkit-scrollbar {
  display: none;
}

.life-rail article {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 180px;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(180deg, transparent 24%, rgba(0, 29, 21, 0.86)),
    var(--life-image) center / cover;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.life-rail span {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.wow-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) 1fr;
  align-items: center;
  min-height: 235px;
  overflow: hidden;
  background: #f7fbf8;
  border-top: 1px solid rgba(1, 43, 32, 0.08);
  border-bottom: 1px solid rgba(1, 43, 32, 0.08);
}

.wow-band::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 11%;
  min-width: 80px;
  background: var(--green-900);
  clip-path: polygon(0 0, 100% 0, 42% 100%, 0 100%);
  content: "";
}

.wow-copy {
  position: relative;
  z-index: 2;
  display: block;
  align-items: center;
  width: min(520px, calc(100% - 90px));
  justify-self: center;
  padding-left: 38px;
}

.wow-copy > strong {
  display: grid;
  color: var(--green-900);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.86;
  text-transform: uppercase;
}

.wow-copy > strong span {
  color: var(--gold-600);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: none;
}

.wow-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  text-transform: uppercase;
}

.wow-copy p {
  max-width: 430px;
  margin-bottom: 18px;
}

.wow-band > img {
  width: 100%;
  height: 100%;
  min-height: 235px;
  object-fit: cover;
  object-position: center right;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%);
}

.news {
  padding-top: 42px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr 190px;
  gap: 24px;
  align-items: stretch;
}

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

.news-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  min-height: 170px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(1, 43, 32, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.news-card time {
  display: grid;
  align-content: start;
  justify-items: center;
  width: 48px;
  min-height: 72px;
  padding: 7px 4px 12px;
  color: var(--gold-300);
  background: var(--green-900);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.news-card time strong {
  color: var(--gold-500);
  font-size: 1.6rem;
  font-weight: 950;
  line-height: 1;
}

.news-card time span {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card h3 {
  margin-bottom: 9px;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.25;
}

.news-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.48;
}

.news-card button {
  display: inline-flex;
  margin-top: auto;
  padding: 0;
  color: var(--green-900);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.testimonial,
.connect-card {
  background: #fff;
  border: 1px solid rgba(1, 43, 32, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.testimonial > span,
.connect-card > span,
.admissions-copy > span {
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.testimonial blockquote {
  position: relative;
  margin: 26px 0;
  color: #1c2f26;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.65;
}

.testimonial blockquote::before {
  position: absolute;
  top: -34px;
  left: 0;
  color: var(--green-900);
  content: "\201C";
  font-size: 4rem;
  line-height: 1;
}

.student-quote {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-quote img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 999px;
}

.student-quote strong,
.student-quote small {
  display: block;
}

.student-quote strong {
  font-size: 0.82rem;
  text-transform: uppercase;
}

.student-quote small {
  color: var(--muted);
  font-size: 0.76rem;
}

.connect-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  text-align: center;
}

.qr-fallback {
  display: grid;
  width: 118px;
  min-height: 118px;
  place-items: center;
  color: var(--green-900);
  background: #fff;
  border: 1px solid #d5e1db;
  border-radius: 8px;
}

.qr-fallback svg {
  width: 88px;
  height: 88px;
}

.qr-fallback svg path {
  fill: currentColor;
  stroke: none;
}

.qr-fallback small {
  max-width: 88px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.2;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.socials a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--green-900);
  border: 1px solid #d7e1dc;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 950;
}

.admissions {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  padding: 38px clamp(22px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 48, 35, 0.98) 0 42%, rgba(0, 56, 41, 0.86) 56%, rgba(0, 34, 25, 0.98)),
    url("Assets/Portada/fondo.webp") center / cover;
}

.admissions::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  background: #003322;
  clip-path: polygon(0 0, 70% 0, 28% 100%, 0 100%);
  content: "";
}

.admissions-copy {
  position: relative;
  z-index: 2;
}

.admissions-copy > span {
  color: var(--gold-500);
}

.admissions h2 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-style: italic;
  text-transform: uppercase;
}

.admissions h2 strong {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  font-style: normal;
}

.admissions p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
}

.admissions-form {
  position: relative;
  z-index: 3;
  width: min(100%, 650px);
  justify-self: end;
}

.admissions-form iframe {
  display: block;
  width: 100%;
  max-width: 650px;
  height: 500px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 5px 5px 56px 0 rgba(0, 0, 0, 0.25);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr 1.1fr;
  gap: 34px;
  padding: 38px clamp(22px, 4vw, 56px);
  color: #fff;
  background: var(--green-950);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer img {
  width: 210px;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span,
.site-footer p {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.site-footer a:hover {
  color: var(--gold-300);
}

.footer-brand p {
  margin-top: 12px;
  color: var(--gold-300);
  font-weight: 850;
  text-transform: uppercase;
}

.footer-claim {
  position: relative;
  min-height: 120px;
}

.footer-claim p {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.footer-claim strong {
  color: var(--gold-500);
}

.footer-claim img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 128px;
  opacity: 0.36;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 15, 0.72);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.modal-panel h2 {
  padding-right: 44px;
  font-size: 1.45rem;
}

.program-modal-panel {
  max-width: 620px;
}

.program-modal-panel h2 {
  margin-bottom: 14px;
  color: var(--gold-600);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  text-transform: uppercase;
}

.program-modal-panel p {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
}

.program-modal-panel ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.program-modal-panel li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-weight: 650;
}

.program-modal-panel li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--gold-500);
  border-radius: 999px;
  content: "";
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--green-900);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.video-frame {
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(1, 43, 32, 0.86), rgba(201, 148, 19, 0.54)),
    url("Assets/Portada/fondo.webp") center / cover;
  border-radius: 8px;
  text-align: center;
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.video-frame p {
  max-width: 370px;
  margin: 0;
  padding: 28px;
  color: #fff;
  font-weight: 800;
}

.video-frame code {
  color: var(--gold-300);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  color: #fff;
  background: var(--green-900);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(1, 43, 32, 0.24);
  font-size: 0.9rem;
  font-weight: 760;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 180ms ease;
}

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

@keyframes lightSweep {
  0%,
  36% {
    transform: translateX(-22vw) skewX(-14deg);
    opacity: 0;
  }
  48% {
    opacity: 0.95;
  }
  70%,
  100% {
    transform: translateX(138vw) skewX(-14deg);
    opacity: 0;
  }
}

@keyframes markPulse {
  0%,
  100% {
    opacity: 0.74;
    filter:
      drop-shadow(0 0 8px rgba(255, 255, 255, 0.76))
      drop-shadow(0 0 18px rgba(255, 217, 122, 0.28));
  }
  50% {
    opacity: 0.96;
    filter:
      drop-shadow(0 0 12px rgba(255, 255, 255, 0.96))
      drop-shadow(0 0 34px rgba(255, 217, 122, 0.5));
  }
}

@keyframes glowFloat {
  0%,
  100% {
    transform: translateY(-10px) rotate(28deg);
  }
  50% {
    transform: translateY(22px) rotate(28deg);
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    right: 18px;
    left: 18px;
    order: 4;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 15px;
    border-radius: 6px;
  }

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

  .main-nav a.is-active,
  .main-nav a:hover {
    background: var(--green-100);
  }

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

  .hero-stage {
    min-height: 540px;
  }

  .hero-mascot {
    right: 10%;
    bottom: 0;
    width: min(49vw, 490px);
  }

  .hero-mark {
    right: -8%;
  }

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

  .program-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .program-grid article {
    border-bottom: 1px solid var(--line);
  }

  .program-grid article:nth-child(3) {
    border-right: 0;
  }

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

  .connect-card {
    max-width: 280px;
  }

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

  .admissions-form {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 10px 16px;
  }

  .brand img {
    width: 156px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    width: min(100% - 34px, 560px);
    align-items: start;
    padding: 40px 0 0;
  }

  .hero-bg {
    transform: scale(1);
  }

  .hero::before {
    background:
      radial-gradient(circle at 72% 55%, rgba(255, 214, 109, 0.32), transparent 14rem),
      linear-gradient(180deg, rgba(0, 20, 14, 0.45), rgba(0, 35, 26, 0.88));
  }

  .hero-title-art {
    width: min(100%, 470px);
    margin-left: -6px;
  }

  .hero-copy p {
    max-width: 100%;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-stage {
    min-height: 420px;
    margin-top: 10px;
  }

  .hero-mark {
    top: 2%;
    right: 0;
    width: min(88vw, 470px);
  }

  .hero-mascot {
    right: 12%;
    bottom: 0;
    width: min(82vw, 420px);
  }

  .hero-signature {
    right: 2%;
    bottom: 58px;
  }

  .hero-signature strong {
    padding-left: 20px;
    font-size: 0.82rem;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    padding: 18px 17px;
    gap: 0;
  }

  .stat-item {
    justify-content: start;
    padding: 16px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .section {
    width: min(100% - 34px, 560px);
    padding: 42px 0;
  }

  .why {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-intro {
    max-width: 100%;
  }

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

  .feature-card {
    min-height: auto;
  }

  .programs-head,
  .section-row {
    align-items: start;
    flex-direction: column;
  }

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

  .program-grid article,
  .program-grid article:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .program-grid article:last-child {
    border-bottom: 0;
  }

  .carousel-controls {
    width: 100%;
  }

  .carousel-controls a {
    margin-right: auto;
  }

  .life-rail {
    grid-auto-columns: minmax(236px, 80%);
    margin-right: -17px;
    padding-right: 17px;
  }

  .wow-band {
    grid-template-columns: 1fr;
  }

  .wow-copy {
    width: min(100% - 34px, 560px);
    justify-self: center;
    padding: 46px 0 24px;
  }

  .wow-band > img {
    min-height: 250px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14%);
  }

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

  .admissions {
    grid-template-columns: 1fr;
    padding: 38px 17px;
  }

  .admissions-form iframe {
    height: 560px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 22px;
  }

  .footer-claim {
    min-height: 90px;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .btn {
    width: 100%;
  }

  .btn {
    min-height: 50px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-bottom: 1px solid var(--line);
  }

  .stat-item:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

  .hero-title-art {
    margin-bottom: 18px;
  }

  .hero-stage {
    min-height: 360px;
  }

  .hero-mascot {
    right: 3%;
    bottom: 0;
    width: min(94vw, 380px);
  }

  .hero-mark {
    right: -18%;
  }

  .hero-signature {
    display: none;
  }

  h2 {
    font-size: 2rem;
  }

  .modal {
    padding: 14px;
  }

  .modal-panel {
    padding: 20px;
  }

  .video-frame,
  .video-frame iframe,
  .video-frame video {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .hero-stage,
  .hero-mark,
  .hero-mascot {
    transform: none !important;
  }
}
