/* ============================================================
   BOTONES ESTILO DUOLINGO (VERSION LIMPIA SIN BORDE DOBLE)
   ============================================================ */

/* Botón primario */
.btn-primary {
  background: linear-gradient(180deg, #007bff 0%, #0056b3 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  padding: 16px 24px;
  border-radius: 16px !important;
  transition: all 0.1s ease;
  position: relative;
  box-shadow: 0 4px 0 #004085 !important; /* ÚNICA línea */
}

.btn-primary:hover {
  background: linear-gradient(180deg, #0069d9 0%, #0062cc 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #004085 !important;
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #004085 !important;
}

.btn-primary:focus {
  box-shadow:
    0 4px 0 #004085,
    0 0 0 3px rgba(0, 123, 255, 0.3) !important;
}

/* Botón secundario */
.btn-secondary {
  background: linear-gradient(180deg, #6c757d 0%, #5a6268 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  padding: 16px 24px;
  border-radius: 16px !important;
  transition: all 0.1s ease;
  position: relative;
  box-shadow: 0 4px 0 #494f54 !important;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #5a6268 0%, #545b62 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #494f54 !important;
}

.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #494f54 !important;
}

/* Botón info */
.btn-info {
  background: linear-gradient(180deg, #17a2b8 0%, #138496 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 16px !important;
  transition: all 0.1s ease;
  position: relative;
  box-shadow: 0 4px 0 #0f6674 !important;
}

.btn-info:hover {
  background: linear-gradient(180deg, #138496 0%, #117a8b 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #0f6674 !important;
}

.btn-info:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #0f6674 !important;
}

/* Botón danger */
.btn-danger {
  background: linear-gradient(180deg, #dc3545 0%, #c82333 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 16px !important;
  transition: all 0.1s ease;
  box-shadow: 0 4px 0 #a71d2a !important;
}

.btn-danger:hover {
  background: linear-gradient(180deg, #c82333 0%, #bd2130 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #a71d2a !important;
}

.btn-danger:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #a71d2a !important;
}

/* Botón success */
.btn-success {
  background: linear-gradient(180deg, #28a745 0%, #218838 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 16px !important;
  transition: all 0.1s ease;
  box-shadow: 0 4px 0 #1e7e34 !important;
}

.btn-success:hover {
  background: linear-gradient(180deg, #218838 0%, #1e7e34 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1e7e34 !important;
}

.btn-success:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1e7e34 !important;
}

/* Botón warning */
.btn-warning {
  background: linear-gradient(180deg, #ffc107 0%, #e0a800 100%) !important;
  border: none !important;
  color: #212529 !important;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 16px !important;
  transition: all 0.1s ease;
  box-shadow: 0 4px 0 #d39e00 !important;
}

.btn-warning:hover {
  background: linear-gradient(180deg, #e0a800 0%, #d39e00 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #d39e00 !important;
}

.btn-warning:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d39e00 !important;
}

/* Botón light */
.btn-light {
  background: linear-gradient(180deg, #f8f9fa 0%, #e2e6ea 100%) !important;
  border: none !important;
  color: #212529 !important;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 16px !important;
  transition: all 0.1s ease;
  box-shadow: 0 4px 0 #dae0e5 !important;
}

.btn-light:hover {
  background: linear-gradient(180deg, #e2e6ea 0%, #dae0e5 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #dae0e5 !important;
}

.btn-light:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #dae0e5 !important;
}

/* Botón dark */
.btn-dark {
  background: linear-gradient(180deg, #343a40 0%, #23272b 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 16px !important;
  transition: all 0.1s ease;
  box-shadow: 0 4px 0 #1d2124 !important;
}

.btn-dark:hover {
  background: linear-gradient(180deg, #23272b 0%, #1d2124 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1d2124 !important;
}

.btn-dark:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1d2124 !important;
}

/* Deshabilitado */
.btn:disabled,
.btn.disabled {
  background: linear-gradient(180deg, #e5e5e5 0%, #d0d0d0 100%) !important;
  border: none !important;
  color: #afafaf !important;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: 0 4px 0 #b0b0b0 !important;
}

/* BLOCK */
.btn-block {
  display: block;
  width: 100%;
}

/* TAMAÑOS */
.btn-lg {
  padding: 20px 32px;
  font-size: 18px;
  border-radius: 20px;
}

.btn-sm {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 12px;
  box-shadow: 0 3px 0;
}

/* SIN OUTLINE */
.btn:focus {
  outline: none !important;
}

/* LOADING */
.btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}


