/* =========================================
   BOTÓN FLOTANTE WHATSAPP
========================================= */
/* =========================================
   BOTÓN FLOTANTE WHATSAPP
========================================= */
.whatsapp-float{
  position: fixed;
  right: 16px;
  bottom: 90px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 999999;

  background: #25D366;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;

  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.whatsapp-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.30);
  background: #1ebe5d;
  color: #fff !important;
}

.whatsapp-float i,
.whatsapp-float svg{
  width: 22px;
  height: 22px;
  font-size: 22px;
  flex-shrink: 0;
}

.whatsapp-float span{
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 767px){
  .whatsapp-float{
    right: 12px;
    bottom: 90px;
    width: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 999px;
    gap: 0;
  }

  .whatsapp-float span{
    display: none;
  }

  .whatsapp-float i,
  .whatsapp-float svg{
    width: 26px;
    height: 26px;
    font-size: 26px;
  }
}


/* Override .btn-primary only: color #004183 (theme --primary unchanged) */
.btn.btn-primary,
.btn.btn-primary:link,
.btn.btn-primary:visited {
  background-color: #004183 !important;
  border-color: #004183 !important;
  color: #ffffff !important;
}
.btn.btn-primary:hover,
.btn.btn-primary.hover {
  background-color: #00345f !important;
  border-color: #00345f !important;
  color: #ffffff !important;
}
.btn.btn-primary:focus,
.btn.btn-primary.focus,
.btn.btn-primary:active,
.btn.btn-primary.active {
  background-color: #00345f !important;
  border-color: #00345f !important;
  color: #ffffff !important;
}

/* Botones btn-dark con color #00356b */
.btn.btn-dark,
.btn.btn-dark:link,
.btn.btn-dark:visited {
  background-color: #00356b !important;
  border-color: #00356b !important;
  color: #fff !important;
}
.btn.btn-dark:hover,
.btn.btn-dark:focus,
.btn.btn-dark:active,
.btn.btn-dark.active {
  background-color: #002a56 !important;
  border-color: #002a56 !important;
  color: #fff !important;
}

/* Glass-style override for .btn-outline-light only */
.btn-outline-light {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  color: #ffffff;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #ffffff;
  color: #ffffff;
}

/* Reserva espacio estable para el área del logo */
#header .header-logo {
	min-width: 220px;
}

/* Logo normal grande */
/* Logo normal más grande */
#header .header-logo .header-logo-non-sticky {
  width: 170px !important;
  height: auto !important;
  max-width: none !important;
}

/* Logo sticky pequeño */
#header .header-logo .header-logo-sticky {
  width: 89px !important;
  height: auto !important;
  max-width: none !important;
  display: block;
}

/* Mantener alineación del bloque superior */
#header .header-container .header-row {
  align-items: center !important;
}

/* Subir el bloque del logo solo cuando NO está sticky */
#header:not(.sticky-header-active) .header-logo {
  transform: translateY(-10px);
}

/* Dar más espacio al contenedor del logo */
#header .header-container {
  min-height: 100px;
}

/* Tablas en sección costos: encabezados centrados excepto primera columna */
#costos table thead th {
  text-align: center;
}
#costos table thead th:first-child {
  text-align: left;
}


/* =========================================
   BANNER DE COOKIES IUEM
========================================= */
#iuem-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background-color: #00356b;
  color: #ffffff !important;
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  font-size: 0.9375rem;
  line-height: 1.5;
  display: none;
}

#iuem-cookie-banner.is-visible {
  display: block;
}

#iuem-cookie-banner .iuem-cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff !important;
}

#iuem-cookie-banner .iuem-cookie-text {
  flex: 1 1 280px;
  margin: 0;
  color: #ffffff !important;
}

#iuem-cookie-banner .iuem-cookie-text p,
#iuem-cookie-banner p {
  margin: 0;
  color: #ffffff !important;
}

#iuem-cookie-banner .iuem-cookie-text a,
#iuem-cookie-banner .iuem-cookie-text a:link,
#iuem-cookie-banner .iuem-cookie-text a:visited {
  color: #ebb10f !important;
  text-decoration: underline;
}

#iuem-cookie-banner .iuem-cookie-text a:hover {
  color: #f5c42a !important;
}

#iuem-cookie-banner .iuem-cookie-btn {
  flex: 0 0 auto;
  background-color: #ebb10f !important;
  color: #00356b !important;
  border: none;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

#iuem-cookie-banner .iuem-cookie-btn:hover {
  background-color: #d39e0d !important;
  color: #00356b !important;
  transform: translateY(-1px);
}

@media (max-width: 575px) {
  #iuem-cookie-banner {
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  }

  #iuem-cookie-banner .iuem-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  #iuem-cookie-banner .iuem-cookie-text {
    flex: 1 1 auto;
    width: 100%;
  }

  #iuem-cookie-banner .iuem-cookie-btn {
    width: 100%;
    max-width: 220px;
    align-self: center;
  }
}

/* =========================================
   RECURSOS EN VIDEO - GRADO ACADÉMICO
========================================= */
.video-resource-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-resource-card:hover {
  transform: translateY(-4px);
}

.video-resource-thumb {
  position: relative;
}

.video-resource-thumb .video-resource-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 53, 107, 0.85);
  color: #fff;
  font-size: 18px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-resource-thumb:hover .video-resource-play,
.video-resource-thumb:focus-visible .video-resource-play {
  background: rgba(0, 65, 131, 0.9);
  transform: translate(-50%, -50%) scale(1.04);
}

/* =========================================
   CENTRO DE RECURSOS - GRADO ACADÉMICO
========================================= */
.resource-group {
  position: relative;
}

.resource-group:not(:last-child) {
  border-bottom: 1px solid rgba(0, 53, 107, 0.14);
}

.resource-download-card {
  border-left: 4px solid #004183 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.resource-download-card .badge {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.45em 0.7em;
}

.resource-sidebar .card {
  border-left: 4px solid #004183;
}

@media (max-width: 991px) {
  .resource-sidebar {
    position: static !important;
  }
}

/* =========================================
   DESCARGABLES - GRADO ACADÉMICO (SECCIÓN D)
========================================= */
.ga-downloads-wrap {
  max-width: 980px;
}

.ga-download-block {
  border: 1px solid rgba(0, 53, 107, 0.14);
  border-left: 5px solid #004183;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
}

.ga-download-header {
  border-bottom: 1px solid rgba(0, 53, 107, 0.12);
  padding-bottom: 0.8rem;
}

.ga-download-badge {
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  padding: 0.5em 0.8em;
}

.ga-download-list {
  display: grid;
  gap: 0.7rem;
}

.ga-download-item {
  border: 1px solid rgba(0, 53, 107, 0.12);
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ga-download-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 65, 131, 0.3);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.ga-download-item-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ga-download-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 65, 131, 0.1);
  color: #004183;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ga-download-title {
  color: #1f2a37;
  font-size: 1.03rem;
  line-height: 1.35;
  font-weight: 600;
}

.ga-download-meta {
  color: #5d6b7b;
  font-size: 0.9rem;
  line-height: 1.4;
}

.ga-download-btn {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ga-download-block {
    padding: 1rem;
  }

  .ga-download-item {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
  }

  .ga-download-btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================================
   CALLOUT REGLAMENTO - GRADO ACADÉMICO
========================================= */
.ga-reglamento-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid rgba(0, 53, 107, 0.14);
  border-left: 5px solid #004183;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 1.3rem 1.4rem;
}

.ga-reglamento-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(0, 65, 131, 0.12);
  color: #004183;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.ga-reglamento-badge {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.5em 0.8em;
}

.ga-reglamento-btn {
  min-width: 190px;
}

@media (max-width: 767px) {
  .ga-reglamento-highlight {
    padding: 1rem;
  }

  .ga-reglamento-btn {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================
   ACCESO RAPIDO - GRADO ACADEMICO
========================================= */
.quick-access-card .card-body {
  padding-top: 1.35rem !important;
  padding-bottom: 1.4rem !important;
}

.quick-access-icon-wrap {
  width: 62px;
  height: 62px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 65, 131, 0.14) 0%, rgba(0, 65, 131, 0.08) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-access-icon {
  font-size: 1.45rem;
}

.quick-access-title {
  line-height: 1.3;
}

.quick-access-desc {
  min-height: 48px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .quick-access-desc {
    min-height: 0;
  }
}






