/* =========================================================
   Colegio John Harvard — estilos
   Paleta tomada del escudo: azul real, azul marino, amarillo oro
   ========================================================= */
:root {
  --navy: #0b1660;
  --navy-2: #121f7a;
  --blue: #2563eb;
  --blue-soft: #e8efff;
  --sky: #18b4f5;
  --gold: #fcc419;
  --gold-2: #f5a90a;
  --ink: #0f172a;
  --muted: #5b6478;
  --line: #e4e8f1;
  --bg: #ffffff;
  --tint: #f5f7fc;
  --radius: 20px;
  --shadow: 0 20px 50px -20px rgba(11, 22, 96, .28);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 0;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(252, 196, 25, .7); }
.btn--gold:hover { background: #ffd43b; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #1d4fd8; }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--sm { padding: .6em 1.15em; font-size: .92rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font: 700 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .8rem;
}
.eyebrow--gold { color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 14px 0;
}
.header.is-scrolled { background: rgba(11, 22, 96, .92); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -15px rgba(0,0,0,.4); padding: 8px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); font-size: 1.15rem; }
.brand__text small { font-size: .75rem; color: var(--gold); letter-spacing: .05em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .5em .8em; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:not(.btn):hover { background: rgba(255,255,255,.12); color: #fff; }
.nav__cta { margin-left: 8px; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.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 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, #1f3bd1 0%, var(--navy-2) 45%, var(--navy) 100%);
  padding: 140px 0 120px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--1 { width: 420px; height: 420px; background: var(--sky); top: -120px; right: -80px; animation: float 12s ease-in-out infinite; }
.blob--2 { width: 360px; height: 360px; background: var(--gold); bottom: -200px; left: -120px; opacity: .25; animation: float 14s ease-in-out infinite reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes float { 50% { transform: translate(30px, 40px); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.pill {
  display: inline-flex; align-items: center; gap: .6em;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: .45em 1em; border-radius: 999px; font-size: .88rem; font-weight: 500; margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(252,196,25,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(252,196,25,0); } 100% { box-shadow: 0 0 0 0 rgba(252,196,25,0); } }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; margin-bottom: 1.2rem; }
.hl { color: var(--gold); }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 2.6rem; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1; }
.hero__trust span { font-size: .85rem; color: rgba(255,255,255,.7); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.seal {
  width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%;
  padding: 14px; background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 40px 80px -20px rgba(0,0,0,.5), 0 0 120px rgba(24,180,245,.35);
  animation: bob 6s ease-in-out infinite;
}
.seal img { width: 100%; height: 100%; border-radius: 50%; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-2deg); } }
.floating-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 16px;
  box-shadow: var(--shadow); font-size: .9rem; max-width: 250px;
}
.floating-card strong { display: block; line-height: 1.2; }
.floating-card small { color: var(--muted); }
.floating-card .ic { font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--blue-soft); border-radius: 12px; flex: none; }
.floating-card--a { top: 6%; left: -6%; animation: bob 7s ease-in-out infinite; }
.floating-card--b { bottom: 4%; right: -4%; animation: bob 8s ease-in-out infinite reverse; }

/* ---------- Slider ---------- */
.showcase { margin-top: -70px; position: relative; z-index: 2; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.slider__track { display: flex; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.slide { margin: 0; flex: 0 0 100%; aspect-ratio: 1800 / 681; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--navy); font-size: 1.6rem; line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.2); transition: background .2s;
}
.slider__btn:hover { background: #fff; }
.slider__btn--prev { left: 14px; }
.slider__btn--next { right: 14px; }
.slider__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s, background .3s; }
.slider__dots button[aria-selected="true"] { width: 28px; background: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section__head--light p { color: rgba(255,255,255,.75); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/4.2; object-fit: cover; width: 100%; }
.about__badge {
  position: absolute; right: -18px; bottom: 32px; background: var(--gold); color: var(--navy);
  padding: 18px 22px; border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.about__badge strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.about__badge span { font-weight: 600; font-size: .9rem; }
.about__copy p { color: var(--muted); font-size: 1.05rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.value { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, transform .2s; }
.value:hover { border-color: var(--blue); transform: translateY(-3px); }
.value > span { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 1.15rem; }
.value strong { display: block; }
.value small { color: var(--muted); }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.level {
  background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.level:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.level::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.level:hover::after { transform: scaleX(1); }
.level__num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--blue-soft); -webkit-text-stroke: 1.5px var(--blue); display: block; margin-bottom: 12px; }
.level p { color: var(--muted); margin: 0; }
.level--feature { background: linear-gradient(160deg, var(--blue) 0%, var(--navy-2) 100%); color: #fff; border: 0; }
.level--feature p { color: rgba(255,255,255,.82); }
.level--feature .level__num { color: transparent; -webkit-text-stroke-color: var(--gold); }
.link-arrow { display: inline-block; margin-top: 14px; color: var(--gold); font-weight: 600; text-decoration: none; }

/* Careers */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 .92rem var(--font-body);
  padding: .55em 1.1em; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.careers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.careers li {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: var(--tint); font-weight: 600; transition: transform .25s, background .25s, opacity .3s;
}
.careers li:hover { background: var(--blue-soft); transform: translateX(4px); }
.careers li.is-hidden { display: none; }
.ci { width: 42px; height: 42px; display: grid; place-items: center; flex: none; background: #fff; border-radius: 12px; font-size: 1.25rem; box-shadow: 0 4px 12px -6px rgba(11,22,96,.3); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 34px 30px; position: relative; transition: transform .25s, background .25s;
}
.plan:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.plan__icon { font-size: 2rem; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 8px 0 8px 26px; position: relative; color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.1); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.plan--highlight { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.plan--highlight:hover { background: #ffd43b; }
.plan--highlight li { color: var(--navy); border-color: rgba(11,22,96,.15); }
.plan--highlight li::before { color: var(--navy); }
.plan__tag { position: absolute; top: 18px; right: 18px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; }

/* Extras */
.extras { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; }
.extra-highlight { background: linear-gradient(150deg, var(--sky) 0%, var(--blue) 100%); color: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.extra-highlight p { color: rgba(255,255,255,.9); margin: 0; }
.flag-row { display: flex; gap: 10px; margin-bottom: 18px; }
.flag-row span { background: rgba(255,255,255,.2); padding: .4em .9em; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tags span {
  background: #fff; border: 1px solid var(--line); padding: .75em 1.15em; border-radius: 14px; font-weight: 500;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tags span:hover { border-color: var(--gold-2); transform: translateY(-3px); box-shadow: 0 10px 20px -12px rgba(245,169,10,.6); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 18px; }
.g { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g:hover img { transform: scale(1.06); }
.g figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-weight: 600;
  background: linear-gradient(transparent, rgba(11,22,96,.85));
}
.g--wide { grid-column: span 2; }
.g--tall { grid-row: span 2; }
.g--tall img { object-position: 50% 75%; }
.g img.pos-bottom { object-position: 50% 100%; }

/* CTA */
.cta {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  background: radial-gradient(120% 120% at 0% 0%, #1f3bd1 0%, var(--navy) 70%);
  color: #fff; border-radius: 28px; padding: 56px; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--gold); filter: blur(120px); opacity: .25; right: -100px; top: -100px; }
.cta__copy { position: relative; }
.cta__copy p { color: rgba(255,255,255,.8); font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.form { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.form h3 { margin: 0; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 1rem var(--font-body); color: var(--ink); padding: .8em 1em; border-radius: 12px;
  border: 1px solid var(--line); background: var(--tint); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.15); background: #fff; }
.form__note { color: var(--muted); text-align: center; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; }
.contact__list li > span { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 14px; font-size: 1.2rem; box-shadow: 0 6px 16px -10px rgba(11,22,96,.4); }
.contact__list strong { display: block; }
.contact__list div { color: var(--muted); }
.contact__list a { color: var(--blue); text-decoration: none; font-weight: 500; }
.contact__list a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 56px 0 24px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer__brand strong { color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
.footer__brand p { margin: 0; font-size: .9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--gold); }
.footer__bottom { padding-top: 20px; text-align: center; }

/* WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .levels { grid-template-columns: repeat(2, 1fr); }
  .floating-card--a { left: 0; }
  .floating-card--b { right: 0; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; width: min(320px, 85vw);
    height: 100vh; height: 100dvh; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--navy); padding: 90px 20px 20px;
    transform: translateX(100%); transition: transform .35s ease; box-shadow: -20px 0 40px rgba(0,0,0,.3);
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: .9em 1em; font-size: 1.05rem; }
  .nav__cta { margin: 12px 0 0; }
  .menu-toggle { position: relative; z-index: 2; }

  .hero { padding: 120px 0 110px; }
  .hero__inner, .about, .extras, .cta, .contact { grid-template-columns: 1fr; }
  .hero__visual { min-height: 320px; }
  .seal { width: 220px; }
  .floating-card { font-size: .8rem; padding: 10px 12px; }
  .floating-card .ic { width: 36px; height: 36px; font-size: 1.2rem; }
  .plans { grid-template-columns: 1fr; }
  .about__badge { right: 12px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .g--tall { grid-row: span 2; }
  .cta { padding: 36px 24px; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .brand__text small { display: none; }
  .levels { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g--wide { grid-column: auto; }
  .g--tall { grid-row: span 1; }
  .hero__trust { gap: 22px; }
  .slider__btn { width: 34px; height: 34px; font-size: 1.2rem; }
  .showcase { margin-top: -50px; }
  .floating-card--a { top: 0; }
  .floating-card--b { bottom: 0; }
  .extra-highlight { padding: 28px; }
}
