/* Estilos dedicados para la página de Planes y Precios de NuvaWin */

.plans-hero {
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.plans-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 166, 240, 0.1);
  border: 1px solid rgba(0, 166, 240, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #0077cc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.plans-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.8px;
}

.plans-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #009EEF 0%, #1378ee 50%, #005bb5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plans-hero p {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

/* User Context Banner (Si llega desde Windows o ya inició sesión) */
.user-context-banner {
  max-width: 680px;
  margin: 0 auto 30px;
  background: #f0f7ff;
  border: 1.5px solid #b9dcf7;
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.user-context-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-context-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #009EEF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.user-context-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-context-details b {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.user-context-details span {
  font-size: 13px;
  color: var(--muted);
}

.user-context-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: #e1f5fe;
  color: #0277bd;
  white-space: nowrap;
}

/* Billing Toggle (Mensual / Anual) */
.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 48px;
  background: #f2f7fc;
  border: 1px solid #dbe6f2;
  border-radius: 999px;
  padding: 6px;
  width: fit-content;
}

.billing-toggle-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.billing-toggle-btn.active {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(10, 49, 93, 0.12);
  font-weight: 700;
}

.billing-savings-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
  animation: pulseSavings 2s infinite ease-in-out;
}

@keyframes pulseSavings {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 70px;
  align-items: stretch;
}

.plan-card {
  background: #ffffff;
  border: 1.5px solid #dce7f4;
  border-radius: 24px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(10, 49, 93, 0.12);
}

/* Featured Card (Plus) */
.plan-card.featured {
  border-color: #009EEF;
  box-shadow: 0 20px 50px rgba(0, 158, 239, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  position: relative;
  transform: scale(1.02);
}

/* In-Card Billing Cycle Switcher */
.card-cycle-switcher {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin: 16px 0 14px 0;
  gap: 4px;
  border: 1px solid #e2e8f0;
}

.cycle-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cycle-pill:hover {
  color: #0f172a;
}

.cycle-pill.active {
  background: #ffffff;
  color: #0a315d;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cycle-pill .pill-discount {
  font-size: 10.5px;
  font-weight: 800;
  background: #ecfdf5;
  color: #059669;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  line-height: 1;
}

.cycle-pill.active .pill-discount {
  background: #10b981;
  color: #ffffff;
}

.plan-card.featured:hover {
  transform: scale(1.03) translateY(-5px);
}

.plan-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #009EEF 0%, #0066cc 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 110, 220, 0.35);
  white-space: nowrap;
}

.plan-header {
  margin-bottom: 22px;
}

.plan-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0077cc;
  background: #eef6fd;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.plan-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

.plan-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  min-height: 42px;
}

/* Price Section */
.plan-pricing-box {
  margin: 20px 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e7eff7;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.plan-amount {
  font-size: 46px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.plan-period {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.plan-savings-note {
  font-size: 13px;
  color: #059669;
  font-weight: 700;
  margin-top: 6px;
}

.plan-price-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* CTA Buttons */
.plan-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  border: none;
  margin-bottom: 28px;
  text-decoration: none;
}

.plan-cta-btn.primary {
  background: linear-gradient(135deg, #009EEF 0%, #0066cc 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 110, 220, 0.35);
}

.plan-cta-btn.primary:hover {
  background: linear-gradient(135deg, #13a8f5 0%, #0077e6 100%);
  box-shadow: 0 12px 28px rgba(0, 110, 220, 0.45);
  transform: translateY(-2px);
}

.plan-cta-btn.secondary {
  background: #f0f7ff;
  color: #0077cc;
  border: 1.5px solid #bce0fb;
}

.plan-cta-btn.secondary:hover {
  background: #e1f1fe;
  border-color: #009EEF;
  color: #005bb5;
  transform: translateY(-2px);
}

.plan-cta-btn.outline {
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid #dce7f4;
}

.plan-cta-btn.outline:hover {
  border-color: #009EEF;
  color: #009EEF;
  background: #f9fbfe;
  transform: translateY(-2px);
}

/* Benefits list */
.plan-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.plan-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #2c3e50;
}

.benefit-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e6f7ec;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-card.featured .benefit-icon {
  background: #e3f2fd;
  color: #009EEF;
}

/* Comparison Table */
.matrix-section {
  padding: 40px 0 70px;
}

.matrix-header {
  text-align: center;
  margin-bottom: 40px;
}

.matrix-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
}

.matrix-header p {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.matrix-table-wrap {
  background: #ffffff;
  border: 1.5px solid #dce7f4;
  border-radius: 20px;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(10, 49, 93, 0.05);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px;
}

.matrix-table th,
.matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #edf3fa;
  font-size: 14px;
}

.matrix-table th {
  background: #f8fbfe;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

.matrix-table th.col-feature {
  width: 40%;
}

.matrix-table th.col-plan {
  width: 20%;
  text-align: center;
}

.matrix-table td.col-val {
  text-align: center;
}

.matrix-table tr:hover td {
  background: #fafcff;
}

.matrix-category-row td {
  background: #f0f6fc;
  font-weight: 800;
  color: #0077cc;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
  padding: 12px 20px;
}

.check-green {
  color: #10b981;
  font-size: 18px;
  font-weight: 800;
}

.cross-muted {
  color: #b0bec5;
  font-size: 18px;
}

.text-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.badge-blue {
  background: #e1f5fe;
  color: #0288d1;
}

.badge-green {
  background: #e8f5e9;
  color: #2e7d32;
}

/* FAQ Section */
.plans-faq-section {
  padding: 40px 0 80px;
  max-width: 820px;
  margin: 0 auto;
}

.plans-faq-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 36px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e1ecf7;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 20px;
  color: #009EEF;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Payment Methods Banner */
.payment-trust-strip {
  margin: 20px auto 60px;
  text-align: center;
  max-width: 700px;
  padding: 20px;
  background: #fdfefe;
  border: 1px dashed #c9dff2;
  border-radius: 16px;
}

.payment-trust-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.payment-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  padding: 6px 12px;
}

/* Modal Auth / Checkout */
.auth-checkout-modal .modal-card {
  max-width: 480px;
  text-align: center;
}

.auth-checkout-modal h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.auth-checkout-modal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.btn-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid #dce7f4;
  background: #ffffff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-google-login:hover {
  background: #f9fbfe;
  border-color: #009EEF;
  box-shadow: 0 4px 14px rgba(0, 158, 239, 0.15);
}

/* Responsive */
@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
  
  .plan-card.featured {
    transform: none;
  }
  
  .plan-card.featured:hover {
    transform: translateY(-5px);
  }
  
  .user-context-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .user-context-info {
    flex-direction: column;
  }
}
