/* ===== ESTILOS PARA BOTONES ===== */

/* Botón CTA animado */
.btn-cta-animated {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #1e5aa8, #2196F3);
  color: white;
  padding: 5px 25px 5px 5px;
  border-radius: 50px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(30, 90, 168, 0.3);
  transition: all 0.3s ease;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.btn-cta-animated:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(30, 90, 168, 0.4);
  color: white;
  text-decoration: none;
}

.btn-cta-animated .btn-text {
  padding: 15px 20px 15px 15px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

/* Efecto de brillo al pasar el mouse */
.btn-cta-animated::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-cta-animated:hover::after {
  left: 100%;
}

/* Versión con ícono */
.btn-cta-animated i {
  margin-right: 10px;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.btn-cta-animated:hover i {
  transform: translateX(5px);
}

/* Modo oscuro */
.dark-mode .btn-cta-animated {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dark-mode .btn-cta-animated:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 767.98px) {
  .btn-cta-animated .btn-text {
    padding: 15px 25px;
    font-size: 15px;
  }
}

/* Estilos para botones con ícono */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #184a9a;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.btn-cta-animated:hover .btn-icon {
  background: #0f3d7a;
  transform: rotate(360deg);
}

.btn-primary {
  background: linear-gradient(135deg, #184a9a 0%, #0dcaf0 100%);
  border: none;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  color: white;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 20px;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(24, 74, 154, 0.25);
  color: white;
  text-decoration: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  transition: all 0.6s;
}

.btn-primary:hover::after {
  left: 120%;
}

/* Tamaños de botones */
.btn-lg {
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-sm {
  padding: 6px 15px;
  font-size: 0.875rem;
}

/* Variantes de botones */
.btn-outline-primary {
  background: transparent;
  border: 2px solid #184a9a;
  color: #184a9a;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: #184a9a;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(24, 74, 154, 0.2);
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  box-shadow: 0 10px 20px rgba(108, 117, 125, 0.15);
}

.btn-secondary:hover {
  box-shadow: 0 15px 30px rgba(108, 117, 125, 0.25);
}

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

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

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

/* Modo oscuro */
.dark-mode .btn-outline-primary {
  border-color: #0dcaf0;
  color: #0dcaf0;
}

.dark-mode .btn-outline-primary:hover {
  background: #0dcaf0;
  color: #1a1a1a;
}

/* Botones con íconos */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon i,
.btn-icon svg {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.btn-icon:hover i,
.btn-icon:hover svg {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .btn-icon {
    gap: 6px;
  }
}
