/* Precios: estilos propios de la página (prefijo .pr-). No editar assets/styles.css. */

/* Pestaña activa del header */
.nav-links a.is-active { color: var(--marino); background: var(--azul-50); }
.nav-sheet a.is-active { color: var(--azul-600); }

/* Periodo: mensual / anual */
.pr-a { display: none; }
.pr-is-anual .pr-m { display: none; }
.pr-is-anual .pr-a { display: inline; }

/* Etiquetas de estado */
.pr-pend { display: inline-block; padding: 1px 7px; border-radius: 5px; border: 1px dashed #E2B65C; background: #FEF3DC; color: #7A4E05; font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.pr-pend-dark { background: rgb(254 243 220 / .1); border-color: rgb(255 214 140 / .5); color: #FFD68C; }
.pr-soon { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--gris-100); color: var(--gris-600); font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.55; }
.pr-early { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #FFEFE9; color: #A33F22; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.55; }
.pr-soft { color: var(--fg-3); }
.pr-tag-ex { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px dashed var(--gris-300); background: #fff; color: var(--gris-600); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.pr-pill-sm.pill-coral { color: #A33F22; }
.pr-pill-sm { height: 22px; padding: 0 8px; font-size: 11.5px; vertical-align: 2px; margin-left: 4px; }

/* Hero */
.pr-hero { padding-bottom: clamp(56px, 7vw, 96px); }
.pr-hero-head { display: grid; justify-items: center; text-align: center; gap: 20px; max-width: 820px; margin-inline: auto; }
.pr-hero-head .h-display { font-size: clamp(40px, 5.6vw, 68px); }
.pr-hero-head .lead { max-width: 640px; }
.pr-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--fg-3); }
.pr-crumbs a { color: var(--fg-2); }
.pr-crumbs a:hover { color: var(--azul-600); }
.pr-crumbs .icon { width: 13px; height: 13px; transform: rotate(-90deg); opacity: .6; }
.pr-toggle { display: grid; justify-items: center; gap: 10px; margin-top: 4px; }
.pr-toggle .seg { background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.pr-toggle .seg label:has(input:checked) { background: var(--marino); color: #fff; }
.pr-toggle .seg label:has(input:checked) .save { background: var(--exito-texto); color: #fff; }
.pr-main .seg .save { color: #11703F; }
.pr-toggle-note { font-size: 14px; color: var(--fg-3); min-height: 1.5em; }

/* Planes */
.pr-plans { margin-top: clamp(36px, 5vw, 56px); align-items: stretch; }
.pr-plan { grid-template-rows: auto auto auto 1fr auto auto; }
.plan.pr-plan .nm { gap: 10px; align-items: flex-start; }
.plan.pr-plan .nm h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; line-height: 1.3; }
.plan.pr-plan .nm .pill { flex: none; }
.plan .price b span { font-size: inherit; color: inherit; }
.pr-plan ul { align-content: start; }
.plan .price b.pr-custom { font-size: 34px; color: var(--marino); letter-spacing: -.03em; }
.plan .price span .pr-pend { font-size: 11.5px; color: #7A4E05; }
.plan li.pr-li-no, .plan li.pr-li-soon { color: var(--fg-3); }
.plan li.pr-li-no .icon, .plan li.pr-li-soon .icon { color: var(--gris-400); stroke-width: 2; }
.plan .fee { flex-wrap: wrap; row-gap: 2px; padding-top: 14px; border-top: 1px dashed var(--line); }
.plan .fee > .icon { width: 16px; height: 16px; color: var(--coral-texto); }
.pr-fee-note { flex-basis: 100%; padding-left: 24px; color: var(--fg-3); font-size: 12.5px; }
.pr-plan-foot { margin-top: -8px; font-size: 12.5px; color: var(--fg-3); text-align: center; line-height: 1.45; }
.pr-plan-link { margin-top: -6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--violeta-texto); }
.pr-plan-link .icon { width: 15px; height: 15px; transition: transform var(--t-base) var(--ease); }
.pr-plan-link:hover .icon { transform: translateX(3px); }
.pr-plan-ag { background: linear-gradient(180deg, #FBFAFF 0%, #fff 40%); }
.pr-plan .btn { width: 100%; }

/* Fórmula de la cuota */
.pr-formula { margin-top: clamp(28px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-xl); background: rgb(255 255 255 / .85); padding: clamp(20px, 3vw, 28px); display: grid; gap: 16px; position: relative; overflow: hidden; }
.pr-formula::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 64px; background: var(--azul-50); clip-path: polygon(0 0, 100% 0, 0 100%); }
.pr-formula > * { position: relative; }
.pr-formula-t { font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--azul-600); }
.pr-f-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.pr-f-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 6px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: var(--gris-50); min-width: 0; }
.pr-f-item > div { display: grid; min-width: 0; }
.pr-f-item b { font-size: 15px; font-weight: 600; color: var(--fg); }
.pr-f-item > div span { font-size: 13px; color: var(--fg-2); }
.pr-f-item .pr-op { color: inherit; }
.pr-f-item strong { grid-column: 1 / -1; font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--marino); }
.pr-f-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--azul-50); color: var(--azul-600); }
.pr-f-ic .icon { width: 20px; height: 20px; stroke-width: 1.7; }
.pr-f-ic.is-coral { background: #FFEFE9; color: var(--coral-texto); }
.pr-f-op { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 26px; font-weight: 700; color: var(--fg-3); }
.pr-f-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; color: var(--fg-2); }
.pr-f-ex b { color: var(--fg); font-variant-numeric: tabular-nums; }
.pr-iva { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; text-align: center; font-size: 14px; color: var(--fg-3); }
.pr-iva .pill-alerta { color: #7A4E05; }
.pr-iva .pill .icon { width: 14px; height: 14px; }
.pr-iva a, .pr-tbl-note a, .pr-camp-legal a, .faq-list details p a { color: var(--azul-600); font-weight: 600; }

/* Comparativa */
.pr-compare { padding: var(--sec) 0; background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.pr-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; font-size: 13.5px; color: var(--fg-2); }
.pr-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.pr-tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; overflow: clip; box-shadow: var(--sh-sm); }
.pr-tbl { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.pr-tbl thead th { position: sticky; top: var(--nav-h); z-index: 2; background: #fff; padding: 18px 16px; text-align: center; vertical-align: bottom; font-size: 15px; font-weight: 700; color: var(--marino); border-bottom: 1px solid var(--line); line-height: 1.3; }
.pr-tbl thead th small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pr-tbl thead th.pr-th-f { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); width: 37%; }
.pr-tbl thead th.is-hot { background: var(--azul-50); box-shadow: inset 0 3px 0 var(--azul-500); }
.pr-tbl th[scope="row"] { text-align: left; font-weight: 500; color: var(--fg); padding: 13px 16px; border-bottom: 1px solid var(--line-soft); line-height: 1.4; }
.pr-tbl td { text-align: center; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); color: var(--fg-2); font-size: 14px; line-height: 1.4; vertical-align: middle; }
.pr-tbl td.is-hot { background: rgb(239 243 253 / .55); }
.pr-tbl tbody:last-child tr:last-child > * { border-bottom: 0; }
.pr-tbl .pr-grp th { text-align: left; padding: 22px 16px 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--azul-700); background: var(--gris-25); border-bottom: 1px solid var(--line); }
.pr-tbl .pr-grp th .pr-early { margin-left: 8px; text-transform: none; letter-spacing: 0; vertical-align: 1px; }
.pr-grp-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 7px; background: var(--azul-50); color: var(--azul-600); vertical-align: middle; }
.pr-grp-ic .icon { width: 15px; height: 15px; }
.pr-yes { width: 20px; height: 20px; color: var(--exito-texto); stroke-width: 2.6; display: inline-block; vertical-align: middle; }
.pr-no { color: var(--gris-600); font-weight: 600; }
.pr-txt { font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.pr-tbl td .pr-pend { margin-left: 4px; }
.pr-tbl tbody tr:not(.pr-grp):hover > * { background-color: var(--gris-25); }
.pr-tbl tbody tr:not(.pr-grp):hover > td.is-hot { background-color: var(--azul-50); }
.pr-tbl-note { margin-top: 14px; font-size: 13.5px; color: var(--fg-2); }

/* Campañas (sección tinta) */
.pr-camp { padding: clamp(56px, 6vw, 88px) 0 0; }
.pr-camp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pr-camp-copy { display: grid; gap: 18px; }
.pr-camp-copy .h1 { color: #fff; }
.pr-camp-copy .p { color: var(--gris-300); font-size: 17px; }
.pr-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.pr-steps li { display: flex; gap: 14px; align-items: flex-start; }
.pr-steps .n { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--azul-500); color: #fff; font-weight: 700; font-size: 14px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.pr-steps li:nth-child(2) .n { background: var(--violeta); } .pr-steps li:nth-child(3) .n { background: var(--coral); color: var(--marino); }
.pr-steps b { display: block; color: #fff; font-weight: 600; font-size: 16px; }
.pr-steps span:not(.n) { display: block; color: var(--gris-300); font-size: 15px; line-height: 1.5; }
.pr-camp-legal { font-size: 13.5px; color: var(--gris-400); line-height: 1.6; }
.pr-camp-legal a { color: var(--azul-200); }
.pr-camp-vis { display: grid; gap: 14px; }
.pr-ex { margin: 0; background: #fff; color: var(--gris-700); border-radius: var(--r-xl); padding: clamp(18px, 2.4vw, 24px); display: grid; gap: 14px; box-shadow: var(--sh-lg); }
.pr-ex-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pr-ex-hd b { color: var(--marino); font-size: 15px; }
.pr-ex-hd .pill { margin-left: auto; }
.pr-ex-eq { font-size: 15px; color: var(--fg-2); }
.pr-ex-eq b { font-family: var(--f-display); font-size: 24px; color: var(--marino); letter-spacing: -.02em; white-space: nowrap; }
.pr-ex-bar { display: flex; height: 34px; border-radius: 9px; overflow: hidden; font-size: 12px; font-weight: 700; }
.pr-ex-bar i { font-style: normal; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; }
.pr-ex-bar .m { background: linear-gradient(90deg, var(--azul-500), var(--azul-400)); color: #fff; }
.pr-ex-bar .r { background: var(--coral); color: var(--marino); justify-content: center; padding: 0 4px; }
.pr-ex-lines { margin: 0; display: grid; }
.pr-ex-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pr-ex-lines dt { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); }
.pr-ex-lines dt i { width: 10px; height: 10px; border-radius: 3px; background: var(--azul-500); }
.pr-ex-lines dt i.r { background: var(--coral); }
.pr-ex-lines dd { margin: 0; font-weight: 700; color: var(--marino); }
.pr-ex-lines .tot { border-bottom: 0; padding-bottom: 0; }
.pr-ex-lines .tot dt { color: var(--marino); font-weight: 600; }
.pr-src { font-size: 12px; color: var(--fg-3); line-height: 1.5; }
.pr-share { border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .05); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 4px; }
.pr-share-hd, .pr-share-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 14px; align-items: center; }
.pr-share-hd { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--azul-300); padding-bottom: 6px; }
.pr-share-row { padding: 6px 0; font-size: 14px; color: var(--gris-300); }
.pr-share-row > span:first-child { display: grid; font-weight: 600; color: #fff; }
.pr-share-row small { font-size: 11.5px; font-weight: 500; color: var(--gris-400); line-height: 1.35; }
.pr-share-bar { position: relative; display: flex; align-items: center; gap: 10px; }
.pr-share-bar::before { content: ""; position: absolute; left: 0; top: 50%; width: calc(100% - 92px); height: 8px; margin-top: -4px; border-radius: 99px; background: var(--coral); }
.pr-share-bar i { position: relative; display: block; height: 8px; border-radius: 99px 0 0 99px; background: var(--azul-400); max-width: calc(100% - 92px); flex: none; }
.pr-share-bar i { width: calc((100% - 92px) * var(--w, .8)); }
.pr-share-bar b { margin-left: auto; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.pr-share-row.is-on { margin-inline: -8px; padding-inline: 8px; border-radius: 8px; background: rgb(255 255 255 / .07); }

/* Calculadora */
.pr-calc-sec { padding: var(--sec) 0; }
.pr-calc { margin-top: 0; }
.pr-calc .calc-in { gap: 28px; }
.pr-calc-group { display: grid; gap: 18px; }
.pr-calc-group + .pr-calc-group { padding-top: 24px; border-top: 1px solid var(--line-soft); }
.pr-calc-group h3 { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.pr-calc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pr-calc .field { align-content: start; }
.pr-calc .field > .hint { font-size: 12.5px; }
.pr-calc .calc-out .ln[hidden] { display: none; }
.pr-calc .range-val { white-space: nowrap; }
.pr-calc .field > label { gap: 4px 12px; flex-wrap: wrap; }
.pr-calc .seg { width: fit-content; max-width: 100%; }
.pr-calc .stepper input:focus-visible { box-shadow: inset 0 0 0 2px var(--azul-500); }
.pr-calc .calc-out .ln > span { min-width: 0; }
.pr-calc .calc-out .ln .pr-pend { font-size: 11.5px; }
.pr-calc .calc-out .tip { margin-top: 4px; }
.pr-formulas { margin-top: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--fg-3); max-width: 900px; }
.pr-formulas b { color: var(--fg-2); }

/* FAQ */
.pr-faq { padding-top: 0; }
.pr-faq-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-list details p .pr-pend { white-space: normal; }

/* CTA final: que el botón largo no ensanche la pista del grid a 390 px */
.cta-box > * { min-width: 0; }
.cta-box .btns .btn { white-space: normal; max-width: 100%; text-align: center; }
.cta-box .pr-cta-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--gris-300); font-size: 14px; }
.cta-box .pr-cta-note li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cta-box .pr-cta-note .icon { width: 15px; height: 15px; color: var(--exito); stroke-width: 2.2; }

/* Responsive */
@media (max-width: 1000px) {
  .pr-f-row { grid-template-columns: 1fr; gap: 6px; }
  .pr-f-op { text-align: center; font-size: 20px; line-height: 1; }
  .pr-f-item { grid-template-columns: auto 1fr auto; grid-template-rows: auto; }
  .pr-f-item strong { grid-column: auto; font-size: 19px; text-align: right; }
}
@media (max-width: 900px) {
  .pr-plans { margin-inline: auto; }
  .pr-camp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pr-calc-pair { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pr-tbl-wrap { border: 0; background: none; box-shadow: none; overflow: visible; }
  .pr-tbl, .pr-tbl tbody, .pr-tbl tr, .pr-tbl th, .pr-tbl td { display: block; }
  .pr-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pr-tbl tbody { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
  .pr-tbl tbody tr:not(.pr-grp) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
  .pr-tbl tbody tr:last-child { border-bottom: 0; }
  .pr-tbl th[scope="row"] { grid-column: 1 / -1; border: 0; padding: 12px 14px 4px; font-weight: 600; font-size: 15px; }
  .pr-tbl td { border: 0; padding: 6px 8px 12px; font-size: 13px; display: grid; justify-items: center; align-content: start; gap: 4px; }
  .pr-tbl td::before { content: attr(data-l); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }
  .pr-tbl td.is-hot { background: rgb(239 243 253 / .7); border-radius: 8px; }
  .pr-tbl td.is-hot::before { color: var(--azul-700); }
  .pr-tbl .pr-grp th { padding: 14px 14px 10px; }
  .pr-tbl .pr-pend, .pr-tbl .pr-soon, .pr-tbl .pr-early { white-space: normal; font-size: 11px; }
  .pr-tbl tbody tr:not(.pr-grp):hover > * { background-color: transparent; }
}
@media (max-width: 560px) {
  .pr-hero-head { text-align: left; justify-items: start; }
  .pr-toggle { justify-items: start; }
  .pr-calc-pair { grid-template-columns: 1fr; }
  .pr-calc .seg label { padding: 0 12px; }
  .pr-iva { justify-content: flex-start; text-align: left; }
  .pr-share-bar::before { width: calc(100% - 82px); }
  .pr-share-bar i { max-width: calc(100% - 82px); width: calc((100% - 82px) * var(--w, .8)); }
  .pr-share-hd, .pr-share-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .pr-ex-hd .pill { margin-left: 0; }
  .pr-f-item { grid-template-columns: auto 1fr; }
  .pr-f-item strong { grid-column: 1 / -1; text-align: left; }
}

/* Operadores legibles (en Raleway "=" y "+" se ven muy pequeños) */
.pr-op { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 600; font-size: 1.05em; color: var(--fg-3); }
.pr-camp .pr-op, .calc-out .pr-op { color: inherit; }

/* Foco visible en los CTA principales: .btn-primary/.btn-secondary de styles.css pisan el box-shadow de :focus-visible */
.pr-main .btn-primary:focus-visible, .pr-main .btn-secondary:focus-visible { box-shadow: var(--focus); }

/* Plan para agencias: highlight de marca blanca */
.plan li.pr-hl { margin: 2px -10px; padding: 8px 10px; border-radius: 10px; background: #F3F0FF; }
.plan li.pr-hl .pill { margin-left: 6px; vertical-align: middle; }
