/* ============================================================
   Syracuse STEM at Blodgett — Programa Personalizado y Bilingüe
   Hoja de estilos. Diseño: Marimar Nuñez.
   ============================================================ */

:root {
  --indigo:  #5b5fe0;
  --indigo-d:#4a3fd6;
  --indigo-dd:#2f2a8a;
  --coral:   #e0726b;
  --teal:    #1aa28c;
  --amber:   #d99a2b;
  --purple:  #8f63d6;

  --ink:     #1b1c39;
  --body:    #4a4d68;
  --muted:   #6b6e88;
  --line:    #e7e7f2;
  --bg:      #ffffff;
  --tint:    #f4f5ff;
  --tint2:   #eef0ff;

  --radius:  22px;
  --radius-s:14px;
  --shadow:  0 18px 40px -18px rgba(43, 40, 120, .28);
  --shadow-s:0 8px 22px -12px rgba(43, 40, 120, .26);
  --maxw:    1180px;
  --ease:    cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== Biligüe: mostrar solo el idioma activo ===== */
html[lang="en"] .lang-es { display: none !important; }
html[lang="es"] .lang-en { display: none !important; }

/* botón único de idioma (ES ⇄ EN): muestra el idioma al que cambiará */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 4px;
  font-family: "Manrope"; font-weight: 800; font-size: .82rem; letter-spacing: .02em;
  color: var(--indigo-d); background: var(--tint2);
  border: 1.5px solid var(--indigo); border-radius: 999px;
  padding: 8px 16px; min-height: 40px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.lang-toggle:hover { background: var(--indigo); color: #fff; transform: translateY(-1px); }
.lang-toggle:hover .lang-toggle__globe { stroke: #fff; }
.lang-toggle:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.lang-toggle__globe {
  width: 18px; height: 18px; flex: none; fill: none;
  stroke: var(--indigo-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .2s var(--ease);
}
.lang-toggle--mobile { width: 100%; justify-content: center; margin: 0 0 10px; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: "Sora", sans-serif; color: var(--ink); line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 8px;
}

/* ====================== NAV ====================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck { box-shadow: 0 10px 30px -20px rgba(43,40,120,.4); border-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 46px; height: 46px; object-fit: cover; object-position: center 43%;
  border-radius: 12px; background: #fff;
  box-shadow: var(--shadow-s);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: "Sora"; font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.brand__text small { color: var(--muted); font-size: .76rem; letter-spacing: .04em; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  font-weight: 600; font-size: .94rem; color: var(--body);
  padding: 9px 14px; border-radius: 12px; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover { background: var(--tint2); color: var(--indigo-d); }
.nav__cta { background: var(--indigo); color: #fff !important; }
.nav__cta:hover { background: var(--indigo-d) !important; color: #fff !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; padding: 8px 24px 18px; gap: 2px; background: #fff; border-bottom: 1px solid var(--line); }
.nav__mobile a { padding: 12px 10px; border-radius: 10px; font-weight: 600; color: var(--body); }
.nav__mobile a:hover { background: var(--tint2); }
.nav__mobile.is-open { display: flex; }

/* ====================== HERO ====================== */
.hero { position: relative; padding: 60px 0 90px; overflow: hidden; }
.hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  color: var(--indigo-d); background: var(--tint2); padding: 8px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px;
}
.grad-text {
  background: linear-gradient(100deg, var(--indigo) 10%, var(--purple) 55%, var(--coral) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-accent { color: var(--indigo); }
.lead { font-size: 1.12rem; color: var(--body); max-width: 30rem; margin-bottom: 30px; }
.lead strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Sora"; font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 14px; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
  min-height: 52px;
}
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 14px 26px -12px rgba(91,95,224,.8); }
.btn--primary:hover { background: var(--indigo-d); transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(91,95,224,.9); }
.btn--ghost { background: #fff; color: var(--indigo-d); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--indigo); transform: translateY(-2px); box-shadow: var(--shadow-s); }

/* flip button (CSS 3D, hover/focus) */
.btn--flip { perspective: 700px; padding-top: 0; padding-bottom: 0; }
.flip-btn__inner {
  display: inline-grid; place-items: center;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.btn--flip:hover .flip-btn__inner,
.btn--flip:focus-visible .flip-btn__inner { transform: rotateX(180deg); }
.flip-btn__face {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 0; white-space: nowrap;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-btn__face--back { transform: rotateX(180deg); }

@media (prefers-reduced-motion: reduce) {
  .flip-btn__inner { transition: none; }
  .btn--flip:hover .flip-btn__inner,
  .btn--flip:focus-visible .flip-btn__inner { transform: none; }
}

.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 12px; }
.hero__chips li {
  font-size: .85rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  color: var(--accent-d, var(--indigo-d));
  background: var(--accent-soft, #fff);
  border: 1.5px solid var(--accent, var(--line));
}
.hero__foot { font-size: .82rem; color: var(--muted); }

/* ====== Sección: ¿Qué es el aprendizaje personalizado? ====== */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 8px; }
.vm-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-s);
  border-top: 6px solid var(--c, var(--indigo));
}
.vm-card__tag {
  display: inline-block; font-family: "Manrope"; font-weight: 800; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--indigo));
  background: color-mix(in srgb, var(--c, var(--indigo)) 12%, #fff);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.vm-card h3 { font-size: 1.22rem; color: var(--ink); margin: 0 0 10px; }
.vm-card p { color: var(--body); font-size: 1rem; line-height: 1.65; margin: 0; }

.vm-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.vm-pillar {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 20px 18px; border-left: 4px solid var(--c, var(--indigo));
}
.vm-pillar h4 { font-family: "Sora"; font-size: 1rem; color: var(--ink); margin: 0 0 6px; }
.vm-pillar p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0; }

.vm-note {
  margin-top: 24px; padding: 18px 22px; background: var(--tint2);
  border-radius: var(--radius-s); color: var(--body); font-size: .98rem; line-height: 1.6;
}
.vm-note strong { color: var(--indigo-dd); }

@media (max-width: 760px) {
  .vm-grid { grid-template-columns: 1fr; }
  .vm-pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .vm-pillars { grid-template-columns: 1fr; }
}

/* hero art */
.hero__art { position: relative; min-height: 380px; display: grid; place-items: center; }
.art-card {
  position: relative; width: min(380px, 84%); aspect-ratio: 1/1;
  background: radial-gradient(circle at 50% 32%, #fff 0 62%, var(--tint2) 100%);
  border-radius: 36px; box-shadow: var(--shadow);
  display: grid; place-items: center;
  animation: floatY 6s ease-in-out infinite;
}
.art-card::after {
  content: ""; position: absolute; inset: 14px; border-radius: 26px;
  border: 2px dashed rgba(91,95,224,.16);
}
.art-card__lion {
  width: 96%; height: 96%; object-fit: contain; object-position: center; display: block;
  filter: drop-shadow(0 16px 26px rgba(43,40,120,.20));
}

/* floating background shapes */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.shape { position: absolute; opacity: .55; }
.shape--ring { border-radius: 50%; border: 14px solid var(--tint2); }
.shape--dot  { border-radius: 50%; }
.shape--blob { border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; }
.shape--square { border-radius: 16px; transform: rotate(18deg); }
.s1 { width: 150px; height: 150px; top: 8%; right: 14%; animation: drift 14s ease-in-out infinite; }
.s2 { width: 90px; height: 90px; bottom: 18%; left: 6%; border-color: #ffe0d4; animation: drift 18s ease-in-out infinite reverse; }
.s3 { width: 26px; height: 26px; background: var(--coral); top: 30%; left: 46%; opacity: .8; animation: floatY 7s ease-in-out infinite; }
.s4 { width: 18px; height: 18px; background: var(--amber); bottom: 26%; right: 40%; opacity: .85; animation: floatY 5s ease-in-out infinite; }
.s5 { width: 120px; height: 120px; background: #e9eaff; bottom: 4%; right: 4%; animation: drift 20s ease-in-out infinite; }
.s6 { width: 60px; height: 60px; background: #d9f7f0; top: 18%; left: 12%; animation: drift 16s ease-in-out infinite reverse; }

/* ====================== AURORA (ported from React component) ====================== */
/* Pure-CSS port of the Aurora Background. Tailwind color vars (--blue-500 etc.)
   are hardcoded here since this static site has no Tailwind plugin to inject them.
   The radial mask concentrates the glow top-right (behind the art card) so the
   left-hand hero copy stays high-contrast and readable. */
.aurora {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
}
.aurora__layer {
  --white-gradient: repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%);
  --aurora: repeating-linear-gradient(100deg, #3b82f6 10%, #a5b4fc 15%, #93c5fd 20%, #ddd6fe 25%, #60a5fa 30%);
  position: absolute; inset: -10px;
  background-image: var(--white-gradient), var(--aurora);
  background-size: 300% 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px) invert(1);
  opacity: .5; will-change: transform;
}
.aurora__layer::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--white-gradient), var(--aurora);
  background-size: 200% 100%;
  background-attachment: fixed;
  mix-blend-mode: difference;
  animation: aurora 60s linear infinite;
}
@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

/* ====================== SECTIONS ====================== */
.section { padding: 84px 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark {
  background: linear-gradient(160deg, var(--indigo-dd) 0%, var(--indigo-d) 60%, #5a47e6 100%);
  color: #e7e7ff;
}
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 14px;
}
.kicker--light { color: #b9bbff; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.section--dark .section__head h2 { color: #fff; }
.section__sub { margin-top: 16px; font-size: 1.06rem; color: var(--muted); }
.section__sub--light { color: #c8c9ff; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 46px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-s);
}
.stat__num { display: block; font-family: "Sora"; font-weight: 800; font-size: 2.6rem; color: var(--indigo-d); line-height: 1; }
.stat__lbl { display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* ---------- premises ---------- */
.premises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.premise {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; box-shadow: var(--shadow-s); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.premise::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--c); }
.premise:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.premise__n { font-family: "Sora"; font-weight: 800; font-size: 1.1rem; color: var(--c); }
.premise h3 { font-size: 1.12rem; margin: 8px 0 10px; }
.premise p { font-size: .94rem; color: var(--muted); }

/* ---------- weekly cycle ---------- */
.cycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.cycle__step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-s); counter-increment: step;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cycle__step::after {
  content: counter(step); position: absolute; top: -14px; left: 24px;
  width: 38px; height: 38px; border-radius: 12px; background: var(--indigo); color: #fff;
  font-family: "Sora"; font-weight: 700; display: grid; place-items: center; box-shadow: var(--shadow-s);
}
.cycle__step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cycle__tag { display: inline-block; margin: 8px 0 8px; font-size: .76rem; font-weight: 700; color: var(--coral); background: #fff0ee; padding: 5px 12px; border-radius: 999px; }
.cycle__step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cycle__step p { font-size: .93rem; color: var(--muted); }

/* ---------- bilingual cards ---------- */
.bili-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bili-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 28px 26px; backdrop-filter: blur(4px);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.bili-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.14); }
.bili-card h3 { color: #fff; font-size: 1.18rem; margin-bottom: 10px; }
.bili-card p { color: #d3d4ff; font-size: .96rem; }

/* ====================== CURRÍCULO ====================== */
.picker {
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-s); margin-bottom: 26px;
}
.picker__group { display: flex; flex-direction: column; gap: 10px; }
.picker__label { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: "Manrope"; font-weight: 600; font-size: .92rem; color: var(--body);
  background: var(--tint); border: 1.5px solid transparent; border-radius: 999px;
  padding: 10px 18px; cursor: pointer; min-height: 44px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { background: var(--tint2); color: var(--indigo-d); }
.chip .chip__ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip.is-active { color: #fff; background: var(--indigo); border-color: var(--indigo); }
.chip--grade.is-active { background: var(--ink); border-color: var(--ink); }

/* chips de materia: cada uno con el color (accent) de su materia */
.chip--subject { background: var(--accent-soft); color: var(--accent-d); }
.chip--subject:hover { background: var(--accent-soft); color: var(--accent-d); border-color: var(--accent); }
.chip--subject.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* volteo bilingüe del chip de materia (frente español → reverso inglés) */
.chip--subject { perspective: 600px; }
.chip__flip { display: inline-grid; place-items: center; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.chip--subject:hover .chip__flip, .chip--subject:focus-visible .chip__flip { transform: rotateX(180deg); }
.chip__face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; white-space: nowrap; }
.chip__face--back { transform: rotateX(180deg); }
@media (prefers-reduced-motion: reduce) {
  .chip__flip { transition: none; }
  .chip--subject:hover .chip__flip, .chip--subject:focus-visible .chip__flip { transform: none; }
}

/* subject banner */
.subject-banner {
  display: flex; align-items: flex-start; gap: 16px;
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--accent, var(--indigo));
  box-shadow: var(--shadow-s);
}
.subject-banner__ico { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft, var(--tint2)); color: var(--accent, var(--indigo)); }
.subject-banner__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.subject-banner__txt h3 { font-size: 1.18rem; margin-bottom: 4px; }
.subject-banner__txt p { font-size: .92rem; color: var(--muted); }
.subject-banner__note { margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--accent, var(--indigo)); }

/* cards grid */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(14px); animation: cardIn .5s var(--ease) forwards;
}
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__code {
  font-family: "Sora"; font-weight: 700; font-size: .9rem; color: #fff;
  background: var(--accent, var(--indigo)); padding: 6px 13px; border-radius: 10px;
}
.card__topic { font-family: "Sora"; font-weight: 600; font-size: 1.04rem; color: var(--ink); }
.card__row { display: flex; gap: 12px; }
.card__row .rico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft, var(--tint2)); color: var(--accent, var(--indigo));
}
.card__row .rico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__row .rlbl { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.card__row p { font-size: .92rem; color: var(--body); }
.card__row .handson p { color: var(--ink); }
.card__support {
  font-size: .88rem; color: var(--accent-d, var(--indigo-d)); background: var(--accent-soft, var(--tint2));
  border-radius: var(--radius-s); padding: 12px 14px;
}
.card__support b { font-weight: 700; }
.card__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; padding-top: 14px; border-top: 1px dashed var(--line); }
.card__tools .tlbl { width: 100%; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.card__tools span {
  font-size: .82rem; font-weight: 600; color: var(--body);
  background: var(--tint); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}

/* ====================== STEM PROJECTS ====================== */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.project {
  position: relative; border-radius: var(--radius); padding: 30px 26px; color: #fff; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.project:hover { transform: translateY(-6px); }
.project--6 { background: linear-gradient(155deg, #5b5fe0, #7a5cf0); }
.project--7 { background: linear-gradient(155deg, #16c4a8, #21a4d8); }
.project--8 { background: linear-gradient(155deg, #ff7a59, #ff5b8a); }
.project__grade { font-family: "Sora"; font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.project h3 { color: #fff; font-size: 1.32rem; margin: 8px 0 8px; }
.project__desc { font-size: .96rem; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.project__threads { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.project__threads li { font-size: .8rem; font-weight: 600; background: rgba(255,255,255,.2); padding: 6px 12px; border-radius: 999px; }
.project__ring { position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255,255,255,.12); top: -50px; right: -50px; }

.toolbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-s); }
.toolbox > h3 { font-size: 1.25rem; margin-bottom: 18px; }
.toolbox__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.toolbox__item { padding: 16px; border-radius: var(--radius-s); background: var(--tint); }
.toolbox__item strong { display: block; font-family: "Sora"; color: var(--ink); margin-bottom: 4px; font-size: .98rem; }
.toolbox__item span { font-size: .86rem; color: var(--muted); }

/* ====================== TOOLS ====================== */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 10px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool--link { color: inherit; cursor: pointer; }
.tool--link:hover { border-color: var(--indigo); }
.tool--link:hover h3 { color: var(--indigo-d); }
.tool--link:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.tool h3 { font-size: 1.02rem; display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.tool__ext {
  width: 17px; height: 17px; flex: none; margin-top: 2px;
  fill: none; stroke: var(--indigo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: .55; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.tool--link:hover .tool__ext { opacity: 1; transform: translate(2px, -2px); }
.tool p { font-size: .9rem; color: var(--muted); flex: 1; }
.tool__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tool__tag { font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--tint2); color: var(--indigo-d); }
.tool__cost { font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #eafaf5; color: #0e8f78; }

/* ====================== DATOS ====================== */
.calendar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.cal {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-s); border-top: 6px solid var(--indigo);
}
.cal:nth-child(2) { border-top-color: var(--teal); }
.cal:nth-child(3) { border-top-color: var(--coral); }
.cal__tag { font-size: .8rem; font-weight: 700; color: var(--muted); }
.cal h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.cal p { font-size: .93rem; color: var(--muted); }
.datanote { background: var(--tint2); border-radius: var(--radius); padding: 24px 28px; }
.datanote p { color: var(--body); font-size: .98rem; }
.datanote strong { color: var(--indigo-d); }

/* ====================== FOOTER ====================== */
.footer { background: #14152e; color: #c9cae6; padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__logo { width: 56px; height: 56px; object-fit: cover; object-position: center 43%; background: #fff; border-radius: 14px; }
.footer__brand strong { display: block; font-family: "Sora"; color: #fff; font-size: 1.1rem; }
.footer__brand span { font-size: .85rem; color: #9698c4; }
.footer__col h4 { color: #fff; font-size: .96rem; margin-bottom: 12px; }
.footer__col p { font-size: .9rem; margin-bottom: 8px; color: #b0b2da; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 24px; max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: #8082b0;
}
.footer__bar strong { color: #d7d8f5; }

/* ====================== ANIMATIONS ====================== */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(16px,-20px); } }
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .premises { grid-template-columns: repeat(2, 1fr); }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .bili-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .toolbox__grid { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .calendar { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 36px 0 60px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .premises { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: 1fr; }
  .toolbox__grid { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .picker { flex-direction: column; gap: 18px; }
  .btn { width: 100%; }
}

/* ====================== ACOMPAÑAMIENTO DOCENTE ====================== */
/* Subtítulo centrado, reutilizado dentro de la sección de acompañamiento.
   El resto de la sección reutiliza componentes existentes (.vm-note, .cycle,
   .vm-pillars), por lo que no necesita estilos propios. */
.subhead {
  text-align: center; font-family: "Sora"; font-weight: 700; color: var(--ink);
  font-size: 1.18rem; margin: 30px 0 18px;
}

/* ====================== REDUCED MOTION ====================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card { opacity: 1 !important; transform: none !important; }
}
