/* Suscripcion Styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.pricing-card {
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.pricing-card.popular {
  border-color: #38bdf8;
  background: linear-gradient(180deg, rgba(45, 65, 88, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #38bdf8;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 15px;
}

.pricing-title {
  color: var(--text-light);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.pricing-duration-selector {
  display: flex;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 15px;
}

.plan-duration-option {
  flex: 1;
  text-align: center;
  padding: 10px 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-duration-option.selected {
  background: #38bdf8;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.2);
}

.plan-duration-option .duration-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 3px;
  transition: color 0.2s;
}

.plan-duration-option.selected .duration-label {
  color: #0f172a;
}

.plan-duration-option .duration-price {
  color: var(--text-light);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.plan-duration-option.selected .duration-price {
  color: #0f172a;
  font-weight: 700;
}

.pricing-price-display {
  text-align: center;
  margin-bottom: 20px;
}

.pricing-price-display .currency {
  font-size: 1.5rem;
  color: #38bdf8;
  vertical-align: top;
  font-weight: 600;
}

.pricing-price-display .amount {
  font-size: 3.5rem;
  color: var(--text-light);
  font-weight: 800;
  line-height: 1;
}

.pricing-price-display .old-amount {
  font-size: 1.5rem;
  color: #64748b;
  text-decoration: line-through;
  margin-right: 5px;
  font-weight: 600;
}

.pricing-price-display .period {
  color: var(--text-muted);
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex: 1;
}

.pricing-features li {
  color: var(--text-light);
  font-size: 0.90rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  margin-right: 12px;
  flex-shrink: 0;
}

.btn-buy-plan {
  background: linear-gradient(135deg, #475569, #334155);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.pricing-card.popular .btn-buy-plan {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  border: none;
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

.btn-buy-plan:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Coupon Section */
.coupon-section {
  max-width: 450px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.coupon-input-wrapper {
  display: flex;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  align-items: center;
}

.coupon-input-wrapper svg {
  margin: 0 10px;
}

#coupon-code {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  outline: none;
}

#coupon-code::placeholder {
  color: var(--text-muted);
}

#btn-apply-coupon {
  background: rgba(255,255,255,0.05);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

#btn-apply-coupon:hover {
  background: rgba(255,255,255,0.1);
}

#coupon-message {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 20px;
}

/* Upsell Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.upsell-content {
  background: var(--card-bg);
  border: 2px solid #38bdf8;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .upsell-content {
  transform: translateY(0);
}

.upsell-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(225, 29, 72, 0.4);
}

.upsell-title {
  color: var(--text-light);
  font-size: 1.8rem;
  margin-top: 10px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.upsell-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.upsell-price-box {
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.upsell-old-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.upsell-new-price {
  color: #38bdf8;
  font-size: 2.2rem;
  font-weight: 800;
}

.btn-upsell-accept {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-upsell-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-upsell-decline {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 10px;
}

.btn-upsell-decline:hover {
  color: var(--text-light);
  text-decoration: underline;
}
