:root {
  color-scheme: dark;
  --bg: #07110b;
  --bg-soft: #0d1811;
  --panel: rgba(12, 22, 15, .82);
  --text: #f7fbf7;
  --muted: #c9d5cb;
  --green: #1f7a3d;
  --green-bright: #3ea96a;
  --green-light: #dff7e7;
  --line: rgba(255, 255, 255, .1);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 500px at 12% 10%, rgba(62, 169, 106, .16), transparent 55%),
    radial-gradient(800px 500px at 90% 20%, rgba(31, 122, 61, .18), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 90%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.menu-frame {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
  width: 100%;
  height: 82px;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* Shared navigation, rendered from menu.html inside each page. */
.topbar {
  color: #183322;
  background: linear-gradient(180deg, #fff, #f7faf7);
  border-bottom: 1px solid rgba(16,32,23,.1);
}
.nav {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
}
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.brand__logo img { width: auto; height: auto; max-height: 64px; object-fit: contain; }
.brand__name { color: #16482a; font-weight: 850; letter-spacing: -.03em; }
.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.menu a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(31,122,61,.18);
  border-radius: 999px;
  color: #1f7a3d;
  background: rgba(31,122,61,.055);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.menu a:hover, .menu a:focus-visible, .menu a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, #3ea96a, #1f7a3d);
  outline: none;
}
.menu a:focus-visible { box-shadow: 0 0 0 3px rgba(62,169,106,.28); }

.page-content { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 34px 0 52px; }
.section { margin: 0 0 18px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 28px; background: rgba(9, 20, 13, .76); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.section__head { margin-bottom: 22px; }
.section__kicker { margin: 0 0 8px; color: var(--green-light); font-size: 13px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.section__title { margin: 0; font-size: clamp(27px, 4.5vw, 44px); line-height: 1.06; letter-spacing: -.035em; }
.section__desc { max-width: 75ch; margin: 12px 0 0; color: var(--muted); line-height: 1.65; }
.page-intro { margin: 0 0 24px; }
.page-intro .section__title { font-size: clamp(34px, 6vw, 62px); }
.page-intro .section__desc { font-size: 17px; }
.footer { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 18px 0 28px; color: #aebdb2; font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }

/* Home page */
.matriculaTop { display: grid; width: min(var(--max), calc(100% - 32px)); grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); align-items: stretch; gap: 18px; margin: 20px auto 0; }
.matriculaTop__link { display: block; overflow: hidden; align-self: center; border: 1px solid rgba(210,255,222,.24); border-radius: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.3); transition: transform .2s ease; }
.matriculaTop__link:hover { transform: translateY(-2px); }
.matriculaTop__link img { width: 100%; height: auto; }
.inspectionNotice { padding: clamp(18px, 2.3vw, 29px); border: 1px solid rgba(62,169,106,.7); border-radius: 26px; color: #14351f; background: linear-gradient(145deg, #f2fff5, #dff7e7); box-shadow: 0 18px 42px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.72); }
.inspectionNotice__heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.inspectionNotice__icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(180deg, #3ea96a, #1f7a3d); font-size: 20px; font-weight: 900; }
.inspectionNotice__eyebrow { margin: 0; color: #1f7a3d; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.inspectionNotice h2 { margin: 0 0 12px; color: #12351e; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -.025em; }
.inspectionNotice p { margin: 0 0 11px; color: #294b34; font-size: 14px; line-height: 1.55; }
.inspectionNotice .inspectionNotice__greeting { margin-bottom: 6px; color: #173e24; font-weight: 750; }
.inspectionNotice blockquote { margin: 14px 0 0; padding: 12px 14px; border-left: 4px solid #2b914e; border-radius: 0 12px 12px 0; color: #173e24; background: rgba(255,255,255,.72); font-size: 14px; font-weight: 650; line-height: 1.55; }
.inspectionNotice blockquote span { display: block; margin-bottom: 3px; color: #1f7a3d; font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.hero { padding: 34px 0 20px; }
.hero__panel { display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: 22px; }
.hero__main { position: relative; overflow: hidden; min-height: 385px; padding: clamp(27px, 4vw, 48px); border: 1px solid rgba(255,255,255,.09); border-radius: 30px; background: linear-gradient(rgba(8,18,12,.73),rgba(8,18,12,.78)), url("fondo.jpg") center/cover no-repeat; box-shadow: 0 28px 60px rgba(0,0,0,.4); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(118,207,151,.28); border-radius: 999px; color: var(--green-light); background: rgba(255,255,255,.04); font-size: 13px; font-weight: 750; }
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 5px rgba(62,169,106,.14); content: ""; }
.hero h1 { max-width: 11ch; margin: 20px 0 14px; font-size: clamp(42px, 6.4vw, 72px); line-height: .98; letter-spacing: -.045em; }
.lead { max-width: 60ch; margin: 0; color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 12px 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; font-weight: 750; transition: transform .2s ease, filter .2s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--primary { background: linear-gradient(180deg, var(--green-bright), var(--green)); }
.btn--ghost { border-color: rgba(118,207,151,.26); background: rgba(255,255,255,.05); }
.hero__side { display: grid; align-content: start; gap: 13px; }
.heroTabs { display: flex; gap: 6px; overflow-x: auto; padding: 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; background: rgba(255,255,255,.045); scrollbar-width: thin; }
.heroTabs__item { flex: 1 0 auto; padding: 10px 13px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); background: transparent; font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.heroTabs__item:hover, .heroTabs__item.is-active { color: #fff; background: linear-gradient(180deg, var(--green-bright), var(--green)); }
.heroCard, .stat { padding: 17px; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); }
.heroCard h3 { margin: 0 0 8px; font-size: 17px; }
.heroCard p, .stat span { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat strong { display: block; margin-bottom: 5px; font-size: clamp(20px, 2.6vw, 28px); }
.stat span { font-size: 12px; }

/* Proposal page */
.proposal-section { color: #102317; background: linear-gradient(rgba(255,255,255,.79),rgba(255,255,255,.86)), url("fondo2.jpg") center/cover no-repeat; }
.proposal-section .section__kicker, .proposal-section .section__desc { color: #314138; }
.proposal-heading { display: grid; grid-template-columns: 2fr 1fr; align-items: center; gap: 24px; }
.proposal-image img { width: 100%; max-height: 310px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.proposal-layout { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 20px; margin-top: 20px; }
.proposal-main, .proposal-history { padding: 21px; border: 1px solid rgba(255,255,255,.35); border-radius: 22px; background: rgba(255,255,255,.84); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.cards--stack { grid-template-columns: 1fr; }
.card { position: relative; overflow: hidden; padding: 19px; border: 1px solid rgba(118,207,151,.2); border-radius: 20px; background: linear-gradient(180deg, rgba(10,20,13,.94), rgba(9,18,12,.88)); box-shadow: 0 15px 32px rgba(0,0,0,.15); }
.card__header { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.card__icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(118,207,151,.24); border-radius: 15px; background: rgba(62,169,106,.18); font-size: 22px; }
.card h2, .card h3 { margin: 0; color: #fff; font-size: 19px; }
.card p { margin: 0; color: #e0e9e2; font-size: 14px; line-height: 1.65; }
.proposal-history h2 { margin: 0 0 13px; color: #0b1f14; font-size: 23px; }
.proposal-history p { margin: 0 0 13px; color: #314138; font-size: 14px; line-height: 1.7; }
.proposal-history p:last-child { margin-bottom: 0; }

/* Innovation page */
.innovation-section { color: #102317; background: linear-gradient(rgba(255,255,255,.7),rgba(255,255,255,.78)), url("fondo4.jpg") center/cover no-repeat; }
.innovation-section .section__kicker, .innovation-section .section__title, .innovation-section .section__desc { color: #0b1f14; }
.innovation-section .cards { grid-template-columns: repeat(2, 1fr); }

/* Testimonials page */
.testimonialsSection { background: linear-gradient(180deg, rgba(8,18,12,.94), rgba(9,18,12,.84)); }
.testimonialsSection .section__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.testimonialsHeadActions { display: flex; flex: 0 0 auto; gap: 9px; }
.testimonialNavBtn { width: 46px; height: 46px; border: 1px solid rgba(118,207,151,.25); border-radius: 14px; color: #fff; background: #102317; font-size: 24px; cursor: pointer; }
.testimonialNavBtn:hover { background: var(--green); }
.testimonialsViewport { overflow: hidden; border-radius: 22px; }
.testimonialsTrack { display: flex; transition: transform .5s ease; will-change: transform; }
.testimonialSlide { display: grid; min-width: 100%; grid-template-columns: 1fr 1.15fr; overflow: hidden; border-radius: 22px; background: #f5f6f7; }
.testimonialSlide__media { min-height: 350px; background-color: #101810; background-position: center; background-size: cover; }
.testimonialSlide__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 4vw, 45px); background: linear-gradient(180deg, #fbfbfc, #eef1f4); }
.testimonialQuote { margin-bottom: 8px; color: rgba(11,31,20,.12); font-size: 82px; font-weight: 900; line-height: .7; }
.testimonialText { margin: 0 0 20px; color: #526477; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.7; }
.testimonialName { margin: 0 0 4px; color: #2d3e50; font-size: 15px; text-transform: uppercase; }
.testimonialRole { margin: 0; color: #758596; font-size: 14px; }
.testimonialDots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.testimonialDot { width: 10px; height: 10px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.2); cursor: pointer; }
.testimonialDot.is-active { width: 27px; border-color: transparent; background: linear-gradient(180deg, var(--green-bright), var(--green)); }

/* Contact section on the home page */
.contact-wrap { padding: clamp(21px, 4vw, 30px); border-radius: 26px; color: #102317; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
#admision { scroll-margin-top: 90px; }
.contact-head h2 { margin: 0 0 8px; color: #0b1f14; font-size: clamp(25px, 4vw, 36px); }
.contact-head p { margin: 0 0 20px; color: #526357; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-bottom: 17px; }
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; border-radius: 18px; }
.photo-card { overflow: hidden; min-height: 300px; border-radius: 18px; }
.photo-placeholder { width: 100%; height: 100%; min-height: 300px; background: url("fondo2.jpg") center/cover no-repeat; }
.info-card { padding: 20px; border-radius: 18px; color: #fff; background: linear-gradient(180deg, rgba(10,20,13,.96), rgba(9,18,12,.9)); }
.info-card h3 { margin: 0 0 12px; }
.contact-list { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.contact-item { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.contact-note { margin: 0; color: #cfdbd1; font-size: 13px; }

/* Educational tools page */
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.tool-card { display: flex; min-width: 0; flex-direction: column; padding: 17px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); box-shadow: 0 15px 32px rgba(0,0,0,.18); transition: transform .2s ease, border-color .2s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: rgba(118,207,151,.35); }
.tool-logo { display: grid; min-height: 122px; place-items: center; margin-bottom: 16px; padding: 14px; border-radius: 16px; background: #fff; }
.tool-logo--edx { background: #f5f8f8; }
.tool-logo--coursera { background: #0056d2; }
.tool-logo--khan { background: #fff; }
.tool-logo img { width: min(100%, 220px); max-height: 82px; object-fit: contain; }
.tool-logo--khan img { width: 68px; height: 68px; }
.tool-card h2 { margin: 0 0 8px; font-size: 20px; }
.tool-card p { flex: 1; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.tool-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 13px; border: 1px solid rgba(118,207,151,.25); border-radius: 13px; color: #fff; background: rgba(62,169,106,.14); font-size: 14px; font-weight: 800; }
.tool-link:hover { background: rgba(62,169,106,.28); }
.tool-badge { display: inline-block; align-self: flex-start; margin: -2px 0 12px; padding: 6px 9px; border: 1px solid rgba(242,211,107,.35); border-radius: 999px; color: #ffe995; background: rgba(242,211,107,.09); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.tool-logo--pomodoro { background: linear-gradient(145deg, #07110b, #16442a); }
.tool-logo--pomodoro img { width: auto; max-width: 80%; max-height: 82px; }

@media (max-width: 960px) {
  .menu-frame { height: 118px; }
  #admision { scroll-margin-top: 126px; }
  .nav { min-height: 118px; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; padding: 5px 0; }
  .brand { min-height: 56px; }
  .brand__logo img { max-height: 52px; }
  .menu { justify-content: flex-start; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding: 2px 0 5px; scrollbar-width: thin; }
  .menu a { min-height: 34px; padding: 7px 10px; font-size: 12px; }
  .hero__panel { grid-template-columns: 1fr; }
  .hero__main { min-height: 320px; }
  .proposal-layout { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .matriculaTop { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .menu-frame { height: 152px; }
  #admision { scroll-margin-top: 160px; }
  .menu { overflow: visible; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 2px 0; }
  .menu a { flex: 0 0 calc(33.333% - 5px); max-width: 150px; min-height: 34px; padding: 6px 5px; font-size: 11px; }
  .container, .page-content, .footer { width: min(100% - 22px, var(--max)); }
  .matriculaTop { width: calc(100% - 22px); margin-top: 12px; }
  .page-content { padding-top: 21px; }
  .hero { padding-top: 20px; }
  .hero__main { min-height: 0; padding: 27px 22px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 12px 9px; }
  .stat span { font-size: 11px; }
  .proposal-heading { grid-template-columns: 1fr; }
  .proposal-image img { max-height: 300px; aspect-ratio: 16 / 9; }
  .innovation-section .cards, .cards { grid-template-columns: 1fr; }
  .testimonialsSection .section__head { align-items: flex-start; }
  .testimonialSlide { grid-template-columns: 1fr; }
  .testimonialSlide__media { min-height: 250px; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-card iframe, .photo-card, .photo-placeholder { min-height: 250px; }
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .section { border-radius: 21px; padding: 20px 16px; }
  .stats { grid-template-columns: 1fr; }
  .heroTabs__item { padding-inline: 11px; }
  .testimonialsSection .section__head { flex-direction: column; }
  .testimonialsHeadActions { align-self: flex-end; }
  .testimonialSlide__media { min-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
