/* ═══════════════════════════════════════════════
   mi-colegio.css — Estilos de mi-colegio.php
═══════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────── */
.mc-hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.mc-hero-bg { position: absolute; inset: 0; }
.mc-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mc-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,30,61,.82) 0%, rgba(15,30,61,.65) 50%, rgba(15,30,61,.92) 100%);
}
.mc-hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 900px; margin: 0 auto;
  padding: 7rem 1.25rem 4rem; text-align: center;
}
@media (min-width: 768px) { .mc-hero-inner { padding: 8rem 2rem 4rem; } }

.mc-breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.6); margin-bottom: 2rem;
}
.mc-breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.mc-breadcrumb a:hover { color: var(--green-lt); }
.mc-breadcrumb i { color: rgba(255,255,255,.35); }
.mc-breadcrumb span { color: rgba(255,255,255,.9); font-weight: 500; }

.mc-inst-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(5,150,105,.2); border: 1px solid rgba(5,150,105,.4);
  color: #6ee7b7; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 99px; margin-bottom: 1.5rem;
}

.mc-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 1.25rem;
}
.mc-hero-title .gt {
  background: linear-gradient(135deg, #34d399, #5eead4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mc-hero-desc {
  font-size: clamp(.95rem, 2vw, 1.125rem); color: rgba(255,255,255,.72);
  line-height: 1.7; max-width: 600px; margin: 0 auto 3rem; font-weight: 300;
}

.mc-stats-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-bottom: 3rem;
}
.mc-stat-value {
  font-family: 'Playfair Display', serif; font-size: 1.75rem;
  font-weight: 700; color: var(--green-lt); display: block;
}
.mc-stat-label {
  font-size: .7rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .1em; margin-top: .25rem; display: block;
}

.mc-quick-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.mc-nav-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .85rem; font-weight: 500;
  padding: .6rem 1.25rem; border-radius: 99px;
  transition: all .3s; cursor: pointer; white-space: nowrap;
  font-family: inherit; background: none;
}
.mc-nav-pill i { color: var(--green-lt); }
.mc-nav-pill:hover { background: rgba(255,255,255,.2); border-color: rgba(52,211,153,.6); }

.mc-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.35); animation: mcBounce 2s ease-in-out infinite;
}
@keyframes mcBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ─── SECTION HEADER ─────────────────────────── */
.mc-sec-header { text-align: center; margin-bottom: 4rem; }
.mc-sec-label {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--green); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem;
}
.mc-sec-label::before, .mc-sec-label::after {
  content: ''; display: block; width: 2rem; height: 1px; background: var(--green);
}
.mc-sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700; color: #0f1e3d; line-height: 1.2; margin-bottom: .75rem;
}
.mc-sec-desc { font-size: .9375rem; color: #64748b; max-width: 520px; margin: 0 auto; line-height: 1.65; }

/* ─── HISTORIA / TIMELINE ────────────────────── */
#historia { padding: 6rem 0; background: linear-gradient(to bottom, #f8fafc, #fff); }
.timeline-wrap { position: relative; max-width: 860px; margin: 0 auto; }
.timeline-line {
  position: absolute; left: 1.5rem; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, rgba(26,58,108,.3), rgba(5,150,105,.4), rgba(26,58,108,.1));
}
@media (min-width: 768px) { .timeline-line { left: 50%; transform: translateX(-50%); } }

.timeline-item {
  position: relative; display: flex; align-items: center;
  margin-bottom: 3rem; opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }
@media (min-width: 768px) {
  .timeline-item:nth-child(odd)  { flex-direction: row; }
  .timeline-item:nth-child(even) { flex-direction: row-reverse; }
}

.timeline-card {
  background: #fff; border: 1px solid #e8edf4;
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-left: 3.5rem; width: 100%; transition: box-shadow .3s;
}
.timeline-card:hover { box-shadow: var(--shadow-lg); }
@media (min-width: 768px) {
  .timeline-card { width: calc(50% - 2.5rem); margin-left: 0; }
  .timeline-item:nth-child(odd)  .timeline-card { text-align: right; margin-right: 2.5rem; }
  .timeline-item:nth-child(even) .timeline-card { text-align: left;  margin-left:  2.5rem; }
}

.timeline-year {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; padding: .25rem .75rem; border-radius: 99px; margin-bottom: .75rem;
}
.timeline-title { font-size: 1rem; font-weight: 700; color: #0f1e3d; margin-bottom: .5rem; transition: color .2s; }
.timeline-card:hover .timeline-title { color: var(--navy); }
.timeline-desc { font-size: .85rem; color: #64748b; line-height: 1.65; }

.timeline-icon {
  position: absolute; left: 0; z-index: 2;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); flex-shrink: 0;
}
@media (min-width: 768px) { .timeline-icon { position: static; flex-shrink: 0; margin: 0 auto; } }
.timeline-icon i { font-size: 1.25rem; color: #fff; }

.timeline-spacer { display: none; }
@media (min-width: 768px) { .timeline-spacer { display: block; flex: 1; } }

/* ─── MISIÓN & VISIÓN ────────────────────────── */
#mision { padding: 6rem 0; background: #fff; }
.mv-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .mv-grid { grid-template-columns: 1fr 1fr; } }

.mv-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.mv-card.visible { opacity: 1; transform: translateY(0); }
.mv-card:nth-child(2) { transition-delay: .15s; }
.mv-card-bg { position: absolute; inset: 0; }
.mv-card-bg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mv-card-body { position: relative; z-index: 2; padding: 2.5rem; }
.mv-icon-wrap {
  width: 3.25rem; height: 3.25rem; border-radius: .875rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.mv-icon-wrap i { font-size: 1.4rem; }
.mv-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .75rem; display: block; }
.mv-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.mv-text { font-size: .875rem; color: rgba(255,255,255,.8); line-height: 1.7; }

.valores-box { background: linear-gradient(135deg, #0f1e3d, #1a3a6c); border-radius: var(--radius-xl); padding: 2.5rem; }
.valores-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: .5rem; }
.valores-sub { font-size: .85rem; color: rgba(255,255,255,.5); text-align: center; margin-bottom: 2rem; }
.valores-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (min-width: 640px) { .valores-grid { grid-template-columns: repeat(6,1fr); } }

.valor-item { display: flex; flex-direction: column; align-items: center; gap: .75rem; opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.valor-item.visible { opacity: 1; transform: translateY(0); }
.valor-icon {
  width: 3.25rem; height: 3.25rem; border-radius: .875rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.valor-icon:hover { background: rgba(5,150,105,.3); border-color: rgba(52,211,153,.5); }
.valor-icon i { font-size: 1.4rem; color: var(--green-lt); }
.valor-label { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); text-align: center; }

/* ─── DIRECTIVOS ─────────────────────────────── */
#directivos { padding: 6rem 0; background: linear-gradient(to bottom, #f8fafc, #fff); }
.directivos-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 540px)  { .directivos-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .directivos-grid { grid-template-columns: repeat(4,1fr); } }

.directivo-card {
  background: #fff; border: 1px solid #e8edf4;
  border-radius: var(--radius-lg); overflow: hidden;
  opacity: 0; transform: translateY(32px);
  transition: all .7s ease;
}
.directivo-card.visible { opacity: 1; transform: translateY(0); }
.directivo-card:hover { border-color: #d1dae8; box-shadow: var(--shadow-lg); }

.directivo-photo { position: relative; height: 15rem; overflow: hidden; }
.directivo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.directivo-card:hover .directivo-photo img { transform: scale(1.05); }
.directivo-photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,30,61,.6), transparent); }
.directivo-role-icon {
  position: absolute; bottom: 1rem; left: 1rem;
  width: 2.5rem; height: 2.5rem; border-radius: .625rem;
  display: flex; align-items: center; justify-content: center;
}
.directivo-role-icon i { font-size: 1rem; color: #fff; }

.directivo-info { padding: 1.25rem; }
.directivo-cargo {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; padding: .25rem .65rem; border-radius: 99px; margin-bottom: .75rem;
}
.directivo-name { font-size: .95rem; font-weight: 700; color: #0f1e3d; margin-bottom: .5rem; transition: color .2s; line-height: 1.3; }
.directivo-card:hover .directivo-name { color: var(--navy); }
.directivo-desc {
  font-size: .8rem; color: #64748b; line-height: 1.6; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.directivo-email { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--green); text-decoration: none; transition: color .2s; }
.directivo-email:hover { color: #047857; }
.directivo-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── RECONOCIMIENTOS ────────────────────────── */
#reconocimientos { padding: 6rem 0; background: #fff; }
.recon-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 4rem; }
@media (min-width: 640px)  { .recon-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .recon-grid { grid-template-columns: repeat(3,1fr); } }

.recon-card {
  position: relative; background: #fff; border: 1px solid #e8edf4;
  border-radius: var(--radius-lg); padding: 1.5rem; overflow: hidden;
  opacity: 0; transform: translateY(32px);
  transition: all .7s ease, border-color .3s;
}
.recon-card.visible { opacity: 1; transform: translateY(0); }
.recon-card:hover { border-color: #d1dae8; box-shadow: var(--shadow-md); }

.recon-blob {
  position: absolute; top: -1.5rem; right: -1.5rem;
  width: 6rem; height: 6rem; border-radius: 50%;
  opacity: .08; filter: blur(24px); transition: opacity .3s; pointer-events: none;
}
.recon-card:hover .recon-blob { opacity: .15; }

.recon-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.recon-icon { width: 3rem; height: 3rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.recon-icon i { font-size: 1.25rem; color: #fff; }
.recon-meta { text-align: right; }
.recon-year { font-size: .75rem; color: #94a3b8; font-weight: 500; display: block; }
.recon-badge { display: inline-block; font-size: .68rem; font-weight: 700; color: #fff; padding: .2rem .6rem; border-radius: 99px; margin-top: .25rem; }
.recon-title { font-size: .95rem; font-weight: 700; color: #0f1e3d; margin-bottom: .4rem; transition: color .2s; }
.recon-card:hover .recon-title { color: var(--navy); }
.recon-entidad { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--green); margin-bottom: .75rem; }
.recon-desc { font-size: .82rem; color: #64748b; line-height: 1.6; }

/* Banner CTA final */
.recon-cta {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0f1e3d, #1a3a6c, #0f2d3d);
  padding: 3rem 1.5rem; text-align: center;
}
.recon-cta-deco { position: absolute; pointer-events: none; border-radius: 50%; }
.recon-cta-deco-1 { top: 1rem; left: 2rem; width: 8rem; height: 8rem; border: 2px solid rgba(255,255,255,.15); }
.recon-cta-deco-2 { bottom: 1rem; right: 2rem; width: 6rem; height: 6rem; border: 2px solid rgba(52,211,153,.2); }
.recon-cta-stars { display: flex; justify-content: center; gap: .75rem; margin-bottom: 1.25rem; }
.recon-cta-stars i { font-size: 1.2rem; color: #fbbf24; }
.recon-cta-title { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem,3vw,2rem); font-weight: 700; color: #fff; margin-bottom: .75rem; }
.recon-cta-desc { font-size: .9rem; color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto 2rem; line-height: 1.65; }
.recon-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.btn-wa { display: inline-flex; align-items: center; gap: .5rem; background: #059669; color: #fff; font-weight: 700; font-size: .875rem; padding: .85rem 1.75rem; border-radius: 99px; transition: all .3s; white-space: nowrap; text-decoration: none; }
.btn-wa:hover { background: #047857; transform: scale(1.05); }
.btn-ghost { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 500; font-size: .875rem; padding: .85rem 1.75rem; border-radius: 99px; transition: all .3s; white-space: nowrap; text-decoration: none; }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ─── VIDEO INSTITUCIONAL ────────────────────── */
#video-institucional {
  padding: 5rem 0;
  background: var(--bg-gray);
}
.mc-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(26,58,108,.22);
  aspect-ratio: 16 / 9;
  background: #000;
}
.mc-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mc-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,42,84,.12) 0%,
    transparent 35%,
    transparent 65%,
    rgba(6,78,59,.18) 100%
  );
  pointer-events: none;
}
.mc-video-controls {
  position: absolute;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 10;
  display: flex;
  gap: .5rem;
}
.mc-video-btn {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .2s;
  cursor: pointer;
}
.mc-video-btn:hover {
  background: rgba(255,255,255,.32);
  transform: scale(1.08);
}
@media (max-width: 767px) {
  #video-institucional { padding: 3rem 0; }
  .mc-video-wrapper { border-radius: var(--radius-lg); }
}
