/* ==============================================================
   DROPHIT PRICING & RENTAL SYSTEM — STYLES
   Selector de períodos (Semana, Mes, Año), Upgrade PC y Checkout
   ============================================================== */

.pricing-section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* ─── SWITCHER DE CICLO (SEMANA / MES / AÑO) ──────────────────── */
.billing-switcher-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.billing-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.billing-opt-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  background: transparent;
  color: var(--text-dim);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.billing-opt-btn.active {
  background: var(--cyan-primary);
  color: #030814;
  box-shadow: 0 2px 14px rgba(0, 240, 255, 0.4);
}

.badge-discount {
  position: absolute;
  top: -12px;
  right: -8px;
  background: var(--magenta-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: var(--magenta-glow);
}

/* ─── TOGGLE UPGRADE PC DROPHIT STUDIO ───────────────────────── */
.upgrade-banner-box {
  max-width: 680px;
  margin: 0 auto 50px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08) 0%, rgba(13, 15, 23, 0.9) 100%);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.upgrade-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.upgrade-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.upgrade-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.upgrade-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  flex-shrink: 0;
}

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

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: var(--gold-upgrade);
  border-color: var(--gold-upgrade);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.6);
}

input:checked + .slider-round:before {
  transform: translateX(24px);
  background-color: #1a0f00;
}

/* ─── TARJETAS DE PLANES ─────────────────────────────────────── */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--border-neon-cyan);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.04) 0%, var(--bg-card) 40%);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
  transform: scale(1.02);
}

.pricing-card.has-upgrade {
  border-color: rgba(255, 184, 0, 0.4);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 184, 0, 0.15);
}

.card-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.card-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.card-plan-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.price-display-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-main {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
}

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

.upgrade-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 184, 0, 0.15);
  color: var(--gold-upgrade);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.plan-features-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.plan-features-list li .check-icon {
  color: var(--cyan-primary);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-features-list li.upgrade-item {
  color: #ffd266;
}

.plan-features-list li.upgrade-item .check-icon {
  color: var(--gold-upgrade);
}

/* ─── PASARELAS DE PAGO BADGES ───────────────────────────────── */
.payment-trust-bar {
  text-align: center;
  margin-top: 30px;
}

.trust-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.payment-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pay-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── TEST MODE PLAYGROUND BANNER ────────────────────────────── */
.test-playground-card {
  margin-top: 50px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px dashed rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.test-text h4 {
  font-size: 1.1rem;
  color: var(--cyan-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-text p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ─── MODAL DE COMPRA / CHECKOUT ─────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #0d0f18;
  border: 1px solid var(--border-neon-cyan);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--cyan-glow);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan-primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.summary-order-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--cyan-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 10px;
}
