/* Alemán Por Derecho: "Precios" page-only rules. No italics. Tokens from tokens.css; the few missing ones are defined here. */

/* candidate shared tokens (spacing scale used by the pricing accordion in the reference template) */
.page-precios {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-2-5: 0.625rem;
  --space-3-5: 0.875rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7-5: 1.875rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-15: 3.75rem;
  --measure-price-intro: 38rem;
  --dur-base: 0.3s;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
}
/* candidate shared wrapper: 1248px */
.wrap-1248 { max-width: 78rem; margin-left: auto; margin-right: auto; }

/* hero: light green variant; H1 stays within two lines on desktop */
.page-hero--green { background: var(--juniper-50); }
.page-precios .page-hero .t-h1 { font-size: clamp(2.5rem, 6.4vw, 5.5rem); line-height: 1.06; text-wrap: balance; }
.page-precios .page-hero__media img { object-position: 50% 30%; }

/* oat link grid: white cells, oat hover */
.link-grid--oat .link-grid__link:hover { background: var(--oat-50); }

/* ---------- pricing section ---------- */
.price { background: var(--juniper-50); color: var(--obsidian); }
.price__pad { padding-top: 7.5rem; padding-bottom: 10rem; }
.price__stack { display: flex; flex-direction: column; gap: var(--space-10); }
.price__intro { max-width: var(--measure-price-intro); }

.price-acc { background: var(--white); border-radius: var(--r-14); overflow: hidden; }
.price-item { padding-bottom: var(--space-2-5); border-top: 1px solid var(--juniper-50); }
.price-item:first-child { border-top: 0; }
.price-item__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  width: 100%; padding: var(--space-7-5) var(--space-7-5) var(--space-5); text-align: left; cursor: pointer;
}
.price-item__trigger:focus-visible { outline: 2px solid var(--obsidian); outline-offset: -4px; border-radius: var(--r-14); }
.price-item__lead { display: flex; align-items: center; gap: var(--space-5); min-width: 0; }
.price-item__icon { display: flex; flex: none; width: var(--space-6); height: var(--space-6); }
.price-item__icon svg { width: 100%; height: 100%; }
.price-item__text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.price-item__title { font-size: 1.25rem; line-height: 1.2; }
.price-item__sub { font-size: 0.875rem; line-height: 1.2; }
.price-item__plus { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: var(--space-6); height: var(--space-6); }
.price-item__bar { width: var(--space-3-5); height: 0.125rem; background: var(--obsidian); border-radius: 2px; }
.price-item__bar--v { position: absolute; width: 0.125rem; height: var(--space-3-5); transition: transform var(--dur-base) var(--ease); }
.price-item.is-open .price-item__bar--v { transform: rotate(90deg); }
.price-item__panel { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height var(--dur-base) var(--ease), visibility 0s linear var(--dur-base); }
.price-item.is-open .price-item__panel { visibility: visible; transition: max-height var(--dur-base) var(--ease), visibility 0s; }
.price-item__panel-inner { padding: 0 var(--space-7-5) var(--space-5); }
.price-cards { display: flex; align-items: stretch; gap: var(--space-5); padding-top: var(--space-10); }

.price-card {
  display: flex; flex: 1 1 0; flex-direction: column; gap: var(--space-8); min-width: 0;
  padding: var(--space-8); border-radius: var(--r-14); background: var(--oat-50); color: var(--obsidian);
}
.price-card--green { background: var(--white); color: var(--obsidian); box-shadow: inset 0 0 0 2px var(--marigold-500); }
.price-card__head { display: flex; flex-direction: column; gap: var(--space-2); }
.price-card__name { font-family: var(--font-display); font-size: var(--fs-h6); line-height: 1.1; font-weight: 500; letter-spacing: -0.01em; }
.price-card__sub { font-size: 1.25rem; line-height: 1.2; }
.price-card__price { display: flex; flex-direction: column; gap: var(--space-1); }
.price-card__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.price-card__figure { font-family: var(--font-display); font-size: clamp(2.5rem, 4.4vw, 3.75rem); line-height: 1; letter-spacing: -0.01em; font-weight: 400; }
.price-card__per { font-size: 1.25rem; line-height: 1.2; }
.price-card__full { font-size: 1rem; line-height: 1.5; }
.price-card__list { display: flex; flex-direction: column; gap: var(--space-5); }
.price-card__item { position: relative; padding-left: var(--space-10); }
.price-card__check { position: absolute; left: 0; top: 0; width: var(--space-6); height: var(--space-6); }

/* ---------- sticky 50/50: left title sticks while the right blocks scroll ---------- */
.inc { background: var(--sky-light); color: var(--obsidian); }
.inc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.inc__sticky { position: sticky; top: 8rem; padding-right: 4rem; }
.inc__head { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.inc__lead { font-size: 1.25rem; line-height: 1.3; max-width: 28rem; }
.inc__blocks { display: flex; flex-direction: column; gap: 3.75rem; }
.inc__block { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--obsidian); }
.inc__title { font-size: 1.75rem; line-height: 1.15; }
.inc__list { display: flex; flex-direction: column; gap: 0.75rem; }
.inc__item { position: relative; padding-left: 1.5rem; }
.inc__item::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--juniper-800); }
.inc__text { font-size: 1.25rem; line-height: 1.3; }

/* ---------- stage cards: what you pay when ---------- */
.pay-card { cursor: default; }
.pay-card .t-h6 { font-size: 1.75rem; line-height: 1.15; }
.pay-card__due { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--oat-300); font-size: 0.875rem; line-height: 1.4; font-weight: 600; }
.pay-card:hover .pay-card__due { border-top-color: var(--white-20); }

@media screen and (max-width: 991px) {
  .inc__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .inc__sticky { position: static; padding-right: 0; }
}
@media screen and (max-width: 767px) {
  .price__pad { padding-top: 2.5rem; padding-bottom: 3.75rem; }
  .price-item__trigger { padding: var(--space-5); }
  .price-item__panel-inner { padding-left: var(--space-5); padding-right: var(--space-5); }
  .price-cards { flex-direction: column; }
  .price-card { flex: none; padding: var(--space-5); gap: var(--space-6); }
  .inc__blocks { gap: 2.5rem; }
  .page-precios .pad-y-120 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .price-item__panel, .price-item__bar--v { transition: none; }
}
/* ---------- mobile polish (2026-10-11) ---------- */
@media screen and (max-width: 991px) {
  .price-item__sub, .pay-card__due { font-size: 1rem; }
  .pay-card .t-h6 { font-size: 1.625rem; }
  .page-precios .faq .pad-y-140, .page-precios .resources .pad-y-140 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .page-precios .resources .pad-b-140 { padding-bottom: 3.75rem !important; }
}
@media screen and (max-width: 479px) {
  .page-precios .t-h3 { font-size: 2.5rem; line-height: 1.1; }
  .price-card__figure { font-size: 2.5rem; }
}
