/* Configurador: hereda colores, fuentes y botones de la landing. */
.pc { font-variant-numeric: tabular-nums; }
#planes .section-head.center { max-width: 1080px; }
.pc-no-break { white-space: nowrap; }
.pc [hidden] { display: none !important; }
.pc-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pc-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0; border: 0; gap: 12px; }
.pc-plan { position: relative; display: flex; flex-direction: column; padding: 20px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color 150ms ease-out, background-color 150ms ease-out; }
.pc-plan:hover { border-color: var(--violet-fg); }
.pc-plan:has(input:checked) { border-color: var(--violet-fg); background: var(--violet-50); }
.pc-plan:has(input:focus-visible) { outline: 2px solid var(--violet-fg); outline-offset: 4px; }
.pc-plan > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-plan-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 1.1rem; }
.pc-radio { width: 18px; height: 18px; border: 1.5px solid var(--muted); border-radius: 50%; }
.pc-plan:has(input:checked) .pc-radio { border: 5px solid var(--violet-fg); }
.pc-plan-price { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: clamp(1.65rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.pc-plan-price > span { white-space: nowrap; }
.pc-plan-price small { color: var(--muted); font: 400 0.7rem/1.35 var(--body); letter-spacing: normal; }
.pc-plan-price small span { display: block; white-space: nowrap; }
.pc-plan-people { margin-top: 12px; font-weight: 650; font-size: 0.88rem; }
.pc-plan-desc { color: var(--muted); font-size: 0.83rem; margin: 4px 0 12px; }
.pc-plan-annual { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.pc-plan-annual strong { font-family: var(--display); font-size: 1.3rem; font-weight: 750; color: var(--violet-fg); }
.pc-plan-annual small { color: var(--muted); font-size: 0.75rem; }
/* Estado base de cada plan: la tabla comparte columnas con las tarjetas y no depende de lo que se elija. */
.pc-compare-lead { display: none; }
.pc-matrix-wrap { margin-top: 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--e2); overflow-x: auto; overflow-y: hidden; }
.pc-matrix { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.88rem; }
.pc-col-label { width: 36%; }
.pc-matrix caption { padding: 16px 16px 12px; text-align: left; }
.pc-matrix caption b { display: block; font: 700 1.05rem/1.3 var(--display); letter-spacing: -0.01em; }
.pc-matrix caption span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8rem; }
.pc-matrix thead th { padding: 10px 4px; border-block: 1px solid var(--line); font-size: 0.82rem; font-weight: 700; text-align: center; }
.pc-matrix tbody th { padding: 9px 12px 9px 16px; font-weight: 600; line-height: 1.3; text-align: left; }
.pc-matrix tbody th small { display: inline; margin-left: 4px; color: var(--muted); font-size: 0.74rem; font-weight: 400; line-height: 1.3; }
.pc-matrix td { padding: 9px 4px; font-size: 0.92rem; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; }
.pc-matrix tbody tr + tr > * { border-top: 1px solid var(--line); }
.pc-matrix tbody tr.is-split > * { border-top: 2px solid var(--line); }
.pc-matrix td.is-yes { color: var(--teal-ink); }
.pc-matrix td.is-yes .ico { width: 19px; height: 19px; stroke-width: 2.25; vertical-align: -4px; }
.pc-matrix td.is-no { color: var(--muted); font-weight: 400; }
.pc-matrix :is(thead th, tbody td) { transition: background-color 150ms ease-out, color 150ms ease-out; }
.pc:has(.pc-plans label:nth-of-type(1) input:checked) .pc-matrix :is(thead th, tbody td):nth-child(2),
.pc:has(.pc-plans label:nth-of-type(2) input:checked) .pc-matrix :is(thead th, tbody td):nth-child(3),
.pc:has(.pc-plans label:nth-of-type(3) input:checked) .pc-matrix :is(thead th, tbody td):nth-child(4),
.pc:has(.pc-plans label:nth-of-type(4) input:checked) .pc-matrix :is(thead th, tbody td):nth-child(5) { background: var(--violet-50); }
.pc:has(.pc-plans label:nth-of-type(1) input:checked) .pc-matrix thead th:nth-child(2),
.pc:has(.pc-plans label:nth-of-type(2) input:checked) .pc-matrix thead th:nth-child(3),
.pc:has(.pc-plans label:nth-of-type(3) input:checked) .pc-matrix thead th:nth-child(4),
.pc:has(.pc-plans label:nth-of-type(4) input:checked) .pc-matrix thead th:nth-child(5) { color: var(--violet-fg); }
.pc-matrix-note { margin: 10px 4px 0; color: var(--muted); font-size: 0.78rem; }
.pc-toolbar { display: flex; justify-content: flex-end; padding: 4px 0; }
.pc-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.8rem; transition: color 150ms ease-out, background-color 150ms ease-out; }
.pc-reset:hover { color: var(--violet-fg); background: var(--violet-50); }
.pc-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding: 30px; border-radius: 16px; background: var(--surface); box-shadow: var(--e2); }
.pc h3 { font-size: 1.2rem; line-height: 1.3; }
.pc-team { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pc-team p { font-size: 0.85rem; color: var(--muted); margin-top: 5px; }
.pc-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; flex: none; }
.pc-stepper button { width: 44px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 11px; background: transparent; cursor: pointer; transition: background-color 150ms ease-out, scale 150ms ease-out; }
.pc-stepper button:hover:not(:disabled) { background: var(--violet-50); color: var(--violet-fg); }
.pc-stepper button:active:not(:disabled) { scale: 0.96; }
.pc-stepper button:disabled { opacity: 0.4; cursor: default; }
.pc-stepper input { appearance: textfield; -moz-appearance: textfield; width: 68px; height: 44px; border: 0; background: transparent; color: var(--ink); font: 650 1.2rem var(--body); text-align: center; caret-color: var(--violet-fg); }
.pc-stepper input::-webkit-inner-spin-button, .pc-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.pc-core { display: flex; gap: 10px; align-items: start; padding: 18px 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.pc-core .ico { color: var(--teal-ink); margin-top: 3px; }
.pc-core p { color: var(--muted); font-size: 0.85rem; }
.pc-core b { color: var(--ink); }
.pc-help { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.pc-function { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; cursor: pointer; }
.pc-function > .ico { color: var(--violet-fg); width: 21px; height: 21px; }
.pc-function-copy { flex: 1; min-width: 0; }
.pc-function b { font-weight: 650; font-size: 0.95rem; }
.pc-function-copy small { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.pc-function-price { font-size: 0.9rem; font-weight: 650; text-align: right; white-space: nowrap; }
.pc-function-price small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 400; }
.pc-function.is-included .pc-function-price { color: var(--teal-ink); font-size: 0.8rem; }
.pc-function.is-included { cursor: default; }
.pc-function input { position: absolute; right: 0; width: 44px; height: 44px; opacity: 0; cursor: pointer; z-index: 1; }
.pc-function input:disabled { cursor: default; }
.pc-switch { width: 40px; height: 24px; flex: none; border-radius: 12px; background: var(--muted); position: relative; transition: background-color 150ms ease-out; }
.pc-switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 150ms ease-out; }
.pc-function input:checked + .pc-switch { background: var(--violet); }
.pc-function input:checked + .pc-switch::after { transform: translateX(16px); }
.pc-function input:disabled + .pc-switch { background: var(--teal-ink); }
.pc-function input:focus-visible + .pc-switch { outline: 2px solid var(--violet-fg); outline-offset: 4px; }
.pc summary { cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 48px; list-style: none; font-weight: 650; }
.pc summary::-webkit-details-marker { display: none; }
.pc summary > .ico { margin-left: auto; width: 18px; height: 18px; transition: transform 150ms ease-out; }
.pc details[open] > summary > .ico { transform: rotate(180deg); }
.pc-resources { margin-top: 18px; }
.pc-resources summary { flex-wrap: wrap; font-size: 0.95rem; }
.pc-resources summary span { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.pc-resources-body { padding: 2px 0 12px; }
.pc-resource { display: grid; grid-template-columns: 1fr minmax(0, 245px); gap: 14px; padding: 16px 0; align-items: center; border-bottom: 1px solid var(--line); }
.pc-resource b { font-size: 0.9rem; font-weight: 650; }
.pc-resource small { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.pc-resource select { width: 100%; min-height: 44px; padding: 9px 28px 9px 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font: 400 0.8rem var(--body); cursor: pointer; }
.pc-resource select:disabled { opacity: 0.55; cursor: default; }
.pc-summary { position: sticky; top: calc(var(--bar-h) + 20px); padding-left: 28px; border-left: 1px solid var(--line); }
.pc-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-summary-heading > span { color: var(--violet-fg); font-size: 0.82rem; font-weight: 700; }
.pc-total { display: flex; flex-direction: column; margin-top: 20px; }
.pc-total strong { font-family: var(--display); font-size: clamp(2rem, 3.3vw, 2.8rem); font-weight: 750; line-height: 1.2; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.pc-total > span { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.pc-breakdown-title { margin-top: 22px; font-size: 0.73rem; color: var(--muted); }
.pc-breakdown { margin-top: 6px; font-size: 0.83rem; }
.pc-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 8px; }
.pc-breakdown dt { color: var(--muted); }
.pc-breakdown dt small { display: block; font-size: 0.73rem; }
.pc-breakdown dd { font-weight: 600; white-space: nowrap; }
.pc-breakdown .pc-reference { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.pc-reference dt { color: var(--ink); }
.pc-unit { font-size: 0.78rem; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.pc-recommend { color: var(--violet-fg); padding: 12px 0; margin-top: 14px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.pc-recommend button, .pc-retry { color: var(--violet-fg); border: 0; padding: 8px 0; min-height: 44px; cursor: pointer; background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 0.85rem; font-weight: 650; }
.pc-capacity-open { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; margin-top: 6px; padding: 0; border: 0; background: transparent; color: var(--violet-fg); font: 650 0.83rem var(--body); text-align: left; cursor: pointer; }
.pc-capacity-open .ico { width: 18px; height: 18px; transition: translate 150ms ease-out; }
.pc-capacity-open:hover:not(:disabled) .ico { translate: 3px 0; }
.pc-capacity-open:disabled { opacity: 0.55; cursor: default; }
.pc-contract { width: 100%; margin-top: 14px; font-size: 0.92rem; min-height: 48px; padding-inline: 16px 14px; }
.pc-contract:disabled { opacity: 0.55; cursor: wait; }
.pc-terms { font-size: 0.72rem; color: var(--muted); line-height: 1.55; margin-top: 10px; }
.pc-status { font-size: 0.8rem; color: var(--teal-ink); margin-top: 6px; }
.pc-error, .pc-status.is-error { color: var(--orange-ink); font-size: 0.85rem; }
.pc-error { margin-top: 10px; }
.pc-summary[aria-busy="true"] .pc-total strong { opacity: 0.55; }
.pc-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px 0; font-size: 0.9rem; color: var(--muted); }
.pc-footer b { color: var(--ink); }
/* costo de implementación y total del primer año */
.pc-impl { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pc-impl .pc-breakdown { margin-top: 0; }
.pc-impl .pc-breakdown > div:first-child { margin-top: 0; }
.pc-saving { color: var(--teal-ink); }
.pc-gratis { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--teal-50); color: var(--teal-ink); font-size: 0.82rem; font-weight: 650; }
.pc-gratis[hidden] { display: none; }
.pc-gratis .ico { width: 16px; height: 16px; flex: none; }
.pc-grand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pc-grand span { color: var(--ink); font-weight: 650; font-size: 0.9rem; flex: 1 1 100%; }
.pc-grand strong { font-family: var(--display); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pc-grand small { color: var(--muted); font-size: 0.78rem; }
.pc-total strong, .pc-breakdown dd, .pc-mobile-total b { font-variant-numeric: tabular-nums; }
.pc-mobile-total { display: none; }
/* Ventana "Ver todo lo que incluiría" */
.cap-modal { width: min(520px, calc(100vw - 32px)); }
.cap-list { margin-top: 18px; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.cap-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.cap-list dt { color: var(--muted); }
.cap-list dd { font-weight: 650; text-align: right; }
.cap-list .is-off dd { color: var(--muted); font-weight: 400; }
.cap-note { margin-top: 14px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
@media (min-width: 1200px) {
  .pc-compare { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .pc-compare-lead { display: flex; flex-direction: column; gap: 4px; grid-column: 1; grid-row: 1; align-self: end; padding: 0 22px 18px 4px; }
  .pc-compare-lead b { font: 700 1rem/1.3 var(--display); }
  .pc-compare-lead span { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
  .pc-plans { grid-column: 2; grid-row: 1; gap: 0; }
  .pc-plan { margin-inline: 6px; }
  .pc-plan-price { font-size: 1.7rem; }
  .pc-matrix-wrap { grid-column: 1 / -1; grid-row: 2; }
  .pc-matrix-note { grid-column: 1 / -1; grid-row: 3; }
  .pc-col-label { width: 240px; }
  /* Las tarjetas ya rotulan las columnas: el encabezado queda solo para lectores de pantalla. */
  .pc-matrix caption, .pc-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pc-matrix tbody th { padding-left: 20px; font-size: 0.9rem; }
}
@media (max-width: 1050px) {
  .pc-workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; padding: 24px; }
  .pc-summary { padding-left: 24px; }
  .pc-team { align-items: start; flex-direction: column; }
  .pc-plan { padding: 16px; }
  .pc-plan-price { font-size: clamp(1.1rem, 2.6vw, 1.65rem); gap: 6px; }
  .pc-plan-price small { font-size: 0.62rem; }
  .pc-plan-people { font-size: 0.8rem; }
  .pc-resource { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 760px) {
  .pc-matrix { font-size: 0.8rem; }
  .pc-matrix caption { padding: 14px 12px 10px; }
  .pc-matrix tbody th { padding: 9px 6px 9px 12px; }
  .pc-matrix tbody th small { font-size: 0.68rem; }
  .pc-matrix td { padding: 9px 2px; font-size: 0.82rem; }
  .pc-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-plan-price { font-size: 1.65rem; gap: 6px; }
  .pc-plan-desc { display: none; }
  .pc-plan-annual { margin-top: 12px; }
  .pc-plan-annual strong { font-size: 1.2rem; }
  .pc-workspace { grid-template-columns: 1fr; gap: 28px; padding: 22px; }
  .pc-team { flex-direction: row; align-items: center; }
  .pc-team h3 { font-size: 1.05rem; }
  .pc-summary { position: static; padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .pc-total strong { font-size: 2.8rem; }
  .pc-function { gap: 10px; }
  .pc-function > .ico { display: none; }
  .pc-function b { font-size: 0.9rem; }
  .pc-resource { grid-template-columns: 1fr 1fr; }
  .pc-footer { flex-direction: column; text-align: center; gap: 12px; }
  .pc-mobile-total { display: flex; position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 16px; right: 16px; align-items: center; justify-content: space-between; gap: 12px; z-index: 70; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--e3); }
  .pc-mobile-total small { display: block; font-size: 0.7rem; color: var(--muted); }
  .pc-mobile-total b { display: block; font-family: var(--display); font-size: 1.2rem; }
  .pc-mobile-total a { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--violet-fg); font-weight: 650; font-size: 0.8rem; }
  .pc-bar-visible .back-to-top { bottom: 104px; }
}
@media (max-width: 430px) {
  .pc-workspace { padding: 18px; }
  .pc-team { flex-direction: column; align-items: stretch; }
  .pc-stepper { align-self: flex-start; }
  .pc-plan { padding: 14px; }
  .pc-plan-people { font-size: 0.77rem; }
  .pc-plan-price { font-size: 1.5rem; gap: 5px; }
  .pc-plan-price small { font-size: 0.6rem; }
  .pc-resources summary span { display: none; }
  .pc-resource { grid-template-columns: 1fr; }
  .pc-function-copy small { font-size: 0.76rem; }
}
@media (max-width: 360px) {
  .pc-plan { padding: 10px; }
  .pc-plan-price { font-size: 1.25rem; gap: 4px; }
  .pc-plan-price small { font-size: 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pc *, .pc *::after { transition: none !important; }
}
