/* Tabs de filtro */
.portfolio .nav-tabs .nav-link {
  color: #222;
  padding: .25rem .75rem;
  font-weight: 500;
  border: none;
}

/* Formulario oscuro: inputs claros */
.form-card .form-control,
.form-card .form-select {
  background: #fff;
  border: 0;
}

.form-card .form-check-input {
  border-color: #aaa;
}

/* Tabs del portfolio: sin fondo azul */
.grid-menu .nav-tabs {
  border-bottom: 0;
}

.grid-menu .nav-link {
  background: transparent !important;
  border: 0 !important;
  color: #222;
  padding: .25rem .75rem;
  font-weight: 500;
}

.grid-menu .nav-link:hover,
.grid-menu .nav-link:focus,
.grid-menu .nav-link.active {
  background: transparent !important;
  /* quita el azul */
  box-shadow: none !important;
}


/* Fondo principal */
.countdown-container {
  background: #0d47a1;
  padding: 30px 0;
  text-align: center;
  color: #fff;
}

/* Caja blanca */
.countdown-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  display: inline-block;
  color: #0d47a1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 80%;
}

/* (Se mantiene por compatibilidad si hubiera otros H2 dentro de .countdown-box)
   El nuevo título usará la clase .countdown-title y tendrá prioridad */
.countdown-box h2 {
  margin: 0 0 25px 0;
  font-size: 28px;
  font-family: Arial, sans-serif;
}

.countdown-box .highlight {
  color: #112b88;
  font-weight: bold;
}

/* Contenedor del reloj */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Cajas individuales */
.time-box {
  background: #f0f8ff;
  padding: 20px 30px;
  border-radius: 8px;
  min-width: 120px;
}

/* Números */
.time-box span:first-child {
  font-size: 40px;
  font-weight: bold;
  display: block;
}

/* Etiquetas */
.label {
  font-size: 16px;
  font-weight: normal;
  margin-top: 5px;
  display: block;
}

/* =========================
   NUEVO: Título con Gilroy
========================= */

/* Carga de fuentes (ajusta rutas si es necesario) */
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Bold.woff2') format('woff2'),
    url('assets/fonts/Gilroy-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Medium.woff2') format('woff2'),
    url('assets/fonts/Gilroy-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Título específico del contador */
.countdown-title {
  margin: 0 0 22px 0;
  text-align: center;
  line-height: 1.25;
  color: #222;
}

/* “ADMISIÓN:” y “06 de diciembre” */
.countdown-title .highlight,
.countdown-title strong {
  font-family: 'Gilroy', system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 700;
  /* Bold */
  font-size: 32px;
  /* Tamaño grande */
  letter-spacing: .2px;
  color: #0b3ca8;
  /* Azul institucional */
}

/* Cambia solo el color del “06 de diciembre” */
.countdown-title strong {
  color: #333;
}

/* Subtítulo “Tu futuro empieza en…” */
.countdown-title small {
  display: block;
  margin-top: 6px;
  font-family: 'Gilroy', system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 500;
  /* Medium */
  font-size: 15px;
  opacity: .95;
}

/* (Opcional) pequeño respiro debajo del título para separarlo del reloj */
.countdown-box .countdown-title+.countdown-timer {
  margin-top: 8px;
}



/* ===== Noticias ===== */
:root {
  --azu-700: #112b88;
  /* azul institucional oscuro */
  --azu-500: #003cb3;
  /* celeste botón */
  --azu-400: #112b88;
  --txt-900: #0b2340;
  --txt-600: #58708a;
  --bg-card: #ffffff;
  --radius: 16px;
}

.news {
  padding: 56px 0;
}

.news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news__head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.news__kicker {
  display: inline-block;
  color: var(--azu-400);
  font-weight: 700;
  letter-spacing: .04em;
}

.news__title {
  font-size: 44px;
  line-height: 1.1;
  margin: .2rem 0;
  color: var(--txt-900);
}

.news__subtitle {
  color: var(--txt-600);
  margin: 0;
}

.news__cta {
  background: var(--azu-500);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  align-self: flex-start;
  font-weight: 700;
  transition: .2s ease;
  white-space: nowrap
}

.news__cta:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* Grid */
.news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width:768px) {
  .news__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width:1024px) {
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.news-card {
  background: var(--bg-card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(13, 71, 114, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 71, 114, .14);
}

.news-card__media {
  display: block;
  position: relative;
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.03);
}

.news-card__title {
  font-size: 24px;
  line-height: 1.2;
  margin: 18px 18px 10px;
  color: var(--txt-900);
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--azu-700);
}

.news-card__link {
  display: inline-block;
  margin: 0 18px 18px;
  color: var(--azu-500);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: .2s ease;
}

.news-card__link:hover {
  border-color: var(--azu-500);
}



.form-control,
.form-select {
  border: 1px solid #d1d5db;
  transition: all 0.3s ease-in-out;
}

.form-control:focus,
.form-select:focus {
  border-color: #112b88;
  box-shadow: 0 0 6px rgb(0, 60, 179);
}

.btn-primary {
  background: linear-gradient(90deg, #003cb3, #2563eb);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #2563eb, #1e40af);
}



/* Forzar color negro en menú de navegación */
.nav-link {
  color: #000000 !important;
}

/* Color al pasar el mouse */
.nav-link:hover,
.dropdown-menu .dropdown-item:hover {
  color: #003cb3;
  /* tu azul institucional */
}



.team-section h2 {
  font-size: 2.2rem;
  text-transform: uppercase;
}

.team-section .lead {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.team-photo img {
  border-radius: 220px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.team-photo img:hover {
  transform: scale(1.02);
}

.text-contabilidad {
  color: var(--bs-cyan);
}

.bg-contabilidad {

  background-color: var(--bs-cyan);
}

/*  */


/* === TRIÁNGULOS DECORATIVOS – 5 CARRERAS === */
:root {
  /* Rutas reales de tus triángulos */
  --tri-admin: url('../images/portfolio/triangulo-5.png');
  --tri-conta: url('../images/portfolio/triangulo-6.png');
  --tri-agro: url('../images/portfolio/triangulo-7.png');
  --tri-ti: url('../images/portfolio/triangulo-8.png');
  --tri-enfermeria: url('../images/portfolio/triangulo-9.png');

  /* Sombra y opacidad tipo burbujas */
  --tri-tint: drop-shadow(0 14px 32px rgba(27, 79, 214, .16)) opacity(.92);
}

/* === Contenedor global (fondo flotante decorativo) === */
.triangles-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* antes estaba 1 */
  overflow: hidden;
  pointer-events: none;
}

/* Difuminado leve encima (apenas visible) */
.triangles-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  z-index: 2;
  pointer-events: none;
}

/* Variables animables */
@property --tx {
  syntax: '<length-percentage>';
  inherits: false;
  initial-value: 0px;
}

@property --ty {
  syntax: '<length-percentage>';
  inherits: false;
  initial-value: 0px;
}

@property --rot {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* === Triángulo base === */
.tri {
  position: absolute;
  width: var(--sz, 120px);
  height: var(--sz, 120px);
  background-image: var(--img, var(--tri-admin));
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: var(--tri-tint) blur(0.8px);
  opacity: 0.9;
  will-change: transform, --tx, --ty, --rot;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  animation:
    triRoam var(--dur, 25s) linear infinite alternate,
    triWobble 6s ease-in-out infinite;
}

/* === Posiciones iniciales y trayectorias === */
.tri.t1 {
  --img: var(--tri-admin);
  --sz: 120px;
  top: 6vh;
  left: 6vw;
  --dx: 70vw;
  --dy: 60vh;
  --dur: 24s;
}

.tri.t2 {
  --img: var(--tri-conta);
  --sz: 90px;
  top: 24vh;
  left: 82vw;
  --dx: -60vw;
  --dy: 48vh;
  --dur: 26s;
}

.tri.t3 {
  --img: var(--tri-agro);
  --sz: 150px;
  top: 58vh;
  left: 12vw;
  --dx: 64vw;
  --dy: -40vh;
  --dur: 28s;
}

.tri.t4 {
  --img: var(--tri-ti);
  --sz: 110px;
  top: 78vh;
  left: 70vw;
  --dx: -66vw;
  --dy: -56vh;
  --dur: 30s;
}

.tri.t5 {
  --img: var(--tri-enfermeria);
  --sz: 80px;
  top: 46vh;
  left: 48vw;
  --dx: 36vw;
  --dy: -46vh;
  --dur: 32s;
}

/* === Animaciones === */
@keyframes triRoam {
  0% {
    --tx: 0;
    --ty: 0;
  }

  20% {
    --tx: calc(var(--dx) * 0.25);
    --ty: calc(var(--dy) * 0.2);
  }

  40% {
    --tx: calc(var(--dx) * 0.5);
    --ty: calc(var(--dy) * 0.45);
  }

  60% {
    --tx: calc(var(--dx) * 0.7);
    --ty: calc(var(--dy) * 0.65);
  }

  80% {
    --tx: calc(var(--dx) * 0.85);
    --ty: calc(var(--dy) * 0.85);
  }

  100% {
    --tx: var(--dx);
    --ty: var(--dy);
  }
}

@keyframes triWobble {

  0%,
  100% {
    --rot: 0deg;
  }

  50% {
    --rot: 3deg;
  }
}

/* === Adaptación móvil === */
@media (max-width: 576px) {
  .tri.t1 {
    --sz: 84px;
  }

  .tri.t2 {
    --sz: 68px;
  }

  .tri.t3 {
    --sz: 100px;
  }

  .tri.t4 {
    --sz: 78px;
  }

  .tri.t5 {
    --sz: 60px;
  }

  .tri {
    animation-duration: calc(var(--dur) * 1.25);
  }
}

/* === Accesibilidad === */
@media (prefers-reduced-motion: reduce) {
  .tri {
    animation: none;
  }
}

/* ===== BECA 18 – PRONABEC ===== */
.beca18-section {
  padding: 5rem 0;
}

.beca18-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 35, 64, 0.12);
}

/* === VIDEO IZQUIERDA === */
.beca18-img {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 350px;
}

.beca18-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

/* === TEXTO DERECHA === */
.beca18-text {
  background: linear-gradient(135deg, #003cb3, #1b4fd6);
  color: #fff;
  padding: 3rem;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.beca18-text h2 {
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.beca18-text p {
  line-height: 1.6;
}

.beca18-text ul {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.2rem;
}

.beca18-text ul li {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* ==== BOTONES ==== */
.beca18-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Botón principal */
.beca18-btn {
  border-radius: 50px;
  padding: 10px 28px;
  background: #ffffff;
  color: #003cb3;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
}

.beca18-btn:hover {
  background: #eaf1ff;
  color: #002a8c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 35, 64, 0.25);
}

/* Botón secundario (Prepárate) */
.beca18-btn-secondary {
  border-radius: 50px;
  padding: 10px 28px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  transition: all 0.3s ease;
}

.beca18-btn-secondary:hover {
  background: #fff;
  color: #003cb3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 35, 64, 0.25);
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {

  /* Tarjeta vertical */
  .beca18-card {
    flex-direction: column;
  }

  /* Video arriba */
  .beca18-img {
    min-height: 260px;
  }

  .beca18-img video {
    border-radius: 20px 20px 0 0;
  }

  /* Texto abajo */
  .beca18-text {
    border-radius: 0 0 20px 20px;
    padding: 2rem;
  }

  .beca18-text h2 {
    font-size: 1.6rem;
  }
}

/* Opcional: imagen fija si el video falla */
.beca18-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

/* ==== Contenedor de logos alineados === */
.tiny-slider .item {
  display: flex;
  align-items: center;
  /* centra verticalmente todos */
  justify-content: center;
  /* centra horizontalmente */
  height: 120px;
  /* define una altura base uniforme */
  padding: 0 15px;
}

/* ==== Imágenes de los logos === */
.brand-logo {
  height: 70px;
  /* 🔹 altura fija para todos los logos */
  width: auto;
  /* mantiene proporción original */
  object-fit: contain;
  filter: grayscale(1) opacity(0.75);
  transition: filter 0.25s ease, transform 0.25s ease;
  display: block;
  margin: 0 auto;
}

/* Hover */
.brand-logo:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

/* ==== Logo destacado (Pronabec) === */
.brand-logo.destacado {
  height: 90px;
  /* 🔹 un poco más alto, pero mismo baseline */
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

/* ==== Responsivo === */
@media (max-width: 992px) {
  .brand-logo {
    height: 60px;
  }

  .brand-logo.destacado {
    height: 80px;
  }
}

/* ======= CONSULTA AQUÍ ======= */
.blog {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 0;
}

/* --- Contenedor principal --- */
.blog .container {
  position: relative;
  z-index: 2;
}

/* --- Formulario (lado izquierdo) --- */
.blog .bg-light {
  background: #f8fafc;
  /* azul claro sutil */
  border-right: 4px solid #003fbc;
}

.blog form label {
  color: #0b2340;
  font-weight: 500;
}

.blog .form-control,
.blog .form-select {
  border-radius: 10px;
  border: 1px solid #dce3f0;
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.blog .form-control:focus,
.blog .form-select:focus {
  border-color: #004ade;
  box-shadow: 0 0 0 3px rgba(0, 74, 222, 0.15);
}

/* --- Botón Enviar --- */
.blog .btn-primary {
  background: linear-gradient(90deg, #003fbc, #004ade);
  border: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.blog .btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 74, 222, 0.25);
}

/* --- Columna derecha (Información) --- */
.blog .bg-primary {
  background: linear-gradient(135deg, #002878, #003fbc);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.blog .bg-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.blog .bg-primary h3,
.blog .bg-primary h5 {
  color: #fff;
}

.blog .bg-primary p {
  color: #e5e7eb;
  line-height: 1.6;
  font-size: 0.95rem;
}

.blog .bg-primary a {
  color: #fff;
  text-decoration: none;
}

.blog .bg-primary hr {
  opacity: 0.3;
}

/* --- Iconos sociales --- */
.blog .social-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.blog .social-icon:hover {
  transform: scale(1.08);
}

/* --- WhatsApp flotante --- */
.btn-circle.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-circle.whatsapp:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55);
}

/* --- Widget de teléfonos (botón flotante) --- */
.contact-widget {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1000;
}

.btn-circle.phone {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #004ade;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(0, 74, 222, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-circle.phone:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 74, 222, 0.5);
}

/* --- Menú de teléfonos --- */
.contact-widget .contact-menu {
  display: none;
  position: absolute;
  right: 70px;
  bottom: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 10px 14px;
  width: 260px;
}

.contact-widget:hover .contact-menu {
  display: block;
}

.contact-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-menu li {
  font-size: 0.85rem;
  border-bottom: 1px solid #e5e7eb;
  padding: 6px 0;
  color: #0b2340;
}

.contact-menu li strong {
  display: block;
  color: #004ade;
  font-weight: 700;
}

/* --- Responsivo --- */
@media (max-width: 768px) {

  .blog .bg-light,
  .blog .bg-primary {
    padding: 30px 20px;
  }

  .blog .bg-light {
    border-right: none;
    border-bottom: 4px solid #003fbc;
  }
}

/* Fondo general azul de toda la sección */
.blog {
  background: linear-gradient(135deg, #002878, #003fbc);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Ajuste para mantener el bloque con sombra sobre el fondo */
.blog .container.my-5 {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0;
}

/* ===========================
   RESPONSIVE GLOBAL OVERRIDES
   (añadir al final del CSS)
   =========================== */

/* ====== Tablet (≤ 992px) ====== */
@media (max-width: 991.98px) {

  /* Hero / slider */
  .tiny-slider-inner.h-500 {
    height: 440px;
  }

  .tiny-slider-inner.h-lg-700 {
    height: 520px;
  }

  .slide-beca18 {
    background-position: 22% center !important;
  }

  .slide-beca18 h5 {
    font-size: 1rem;
    margin-bottom: .25rem;
  }

  .slide-beca18 h1 {
    font-size: 2.4rem;
    line-height: 1.12;
  }

  .slide-beca18 h3 {
    font-size: 1.15rem;
    margin-top: .5rem;
  }

  .slide-beca18 .btn {
    padding: .65rem 1.2rem;
    font-size: 1rem;
  }

  /* Imagen “Beca 18” grande pero controlada */
  .slide-beca18 img[alt*="Beca 18"] {
    max-width: 620px;
  }

  /* Countdown */
  .countdown-container {
    padding: 22px 0;
  }

  .countdown-box {
    min-width: 92%;
    padding: 22px;
  }

  .countdown-box h2 {
    font-size: 24px;
  }

  .countdown-timer {
    gap: 16px;
  }

  .time-box {
    min-width: 110px;
    padding: 16px 18px;
  }

  .time-box span:first-child {
    font-size: 34px;
  }

  .label {
    font-size: 14px;
  }

  /* Noticias */
  .news {
    padding: 44px 0;
  }

  .news__title {
    font-size: 34px;
  }

  .news-card__title {
    font-size: 20px;
  }

  .news-card__media img {
    height: 200px;
  }

  /* Logos convenios */
  .tiny-slider .item {
    height: 100px;
  }

  .brand-logo {
    height: 60px;
  }

  .brand-logo.destacado {
    height: 72px;
  }

  /* Formularios (tap targets) */
  .form-control,
  .form-select {
    min-height: 44px;
    font-size: 16px;
  }

  /* evita zoom iOS */
}

/* ====== Mobile (≤ 768px) ====== */
@media (max-width: 767.98px) {

  /* Hero / slider */
  .tiny-slider-inner.h-500 {
    height: 400px;
  }

  .slide-beca18 {
    background-position: 18% center !important;
  }

  .slide-beca18 .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .slide-beca18 h5 {
    font-size: .95rem;
  }

  .slide-beca18 h1 {
    font-size: 2rem;
  }

  .slide-beca18 h3 {
    font-size: 1.05rem;
  }

  .slide-beca18 img[alt*="Beca 18"] {
    max-width: 460px;
    width: 88%;
  }

  .slide-beca18 .btn {
    padding: .6rem 1rem;
    font-size: .95rem;
  }

  /* Overlay de lectura extra (suave) */
  .slide-beca18.bg-overlay-dark-3::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(40% 50% at 22% 45%, rgba(14, 61, 202, .55) 0%, rgba(7, 24, 77, .75) 60%, rgba(3, 13, 46, .9) 100%);
    pointer-events: none;
  }

  /* Countdown */
  .countdown-box {
    min-width: 100%;
    padding: 16px;
    border-radius: 12px;
  }

  .countdown-timer {
    flex-wrap: wrap;
    gap: 12px;
  }

  .time-box {
    min-width: 46%;
    padding: 14px 12px;
    border-radius: 10px;
  }

  .time-box span:first-child {
    font-size: 28px;
  }

  .label {
    font-size: 13px;
  }

  /* Noticias */
  .news__head {
    flex-direction: column;
    gap: 12px;
  }

  .news__title {
    font-size: 28px;
  }

  .news-card__media img {
    height: 180px;
  }

  .news__cta {
    align-self: stretch;
    text-align: center;
  }

  /* Logos convenios */
  .tiny-slider .item {
    height: 84px;
    padding: 0 8px;
  }

  .brand-logo {
    height: 48px;
  }

  .brand-logo.destacado {
    height: 62px;
  }

  /* Navegación: color y área táctil */
  .nav-link {
    padding: 10px 8px;
    font-size: .95rem;
  }

  /* Widgets flotantes: evitar superposición con el contenido */
  .btn-circle.whatsapp {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .contact-widget {
    right: 16px;
    bottom: 80px;
  }

  .btn-circle.phone {
    width: 52px;
    height: 52px;
  }

  /* Blog/Consulta aquí */
  .blog {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .blog .container.my-5 {
    border-radius: 14px;
  }

  .blog .bg-light {
    border-right: none;
    border-bottom: 4px solid #003fbc;
  }

  .blog .bg-light,
  .blog .bg-primary {
    padding: 24px 16px;
  }

  /* Triángulos decorativos aún más sutiles en móvil */
  .tri {
    opacity: .55;
    filter: blur(1px);
  }
}

/* ====== Compact (≤ 576px) ====== */
@media (max-width: 575.98px) {

  /* Hero / slider aún más compacto */
  .tiny-slider-inner.h-500 {
    height: 360px;
  }

  .slide-beca18 {
    background-position: 16% center !important;
  }

  .slide-beca18 h1 {
    font-size: 1.8rem;
  }

  .slide-beca18 img[alt*="Beca 18"] {
    max-width: 380px;
    width: 92%;
  }

  /* Countdown: 2x2 */
  .time-box {
    min-width: 48%;
  }

  /* Cards de noticias */
  .news-card__title {
    font-size: 18px;
    margin: 14px 14px 8px;
  }

  .news-card__media img {
    height: 170px;
  }
}

/* ====== Hover helpers (solo cuando hay puntero) ====== */
@media (hover:hover) {
  .news-card:hover {
    transform: translateY(-4px);
  }

  .brand-logo:hover {
    transform: scale(1.05);
  }
}

/* === Mostrar barra superior en móvil === */
@media (max-width: 768px) {

  /* Fuerza a que se muestre */
  .top-bar,
  .header-top,
  .navbar-top,
  .nav-top,
  .topbar,
  .header__top {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2000;
  }

  /* Ajusta el texto para que no se sobreponga */
  .top-bar a,
  .header-top a,
  .topbar a {
    font-size: 13px;
    color: #444 !important;
    text-decoration: none;
    margin: 0 6px;
    white-space: nowrap;
  }

  /* Íconos sociales */
  .top-bar i,
  .header-top i,
  .topbar i {
    font-size: 16px;
    color: #112b88;
  }
}

/* ===== Botones Admisión (Header) ===== */

/* Estilos base */
.navbar-nav .btn-adm {
  font-weight: 800;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 60, 179, .25);
  padding: 8px 16px;
}

/* Separación entre botones */
.navbar-nav .btn-adm {
  margin-left: 12px;
  /* Ajusta la separación aquí */
}

/* El primer botón NO debe tener margen */
.navbar-nav .nav-item:first-of-type .btn-adm {
  margin-left: 0 !important;
}


/* === Mostrar y fijar en móvil (≤ 992px) === */
@media (max-width: 991.98px) {

  /* El contenedor tiene d-none: lo forzamos a mostrarse */
  .nav-item.d-none.d-lg-inline-block {
    display: block !important;
  }

  /* Hacemos el botón flotante y destacado */
  .nav-item.d-none.d-lg-inline-block>a.btn-grad[href*="Admision2.php"] {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 11000;
    display: inline-flex;
    align-items: center;
    gap: 8px;

    /* tamaño y forma */
    font-size: 15px;
    padding: 10px 22px;
    border-radius: 50px;

    /* asegura el gradiente institucional */
    background: linear-gradient(90deg, #003cb3, #112b88) !important;
    color: #fff !important;
    border: none;

    /* visibilidad */
    box-shadow: 0 10px 24px rgba(0, 60, 179, .38);
    animation: pulse-admision 2.2s infinite;
  }

  /* Pulso sutil para llamar la atención */
  @keyframes pulse-admision {
    0% {
      box-shadow: 0 0 0 0 rgba(0, 60, 179, .45);
    }

    70% {
      box-shadow: 0 0 0 16px rgba(0, 60, 179, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(0, 60, 179, 0);
    }
  }

  /* Si tienes WhatsApp flotante, lo movemos un poco para no chocar */
  .btn-circle.whatsapp {
    bottom: 80px;
    /* ajusta si lo necesitas */
  }
}

/* Hover (desktop) */
@media (hover:hover) {
  .navbar .btn-grad[href*="Admision2.php"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(17, 43, 136, .35);
  }
}

/* Preloader general limpio (solo una versión) */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .5s ease, visibility .5s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

#preloader-video {
  width: 250px;
  height: auto;
  border-radius: 14px;
}

@keyframes floatOttito {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.ottito-float {
  animation: floatOttito 2 s ease-in-out infinite;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .25));
}

.hero-sub {
  color: #fff;
  font-weight: 600;
  margin-top: .8rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.hero-sub span {
  font-weight: 800;
  color: #ffd75d;
  /* tono dorado Urusayhua */
}

/* ======= TARJETA DEL FORMULARIO ======= */
.card.bg-white,
.card {
  border-radius: 16px !important;
  border: 1px solid #f0f0f0 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
}

/* ======= TITULO ======= */
.card h3 {
  font-weight: 700;
  color: #0d1c3b;
}

/* ======= CAMPOS ======= */
.form-control-lg,
.form-select-lg {
  padding: 14px 18px !important;
  font-size: 15px !important;
  border-radius: 10px !important;
  border: 1px solid #d9d9d9 !important;
  background-color: #fff !important;
  color: #333 !important;
  transition: all 0.2s ease-in-out;
}

/* Placeholder */
.form-control::placeholder {
  color: #9da5b4 !important;
}

/* Hover */
.form-control:hover,
.form-select:hover {
  border-color: #1b4fd6 !important;
}

/* Focus (azul institucional Urusayhua) */
.form-control:focus,
.form-select:focus {
  border-color: #1b4fd6 !important;
  box-shadow: 0 0 0 3px rgba(27, 79, 214, 0.15) !important;
}

/* ======= CHECKBOX ======= */
.form-check-input {
  width: 18px;
  height: 18px;
  border-radius: 4px !important;
  border: 2px solid #1b4fd6 !important;
}

.form-check-input:checked {
  background-color: #1b4fd6 !important;
  border-color: #1b4fd6 !important;
}

/* ======= BOTÓN ENVIAR ======= */
.btn-primary {
  background: linear-gradient(90deg, #003cb3, #1b4fd6) !important;
  border: none !important;
  padding: 14px !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #002c8a, #173fa3) !important;
  transform: translateY(-1px);
}

/* ======= SOMBRA EN LOS CAMPOS CUANDO SE AGRUPAN ======= */
.row.g-3>div {
  margin-bottom: 8px;
}

/* ================================
   AJUSTES SLIDE OTTITO COMPLETO
================================ */

/* Desktop (PC) */
.slide-simulacro-ottito .col-lg-5 {
  margin-right: -40px !important;
}

.slide-simulacro-ottito img.ottito-float {
  max-width: 420px !important;
  height: auto !important;
}

/* Título con interlineado reducido */
.titulo-beca18 {
  font-size: 2.8rem !important;
  line-height: 1.05 !important;
  /* ✔ interlineado compacto */
  margin: .15rem 0 .6rem !important;
}

/* Párrafo más compacto */
.texto-beca18 {
  line-height: 1.3 !important;
}

/* ================================
   TABLET (≤ 992px)
================================ */
@media (max-width: 992px) {

  /* Imagen centrada */
  .slide-simulacro-ottito .col-lg-5 {
    text-align: center !important;
    margin-right: 0 !important;
  }

  .slide-simulacro-ottito img.ottito-float {
    max-width: 250px !important;
  }

  .titulo-beca18 {
    font-size: 2.3rem !important;
    line-height: 1.05 !important;
  }
}

/* ================================
   MÓVIL (≤ 576px)
================================ */
@media (max-width: 576px) {

  /* Imagen centrada */
  .slide-simulacro-ottito img.ottito-float {
    max-width: 260px !important;
    display: block !important;
    margin: 0 auto -8px auto !important;
  }

  /* Subir texto */
  .slide-simulacro-ottito .col-lg-7 {
    margin-top: -8px !important;
  }

  .titulo-beca18 {
    font-size: 1.9rem !important;
    line-height: 1.05 !important;
  }

  .texto-beca18 {
    font-size: 0.95rem !important;
  }
}

/* ================================
   Slide Ottito – alineación global
================================ */

/* PC: Ottito más cerca del texto */
.slide-simulacro-ottito .col-lg-5 {
  margin-right: -40px !important;
}

.slide-simulacro-ottito img.ottito-float {
  max-width: 420px !important;
  height: auto !important;
}

/* Tablet */
@media (max-width: 992px) {
  .slide-simulacro-ottito .col-lg-5 {
    margin-right: 0 !important;
    text-align: center !important;
  }

  .slide-simulacro-ottito img.ottito-float {
    max-width: 250px !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

/* Celular */
@media (max-width: 576px) {
  .slide-simulacro-ottito .col-lg-5 {
    text-align: center !important;
  }

  .slide-simulacro-ottito img.ottito-float {
    max-width: 200px !important;
    display: block !important;
    margin: 0 auto -10px auto !important;
  }

  .slide-simulacro-ottito .col-lg-7 {
    margin-top: -10px !important;
  }
}

/* === Mostrar barra superior también en TABLET (768px – 992px) === */
@media (min-width: 769px) and (max-width: 992px) {

  .top-bar,
  .header-top,
  .navbar-top,
  .nav-top,
  .topbar,
  .header__top {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2000;
  }

  .top-bar a,
  .header-top a,
  .topbar a {
    font-size: 13px;
    color: #444 !important;
    margin: 0 6px;
    white-space: nowrap;
  }

  .top-bar i,
  .header-top i,
  .topbar i {
    font-size: 16px;
    color: #112b88;
  }
}

/* ============================
   Bloque Acreditaciones / ISO
   ============================ */

.acreditaciones-section {
  padding: 60px 0;
}

/* Limitar ancho de los textos para que no se vean tan largos */
.acreditaciones-section .acreditaciones-text {
  max-width: 520px;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Separación más ordenada entre columnas en escritorio */
@media (min-width: 992px) {
  .acreditaciones-section .col-md-6:first-child {
    padding-right: 40px;
  }

  .acreditaciones-section .col-md-6:last-child {
    padding-left: 40px;
  }
}

/* En tablet y móvil: todo más centrado y cómodo de leer */
@media (max-width: 991.98px) {
  .acreditaciones-section h2 {
    text-align: center;
  }

  .acreditaciones-section .d-flex {
    flex-direction: row;
  }

  .acreditaciones-section .acreditaciones-text {
    max-width: 100%;
  }

  .acreditaciones-section img.rounded {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 575.98px) {
  .acreditaciones-section .display-1 {
    font-size: 3rem;
    /* número 01 / 02 más pequeño */
  }

  .acreditaciones-section .acreditaciones-text {
    font-size: 0.95rem;
  }
}

/* AJUSTES PARA MÓVIL */
@media (max-width: 480px) {

  /* TÍTULO PRINCIPAL */
  .bg-overlay-dark-1 h1.display-5 {
    font-size: 1.45rem !important;
    line-height: 1.18 !important;
    max-width: 65% !important;
    /* reduce ancho -> despeja la chica */
  }

  /* SUBTÍTULO */
  .hero-sub {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    max-width: 60% !important;
    /* evita que se extienda hacia la derecha */
  }

  /* BLOQUE CONTENEDOR DEL TEXTO */
  .bg-overlay-dark-1 .col-md-8 {
    max-width: 65% !important;
    /* mueve todo más a la izquierda */
    padding-top: 25px !important;
  }

  /* AJUSTE DE LA ALTURA DEL CONTENIDO PARA BAJAR EL TEXTO */
  .bg-overlay-dark-1 .row.d-flex {
    padding-top: 40px !important;
    /* baja el texto */
  }
}

/* ============================================================
   SLIDE 1 (PORTADA) — AJUSTES PARA TABLET Y CELULAR
   ============================================================ */

/* --- SLIDE 1: Tablet (576px a 991px) --- */
@media (min-width: 576px) and (max-width: 991.98px) {

  .hero-home-1 h1.display-5 {
    font-size: 2rem !important;
    line-height: 1.15 !important;
    max-width: 60% !important;
  }

  .hero-home-1 .hero-sub {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    max-width: 55% !important;
  }

  .hero-home-1 .col-md-8.col-lg-7 {
    max-width: 60% !important;
  }
}

/* --- SLIDE 1: Celular (hasta 575px) --- */
@media (max-width: 575.98px) {

  .hero-home-1 h1.display-5 {
    font-size: 1.35rem !important;
    line-height: 1.15 !important;
    max-width: 70% !important;
  }

  .hero-home-1 .hero-sub {
    font-size: .95rem !important;
    line-height: 1.2 !important;
    max-width: 68% !important;
    margin-top: .4rem !important;
  }

  .hero-home-1 .col-md-8.col-lg-7 {
    padding-top: 15px !important;
    max-width: 75% !important;
  }
}

/* ============================================================
   SLIDE 2 (BECA 18) — AJUSTES PARA TABLET Y CELULAR
   ============================================================ */

/* --- SLIDE 2: Tablet (576px a 991px) --- */
@media (min-width: 576px) and (max-width: 991.98px) {

  .slide-beca18 img[alt*="Beca 18"] {
    max-width: 480px !important;
    width: 100%;
  }

  .slide-beca18 h1 {
    font-size: 2.2rem !important;
  }

  .slide-beca18 h3 {
    font-size: 1.1rem !important;
  }
}

/* --- SLIDE 2: Celular (hasta 575px) --- */
@media (max-width: 575.98px) {

  .slide-beca18 {
    background-position: 18% center !important;
  }

  .slide-beca18 .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .slide-beca18 h5 {
    font-size: 0.9rem !important;
  }

  .slide-beca18 h1 {
    font-size: 1.6rem !important;
    line-height: 1.1 !important;
  }

  .slide-beca18 h3 {
    font-size: 1rem !important;
  }

  .slide-beca18 img[alt*="Beca 18"] {
    max-width: 420px !important;
    width: 90% !important;
  }

  .slide-beca18 .btn {
    padding: .55rem 0.9rem !important;
    font-size: 0.9rem !important;
  }
}

/* Fondo general */
.section-mv {
  background-color: #f4f7fb;
}

/* Tarjeta */
.mv-card {
  position: relative;
  background: #ffffff;
  border-radius: 26px;
  padding: 32px 36px 36px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Marco interno azul */
.mv-card::before {
  content: "";
  position: absolute;
  inset: 16px 18px;
  border-radius: 22px;
  border: 2px solid #2347a5;
  /* 🔵 azul instituto */
}

/* Cabecera con línea azul */
.mv-card__header {
  position: relative;
  margin-bottom: 18px;
}

.mv-card__header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid #2347a5;
  z-index: 0;
}

/* Título */
.mv-card__title {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0 6px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1rem;
  color: #1f2b4d;
  background: #ffffff;
  z-index: 1;
}

/* Texto */
.mv-card__body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

/* Responsive */
@media (max-width: 767.98px) {
  .mv-card {
    padding: 26px 22px 28px;
  }

  .mv-card::before {
    inset: 12px 14px;
  }

  .mv-card__curve {
    left: 26px;
    right: 26px;
    bottom: 12px;
    height: 36px;
  }
}

/* ===== MODAL MINECRAFT URUSAYHUA ===== */

.uru-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

/* Caja principal */
.uru-modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  position: relative;
  overflow: hidden;
  /* verde tipo Minecraft */
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
  animation: modalUp .4s ease;
  font-family: 'Press Start 2P', cursive;
}

/* Imagen arriba */
.uru-modal-image img {
  width: 100%;
  display: block;
}

/* Contenido */
.uru-modal-content {
  padding: 18px;
  text-align: center;
}

/* Título */
/* Pregunta estilo Minecraft */
.uru-modal-content h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #163b88;
  margin-bottom: 14px;
}


/* Texto */
.uru-modal-content p {
  font-size: 0.65rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 18px;
}

/* Botón estilo gamer */
.uru-modal-btn {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.65rem;
  text-decoration: none;
  border: 3px solid #000;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3);
}

/* Hover */
.uru-modal-btn:hover {
  transform: translateY(1px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3);
}

/* Botón cerrar */
.uru-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #000;
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Press Start 2P', cursive;
}

/* Animación */
@keyframes modalUp {
  from {
    transform: translateY(40px) scale(.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Responsive ajustes */
@media (max-width: 480px) {
  .uru-modal-content h3 {
    font-size: 0.75rem;
  }

  .uru-modal-content p {
    font-size: 0.6rem;
  }
}

/* ===== Panel Eventos (estilo UAndina) ===== */
.events {
  padding: 42px 0;
}

.events__container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.events__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.events__kicker {
  display: inline-block;
  font-weight: 900;
  letter-spacing: .08em;
  color: #003cb3;
  font-size: 12px;
  margin-bottom: 8px;
}

.events__title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  margin: 0 0 10px;
  color: #0b1f3a;
  font-weight: 900;
}

.events__subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  max-width: 560px;
}

.events__btn {
  background: #115bc9;
  color: #fff;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(0, 181, 226, .18);
  transition: .2s ease;
}

.events__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 181, 226, .22);
}

.events__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 980px) {
  .events__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .events__grid {
    grid-template-columns: 1fr;
  }

  .events__btn {
    width: fit-content;
  }
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card__media {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 16 / 9;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .35s ease;
}

.event-card__media:hover img {
  transform: scale(1.06);
}

.event-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  color: #0b1f3a;
}

.event-card__title a {
  text-decoration: none;
  color: inherit;
}

.event-card__link {
  width: fit-content;
  color: #1734b8;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 3px solid rgba(0, 181, 226, .25);
  padding-bottom: 2px;
}