/* Tarjeta de la credencial. Misma geometría que AlumnoInscrito.vue del portal. */
.cv-card {
  width: 80vw;
  min-width: 250px;
  max-width: 320px;
  aspect-ratio: 2.125 / 3.375;
  perspective: 1200px;
  margin: 0 auto;
}
.cv-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .8s;
  transform-style: preserve-3d;
  cursor: pointer;
}
.cv-inner.flipped { transform: rotateY(180deg); }
.cv-face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: #2b4870;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.25), 0 10px 10px -5px rgba(0,0,0,.08);
  display: flex; flex-direction: column; align-items: center;
  container-type: inline-size;
  color: #fff; text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.cv-front { background-image: url(/static/img/Frente.png); }
.cv-back { background-image: url(/static/img/Atras.png); transform: rotateY(180deg); }

.cv-foto {
  margin-top: 35cqw;
  width: 35cqw; height: 42cqw;
  border-radius: 5cqw;
  border: .6cqw solid rgba(255,255,255,.2);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.2);
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  overflow: hidden;
}
.cv-foto svg { width: 55%; height: 55%; }
.cv-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-nombre { margin-top: 2.5cqw; padding: 0 4cqw; width: 100%; }
/* Colores fijados aquí para que los estilos de la página que contiene la tarjeta no los cambien. */
.cv-face .cv-nombre h2 {
  color: #fff;
  margin: 0; font-size: 4.5cqw; font-weight: 900; line-height: 1.2;
  letter-spacing: -.01em; text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0,0,0,.15);
}
.cv-face .cv-nombre h2 + h2 { margin-top: .5cqw; }
.cv-face .cv-carrera {
  margin: 1.2cqw 0 0; font-size: 2.8cqw; font-weight: 700; opacity: .9; color: #f1f5f9;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center;
}
.cv-face .cv-matricula { margin: 1.2cqw 0 0; font-size: 3cqw; font-weight: 900; color: #fff; text-align: center; }
.cv-insignia {
  margin-top: 2.5cqw;
  background: #f08223; color: #fff;
  font-size: 2.5cqw; font-weight: 900;
  padding: .5cqw 2.5cqw; border-radius: 1cqw;
  text-transform: uppercase;
}
.cv-insignia.mal { background: #b91c1c; }
.cv-qr {
  margin-top: 3cqw;
  padding: .4cqw; background: #fff;
  border-radius: 2.5cqw;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.2);
}
.cv-qr > div { width: 19cqw; height: 19cqw; }
.cv-qr svg { width: 100%; height: 100%; display: block; }

/* Reverso: los valores van debajo de las etiquetas que ya trae Atras.png */
.cv-dato {
  position: absolute; left: 6cqw;
  font-weight: 900; text-align: left; line-height: 1;
  font-size: 4.6cqw;
}
.cv-periodo { top: 31.5%; letter-spacing: .03em; }
.cv-vigencia { top: 44%; }

.cv-agua {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.cv-agua span {
  transform: rotate(-32deg);
  font-size: 13cqw; font-weight: 900; letter-spacing: .08em;
  color: rgba(255,255,255,.18);
  border: .8cqw solid rgba(255,255,255,.18);
  padding: 1cqw 4cqw; border-radius: 3cqw;
}

@media (prefers-reduced-motion: reduce) {
  .cv-inner { transition: none; }
}
