/* ===========================
   COLEGIO ACEIMAR — ESTILOS
   Diseño moderno y elegante
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,800;1,600&family=DM+Sans:wght@300;400;500&display=swap');

/* ---- VARIABLES ---- */
:root {
  --navy:    #0d1f3c;
  --navy-mid:#162b52;
  --blue:    #1e4080;
  --accent:  #c9882a;
  --accent-lt:#e8a84a;
  --white:   #ffffff;
  --off-white:#f7f5f0;
  --grey-lt: #eceae4;
  --grey:    #9a9589;
  --text:    #2a2520;
  --success: #1a6640;
  --success-lt:#e8f5ee;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(13,31,60,.10);
  --shadow-lg: 0 12px 48px rgba(13,31,60,.16);

  --max-w: 1200px;
  --nav-h: 72px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s, box-shadow .35s;
}
.navbar.scrolled {
  background: rgba(13,31,60,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.logo-text {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.logo-text span { display: block; font-weight: 300; opacity: .75; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.social-icon {
  color: rgba(255,255,255,.65);
  display: grid;
  place-items: center;
  transition: color .2s;
}
.social-icon:hover { color: var(--white); }

.btn-alexia {
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  padding: .4rem .9rem;
  transition: all .2s;
}
.btn-alexia:hover {
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.btn-matricula {
  background: var(--accent);
  color: var(--white);
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: var(--radius-sm);
  padding: .5rem 1.1rem;
  transition: background .2s, transform .15s;
}
.btn-matricula:hover {
  background: var(--accent-lt);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 1rem 2rem 1.5rem;
  gap: .2rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--accent-lt); }

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1a356a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--blue);
  top: -150px; right: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -100px; left: -80px;
  opacity: .12;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,136,42,.2);
  border: 1px solid rgba(201,136,42,.4);
  color: var(--accent-lt);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp .8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  animation: fadeUp .8s .15s ease both;
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent-lt);
}

.hero-subtitle {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  animation: fadeUp .8s .25s ease both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp .8s .35s ease both;
}

.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 500;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(201,136,42,.4);
}
.cta-primary:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,136,42,.5);
}
.cta-secondary {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.85);
  font-weight: 400;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: all .2s;
}
.cta-secondary:hover {
  border-color: rgba(255,255,255,.7);
  color: var(--white);
  background: rgba(255,255,255,.07);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.4);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: fadeUp 1s .7s ease both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollDown 1.6s ease infinite;
}

/* ===========================
   SECTION COMMONS
   =========================== */
.section-label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: .75rem;
  line-height: 1.15;
}
.section-header p {
  color: var(--grey);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===========================
   PHILOSOPHY
   =========================== */
.philosophy {
  background: var(--navy);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.philosophy::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-lt), var(--accent));
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto auto;
  gap: 2rem 4rem;
  align-items: start;
}
.philosophy-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: .5rem;
}
.philosophy-quote {
  grid-column: 2;
}
.philosophy-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  font-weight: 600;
}
.philosophy-body {
  grid-column: 2;
}
.philosophy-body p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  padding: .6rem 1.2rem;
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  flex-wrap: wrap;
}
.contact-pill svg { color: var(--accent); }
.contact-pill a { color: rgba(255,255,255,.85); transition: color .2s; }
.contact-pill a:hover { color: var(--accent-lt); }

/* ===========================
   REASON
   =========================== */
.reason {
  padding: 7rem 0;
  background: var(--off-white);
}
.reason-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.reason-image {
  position: relative;
}
.reason-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.image-caption {
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--grey);
  text-align: center;
  font-style: italic;
}
.reason-text { }
.reason-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.reason-text p {
  color: #5a5650;
  font-size: .97rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

/* ===========================
   OFFER
   =========================== */
.offer {
  padding: 7rem 0;
  background: var(--white);
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.offer-card {
  background: var(--white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.offer-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.offer-icon {
  width: 50px; height: 50px;
  background: var(--off-white);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  color: var(--navy);
  transition: background .25s, color .25s;
}
.offer-card:hover .offer-icon {
  background: var(--navy);
  color: var(--accent-lt);
}
.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
}
.offer-card p {
  font-size: .85rem;
  color: var(--grey);
  line-height: 1.6;
}
.offer-cta {
  text-align: center;
  margin-top: 3rem;
}
.offer-cta .cta-primary {
  background: var(--navy);
  box-shadow: 0 4px 20px rgba(13,31,60,.2);
}
.offer-cta .cta-primary:hover { background: var(--blue); }

/* ===========================
   NEWS
   =========================== */
.news {
  padding: 7rem 0;
  background: var(--off-white);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--grey-lt);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: box-shadow .25s, transform .25s;
}
.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.news-card--highlight {
  background: var(--navy);
  border-color: var(--navy);
  grid-column: span 1;
}
.news-card--highlight h3 { color: var(--white); }
.news-card--highlight p  { color: rgba(255,255,255,.65); }
.news-card--highlight .news-link { color: var(--accent-lt); }
.news-card--highlight .news-tag {
  background: rgba(201,136,42,.2);
  color: var(--accent-lt);
  border-color: rgba(201,136,42,.3);
}

.news-card--success {
  background: var(--success-lt);
  border-color: rgba(26,102,64,.15);
}
.news-card--success h3 { color: var(--success); }

.news-date {
  font-size: .75rem;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: .05em;
}
.news-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(13,31,60,.06);
  color: var(--navy);
  border: 1px solid rgba(13,31,60,.12);
  border-radius: 100px;
  padding: .25rem .7rem;
  align-self: flex-start;
}
.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.news-card p {
  font-size: .88rem;
  color: var(--grey);
  line-height: 1.6;
  flex: 1;
}
.news-link {
  font-size: .82rem;
  font-weight: 500;
  color: var(--blue);
  transition: color .2s;
  margin-top: .3rem;
}
.news-link:hover { color: var(--accent); }

/* ===========================
   LINKS SECTION
   =========================== */
.links-section {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--grey-lt);
}
.links-section .section-label {
  text-align: center;
  display: block;
  margin-bottom: 2rem;
}
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.link-card {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--off-white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius);
  padding: .85rem 1.4rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy);
  transition: all .2s;
}
.link-card svg { color: var(--accent); flex-shrink: 0; }
.link-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.link-card:hover svg { color: var(--accent-lt); }

/* ===========================
   NOTICE
   =========================== */
.notice {
  background: #fff8ed;
  border-top: 1px solid rgba(201,136,42,.25);
  border-bottom: 1px solid rgba(201,136,42,.25);
  padding: 1.5rem 0;
}
.notice-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.notice-inner svg { color: var(--accent); flex-shrink: 0; margin-top: .15rem; }
.notice-inner p {
  font-size: .9rem;
  color: #6b4e1a;
  line-height: 1.6;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--navy);
  padding: 5rem 0 0;
  color: rgba(255,255,255,.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p {
  font-size: .85rem;
  line-height: 1.6;
  margin-top: 1.2rem;
}
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.5);
  transition: all .2s;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent-lt);
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.2rem;
}
.footer-nav { display: flex; flex-direction: column; gap: .2rem; }
.footer-nav a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  padding: .35rem 0;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--accent-lt); }

.footer-contact { display: flex; flex-direction: column; gap: .4rem; }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
.footer-contact a:hover { color: var(--accent-lt); }
.footer-contact svg { color: var(--accent); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom a {
  font-size: .82rem;
  color: var(--accent);
  transition: color .2s;
}
.footer-bottom a:hover { color: var(--accent-lt); }

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid  { grid-template-columns: repeat(2, 1fr); }
  .reason-grid{ grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand{ grid-column: span 2; }

  .nav-links  { display: none; }
  .nav-actions { display: none; }
  .burger     { display: flex; }
  .mobile-menu{ display: flex; }
}

@media (max-width: 640px) {
  .offer-grid { grid-template-columns: 1fr; }
  .news-grid  { grid-template-columns: 1fr; }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .philosophy-label{ padding-top: 0; }
  .philosophy-quote, .philosophy-body { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .links-row { gap: .75rem; }
  .link-card { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
  .cta-primary, .cta-secondary { text-align: center; }
}

/* =====================================================
   PÁGINAS INTERIORES Y COMPONENTES ADICIONALES
   ===================================================== */

/* ---- Navegación ---- */
.nav-links { gap: .1rem; }
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.12); }
.nav-links a.nav-cta { background: var(--accent); color: var(--white); margin-left: .35rem; }
.nav-links a.nav-cta:hover { background: var(--accent-lt); }
.mobile-menu a.active { color: var(--accent-lt); }
@media (max-width: 1240px) {
  .nav-actions .social-icon { display: none; }
  .nav-links a { padding: .45rem .55rem; font-size: .78rem; }
}

/* ---- Cabecera de página interior ---- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1a356a 100%);
  padding: calc(var(--nav-h) + 4.5rem) 0 4.5rem;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: var(--blue); filter: blur(90px); opacity: .25; top: -200px; right: -120px;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-label { color: var(--accent-lt); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 800; color: var(--white);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.12; margin-bottom: 1rem;
  animation: fadeUp .8s ease both;
}
.page-hero h1 em { color: var(--accent-lt); font-style: italic; font-weight: 600; }
.page-hero p {
  color: rgba(255,255,255,.7); max-width: 660px; font-size: 1.05rem; line-height: 1.65;
  animation: fadeUp .8s .15s ease both;
}

/* ---- Secciones genéricas ---- */
.content-section { padding: 5rem 0; }
.content-section--alt { background: var(--off-white); }
.prose { max-width: 780px; }
.prose.center { margin: 0 auto; }
.prose p { color: #5a5650; line-height: 1.8; margin-bottom: 1.1rem; font-size: 1rem; }
.prose a, .info-card a, .legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .info-card a:hover, .legal a:hover { color: var(--accent); }

.subtitle {
  display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 1.25rem;
}
.callout {
  background: var(--off-white); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; color: var(--navy);
  font-weight: 500; line-height: 1.65; margin: 1.5rem 0;
}
.content-section--alt .callout { background: var(--white); }
.callout a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.callout--warn { background: #fff8ed !important; color: #6b4e1a; }

/* ---- Bloques con imagen ---- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.split--rev .split-media { order: -1; }
.split h2 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--navy); line-height: 1.15; margin-bottom: .5rem;
}
.split p { color: #5a5650; line-height: 1.8; margin-bottom: 1.1rem; }
.media { margin: 0; }
.media img {
  border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.media figcaption { margin-top: .75rem; font-size: .82rem; color: var(--grey); text-align: center; font-style: italic; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }

.pill-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 0; }
.pill { background: var(--navy); color: var(--white); border-radius: 100px; padding: .5rem 1.1rem; font-size: .85rem; font-weight: 500; }
.lead-in { color: var(--navy) !important; font-weight: 500; margin-bottom: .4rem !important; }

.ticks { list-style: none; }
.ticks li { position: relative; padding: .4rem 0 .4rem 1.7rem; line-height: 1.55; color: #5a5650; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .85rem; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---- Características ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--white);
  border: 1px solid var(--grey-lt); border-radius: var(--radius); padding: 1.4rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.feature:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .offer-icon { flex-shrink: 0; margin-bottom: 0; }
.feature:hover .offer-icon { background: var(--navy); color: var(--accent-lt); }
.feature p { font-size: .93rem; line-height: 1.55; color: var(--text); }

/* ---- Noticias en lista ---- */
.feed { display: flex; flex-direction: column; gap: .7rem; max-width: 920px; margin: 0 auto; }
.feed-item {
  display: grid; grid-template-columns: 112px 1fr; gap: 1.25rem; align-items: start;
  background: var(--white); border: 1px solid var(--grey-lt); border-radius: var(--radius);
  padding: 1.05rem 1.4rem; transition: box-shadow .2s, transform .2s;
}
.feed-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.feed-date {
  font-size: .78rem; font-weight: 500; color: var(--navy); background: var(--off-white);
  border-radius: 8px; padding: .4rem .5rem; text-align: center; letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}
.feed-date--info { background: var(--navy); color: var(--accent-lt); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; padding: .5rem; }
.feed-text { font-size: .94rem; line-height: 1.65; color: var(--text); padding-top: .15rem; }
.feed-text a { color: var(--blue); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(30,64,128,.3); text-underline-offset: 3px; }
.feed-text a:hover { color: var(--accent); }
.feed-item--hl { border-color: var(--accent); background: #fff8ed; }
.feed-item--hl .feed-date { background: var(--accent); color: var(--white); }
.feed-item--ok { background: var(--success-lt); border-color: rgba(26,102,64,.2); }
.feed-item--ok .feed-date { background: var(--success); color: var(--white); }
.content-section--alt .feed-item:not(.feed-item--hl):not(.feed-item--ok) { background: var(--white); }

/* ---- Pestañas ---- */
.tabs { display: flex; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn {
  font-family: var(--font-body); font-size: .9rem; font-weight: 500; cursor: pointer;
  background: var(--white); color: var(--navy); border: 1px solid var(--grey-lt);
  border-radius: 100px; padding: .65rem 1.6rem; transition: all .2s;
}
.tab-btn:hover { border-color: var(--navy); }
.tab-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .5s ease both; }
.panel-cta { text-align: center; margin-top: 2.5rem; }
.panel-cta p { color: var(--navy); font-weight: 500; margin-bottom: 1rem; }

/* ---- Tarjetas de información ---- */
.info-grid { display: grid; gap: 1.5rem; }
.info-grid--2 { grid-template-columns: repeat(2, 1fr); }
.info-grid--3 { grid-template-columns: repeat(3, 1fr); }
.info-card {
  background: var(--white); border: 1px solid var(--grey-lt); border-radius: var(--radius-lg);
  padding: 2rem; transition: box-shadow .25s, border-color .25s;
}
.info-card:hover { box-shadow: var(--shadow); border-color: rgba(201,136,42,.45); }
.info-card .offer-icon { width: 56px; height: 56px; margin-bottom: 1.2rem; }
.info-card:hover .offer-icon { background: var(--navy); color: var(--accent-lt); }
.info-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: .3rem; line-height: 1.25; }
.info-card .subtitle { margin-bottom: 1rem; }
.info-card p { color: #5a5650; line-height: 1.7; font-size: .95rem; margin-bottom: .6rem; }
.info-card .ticks li { font-size: .94rem; }
.info-card--navy { background: var(--navy); border-color: var(--navy); }
.info-card--navy h3, .info-card--navy p, .info-card--navy .ticks li { color: var(--white); }
.info-card--navy .subtitle { color: var(--accent-lt); }

.data-list { list-style: none; }
.data-list li {
  display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .7rem 0;
  border-bottom: 1px solid var(--grey-lt); font-size: .94rem; line-height: 1.55; color: var(--text);
}
.data-list li:last-child { border-bottom: 0; }
.data-list .k { color: var(--grey); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .15rem; }
.schedule { margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--off-white); border-radius: var(--radius); }
.schedule h4 { font-size: .95rem; color: var(--navy); margin-bottom: .5rem; font-weight: 500; }
.schedule p { margin: 0 0 .15rem !important; }

/* ---- Transporte ---- */
.transport-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.transport-card { background: var(--white); border: 1px solid var(--grey-lt); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.transport-head { background: var(--navy); color: var(--white); padding: 1.4rem 1.5rem; display: flex; gap: 1rem; align-items: center; }
.transport-num {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent); flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
}
.transport-head h3 { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; }
.transport-head p { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .25rem; }
.transport-contact { padding: .9rem 1.5rem; background: var(--off-white); font-size: .85rem; color: #5a5650; border-bottom: 1px solid var(--grey-lt); line-height: 1.5; }
.transport-contact a { color: var(--blue); font-weight: 500; }
.stops { list-style: none; padding: .6rem 1.5rem 1.2rem; }
.stops li {
  display: grid; grid-template-columns: 48px 1fr; gap: .8rem; padding: .65rem 0;
  border-bottom: 1px dashed var(--grey-lt); font-size: .88rem; line-height: 1.5; color: var(--text);
}
.stops li:last-child { border-bottom: 0; }
.stop-time { font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.stop-note { display: block; font-size: .8rem; color: var(--grey); font-style: italic; margin-top: .2rem; }
.transport-return {
  display: flex; gap: 1rem; align-items: center; background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 1.25rem 1.75rem; margin-top: 1.5rem;
}
.transport-return svg { color: var(--accent-lt); flex-shrink: 0; }
.transport-return p { line-height: 1.5; }

/* ---- Agenda ---- */
.key-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1rem; }
.key-date { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; }
.key-date .k-label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-lt); margin-bottom: .6rem; }
.key-date .k-main { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; }
.key-date .k-sub { margin-top: .6rem; color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.5; }
.block-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--navy); margin: 3.5rem 0 1.25rem; line-height: 1.2; }
.eval-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.eval-card { background: var(--white); border: 1px solid var(--grey-lt); border-radius: var(--radius-lg); padding: 1.75rem; }
.eval-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: .2rem; }
.eval-sub { display: block; font-size: .78rem; color: var(--grey); margin-bottom: 1rem; min-height: 1.1rem; }
.eval-list { list-style: none; }
.eval-list li { display: grid; grid-template-columns: 92px 1fr; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--grey-lt); font-size: .9rem; line-height: 1.45; }
.eval-list li:last-child { border-bottom: 0; }
.eval-list time { font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.eval-note { margin-top: 1rem; font-size: .85rem; line-height: 1.6; color: #5a5650; }
.eval-note p + p { margin-top: .6rem; }
.festivos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.festivo { display: flex; gap: 1rem; align-items: center; background: var(--white); border: 1px solid var(--grey-lt); border-radius: var(--radius); padding: .9rem 1.25rem; }
.festivo time { font-size: .82rem; font-weight: 500; color: var(--accent); min-width: 150px; font-variant-numeric: tabular-nums; }
.festivo span { color: var(--navy); font-weight: 500; }
.legend { font-size: .85rem; color: var(--grey); margin-top: 1rem; line-height: 1.7; }

/* ---- Matrícula ---- */
.steps { list-style: none; counter-reset: s; display: grid; gap: .75rem; }
.steps > li {
  counter-increment: s; position: relative; background: var(--white); border: 1px solid var(--grey-lt);
  border-radius: var(--radius); padding: 1rem 1.25rem 1rem 3.7rem; line-height: 1.6; color: var(--text);
}
.steps > li::before {
  content: counter(s); position: absolute; left: 1.1rem; top: .95rem; width: 1.9rem; height: 1.9rem;
  border-radius: 50%; background: var(--navy); color: var(--accent-lt);
  display: grid; place-items: center; font-size: .85rem; font-weight: 500;
}
.steps a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.subdoc { margin-top: .9rem; padding: 1rem 1.25rem; background: var(--off-white); border-radius: var(--radius); }
.subdoc h4 { font-size: .92rem; color: var(--navy); margin-bottom: .3rem; font-weight: 500; }

/* ---- Redes / avisos legales ---- */
.social-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 0; }
.social-btn {
  display: inline-flex; align-items: center; gap: .7rem; background: var(--navy); color: var(--white);
  padding: .9rem 1.5rem; border-radius: var(--radius); font-weight: 500; font-size: .95rem; transition: background .2s, transform .2s;
}
.social-btn:hover { background: var(--blue); transform: translateY(-2px); }
.legal details { background: var(--white); border: 1px solid var(--grey-lt); border-radius: var(--radius); margin-bottom: .6rem; padding: 0 1.4rem; }
.legal summary {
  cursor: pointer; padding: 1.05rem 0; font-weight: 500; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.legal details[open] summary::after { content: '–'; }
.legal details p { color: #5a5650; line-height: 1.75; font-size: .92rem; margin: 0 0 1rem; }

/* ---- Responsive adicional ---- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--rev .split-media { order: 0; }
  .feature-grid, .info-grid--3, .key-dates, .eval-grid { grid-template-columns: repeat(2, 1fr); }
  .transport-grid { grid-template-columns: 1fr; }
  .festivos { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid, .info-grid--2, .info-grid--3, .key-dates, .eval-grid, .gallery { grid-template-columns: 1fr; }
  .feed-item { grid-template-columns: 1fr; gap: .6rem; }
  .feed-date { justify-self: start; padding: .35rem .8rem; }
  .data-list li { grid-template-columns: 1fr; gap: .2rem; }
  .festivo { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .content-section { padding: 3.5rem 0; }
  .info-card { padding: 1.5rem; }
}

/* =====================================================
   AJUSTE HERO (portada): sin hueco oscuro, alineado con el menú
   ===================================================== */
.hero { min-height: auto; align-items: flex-start; }
.hero-content {
  max-width: var(--max-w);
  width: 100%;
  padding: calc(var(--nav-h) + 4.5rem) 2rem 9rem;
}
.hero-content > * { max-width: 980px; }
.hero-title { font-size: clamp(2.8rem, 6vw, 5rem); }
@media (max-width: 640px) {
  .hero-content { padding: calc(var(--nav-h) + 3rem) 1.25rem 6rem; }
}

.contact-pill { border-radius: var(--radius); padding: .85rem 1.3rem; row-gap: .25rem; }

/* =====================================================
   AJUSTE MENU MOVIL: cerrado no ocupa espacio en la barra
   ===================================================== */
@media (max-width: 1024px) {
  .mobile-menu { display: none; }
  .mobile-menu.open {
    display: flex;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .navbar { max-height: 100vh; }
}

/* =====================================================
   AJUSTE MENU ACTIVO: la página actual se destaca en el menú
   ===================================================== */
.nav-links a { position: relative; }
.nav-links a.active {
  color: var(--accent-lt);
  background: rgba(201,136,42,.18);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: .7rem; right: .7rem; bottom: 3px;
  height: 2px; border-radius: 2px;
  background: var(--accent-lt);
}
.nav-links a.nav-cta.active { background: var(--white); color: var(--navy); }
.nav-links a.nav-cta.active::after { background: var(--accent); }
.mobile-menu a.active {
  color: var(--accent-lt);
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: .75rem;
}

/* =====================================================
   AJUSTE BOTONES REDES: texto blanco legible
   ===================================================== */
.prose a.social-btn { color: var(--white); text-decoration: none; }
.prose a.social-btn:hover { color: var(--white); }

/* =====================================================
   AJUSTE LOGO: emblema del colegio en lugar de la letra A
   ===================================================== */
img.logo-mark {
  display: block;
  width: 36px; height: 36px;
  padding: 2px;
  background: var(--white);
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

/* =====================================================
   AJUSTE LOGOS DEL PIE: Cambridge, Copilot y Educación bajo las redes
   ===================================================== */
.footer-social-col { display: inline-flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.footer-social-col .footer-social { margin-top: 1.5rem; }
.footer-logos { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1rem; }
.footer-logos img {
  display: block;
  height: auto;
  border-radius: 8px;
  background: var(--white);
}
.footer-logos { flex-wrap: wrap; }
.footer-cambridge { width: 180px; }   /* = ancho de los cuatro iconos de redes (4x36 + 3x12) */
.footer-copilot   { width: 143px; }   /* misma altura que el logo de Cambridge */
.footer-edu {
  display: block;
  width: 160px;
  height: auto;
  margin-top: 1.1rem;                 /* logo blanco: va directo sobre el azul del pie */
}

/* =====================================================
   AJUSTE FECHA ACTUALIZADO: siempre en su propia línea
   ===================================================== */
.footer-bottom p { flex: 1 1 340px; line-height: 1.6; }
.footer-bottom .actualizado { display: block; margin-top: .3rem; }

/* =====================================================
   AJUSTE IDIOMAS: líneas secundarias, de menor tamaño, dentro de una característica
   ===================================================== */
.feature .feature-sub {
  display: block;
  margin-top: .4rem;
  font-size: .82rem;
  line-height: 1.45;
  color: #5a5650;
}
.feature .feature-sub + .feature-sub { margin-top: .15rem; }

/* =====================================================
   AJUSTE TIKTOK: botones de redes en cuadrícula 2x2 e iconos en enlaces permanentes
   ===================================================== */
.social-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.social-btn { justify-content: center; }
.link-card .link-icons { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); }
.link-card .link-icons svg { width: 19px; height: 19px; }
.link-card:hover .link-icons { color: var(--accent-lt); }
@media (max-width: 640px) {
  .social-btns { grid-template-columns: 1fr; }
}
