/* Fuente Poppins aplicada al body */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  color: #fff;
}

h1 {
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Estilos de la tarjeta */
.card {
  background: linear-gradient(145deg, #1e1e2f, #232337);
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,0.05) 0%, transparent 40%),
    radial-gradient(circle at bottom right, rgba(0,0,0,0.15) 0%, transparent 50%);
  width: 350px;
  border-radius: 20px;
  padding: 25px 30px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.card:hover {
  box-shadow:
    0 20px 30px rgba(0,0,0,0.8),
    0 0 40px #764ba2cc;
  transform: translateY(-15px) scale(1.02);
}

/* Luz suave animada que se mueve por la tarjeta */
.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
  transform: rotate(25deg);
  animation: lightMove 6s linear infinite;
  pointer-events: none;
  z-index: 0;
  border-radius: 20px;
}

@keyframes lightMove {
  0% { transform: rotate(25deg) translateX(-100%); }
  100% { transform: rotate(25deg) translateX(100%); }
}

/* Foto circular */
.foto-container {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.3),
    inset 0 0 15px rgba(255,255,255,0.1);
  margin-bottom: 15px;
  border: 4px solid #764ba2;
  background: linear-gradient(145deg, #2a2a3f, #1e1e2f);
  position: relative;
}

.foto-container::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
  pointer-events: none;
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.foto-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.7);
  transition: box-shadow 0.3s ease;
}

.foto-container img:hover {
  box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}

/* Label de la foto */
.foto-label {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 5px;
  color: #c0bde6aa;
  user-select: none;
}

/* Información */
.info {
  text-align: center;
  margin-bottom: 20px;
}

.info h2 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

.info p {
  margin: 6px 0;
  font-size: 1rem;
  user-select: none;
}

#id {
  font-weight: 600;
  color: #9f85ff;
}

#estado {
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 1px;
  user-select: none;
}

.activo {
  background-color: #3cd458;
  color: #0a280d;
  box-shadow: 0 0 8px #3cd458aa;
}

.suspendida {
  background-color: #ff5959;
  color: #3a0000;
  box-shadow: 0 0 8px #ff5959aa;
}

/* QR */
.qr img {
  width: 100px;
  height: 100px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  background: #fff;
}

/* Formulario */
form {
  margin-top: 35px;
  width: 350px;
  background: #2a2a3f;
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  color: #ddd;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input[type="text"],
select,
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 18px;
  font-size: 1rem;
  background: #404060;
  color: #eee;
  transition: background 0.3s ease;
}

input[type="text"]:focus,
select:focus,
input[type="file"]:focus {
  outline: none;
  background: #56588e;
}

.btns {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

button {
  flex: 1;
  background: #764ba2;
  border: none;
  color: #fff;
  padding: 12px 10px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow:
    0 4px 6px rgba(118, 75, 162, 0.6),
    inset 0 -3px 0 rgba(0,0,0,0.2);
  user-select: none;
}

button:hover {
  background: #9161d6;
  box-shadow:
    0 8px 12px rgba(145, 97, 214, 0.9),
    inset 0 -3px 0 rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* Iconos dentro del botón */
button i {
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 400px) {
  .card, form {
    width: 90vw;
  }
}

/* Transición suave para todos los elementos */
* {
  transition: all 0.3s ease;
}
