:root {
  --primary-color: #2d3e50;
  --secondary-color: #f7f9f9;
  --white-color: #ffffff;
  --text-color: #272729;
  --accent-color: #007eb0;
  --accent-secundary-color: #30a4d2;
  --firstgradient-color: #ffaf65;
  --secondgradient-color: #ffaf65;
  --bg-color: #f7f9f9;
  --border: #1d3f5c33;
  --success: #3cb371;
  --muted: #5c6570;
  /* 标题：思源宋体（Noto Serif SC）｜内文：思源黑体（Noto Sans SC）— 均为 SIL OFL 免费商用 */
  --serif-font: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --sans-font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --primary-font: var(--sans-font);
  /* 字号等级 */
  --fs-xs: 0.75rem;                                    /* 12 — 标签 / 角标 */
  --fs-sm: 0.875rem;                                   /* 14 — 导航 / 按钮 / 辅助 */
  --fs-base: 1rem;                                     /* 16 — 正文 */
  --fs-md: 1.0625rem;                                  /* 17 — 强调正文 */
  --fs-lg: 1.125rem;                                   /* 18 — h4 */
  --fs-xl: 1.25rem;                                    /* 20 — h3 */
  --fs-2xl: clamp(1.375rem, 2vw, 1.625rem);            /* 22–26 — 小节标题 */
  --fs-3xl: clamp(1.625rem, 2.8vw, 2.125rem);           /* 26–34 — 区块标题 h2 */
  --fs-4xl: clamp(1.875rem, 3.5vw, 2.5rem);             /* 30–40 — 内页 h1 */
  --fs-5xl: clamp(2rem, 4vw, 3.25rem);                  /* 32–52 — 首页英雄标题 */
  --header-h: 90px;
  --max: 1440px;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--sans-font);
  font-size: var(--fs-base);
  color: var(--text-color);
  background: var(--white-color);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-color); text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
p { margin: 0 0 1rem; color: var(--text-color); }
h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  color: var(--primary-color);
  font-family: var(--serif-font);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}
h1 { font-size: var(--fs-4xl); font-weight: 600; line-height: 1.2; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); line-height: 1.35; }
h4 { font-size: var(--fs-lg); line-height: 1.4; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  max-width: 100%;
}
.section-lead {
  color: var(--muted);
  max-width: min(40rem, 100%);
  margin-bottom: 1.5rem;
  line-break: auto;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .container { width: min(var(--max), calc(100% - 5rem)); }
}

/* Buttons — Affinitas */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 1.35rem;
  border-radius: 12.5rem;
  font-family: var(--sans-font);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-orange {
  background: linear-gradient(67deg, var(--firstgradient-color), var(--secondgradient-color));
  color: var(--text-color) !important;
}
.btn-orange:hover {
  background: var(--accent-color) !important;
  color: #fff !important;
}
.btn-accent {
  background: var(--accent-color);
  color: #fff !important;
}
.btn-accent:hover { background: var(--accent-secundary-color); }
.btn-white {
  background: #fff;
  color: var(--accent-color) !important;
}
.btn-white:hover {
  background: var(--accent-color) !important;
  color: #fff !important;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color) !important;
}
.btn-outline:hover {
  background: var(--accent-color) !important;
  color: #fff !important;
}
.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.logo img {
  height: auto;
  max-width: 187px;
  margin: 12px 0;
}
@media (min-width: 768px) {
  .logo img { max-width: 220px; margin: 16px 0; }
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop > li { position: relative; list-style: none; }
.nav-desktop > li > a,
.nav-desktop > li > .nav-label {
  display: block;
  padding: 2rem 0.85rem;
  font-family: var(--sans-font);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}
.nav-desktop > li > .nav-label {
  cursor: default;
  user-select: none;
}
.nav-desktop > li:hover > a,
.nav-desktop > li:hover > .nav-label,
.nav-desktop > li.is-active > a,
.nav-desktop > li.is-active > .nav-label {
  color: var(--accent-color);
}
.nav-desktop > li.has-children:hover {
  box-shadow: 0 2px 0 0 var(--accent-color);
}
.nav-desktop .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(29, 63, 92, 0.12);
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  z-index: 20;
}
.nav-desktop > li:hover > .sub-menu { display: block; }
.nav-desktop .sub-menu a {
  display: block;
  padding: 0.7rem 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-desktop .sub-menu a:hover { color: var(--accent-color); background: var(--secondary-color); }

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--primary-color);
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: 0.25s var(--ease);
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  padding: 1.5rem 1rem 2rem;
  overflow-y: auto;
  z-index: 999;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid #d2d2d2;
  color: #000;
  font-weight: 700;
}
.mobile-nav-group {
  border-bottom: 1px solid #d2d2d2;
  padding: 0.35rem 0 0.5rem;
}
.mobile-nav-group .nav-label {
  display: block;
  padding: 0.85rem 0 0.35rem;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: default;
}
.mobile-nav-group a.sub {
  padding: 0.75rem 0 0.75rem 1rem;
  border-bottom: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
}
.mobile-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem 1.35rem;
  border-bottom: none;
  text-align: center;
}

@media (min-width: 1100px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

/* Hero — between full-bleed tall and overly short */
.hero-frame {
  position: relative;
  width: 100%;
  height: min(38vw, 60vh, 600px);
  min-height: 340px;
  background: #131e28;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #131e28 url("../assets/images/hero-poster.jpg") center / cover no-repeat;
}
.hero-video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 177.78vh;
  min-height: 56.25vw;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  /* extend 1px past edges to hide mobile subpixel seams */
  inset: -1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(19, 30, 40, 0.1) 0%, rgba(19, 30, 40, 0.38) 48%, rgba(19, 30, 40, 0.86) 100%);
}
.hero-frame .hero-content {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: none;
  padding: 0 0 2.75rem;
  display: block;
}
.hero-frame .hero-content .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-h1 {
  font-family: var(--serif-font);
  font-size: var(--fs-5xl);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.45em;
  max-width: 36rem;
  letter-spacing: 0;
}
.hero-h1 em {
  font-style: italic;
  color: #ffc280;
}
.hero-sub {
  font-family: var(--sans-font);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.76);
  margin: 0 0 1.4em;
  max-width: 32rem;
  line-height: 1.72;
}
.hero-frame .hero-actions {
  display: flex;
  gap: 1.4em;
  align-items: center;
  margin: 0;
  flex-wrap: wrap;
}
.hero-frame .btn-orange {
  border-radius: 5px;
  padding: 0.78em 1.9em;
  font-size: clamp(11px, 0.78vw, 13px);
}
.trust-bar {
  background: #131e28;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 20px;
  letter-spacing: 0.03em;
}
.trust-icon {
  font-size: 10px;
  color: #ffaf65;
  flex-shrink: 0;
}
.trust-sep {
  color: rgba(255, 255, 255, 0.16);
  font-size: 16px;
  flex-shrink: 0;
}
.hero-mobile { display: none; }

@media (max-width: 768px) {
  .hero-frame {
    height: 0;
    min-height: 0;
    padding-bottom: 75%;
  }
  .hero-frame .hero-content { display: none; }
  .hero-video-wrap video {
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: calc(100% + 2px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.02);
  }
  .hero-overlay {
    inset: -2px;
  }
  .trust-bar { padding: 14px 0; }
  .trust-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 9px;
  }
  .trust-item {
    font-size: 11px;
    padding: 0;
    text-align: center;
    justify-content: center;
    line-height: 1.3;
  }
  .trust-sep { display: none; }
  .hero-mobile {
    display: block;
    background: #131e28;
    padding: 28px 0 36px;
  }
  .mob-h1 {
    font-family: var(--serif-font);
    font-size: var(--fs-4xl);
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 14px;
  }
  .mob-h1 em {
    font-style: italic;
    color: #ffc280;
  }
  .mob-sub {
    font-family: var(--sans-font);
    font-size: var(--fs-sm);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.72;
    margin: 0 0 24px;
  }
  .mob-actions { display: flex; flex-direction: column; gap: 12px; }
  .mob-actions .btn-orange {
    width: 100%;
    border-radius: 5px;
    text-align: center;
  }
  .section-title,
  .page-section-title,
  .mob-h1,
  h1 {
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: auto;
  }
  :root {
    --fs-3xl: clamp(1.375rem, 5.5vw, 1.75rem);
    --fs-4xl: clamp(1.5rem, 6vw, 1.875rem);
  }
}

/* Legacy badge utility (unused on home hero) */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.1);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Sections common */
.section { padding: 4.5rem 0; }
.section-bg { background: var(--secondary-color); }
.section-kicker {
  font-family: var(--sans-font);
  color: var(--accent-color);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--serif-font);
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 100%;
  line-break: auto;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: normal;
}
.section-title .accent { color: var(--accent-secundary-color); }
.prose p { color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }

.grid-2 {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}

.media-round {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.media-round img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }

/* Stats bar */
.stats {
  margin-top: 2.5rem;
  padding: 1.75rem 1.25rem;
  background: var(--secondary-color);
  border-radius: 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
}
.stat strong {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Three pillars */
.pillars-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 800px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pillar-num {
  color: var(--accent-color);
  font-family: var(--sans-font);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: 0.65rem;
}
.pillar h3 {
  font-size: var(--fs-xl);
  margin-bottom: 0.65rem;
}
.pillar > p:not(.pillar-result) {
  color: var(--muted);
  margin: 0;
  font-size: var(--fs-base);
  flex: 1;
}
.pillar-result {
  margin-top: auto !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-color) !important;
  font-family: var(--sans-font);
  font-weight: 500;
  font-size: var(--fs-sm) !important;
  line-height: 1.6;
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.step {
  padding: 1.5rem 1.25rem;
  background: var(--secondary-color);
  border-radius: var(--radius);
}
.step strong {
  display: block;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Stage cards */
.stage-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .stage-grid { grid-template-columns: repeat(4, 1fr); }
}
.stage-card {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  display: block;
}
.stage-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: -2;
  transition: transform 0.6s var(--ease);
}
.stage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(45,62,80,0.05) 15%, rgba(45,62,80,0.82) 100%);
}
.stage-card:hover img { transform: scale(1.05); }
.stage-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem;
}
.stage-body small { display: block; opacity: 0.85; font-weight: 700; margin-bottom: 0.2rem; }
.stage-body h3 { color: #fff; margin: 0 0 0.3rem; font-size: 1.25rem; }
.stage-body p { margin: 0; color: rgba(255,255,255,0.9); font-size: 0.9rem; }

/* Results panel (legacy compact) */
.results-panel {
  background: var(--primary-color);
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}
.results-panel h3 {
  margin: 0 0 1rem;
  font-family: var(--sans-font);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.92rem;
}
.result-row:last-child { border-bottom: 0; }
.result-row strong {
  color: #4ade80;
  white-space: nowrap;
  font-size: 1.02rem;
}

/* Full-bleed navy results band — colegiobase.com .s3 */
.section-navy {
  background: var(--primary-color);
  padding: 4rem 0;
  color: rgba(255, 255, 255, 0.88);
}
.section-navy .section-kicker {
  color: rgba(255, 255, 255, 0.5);
}
.section-navy .section-kicker::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: #ffaf65;
  vertical-align: middle;
  margin-right: 10px;
}
.section-navy .page-section-title,
.section-navy h2 {
  color: #fff;
}
.section-navy .page-section-title em,
.section-navy h2 em {
  font-style: italic;
  color: #ffc280;
}
.section-navy .prose p,
.section-navy .lead-w {
  color: rgba(255, 255, 255, 0.65);
}
.results-dark-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .results-dark-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.results-table {
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}
.results-table__head {
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 20px;
  font-family: var(--sans-font);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}
.results-table__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 14px 20px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.07);
}
.results-table__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.results-table__val {
  font-family: var(--sans-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: #4ade80;
  text-align: right;
  white-space: nowrap;
}
.results-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 240px;
  margin-bottom: 1.5rem;
}
.results-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.results-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 30, 40, 0.7) 0%, transparent 60%);
}
.section-navy .section-title {
  color: #fff;
  margin-bottom: 1.25rem;
}
.section-navy .section-title em {
  font-style: italic;
  color: #ffc280;
}
.section-navy .btn-orange {
  border-radius: 5px;
}
.results-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.5rem;
}
.results-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
}
.results-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.results-badge strong {
  display: block;
  font-family: var(--sans-font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.results-badge span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* Cards grids */
.card-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 800px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  padding: 1.25rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.ib-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.ib-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 22%;
}
.ib-card-body { padding: 1.15rem; }
.ib-card-body small {
  display: block;
  color: var(--accent-color);
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}

/* Timeline */
.timeline {
  border-left: 2px solid rgba(0,126,176,0.25);
  margin-left: 0.35rem;
  padding-left: 1.35rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 1.4rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary-color);
}
.timeline-item strong { color: var(--accent-color); font-weight: 800; }
.timeline-item h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 2rem; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.data th,
table.data td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.data th {
  background: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 800;
}
table.data td { color: var(--muted); }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-color);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.25s var(--ease);
}
.faq details[open] > summary,
.faq details.is-open > summary {
  color: var(--accent-color);
}
.faq details[open] > summary::after,
.faq details.is-open > summary::after {
  content: "–";
  color: var(--accent-color);
  transform: rotate(180deg);
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq details.is-open > .faq-panel {
  grid-template-rows: 1fr;
}
.faq-panel__inner {
  overflow: hidden;
  min-height: 0;
}
.faq-panel p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}
/* Native open before JS hydrates */
.faq details[open]:not(.is-ready) > .faq-panel {
  grid-template-rows: 1fr;
}

/* Page hero (inner) */
/* Inner page heroes */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: var(--secondary-color);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--serif-font);
  font-size: var(--fs-4xl);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}
.breadcrumb {
  font-family: var(--sans-font);
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--accent-color); font-weight: 700; }

.page-hero--media {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  color: #fff;
  background-size: cover;
  background-position: center 30%;
  isolation: isolate;
  border-bottom: 0;
  padding: 0;
}
.page-hero--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(45,62,80,0.25) 0%, rgba(45,62,80,0.78) 100%);
}
.page-hero--media h1,
.page-hero--media .breadcrumb,
.page-hero--media .breadcrumb a,
.page-hero--media p {
  color: #fff;
}
.page-hero--media .breadcrumb a { opacity: 0.85; text-decoration: underline; }
.page-hero--media .container { padding-bottom: 2.5rem; padding-top: 4rem; }

.feature-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin: 2.5rem 0;
}
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
  .feature-row.reverse { direction: rtl; }
  .feature-row.reverse > * { direction: ltr; }
}
.feature-row .media-round { min-height: 240px; }

/* Campus life page */
.life-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin: 0.5rem 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.life-toc a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-color);
}
.life-toc a:hover { text-decoration: underline; }
.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 0 0 0.5rem;
}
@media (min-width: 800px) {
  .photo-strip { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
}
.photo-strip img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 800px) {
  .photo-strip img { height: 180px; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.checklist li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9aa3ad;
}

/* Full-width numbered rows — better for 5 items than incomplete card grids */
.row-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.row-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.35rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}
.row-list__num {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  line-height: 1.6;
  padding-top: 0.1rem;
}
.row-list h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}
.row-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.row-list--compact > li {
  padding: 0.85rem 0;
}
.row-list--compact h3 { font-size: 0.98rem; }
.row-list--compact p { font-size: 0.9rem; }

.num-block {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.num-block article {
  padding: 1.25rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.num-block h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.num-block p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 800px) {
  .num-block.cols-2 { grid-template-columns: 1fr 1fr; }
  .num-block.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.uni-list {
  columns: 1;
  gap: 1.5rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
@media (min-width: 700px) {
  .uni-list { columns: 2; }
}
.page-section-title {
  font-family: var(--serif-font);
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  max-width: 100%;
  line-break: auto;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: normal;
}
.section-head {
  max-width: 46rem;
  margin-bottom: 1.75rem;
}
.section-head p:last-child {
  color: var(--muted);
  margin: 0;
}
.lead-lg {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 0;
}

/* Enquire band */
.enquire {
  position: relative;
  padding: 4.5rem 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(45,62,80,0.92) 0%, rgba(45,62,80,0.55) 55%, rgba(45,62,80,0.25) 100%),
    url("../assets/images/enquire-bg.jpg") center 50% / cover no-repeat;
}
.enquire h2 {
  font-family: var(--serif-font);
  color: #fff;
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}
.enquire p { color: rgba(255,255,255,0.9); max-width: 34rem; }
.enquire-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Footer — match colegiobase.com base-footer */
.site-footer,
.base-footer {
  font-family: var(--primary-font);
  background: #f7f9f9;
}
.base-footer__main {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.6fr;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 3rem 2.5rem;
  border-bottom: 1px solid #e8eaec;
}
.base-footer__brand {
  padding-right: 3rem;
  border-right: 1px solid #e8eaec;
}
.base-footer__logo {
  display: block;
  margin-bottom: 1.2rem;
}
.base-footer__logo img {
  max-width: 170px;
  width: 100%;
  height: auto;
}
.base-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.base-footer__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: #272729;
  line-height: 1.5;
}
.base-footer__contact-row svg {
  width: 14px;
  height: 14px;
  color: #ffaf65;
  flex-shrink: 0;
  margin-top: 3px;
}
.base-footer__contact-row a {
  color: #272729;
}
.base-footer__contact-row a:hover { color: #007eb0; }
.base-footer__note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #666;
}
.base-footer__badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.base-footer__badge {
  border: 1px solid rgba(45, 62, 80, 0.25);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #2d3e50;
  text-transform: uppercase;
}
.base-footer__links {
  padding: 0 2.5rem;
  border-right: 1px solid #e8eaec;
}
.base-footer__familias {
  display: block;
  border: 1.5px solid #ffaf65;
  color: #2d3e50;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.base-footer__familias:hover {
  background: #ffaf65;
  color: #131e28;
}
.base-footer__nav-link {
  display: block;
  font-size: 0.88rem;
  color: #272729;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.base-footer__nav-link:hover { color: #007eb0; }
.base-footer__contacto {
  display: block;
  background: #ffaf65;
  color: #131e28;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  margin: 0.8rem 0;
  text-align: center;
}
.base-footer__contacto:hover {
  background: #ffc280;
  color: #131e28;
}
.base-footer__social {
  padding-left: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.base-footer__social-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}
.base-footer__social-icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.base-footer__social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(45, 62, 80, 0.2);
  border-radius: 50%;
  color: #2d3e50;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.base-footer__social-icons a:hover {
  border-color: #ffaf65;
  color: #ffaf65;
}
.base-footer__social-icons svg {
  width: 20px;
  height: 20px;
  display: block;
}
.base-footer__social-icons a.base-footer__social-xhs {
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border-radius: 50%;
}
.base-footer__social-icons a.base-footer__social-xhs img {
  display: block;
  width: 34px;
  height: auto;
  max-width: 34px;
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
}
.base-footer__social-icons a.base-footer__social-xhs:hover img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(72%) sepia(42%) saturate(700%) hue-rotate(325deg) brightness(103%) contrast(101%);
}
.base-footer__qr {
  text-align: center;
}
.base-footer__qr img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 0.4rem;
  border: 1px solid #e8eaec;
  background: #fff;
}
.base-footer__qr p {
  margin: 0;
  font-size: 0.75rem;
  color: #5c6570;
  line-height: 1.4;
}

.wechat-card {
  display: inline-block;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.wechat-card img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 0.65rem;
}
.wechat-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.base-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: 100%;
  padding: 1rem 3rem;
  background: #eef1f2;
  border-top: 1px solid #e8eaec;
  box-sizing: border-box;
}
.base-footer__copyright {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}
.base-footer__legal {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.base-footer__legal a {
  font-size: 0.78rem;
  color: #666;
}
.base-footer__legal a:hover { color: #007eb0; }

@media (max-width: 860px) {
  .base-footer__main {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1.5rem 1.5rem;
    gap: 2rem;
  }
  .base-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #e8eaec;
    padding-bottom: 1.5rem;
  }
  .base-footer__links {
    padding: 0;
    border-right: none;
  }
  .base-footer__social {
    padding-left: 0;
    align-items: flex-start;
  }
  .base-footer__social-icons {
    align-items: flex-start;
  }
  .base-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
  }
}
@media (max-width: 560px) {
  .base-footer__main { grid-template-columns: 1fr; }
}

/* Cookie consent bar */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  padding: 1rem;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.cookie-consent.is-hiding {
  opacity: 0;
  transform: translateY(12px);
}
.cookie-consent__inner {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(45, 62, 80, 0.18);
}
.cookie-consent__text {
  margin: 0;
  flex: 1 1 240px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}
.cookie-consent__text a {
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: underline;
}
.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex-shrink: 0;
}
.cookie-consent__btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--text-color);
  background: #fff;
}
.field input[readonly] {
  background: #f3f5f6;
  color: #5c6570;
  cursor: default;
}
.field textarea { min-height: 120px; resize: vertical; }
.ym-roller {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.ym-roller__wheels {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 0;
  position: relative;
}
.ym-roller__wheels::before,
.ym-roller__wheels::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  height: 44px;
}
.ym-roller__wheels::before {
  top: 28px;
  background: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0.75) 55%, transparent 100%);
}
.ym-roller__wheels::after {
  bottom: 0;
  background: linear-gradient(to top, #fff 0%, rgba(255,255,255,0.75) 55%, transparent 100%);
}
.ym-roller__col {
  min-width: 0;
  border-right: 1px solid var(--border);
}
.ym-roller__col:last-child { border-right: 0; }
.ym-roller__caption {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.45rem 0 0.15rem;
  background: #fff;
  position: relative;
  z-index: 3;
}
.ym-roller__viewport {
  height: 168px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  touch-action: pan-y;
  position: relative;
  scrollbar-width: none;
}
.ym-roller__viewport::-webkit-scrollbar { display: none; }
.ym-roller__viewport::before {
  content: "";
  position: sticky;
  top: 56px;
  display: block;
  height: 44px;
  margin-bottom: -44px;
  border-top: 1px solid rgba(0, 126, 176, 0.25);
  border-bottom: 1px solid rgba(0, 126, 176, 0.25);
  background: rgba(0, 126, 176, 0.06);
  pointer-events: none;
  z-index: 1;
}
.ym-roller__list {
  list-style: none;
  margin: 0;
  padding: 56px 0;
}
.ym-roller__item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 2;
}
.ym-roller__item.is-active {
  color: var(--primary-color);
  font-weight: 800;
}
.ym-roller__hint {
  margin: 0;
  padding: 0.45rem 0.75rem 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--secondary-color);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(18, 140, 70, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.wa-float svg {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
}
.wa-float:hover {
  background: #1ebe57;
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(18, 140, 70, 0.45);
  color: #fff;
}
.wa-float:focus-visible {
  outline: 3px solid #131e28;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .wa-float {
    width: 3.15rem;
    height: 3.15rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
  .wa-float svg {
    width: 1.55rem;
    height: 1.55rem;
  }
}

.inline-cta {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: var(--secondary-color);
  border-radius: var(--radius);
  margin-top: 2rem;
}
@media (min-width: 800px) {
  .inline-cta {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}
.inline-cta h3 { margin-bottom: 0.4rem; }
.inline-cta p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.main-pad { padding-bottom: 0; }
.content-block { margin-bottom: 2.5rem; }
.content-block h2 { font-size: 1.45rem; margin-bottom: 0.85rem; }
.content-block h3 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }

/* ── IB page (aligned with colegiobase.com/bachillerato-internacional) ── */
.ib-hero {
  position: relative;
  width: 100%;
  height: min(38vw, 60vh, 560px);
  min-height: 340px;
  background: #131e28;
  overflow: hidden;
}
.ib-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ib-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.ib-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(19,30,40,.18) 0%, rgba(19,30,40,.42) 45%, rgba(19,30,40,.88) 100%);
}
.ib-hero__content {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4% 0 3%;
}
.ib-hero__eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--sans-font);
  font-size: clamp(8px, 0.7vw, 11px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffc280;
  background: rgba(13, 20, 28, 0.55);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 175, 101, 0.25);
  margin-bottom: 0.7em;
}
.ib-hero h1 {
  font-family: var(--serif-font);
  font-size: var(--fs-5xl);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.45em;
  max-width: 36rem;
  letter-spacing: 0;
}
.ib-hero h1 em {
  font-style: italic;
  color: #ffc280;
}
.ib-hero__sub {
  font-family: var(--sans-font);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.76);
  margin: 0 0 1.25em;
  max-width: 34rem;
  line-height: 1.72;
}
.ib-hero__sub strong { color: #fff; font-weight: 600; }
.ib-hero__actions { margin-bottom: 1.4em; }
.ib-hero__actions .btn { border-radius: 5px; }
.ib-hero__stages {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 1em;
}
.ib-hero__stage {
  flex: 1;
  min-width: 140px;
  padding-right: 1.5em;
  margin-right: 1.5em;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.ib-hero__stage:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.ib-hero__stage-label {
  display: block;
  font-family: var(--sans-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffaf65;
  margin-bottom: 4px;
}
.ib-hero__stage-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}
@media (max-width: 700px) {
  .ib-hero {
    height: auto;
    min-height: 0;
    padding-bottom: 0;
  }
  .ib-hero__media { position: relative; height: 220px; }
  .ib-hero__overlay { background: linear-gradient(180deg, transparent 20%, rgba(19,30,40,.75) 100%); }
  .ib-hero__content {
    position: relative;
    background: #131e28;
    padding: 1.5rem 0 1.75rem;
  }
  .ib-hero__stages { flex-direction: column; gap: 0.85rem; }
  .ib-hero__stage {
    border-right: 0;
    margin: 0;
    padding: 0;
  }
}

/* Image + copy intro block */
.ib-split {
  display: grid;
  gap: 0;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin: 1.75rem 0 2.5rem;
  background: #fff;
  box-shadow: 0 10px 36px rgba(45, 62, 80, 0.06);
}
@media (min-width: 900px) {
  .ib-split { grid-template-columns: 5fr 4fr; min-height: 400px; }
}
.ib-split__media { position: relative; min-height: 240px; }
.ib-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.ib-split__body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, var(--secondary-color) 100%);
}
@media (min-width: 900px) {
  .ib-split__body { padding: 2.75rem 2.5rem; }
}
.ib-split__kicker {
  font-family: var(--sans-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
}
.ib-split__body h3 {
  font-family: var(--serif-font);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}
.ib-split__body h3 em {
  font-style: italic;
  color: var(--accent-color);
}
.ib-split__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Numbered reasons — text-first, distinct from image split */
.ib-reasons {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 860px) {
  .ib-reasons { grid-template-columns: 1fr 1fr; }
}
.ib-reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 1.25rem;
  background: #fff;
  border-radius: 14px;
  border: 0.5px solid var(--border);
}
.ib-reason__num {
  font-family: var(--serif-font);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--accent-color);
  line-height: 1;
  font-style: italic;
  min-width: 2.2rem;
}
.ib-reason__body h3 {
  font-family: var(--serif-font);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
  color: var(--primary-color);
}
.ib-reason__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Step-by-step IB path */
.ib-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ib-step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.1rem;
  align-items: stretch;
}
.ib-step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ib-step__num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--serif-font);
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ib-step__line {
  flex: 1;
  width: 2px;
  min-height: 1.5rem;
  background: linear-gradient(180deg, var(--accent-color), rgba(0, 126, 176, 0.15));
  margin: 0.35rem 0;
}
.ib-step__panel {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.35rem 1.5rem;
  margin-bottom: 1.15rem;
}
.ib-step:last-child .ib-step__panel { margin-bottom: 0; }
.ib-step__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.ib-step__tag {
  font-family: var(--sans-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
}
.ib-step__age {
  font-size: 0.8rem;
  color: var(--muted);
}
.ib-step__panel h3 {
  font-family: var(--serif-font);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  margin: 0 0 0.65rem;
  line-height: 1.25;
}
.ib-step__panel > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.ib-step__list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.ib-step__list li { margin-bottom: 0.3rem; }
.ib-step__list strong { color: var(--primary-color); }
.ib-step__link {
  font-family: var(--sans-font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-color);
}
.ib-step__link:hover { text-decoration: underline; }
@media (min-width: 800px) {
  .ib-step { grid-template-columns: 4rem 1fr; gap: 1.5rem; }
  .ib-step__panel { padding: 1.75rem 1.85rem; }
}

.ib-compare {
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  margin: 1.5rem 0;
}
.ib-compare__head,
.ib-compare__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.ib-compare__head {
  background: var(--secondary-color);
  border-bottom: 1px solid var(--border);
}
.ib-compare__head > div,
.ib-compare__row > div {
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
}
.ib-compare__label {
  font-family: var(--sans-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ib-compare__col-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}
.ib-compare__col-title {
  font-family: var(--serif-font);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--primary-color);
}
.ib-compare__row {
  border-top: 0.5px solid var(--border);
}
.ib-compare__row > div:first-child {
  color: var(--muted);
  font-size: 0.85rem;
}
.ib-compare__row strong { color: var(--primary-color); }
@media (max-width: 700px) {
  .ib-compare { overflow-x: auto; }
  .ib-compare__head,
  .ib-compare__row { min-width: 540px; }
}

.ib-itin {
  border: 0.5px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}
.ib-itin:hover {
  box-shadow: 0 8px 28px rgba(45, 62, 80, 0.08);
  transform: translateY(-2px);
  border-color: rgba(0, 126, 176, 0.3);
}
.ib-itin__num {
  font-family: var(--serif-font);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
}
.ib-itin h3 {
  font-family: var(--serif-font);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
}
.ib-itin h3 em {
  font-style: italic;
  color: var(--accent-color);
}
.ib-itin__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ib-itin__chip {
  font-family: var(--sans-font);
  font-size: 11px;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 0.5px solid var(--border);
}
.ib-itin__chip.is-hl {
  background: rgba(0, 126, 176, 0.08);
  border-color: rgba(0, 126, 176, 0.25);
  color: var(--accent-color);
}
.ib-itin p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ib-fit {
  display: grid;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin: 1.5rem 0;
}
@media (min-width: 860px) {
  .ib-fit { grid-template-columns: 1fr 1fr; }
}
.ib-fit__col {
  padding: 2rem 1.75rem;
  background: #fff;
}
.ib-fit__col.is-dark {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.85);
}
.ib-fit__tag {
  font-family: var(--sans-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}
.ib-fit__col.is-dark .ib-fit__tag { color: #ffc280; }
.ib-fit h3 {
  font-family: var(--serif-font);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 1.15rem;
  line-height: 1.3;
}
.ib-fit h3 em {
  font-style: italic;
  color: var(--accent-color);
}
.ib-fit__col.is-dark h3 { color: #fff; }
.ib-fit__col.is-dark h3 em { color: #ffc280; }
.ib-fit__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.ib-fit__col.is-dark .ib-fit__item { color: rgba(255, 255, 255, 0.72); }
.ib-fit__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-color);
  margin-top: 0.45rem;
  flex-shrink: 0;
}
.ib-fit__col.is-dark .ib-fit__dot { background: #4ade80; }
.ib-fit__item strong { color: var(--primary-color); }
.ib-fit__col.is-dark .ib-fit__item strong { color: #fff; }

.ib-stats {
  background: var(--primary-color);
  border-radius: 20px;
  padding: 2.5rem 1.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 1.5rem 0;
}
@media (min-width: 900px) {
  .ib-stats {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 2.5rem;
    align-items: center;
    padding: 3rem 2.75rem;
  }
}
.ib-stats h3 {
  font-family: var(--serif-font);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 1rem;
}
.ib-stats h3 em {
  font-style: italic;
  color: #ffc280;
}
.ib-stats p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.7;
}
.ib-stats__source {
  margin-top: 1rem !important;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
}
.ib-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
@media (min-width: 900px) {
  .ib-stats__grid { margin-top: 0; }
}
.ib-stats__cell {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.15rem 1rem;
}
.ib-stats__val {
  font-family: var(--serif-font);
  font-size: 1.75rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.ib-stats__val em {
  font-style: italic;
  color: #4ade80;
}
.ib-stats__val span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.ib-stats__label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}
.ib-stats__note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.35rem;
}

.ib-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.5rem;
}
@media (min-width: 700px) {
  .ib-facts { grid-template-columns: repeat(4, 1fr); }
}
.ib-facts__item {
  background: var(--secondary-color);
  padding: 0.9rem 1rem;
}
.ib-facts__val {
  font-family: var(--serif-font);
  font-size: 1.35rem;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.ib-facts__val em {
  font-style: italic;
  color: var(--accent-color);
  font-size: 0.75em;
}
.ib-facts__label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.page-section-title em {
  font-style: italic;
  color: var(--accent-color);
}

/* Keep short title endings from splitting onto a lone character line */
.nowrap {
  white-space: nowrap;
}

/* Extracurricular activities grid — aligned with colegiobase.com/actividades-extraescolares */
.act-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.75rem 0 0;
}
@media (min-width: 640px) {
  .act-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .act-grid { grid-template-columns: repeat(4, 1fr); }
}
.act {
  background: var(--white-color);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease), border-color 0.22s;
}
.act:hover {
  box-shadow: 0 10px 30px rgba(45, 62, 80, 0.08);
  transform: translateY(-3px);
}
.act-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--secondary-color);
  border: 1px solid var(--border);
  margin-bottom: 0.15rem;
  color: var(--accent-color);
}
.act-ico {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}
.act.cat-sport .act-icon {
  background: rgba(0, 126, 176, 0.08);
  border-color: rgba(0, 126, 176, 0.2);
  color: var(--accent-color);
}
.act.cat-art .act-icon {
  background: rgba(255, 175, 101, 0.12);
  border-color: rgba(255, 175, 101, 0.3);
  color: #c47a2a;
}
.act.cat-tech .act-icon {
  background: rgba(26, 138, 86, 0.08);
  border-color: rgba(26, 138, 86, 0.2);
  color: #1a8a56;
}
.act-name {
  font-family: var(--sans-font);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.25;
}
.act-name-en {
  font-family: var(--sans-font);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -0.15rem;
}
.act-desc {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.act-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.stage-pill {
  font-family: var(--sans-font);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  color: var(--muted);
  background: var(--secondary-color);
  border: 1px solid var(--border);
}
.stage-pill.inf {
  color: var(--accent-color);
  background: rgba(0, 126, 176, 0.08);
  border-color: rgba(0, 126, 176, 0.25);
}
.stage-pill.pri {
  color: #c47a2a;
  background: rgba(255, 175, 101, 0.12);
  border-color: rgba(255, 175, 101, 0.35);
}
.stage-pill.eso {
  color: #1a8a56;
  background: rgba(26, 138, 86, 0.08);
  border-color: rgba(26, 138, 86, 0.25);
}
.act.music-block {
  grid-column: 1 / -1;
  background: var(--primary-color);
  color: #fff;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1000px) {
  .act.music-block { grid-column: span 2; }
}
.act.music-block::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(255, 175, 101, 0.12);
  pointer-events: none;
}
.act.music-block .act-icon {
  background: rgba(255, 175, 101, 0.15);
  border-color: rgba(255, 175, 101, 0.3);
  color: var(--firstgradient-color);
}
.act.music-block .act-name { color: #fff; }
.act.music-block .act-name-en { color: var(--firstgradient-color); }
.act.music-block .act-desc { color: rgba(255, 255, 255, 0.75); font-size: 0.8rem; }
.music-instruments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.music-pill {
  font-family: var(--sans-font);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
}
.act.music-block .act-meta { border-top-color: rgba(255, 255, 255, 0.12); }
.act.music-block .stage-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Compact activity chips (primaria / infantil) */
.act-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.act-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-color);
  font-family: var(--sans-font);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.act-chip:hover {
  border-color: rgba(0, 126, 176, 0.35);
  box-shadow: 0 6px 18px rgba(45, 62, 80, 0.08);
  transform: translateY(-1px);
  color: var(--primary-color);
}
.act-chip__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 126, 176, 0.08);
  color: var(--accent-color);
  flex-shrink: 0;
}
.act-chip__icon .act-ico {
  width: 18px;
  height: 18px;
}
.act-chip.cat-art .act-chip__icon {
  background: rgba(255, 175, 101, 0.14);
  color: #c47a2a;
}
.act-chip.cat-tech .act-chip__icon {
  background: rgba(26, 138, 86, 0.1);
  color: #1a8a56;
}
.act-chips__more {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent-color);
}


/* ════ Bus routes (aligned with colegiobase.com/transporte) ════ */
.rutas-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  margin-top: 2.5rem;
  align-items: start;
}
.rutas-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rutas-map-card {
  background: var(--secondary-color);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 18px;
}
.rutas-map-card .zonas-map-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.rutas-map-card .zonas-map-sub {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 14px;
  line-height: 1.3;
}
.rutas-map-card .zonas-svg {
  width: 100%;
  height: auto;
  display: block;
}
.rutas-legend {
  border-top: 0.5px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rutas-legend-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
}
.rutas-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-top: 3px;
  flex-shrink: 0;
}
.rutas-legend-label {
  font-weight: 700;
  color: var(--primary-color);
}
.rutas-legend-desc {
  color: var(--muted);
  font-size: 11.5px;
}
.rutas-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 0.5px solid var(--border);
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.rutas-tab {
  background: transparent;
  border: 0;
  font-family: var(--sans-font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 14px 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rutas-tab-count {
  font-family: var(--serif-font);
  font-style: italic;
  font-weight: 400;
  color: var(--firstgradient-color);
  font-size: 15px;
}
.rutas-tab:hover { color: var(--primary-color); }
.rutas-tab.on { color: var(--primary-color); }
.rutas-tab.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5px;
  height: 2px;
  background: var(--firstgradient-color);
}
.rutas-panel { display: none; }
.rutas-panel.on { display: block; animation: rutasFadeIn 0.3s; }
@keyframes rutasFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.rutas-zones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--white-color);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.rutas-zone {
  padding: 26px 28px 24px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
}
.rutas-zone:last-child { border-bottom: 0; }
.rutas-zone-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.rutas-zone-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--firstgradient-color);
}
.rutas-zone-count {
  font-family: var(--serif-font);
  font-style: italic;
  color: var(--primary-color);
  font-size: 18px;
  line-height: 1;
  margin-left: auto;
}
.rutas-zone-title {
  font-family: var(--serif-font);
  font-size: 19px;
  font-weight: 400;
  color: var(--primary-color);
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
  line-break: strict;
  text-wrap: pretty;
  word-break: keep-all;
}
.rutas-zone-title em {
  font-style: italic;
  color: var(--accent-color);
}
.rutas-zone-note {
  margin: -8px 0 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}
.rutas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.rutas-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 0.5px solid var(--border);
  align-items: baseline;
}
.rutas-list li:first-child {
  border-top: 0;
  padding-top: 4px;
}
.rutas-list-num {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 17px;
  color: var(--primary-color);
  line-height: 1;
  letter-spacing: -0.01em;
  padding-top: 2px;
}
.rutas-list-zones {
  font-family: var(--serif-font);
  font-size: 14px;
  color: var(--primary-color);
  line-height: 1.4;
  font-weight: 400;
  line-break: strict;
  text-wrap: pretty;
  word-break: keep-all;
}
.rutas-footnote {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}
@media (max-width: 960px) {
  .rutas-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 980px) {
  .rutas-tabs { flex-wrap: wrap; }
}

/* ════ Bus tariffs (colegiobase.com/transporte) ════ */
.tar-wrap {
  margin-top: 3rem;
  padding: 2.5rem 0 0;
}
.tar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.tar-card {
  background: var(--white-color);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.tar-card.feat {
  background: var(--primary-color);
  border-color: var(--primary-color);
}
.tar-card.feat::before {
  content: "最常选择";
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--firstgradient-color);
  padding: 4px 10px;
  border-radius: 100px;
}
.tar-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--firstgradient-color);
  margin-bottom: 2px;
}
.tar-card.feat .tar-tag { color: var(--firstgradient-color); }
.tar-label {
  font-family: var(--serif-font);
  font-size: 19px;
  color: var(--primary-color);
  line-height: 1.25;
  margin-bottom: 8px;
}
.tar-card.feat .tar-label { color: rgba(255, 255, 255, 0.9); }
.tar-price {
  font-family: var(--serif-font);
  font-size: 42px;
  color: var(--primary-color);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.tar-card.feat .tar-price { color: #fff; }
.tar-price-unit {
  font-size: 15px;
  color: var(--muted);
  margin-left: 4px;
}
.tar-card.feat .tar-price-unit { color: rgba(255, 255, 255, 0.6); }
.tar-price-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}
.tar-card.feat .tar-price-sub { color: rgba(255, 255, 255, 0.6); }
.tar-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 0.5px solid var(--border);
}
.tar-card.feat .tar-desc {
  color: rgba(255, 255, 255, 0.65);
  border-top-color: rgba(255, 255, 255, 0.12);
}
.tar-note {
  margin-top: 28px;
  margin-bottom: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding: 14px 18px;
  background: rgba(0, 126, 176, 0.05);
  border-left: 2px solid var(--accent-color);
  border-radius: 0 6px 6px 0;
}
.tar-note strong {
  color: var(--primary-color);
  font-weight: 700;
}
@media (max-width: 860px) {
  .tar-grid { grid-template-columns: 1fr; }
}
