/* ════════════════════════════════════════════════════════════════════
 * PADELLIX · /precios/ · overrides editoriales
 * Estilo NYT Sports · 0 sombras · 0 gradientes · 0 emojis
 * Hereda app.css + padellix-landing.css
 * ════════════════════════════════════════════════════════════════════ */

/* ───── sr-only helper (a11y) ───── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ───── Hero pricing (split text + guarantee card) ───── */
.pricing-hero {
  padding: 56px 0 80px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) { .pricing-hero { padding: 80px 0 96px; } }

.pricing-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .pricing-hero-grid { grid-template-columns: 1.45fr 1fr; gap: 72px; }
}

.pricing-hero-headline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.024em;
  color: var(--ink);
  margin: 8px 0 24px;
  max-width: 18ch;
}
.pricing-hero-headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-size: clamp(28px, 4vw, 44px);
  display: inline-block;
}
.pricing-hero-deck {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 28px;
}
.pricing-hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-3);
}
.pricing-hero-bullets li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-2);
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pricing-hero-bullets li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 600;
}

.pricing-hero-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-top: 3px solid var(--accent);
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pricing-hero-card h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--ink);
}
.pricing-hero-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.pricing-hero-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-3);
}
.pricing-hero-card li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pricing-hero-card li::before {
  content: "·";
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 0;
}

/* ───── Pricing en página dedicada · override ───── */
.pricing--page { padding: 80px 0 64px; }
.pricing--page + .pricing--page { padding-top: 64px; }

.pricing-grid--page { border: 1px solid var(--rule); }
@media (min-width: 768px) {
  .pricing-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Forzar alturas iguales y CTAs alineados */
.pricing-grid--page .tier {
  min-height: 100%;
  gap: 12px;
}
.pricing-grid--page .tier-deck { min-height: 52px; }
.pricing-grid--page .tier-list { flex: 1 1 auto; }

/* Tier MÁS POPULAR · borde top naranja + badge override */
.tier--popular {
  border-top: 3px solid var(--accent);
  background: var(--paper);
  position: relative;
}
.tier--popular::before {
  content: "Más popular";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 14px;
  white-space: nowrap;
}
html[lang="en"] .tier--popular::before { content: "Most popular"; }

/* Visitor tier · ligeramente desaturado */
.tier--visitor {
  background: transparent;
}
.tier--visitor .tier-price em { color: var(--ink-3); }

/* ───── Comparativa vs competencia ───── */
.vs-table-wrap {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.vs-table-scroll {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--rule);
}

.vs-table {
  width: 100%;
  min-width: 720px;
  font-family: var(--sans);
  font-size: 14.5px;
  border-collapse: collapse;
}
.vs-table thead th {
  text-align: left;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  vertical-align: bottom;
}
.vs-table thead th:nth-child(2) {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.vs-table tbody th[scope="row"] {
  text-align: left;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 16px 20px;
  font-weight: 500;
  border-bottom: 1px solid var(--paper-3);
  background: var(--paper);
  width: 30%;
}
.vs-table tbody td {
  padding: 16px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--paper-3);
  color: var(--ink-2);
  line-height: 1.5;
  border-left: 1px solid var(--paper-3);
}
.vs-table tbody td:nth-child(2) {
  background: var(--paper-2);
  color: var(--ink);
}
.vs-table tbody td strong {
  color: var(--ink);
  font-weight: 600;
}
.vs-table tbody tr:last-child th,
.vs-table tbody tr:last-child td {
  border-bottom: none;
}
.vs-footnote {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-3);
  line-height: 1.6;
}
.vs-footnote a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ───── B2C toggle Monthly/Annual ───── */
.b2c-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  margin: 0 0 32px;
  background: var(--paper);
}
.b2c-toggle-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.b2c-toggle-btn + .b2c-toggle-btn { border-left: 1px solid var(--rule); }
.b2c-toggle-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}
.b2c-toggle-btn:not(.is-active):hover { color: var(--ink); }
.b2c-toggle-save {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--accent);
}
.b2c-toggle-btn.is-active .b2c-toggle-save { color: var(--paper); }

/* Premium price swap (data-monthly / data-annual) */
[data-period-price] { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
[data-period-deck] > span { display: block; }

/* ───── Garantía 90 días ───── */
.guarantee {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .guarantee-grid { grid-template-columns: 1.4fr 1fr; gap: 72px; }
}
.guarantee-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.014em;
  color: var(--ink);
  margin: 8px 0 24px;
  max-width: 18ch;
}
.guarantee-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.guarantee-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 56ch;
}
.guarantee-text strong { color: var(--ink); font-weight: 600; }

.guarantee-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 28px 28px 26px;
}
.guarantee-card h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--paper-3);
}
.guarantee-card ol {
  counter-reset: gc;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
.guarantee-card li {
  counter-increment: gc;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  padding-left: 32px;
  position: relative;
}
.guarantee-card li::before {
  content: counter(gc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 3px;
}

/* ───── FAQ pricing ───── */
.faq {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--paper-3);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.008em;
  color: var(--ink);
  position: relative;
  transition: color .18s var(--ease);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  transition: transform .25s var(--ease);
  line-height: 1;
}
.faq-item[open] > summary::after {
  content: "−";
}
.faq-item:hover > summary { color: var(--accent-2); }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.faq-body {
  padding: 0 56px 28px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 64ch;
}
.faq-body strong { color: var(--ink); font-weight: 600; }
.faq-body p + p { margin-top: 12px; }

/* ───── Closing CTA secondary ───── */
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 18px 24px;
  border: 1px solid var(--rule);
  background: transparent;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.cta-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ───── Mobile · 320px+ ───── */
@media (max-width: 767px) {
  .pricing-hero { padding: 40px 0 56px; }
  .pricing-hero-headline { font-size: 32px; }
  .pricing-hero-headline em { font-size: 26px; }
  .pricing-hero-card { padding: 22px 20px; }

  .pricing--page { padding: 56px 0 40px; }
  .pricing-grid--page .tier { padding: 28px 22px 26px; }
  .pricing-grid--page .tier-deck { min-height: 0; }

  .tier--popular::before {
    top: -14px;
    font-size: 9px;
    padding: 4px 10px;
  }

  .vs-table-wrap { padding: 56px 0; }
  .vs-table-scroll { margin-top: 28px; }

  .b2c-toggle { margin-bottom: 24px; width: 100%; }
  .b2c-toggle-btn { flex: 1 1 50%; justify-content: center; padding: 12px 14px; font-size: 11px; }
  .b2c-toggle-save { font-size: 11px; }

  .guarantee { padding: 64px 0; }
  .guarantee-title { font-size: 30px; }
  .guarantee-card { padding: 22px 20px; }

  .faq { padding: 64px 0 56px; }
  .faq-list { margin-top: 32px; }
  .faq-item > summary { padding: 20px 44px 20px 0; font-size: 17px; }
  .faq-body { padding: 0 44px 22px 0; font-size: 15px; }
}

/* ───── Print friendly ───── */
@media print {
  .masthead-actions, .masthead-nav, .cta-primary, .cta-secondary, .b2c-toggle { display: none; }
  .faq-body { display: block !important; }
  .faq-item[open] > summary::after, .faq-item > summary::after { display: none; }
}

/* ───── Reduced motion ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ═════════ Launch coupon banner ═════════ */
.launch-coupon {
  margin: 24px 0 16px;
  padding: 14px 18px;
  background: var(--paper-2, #EBE6DD);
  border-left: 3px solid var(--accent, #D9572B);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 720px;
}
.launch-coupon-kicker {
  font-family: ui-sans-serif, system-ui, "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--accent, #D9572B);
  font-weight: 600;
}
.launch-coupon-body {
  font-size: 15px;
  color: var(--ink, #0A0A0A);
  line-height: 1.4;
}
.launch-coupon-body strong { font-weight: 700; color: var(--accent, #D9572B); }
.launch-coupon-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--ink, #0A0A0A);
  color: var(--paper, #F5F1EA);
  padding: 2px 8px;
  font-size: 13px;
  margin-left: 4px;
  letter-spacing: 0.04em;
}

/* ═════════ Tier CTA · estado disabled + error inline ═════════ */
.tier-subscribe-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  pointer-events: none;
}
.tier-cta-error {
  margin-top: 10px;
  font-size: 13px;
  color: #B00020;
  background: #FBE9EC;
  padding: 8px 12px;
  border-left: 2px solid #B00020;
  line-height: 1.4;
}
