/* ==========================================================================
   Importación de fuente principal (Inter) para darle aspecto más formal
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

body {
  font-family: "Inter", sans-serif;
}

/* ==========================================================================
   1. COMPORTAMIENTO DE LAS VISTAS (PESTAÑAS/INTERFACES)
   ========================================================================== */
/* Oculta todas las interfaces por defecto */
.interface {
  display: none;
}

/* Muestra solo la interfaz activa y le da una animación de entrada fluida */
.interface.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

/* Animación de entrada (deslizar ligeramente hacia arriba y aparecer) */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   2. EFECTOS DE CARGA (SPINNER) PARA LA TESIS (TGC)
   ========================================================================== */
.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #ffffff;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   3. VENTANAS MODALES (ALERTAS Y CONFIRMACIONES PERSONALIZADAS)
   ========================================================================== */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
  backdrop-filter: blur(4px); /* Efecto borroso elegante */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50; /* Siempre encima de todo */
}

.custom-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  max-width: 28rem;
  width: 90%;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
}

/* ==========================================================================
   4. ESTILOS DE LA LIBRERÍA DEL CÓDIGO QR
   ========================================================================== */
.qr-container img {
  margin: 0 auto;
  border: 4px solid white;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
