/* ════════════════════════════════════════════════════════════
   ESTILOS PARA TARJETAS DE PLANES
   ════════════════════════════════════════════════════════════ */

.plans-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--off-white) 0%, rgba(26, 155, 252, 0.05) 100%);
  text-align: center;
}

.plans-container {
  max-width: 1200px;
  margin: 0 auto;
}

.plans-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 15px;
}

.plans-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.plan-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(26, 155, 252, 0.15);
  border-color: var(--blue);
}

.plan-card.featured {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(26, 155, 252, 0.02) 0%, rgba(26, 155, 252, 0.05) 100%);
  transform: scale(1.05);
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.plan-price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 5px;
}

.plan-price-period {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.plan-description {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.plan-features {
  list-style: none;
  margin-bottom: 35px;
  flex-grow: 1;
  text-align: left;
}

.plan-features li {
  padding: 12px 0;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(26, 155, 252, 0.1);
  color: var(--blue);
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.plan-button {
  background: var(--blue);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.plan-button:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(26, 155, 252, 0.3);
  transform: scale(1.02);
}

.plan-button:active {
  transform: scale(0.98);
}

.plan-button.secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.plan-button.secondary:hover {
  background: var(--blue);
  color: white;
}

/* ════════════════════════════════════════════════════════════
   MODAL DE COMPRA
   ════════════════════════════════════════════════════════════ */

.purchase-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.purchase-modal.active {
  display: flex;
}

.purchase-modal-content {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.modal-price-display {
  font-size: 2.5rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 155, 252, 0.1);
}

.coupon-section {
  background: rgba(26, 155, 252, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.coupon-input-group {
  display: flex;
  gap: 10px;
}

.coupon-input-group input {
  flex: 1;
}

.coupon-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.coupon-btn:hover {
  background: var(--blue-dark);
}

.coupon-message {
  margin-top: 10px;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 6px;
}

.coupon-message.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.coupon-message.error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.price-breakdown {
  background: rgba(0, 0, 0, 0.02);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
}

.price-row.total {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 8px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--navy);
}

.payment-methods {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.payment-method {
  flex: 1;
  padding: 15px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 600;
}

.payment-method.active {
  border-color: var(--blue);
  background: rgba(26, 155, 252, 0.05);
}

.payment-method:hover {
  border-color: var(--blue);
}

.payment-method img {
  height: 30px;
  margin-bottom: 8px;
  object-fit: contain;
}

.payment-method-name {
  font-size: 0.9rem;
}

.paypal-card-section {
  display: none;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fbfdff;
}

.paypal-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.paypal-card-msg {
  font-size: 0.86rem;
  margin-bottom: 10px;
  color: var(--muted);
}

.paypal-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.paypal-field {
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: #fff;
}

.paypal-field.full {
  grid-column: 1 / -1;
}

.modal-button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-button.primary {
  background: var(--blue);
  color: white;
  margin-bottom: 10px;
}

.modal-button.primary:hover {
  background: var(--blue-dark);
}

.modal-button.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.modal-button.secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

.modal-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: scale(1);
  }

  .plan-card.featured:hover {
    transform: translateY(-10px);
  }

  .plans-title {
    font-size: 2rem;
  }

  .purchase-modal-content {
    padding: 30px 20px;
  }

  .payment-methods {
    flex-direction: column;
  }
}
