/* =========================================================
   Colegio Juan Félix Sánchez — estilos
   Paleta tomada del logotipo: turquesa y amarillo como
   protagonistas; azul y rojo como acentos puntuales.
   ========================================================= */

:root {
  --teal: #0b8f99;
  --teal-dark: #076a72;
  --teal-deep: #053f45;
  --teal-soft: #e3f4f4;
  --yellow: #f7b51c;
  --yellow-dark: #d99a05;
  --yellow-soft: #fff4d6;
  --blue: #12609f;
  --red: #e5401d;

  --ink: #1b2a2e;
  --ink-soft: #4a5b60;
  --line: #e4e0d6;
  --cream: #fbf8f2;
  --white: #ffffff;
  --stone: #f1ece2;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(5, 63, 69, .06), 0 12px 32px -12px rgba(5, 63, 69, .18);
  --shadow-lg: 0 30px 60px -24px rgba(5, 63, 69, .35);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -.01em;
  color: var(--teal-deep);
}
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
strong { font-weight: 700; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--ink-soft); font-size: .95rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--yellow); }
.eyebrow--light { color: var(--yellow); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn--primary { background: var(--teal); color: var(--white); box-shadow: 0 10px 24px -10px rgba(11, 143, 153, .7); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--yellow { background: var(--yellow); color: var(--teal-deep); box-shadow: 0 10px 24px -10px rgba(247, 181, 28, .7); }
.btn--yellow:hover { background: #ffc43d; }
.btn--dark { background: var(--teal-deep); color: var(--white); }
.btn--dark:hover { background: #022c30; }
.btn--ghost { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn--ghost:hover { background: var(--teal-soft); }
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { background: rgba(251, 248, 242, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-size: .78rem; line-height: 1.2; color: var(--ink-soft); }
.nav__brand strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--teal-deep); font-weight: 700; }
.nav__menu { display: flex; align-items: center; gap: 1.4rem; }
.nav__menu a:not(.btn) {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink); position: relative; padding: .3rem 0;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; }

@media (max-width: 1080px) {
  .nav__toggle {
    display: grid; gap: 5px; place-content: center; width: 46px; height: 46px; border-radius: 12px;
    background: var(--white); border: 1px solid var(--line); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 20px; height: 2px; background: var(--teal-deep); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: .5rem 1.25rem 1.5rem; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: 1rem; }
  .nav.menu-open { background: var(--cream); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  min-height: min(100vh, 900px); display: flex; align-items: center;
  background:
    radial-gradient(900px 500px at 85% 20%, var(--teal-soft), transparent 70%),
    radial-gradient(600px 400px at 5% 90%, var(--yellow-soft), transparent 70%),
    var(--cream);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--teal-deep); margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: italic; color: var(--teal);
  background: linear-gradient(transparent 72%, rgba(247, 181, 28, .55) 72%, rgba(247, 181, 28, .55) 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2.2rem; }
.hero__facts li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 3px solid var(--yellow); }
.hero__facts strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--teal-deep); }
.hero__facts span { font-size: .88rem; color: var(--ink-soft); }

.hero__visual { display: grid; place-items: center; }
.hero__logo-ring {
  --ring: min(420px, 80vw);
  position: relative; width: var(--ring); height: var(--ring); flex: none; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-lg); padding: calc(var(--ring) * .06);
  display: grid; place-items: center;
  animation: float 7s ease-in-out infinite;
}
.hero__logo-ring::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 2px dashed rgba(11, 143, 153, .35); animation: spin 60s linear infinite;
}
.hero__logo-ring img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 50%; }

.hero__shapes .shape { position: absolute; border-radius: 50%; opacity: .9; }
.shape--yellow { width: 26px; height: 26px; background: var(--yellow); top: 22%; left: 47%; animation: float 6s ease-in-out infinite; }
.shape--teal { width: 16px; height: 16px; background: var(--teal); bottom: 6%; left: 3%; animation: float 8s ease-in-out infinite reverse; }
.shape--blue { width: 14px; height: 14px; background: var(--blue); top: 16%; right: 6%; animation: float 9s ease-in-out infinite; }
.shape--red { width: 18px; height: 18px; background: var(--red); bottom: 14%; right: 38%; animation: float 7s ease-in-out infinite reverse; }

@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--teal-soft); }
.section--stone { background: var(--stone); }
.section__head { max-width: 44rem; margin-bottom: 3rem; }
.section__head h2 { margin-bottom: 1rem; }
.section__head p:last-child { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.section__head--light h2 { color: var(--white); }
.section__head--light p:last-child { color: rgba(255, 255, 255, .8); }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about__text h2 { margin-bottom: 1.4rem; }
.about__text > p { color: var(--ink-soft); font-size: 1.08rem; }
.pillars { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.8rem; }
.pillars li { display: flex; gap: .9rem; align-items: flex-start; }
.pillars h3 { font-size: 1rem; margin-bottom: .2rem; }
.pillars p { font-size: .9rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.pillars__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.pillars__icon svg { width: 22px; height: 22px; fill: currentColor; }
.pillars__icon--teal { background: var(--teal-soft); color: var(--teal); }
.pillars__icon--yellow { background: var(--yellow-soft); color: var(--yellow-dark); }
.pillars__icon--red { background: #fde6e0; color: var(--red); }
.pillars__icon--blue { background: #e1ecf7; color: var(--blue); }

.video-frame {
  border-radius: var(--radius); overflow: hidden; background: var(--teal-deep);
  box-shadow: var(--shadow-lg); position: relative; border: 6px solid var(--white);
}
.video-frame video { width: 100%; max-height: 560px; object-fit: contain; background: #000; }
.team { margin-top: 1.5rem; background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); }
.team__title { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .8rem; }
.team ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.team li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.team li:last-child { border-bottom: 0; padding-bottom: 0; }
.team li span { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Programas ---------- */
.programs {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(247, 181, 28, .18), transparent 70%),
    linear-gradient(135deg, var(--teal-deep), var(--teal-dark));
  color: var(--white);
}
.programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.program {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 2rem; transition: transform .3s ease, background-color .3s ease;
}
.program:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .11); }
.program h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin: 1.2rem 0 .7rem; }
.program p { color: rgba(255, 255, 255, .82); font-size: .98rem; }
.program__teacher { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem !important; }
.program__teacher strong { color: var(--yellow); }
.program__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--teal); color: var(--white); }
.program__icon svg { width: 28px; height: 28px; fill: currentColor; }
.program__icon--yellow { background: var(--yellow); color: var(--teal-deep); }
.program__icon--red { background: var(--red); }

.program--featured { position: relative; border-color: rgba(247, 181, 28, .55); background: rgba(247, 181, 28, .09); }
.program__ally {
  position: absolute; top: 1.4rem; right: 1.4rem;
  padding: .3rem .75rem; border-radius: 999px; background: var(--yellow); color: var(--teal-deep);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}

.alliance {
  margin-top: 1.5rem; display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--radius);
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
}
.alliance__brand {
  text-align: center; padding: 1.8rem 1rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--yellow-soft), var(--teal-soft));
}
.alliance__label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .4rem; }
.alliance__brand img {
  width: min(200px, 70%); height: auto; margin: 0 auto 1rem; border-radius: 18px; padding: 6px;
  background: var(--white); box-shadow: var(--shadow);
}
.alliance__ig {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px;
  background: var(--white); color: var(--teal-deep); font-size: .88rem; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .2s, color .2s;
}
.alliance__ig:hover { transform: translateY(-2px); color: var(--teal); }
.alliance__ig svg { width: 18px; height: 18px; fill: currentColor; }
.alliance__tools { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.alliance__tools li {
  display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border-radius: var(--radius-sm);
  background: var(--cream); border: 1px solid var(--line);
}
.alliance__tools svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--teal-soft); fill: var(--teal); }
.alliance__tools li:nth-child(2) svg { background: var(--yellow-soft); fill: var(--yellow-dark); }
.alliance__tools li:nth-child(3) svg { background: #e1ecf7; fill: var(--blue); }
.alliance__tools span { font-size: .78rem; color: var(--ink-soft); line-height: 1.3; }
.alliance__tools strong { display: block; font-size: .95rem; color: var(--teal-deep); }
.alliance__text h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--teal-deep); margin-bottom: .8rem; }
.alliance__text > p { color: var(--ink-soft); }
.alliance__points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.alliance__points li { position: relative; padding-left: 1.6rem; font-size: .95rem; color: var(--ink-soft); }
.alliance__points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.alliance__points strong { color: var(--teal-deep); }

/* ---------- Niveles ---------- */
.tabs {
  display: inline-flex; gap: .3rem; padding: .35rem; margin-bottom: 2.2rem;
  background: var(--white); border-radius: 999px; box-shadow: var(--shadow);
}
.tabs__btn {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: .8rem 1.5rem; font: 600 .95rem var(--font-body); color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.tabs__btn.is-active { background: var(--teal); color: var(--white); }
.tabs__btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; animation: fadeUp .45s ease both; }
.levels[hidden] { display: none; }
.levels__note { grid-column: 1 / -1; margin: .5rem 0 0; color: var(--ink-soft); font-size: .95rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

.level {
  --accent: var(--teal); --accent-soft: var(--teal-soft);
  position: relative; display: flex; flex-direction: column; gap: 1.2rem;
  background: var(--white); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.level::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent); }
.level:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.level--yellow { --accent: var(--yellow); --accent-soft: var(--yellow-soft); }
.level--blue { --accent: var(--blue); --accent-soft: #e1ecf7; }
.level--red { --accent: var(--red); --accent-soft: #fde6e0; }
.level__top { display: flex; align-items: center; gap: 1rem; }
.level__badge {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.level--yellow .level__badge { color: var(--yellow-dark); }
.level h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--teal-deep); }
.level__age { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.level__teachers { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; flex: 1; }
.level__teachers li { display: flex; align-items: center; gap: .75rem; }
.level__teachers strong { display: block; font-size: .98rem; }
.level__teachers small { color: var(--ink-soft); font-size: .8rem; }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  background: var(--accent); color: var(--white);
}
.level--yellow .avatar { color: var(--teal-deep); }
.level__dl {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .8rem 1rem; border-radius: var(--radius-sm); text-decoration: none;
  background: var(--cream); border: 1px solid var(--line); font-weight: 600; font-size: .92rem;
  transition: background-color .2s, border-color .2s;
}
.level__dl::before {
  content: ""; width: 18px; height: 18px; flex: none; order: -1;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16 7 11h3V4h4v7h3zM5 18h14v2H5z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16 7 11h3V4h4v7h3zM5 18h14v2H5z'/%3E%3C/svg%3E") center/contain no-repeat;
  color: var(--teal);
}
.level__dl { justify-content: flex-start; }
.level__dl span { margin-left: auto; font-size: .7rem; letter-spacing: .1em; padding: .2rem .5rem; border-radius: 6px; background: var(--accent-soft); color: var(--teal-deep); }
.level__dl:hover { background: var(--teal-soft); border-color: var(--teal); }

/* ---------- Admisiones ---------- */
.admissions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.admit {
  position: relative; border-radius: var(--radius); padding: clamp(2rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; overflow: hidden;
}
.admit::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -90px; bottom: -110px; opacity: .45;
}
.admit--teal { background: var(--teal-soft); }
.admit--teal::after { background: rgba(11, 143, 153, .25); }
.admit--yellow { background: var(--yellow-soft); }
.admit--yellow::after { background: rgba(247, 181, 28, .35); }
.admit h3 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--teal-deep); margin: .8rem 0 .4rem; }
.admit p { color: var(--ink-soft); max-width: 30rem; margin-bottom: 1.6rem; }
.admit .btn { position: relative; z-index: 1; margin-top: auto; }
.admit__status {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
  background: var(--white); font-size: .8rem; font-weight: 700; color: var(--teal-dark);
}
.admit__status i { width: 8px; height: 8px; border-radius: 50%; background: #1fb36b; box-shadow: 0 0 0 4px rgba(31, 179, 107, .2); }
.admit__status--may { color: var(--yellow-dark); }
.admit__status--may i { background: var(--yellow); box-shadow: 0 0 0 4px rgba(247, 181, 28, .25); }

/* ---------- Juan Félix Sánchez ---------- */
.jfs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.jfs__text h2 { margin-bottom: 1.4rem; }
.jfs__text p { color: var(--ink-soft); }
.jfs__text blockquote {
  margin: 1.8rem 0 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--yellow);
  background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--teal-deep);
}
.jfs__photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.photo--portrait { aspect-ratio: 3 / 4; }
.photo--chapel { aspect-ratio: 4 / 5; transform: translateY(2.5rem); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .8rem;
  font-size: .78rem; font-weight: 600; color: var(--white);
  background: linear-gradient(transparent, rgba(5, 63, 69, .85)); z-index: 1;
}
.photo-credits { grid-column: 1 / -1; margin: 3rem 0 0; font-size: .75rem; color: var(--ink-soft); }
.photo-credits a { color: inherit; }
.photo-credits a:hover { color: var(--teal); }
/* Fondo mientras no exista la foto real */
.photo.is-placeholder { background: linear-gradient(160deg, #d8d0bf, #b9ad96); }
.photo.is-placeholder::before {
  content: "Foto pendiente"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.photo--chapel.is-placeholder {
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.12) 22px 24px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.08) 38px 40px),
    linear-gradient(160deg, #a89c86, #7d7262);
}

/* ---------- micolegio.com ---------- */
.portal {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(2.2rem, 5vw, 4rem); border-radius: 28px; color: var(--white);
  background:
    radial-gradient(500px 300px at 0% 100%, rgba(247, 181, 28, .22), transparent 70%),
    linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: var(--shadow-lg);
}
.portal h2 { color: var(--white); margin-bottom: 1.2rem; }
.portal__text p { color: rgba(255, 255, 255, .86); }
.portal__text p strong { color: var(--white); }
.portal .btn { margin-top: .8rem; }
.portal__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: s; }
.portal__steps li {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-sm);
}
.portal__steps span {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--teal-deep); font-weight: 700;
}
.portal__steps p { margin: .15rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .78); }

/* ---------- Manual ---------- */
.manual { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.manual__doc { display: grid; place-items: center; perspective: 1200px; }
.manual__cover {
  width: min(300px, 70vw); aspect-ratio: 3 / 4; border-radius: 6px 18px 18px 6px;
  background: linear-gradient(160deg, var(--white), #f5f1e8);
  box-shadow: -10px 0 0 var(--teal), var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  text-align: center; padding: 2rem; transform: rotateY(-14deg) rotateZ(-2deg);
  transition: transform .5s ease;
}
.manual:hover .manual__cover { transform: rotateY(0) rotateZ(0); }
.manual__cover img { width: 90px; }
.manual__cover span { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--teal-deep); line-height: 1.1; }
.manual__cover small { font-weight: 700; letter-spacing: .14em; color: var(--yellow-dark); }
.manual__text h2 { margin-bottom: 1.4rem; }
.manual__highlight {
  font-size: 1.12rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--white); border-left: 4px solid var(--yellow); box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
}
.manual__text > p:not(.manual__highlight):not(.eyebrow) { color: var(--ink-soft); }
.manual__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* ---------- Trabaja con nosotros ---------- */
.careers { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.careers__text h2 { margin-bottom: 1.4rem; }
.careers__text > p:not(.eyebrow):not(.muted) { font-size: 1.1rem; color: var(--ink-soft); }
.careers__form { background: var(--white); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-lg); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .field .label { font-size: .85rem; font-weight: 600; color: var(--teal-deep); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font: 500 1rem var(--font-body); color: var(--ink); background: var(--cream); transition: border-color .2s, background-color .2s;
}
.field input:focus { outline: none; border-color: var(--teal); background: var(--white); }
.field input.is-invalid { border-color: var(--red); }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  padding: 1.6rem 1rem; border-radius: var(--radius-sm); border: 2px dashed #c9c2b2;
  background: var(--cream); cursor: pointer; color: var(--ink-soft); font-size: .92rem;
  transition: border-color .2s, background-color .2s;
}
.drop svg { width: 30px; height: 30px; fill: var(--teal); }
.drop:hover, .drop.is-drag { border-color: var(--teal); background: var(--teal-soft); }
.drop.has-file { border-style: solid; border-color: var(--teal); background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; }
.drop.is-invalid { border-color: var(--red); }
#cvFile:focus-visible + .drop, .drop:focus-within { outline: 3px solid var(--yellow); }
.form__msg { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form__msg.is-error { color: var(--red); }
.form__msg.is-ok { color: #138a52; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-deep); color: rgba(255, 255, 255, .82); padding: 4.5rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 3rem; }
.footer__brand img { background: var(--white); border-radius: 50%; padding: 6px; margin-bottom: 1.2rem; }
.footer__brand p { font-size: .95rem; max-width: 22rem; }
.footer__brand .footer__slogan { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--yellow); margin-bottom: .6rem; }
.footer h3 { font-family: var(--font-display); color: var(--white); font-size: 1.4rem; font-weight: 600; margin-bottom: 1.2rem; }
.contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; font-size: .95rem; }
.contact span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); font-weight: 700; margin-bottom: .15rem; }
.contact a { color: var(--white); text-decoration: none; word-break: break-word; }
.contact a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: var(--white); transition: background-color .2s, color .2s, transform .2s;
}
.social a:hover { background: var(--yellow); color: var(--teal-deep); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__map { border-radius: var(--radius); overflow: hidden; min-height: 260px; border: 4px solid rgba(255, 255, 255, .12); }
.footer__map { position: relative; }
.footer__map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; filter: saturate(.85); }
.footer__directions {
  position: absolute; right: .8rem; top: .8rem; padding: .55rem 1rem; border-radius: 999px;
  background: var(--yellow); color: var(--teal-deep); font-size: .85rem; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow);
}
.footer__directions:hover { background: #ffc43d; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--yellow); text-decoration: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 100; transform: translate(-50%, 150%);
  background: var(--teal-deep); color: var(--white); padding: .9rem 1.4rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); font-size: .92rem; max-width: calc(100% - 2rem); text-align: center;
  visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .35s ease; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero__grid, .about, .jfs, .portal, .manual, .careers { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__logo-ring { --ring: min(260px, 60vw); }
  .programs__grid, .alliance { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__map { grid-column: 1 / -1; }
  .jfs__photos { max-width: 520px; margin-bottom: 2.5rem; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }
  .admissions, .pillars, .field-row, .footer__grid, .alliance__tools { grid-template-columns: 1fr; }
  .hero__facts { gap: 1.4rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .tabs { display: flex; width: 100%; }
  .tabs__btn { flex: 1; padding: .8rem .6rem; font-size: .88rem; }
  .admit .btn { width: 100%; }
  .hero h1 em { white-space: normal; }
}
