/* =============================================
   MODAL — Agregar al final de hub.css
   ============================================= */
.hub-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hub-modal-overlay.open {
  display: flex;
}

.hub-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: hubModalIn 0.25s ease-out;
}

@keyframes hubModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Botón cerrar */
.hub-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: #212427;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.hub-modal-close:hover {
  background: #e8eaed;
}

/* Imagen del modal */
.hub-modal-img-wrap {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #f0f2f5;
}

.hub-modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Contenido */
.hub-modal-content {
  padding: 24px 28px 28px;
}

.hub-modal-label {
  color: #006699;
  font-weight: 400;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.hub-modal h3.hub-modal-title,
h3.hub-modal-title {
  font-family: "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: #212427;
  margin: 0 0 10px;
}

.hub-modal-authors {
  color: #212427;
  font-size: 0.88rem;
  margin-bottom: 18px;
  line-height: 1.3;
}
 
.hub-modal-authors strong {
  display: block;
  color: #212427;
  font-weight: 500;
  font-size: 0.75rem;
  margin-bottom: 4px;
}
 
.hub-modal-authors span {
  display: block;
}

/* Resumen */
.hub-modal-resumen {
  margin-bottom: 20px;
}

.hub-modal-resumen p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #212427;
  font-style: italic;
  background: #f8f9fb;
  padding: 16px 20px;
  border-left: 3px solid #006699;
  border-radius: 0 8px 8px 0;
  margin: 0;
}

/* Meta */
.hub-modal-meta {
  display: flex;
  gap: 32px;
  font-size: 0.8rem;
  color: #212427;
  margin-bottom: 20px;
  flex-wrap: wrap;
  line-height: 0.8rem;
}

.hub-modal-meta strong {
  display: block;
  color: #212427;
  font-weight: 500;
  margin-bottom: 3px;
}

/* Footer / botón */
.hub-modal-footer {
  padding-top: 4px;
}

.hub-modal-btn {
  display: inline-block;
  padding: 11px 28px;
  background: #004990;
  color: white !important;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
  float: right;
  margin-bottom: 3%;
}

.hub-modal-btn:hover {
  background: #006699;
  color: white !important;
}


/* =============================================
   MODAL RESPONSIVE — Tablet
   ============================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .hub-modal {
    max-width: 580px;
  }

  .hub-modal-label {
    font-size: 0.7rem;
  }

  .hub-modal-img {
    height: 220px;
  }

  .hub-modal-content {
    padding: 20px 24px 24px;
  }

  .hub-modal h3.hub-modal-title,
  h3.hub-modal-title {
    font-size: 1.2rem !important;
  }
}


/* =============================================
   MODAL RESPONSIVE — Mobile
   ============================================= */
@media (max-width: 767px) {
  .hub-modal-overlay {
    padding: 12px;
  }

  .hub-modal {
    border-radius: 8px 8px 8px 8px;
    max-height: 92vh;
    max-width: 100%;
  }

   .hub-modal-label {
    font-size: 0.7rem;
  }

  .hub-modal-img {
    height: 180px;
  }

  .hub-modal-content {
    padding: 18px 20px 24px;
  }

  .hub-modal h3.hub-modal-title,
  h3.hub-modal-title {
    font-size: 0.84rem !important;
    font-weight: 500;
    line-height: 1.2rem;
  }

  .hub-modal-meta {
    flex-direction: column;
    gap: 10px;
  }

  .hub-modal-authors {
   font-size: 0.8rem;
  }

  .hub-modal-close {
    top: 10px;
    right: 10px;
  }

  .hub-modal-btn {
    width: auto;
    float: right;
	font-size: 0.75rem;
  }
}