/*
Theme Name:  Colegio San Cayetano
Description: Tema propio del Colegio San Cayetano
Version:     2.0.0
Author:      Jaime Borras
*/

/* ── Cormorant Garamond (self-hosted) ─────────────────── */
@font-face { font-family:'Cormorant Garamond'; font-style:normal;  font-weight:300; font-display:swap; src:url('fonts/normal_300.woff2') format('woff2'); }
@font-face { font-family:'Cormorant Garamond'; font-style:normal;  font-weight:400; font-display:swap; src:url('fonts/normal_400.woff2') format('woff2'); }
@font-face { font-family:'Cormorant Garamond'; font-style:normal;  font-weight:600; font-display:swap; src:url('fonts/normal_600.woff2') format('woff2'); }
@font-face { font-family:'Cormorant Garamond'; font-style:normal;  font-weight:700; font-display:swap; src:url('fonts/normal_700.woff2') format('woff2'); }
@font-face { font-family:'Cormorant Garamond'; font-style:italic;  font-weight:300; font-display:swap; src:url('fonts/italic_300.woff2') format('woff2'); }
@font-face { font-family:'Cormorant Garamond'; font-style:italic;  font-weight:400; font-display:swap; src:url('fonts/italic_400.woff2') format('woff2'); }
@font-face { font-family:'Cormorant Garamond'; font-style:italic;  font-weight:600; font-display:swap; src:url('fonts/italic_600.woff2') format('woff2'); }
@font-face { font-family:'Cormorant Garamond'; font-style:italic;  font-weight:700; font-display:swap; src:url('fonts/italic_700.woff2') format('woff2'); }

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --accent:       #003087;
  --accent-hover: #00256b;
  --accent-light: #e8edf5;
  --text:         #1d1d1f;
  --text-sec:     #6e6e73;
  --border:       #d2d2d7;
  --bg:           #f8f4ef;
  --bg-sec:       #f0ebe4;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --gold:         #C9962A;
}

/* ── Reset / Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px !important;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  margin: 0;
  padding-top: 0;
}

/* ── HEADER ───────────────────────────────────────────── */
#sc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#sc-header.is-scrolled,
#sc-header.is-solid {
  background: var(--accent);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.sc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
}

@media (min-width: 1024px) {
  .sc-header__inner {
    padding: 8px 32px;
  }
}

/* Logo */
.sc-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.sc-logo img {
  height: auto;
  width: auto;
  max-height: 56px;
  max-width: calc(100vw - 80px);
  border-radius: 0;
  display: block;
}
@media (min-width: 640px) {
  .sc-logo img { max-height: 68px; }
}
@media (min-width: 1024px) {
  .sc-logo img {
    max-height: 80px;
    max-width: none;
  }
}

.sc-logo__text {
  display: none;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .sc-logo__text { display: flex; }
}

.sc-logo__name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.sc-logo__city {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.2;
}

/* Nav desktop */
.sc-nav {
  display: none;
  align-items: center;
  gap: 2px;
}

@media (min-width: 1024px) {
  .sc-nav { display: flex; }
}

.sc-nav-item {
  position: relative;
}

.sc-nav a,
.sc-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}

.sc-nav a:hover,
.sc-nav-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.sc-nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
  margin: 0 4px;
  flex-shrink: 0;
}

.sc-cta {
  padding: 6px 18px !important;
  background: var(--accent) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35) !important;
  color: #fff !important;
}

.sc-cta:hover {
  background: var(--accent-hover) !important;
}

/* Chevron */
.sc-chevron {
  width: 13px;
  height: 13px;
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.sc-nav-item:hover .sc-chevron,
.sc-mega-trigger.is-active .sc-chevron {
  transform: rotate(180deg);
}

/* ── Mega panel ───────────────────────────────────────────── */
.sc-mega {
  position: fixed;
  left: 0;
  right: 0;
  height: 320px;
  z-index: 998;
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sc-mega.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#sc-header.has-mega {
  background: var(--accent);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.sc-mega__desc {
  flex: 0 0 26%;
  box-sizing: border-box;
  padding: 0 56px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}

.sc-mega__desc-inner { width: 100%; }

.sc-mega__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.sc-mega__text {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0 0 20px;
}

.sc-mega__more {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
}

.sc-mega__more:hover { text-decoration: underline; }

.sc-mega__links {
  flex: 0 0 26%;
  box-sizing: border-box;
  padding: 0 56px;
  display: flex;
  align-items: center;
}

.sc-mega__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-mega__links a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
  display: inline;
  padding: 0;
  background: none;
  border-radius: 0;
  font-weight: 400;
}

.sc-mega__links a:hover {
  color: var(--accent);
  background: none;
}

.sc-mega__ext {
  font-size: 11px;
  opacity: 0.4;
  margin-left: 4px;
}

.sc-mega__img {
  flex: 0 0 48%;
  overflow: hidden;
}

.sc-mega__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Hamburger ────────────────────────────────────────── */
.sc-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px;
  color: #fff;
  transition: background 0.15s;
}

.sc-hamburger:hover {
  background: rgba(255,255,255,0.15);
}

@media (min-width: 1024px) {
  .sc-hamburger { display: none; }
}

/* ── Menú móvil ───────────────────────────────────────── */
#sc-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

#sc-mobile-menu.is-open {
  transform: translateX(0);
}

.sc-mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--accent);
  flex-shrink: 0;
}

.sc-mob-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sc-mob-logo img {
  height: 48px;
  width: auto;
  max-width: calc(100vw - 100px);
  border-radius: 0;
  display: block;
}

.sc-mob-logo-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.sc-mob-logo-city {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.2;
}

.sc-mob-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  border-radius: 50%;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-mob-close:hover {
  background: rgba(255,255,255,0.15);
}

.sc-mob-nav {
  flex: 1;
  overflow-y: auto;
}

.sc-mob-item {
  border-bottom: 1px solid var(--border);
}

.sc-mob-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.sc-mob-link {
  flex: 1;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: block;
}

.sc-mob-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-mob-toggle svg {
  transition: transform 0.2s;
}

.sc-mob-toggle.is-open svg {
  transform: rotate(45deg);
}

.sc-mob-sub {
  display: none;
  background: var(--bg-sec);
  padding: 8px 24px 8px 24px;
  border-top: 1px solid var(--border);
}

.sc-mob-sub.is-open {
  display: block;
}

.sc-mob-sub a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.sc-mob-sub a:last-child {
  border-bottom: none;
}

.sc-mob-footer {
  background: var(--accent);
  padding: 20px 24px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sc-mob-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.15s;
}

.sc-mob-footer a:hover {
  color: #fff;
}

/* ── FOOTER ───────────────────────────────────────────── */
#sc-footer {
  position: relative;
  overflow: hidden;
  background-color: #001440;
}

.sc-footer-bg {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: -20%;
  height: 140%;
  object-fit: cover;
  opacity: 0.18;
  mix-blend-mode: luminosity;
  pointer-events: none;
  user-select: none;
}

.sc-footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,20,64,0.55), rgba(0,20,64,0.45));
  pointer-events: none;
}

.sc-footer__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

@media (min-width: 768px) {
  .sc-footer__inner { padding: 64px 24px; }
}

.sc-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .sc-footer__grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  }
}

.sc-footer__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 16px;
}

.sc-footer__address p {
  font-size: 15px;
  color: #fff;
  line-height: 1.7;
  margin: 0;
}

.sc-footer__address {
  margin-bottom: 20px;
}

.sc-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}

.sc-footer__contacts a:hover { opacity: 0.75; }

.sc-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-footer__links a {
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}

.sc-footer__links a:hover { opacity: 0.7; }

@media (min-width: 768px) {
  .sc-footer__col--offset { padding-top: 38px; }
}

.sc-footer__social-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 16px;
}

.sc-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.sc-footer__social a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
}

.sc-footer__social a:hover { opacity: 0.6; }

.sc-footer__social svg {
  width: 28px;
  height: 28px;
  display: block;
}

.sc-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 640px) {
  .sc-footer__bottom {
    flex-direction: row;
    align-items: baseline;
  }
}

.sc-footer__copy {
  font-size: 13px;
  color: #fff;
  margin: 0;
  text-align: center;
  order: 2;
}

@media (min-width: 640px) {
  .sc-footer__copy {
    text-align: left;
    order: 0;
  }
}

.sc-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  justify-content: center;
  order: 1;
}

@media (min-width: 640px) {
  .sc-footer__legal { justify-content: flex-end; order: 0; }
}

.sc-footer__legal a {
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}

.sc-footer__legal a:hover { opacity: 0.6; }

.sc-footer__legal-sep {
  color: rgba(255,255,255,0.3);
  margin: 0 8px;
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════════════════════════ */

/* ── Utilidades compartidas ──────────────────────────────── */
#sc-main { display: block; }

.sc-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.sc-section { padding: 64px 0; }
@media (min-width: 768px) { .sc-section { padding: 96px 0; } }
.sc-section--white { background: var(--bg); }
.sc-section--alt   { background: var(--bg-sec); }

.sc-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 12px;
}

.sc-heading {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.25;
  margin: 0 0 20px;
}
@media (min-width: 640px) { .sc-heading { font-size: 36px; } }
@media (min-width: 768px) { .sc-heading { font-size: 48px; } }

.sc-subheading {
  font-size: 15px;
  color: var(--text-sec);
  margin: 0 0 32px;
}

.sc-body {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.75;
  margin: 0 0 16px;
  text-align: justify;
}

.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
}
.sc-link:hover { text-decoration: underline; }
.sc-link svg { width: 16px; height: 16px; }

.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.sc-btn:hover { background: var(--accent-hover); color: #fff; }

.sc-section-header { margin-bottom: 48px; text-align: center; }
@media (min-width: 768px) { .sc-section-header { margin-bottom: 64px; } }
.sc-section-header .sc-heading { margin-bottom: 0; }

/* ── Fade-in ─────────────────────────────────────────────── */
.sc-fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s ease var(--d, 0ms);
}
.sc-fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Hero ────────────────────────────────────────────────── */
.sc-home-hero {
  position: relative;
  width: 100%;
  height: calc(88svh + 72px);
  min-height: 520px;
  overflow: hidden;
  margin-top: -72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-bar .sc-home-hero {
  height: calc(88svh + 72px + 32px);
}

.sc-home-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.sc-home-hero__bg {
  position: absolute;
  inset-x: 0;
  top: -20%;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.sc-home-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

.sc-home-hero__tag {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin: 0 0 16px;
}

.sc-home-hero__title {
  font-family: var(--serif);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 20px;
  font-size: 24px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
@media (min-width: 640px)  { .sc-home-hero__title { font-size: 36px; } }
@media (min-width: 768px)  { .sc-home-hero__title { font-size: 60px; } }
@media (min-width: 1024px) { .sc-home-hero__title { font-size: 72px; } }

.sc-home-hero__title > span { display: block; }
.sc-home-hero__title > em   { display: block; font-style: italic; }

.sc-home-hero__meta {
  font-size: 11px;
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.sc-home-hero__sep { color: rgba(255,255,255,0.3); font-size: 18px; line-height: 1; }

.sc-home-hero__title { opacity: 0; }

.sc-tw-cursor {
  display: inline;
  font-style: normal;
  animation: sc-blink 0.7s step-end infinite;
}

.sc-tw-dot {
  display: inline;
  font-style: normal;
  font-size: 0.7em;
  vertical-align: 0em;
}
.sc-tw-dot--blink { animation: sc-blink 0.6s step-end infinite; }

@keyframes sc-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Admin bar compensa 32px extra */
.admin-bar #sc-header { top: 32px; }

.sc-home-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.8);
  animation: bounce 1.8s infinite;
}
.sc-home-hero__scroll svg { width: 36px; height: 36px; display: block; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Intro ───────────────────────────────────────────────── */
.sc-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .sc-intro { flex-direction: row; gap: 64px; }
}

.sc-intro__logo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
}

@media (min-width: 640px) { .sc-intro__logo { width: 192px; height: 192px; } }
@media (min-width: 768px) { .sc-intro__logo { width: 224px; height: 224px; } }

.sc-intro__logo img { width: 100%; height: 100%; object-fit: contain; }

.sc-intro__text { flex: 1; text-align: center; }
@media (min-width: 768px) { .sc-intro__text { text-align: left; } }

/* ── Por qué elegirnos ───────────────────────────────────── */
.sc-whyus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px)  { .sc-whyus { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sc-whyus { grid-template-columns: repeat(4, 1fr); } }

.sc-whyus__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sc-whyus__card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.sc-whyus__img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}
.sc-whyus__card:hover .sc-whyus__img { transform: scale(1.05); }

.sc-whyus__body { padding: 20px; flex: 1; }
.sc-whyus__body h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
  min-height: 2.6em;
}
.sc-whyus__body p { font-size: 14px; color: var(--text-sec); line-height: 1.6; margin: 0; }

/* ── Stats ───────────────────────────────────────────────── */
.sc-stats {
  position: relative;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
}

.sc-stats__gold {
  height: 3px;
  background: var(--gold);
}
.sc-stats__gold--bottom { margin-top: 0; }

.sc-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) { .sc-stats__grid { grid-template-columns: repeat(4, 1fr); } }

.sc-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  position: relative;
}

@media (min-width: 768px) { .sc-stats__item { padding: 80px 24px; } }

.sc-stats__item:nth-child(odd)::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; height: 50%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

@media (max-width: 767px) {
  .sc-stats__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
}

.sc-stats__bar {
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 9999px;
  margin-bottom: 24px;
}

.sc-stats__value {
  font-size: 51px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
@media (min-width: 640px) { .sc-stats__value { font-size: 60px; } }
@media (min-width: 768px) { .sc-stats__value { font-size: 72px; } }

.sc-stats__label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0;
}

/* ── Etapas ──────────────────────────────────────────────── */
.sc-etapas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 768px) { .sc-etapas { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.sc-etapa {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  text-decoration: none;
}

.sc-etapa__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}
.sc-etapa:hover .sc-etapa__img { transform: scale(1.05); }

.sc-etapa__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.08) 60%, transparent 100%);
}

.sc-etapa__hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,48,135,0.6);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.sc-etapa:hover .sc-etapa__hover-overlay { opacity: 1; }
.sc-etapa__hover-overlay span {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 8px 16px;
  border-radius: 9999px;
}

.sc-etapa__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  z-index: 3;
}
.sc-etapa__ages {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 4px;
}
.sc-etapa__name {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* ── Bachillerato Internacional ──────────────────────────── */
.sc-ib {
  position: relative;
  background: #0a1628;
  overflow: hidden;
  padding: 80px 0;
}
@media (min-width: 768px) { .sc-ib { padding: 112px 0; } }

.sc-ib__bg {
  position: absolute;
  inset-x: 0;
  top: -20%;
  width: 100%;
  height: 140%;
  object-fit: cover;
  opacity: 0.12;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.sc-ib__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) { .sc-ib__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

.sc-ib__tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 20px;
}

.sc-ib__title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 24px;
}
@media (min-width: 640px) { .sc-ib__title { font-size: 36px; } }
@media (min-width: 768px) { .sc-ib__title { font-size: 48px; } }
.sc-ib__title em { font-style: italic; color: var(--gold); }

.sc-ib__desc {
  font-family: var(--serif);
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin: 0 0 40px;
}

.sc-ib__links { display: flex; flex-direction: column; gap: 16px; }

.sc-ib__link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.15s;
}
.sc-ib__link:hover { opacity: 0.75; }
.sc-ib__link:hover span:first-child { width: 48px; }

.sc-ib__link-bar {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
  flex-shrink: 0;
}

.sc-ib__photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 0 0 1px rgba(201,150,42,0.25), 0 24px 60px rgba(0,0,0,0.5);
}

.sc-ib__photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.sc-ib__photo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.6) 0%, transparent 60%);
}

.sc-ib__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-ib__badge-bar {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.sc-ib__badge span:last-child {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* ── Noticias ────────────────────────────────────────────── */
.sc-news__header { margin-bottom: 40px; }
@media (min-width: 768px) { .sc-news__header { margin-bottom: 56px; } }

/* Heading de noticias: más pequeño que el resto de secciones */
.sc-news-heading {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.25;
  margin: 0;
}
@media (min-width: 640px) { .sc-news-heading { font-size: 30px; } }
@media (min-width: 768px) { .sc-news-heading { font-size: 36px; } }

.sc-news-featured {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 24px;
}
.sc-news-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@media (min-width: 768px) { .sc-news-featured { flex-direction: row; } }

.sc-news-featured__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 768px) { .sc-news-featured__img { width: 50%; aspect-ratio: auto; } }

.sc-news-featured__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
  display: block;
}
.sc-news-featured:hover .sc-news-featured__img img { transform: scale(1.05); }

.sc-news-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 32px;
  flex: 1;
}

.sc-news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .sc-news__grid { grid-template-columns: 1fr 1fr; } }

.sc-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sc-news-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.sc-news-card__img { aspect-ratio: 16/9; overflow: hidden; }
.sc-news-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
  display: block;
}
.sc-news-card:hover .sc-news-card__img img { transform: scale(1.05); }

.sc-news-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.sc-news__source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.sc-news__source img { width: 16px; height: 16px; border-radius: 2px; object-fit: contain; }
.sc-news__source span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sc-news__date { font-size: 12px; color: var(--text-sec); margin: 0 0 12px; }

.sc-news__title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.sc-news__title--lg { font-size: clamp(16px, 2vw, 24px); }

/* ── CTA Admisiones ──────────────────────────────────────── */
.sc-cta-adm { background: var(--accent-light); overflow: hidden; }

.sc-cta-adm__marquee { overflow: hidden; padding-top: 40px; }

.sc-cta-adm__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 35s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.sc-cta-adm__photo {
  width: 256px;
  height: 176px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.sc-cta-adm__body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}
@media (min-width: 768px) { .sc-cta-adm__body { padding: 56px 24px; } }

.sc-cta-adm__title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  color: var(--accent);
  margin: 0 0 16px;
}
@media (min-width: 640px) { .sc-cta-adm__title { font-size: 36px; } }
@media (min-width: 768px) { .sc-cta-adm__title { font-size: 48px; } }

.sc-cta-adm__desc {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text-sec);
  margin: 0 0 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro: padding inferior más corto que el genérico 96px */
@media (min-width: 768px) { .sc-section--intro { padding-bottom: 80px; } }

/* Stats: imagen de fondo muy sutil */
.sc-stats__bg {
  position: absolute;
  inset-x: 0;
  top: -20%;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  opacity: 0.08;
  mix-blend-mode: luminosity;
  pointer-events: none;
  user-select: none;
}

/* ─── Language Switcher ───────────────────────────────── */
.sc-lang {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 6px;
}
.sc-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.3);
  background: transparent;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  transition: background .18s, border-color .18s;
  white-space: nowrap;
}
.sc-lang__btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.sc-lang__globe { flex-shrink: 0; opacity: .8; }
.sc-lang__chev {
  opacity: .55;
  transition: transform .2s;
  flex-shrink: 0;
}
.sc-lang.is-open .sc-lang__chev { transform: rotate(180deg); }

.sc-lang__drop {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  min-width: 160px !important;
  background: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.1) !important;
  padding: 6px !important;
  display: none !important;
  flex-direction: column !important;
  z-index: 1001 !important;
}
.sc-lang.is-open .sc-lang__drop {
  display: flex !important;
  flex-direction: column !important;
}
.sc-lang__opt {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: .9375rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  text-align: left !important;
  white-space: nowrap !important;
}
.sc-lang__opt:hover { background: var(--bg-sec) !important; }
.sc-lang__opt.is-active {
  font-weight: 700 !important;
  color: var(--accent) !important;
  background: var(--accent-light) !important;
}
.sc-lang__flag { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }

/* Mobile lang pills */
.sc-mob-langs {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}
.sc-mob-lang-opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 4px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.sc-mob-lang-opt .sc-lang__flag { font-size: 1rem; }
.sc-mob-lang-opt:hover,
.sc-mob-lang-opt.is-active {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}


/* ── Word-reveal hero ─────────────────────────────────── */
.sc-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
}
.sc-word {
  display: inline-block;
  will-change: transform;
}

/* ════════════════════════════════════════════════════════════════
   CAPA RESPONSIVE MÓVIL — auditoría jul-2026
   Alcance: solo max-width:767px, desktop intacto. Todo !important:
   el CSS de cada landing vive inline en su propio page-*.php/cache.html
   (sin !important en su mayoría), así que esta capa gana por
   especificidad+!important sin necesidad de tocar los ~30 templates.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Hero de páginas interiores (.sc-ph) — unifica las variantes
     divergentes copiadas entre plantillas. Valores = mayoría medida
     en vivo a 390px sobre las 26 landings que usan este hero. */
  .sc-ph__h1-serif { font-size: 2.875rem !important; line-height: 1.15 !important; }
  .sc-ph__h1-bold  { font-size: 3.75rem !important; line-height: 1.05 !important; }
  .sc-ph__lead     { font-size: 1rem !important; white-space: normal !important; }
  /* background-attachment:fixed no se pinta en iOS Safari; 5 landings
     aún lo llevan sin revertir a scroll en móvil */
  .sc-ph { background-attachment: scroll !important; }

  /* Tablas que se recortaban en vez de ofrecer scroll horizontal */
  table.tc-table,
  table.uf-table,
  .me-book-table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .to-sg-table-wrap { overflow: visible !important; overflow-x: auto !important; }

  /* Grid de 3 columnas fijas sin colapsar (tienda-online) */
  .to-timeline { grid-template-columns: 1fr !important; }

  /* Objetivo táctil mínimo 44×44 (antes 40×40) */
  .sc-hamburger { width: 44px !important; height: 44px !important; }

  /* Subnavs sticky que restan altura de viewport en pantallas pequeñas */
  .adm-subnav, .ev-subnav, .sc-tabs-nav, .sc-pol-nav, .to-tabs-wrap {
    position: static !important;
  }

  /* Megapaneles de hover (desktop) y paneles bh6 — inalcanzables en
     táctil; display:none evita además que el navegador cargue sus
     imágenes de fondo sin necesidad */
  .sc-mega, .bh6-panel__bg { display: none !important; }

  /* Lema del hero (home) — el <h1> tenía un margin-bottom:20px de
     navegador sin resetear (Tailwind CDN carga sin preflight), que
     sumado al margin-top del texto inferior daba 36px de hueco abajo
     frente a 16px arriba. A cero: los huecos los ponen ya el mb-4 de
     .hero-tag y el margin-top inline de .hero-cta, ambos en 16px. */
  .sc-home-hero__title { margin: 0 !important; }

  /* Flecha de scroll del hero — le faltaba el translateX(-50%) que
     debía centrarla (la utilidad -translate-x-1/2 de Tailwind no se
     genera); quedaba 18px a la derecha del centro real (mitad de su
     propio ancho, 36px). margin-left en vez de transform para no
     pisar el translateY que aplica la animación de rebote. */
  .sc-home-hero__scroll { margin-left: -18px !important; }
}

/* ── Menú lateral por encima del header bh6 (z-index 9001) ──
   #sc-mobile-menu tenía z-index:1000, por debajo del header nuevo:
   al abrir el menú, el header (logo + botón) quedaba visible encima,
   solapando el logo del menú y robando el clic al botón de cerrar. */
#sc-mobile-menu { z-index: 9999; }

/* Logo del header bh6 en móvil/tablet — mismo breakpoint que usa el
   propio bh6 (max-width:1023px) para mostrar este logo. 26px/34px
   eran ilegibles para un lockup con dos líneas de texto; se sube a 44px
   (mismo tamaño que el botón hamburguesa, para peso visual equivalente). */
@media (max-width: 1023px) {
  .bh6__mob-logo img { height: 44px !important; }

  /* padding vertical simétrico del header — la regla original de
     "scrolled" (.bh6--scrolled .bh6__inner) usaba .9rem arriba /
     1.6rem abajo, descentrando el logo hacia arriba con más hueco
     debajo. Mismo valor arriba y abajo en los dos estados. */
  .bh6__inner {
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
  }
}

/* Badge "+140 países · +5.000 colegios IB" sobre la foto del Programa
   Diploma IB (home) — a 1.5rem (24px) el texto envolvía a 2 líneas y
   quedaba con margen desigual en el panel de foto de 260px de alto.
   Una línea, pegado abajo, más pequeño. */
@media (max-width: 767px) {
  .sc-ib-badge {
    left: 1.5rem !important;
    right: 1.5rem !important;
    bottom: 1rem !important;
    gap: 0.625rem !important;
  }
  .sc-ib-badge__line { width: 1.25rem !important; }
  .sc-ib-badge__text {
    font-size: 0.8125rem !important;
    white-space: nowrap !important;
  }
}
