/* ==========================================================
   Página comercial / precios. Reutiliza styles.css (header, hero,
   botones) y landing.css (chips, CTA, footer); aquí solo lo propio.
   Todas las secciones usan cuadrículas de columnas iguales.
   ========================================================== */

/* ---------- Hero ---------- */
.hero--pricing { min-height: 0; }
.hero--pricing .hero__card { padding-bottom: 56px; }
.hero--pricing .hero__actions { margin-top: 32px; }
.hero--pricing .btn__arrow-down { rotate: 90deg; }
.hero__claim { max-width: 720px; margin: 16px 0 0; color: var(--grey-950); font: 600 18px/26px var(--font-primary); text-wrap: balance; }

.hero-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(960px, 100%); margin: 48px auto 0; text-align: left; }
.preview-card { display: flex; flex-direction: column; gap: 10px; min-height: 196px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(117, 38, 18, .16); }
.preview-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; color: var(--grey-950); font: 600 14px/20px var(--font-primary); }
.preview-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-500); }
.preview-dot--green { background: #22c55e; }
.preview-dot--dark { background: var(--grey-950); }
.preview-bubble { max-width: 88%; margin: 0; padding: 7px 10px; border-radius: 12px; font: 400 12px/16px var(--font-secondary); }
.preview-bubble--in { border-bottom-left-radius: 4px; color: var(--grey-800); background: #f1f1f1; }
.preview-bubble--out { align-self: flex-end; border-bottom-right-radius: 4px; color: #fff; background: var(--primary-500); }
.preview-lead { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--grey-200); border-radius: 12px; }
.preview-lead strong { display: block; color: var(--grey-950); font: 600 13px/18px var(--font-primary); }
.preview-lead small { color: #737373; font: 400 11px/14px var(--font-secondary); }
.preview-avatar { display: grid; flex: none; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--primary-500); background: #fdf3ea; font: 700 12px/1 var(--font-primary); }
.preview-stages { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.preview-stages li { position: relative; padding-left: 20px; color: #a3a3a3; font: 500 12px/16px var(--font-secondary); }
.preview-stages li::before { position: absolute; left: 0; top: 3px; width: 10px; height: 10px; content: ""; border: 2px solid #d4d4d4; border-radius: 50%; }
.preview-stages .is-done { color: var(--grey-800); }
.preview-stages .is-done::before { border-color: var(--primary-500); background: var(--primary-500); }
.preview-stages .is-current { color: var(--primary-500); font-weight: 600; }
.preview-stages .is-current::before { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(229, 116, 17, .18); }
.preview-kpi { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.preview-kpi b { color: var(--grey-950); font: 700 32px/1 var(--font-primary); }
.preview-kpi span { color: #737373; font: 400 12px/16px var(--font-secondary); }
.preview-bars { display: flex; flex: 1; align-items: flex-end; gap: 8px; min-height: 80px; }
.preview-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: #fceac9; }
.preview-bars i:last-child { background: var(--primary-500); }

/* ---------- Secciones ---------- */
.landing.pricing { background: #fff; }
.pricing-section { padding: 96px 32px; background: #fff; }
.pricing-section--tint { background: var(--primary-50); }
.pricing-section__header { width: min(1022px, 100%); margin: 0 auto; text-align: center; }
.pricing-section__header .capability-card__eyebrow { margin-bottom: 20px; }
.pricing-section h2 { max-width: 900px; margin: 0 auto; color: var(--grey-950); font: 600 52px/60px Manrope, sans-serif; text-wrap: balance; }
.pricing-section h2 span { display: block; color: var(--orange); }
.pricing-section__header > p { max-width: 720px; margin: 16px auto 0; color: var(--grey-600); font: 400 18px/26px "IBM Plex Sans", sans-serif; text-wrap: balance; }
.pricing-footnote { max-width: 720px; margin: 24px auto 0; color: var(--grey-500); text-align: center; font: 400 14px/21px "IBM Plex Sans", sans-serif; text-wrap: balance; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cuadrículas iguales ---------- */
.grid { display: grid; gap: 20px; width: min(1200px, 100%); margin: 56px auto 0; padding: 0; list-style: none; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(1000px, 100%); gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(1100px, 100%); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Tarjeta base ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; overflow: hidden; border: 1px solid var(--grey-200); border-radius: 20px; background: #fff; box-shadow: var(--animation-shadow); isolation: isolate; }
.card::before { position: absolute; top: -70px; left: -70px; z-index: -1; width: 220px; height: 220px; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(244, 156, 43, .14), rgba(244, 156, 43, 0) 70%); pointer-events: none; }
.card h3 { margin: 0; color: var(--grey-950); font: 600 20px/28px Manrope, sans-serif; }
.card > p { margin: 0; color: var(--grey-600); font: 400 15px/23px "IBM Plex Sans", sans-serif; }
.card--center { align-items: center; text-align: center; }
.card .card__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--grey-200); color: var(--grey-500); font-size: 14px; line-height: 20px; }
.card--list .check-list { margin-top: 4px; }

.card--orange { border-color: transparent; background: linear-gradient(to bottom, #f39c45 0%, #e87a1c 100%); box-shadow: 0 18px 40px rgba(229, 116, 17, .25); }
.card--orange::before { display: none; }
.card--orange h3, .card--orange > p, .card--orange .check-list li { color: #fff; }
.card--orange .check-list li::before { border-color: #fff; }
.card--orange .card__foot { border-color: rgba(255, 255, 255, .35); color: var(--primary-50); }

.icon-box { display: grid; flex: none; width: 52px; height: 52px; margin-bottom: 8px; place-items: center; border-radius: 12px; color: #fff; background: var(--primary-400); }
.icon-box svg { width: 26px; height: 26px; }
.icon-box--light { color: var(--orange); background: #fff; }

/* Lista con palomitas (mismo trazo que las tarjetas de la landing) */
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: var(--grey-800); font: 400 15px/22px "IBM Plex Sans", sans-serif; }
.check-list li::before { position: absolute; left: 3px; top: 6px; width: 12px; height: 6px; content: ""; border: solid var(--orange); border-width: 0 0 2.5px 2.5px; rotate: -45deg; }

/* ---------- Cómo funciona ---------- */
.step__num { display: grid; width: 44px; height: 44px; margin-bottom: 8px; place-items: center; border-radius: 50%; color: #fff; background: var(--orange); box-shadow: 0 0 0 6px var(--primary-100); font: 700 18px/1 Manrope, sans-serif; }

/* ---------- Plan ---------- */
.plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(960px, 100%); margin: 56px auto 0; overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 24px 60px rgba(229, 116, 17, .18); }
.plan__side { display: flex; flex-direction: column; padding: 40px; color: #fff; background: linear-gradient(to bottom, #f39c45 0%, #e87a1c 100%); }
.plan__side--light { color: var(--grey-800); background: #fff; }
.plan__head { display: flex; align-items: center; gap: 10px; }
.plan__head h3 { margin: 0; font: 700 24px/32px Manrope, sans-serif; }
.plan__tag { padding: 3px 8px; border-radius: 8px; color: #fff; background: var(--grey-900); font: 700 14px/18px Manrope, sans-serif; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.plan__price b { font: 700 60px/1 Manrope, sans-serif; letter-spacing: -.02em; }
.plan__price span { color: var(--primary-50); font: 500 18px/24px "IBM Plex Sans", sans-serif; }
.plan__label { margin: 28px 0 12px; font: 700 13px/18px "IBM Plex Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.plan__side--light .plan__label { margin-top: 0; color: var(--grey-950); }
.plan__capacity { display: grid; margin: 0; }
.plan__capacity div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .3); }
.plan__capacity dt { font: 400 15px/22px "IBM Plex Sans", sans-serif; }
.plan__capacity dd { margin: 0; font: 700 16px/22px Manrope, sans-serif; }
.plan__features { gap: 11px; }
.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; margin-top: auto; padding: 0 24px; border-radius: 16px; color: #fff !important; background: var(--grey-950); font: 700 17px/24px Manrope, sans-serif; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.plan__features + .btn-cta { margin-top: 28px; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10, 10, 10, .2); }
.btn-cta svg { width: 18px; height: 18px; }

/* ---------- Implementación ---------- */
.timeline .card { gap: 4px; }
.timeline__step { color: var(--orange); font: 600 13px/18px "IBM Plex Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.timeline strong { margin-top: 6px; color: var(--grey-950); font: 700 40px/48px Manrope, sans-serif; }
.timeline small { color: var(--grey-600); font: 400 15px/22px "IBM Plex Sans", sans-serif; }
.timeline .card--orange .timeline__step, .timeline .card--orange strong, .timeline .card--orange small { color: #fff; }
.setup { width: min(1100px, 100%); margin: 20px auto 0; padding: 32px; }
.setup h3 { text-align: center; }
.setup__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 12px; }

/* ---------- Cuentas y usuarios ---------- */
.capacity__count { display: grid; width: 64px; height: 64px; margin-bottom: 8px; place-items: center; border-radius: 16px; color: var(--orange); background: var(--primary-100); font: 700 32px/1 Manrope, sans-serif; }
.capacity__extra { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--grey-200); }
.capacity__extra span { color: var(--grey-500); font: 600 13px/18px "IBM Plex Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.capacity__extra strong { grid-row: span 2; color: var(--grey-950); text-align: right; font: 700 28px/32px Manrope, sans-serif; }
.capacity__extra strong em { color: var(--grey-500); font: 500 14px/20px "IBM Plex Sans", sans-serif; font-style: normal; }
.capacity__extra small { color: var(--primary-700); font: 600 14px/20px "IBM Plex Sans", sans-serif; }

/* ---------- Créditos ---------- */
.rows { display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--grey-200); color: var(--grey-800); font: 400 15px/22px "IBM Plex Sans", sans-serif; }
.rows li:last-child { border-bottom: 0; }
.rows b { display: inline-grid; flex: none; min-width: 32px; height: 28px; place-items: center; border-radius: 8px; color: var(--primary-700); background: var(--primary-100); font: 700 14px/1 Manrope, sans-serif; }
.price-table { width: 100%; margin-top: 4px; border-collapse: collapse; font: 400 15px/20px "IBM Plex Sans", sans-serif; font-variant-numeric: tabular-nums; }
.price-table th { padding: 0 14px 8px; color: var(--grey-500); text-align: left; font: 600 12px/16px "IBM Plex Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { padding: 8px 14px; color: var(--grey-800); }
.price-table td:last-child { color: var(--grey-950); font-weight: 600; }
.price-table tbody tr:nth-child(odd) td { background: var(--grey-50); }
.price-table td:first-child { border-radius: 8px 0 0 8px; }
.price-table td:last-child { border-radius: 0 8px 8px 0; }
.price-table .is-best td { color: var(--grey-950); background: var(--primary-100) !important; font-weight: 700; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; width: min(1000px, 100%); margin: 56px auto 0; }
.faq__col { display: grid; align-content: start; gap: 12px; }
.faq__item { border: 1px solid var(--grey-200); border-radius: 16px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.faq__item[open] { border-color: var(--primary-200); box-shadow: var(--animation-shadow); }
.faq__item summary { position: relative; padding: 18px 56px 18px 20px; color: var(--grey-950); font: 600 16px/22px Manrope, sans-serif; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { position: absolute; top: 50%; right: 18px; display: grid; width: 26px; height: 26px; place-items: center; content: "+"; border-radius: 50%; color: var(--orange); background: var(--primary-100); font: 500 18px/1 "IBM Plex Sans", sans-serif; translate: 0 -50%; transition: rotate .2s ease; }
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 16px; }
.faq__item p { margin: 0; padding: 0 20px 18px; color: var(--grey-600); font: 400 15px/23px "IBM Plex Sans", sans-serif; }

/* ---------- CTA final ---------- */
.landing.pricing .growth-cta { left: auto; width: auto; translate: none; }
.cta-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 600px; margin-top: 32px; }
.landing .cta-buttons .cta-card__button { max-width: none; margin-top: 0; }
.landing .cta-card__button--ghost { border: 1.5px solid #fff; color: #fff; background: transparent; box-shadow: none; }
.landing .cta-card__button--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }

/* ---------- Animación discreta al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(820px, 100%); }
}

@media (max-width: 900px) {
  .pricing-section { padding: 72px 24px; }
  .pricing-section h2 { font-size: 40px; line-height: 48px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; width: min(560px, 100%); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(820px, 100%); }
  .timeline strong { font-size: 30px; line-height: 38px; }
  .setup__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-preview .preview-card:nth-child(3) { display: none; }
  .hero-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(640px, 100%); }
  .faq { grid-template-columns: 1fr; width: min(640px, 100%); }
}

@media (max-width: 760px) {
  .plan { grid-template-columns: 1fr; width: min(560px, 100%); }
  .hero-preview { display: none; }
}

@media (max-width: 600px) {
  .hero--pricing .hero__card { padding-bottom: 32px; }
  .hero__claim { font-size: 16px; line-height: 24px; }
  .pricing-section { padding: 56px 16px; }
  .pricing-section h2 { font-size: 30px; line-height: 38px; }
  .pricing-section__header > p { font-size: 16px; line-height: 24px; }
  .grid { margin-top: 40px; }
  .grid--4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .card, .setup { padding: 24px 20px; }
  .plan__side { padding: 28px 22px; }
  .plan__price b { font-size: 48px; }
  .setup__list { grid-template-columns: 1fr; }
  .cta-buttons { grid-template-columns: 1fr; }
}
