/* Estilos para el contenedor principal */
.pricing-container {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .pricing-container {
    margin-top: 3rem;
  }
}

@media (min-width: 992px) {
  .pricing-container {
    margin-top: 4rem;
  }
}

/* Estilos para las tarjetas de pricing */
.pricing-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 0.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pricing-card.highlighted {
  border-color: #5f62e6;
}

.pricing-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
}

.pricing-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.pricing-card .display-6 {
  font-size: 1.5rem;
  color: #696cff !important;
  text-align: center;
}

.pricing-card ul {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.pricing-card ul li {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.pricing-card .mt-auto {
  margin-top: auto;
}

.subscribe-btn {
  transition: all 0.2s ease;
  font-size: 0.9rem;
  background-color: #696cff !important;
  border-color: #696cff !important;
}

.subscribe-btn:hover:not(:disabled) {
  background-color: #5f62e6 !important;
  border-color: #5f62e6 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.subscribe-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Estilos para el plan recomendado */
.card-header.bg-primary {
  background-color: #5f62e6 !important;
}

/* Switch de frecuencia de pago */
.billing-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.billing-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.billing-label {
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
  transition: color 0.3s ease;
}

.billing-label.active {
  color: #696cff;
  font-weight: 600;
}

.billing-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.billing-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.billing-switch-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e9ecef;
  transition: 0.3s;
  border-radius: 30px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.billing-switch-label:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.billing-switch-input:checked + .billing-switch-label {
  background-color: #696cff;
}

.billing-switch-input:checked + .billing-switch-label:before {
  transform: translateX(30px);
}

.billing-badge {
  position: absolute;
  top: -40px;
  right: -20px;
  background-color: #f8f9ff;
  border: 1px solid #696cff;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #696cff;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s ease;
}

.billing-badge-text {
  white-space: nowrap;
}

.billing-badge-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #696cff;
  margin-top: 2px;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
}

.toast {
  min-width: 300px;
}

.toast.bg-success {
  background-color: #198754 !important;
}

.toast.bg-danger {
  background-color: #dc3545 !important;
}

.toast.bg-warning {
  background-color: #ffc107 !important;
}

.toast.bg-info {
  background-color: #0dcaf0 !important;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pricing-card {
    margin-bottom: 1rem;
    font-size: 0.8rem;
  }
  
  .pricing-card .card-title {
    font-size: 1rem;
    height: 2.5rem;
  }
  
  .pricing-card .display-6 {
    font-size: 1.3rem;
  }
  
  .pricing-card ul li {
    font-size: 0.8rem;
  }
  
  .billing-toggle-wrapper {
    gap: 0.5rem;
  }
  
  .billing-label {
    font-size: 0.9rem;
  }
  
  .billing-badge {
    top: -35px;
    right: -15px;
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
  
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .pricing-card {
    font-size: 0.75rem;
  }
  
  .pricing-card .card-title {
    font-size: 0.9rem;
    height: 2.2rem;
  }
  
  .pricing-card .display-6 {
    font-size: 1.2rem;
  }
  
  .pricing-card ul li {
    font-size: 0.75rem;
  }
  
  .billing-toggle-wrapper {
    gap: 0.25rem;
  }
  
  .billing-label {
    font-size: 0.8rem;
  }
  
  .billing-badge {
    top: -30px;
    right: -10px;
    font-size: 0.65rem;
    padding: 0.3rem 0.5rem;
  }
}
