/* Animación shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.modal-dialog.shake {
  animation: shake 0.4s;
}

/* CSS */
@keyframes shake_toast {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.shake_toast {
  animation: shake_toast 0.5s ease;
}

.progress-bar[data-width] {
  width: 0;
  transition: width 0.8s ease;
}

.shake_toast {
  animation: shake 0.5s;
}

@media (max-width: 991.98px) {
  table.my-table td, 
  table.my-table th {
    padding: .3rem; /* igual que table-sm */
  }
}

/* en tu /assets/css/toast.css */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1055;
}

/* shake rápido de izquierda a derecha */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

.modal-error {
  animation: shake 0.5s;
}

.glass-bar {
  position: relative;
  background: linear-gradient(145deg, rgba(0,123,255,0.3), rgba(0,123,255,0.9));
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.5), 
              0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.7;
  overflow: hidden;
}

/* Capa de brillo que se mueve */
.glass-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -50%; }
  100% { left: 120%; }
}


.toast-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
    width: 300px;
    margin-bottom: 1rem;
}

.progress-custom {
    height: 15px;
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar-custom {
    width: 100%;
    background: linear-gradient(145deg, rgba(0,123,255,0.3), rgba(0,123,255,0.9));
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.5);
    opacity: 0.7;
    transition: width 5s linear; /* se puede ajustar con JS */
}

 
  .card-error {
      border-radius: 1rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .icon-error {
      font-size: 4rem;
      color: #dc3545;
  }


  .bi-shield-lock-fill{
    font-size: 4.5rem;
  }
 
 .table-responsive{
  /*min-height: 550px;*/
 }



 #donacion {
  transition: background-color 0.4s ease, color 0.4s ease;
}
.bi-stars {
  animation: brilloRandom 3s infinite;
  transition: filter 0.3s ease;
}

@keyframes brilloRandom {
  0%   { filter: brightness(0.7); color: #00A8FF; }   /* dorado tenue */
  25%  { filter: brightness(1.2); color: #89B8FF; }   /* celeste */
  50%  { filter: brightness(1.5); color: #2C36FF; }   /* azul fuerte */
  75%  { filter: brightness(1.1); color: #0063BF; }   /* intermedio */
  100% { filter: brightness(0.8); color: #008CC7; }   /* vuelve suave */
}

 
.progress-bar-reverse {
    width: 100%; /* valor inicial */
    transition: width var(--duracion)ms linear;
}


.progress-sm {
  height: 1.2rem; /* reemplaza tu style inline */
}

/* Clases de ancho (puedes agregar todas las que necesites) */
.w-0 { width: 0% !important; }
.w-1 { width: 1% !important; }
.w-2 { width: 2% !important; }
.w-3 { width: 3% !important; }
.w-4 { width: 4% !important; }
.w-5 { width: 5% !important; }
.w-6 { width: 6% !important; }
.w-7 { width: 7% !important; }
.w-8 { width: 8% !important; }
.w-9 { width: 9% !important; }
.w-10 { width: 10% !important; }
.w-11 { width: 11% !important; }
.w-12 { width: 12% !important; }
.w-13 { width: 13% !important; }
.w-14 { width: 14% !important; }
.w-15 { width: 15% !important; }
.w-16 { width: 16% !important; }
.w-17 { width: 17% !important; }
.w-18 { width: 18% !important; }
.w-19 { width: 19% !important; }
.w-20 { width: 20% !important; }
.w-21 { width: 21% !important; }
.w-22 { width: 22% !important; }
.w-23 { width: 23% !important; }
.w-24 { width: 24% !important; }
.w-25 { width: 25% !important; }
.w-26 { width: 26% !important; }
.w-27 { width: 27% !important; }
.w-28 { width: 28% !important; }
.w-29 { width: 29% !important; }
.w-30 { width: 30% !important; }
.w-31 { width: 31% !important; }
.w-32 { width: 32% !important; }
.w-33 { width: 33% !important; }
.w-34 { width: 34% !important; }
.w-35 { width: 35% !important; }
.w-36 { width: 36% !important; }
.w-37 { width: 37% !important; }
.w-38 { width: 38% !important; }
.w-39 { width: 39% !important; }
.w-40 { width: 40% !important; }
.w-41 { width: 41% !important; }
.w-42 { width: 42% !important; }
.w-43 { width: 43% !important; }
.w-44 { width: 44% !important; }
.w-45 { width: 45% !important; }
.w-46 { width: 46% !important; }
.w-47 { width: 47% !important; }
.w-48 { width: 48% !important; }
.w-49 { width: 49% !important; }
.w-50 { width: 50% !important; }
.w-51 { width: 51% !important; }
.w-52 { width: 52% !important; }
.w-53 { width: 53% !important; }
.w-54 { width: 54% !important; }
.w-55 { width: 55% !important; }
.w-56 { width: 56% !important; }
.w-57 { width: 57% !important; }
.w-58 { width: 58% !important; }
.w-59 { width: 59% !important; }
.w-60 { width: 60% !important; }
.w-61 { width: 61% !important; }
.w-62 { width: 62% !important; }
.w-63 { width: 63% !important; }
.w-64 { width: 64% !important; }
.w-65 { width: 65% !important; }
.w-66 { width: 66% !important; }
.w-67 { width: 67% !important; }
.w-68 { width: 68% !important; }
.w-69 { width: 69% !important; }
.w-70 { width: 70% !important; }
.w-71 { width: 71% !important; }
.w-72 { width: 72% !important; }
.w-73 { width: 73% !important; }
.w-74 { width: 74% !important; }
.w-75 { width: 75% !important; }
.w-76 { width: 76% !important; }
.w-77 { width: 77% !important; }
.w-78 { width: 78% !important; }
.w-79 { width: 79% !important; }
.w-80 { width: 80% !important; }
.w-81 { width: 81% !important; }
.w-82 { width: 82% !important; }
.w-83 { width: 83% !important; }
.w-84 { width: 84% !important; }
.w-85 { width: 85% !important; }
.w-86 { width: 86% !important; }
.w-87 { width: 87% !important; }
.w-88 { width: 88% !important; }
.w-89 { width: 89% !important; }
.w-90 { width: 90% !important; }
.w-91 { width: 91% !important; }
.w-92 { width: 92% !important; }
.w-93 { width: 93% !important; }
.w-94 { width: 94% !important; }
.w-95 { width: 95% !important; }
.w-96 { width: 96% !important; }
.w-97 { width: 97% !important; }
.w-98 { width: 98% !important; }
.w-99 { width: 99% !important; }
.w-100 { width: 100% !important; }


.progress-bar {
  transition: width .5s ease;
}


  .progress-sm { height: 10px; }
  .progress-bar[data-width] {
    width: var(--width, 0%);
    transition: width 0.4s ease;
  }

:root {
  --bd-violet-bg: #6f42c1; /* Violeta Bootstrap */
  --bs-white: #fff;
}

.progress{
  height: 25px !important;
}

.custom-tooltip {
  --bs-tooltip-bg: var(--bd-violet-bg);
  --bs-tooltip-color: var(--bs-white);
}

.card .badge {
  font-size: 0.65rem;
  /*border-radius: 50rem;*/
  /*cursor: pointer;*/
}


.custom-badge {
  --bs-tooltip-bg: var(--bd-violet-bg);
  --bs-tooltip-color: var(--bs-white);
}

.custom-badge {
  background-color: var(--bd-violet-bg) !important;
  color: var(--bs-white) !important;
  font-weight: 600;
  border-radius: 50rem; /* estilo pill */
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

 
@media (min-width: 768px) {
  .row.igualar-altura {
    display: flex;
    align-items: stretch;
  }
  .row.igualar-altura > [class*="col-"] {
    display: flex;
  }
  .row.igualar-altura .card {
    flex: 1;
  }
}

/* Sticky solo en desktop */
@media (min-width: 992px) {
  .sticky-lg {
    position: sticky;
    top: 1rem;
  }
}

/* Inputs informativos */
.input-info {
  background-color: var(--bs-light);
  font-weight: 500;
}

/* Tarjeta destacada */
.card-primary {
  border-left: 4px solid var(--bs-primary);
}

  .hover-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
  }
  .transition-all {
    transition: all 0.3s ease;
  }
  .border-dashed {
    border: 2px dashed #dee2e6 !important;
  }
  p{
    text-align: justify;
  }

  .temaBoton {
  transition: transform .15s ease, box-shadow .15s ease;
}

.temaBoton.toggle-on {
  transform: scale(0.99);
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.4);
}
