/*!
 * Busqueda360 GPS — Área de Clientes (/clientes). Complementa site.css.
 * Mobile-first, botones grandes, alto contraste. JP Informatica · "Innovar es cambiar"
 */
.portal { padding-bottom: 76px; } /* espacio para la barra de emergencia */

/* ---------- Cabecera ---------- */
.pt-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 20, 32, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pt-header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.pt-header .brand .b360-logo { height: 36px; width: auto; }
.pt-area { display: none; color: var(--muted); font-weight: 600; font-size: .9rem; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.pt-logout { margin: 0 0 0 auto; }
.pt-logout .btn { min-height: 40px; }

.pt-nav { border-top: 1px solid var(--line); }
.pt-nav ul { list-style: none; margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pt-nav ul::-webkit-scrollbar { display: none; }
.pt-nav li { flex: 1 0 auto; }
.pt-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; min-height: 56px; justify-content: center; color: #CFE0EA; text-decoration: none; font-weight: 600; font-size: .8rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.pt-nav a .ic { color: var(--sky-hi); }
.pt-nav a:hover { color: #fff; }
.pt-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }
.pt-nav a[aria-current="page"] .ic { color: var(--orange); }

/* ---------- Estructura ---------- */
.pt-main { padding: 20px 0 40px; min-height: 60vh; }
.pt-section { padding: 4px 0 24px; }
.pt-narrow { max-width: 560px; }
.pt-mid { max-width: 860px; }
.pt-head { margin-bottom: 20px; }
.pt-head h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); margin: 0 0 .3em; }
.pt-head-row { display: grid; gap: 16px; }
.pt-h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.pt-h3 { font-size: 1.1rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.pt-h3 .ic { color: var(--orange); }
.pt-center { text-align: center; }
.pt-small { font-size: .88rem; }
.pt-links { text-align: center; margin: 14px 0 0; }
.pt-links a, .pt-main a:not(.btn):not(.pt-quick-item):not(.pt-choice-item) { color: var(--sky-hi); }
.pt-lead-warn { color: #FFD7B8; font-weight: 600; }

.pt-card { padding: 20px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.pt-form { margin-bottom: 16px; }
.pt-form .btn-lg { margin-top: 4px; }
.alert-info { background: rgba(74, 144, 180, .14); border: 1px solid rgba(124, 196, 232, .5); color: #D4ECF9; }
.alert a { color: inherit; text-decoration: underline; }

/* Campos (complementa .field de site.css) */
.field-err { margin: 2px 0 0; color: #FFB3B3; font-size: .9rem; font-weight: 600; }
.field-help { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: .95rem; cursor: pointer; }
.check-line input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--orange); }
.pt-fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.pt-fieldset legend { font-weight: 600; font-size: .92rem; color: #CFE0EA; margin-bottom: 8px; padding: 0; }
.field input[type="file"] { min-height: 0; padding: 10px; font-size: .95rem; }
.field input[type="date"] { color-scheme: dark; }
/* Ejemplos (placeholder) del portal: #8FA6B6 sobre el fondo oscuro del campo ≥ 7:1 (WCAG AA) */
.field input::placeholder, .field textarea::placeholder { color: #8FA6B6; opacity: 1; }

/* ---------- Estados (semáforo) ---------- */
.pt-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .82rem; background: rgba(163, 185, 201, .14); color: var(--muted); white-space: nowrap; }
.pt-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.pt-badge.st-ok { background: rgba(61, 220, 151, .14); color: var(--ok); }
.pt-badge.st-warn { background: rgba(255, 184, 77, .16); color: #FFC266; }
.pt-badge.st-bad { background: rgba(255, 107, 107, .16); color: #FF8E8E; }

/* ---------- Inicio ---------- */
.pt-cta-pay { width: 100%; }
.pt-vehicles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pt-vehicle { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line-strong); }
.pt-vehicle.st-ok { border-left-color: var(--ok); }
.pt-vehicle.st-warn { border-left-color: #FFB84D; }
.pt-vehicle.st-bad { border-left-color: var(--danger); }
.pt-vehicle-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-plate { font: 800 1.35rem/1.1 var(--font-display); letter-spacing: .04em; color: #fff; }
.pt-vehicle-model { color: var(--muted); margin: 4px 0 10px; }
.pt-vehicle .btn { margin-top: 12px; }
.pt-dl { margin: 0; display: grid; gap: 8px; }
.pt-dl > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.pt-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pt-dl dt { color: var(--muted); }
.pt-dl dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.pt-quick { display: grid; gap: 12px; margin-top: 24px; }
.pt-quick-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.pt-quick-item .ic { grid-row: 1 / 3; color: var(--orange); }
.pt-quick-item span { color: var(--muted); font-size: .9rem; }
.pt-quick-item:hover { border-color: var(--sky); transform: translateY(-2px); }

/* ---------- Pagar ---------- */
.pt-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.pt-choice-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 10px; border-radius: var(--radius); border: 1.5px solid var(--orange); background: rgba(255, 100, 0, .08); color: #fff; text-decoration: none; }
.pt-choice-item .ic { color: var(--orange); }
.pt-choice-item span { color: var(--muted); font-size: .82rem; }
.pt-choice-item:hover { background: rgba(255, 100, 0, .16); }
.pt-pay-grid { display: grid; gap: 16px; align-items: start; }
.pt-option { border: 1.5px solid var(--line-strong); scroll-margin-top: 140px; }
.pt-option .pt-h2 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.pt-opt-tag { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--bg); font: 800 1rem/1 var(--font-display); flex: none; }
.pt-paylinks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.pt-paylinks .btn { white-space: normal; text-align: center; }
.pt-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 184, 77, .1); border: 1px solid rgba(255, 184, 77, .45); color: #FFE2B8; font-size: .92rem; margin: 0; }
.pt-note .ic { color: #FFC266; margin-top: 2px; }
.pt-bank { padding: 16px; border-radius: var(--radius-sm); background: rgba(6, 14, 24, .55); border: 1px dashed var(--line-strong); margin-bottom: 20px; }
.pt-bank-dl { margin-bottom: 12px; }
.pt-check-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(6, 14, 24, .5); cursor: pointer; }
.pt-check-card input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--orange); }
.pt-check-card:has(input:checked) { border-color: var(--orange); background: rgba(255, 100, 0, .08); }
.pt-check-body { display: grid; gap: 4px; }
.pt-check-body small { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); }
.pt-period { padding: 12px 14px; border-radius: 12px; background: rgba(74, 144, 180, .1); border: 1px solid var(--line); margin-bottom: 10px; }
.pt-period p { margin: 0; }
.pt-period ul { margin: 6px 0 0; padding-left: 18px; }
.pt-period-title { font-weight: 700; color: var(--sky-hi); }
.pt-notify .js-hide { margin-bottom: 16px; }
.js .js-hide { display: none; }
.pt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-pill { position: relative; cursor: pointer; }
.pt-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pt-pill span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: rgba(6, 14, 24, .5); font-weight: 600; }
.pt-pill input:checked + span { border-color: var(--orange); background: rgba(255, 100, 0, .16); color: #fff; }
.pt-pill input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.pt-file { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 12px; border: 2px dashed var(--line-strong); background: rgba(6, 14, 24, .4); cursor: pointer; color: #D5E5EF; font-weight: 600; }
.pt-file .ic { color: var(--orange); flex: none; }
.pt-file.has-file { border-color: var(--ok); border-style: solid; }
.pt-summary { text-align: left; margin: 18px 0 22px; }

/* ---------- Listas (pagos, usuarios) ---------- */
.pt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pt-list-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.pt-list-item small { display: block; }
.pt-payment-main { flex: 1 1 280px; display: grid; gap: 4px; }
.pt-payment-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pt-mini { margin: 4px 0 0; padding-left: 18px; color: #C9DAE5; font-size: .9rem; }
.pt-reject { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: #FFD0D0; font-size: .92rem; }
.pt-user { margin: 6px 0 0; }
.pt-code { font: 700 1.05rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 3px 8px; border-radius: 8px; background: rgba(6, 14, 24, .7); border: 1px solid var(--line-strong); color: #fff; overflow-wrap: anywhere; user-select: all; }

/* ---------- Mi app / ayuda ---------- */
.pt-apps { display: grid; gap: 10px; margin: 8px 0 8px; }
.pt-guides { display: grid; gap: 12px; }
.pt-guide summary > span { display: flex; align-items: center; gap: 10px; }
.pt-guide-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--bg); font: 800 .95rem/1 var(--font-display); flex: none; }
.pt-guide > .pt-steps-list, .pt-guide > p { margin-left: 20px; margin-right: 20px; }
.pt-guide > p { padding-bottom: 14px; }
.pt-steps-list { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; color: #D5E5EF; text-align: left; }
.pt-doors { display: grid; gap: 14px; }
.pt-door { margin: 0; scroll-margin-top: 140px; }
.pt-contact-card { margin-top: 24px; }

/* ---------- Páginas de resultado ---------- */
.pt-done { padding: 28px 20px; }
.pt-done h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
.pt-done-ic { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 12px; border-radius: 50%; background: rgba(74, 144, 180, .16); color: var(--sky-hi); }
.pt-done-ic.is-ok { background: rgba(61, 220, 151, .16); color: var(--ok); }
.pt-done-ic.is-warn { background: rgba(255, 184, 77, .16); color: #FFC266; }

/* ---------- Emergencia 24/7 ---------- */
.pt-emergency { display: grid; gap: 14px; margin: 20px 0; padding: 20px 18px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(229, 57, 53, .22), rgba(255, 100, 0, .14)); border: 1.5px solid rgba(255, 107, 107, .6); }
.pt-emergency p { margin: 0; color: #FFE0DA; }
.pt-emergency .pt-h3 .ic { color: #FF8E8E; }
.pt-emergency-actions { display: grid; gap: 10px; }
.pt-btn-sos { background: #C62828; color: #fff; box-shadow: 0 10px 30px -10px rgba(229, 57, 53, .8); }
.pt-btn-sos:hover { background: #B71C1C; color: #fff; }
.pt-sos { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(90deg, #B71C1C, #E53935 55%, #FF6400); box-shadow: 0 -8px 24px -10px rgba(0, 0, 0, .7); }
.pt-sos-label { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; color: #fff; font-weight: 800; font-size: .86rem; line-height: 1.15; }
.pt-sos-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 999px; background: #fff; color: #B71C1C; font-weight: 800; font-size: .9rem; text-decoration: none; flex: none; }
.pt-sos-btn.is-wa { background: rgba(255, 255, 255, .16); color: #fff; border: 1.5px solid #fff; }
.pt-sos-btn:hover { transform: translateY(-1px); }

/* ---------- Pie ---------- */
.pt-footer { padding: 24px 0 18px; border-top: 1px solid var(--line); font-size: .88rem; text-align: center; }
.pt-footer a { color: var(--sky-hi); }
.pt-footer p { margin: 0 0 6px; }

@media (max-width: 380px) {
  .pt-sos-label { font-size: .78rem; }
  .pt-sos-btn { padding: 8px 10px; font-size: .84rem; }
}

@media (min-width: 640px) {
  .pt-area { display: inline; }
  .pt-card { padding: 24px; }
  .pt-head-row { grid-template-columns: 1fr auto; align-items: end; }
  .pt-cta-pay { width: auto; }
  .pt-vehicles { grid-template-columns: repeat(2, 1fr); }
  .pt-quick { grid-template-columns: repeat(3, 1fr); }
  .pt-apps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .pt-emergency { grid-template-columns: 1fr auto; align-items: center; }
  .pt-sos { justify-content: center; }
  .pt-sos-label { flex: 0 1 auto; font-size: 1rem; margin-right: 8px; }
}

@media (min-width: 960px) {
  .pt-nav a { flex-direction: row; gap: 8px; font-size: .95rem; min-height: 50px; }
  .pt-nav li { flex: 0 0 auto; }
  .pt-pay-grid { grid-template-columns: 1fr 1.25fr; }
  .pt-doors { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .pt-vehicles { grid-template-columns: repeat(3, 1fr); }
}

.pt-credit { margin: 8px 0 0; font-size: .8rem; opacity: .75; }
.pt-credit a { font-weight: 700; }

/* Varias cuentas bancarias, con «Copiar» por dato */
.pt-bank-acc + .pt-bank-acc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.pt-bank-name { margin: 0 0 10px; font-weight: 800; font-size: 1.05rem; }
.pt-bank-dl dd { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pt-copy { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--sky-hi); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.pt-copy:hover, .pt-copy:focus-visible { border-color: var(--orange); color: #fff; }

/* ---------- Mis tickets (bloque 3; también en el enlace público /ticket/…) ---------- */
.tk-back { text-align: left; margin: 0 0 8px; }
.tk-list > li { list-style: none; }
.tk-item { color: inherit; text-decoration: none; min-height: 56px; }
.tk-item:hover { border-color: var(--sky); }
.tk-item-main { flex: 1 1 240px; display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.tk-conv { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.tk-bubble { max-width: min(680px, 100%); padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.tk-bubble.is-staff { border-left: 4px solid var(--orange); }
.tk-bubble.is-me { justify-self: end; background: rgba(74, 144, 180, .14); border-color: rgba(124, 196, 232, .45); }
.tk-who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 6px; }
.tk-text { line-height: 1.55; color: #E6F0F6; }
.tk-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tk-files a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.tk-public .pt-head h1 { overflow-wrap: anywhere; }

/* ---------- Ayuda del portal: «para qué sirve», «¿Cómo se usa?», tips (i), estados vacíos y «Primeros pasos» ---------- */
.pt-intro { margin: 0 0 10px; color: #D5E5EF; font-size: 1.02rem; line-height: 1.5; max-width: 40em; }
.pt-done .pt-intro { margin-left: auto; margin-right: auto; }

details.pt-howto { margin: 10px 0 18px; border-radius: var(--radius-sm); background: rgba(74, 144, 180, .1); border: 1px solid var(--line-strong); max-width: 44em; text-align: left; }
.pt-done details.pt-howto { margin-left: auto; margin-right: auto; }
details.pt-howto > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; cursor: pointer; font-weight: 700; color: #fff; border-radius: var(--radius-sm); }
details.pt-howto > summary::-webkit-details-marker { display: none; }
details.pt-howto > summary:hover { background: rgba(74, 144, 180, .12); }
details.pt-howto > summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.pt-howto-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sky-hi); color: var(--bg); font: 800 .95rem/1 var(--font-body); flex: none; }
.pt-howto-chev { margin-left: auto; color: var(--orange); transition: transform .3s var(--ease); flex: none; }
details.pt-howto[open] .pt-howto-chev { transform: rotate(180deg); }
.pt-howto-body { padding: 0 16px 14px; }
.pt-howto-body ol { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 6px; color: #E1EDF5; }
.pt-howto-ex { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(6, 14, 24, .6); border-left: 4px solid var(--orange); color: #E8F2F9; overflow-wrap: anywhere; }
.pt-howto-ex strong { color: #FFB27A; }

/* Tip (i): sin JS el texto se ve como ayuda normal; con JS se abre al tocar, con el foco o al pasar el mouse */
.pt-label-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; min-width: 0; }
.pt-label-row > .pt-h2-tight { margin: 0; }
.pt-tip { display: contents; }
.pt-tip-btn { display: none; }
.pt-tip-pop { display: block; flex: 1 1 100%; width: 100%; margin: 2px 0 4px; color: #C4D6E2; font-size: .88rem; font-weight: 400; line-height: 1.45; }
.js .pt-tip-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -10px -6px -10px 0; padding: 0; border: 0; background: transparent; color: var(--sky-hi); cursor: pointer; border-radius: 50%; flex: none; vertical-align: middle; }
.js .pt-tip-i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor; font: italic 800 .85rem/1 Georgia, 'Times New Roman', serif; }
.js .pt-tip-btn:hover, .js .pt-tip-btn[aria-expanded="true"] { color: #fff; }
.js .pt-tip-btn[aria-expanded="true"] .pt-tip-i { background: var(--sky-hi); color: var(--bg); border-color: var(--sky-hi); }
.js .pt-tip-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: -2px; }
.js .pt-tip-pop { display: none; margin: 6px 0 8px; padding: 10px 12px; border-radius: 10px; background: #0F2236; border: 1px solid var(--sky); color: #E8F2F9; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); text-transform: none; letter-spacing: 0; text-align: left; }
.js .pt-tip.is-open .pt-tip-pop { display: block; }
@media (hover: hover) { .js .pt-tip-btn:hover + .pt-tip-pop { display: block; } }
.pt-fieldset > legend + .pt-tip .pt-tip-btn { margin-top: -4px; }
.pt-dl dt .pt-tip-pop { font-weight: 400; }

/* Estados vacíos que orientan */
.pt-empty { display: flex; gap: 14px; align-items: flex-start; padding: 18px 16px; margin-bottom: 16px; border-radius: var(--radius); background: var(--surface); border: 1.5px dashed var(--line-strong); text-align: left; }
.pt-empty-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 100, 0, .14); color: var(--orange); flex: none; }
.pt-empty-body { min-width: 0; flex: 1 1 auto; }
.pt-empty-body p { margin: 0 0 8px; color: #D5E5EF; overflow-wrap: anywhere; }
.pt-empty-title { font-weight: 800; color: #fff !important; font-size: 1.05rem; }
.pt-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pt-empty-actions .btn { min-height: 48px; white-space: normal; text-align: center; }
.pt-bank .pt-empty { background: transparent; border: 0; padding: 0; margin: 0; }

/* Mis pagos: hasta cuándo tienes pagado */
.pt-paid-date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* «Primeros pasos» (Inicio) */
.pt-firststeps { margin: 4px 0 20px; padding: 18px 16px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(20, 120, 160, .2), rgba(18, 40, 62, .55)); border: 1.5px solid var(--line-strong); scroll-margin-top: 140px; }
.pt-fs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.pt-fs-head .pt-h3 { margin: 0; }
.pt-fs-count { margin: 0; color: #D5E5EF; }
.pt-fs-count strong { color: #fff; }
.pt-fs-bar { height: 8px; margin: 12px 0 14px; border-radius: 999px; background: rgba(6, 14, 24, .7); overflow: hidden; }
.pt-fs-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #FFB84D); }
.pt-fs-ok { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font-weight: 700; color: var(--ok); }
.pt-fs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pt-fs-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); background: rgba(6, 14, 24, .5); border: 1px solid var(--line); }
.pt-fs-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); color: var(--bg); flex: none; }
.pt-fs-step.is-done .pt-fs-mark { background: var(--ok); border-color: var(--ok); }
.pt-fs-body { min-width: 0; flex: 1 1 auto; }
.pt-fs-title { margin: 3px 0 0; font-weight: 700; color: #fff; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; overflow-wrap: anywhere; }
.pt-fs-step.is-done .pt-fs-title { color: #C4D6E2; }
.pt-fs-state { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 184, 77, .16); color: #FFC266; }
.pt-fs-step.is-done .pt-fs-state { background: rgba(61, 220, 151, .14); color: var(--ok); }
.pt-fs-text { margin: 4px 0 8px; color: #D5E5EF; font-size: .95rem; }
.pt-fs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-fs-actions form { margin: 0; }
.pt-fs-actions .btn { min-height: 44px; white-space: normal; }
.pt-fs-hide { margin: 14px 0 0; }
.pt-fs-hide .btn { min-height: 48px; }

@media (min-width: 640px) {
  .pt-firststeps { padding: 22px; }
  .pt-empty { padding: 22px; }
}

/* «Ver como este cliente» (superadmin, solo lectura): franja dentro de la cabecera fija, nunca tapada.
   Texto #3A1A00 sobre #FFE3CC (≈ 13:1) y botón blanco sobre #0A1420 (≈ 18:1). */
.pt-viewas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 16px; background: #FFE3CC; color: #3A1A00; border-bottom: 3px solid #FF6400; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.pt-viewas strong { color: #3A1A00; }
.pt-viewas .ico, .pt-viewas svg { vertical-align: -3px; color: #3A1A00; }
.pt-viewas-note { font-weight: 500; }
.pt-viewas form { margin: 0 0 0 auto; }
.pt-viewas button { min-height: 44px; padding: 8px 16px; border: 2px solid #0A1420; border-radius: 10px; background: #0A1420; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pt-viewas button:hover, .pt-viewas button:focus-visible { background: #1A2B3A; outline: 3px solid #FF6400; outline-offset: 2px; }
