/* Estilos base */
* { box-sizing: border-box; }

main {
  margin-top: 70px; /* ajusta según el alto de tu header */
}


body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #1f2937; }
a { color: #0a4f8f; text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 64px 0; }
.section__title { font-size: 2rem; margin: 0 0 16px; color: #0a4f8f; }
.section__lead { color: hsl(217, 19%, 27%); margin-bottom: 24px; }

/* NAV fija */
.nav {
  position: fixed;      /* Fijo en la pantalla */
  top: 0;
  left: 0;
  width: 100%;          /* Que ocupe todo el ancho */
  z-index: 1000;        /* Por encima del contenido */
  display:flex;
  background: #fffb28fa;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(6px);
}
.nav__container { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1200px, 92%); margin: 0 auto; padding: 10px 0; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 48px; height: 48px; }
.nav__title { font-weight: 700; line-height: 1; color: #0a4f8f; }
.nav__menu { display: flex; gap: 16px; }
.nav__link { padding: 8px 12px; border-radius: 999px; }
.nav__link:hover { background: #e5f0ff; }

/* HERO slider */
.hero { height: 100vh; }
.slider { position: relative; height: 100%; overflow: hidden; }
.slider__track { display: flex; height: 100%; transition: transform .6s ease; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__caption { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); background: #0009; color: #fff; padding: 10px 16px; border-radius: 8px; }

.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); background: #ffffffcc; border: none; padding: 8px 12px; cursor: pointer; border-radius: 8px; }
.slider .prev { left: 12px; } .slider .next { right: 12px; }
.slider__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; }
.dot.active, .dot:hover { background: #fff; }

/* Quienes somos */
.qs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.qs__box { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.qs__celdas { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.celda { background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 12px; padding: 12px; min-height: 120px; display: grid; place-items: center; text-align: center; }
.celda--imagen img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.qs__celdas .celda--imagen:nth-of-type(4) img {width: 100%; height: 100%; object-fit: cover; border-radius: 8px;}

/* Cards académicos */
.cards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px; text-align: center; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #00000014; }
.icon { color: #0a4f8f; margin-bottom: 8px; }
.card h3 { margin: 6px 0; }

/* Modales */
.modal { position: fixed; inset: 0; background: #0008; display: none; align-items: center; justify-content: center; padding: 16px; z-index: 9999999;}
.modal[aria-hidden="false"] { display: flex; }
.modal__dialog { background: #fff; border-radius: 16px; padding: 18px; width: min(2000px, 92vw); max-height: 90vh; overflow: auto; position: relative;  overscroll-behavior: contain; }
.modal__dialog--lg { width: min(1100px, 95vw); }
.modal__close { position: absolute; top: 8px; right: 10px; border: none; background: #ef4444; color: #fff; font-size: 22px; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; }
.modal__toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pdf-viewer { width: 100%; height: 70vh; border: 1px solid #e5e7eb; border-radius: 8px; }


/* Conócenos - mosaico abstracto */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 10px; }
.mosaic__item { border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; display: grid; place-items: center; padding: 10px; }
.mosaic__item--img img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__item--text { background: #eef5ff; color: #0a4f8f; font-weight: 600; }
.mosaic__item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic__item:nth-child(2) { grid-column: span 3; }
.mosaic__item:nth-child(3) { grid-column: span 4; grid-row: span 2; }
.mosaic__item:nth-child(4) { grid-column: span 2; }
.mosaic__item:nth-child(5) { grid-column: span 2; grid-row: span 2; }

/* Proyecto educativo - rombos */
.rombos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 70px; }
.rombo { aspect-ratio: 1 / 1; transform: rotate(45deg); border: 2px solid #0a4f8f; border-radius: 18px; display: grid; place-items: center; }
.rombo__inner { transform: rotate(-45deg); text-align: center; display: grid; gap: 8px; }
.rombo span { font-weight: 600; }

.cardf {
  position: relative;
  width: 210px;
  height: 210px;
  background: white;
  transform: rotate(45deg);
  border-radius: 20px;
  box-shadow: 0px 10px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-content {
  transform: rotate(-45deg);
  text-align: center;
  z-index: 2;
}

.cardf svg {
  width: 48px;
  height: 48px;
  
  margin-bottom: 10px;
}



.card-number {
  position: absolute;
  font-size: 80px;
  font-weight: 700;
  color: rgba(0,0,0,0.05);
  z-index: 1;
  transform: rotate(-45deg);
  top: 20px;
}





/* Noticias */
.news__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.news__card { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; }
.news__card img { width: 100%; height: 160px; object-fit: cover; }
.news__body { padding: 12px; }
.news__img-lg { width: 100%; height: auto; border-radius: 8px; }
.news__more { margin-top: 12px; }
.pagination { margin-top: 16px; display: flex; gap: 6px; }
.page { padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 8px; }
.page.active { background: #0a4f8f; color: #fff; border-color: transparent; }

/* Convenios y Alumni */
.alumni__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.convenios__wrap { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.convenios__img { width: 100%; border-radius: 12px; border: 1px solid #e5e7eb; }

.convenios__wrap__contain{
    width: 100%; display: flex; flex-direction:column; align-items: center; justify-content: center;
}

/* Footer */
.footer { background: #0a4f8f; color: #fff; padding: 32px 0 16px; }
.footer__content { width: min(1100px, 92%); margin: 0 auto; }
.footer__logo { width: 150px; height: 95px; background: #fff; border-radius: 10px; padding: 4px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.footer a { color: #d1e6ff; }
.footer__copy { margin-top: 10px; opacity: .85; font-size: .9rem; text-align: center; }

/* Utilidades */
.btn { display: inline-block; padding: 10px 14px; border-radius: 10px; background: #0a4f8f; color: #fff; }
.btn--outline { padding: 8px 12px; border-radius: 8px; border: 1px solid #0a4f8f; background: #fff; color: #0a4f8f; }

/* Social Media Float */
.social-media-float {
  position: fixed;
  bottom: 1.5rem; /* bottom-6 */
  right: 1.5rem; /* right-6 */
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* space-y-3 */
}

.social-icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem; /* p-3 */
  background-color:#e5e7eb;
  color: var(--white);
  border-radius: 9999px; /* rounded-full */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease-in-out;
}

.social-icon-link:hover {
  background-color: rgba(26, 54, 93, 0.9); /* hover:bg-[#1a365d]/90 */
}


.btn-pse {
  background: #0066CC;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 9999px; /* pill (redondeado completo) */
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}
.btn-pse:hover {
  background: #0052a3;
  transform: scale(1.05);
}



@media (max-width: 820px) {
  .qs__celdas { grid-template-columns: repeat(2, 1fr); }
  .rombos { grid-template-columns: repeat(2, 1fr); }
  .alumni__grid, .convenios__wrap { grid-template-columns: 1fr; }
  .hero { height: 74vh; }
}








