/* ==========================================================================
   css/styles.css - Estilos de Prestigio, Glassmorphism, Animaciones & Lacre
   Dossier Digital Interactivo - Sistema Operativo de la Consignataria
   ========================================================================== */

/* Estructura base para modo offline y resiliencia visual */
body {
  background-color: #020617;
  color: #F8FAFC;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------- */
/* 1. CUSTOM SCROLLBAR NOTARIAL                                  */
/* ------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
::-webkit-scrollbar-thumb:hover {
  background: #D97706;
}

/* ------------------------------------------------------------- */
/* 2. SUPERFICIES GLASSMORPHISM DE PRESTIGIO                     */
/* ------------------------------------------------------------- */
.glass-panel {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-gold {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, rgba(15, 23, 42, 0.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.glass-diploma {
  background: radial-gradient(circle at 50% 30%, rgba(30, 41, 59, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 2px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 50px -10px rgba(217, 119, 6, 0.25), inset 0 0 40px rgba(245, 158, 11, 0.08);
}

.glass-contract {
  background: #0b1120;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------- */
/* 3. RESPLANDOR Y HALOS DE LUZ                                  */
/* ------------------------------------------------------------- */
.shadow-gold-glow {
  box-shadow: 0 0 30px -5px rgba(245, 158, 11, 0.35);
}
.shadow-gold-lg {
  box-shadow: 0 12px 40px -10px rgba(217, 119, 6, 0.45);
}
.shadow-emerald-glow {
  box-shadow: 0 0 25px -5px rgba(34, 197, 94, 0.35);
}
.shadow-crimson-glow {
  box-shadow: 0 0 25px -5px rgba(239, 68, 68, 0.4);
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
.pulse-glow-gold,
.pulse-glow-amber {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ------------------------------------------------------------- */
/* 4. ANIMACIONES DE ONDAS DE AUDIO DE WHATSAPP                  */
/* ------------------------------------------------------------- */
.wave-bar {
  width: 3px;
  background-color: #22C55E;
  border-radius: 9999px;
  transition: height 0.15s ease;
}

@keyframes wave {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}

@keyframes waveDance1 {
  0% { height: 6px; }
  100% { height: 26px; }
}

@keyframes waveDance2 {
  0% { height: 18px; }
  100% { height: 8px; }
}

.wave-playing .wave-bar:nth-child(odd) {
  animation: waveDance1 0.4s ease-in-out infinite alternate;
}
.wave-playing .wave-bar:nth-child(even) {
  animation: waveDance2 0.35s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------- */
/* 5. SELLO DE LACRE DIGITAL (STAMP IMPACT)                      */
/* ------------------------------------------------------------- */
@keyframes stampDrop {
  0% { transform: scale(2.2) rotate(-15deg); opacity: 0; filter: blur(6px); }
  70% { transform: scale(0.92) rotate(2deg); opacity: 1; filter: blur(0); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes sealImpact {
  0% { transform: scale(1.8) rotate(-15deg); opacity: 0; }
  70% { transform: scale(0.95) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.seal-stamped {
  animation: stampDrop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ------------------------------------------------------------- */
/* 6. SCANNER LINE & GRID                                        */
/* ------------------------------------------------------------- */
@keyframes scanSweep {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 92%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}
.scanner-line {
  animation: scanSweep 2.8s ease-in-out infinite;
}

/* ------------------------------------------------------------- */
/* 7. SPOTLIGHT DE PERFILES DINÁMICOS                            */
/* ------------------------------------------------------------- */
.profile-spotlight {
  position: relative;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-spotlight::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 1.6rem;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.35), transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: spotlightPulse 2s ease-in-out infinite alternate;
}

@keyframes spotlightPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ------------------------------------------------------------- */
/* 8. RANGE SLIDER ELEGANTE                                      */
/* ------------------------------------------------------------- */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: #1E293B;
  height: 6px;
  border-radius: 4px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #F59E0B;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  border: 2px solid #020617;
}
input[type=range]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #F59E0B;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  border: 2px solid #020617;
}

/* ------------------------------------------------------------- */
/* 9. UTILIDADES ICONOS & ACCESIBILIDAD                          */
/* ------------------------------------------------------------- */
.svg-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------- */
/* 10. ANIMACIÓN DE SELLO DORADO CCCN ART. 1343                  */
/* ------------------------------------------------------------- */
@keyframes stampFall {
  0% {
    opacity: 0;
    transform: scale(2.2) rotate(-25deg);
  }
  60% {
    opacity: 0.9;
    transform: scale(0.95) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-12deg);
  }
}

.stamp-active {
  animation: stampFall 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.stamp-badge {
  border: 3px double #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), inset 0 0 10px rgba(245, 158, 11, 0.2);
}

