/* Bluconta public landing: pricing and the FAQ. The pricing markup (partials/landing/pricing.html) is
   shared with the promo and is styled from here as it is: two groups of plans, which landing.js puts
   behind a switch (.price-switch) so only one shows at a time. Without JS both groups show. */

#precios .panel-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 40px; }
#precios .panel-head .lede { margin: 0; }
#precios .promo-banner { margin-inline: 0; }

/* The switch between "con contabilidad" and "solo facturación". */
.price-switch { position: relative; display: inline-flex; gap: 2px; margin-bottom: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.price-switch button {
  position: relative; z-index: 1; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: 15.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color 200ms ease;
}
.price-switch button:hover { color: var(--ink); }
.price-switch button[aria-pressed="true"] { color: var(--white); }
.price-switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.price-switch .pill-ind { background: var(--ink); }

.pricing-group[hidden] { display: none; }
.pricing-group + .pricing-group { margin-top: 64px; }
.pricing-group-title { margin: 0 0 6px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.03em; }
.pricing-group-sub { margin: 0 0 28px; max-width: 34em; color: var(--ink-2); }
/* With the switch its buttons name the groups, so the headings are left to screen readers. */
.has-switch .pricing-group-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.has-switch .pricing-group + .pricing-group { margin-top: 0; }

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 34px 32px 32px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--white); }
.plan-name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.plan-price { font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); white-space: nowrap; }
/* During a promo the card shows the regular price struck through next to the promo one (partials/_promo.html);
   "MXN al mes" drops to its own line in every card, so the three stay aligned at any width. */
.plan-price:has(.promo-old) { font-size: 46px; }
.plan-price:has(.promo-old) .per { display: block; margin-top: 8px; }
.plan-tax { margin-top: -10px; font-size: 13.5px; color: var(--ink-3); }
.plan-for { margin: 0; min-height: 70px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.feature-list { flex: 1; display: grid; gap: 12px; align-content: start; margin: 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.45; }
.feature-list svg { width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
/* Buttons sit at each card's bottom, so every "Empezar" lines up; they are the black primary. */
.price-card > .btn { width: 100%; margin-top: 8px; border-color: transparent; background: var(--ink); color: var(--white); }
.price-card > .btn:hover { background: var(--ink-hover); }
/* Companies: a separate, quote-based option, so it spans the row on sky blue instead of competing with
   the three prices: what it is, what it includes, and the button to ask for a quote. */
.price-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 20px 48px; padding: 36px 40px; border-color: transparent; background: var(--sky-soft); }
.pw-copy { display: grid; gap: 8px; }
.price-wide .plan-name { font-size: 15px; font-weight: 500; color: var(--blue-deep); }
.pw-price { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.price-wide .plan-for { min-height: 0; }
.price-wide .feature-list { gap: 10px; padding-top: 0; border-top: 0; }
.price-wide .feature-list li { font-size: 14.5px; }
.pw-cta { display: grid; justify-items: center; gap: 8px; }
.pw-cta small { font-size: 13px; color: var(--ink-3); }
/* pricing.html is shared with the promo and stays as it is, so its quote button is dressed from here. */
.pw-cta .btn { background: var(--ink); color: var(--white); }
.pw-cta .btn:hover { background: var(--ink-hover); }
.pricing-more { margin: 32px 0 0; color: var(--blue-deep); }

/* Dots under the rows that swipe on phones (landing.js adds them). */
.swipe-dots { display: none; justify-content: center; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.swipe-dots li { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background-color 200ms ease, transform 200ms ease; }
.swipe-dots li.is-on { background: var(--ink); transform: scale(1.25); }

/* FAQ: the title on the left, native <details> on the right. */
.faq-sec { padding-top: 0; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; padding-top: 96px; }
.faq-intro { position: sticky; top: 120px; display: grid; gap: 18px; }
.faq-intro p { margin: 0; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; list-style: none; cursor: pointer; font-size: 18.5px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 380ms var(--ease), content-visibility 380ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .plus { position: relative; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 300ms var(--ease); }
.faq details[open] .plus { border-color: var(--ink); background: var(--ink); color: var(--white); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { margin: 0 0 24px; max-width: 620px; font-size: 16.5px; color: var(--ink-2); }

@media (max-width: 1000px) {
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .plan-for { min-height: 0; }
  .price-wide { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .pw-cta { justify-items: start; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 72px; }
  .faq-intro { position: static; }
}
@media (max-width: 640px) {
  #precios .panel-head { margin-bottom: 28px; }
  .price-switch { display: flex; width: 100%; }
  .price-switch button { flex: 1; padding: 0 10px; font-size: 14.5px; }
  /* The plans swipe sideways, a card and a peek of the next, with dots under them. */
  .pricing { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 4px 20px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pricing::-webkit-scrollbar { display: none; }
  .price-card { flex: 0 0 86%; padding: 28px 24px 24px; scroll-snap-align: start; }
  .price-wide { display: flex; }
  .plan-price { font-size: 46px; }
  .swipe-dots { display: flex; }
  .faq-layout { padding-top: 56px; }
  .faq summary { padding: 18px 0; font-size: 17px; }
}
