/* Generect pricing page — sections rendered by mu-plugins/generect-pricing.php.
   Tokens are the theme's own (webhavva: Murs Gothic, 2px black rules,
   #f4bd38, 16px card radius, 4px tab radius), so nothing here is a new look. */

.gxp {
  --gxp-ink: #121212;
  --gxp-line: #000;
  --gxp-soft: rgba(18, 18, 18, 0.16);
  --gxp-muted: rgba(18, 18, 18, 0.64);
  --gxp-yellow: #f4bd38;
  --gxp-paper: #f4f2ee;
  --gxp-white: #fff;
  color: var(--gxp-ink);
  padding: 104px 0;
}
.gxp + .gxp { padding-top: 0; }
/* The logos block between sections brings the theme's own block padding; one gap between
   sections, the same as between .gxp sections, instead of two stacked ones (GTM-559). */
.gxp + .block-brands > .block-container { padding-top: 0; }
.block-brands + .gxp { padding-top: 0; }
.gxp *, .gxp *::before, .gxp *::after { box-sizing: border-box; }
.gxp a:not([class*="btn-"]) { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.gxp a:not([class*="btn-"]):hover { text-decoration-thickness: 2px; }
.gxp .container-fluid > * { max-width: 1344px; margin-left: auto; margin-right: auto; }
.gxp code { font-family: "Ubuntu Mono", Consolas, monospace; font-size: 0.95em; background: rgba(18, 18, 18, 0.06); padding: 1px 5px; border-radius: 4px; }

.gxp-h2 { font-weight: 700; font-size: var(--h2-size, 40px); line-height: var(--h2-line-height, 46px); text-align: center; margin: 0 auto 16px; }
.gxp-h3 { font-weight: 700; font-size: 24px; line-height: 28px; margin: 0 0 24px; }
.gxp-sub { text-align: center; font-size: 18px; line-height: 28px; max-width: 720px !important; margin: 0 auto 40px !important; }
.gxp-after { font-size: 15px; line-height: 22px; color: var(--gxp-muted); margin: 16px 0 0; }
.gxp-after--center { text-align: center; margin-top: 32px; }

/* ─── plans ─── */
.gxp-plans-section { padding-top: 24px; }
.gxp-plans-section .site-main__heading { margin-bottom: 24px; }
.gxp-lede { text-align: center; font-size: 20px; line-height: 30px; max-width: 760px !important; margin: 0 auto 56px !important; }
.gxp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.gxp-plan { border: 2px solid var(--gxp-line); border-radius: 16px; padding: 48px 40px 40px; display: flex; flex-direction: column; background: transparent; }
.gxp-plan--payg { background: var(--gxp-yellow); }
.gxp-plan__title { font-weight: 700; font-size: 40px; line-height: 46px; margin: 0 0 12px; }
.gxp-plan__text { font-size: 16px; line-height: 24px; margin: 0 0 28px; max-width: 440px; }
.gxp-keys { margin: 0 0 20px; padding: 0; }
.gxp-keys__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, 0.28); }
.gxp-keys__row:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.28); }
.gxp-keys dt { font-size: 20px; line-height: 24px; font-weight: 500; }
.gxp-keys dd { margin: 0; font-size: 28px; line-height: 32px; font-weight: 700; white-space: nowrap; }
.gxp-plan__note { font-size: 15px; line-height: 22px; margin: 0 0 28px; }
.gxp-plan__cta { margin-top: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gxp-plan__aside { font-size: 15px; line-height: 22px; }
.gxp-ticks { list-style: none; margin: 0 0 28px; padding: 0; }
.gxp-ticks li { position: relative; padding: 12px 0 12px 32px; font-size: 20px; line-height: 24px; font-weight: 500; border-top: 1px solid var(--gxp-soft); }
.gxp-ticks li:last-child { border-bottom: 1px solid var(--gxp-soft); }
.gxp-ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px; border-left: 2px solid var(--gxp-ink); border-bottom: 2px solid var(--gxp-ink); transform: rotate(-45deg); }

/* ─── tabs (same shape as the theme's .tabs-button) ─── */
.gxp-tabs { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 0 auto 32px !important; }
.gxp-tab { font: inherit; font-size: 24px; line-height: 24px; font-weight: 500; color: #000; background: transparent; border: 2px solid #000; border-radius: 4px; padding: 10px 16px; cursor: pointer; }
.gxp-tab[aria-selected="true"] { background: var(--gxp-yellow); }
.gxp-tab:hover { background: rgba(244, 189, 56, 0.35); }
.gxp-tab[aria-selected="true"]:hover { background: var(--gxp-yellow); }
.gxp-tab:focus-visible, .gxp-field__input:focus-visible { outline: 3px solid var(--gxp-ink); outline-offset: 3px; }
.gxp-panel[hidden] { display: none; }
.gxp-panel + .gxp-panel { margin-top: 48px; } /* both panels stacked when JS is off */
.gxp.is-ready .gxp-panel + .gxp-panel { margin-top: 0; }

/* ─── tables ─── */
.gxp-table-wrap { border: 2px solid var(--gxp-line); border-radius: 16px; overflow: hidden; background: var(--gxp-white); }
.gxp-table { width: 100%; border-collapse: collapse; font-size: 18px; line-height: 24px; }
.gxp-table th, .gxp-table td { text-align: left; padding: 18px 24px; border-top: 1px solid var(--gxp-soft); vertical-align: top; font-weight: 300; }
.gxp-table thead th { border-top: 0; background: var(--gxp-ink); color: var(--gxp-paper); font-size: 15px; line-height: 20px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; padding-top: 16px; padding-bottom: 16px; vertical-align: bottom; }
.gxp-th-sub { display: block; text-transform: none; letter-spacing: 0; font-weight: 300; opacity: 0.8; }
.gxp-table tbody th { font-weight: 500; }
.gxp-table--prices td { white-space: nowrap; font-weight: 500; font-size: 20px; }
.gxp-table--prices td:last-child { white-space: normal; }
.gxp-table--prices thead th:not(:first-child), .gxp-table--prices td { width: 22%; }
.gxp-row__action { display: block; font-size: 20px; line-height: 26px; font-weight: 500; }
.gxp-row__when { display: block; font-size: 15px; line-height: 22px; font-weight: 300; color: var(--gxp-muted); margin-top: 2px; }
.gxp-row__note { display: block; font-size: 14px; line-height: 20px; font-weight: 300; color: var(--gxp-muted); margin-top: 4px; white-space: normal; }

.gxp-table--ladder th, .gxp-table--ladder td { padding: 13px 24px; white-space: nowrap; }
.gxp-table--ladder tbody th { width: 72px; }
.gxp-table--ladder td:nth-child(3) { width: 30%; }
.gxp-table--ladder tbody tr:nth-child(odd) { background: rgba(244, 242, 238, 0.6); }
.gxp-bar { display: inline-block; vertical-align: middle; height: 10px; width: calc(var(--w) * 0.6); max-width: 60%; min-width: 0; background: var(--gxp-yellow); border: 2px solid var(--gxp-line); border-radius: 2px; margin-right: 12px; }
.gxp-bar[style*="--w:0%"] { border-width: 0; margin-right: 0; }
.gxp-pct { font-weight: 500; }
/* Narrow-screen variants; shown by the media queries below, so this must come first. */
.gxp-mobile-save, .gxp-short { display: none; }

.gxp-facts { list-style: none; padding: 0; margin: 32px auto 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gxp-facts li { border-top: 2px solid var(--gxp-line); padding-top: 16px; font-size: 16px; line-height: 24px; }
.gxp-facts strong { display: block; font-weight: 700; margin-bottom: 4px; }

/* ─── estimate ─── */
.gxp-estimate { margin-top: 56px !important; border: 2px solid var(--gxp-line); border-radius: 16px; padding: 40px; }
.gxp-estimate__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 24px; align-items: end; }
.gxp-field { display: flex; flex-direction: column; gap: 8px; }
.gxp-field__label { font-size: 16px; line-height: 20px; font-weight: 500; }
.gxp-field__input { font: inherit; font-size: 28px; line-height: 32px; font-weight: 700; color: var(--gxp-ink); width: 100%; padding: 10px 14px; border: 2px solid var(--gxp-line); border-radius: 6px; background: var(--gxp-white); -moz-appearance: textfield; }
.gxp-field__input::-webkit-outer-spin-button, .gxp-field__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gxp-field__unit { font-size: 14px; line-height: 20px; color: var(--gxp-muted); }
/* Two totals side by side while both fit; when a sum is too long for half the box (pt "US$ 1.540",
   or a big campaign typed in) the second one wraps under the first instead of being clipped.
   The rule between them is a shadow, so it sits on the left side by side and on top when wrapped;
   the one that would land on the outer border is clipped by overflow: hidden. */
.gxp-estimate__out { display: flex; flex-wrap: wrap; gap: 2px; border: 2px solid var(--gxp-line); border-radius: 6px; overflow: hidden; align-self: stretch; margin-bottom: 28px; }
.gxp-estimate__total { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; flex: 1 1 0; min-width: min-content; }
.gxp-estimate__total--best { background: var(--gxp-yellow); box-shadow: -2px 0 0 var(--gxp-line), 0 -2px 0 var(--gxp-line); }
.gxp-estimate__label { font-size: 14px; line-height: 18px; }
.gxp-estimate__sum { font-size: 32px; line-height: 36px; font-weight: 700; white-space: nowrap; }

/* ─── billing ─── */
.gxp-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px !important; }
.gxp-way { border: 2px solid var(--gxp-line); border-radius: 8px; padding: 28px; }
.gxp-way__title { font-weight: 700; font-size: 24px; line-height: 28px; margin: 0 0 12px; }
.gxp-way p { margin: 0; font-size: 16px; line-height: 24px; }
.gxp-free { margin-top: 24px !important; background: var(--gxp-yellow); border: 2px solid var(--gxp-line); border-radius: 16px; padding: 32px 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.gxp-free__title { margin: 0; font-weight: 700; font-size: 32px; line-height: 36px; white-space: nowrap; }
.gxp-free__text { margin: 0; font-size: 18px; line-height: 26px; }

/* ─── responsive ─── */
@media (max-width: 1199.98px) {
  .gxp-bar { display: none; }
  .gxp-table--ladder td:nth-child(3) { width: auto; }
  .gxp-table--ladder th, .gxp-table--ladder td { padding-left: 16px; padding-right: 16px; }
  .gxp-estimate__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gxp-estimate__out { grid-column: 1 / -1; margin-bottom: 0; }
  .gxp-free { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* Long es/pt column names ("búsqueda y enriquecimiento") wrap instead of pushing the API ladder out of its frame. */
  .gxp-table--ladder thead th { white-space: normal; }
  /* One column from here down: a long title (es "GRATIS PARA EMPEZAR") wraps instead of widening the box. */
  .gxp-free__title { white-space: normal; }
}
@media (max-width: 991.98px) {
  .gxp { padding: 72px 0; }
  .gxp-table--ladder th, .gxp-table--ladder td { padding: 11px 12px; font-size: 16px; line-height: 22px; }
  .gxp-table--ladder .gxp-th-sub, .gxp-upto, .gxp-long { display: none; }
  .gxp-short { display: inline; }
  .gxp-table--ladder thead th { white-space: normal; }
  /* es/pt ladder cells read "US$0.0166"; in the compact ladder the "US" goes, as the column is the same as English. */
  .gxp-table--ladder .gxp-cur { display: none; }
  .gxp-plans, .gxp-ways, .gxp-facts { grid-template-columns: 1fr; }
  .gxp-plan { padding: 32px 24px 28px; }
  .gxp-plan__title { font-size: 32px; line-height: 38px; }
  .gxp-table th, .gxp-table td { padding: 14px 16px; }
}
@media (max-width: 767.98px) {
  .gxp { padding: 56px 0; }
  .gxp-plans-section { padding-top: 8px; }
  .gxp-lede { font-size: 17px; line-height: 26px; margin-bottom: 32px !important; }
  .gxp-sub { font-size: 16px; line-height: 24px; margin-bottom: 28px !important; }
  .gxp-plan__title { font-size: 28px; line-height: 32px; }
  .gxp-keys dt, .gxp-ticks li { font-size: 17px; line-height: 22px; }
  .gxp-keys dd { font-size: 24px; line-height: 28px; }
  .gxp-plan__cta .btn-fill, .gxp-plan__cta .btn-border, .gxp-free .btn-fill { width: 100%; }
  .gxp-tabs { gap: 8px; }
  .gxp-tab { font-size: 16px; line-height: 20px; padding: 10px 12px; flex: 1 1 0; }
  .gxp-table { font-size: 15px; line-height: 20px; }
  .gxp-table th, .gxp-table td { padding: 12px; }
  .gxp-table thead th { font-size: 12px; line-height: 16px; }
  .gxp-row__action { font-size: 16px; line-height: 22px; }
  .gxp-row__when { font-size: 13px; line-height: 18px; }
  .gxp-table--prices td { font-size: 16px; }
  .gxp-table--prices td:last-child { font-size: 15px; }
  .gxp-table--ladder tbody th { width: auto; }
  .gxp-estimate { padding: 24px 16px; }
  .gxp-estimate__grid { grid-template-columns: 1fr; gap: 16px; }
  .gxp-estimate__sum { font-size: 26px; line-height: 30px; }
  .gxp-free { padding: 24px; }
  .gxp-free__title { font-size: 26px; line-height: 30px; }
  .gxp-free__text { font-size: 16px; line-height: 24px; }
}
@media (max-width: 767.98px) {
  /* Price list: one row per action, prices underneath with their own labels. */
  .gxp-table--prices thead { display: none; }
  .gxp-table--prices, .gxp-table--prices tbody { display: block; }
  .gxp-table--prices tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--gxp-soft); }
  .gxp-table--prices tr:first-child { border-top: 0; }
  .gxp-table--prices th, .gxp-table--prices td { border-top: 0; width: auto !important; }
  .gxp-table--prices th { grid-column: 1 / -1; padding: 14px 16px 4px; }
  .gxp-table--prices td { padding: 4px 16px 14px; white-space: normal; font-size: 18px; line-height: 24px; }
  .gxp-table--prices td:last-child { font-size: 18px; }
  .gxp-table--prices td::before { content: attr(data-label); display: block; font-size: 12px; line-height: 16px; font-weight: 300; color: var(--gxp-muted); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 2px; }
  .gxp-tab__range { display: none; }
}
@media (max-width: 767.98px) {
  /* Six API columns do not fit 358px: the saving folds under the tier number. */
  .gxp-table-wrap { overflow-x: auto; }
  .gxp-table--ladder th:nth-child(3), .gxp-table--ladder td:nth-child(3) { display: none; }
  .gxp-mobile-save { display: block; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--gxp-muted); }
  .gxp-table--ladder th, .gxp-table--ladder td { padding: 9px 4px; font-size: 12px; line-height: 16px; letter-spacing: -0.01em; }
  .gxp-table--ladder th:first-child { padding-left: 10px; }
  .gxp-table--ladder th:last-child, .gxp-table--ladder td:last-child { padding-right: 10px; }
  .gxp-table--ladder thead th { font-size: 10px; line-height: 13px; letter-spacing: 0; }
  .gxp-table--ladder .gxp-th-sub { display: none; }
}
@media (max-width: 374.98px) {
  /* 360px phones: four price columns in 308px. Below that the table scrolls in its own frame. */
  .gxp-table--ladder td { font-size: 11px; letter-spacing: -0.02em; }
  .gxp-mobile-save { font-size: 10px; letter-spacing: -0.02em; }
}
@media (prefers-reduced-motion: no-preference) {
  .gxp-tab { transition: background-color 0.15s ease; }
}
