/* =====================================================
   CETPRO IQUITOS – Public Site CSS
   ===================================================== */

:root {
  --navy:      #0D1F4E;
  --navy-mid:  #1A3A6E;
  --blue:      #1E5FCC;
  --blue-light:#3B82F6;
  --gold:      #E8A020;
  --gold-light:#FFC233;
  --bg:        #F7F9FE;
  --bg-white:  #FFFFFF;
  --text:      #1A2341;
  --muted:     #6B7A99;
  --border:    #E4ECF8;
  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 8px 32px rgba(13,31,78,0.10);
  --shadow-lg: 0 20px 60px rgba(13,31,78,0.16);
  --font:      'Poppins', sans-serif;
  --ease:      cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: #fff; overflow-x: hidden; }
a { text-decoration: none; transition: all .25s var(--ease); }
img { max-width: 100%; display: block; }

/* ── UTILITIES ─────────────────────────────────────── */
.section-padding { padding: 96px 0; }
.bg-light-custom { background: var(--bg); }

/* ── TOPBAR CIUDADANA ────────────────────────────────── */
.ciudadano-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 1001;
  display: flex; align-items: center;
}
.ciudadano-topbar .container { width: 100%; }
.ciudadano-topbar span.small { color: rgba(255,255,255,.5); font-size: .72rem; }
.topbar-link {
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.topbar-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar-link-highlight {
  color: var(--gold-light);
  font-weight: 600;
}
.topbar-link-highlight:hover { color: #fff; background: rgba(232,160,32,.2); }

@media (max-width: 767px) {
  .ciudadano-topbar span.small { display: none; }
  .ciudadano-topbar { height: 32px; }
  #mainNav { top: 32px !important; }
}

/* ── NAVBAR ─────────────────────────────────────────── */
#mainNav {
  background: transparent;
  padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
  z-index: 1000;
}
#mainNav.scrolled {
  background: var(--navy);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(13,31,78,.28);
}

.nav-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.footer-logo {
  width: 50px; height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-title { font-size: .95rem; font-weight: 800; color: #fff; letter-spacing: .06em; }
.brand-sub   { font-size: .6rem; color: rgba(255,255,255,.55); letter-spacing: .12em; }

#mainNav .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-size: .84rem; font-weight: 500;
  padding: 6px 13px !important;
  border-radius: 8px;
}
#mainNav .nav-link:hover { color: #fff !important; background: rgba(13,31,78,.2); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff !important;
  font-size: .82rem; font-weight: 700;
  padding: 8px 18px; border-radius: 50px;
  box-shadow: 0 4px 15px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.45); color: #fff; }

.navbar-toggler { border: none; padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: none; }

/* ── HERO ────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 36px; /* altura de .ciudadano-topbar */
  background: #070F2A;
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7,15,42,.92)  0%,
    rgba(13,31,78,.85) 45%,
    rgba(13,31,78,.60) 75%,
    rgba(7,15,42,.70)  100%
  );
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 75% 50%, rgba(30,95,204,.18) 0%, transparent 65%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,31,78,.25);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 6px 18px; border-radius: 50px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .04em;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin: 18px 0 20px;
  letter-spacing: -.01em;
}
.hero-title strong { color: var(--gold-light); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  line-height: 1.75;
  max-width: 520px;
}

/* Botón principal: dorado sobre hero azul */
.btn-amarillo {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700; border: none;
  padding: 13px 28px; border-radius: 50px;
  font-size: .95rem; font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(232,160,32,.45);
  transition: all .25s var(--ease);
}
.btn-amarillo:hover {
  transform: translateY(-3px);
  background: var(--gold-light);
  box-shadow: 0 10px 32px rgba(232,160,32,.6);
  color: var(--navy) !important;
}

.btn-outline-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  color: #fff !important;
  font-weight: 600; border: 2px solid rgba(255,255,255,.55);
  padding: 11px 26px; border-radius: 50px;
  font-size: .95rem;
  backdrop-filter: blur(8px);
}
.btn-outline-hero:hover { border-color: #fff; background: rgba(255,255,255,.25); color: #fff !important; }

.hero-checks { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero-check {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,.9); font-weight: 500;
}
.hero-check i { color: var(--gold); font-size: .9rem; }

/* Hero visual (right side) */
.hero-visual {
  position: relative;
  width: 420px; height: 500px;
}

.hero-circle {
  width: 220px; height: 220px;
  background: linear-gradient(135deg, rgba(13,31,78,.45), rgba(13,31,78,.7));
  border: 2px solid rgba(255,255,255,.22);
  backdrop-filter: blur(14px);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  position: absolute; top: 44%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.hero-circle i { font-size: 2.5rem; color: var(--blue-light); }
.hero-circle span { font-size: .85rem; font-weight: 700; color: #fff; line-height: 1.3; }

.float-card {
  position: absolute;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: .73rem; font-weight: 700;
  padding: 8px 14px; border-radius: 30px;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 20px rgba(13,31,78,.3);
  animation: floatAnim 3s ease-in-out infinite;
  white-space: nowrap;
}
.float-card i { color: var(--blue); }
/* 7 float cards distribuidos orbitalmente */
.fc1 { top: 4%;   left: -8px;  animation-delay: 0s; }
.fc2 { top: 4%;   right: -8px; animation-delay: .4s; }
.fc3 { top: 31%;  left: -16px; animation-delay: .8s; }
.fc4 { top: 31%;  right: -16px;animation-delay: 1.2s; }
.fc5 { bottom: 18%; left: 0;   animation-delay: 1.6s; }
.fc6 { bottom: 18%; right: 0;  animation-delay: 2s; }
.fc7 { bottom: 2%;  left: 50%; margin-left: -60px; animation-delay: 2.4s; }

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

/* Wave */
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; display: block; }

/* ── FRASES ──────────────────────────────────────────── */
.frases-section {
  padding: 28px 0;
  background: linear-gradient(90deg, #0D1F4E 0%, #162B60 50%, #0D1F4E 100%);
}
.frases-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
}
.frase-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: .85rem; font-weight: 500;
}
.frase-item i { color: var(--blue-light); font-size: .9rem; }

/* ── STATS ───────────────────────────────────────────── */
.stats-section {
  padding: 72px 0;
  background: #fff;
}
.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }

.stat-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(59,130,246,.28);
}
.stat-number {
  font-size: 2.6rem; font-weight: 900;
  color: var(--navy); line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: .85rem; color: var(--muted); font-weight: 500; }

/* ── SECTION HEADER ──────────────────────────────────── */
.section-header { text-align: center; }
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(30,95,204,.12), rgba(30,95,204,.06));
  border: 1px solid rgba(30,95,204,.28);
  color: var(--blue);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 50px;
}
.section-badge-white {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.9);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 50px;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800; color: var(--text);
  margin: 12px 0 14px; line-height: 1.2;
}
.section-subtitle {
  font-size: .975rem; color: var(--muted);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ── NOSOTROS ────────────────────────────────────────── */
.nav-pills .nav-link {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted) !important;
  font-size: .83rem; font-weight: 600;
  padding: 8px 18px !important;
  border-radius: 50px;
  transition: all .25s var(--ease);
}
.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(13,31,78,.25);
}

.miv-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.miv-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(59,130,246,.28);
}
.miv-box h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.miv-box p  { font-size: .9rem; color: var(--muted); line-height: 1.75; }

.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.valor-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: .8rem; font-weight: 600; color: var(--text);
}
.valor-item i { color: var(--blue); font-size: .85rem; width: 14px; text-align: center; }

.feature-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: #fff;
  margin-bottom: 16px;
  transition: all .25s var(--ease);
  box-shadow: 0 2px 12px rgba(13,31,78,.05);
}
.feature-item:hover { border-color: var(--gold-light); box-shadow: var(--shadow); transform: translateX(6px); }
.feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(232,160,32,.12), rgba(232,160,32,.06));
  border: 1.5px solid rgba(232,160,32,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--blue);
  flex-shrink: 0;
}
.feature-item h5 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.feature-item p  { font-size: .83rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ── PROGRAMAS ───────────────────────────────────────── */
.programa-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
}
.programa-card:has(.prog-imagen) {
  padding: 0;
}
.programa-card:has(.prog-imagen) h5,
.programa-card:has(.prog-imagen) p,
.programa-card:has(.prog-imagen) .prog-meta,
.programa-card:has(.prog-imagen) .btn-prog {
  padding-left: 20px;
  padding-right: 20px;
}
.programa-card:has(.prog-imagen) h5  { padding-top: 4px; }
.programa-card:has(.prog-imagen) .btn-prog { margin: 0 20px 20px; display: block; }
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .3s var(--ease);
  height: 100%;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.programa-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  opacity: 0;
  transition: opacity .3s var(--ease);
  border-radius: var(--radius);
}
.programa-card:hover { border-color: var(--blue); transform: translateY(-8px); box-shadow: 0 24px 60px rgba(232,160,32,.2); }
.programa-card:hover::after { opacity: .03; }

.prog-imagen {
  width: 100%; height: 180px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 20px;
  transition: transform .4s var(--ease);
}
.programa-card:hover .prog-imagen { transform: scale(1.04); }

.prog-icon {
  width: 68px; height: 68px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #fff;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  box-shadow: 0 8px 24px rgba(59,130,246,.3);
  transition: all .3s var(--ease);
}
.programa-card:hover .prog-icon {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 8px 24px rgba(232,160,32,.38);
  transform: scale(1.08) rotate(-4deg);
}

.programa-card h5 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.programa-card p {
  font-size: .855rem; color: var(--muted);
  line-height: 1.65; flex: 1; margin-bottom: 16px;
}

.prog-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.prog-meta span {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--muted); font-weight: 500;
}
.prog-meta i { color: var(--blue); font-size: .75rem; }

.btn-prog {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg);
  color: var(--blue); font-size: .83rem; font-weight: 700;
  padding: 9px 18px; border-radius: 50px;
  border: 1.5px solid var(--border);
  transition: all .25s var(--ease);
  margin-top: auto; align-self: flex-start;
}
.btn-prog:hover { background: var(--blue); color: var(--navy); border-color: var(--blue); }

.cta-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-color: transparent;
}
.cta-card-content { text-align: center; padding: 12px 0; }
.cta-icon { font-size: 2.8rem; color: var(--gold-light); opacity: .8; margin-bottom: 16px; }
.cta-card h5 { color: #fff; font-size: 1.1rem; }
.cta-card p  { color: rgba(255,255,255,.65); font-size: .875rem; }

/* ── HORARIOS ────────────────────────────────────────── */
.horarios-section {
  background: linear-gradient(135deg, var(--navy) 0%, #162B60 50%, #0B1A3B 100%);
  position: relative; overflow: hidden;
}
.horarios-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,95,204,.18) 0%, transparent 70%);
  top: -200px; right: -100px;
}

.horario-card {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.horario-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.horario-card:hover { background: rgba(255,255,255,.12); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.2); }

.h-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.h-icon.sun   { background: rgba(232,160,32,.2);  color: var(--gold-light); }
.h-icon.moon  { background: rgba(59,130,246,.18); color: var(--blue-light); }
.h-icon.night { background: rgba(139,92,246,.2);  color: #C4B5FD; }

.horario-card h4 {
  font-size: 1.25rem; font-weight: 800;
  color: #fff; margin-bottom: 8px;
}
.h-time {
  font-size: 2rem; font-weight: 900;
  color: var(--blue-light); margin-bottom: 10px; letter-spacing: -.01em;
}
.horario-card p { font-size: .875rem; color: rgba(255,255,255,.65); margin-bottom: 20px; }

.h-dias { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.h-dias span {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.8);
}

/* ── GALERÍA ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 14px; overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-bg {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px; text-align: center;
}
.gallery-bg i  { font-size: 2.2rem; color: rgba(255,255,255,.7); }
.gallery-bg span { font-size: .8rem; color: rgba(255,255,255,.8); font-weight: 600; }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,31,78,.75) 0%, rgba(13,31,78,.2) 60%, transparent 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 18px; gap: 6px;
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i    { font-size: 1.4rem; color: var(--blue); }
.gallery-overlay span { font-size: .82rem; font-weight: 600; color: #fff; text-align: center; }

/* ── TESTIMONIOS ─────────────────────────────────────── */
.test-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: all .3s var(--ease);
  height: 100%;
  display: flex; flex-direction: column;
}
.test-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--blue-light); }

.test-stars { color: var(--gold); font-size: .9rem; margin-bottom: 14px; letter-spacing: 2px; }

.test-texto {
  font-size: .9rem; color: var(--text);
  line-height: 1.75; flex: 1;
  font-style: italic; margin-bottom: 20px;
}

.test-autor {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.test-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(59,130,246,.32);
}
.test-nombre { font-weight: 700; font-size: .9rem; color: var(--navy); }
.test-prog   { font-size: .78rem; color: var(--muted); }

.swiper-pagination-bullet        { background: var(--border); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--blue); }

/* ── NOTICIAS ────────────────────────────────────────── */
.noticia-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .3s var(--ease);
  height: 100%;
  display: flex; flex-direction: column;
}
.noticia-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }

.noticia-img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.noticia-card:hover .noticia-img { transform: scale(1.04); }

.not-icon {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.3);
}

.not-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 20px 6px;
}
.not-cat {
  background: var(--blue);
  color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: .04em; text-transform: uppercase;
}
.not-fecha { font-size: .78rem; color: var(--muted); margin-left: auto; }

.noticia-card h5 { padding: 8px 20px 8px; font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin: 0; }
.noticia-card p  { padding: 0 20px 20px; font-size: .855rem; color: var(--muted); line-height: 1.65; margin: 0; flex: 1; }
a.noticia-card, a.noticia-card:hover { color: inherit; }
a.noticia-card .btn-prog { display: block; margin: 0 20px 20px; }

/* ── VIDEOS ──────────────────────────────────────────── */
.video-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .3s var(--ease);
  cursor: pointer;
  height: 100%;
  display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }

.video-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--navy);
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.video-card:hover .video-thumb img { transform: scale(1.06); }

.video-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0D1F4E, #1B3A7E);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: rgba(255,255,255,.2);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
  transition: background .3s;
}
.video-play-btn i {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.9);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  padding-left: 4px;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  transition: transform .25s, background .25s;
}
.video-card:hover .video-play-btn { background: rgba(0,0,0,.45); }
.video-card:hover .video-play-btn i { transform: scale(1.14); background: #fff; }

.video-info {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.video-info h6 {
  font-size: .97rem; font-weight: 700; color: var(--navy);
  margin: 0; line-height: 1.4;
}
.video-info p {
  font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-platform {
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: .04em; text-transform: uppercase;
  align-self: flex-start;
}
.video-platform.youtube { background: #ff0000; color: #fff; }
.video-platform.vimeo   { background: #1ab7ea; color: #fff; }
.video-platform.otro    { background: var(--blue); color: #fff; }

/* ── MATRÍCULA ───────────────────────────────────────── */
.bg-matricula {
  background: linear-gradient(135deg, var(--bg) 0%, #FFF8EC 100%);
}
.steps { margin-top: 24px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 20px;
}
.step-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(59,130,246,.32);
}
.step h6 { font-size: .92rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.step p  { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.6; }

.matricula-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.matricula-box h4 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }

.req-list { list-style: none; padding: 0; margin-bottom: 24px; }
.req-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  font-size: .875rem; color: var(--text);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.req-list li:last-child { border-bottom: none; }
.req-list i { color: #22C55E; font-size: .9rem; }

.docs-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  border: 1.5px solid var(--border);
}
.docs-box h6 { font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.docs-box ul { padding-left: 16px; margin: 0; }
.docs-box li { font-size: .84rem; color: var(--muted); margin-bottom: 5px; line-height: 1.5; }

/* ── CONTACTO ────────────────────────────────────────── */
.contact-info { display: flex; flex-direction: column; gap: 4px; }
.ci-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: background .2s;
}
.ci-item:hover { background: var(--bg); }
.ci-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59,130,246,.28);
}
.ci-item h6 { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .05em; }
.ci-item p  { font-size: .9rem; color: var(--text); font-weight: 500; margin: 0; }
.ci-item a  { color: var(--blue); }
.ci-item a:hover { color: var(--navy); }

.social-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all .25s var(--ease);
}
.social-btn.fb { background: #1877F2; color: #fff; }
.social-btn.wa { background: #25D366; color: #fff; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }

.contact-form .form-label { font-size: .83rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.contact-form .form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: .875rem; font-family: var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgba(30,95,204,.14);
  outline: none;
}

/* ── FOOTER ──────────────────────────────────────────── */
.footer { background: var(--navy); }

.footer-top {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.75; margin: 16px 0 24px;
}

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}
.footer-socials a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.footer-heading {
  font-size: .8rem; font-weight: 700;
  color: #fff; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px; font-size: .875rem;
  color: rgba(255,255,255,.6);
}
.footer-contact-list i { color: var(--gold-light); margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
  padding: 18px 0;
  font-size: .8rem; color: rgba(255,255,255,.35);
}

/* ── FLOATS ──────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  z-index: 9999;
  transition: all .25s var(--ease);
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.12); color: #fff; box-shadow: 0 10px 32px rgba(37,211,102,.6); }

@keyframes waPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 6px 24px rgba(37,211,102,.5), 0 0 0 10px rgba(37,211,102,.1); }
}

.back-top {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: #fff;
  border: none; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  box-shadow: var(--shadow);
  z-index: 9999;
  opacity: 0; transform: translateY(16px);
  transition: all .3s var(--ease);
  pointer-events: none;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-top:hover { background: var(--blue); transform: translateY(-3px); }

/* ── CHATBOT ──────────────────────────────────────────── */
.chat-toggle {
  position: fixed;
  bottom: 98px; right: 24px;
  width: 52px; height: 52px;
  background: var(--blue);
  color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(27,58,126,.45);
  cursor: pointer;
  z-index: 1040;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.chat-toggle:hover { background: var(--gold); transform: scale(1.08); }
.chat-toggle .chat-dot {
  position: absolute; top: -2px; right: -2px;
  width: 13px; height: 13px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
}

.chat-window {
  position: fixed;
  bottom: 162px; right: 16px;
  width: 330px; max-height: 490px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  z-index: 1039;
  overflow: hidden;
  transform: scale(.88) translateY(24px);
  transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1; pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, var(--navy), #1B3A7E);
  color: #fff;
  padding: 13px 14px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.chat-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-info strong { display: block; font-size: .88rem; line-height: 1.2; }
.chat-header-info small  { font-size: .72rem; opacity: .7; }
.chat-close {
  background: none; border: none;
  color: rgba(255,255,255,.65); font-size: 1rem; cursor: pointer; padding: 4px;
  line-height: 1; flex-shrink: 0;
}
.chat-close:hover { color: #fff; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px 12px 6px;
  display: flex; flex-direction: column; gap: 8px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-bubble {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: .83rem; line-height: 1.55;
  white-space: pre-line;
  word-break: break-word;
}
.chat-bubble.bot {
  background: #f1f5f9; color: #1e293b;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-bubble.user {
  background: var(--blue); color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-bubble.typing { opacity: .6; font-style: italic; }

.chat-opts {
  padding: 6px 10px 12px;
  display: flex; flex-direction: column; gap: 5px;
  flex-shrink: 0;
}
.chat-opt-btn {
  text-align: left;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 7px 13px;
  font-size: .8rem; font-weight: 500;
  cursor: pointer; color: var(--navy);
  transition: all .18s;
  line-height: 1.3;
}
.chat-opt-btn:hover  { background: var(--blue); color: #fff; border-color: var(--blue); }
.chat-opt-btn.back   { color: #64748b; border-color: #cbd5e1; }
.chat-opt-btn.wa-btn { background: #25D366; color: #fff; border-color: #25D366; }
.chat-opt-btn.wa-btn:hover { background: #1ebe5a; }

@media (max-width: 400px) {
  .chat-window { width: calc(100vw - 20px); right: 10px; }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
section { scroll-margin-top: 72px; }

@media (max-width: 991px) {
  .hero-visual { display: none; }
  .frases-grid { gap: 10px 20px; }
}
@media (max-width: 767px) {
  .section-padding { padding: 64px 0; }
  .hero-title  { font-size: 2.1rem; }
  .stats-section { padding: 48px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .matricula-box { padding: 24px; }
  .h-time { font-size: 1.6rem; }
  .frases-grid { flex-direction: column; align-items: center; }
}
