/* ============================================================
   Preuniversitario Líder — Design tokens
   ============================================================ */
:root {
  --white: #ffffff;
  --bg: #fffdf9;
  --bg-alt: #fff6ec;
  --navy-900: #0a2036;
  --navy-800: #0e2c48;
  --navy-700: #163d63;
  --navy-600: #234e79;
  --orange-600: #e8590c;
  --orange-500: #ff7a30;
  --orange-400: #ff9557;
  --orange-100: #ffe4cc;
  --orange-50: #fff1e3;
  --text: #16253a;
  --text-soft: #4d5c72;
  --text-faint: #7c8aa0;
  --border: #ece3d6;

  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(10, 32, 54, 0.06);
  --shadow-md: 0 12px 30px rgba(10, 32, 54, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 32, 54, 0.16);
  --shadow-orange: 0 14px 30px rgba(232, 89, 12, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Reset
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============================================================
   Reveal-on-scroll (content-first: visible without JS)
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(232, 89, 12, 0.34); }
.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: rgba(10, 32, 54, 0.16);
}
.btn--ghost:hover { border-color: var(--navy-800); background: rgba(10, 32, 54, 0.04); transform: translateY(-3px); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--whatsapp {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  margin-top: 28px;
}
.btn--whatsapp:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-3px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 253, 249, 0.92);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container { max-width: 1360px; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--navy-900);
}
.logo__text strong { color: var(--orange-600); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:not(.btn):hover { color: var(--navy-900); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.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); }

/* ============================================================
   Intro banner
   ============================================================ */
.intro-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding-block: 56px;
  text-align: center;
}
.intro-banner__inner { max-width: 880px; }
.intro-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--white);
}
.intro-banner__accent { color: var(--orange-400); font-style: italic; }
.intro-banner__desc {
  margin-top: 18px;
  font-size: 1.08rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
.intro-banner__sep { color: var(--orange-400); margin: 0 10px; }
.intro-banner__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.intro-banner__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 600;
  justify-content: center;
  text-align: center;
}

@media (max-width: 640px) {
  .intro-banner { padding-block: 40px; }
  .intro-banner__sep { display: block; margin: 6px 0 0; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: 76px; }

.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10, 32, 54, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 50% at 70% 20%, black, transparent);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.blob--orange {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--orange-400), transparent 70%);
  top: -120px; right: -80px;
}
.blob--navy {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--navy-600), transparent 70%);
  bottom: -160px; left: -100px;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 26px) scale(1.06); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--orange-400); }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px var(--orange-100);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.12;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.text-accent { color: var(--orange-600); font-style: italic; }

.hero__subtitle {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 1.08rem;
  color: var(--text-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero__actions .btn--ghost svg { transition: transform 0.25s var(--ease); }
.hero__actions .btn--ghost:hover svg { transform: translateY(2px); }

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy-900);
}
.stat__label { font-size: 0.85rem; color: var(--text-faint); }

.hero__media { position: relative; }
.hero__frame { position: relative; }

.hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.badge-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy-800);
  animation: chip-float 6s ease-in-out infinite;
}
.badge-chip strong { color: var(--navy-900); }
.badge-chip__icon { font-size: 1.3rem; }
.badge-chip--top { top: 10%; left: -8%; animation-delay: -1.5s; }
.badge-chip--bottom { bottom: 8%; right: -6%; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   Trust strip / marquee
   ============================================================ */
.trust-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}
.trust-strip__inner { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.trust-strip__label {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 75s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--navy-700);
  white-space: nowrap;
  opacity: 0.75;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Section shared
   ============================================================ */
section { padding-block: 108px; }
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy-900);
  margin-top: 14px;
  letter-spacing: -0.01em;
}
.section-head__desc { margin-top: 18px; color: var(--text-soft); font-size: 1.05rem; }
.section-head .eyebrow { justify-content: center; width: 100%; }

/* ============================================================
   Advantages
   ============================================================ */
.advantages { background: var(--bg-alt); }
.advantages__banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 21 / 9;
  margin-bottom: 56px;
}
.advantages__banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.advantages__cta { text-align: center; margin-top: 48px; }
.advantage-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.advantage-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-100), var(--orange-50));
  color: var(--orange-600);
  margin-bottom: 22px;
  transition: transform 0.35s var(--ease);
}
.advantage-card:hover .advantage-card__icon { transform: scale(1.08) rotate(-4deg); }
.advantage-card__icon svg { width: 26px; height: 26px; }
.advantage-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.advantage-card p { color: var(--text-soft); font-size: 0.96rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.cupo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cupo-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cupo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cupo-card__photo { aspect-ratio: 1 / 1; }
.cupo-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.cupo-card__quote {
  margin: 16px 18px 0;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-soft);
}
.cupo-card__meta { padding: 10px 18px 20px; }
.cupo-card__meta strong { display: block; font-size: 0.92rem; color: var(--navy-900); }
.cupo-card__meta span { font-size: 0.78rem; color: var(--orange-600); font-weight: 600; }

.cupo-feature {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cupo-feature img { width: 100%; height: 100%; object-fit: cover; }
.cupo-feature__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 32, 54, 0.85) 100%);
}
.cupo-feature__overlay h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
}
.cupo-feature__overlay p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  margin-top: 6px;
  max-width: 46ch;
}

.testimonials__cta { text-align: center; margin-top: 48px; }

/* ============================================================
   Ubicación
   ============================================================ */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.location__box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  position: relative;
}
.location__box-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(10, 32, 54, 0.82);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}
.location__box iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}
.location__info {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.location__info p { color: var(--text-soft); font-size: 1rem; }
.location__info strong { color: var(--navy-900); }

@media (max-width: 760px) {
  .location__grid { grid-template-columns: 1fr; }
  .location__box iframe { height: 280px; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  color: var(--white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact__info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600;
  margin-top: 14px;
  line-height: 1.2;
}
.contact__info > p { margin-top: 18px; color: rgba(255, 255, 255, 0.72); max-width: 44ch; }

.advisor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 14px 20px 14px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  max-width: fit-content;
}
.advisor-card img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 122, 48, 0.35);
}
.advisor-card strong { display: block; font-size: 0.92rem; color: var(--white); }
.advisor-card span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); }

.contact__list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); }
.contact__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--orange-400);
  flex-shrink: 0;
}
.contact__icon svg { width: 18px; height: 18px; }
.contact__list a:hover { color: var(--orange-400); }

.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.form-row input, .form-row textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px var(--orange-100);
}
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 0.85rem; color: var(--navy-700); min-height: 1.2em; }
.form-note.is-success { color: #1a7f4a; font-weight: 600; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.6); padding-block: 40px; }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.logo--footer .logo__text { color: var(--white); }
.logo--footer .logo__text strong { color: var(--orange-400); }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-nav a:hover { color: var(--orange-400); }
.site-footer__copy { font-size: 0.82rem; }

/* ============================================================
   Reduced motion — pause only ambient/looping decoration
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .badge-chip, .marquee__track { animation: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1240px) {
  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--border); white-space: normal; }
  .nav .btn { margin-top: 16px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__media { order: -1; max-width: 420px; margin-inline: auto; }
  .badge-chip { font-size: 0.76rem; padding: 10px 12px; }
  .badge-chip--top { left: -4%; }
  .badge-chip--bottom { right: -2%; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .cupo-grid { grid-template-columns: repeat(3, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  section { padding-block: 76px; }

  .trust-strip__inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 18px; }
  .trust-strip__label { white-space: normal; font-size: 0.78rem; }
  .marquee { width: 100%; }
  .marquee__track span { font-size: 1.05rem; }

  .hero__stats { flex-wrap: wrap; gap: 28px 36px; }
  .badge-chip { position: static; margin-top: 14px; display: inline-flex; }
  .badge-chip--top, .badge-chip--bottom { animation: none; }

  .advantages__banner { aspect-ratio: 4 / 3; }
  .advantages__grid { grid-template-columns: 1fr; }
  .cupo-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cupo-card__quote { margin: 12px 14px 0; font-size: 0.82rem; }
  .cupo-card__meta { padding: 8px 14px 16px; }
  .cupo-feature { aspect-ratio: 4 / 3; }
  .cupo-feature__overlay { padding: 18px 20px; }
  .cupo-feature__overlay h3 { font-size: 1.1rem; }

  .advisor-card { max-width: 100%; }

  .contact__form { padding: 28px; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}

/* Chat widget */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 200; }

.chat-widget__toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-orange);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.chat-widget__toggle:hover { transform: scale(1.06); }
.chat-widget__icon-close { display: none; }
.chat-widget__toggle[aria-expanded="true"] .chat-widget__icon-open { display: none; }
.chat-widget__toggle[aria-expanded="true"] .chat-widget__icon-close { display: block; }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 350px;
  max-width: calc(100vw - 32px);
  height: 470px;
  max-height: calc(100vh - 140px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.chat-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  flex-shrink: 0;
}
.chat-panel__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.chat-panel__header strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.chat-panel__header span { font-size: 0.76rem; color: rgba(255, 255, 255, 0.7); }

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.chat-msg--bot {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg--user {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg--typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.chat-msg--typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.chat-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-panel__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}
.chat-panel__form input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 0.86rem;
  color: var(--text);
  background: var(--bg);
}
.chat-panel__form input:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 3px var(--orange-100); }
.chat-panel__form button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  flex-shrink: 0;
  background: var(--navy-900);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.chat-panel__form button:hover { background: var(--navy-700); }
.chat-panel__form button:disabled { opacity: 0.5; cursor: default; }

.chat-panel__hint {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-align: center;
  padding: 6px 12px 12px;
  background: var(--white);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .logo { gap: 8px; }
  .logo__mark { width: 56px; height: 56px; }
  .logo__text { font-size: 1.1rem; white-space: nowrap; }
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-panel { width: calc(100vw - 28px); height: calc(100vh - 130px); bottom: 72px; }
}

/* ============================================================
   Asesoría rápida (mini formulario)
   ============================================================ */
.quick-lead { padding-block: 72px; }
.quick-lead__card {
  max-width: 560px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}
.quick-lead__head { text-align: center; margin-bottom: 28px; }
.quick-lead__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.quick-lead__head p { margin-top: 10px; color: var(--text-soft); font-size: 1rem; }
.quick-lead__form { display: flex; flex-direction: column; gap: 18px; }
.quick-lead__form .form-note { text-align: center; }

@media (max-width: 640px) {
  .quick-lead__card { padding: 30px 22px; }
}

/* ============================================================
   Camino de admisión
   ============================================================ */
.admission-path { background: var(--bg-alt); }

.path { position: relative; max-width: 720px; margin: 0 auto; }
.path__step {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
}
.path__step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -8px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--orange-400) 0 6px, transparent 6px 12px);
}
.path__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.path__content { padding-top: 8px; }
.path__content h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.path__content p { color: var(--text-soft); font-size: 0.95rem; }

.path__goal {
  display: flex;
  align-items: center;
  gap: 24px;
}
.path__goal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy-900);
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
}
.path__goal-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-900);
}

.path__cta {
  max-width: 720px;
  margin: 56px auto 0;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}
.path__cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.path__cta p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 56ch;
  margin-inline: auto;
}
.path__cta .btn { margin-top: 26px; }

@media (max-width: 640px) {
  .path__cta { padding: 30px 22px; }
  .path__goal-label { font-size: 1.1rem; }
}

/* ============================================================
   Simulador de puntaje de postulación
   ============================================================ */
.score-sim__card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}
.score-sim__form { display: flex; flex-direction: column; gap: 18px; }
.score-sim__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.score-sim__error { font-size: 0.85rem; color: #c23b1f; min-height: 1.2em; }

.score-sim__result {
  display: none;
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  text-align: center;
}
.score-sim__result.is-visible { display: block; }
.score-sim__result-label { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; margin-bottom: 6px; }
.score-sim__result-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
}
.score-sim__result-value small {
  font-size: 0.32em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 6px;
}
.score-sim__result-caption { margin-top: 8px; color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; }

.score-sim__note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: center;
}

@media (max-width: 640px) {
  .score-sim__card { padding: 30px 22px; }
  .score-sim__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Calculadora de gastos universitarios
   ============================================================ */
.calculator { background: var(--bg-alt); }

.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-step { padding: 40px 44px; }
.calc-step + .calc-step { border-top: 1px solid var(--border); }
.calc-step--table { padding: 32px 0 0; border-top: 1px dashed var(--border); margin-top: 28px; }

.calc-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.calc-step__num {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
}
.calc-step__hint { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 20px; }
.calc-step__hint strong { color: var(--navy-900); }

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.calc-form-grid__wide { grid-column: 1 / -1; }

.calc-form-grid select,
.calc-table select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 40px 13px 16px;
  color: var(--text);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234d5c72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.calc-form-grid select:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px var(--orange-100);
}

.calc-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-bottom: 8px;
  cursor: pointer;
}
.calc-consent input {
  margin-top: 3px;
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--orange-500);
}
.calc-consent a { color: var(--orange-600); font-weight: 600; }
.calc-consent a:hover { text-decoration: underline; }

.calc-error {
  color: #c23b1f;
  font-size: 0.86rem;
  font-weight: 600;
  min-height: 1.2em;
  margin: 10px 0 0;
}

/* Tabla editable */
.calc-table-wrap { overflow-x: auto; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.calc-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-900);
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.calc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  vertical-align: middle;
}
.calc-table tbody tr:last-child td { border-bottom: none; }
.calc-note {
  display: block;
  font-size: 0.76rem;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 2px;
}
.calc-table td .calc-note { display: inline; margin: 0; }
.calc-shared-cell { background: var(--bg-alt); text-align: center; }
.calc-fixed-zero {
  display: inline-block;
  color: #1a7f4a;
  font-weight: 700;
  background: rgba(26, 127, 74, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
}

.calc-table input[type="number"] {
  width: 100px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  color: var(--text);
  background: var(--bg);
  font-weight: 600;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.calc-shared-cell input[type="number"] { width: 140px; }
.calc-table input[type="number"]:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px var(--orange-100);
}

.calc-table-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 30px;
}
.calc-preview {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--orange-600);
  min-height: 1.3em;
}

/* Resultados */
.calc-results { display: none; }
.calc-results.is-visible { display: block; }

.calc-result-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.calc-result-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-result-card__label { font-size: 0.82rem; color: var(--text-soft); font-weight: 600; }
.calc-result-card__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy-900);
}

.calc-savings {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: var(--white);
  margin-bottom: 28px;
}
.calc-savings__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-400);
  margin-bottom: 8px;
}
.calc-savings__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
}
.calc-savings__equiv { display: block; margin-top: 10px; font-size: 0.94rem; color: rgba(255, 255, 255, 0.8); }

.calc-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 48px;
  height: 200px;
  margin-bottom: 32px;
  padding-top: 20px;
}
.calc-chart__col { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; }
.calc-chart__bar {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  transition: height 0.9s var(--ease);
  height: 0%;
}
.calc-chart__bar span { font-size: 0.82rem; font-weight: 700; color: var(--white); }
.calc-chart__bar--privada { background: linear-gradient(180deg, var(--orange-500), var(--orange-600)); }
.calc-chart__bar--publica { background: linear-gradient(180deg, var(--navy-600), var(--navy-800)); }
.calc-chart__label { font-size: 0.84rem; color: var(--text-soft); font-weight: 600; text-align: center; }

.btn--whatsapp-alt {
  display: flex;
  width: 100%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.28);
}
.btn--whatsapp-alt:hover { background: #20bd5a; transform: translateY(-3px); }

.calc-legal {
  max-width: 800px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .calc-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .calc-step { padding: 28px 22px; }
  .calc-result-cards { grid-template-columns: 1fr; }
  .calc-chart { gap: 24px; }
  .calc-chart__col { width: 90px; }

  .calc-table thead { display: none; }
  .calc-table, .calc-table tbody, .calc-table tr, .calc-table td { display: block; width: 100%; }
  .calc-table tr {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 12px;
    border-bottom: none;
  }
  .calc-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: none;
    text-align: left;
  }
  .calc-table td[data-label]::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-faint);
    flex-shrink: 0;
  }
  .calc-table td:first-child::before { display: none; }
  .calc-table td:first-child { font-weight: 600; color: var(--navy-900); justify-content: flex-start; }
  .calc-shared-cell { background: transparent; }
  .calc-table input[type="number"] { width: 110px; text-align: right; }
  .calc-shared-cell input[type="number"] { width: 110px; }

  .btn--whatsapp-alt {
    white-space: normal;
    height: auto;
    border-radius: 18px;
    line-height: 1.35;
    text-align: center;
    padding: 14px 18px;
  }
}
