@charset "UTF-8";
.card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
}
.card-wrapper .div-label {
  height: 15px;
  font-size: 8px !important;
}

.card-container {
  width: 53.98mm !important;
  height: 85.6mm !important;
  position: relative !important;
  overflow: hidden !important;
}

.image-container img {
  display: block;
  max-width: 100%;
  height: auto;
}

.text-overlay {
  position: absolute;
  top: 25%;
  text-align: center;
  width: 100%;
}

.img-badge {
  height: 80px;
  width: 80px;
  background-color: gray;
  border-radius: 100%;
  border: 3px solid #b70616;
  margin: auto;
  background-repeat: no-repeat;
  background-size: cover;
}

.border-bottom-label {
  width: 25%;
  border-radius: 20px;
  border-bottom: 2px solid #b70616;
  margin: 3px auto;
  color: #0534a5;
}

.name-student {
  font-size: 14px;
  color: #0534a5;
  margin: -5px 20px 0px 20px;
}

.id-student {
  font-size: 14px;
  color: #0534a5;
}

.class-student {
  font-size: 8px;
  color: #0534a5;
  margin: 0px 0px 5px 0px;
}

.rear-side-content {
  display: flex;
  justify-content: space-around;
}
.rear-side-content .full-width {
  width: 100% !important;
}

.rear-side-content-margin {
  margin: 10px 0px;
}

.label-content {
  width: 35%;
}

.qrcode-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#qrcode {
  width: 60px;
}
#qrcode canvas {
  width: 100%;
}

#certificades-card h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}
#certificades-card {
  /* Dashboard Grid */
}
#certificades-card .cert-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}
#certificades-card .cert-grid-container .cert-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Miniaturas */
}
#certificades-card .cert-grid-container .cert-card .cert-card-preview {
  position: relative;
  background: #f1f3f4;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  padding: 10px;
}
#certificades-card .cert-grid-container .cert-card .cert-card-preview:hover .cert-overlay {
  opacity: 1;
  z-index: 5;
}
#certificades-card .cert-grid-container .cert-card .cert-card-preview .cert-mini-doc {
  background: #ffffff;
  width: auto;
  height: 95%;
  border: 1px solid #dcdcdc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  padding: 12px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#certificades-card .cert-grid-container .cert-card .cert-card-preview .cert-mini-doc .cert-mini-icon {
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 30px !important;
  width: 20px !important;
  height: 20px !important;
  color: #da251c;
  z-index: 3;
}
#certificades-card .cert-grid-container .cert-card .cert-card-preview .cert-mini-doc .cert-mini-content {
  font-family: "Georgia", serif;
  font-size: 9px;
  line-height: 1.4;
  color: #5f6368;
  text-align: justify;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  zoom: 0.3;
}
#certificades-card .cert-grid-container .cert-card .cert-card-preview .cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  font-weight: bold;
}
#certificades-card .cert-grid-container .cert-card .cert-card-body {
  padding: 15px;
  flex-grow: 1;
}
#certificades-card .cert-grid-container .cert-card .cert-card-body .cert-title {
  font-size: 16px !important;
  margin: 0 0 10px 0 !important;
  color: #222;
  text-transform: capitalize;
}
#certificades-card .cert-grid-container .cert-card .cert-meta p {
  font-size: 13px;
  margin: 4px 0 !important;
  color: #555;
}
#certificades-card .cert-grid-container .cert-card .cert-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}
#certificades-card .cert-grid-container .cert-card .cert-status.no-expiry {
  background-color: #e2f7ed;
  color: #1f784e;
}
#certificades-card .cert-grid-container .cert-card .cert-status.expires {
  background-color: #fff3cd;
  color: #856404;
}
#certificades-card .cert-grid-container .cert-card .cert-card-footer {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
}
#certificades-card .cert-grid-container {
  /* --- MAQUETACIÓN MODAL AISLADA --- */
}
#certificades-card .cert-grid-container .cert-fullscreen-modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  width: 95%;
  max-width: 940px;
  height: 90vh;
  max-height: 90vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  flex-direction: column;
}
#certificades-card .cert-grid-container .cert-fullscreen-modal[open] {
  display: flex;
}
#certificades-card .cert-grid-container .cert-fullscreen-modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: #323639;
  color: #fff;
  border-bottom: 1px solid #222;
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-modal-header h3 {
  margin: 0 !important;
  font-size: 18px;
  color: #fff;
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-modal-header .cert-close-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #ccc;
  line-height: 1;
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-modal-header .cert-close-btn:hover {
  color: #fff;
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-modal-content {
  overflow-y: auto;
  flex-grow: 1;
}
@media (max-width: 768px) {
  #certificades-card .cert-grid-container .cert-fullscreen-modal .cert-modal-content {
    zoom: 0.7;
  }
}
@media (max-width: 425px) {
  #certificades-card .cert-grid-container .cert-fullscreen-modal .cert-modal-content {
    zoom: 0.48;
  }
}
@media (max-width: 319px) {
  #certificades-card .cert-grid-container .cert-fullscreen-modal .cert-modal-content {
    zoom: 0.3;
  }
}
#certificades-card .cert-grid-container .cert-fullscreen-modal {
  /* El Wrapper Totalmente Aislado */
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-raw-wrapper {
  display: flow-root;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  background: #fff;
  color: #000;
  box-sizing: border-box;
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-raw-wrapper iframe {
  width: 100%;
  height: 100%;
  background: #525659;
  border: none;
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-raw-wrapper {
  /* Bloques internos con fondo */
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-raw-wrapper > div {
  box-shadow: none !important;
  margin-bottom: 0 !important;
  /* Separación para páginas físicas fijas (Actas) */
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-raw-wrapper > div[style*="width: 816px"], #certificades-card .cert-grid-container .cert-fullscreen-modal .cert-raw-wrapper > div[style*="width:816px"] {
  position: relative;
  border-bottom: 20px solid #525659 !important;
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-raw-wrapper > div:last-child {
  border-bottom: none !important;
}
#certificades-card .cert-grid-container .cert-fullscreen-modal {
  /* Marcador de salto de hoja para cuestionarios fluidos */
  /* .cert-page-break-divider {
      border-top: 2px dashed #bbb;
      margin: 40px 0;
      position: relative;
      clear: both;
      width: 100%;
  } */
}
#certificades-card .cert-grid-container .cert-fullscreen-modal .cert-modal-footer {
  padding: 15px 25px;
  background: #323639;
  border-top: 1px solid #222;
  text-align: right;
}/*# sourceMappingURL=style.css.map */