:root {
  --action-shadow: 0 14px 30px rgba(2, 6, 23, .18);
  --action-shadow-hover: 0 18px 34px rgba(2, 6, 23, .24);
}

.action-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.action-btn {
  --action-bg: #0f172a;
  --action-bg-hover: #111827;
  --action-border: transparent;
  --action-text: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid var(--action-border);
  background: var(--action-bg);
  color: var(--action-text) ;
  font-weight: 600 !important;
  letter-spacing: .2px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--action-shadow);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
  appearance: none;
}

.action-btn:hover,
.action-btn:focus-visible {
  background: var(--action-bg-hover);
  color: var(--action-text);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--action-shadow-hover);
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: 0 12px 26px rgba(2, 6, 23, .18);
}

.action-btn--full {
  width: 100%;
}

.action-btn--sm {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: .95rem;
}

.action-btn--add {
  --action-bg: linear-gradient(135deg, #15243d, #3e5375);
  --action-bg-hover: linear-gradient(135deg, #104da2, #1f3c6c);
  --action-border: rgba(43, 59, 82, 0.18);
  --action-text: #ffffff;

  background: var(--action-bg);
  color: #ffff !important;
  border: 1px solid var(--action-border);
  border-radius: 18px;
  padding: 9px 16px;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  box-shadow:
    0 10px 22px rgba(43, 59, 82, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: all 0.25s ease;
}

.action-btn--add:hover {
  background: var(--action-bg-hover);
  color: #ffffff;
  border-color: rgba(73, 97, 130, 0.24);
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(43, 59, 82, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.action-btn--add:active {
  transform: translateY(0);
}

.action-btn--add:focus {
  outline: none;
  box-shadow:
    0 0 0 0.22rem rgba(91, 111, 143, 0.18),
    0 10px 22px rgba(43, 59, 82, 0.18);
}


.action-btn--ghost {
  --action-bg: rgba(254, 254, 254, 0.964);
  --action-bg-hover: #a5a4a4;
  --action-border: rgba(2,6,23,.12);
  --action-text: #0f172a;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .08);
  font-weight: 600 !important;

}



.action-btn--delete-solid {
  --action-bg: linear-gradient(135deg, #c52323, #981818);
  --action-bg-hover: linear-gradient(135deg, #584c4c, #3b3232);
  --action-border: rgba(185, 28, 28, .22);
  --action-text: #fff;
}

.action-btn--secondary {
  --action-bg: rgba(37, 99, 235, .08);
  --action-bg-hover: rgba(37, 99, 235, .14);
  --action-border: rgba(37, 99, 235, .16);
  --action-text: #1d4ed8;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .08);
}

.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: .95rem;
  font-weight: 800;
  border: 1px solid rgba(22, 163, 74, .20);
  background: rgba(22, 163, 74, .12);
  color: #166534;
}

@media (max-width: 640px) {
  .action-toolbar {
    justify-content: stretch;
  }

  .action-toolbar .action-btn {
    width: 100%;
  }
}
.opinion-btn {
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 600;
  background: linear-gradient(135deg, #283a57, #0d14d7);
   color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(31, 111, 235, 0.22);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  position: relative;
  overflow: hidden;
}

.opinion-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 90%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transition: left 0.5s ease;
}

.opinion-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 26px rgba(31, 111, 235, 0.3);
  background: linear-gradient(135deg, #245ab2, #135fda);
}

.opinion-btn:hover::before {
  left: 130%;
}

.opinion-btn:active {
  transform: scale(0.97);
  box-shadow: 0 6px 14px rgba(31, 111, 235, 0.2);
}

.opinion-btn:focus {
  outline: none;
  box-shadow:
    0 0 0 0.2rem rgba(59, 130, 246, 0.22),
    0 10px 22px rgba(31, 111, 235, 0.24);
}

.btn-delete-custom,
.btn-update-custom {
  min-height: 40px;
  padding: 8px 16px;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

/* Botón eliminar */
.btn-delete-custom {
  background: linear-gradient(135deg, #c52323, #981818);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.20);
}

.btn-delete-custom:hover {
  background: linear-gradient(135deg, #5a6d89, #6d82a0);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.btn-delete-custom:active {
  transform: scale(0.97);
}

.btn-delete-custom:focus {
  outline: none;
  box-shadow:
    0 0 0 0.2rem rgba(239, 68, 68, 0.18),
    0 10px 20px rgba(220, 38, 38, 0.22);
}

/* Botón actualizar */
.btn-update-custom {
  background: linear-gradient(135deg, #13b541, #1aa02e);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(75, 93, 121, 0.18);
}

.btn-update-custom:hover {
  background: linear-gradient(135deg, #5a6d89, #6d82a0);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(75, 93, 121, 0.24);
}

.btn-update-custom:active {
  transform: scale(0.97);
}

.btn-update-custom:focus {
  outline: none;
  box-shadow:
    0 0 0 0.2rem rgba(95, 115, 144, 0.18),
    0 10px 20px rgba(75, 93, 121, 0.22);
}
/* Base un poco más premium para ambos */
.action-btn {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  border-radius: 18px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    filter 0.24s ease;
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transition: left 0.55s ease;
}

.action-btn:hover::before,
.action-btn:focus-visible::before {
  left: 140%;
}

.action-btn:hover,
.action-btn:focus-visible {
  transform: translateY(-3px) scale(1.01);
  text-decoration: none;
}

.action-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Editar */
.action-btn--edit {
  --action-bg: linear-gradient(135deg, #1830e6, #214186);
  --action-bg-hover: linear-gradient(135deg, #192c4c, #13057a);
  --action-text: #375f94 !important;
  --action-border: rgba(147, 197, 253, 0.20);

  background: var(--action-bg);
  color: #ffffff !important;
    border: 1px solid var(--action-border);
  box-shadow:
    0 12px 24px rgba(29, 78, 216, 0.22),
    inset 0 1px 0 rgba(96, 94, 94, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10);
    font-weight: 600 !important;}

.action-btn--edit:hover,
.action-btn--edit:focus-visible {
  background: var(--action-bg-hover);
  color: #ffffff !important;
  border-color: rgba(7, 44, 86, 0.32);
  box-shadow:
    0 18px 34px rgba(15, 27, 59, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  filter: saturate(0.64);
    font-weight: 600 !important;}

/* Eliminar */
.action-btn--delete {
  --action-bg: linear-gradient(135deg, #c81e1e, #a81616);
  --action-bg-hover: linear-gradient(135deg, #6c1010, #8d1d1d);
  --action-text: #ffffff !important;
  --action-border: rgba(254, 202, 202, 0.26);
  background: var(--action-bg);
  color: #ffffff !important;
    border: 1px solid var(--action-border);
  box-shadow:
    0 12px 24px rgba(220, 38, 38, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10);
    font-weight: 600 !important;}

.action-btn--delete:hover,
.action-btn--delete:focus-visible {
  background: var(--action-bg-hover);
  color: #ffffff !important;
  border-color: rgba(254, 202, 202, 0.38);
  box-shadow:
    0 18px 34px rgba(220, 38, 38, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  filter: saturate(0.64);
    font-weight: 600 !important;
}

.btn-admin-edit {
  margin-bottom: 14px;
}

.admin-delete-form {
  margin: 0;
}