/* VIZAM · Portal del cliente (pensado primero para el teléfono) */
body.portal { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; font-size: .95rem; }
.pt-wrap { width: 100%; max-width: 980px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.pt-eyebrow { font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); }

/* Barra superior */
.pt-top { background: linear-gradient(180deg, var(--ink), var(--ink-2)); padding-top: env(safe-area-inset-top); position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--amber); }
.pt-top-in { display: flex; align-items: center; height: 60px; }
.pt-logo { height: 28px; width: auto; }
.pt-top-acc { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pt-vivo { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb0c4; }
.pt-vivo span { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 0 rgba(62,207,142,.6); animation: pt-latido 2s infinite; }
.pt-vivo.off span { background: #8a96a6; animation: none; }
@keyframes pt-latido { 0% { box-shadow: 0 0 0 0 rgba(62,207,142,.55); } 70% { box-shadow: 0 0 0 8px rgba(62,207,142,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,142,0); } }
.pt-salir { color: #c7d2df; font-size: 1.35rem; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.pt-salir:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Acceso */
.pt-login { flex: 1; display: grid; grid-template-columns: 1fr minmax(0, 400px); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.pt-login h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 4rem); line-height: .95; text-transform: uppercase; color: var(--ink); margin: 8px 0 14px; }
.pt-login-txt p { color: var(--muted); max-width: 360px; }
.pt-login-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 30px 60px -36px rgba(12,23,36,.45); }
.pt-login-box .placa-input { height: 56px; }

/* Panel */
.pt-main { flex: 1; padding-top: 22px; padding-bottom: 30px; }
.pt-hola { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pt-hola h1 { font-family: var(--display); font-weight: 700; font-size: 2rem; text-transform: uppercase; margin: 2px 0 0; color: var(--ink); line-height: 1; }
.pt-hola .btn { margin-left: auto; }
.pt-vacio { display: flex; gap: 14px; align-items: center; background: #fff; border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 22px; color: var(--muted); margin-bottom: 18px; }
.pt-vacio i { font-size: 2.4rem; opacity: .5; }
.pt-vacio b { color: var(--text); }

/* Tarjeta de seguimiento */
.pt-orden { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 20px 40px -34px rgba(12,23,36,.5); }
.pt-orden.pt-recien { animation: pt-destello 1.6s ease; }
@keyframes pt-destello { 0%, 100% { box-shadow: 0 20px 40px -34px rgba(12,23,36,.5); } 30% { box-shadow: 0 0 0 4px rgba(224,158,0,.45); } }
.pt-orden-cab { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pt-marca { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.pt-marca img { max-width: 38px; max-height: 30px; object-fit: contain; }
.pt-marca-sm { flex-basis: 40px; height: 40px; border-radius: 10px; }
.pt-marca-sm img { max-width: 30px; max-height: 24px; }
.pt-ini { font-family: var(--display); font-weight: 700; color: var(--muted); }
.pt-veh { flex: 1; min-width: 0; }
.pt-veh-nom { font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.pt-veh-sub { font-size: .78rem; color: var(--muted); }
.pt-orden-cab .placa { font-size: 1.05rem; }

/* Estado actual */
.pt-estado { display: flex; align-items: center; gap: 14px; padding: 16px; background: linear-gradient(180deg, #fbfaf7, #fff); }
.pt-estado-ico { position: relative; flex: 0 0 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.pt-pulso { position: absolute; inset: -4px; border-radius: 19px; border: 2px solid var(--amber); animation: pt-onda 2s ease-out infinite; }
@keyframes pt-onda { 0% { opacity: .8; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.18); } }
.estado-listo .pt-estado-ico { background: var(--ok); color: #fff; }
.estado-listo .pt-pulso { border-color: var(--ok); }
.estado-entregado .pt-estado-ico { background: var(--neutral-bg); color: var(--neutral); }
.estado-cancelado .pt-estado-ico { background: var(--bad-bg); color: var(--bad); }
.pt-estado-nom { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; line-height: 1; color: var(--ink); }
.pt-estado-txt { font-size: .86rem; color: #46505e; margin-top: 4px; }
.pt-pct { margin-left: auto; font-family: var(--display); color: var(--ink); line-height: 1; text-align: right; }
.pt-pct b { font-size: 2.3rem; font-weight: 700; }
.pt-pct small { font-size: 1rem; color: var(--muted); margin-left: 1px; }

/* Etapas */
.pt-pasos { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 4px 16px 18px; position: relative; }
.pt-pasos::before, .pt-pasos::after { content: ''; position: absolute; top: 19px; left: calc(16px + 100% / 12 - 2.7px); height: 3px; border-radius: 3px; }
.pt-pasos::before { right: calc(16px + 100% / 12 - 2.7px); background: var(--line); }
.pt-pasos::after { width: calc((100% - 32px) * 5 / 6 * var(--p) / 100); background: var(--amber); transition: width .8s ease; }
.pt-pasos li.hecho .pt-punto i { font-size: 1rem; font-weight: 700; }
.pt-pasos li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pt-punto { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--muted); }
.pt-pasos li.hecho .pt-punto { background: var(--amber); border-color: var(--amber); color: #1b1300; }
.pt-pasos li.actual .pt-punto { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(224,158,0,.35); }
.pt-paso-nom { font-size: .68rem; font-weight: 600; color: var(--muted); line-height: 1.15; }
.pt-pasos li.actual .pt-paso-nom { color: var(--ink); font-weight: 700; }

.pt-datos { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pt-datos > div { padding: 10px 16px; border-right: 1px solid var(--line); }
.pt-datos > div:last-child { border-right: 0; }
.pt-datos dt { font-family: var(--display); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pt-datos dd { margin: 2px 0 0; font-weight: 600; font-size: .86rem; }

.pt-listo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: #1f5a40; font-size: .9rem; }
.pt-listo i { font-size: 1.7rem; }
.pt-total { margin-left: auto; font-size: .9rem; }
.pt-total b { font-family: var(--display); font-size: 1.5rem; }

.pt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pt-cols section { padding: 14px 16px; }
.pt-cols section + section { border-left: 1px solid var(--line); }
.pt-orden h3, .pt-bloque h2 { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: #2a3340; margin: 0 0 10px; }
.pt-orden h3 small { color: var(--muted); font-weight: 600; }
.pt-items { list-style: none; padding: 0; margin: 0; }
.pt-items li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.pt-items li:last-child { border-bottom: 0; }
.pt-items i { color: var(--navy); }
.pt-nota { color: var(--muted); font-size: .86rem; }
.pt-linea { list-style: none; padding: 0 0 0 16px; margin: 0; position: relative; }
.pt-linea::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.pt-linea li { position: relative; display: flex; flex-direction: column; padding-bottom: 10px; }
.pt-linea li::before { content: ''; position: absolute; left: -16px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.pt-linea li:first-child::before { background: var(--amber); border-color: var(--amber); }
.pt-linea li.msg::before { border-color: var(--amber); }
.pt-linea-t { font-weight: 600; font-size: .86rem; }
.pt-linea-c { font-size: .86rem; background: var(--surface-2); border-radius: 8px; padding: 6px 10px; margin: 4px 0 2px; }
.pt-linea-f { font-size: .74rem; color: var(--muted); }

.pt-fotos-sec { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.pt-fotos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.pt-fotos::-webkit-scrollbar { display: none; }
.pt-fotos a { position: relative; flex: 0 0 140px; height: 105px; border-radius: 10px; overflow: hidden; scroll-snap-align: start; background: var(--surface-2); }
.pt-fotos img { width: 100%; height: 100%; object-fit: cover; }
.pt-fotos span { position: absolute; left: 6px; bottom: 6px; background: rgba(12,23,36,.72); color: #fff; font-size: .66rem; font-weight: 600; padding: 2px 7px; border-radius: 5px; }

/* Bloques inferiores */
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pt-bloque { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 18px; }
.pt-bloque h2 i { color: var(--amber-ink); margin-right: 6px; }
.pt-veh-fila, .pt-cita, .pt-hist { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pt-veh-fila:last-child, .pt-cita:last-child, .pt-hist:last-child { border-bottom: 0; }
.pt-cita-dia { flex: 0 0 48px; height: 52px; border-radius: 10px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-family: var(--display); }
.pt-cita-dia b { font-size: 1.4rem; }
.pt-cita-dia span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); }
.pt-hist-f { flex: 0 0 84px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.min-w-0 { min-width: 0; }

.pt-pie { text-align: center; font-size: .78rem; color: var(--muted); padding-top: 14px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.pt-aviso { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 16px 34px -12px rgba(0,0,0,.5); z-index: 100; border-left: 3px solid var(--amber); max-width: calc(100% - 32px); }

@media (max-width: 767.98px) {
  .pt-login { grid-template-columns: 1fr; gap: 22px; padding-top: 26px; }
  .pt-hola .btn { margin-left: 0; width: 100%; }
  .pt-grid, .pt-cols { grid-template-columns: 1fr; gap: 0; }
  .pt-grid { gap: 0; }
  .pt-cols section + section { border-left: 0; border-top: 1px solid var(--line); }
  .pt-datos { grid-template-columns: 1fr 1fr; }
  .pt-datos > div:nth-child(2) { border-right: 0; }
  .pt-datos > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pt-paso-nom { font-size: .6rem; }
  .pt-punto { width: 28px; height: 28px; font-size: .8rem; }
  .pt-pasos::before, .pt-pasos::after { top: 17px; }
  .pt-estado-nom { font-size: 1.3rem; }
  .pt-pct b { font-size: 1.9rem; }
  .pt-orden-cab .placa { display: none; }
}

/* ---------- Acceso con cuenta ---------- */
.pt-beneficios { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.pt-beneficios li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #2a3340; }
.pt-beneficios i { width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--amber-ink); font-size: 1.15rem; }
.pt-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.pt-tabs a { text-align: center; padding: 9px; border-radius: 8px; font-weight: 700; font-size: .88rem; color: var(--muted); text-decoration: none; }
.pt-tabs a.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px -3px rgba(12,23,36,.3); }
.pt-h2, .pt-paso2 h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; color: var(--ink); margin: 0 0 6px; }
.pt-pass { position: relative; }
.pt-pass .form-control { padding-right: 46px; }
.pt-ver { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 38px; height: 38px; color: var(--muted); font-size: 1.15rem; border-radius: 8px; }
.pt-fuerza { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.pt-fuerza span { height: 4px; border-radius: 2px; background: var(--line); transition: background .2s; }
.pt-fuerza[data-n="1"] span:nth-child(-n+1) { background: var(--bad); }
.pt-fuerza[data-n="2"] span:nth-child(-n+2) { background: var(--amber); }
.pt-fuerza[data-n="3"] span:nth-child(-n+3) { background: #8bb04a; }
.pt-fuerza[data-n="4"] span { background: var(--ok); }
.pt-paso2 { text-align: center; }
.pt-paso2-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; background: var(--ink); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.pt-paso2 form, .pt-paso2 .alert { text-align: left; }
.pt-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.pt-otp input { height: 58px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.8rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fdfdfb; color: var(--ink); outline: none; min-width: 0; }
.pt-otp input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16,52,90,.12); background: #fff; }
.pt-sin-cuenta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .88rem; }
.pt-sin-cuenta > i { font-size: 1.8rem; color: var(--navy); }
.pt-sin-cuenta > div { flex: 1; min-width: 200px; }

/* ---------- Agenda en línea ---------- */
.pt-hola-acc { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pt-agenda { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 18px; box-shadow: 0 20px 40px -34px rgba(12,23,36,.5); scroll-margin-top: 80px; }
.pt-agenda-cab { display: flex; align-items: center; margin-bottom: 6px; }
.pt-agenda h2 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; margin: 0; color: var(--ink); }
.pt-agenda h2 i { color: var(--amber-ink); margin-right: 6px; }
.pt-cerrar { margin-left: auto; border: 0; background: var(--surface-2); width: 38px; height: 38px; border-radius: 10px; font-size: 1.1rem; }
.pt-ag-paso { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 18px 0 10px; color: var(--ink); }
.pt-ag-paso span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--amber); font-family: var(--display); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.pt-servicios { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.pt-serv { position: relative; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.pt-serv input { position: absolute; opacity: 0; pointer-events: none; }
.pt-serv:hover { border-color: var(--line-strong); }
.pt-serv:has(input:checked) { border-color: var(--navy); background: #f3f6fa; box-shadow: 0 0 0 1px var(--navy); }
.pt-serv-nom { font-weight: 700; font-size: .9rem; }
.pt-serv-det { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.pt-ag-veh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pt-dias { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.pt-dias::-webkit-scrollbar { display: none; }
.pt-dias button { flex: 0 0 62px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; border: 1px solid var(--line); background: #fff; border-radius: 10px; scroll-snap-align: start; color: var(--text); }
.pt-dias button small { font-size: .68rem; text-transform: uppercase; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.pt-dias button b { font-family: var(--display); font-size: 1.45rem; line-height: 1; }
.pt-dias button.sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.pt-dias button.sel small { color: var(--amber); }
.pt-horas { margin-top: 10px; }
.pt-horas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.pt-horas-grid button { height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.pt-horas-grid button:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.pt-horas-grid button.sel { background: var(--navy); border-color: var(--navy); color: #fff; }
.pt-horas-grid button:disabled { color: #c9c3b5; background: repeating-linear-gradient(-45deg, #fff 0 6px, #f5f3ee 6px 8px); text-decoration: line-through; }
.pt-ag-pie { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pt-ag-resumen { flex: 1; min-width: 200px; font-size: .88rem; color: var(--muted); }
.pt-ag-resumen b { color: var(--ink); }
.pt-cancelar { border: 0; background: transparent; color: #b9b2a4; font-size: 1.4rem; width: 40px; height: 40px; border-radius: 10px; }
.pt-cancelar:hover, .pt-cancelar.seguro { color: var(--bad); background: var(--bad-bg); }
@media (max-width: 767.98px) {
  .pt-hola-acc { width: 100%; margin-left: 0; }
  .pt-hola-acc .btn { flex: 1; }
  .pt-ag-veh { grid-template-columns: 1fr; }
  .pt-ag-pie .btn { width: 100%; }
  .pt-otp { gap: 6px; } .pt-otp input { height: 52px; font-size: 1.5rem; }
}

/* ---------- Agenda: asistente por pasos ---------- */
.pt-wz-pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 10px 0 18px; padding: 0; position: relative; counter-reset: none; }
.pt-wz-pasos li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-align: center; }
.pt-wz-pasos li:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--line); }
.pt-wz-pasos li.hecho:not(:last-child)::after { background: var(--amber); }
.pt-wz-pasos span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; color: var(--muted); transition: all .2s; }
.pt-wz-pasos em { font-style: normal; font-size: .76rem; font-weight: 600; color: var(--muted); }
.pt-wz-pasos li.hecho span { background: var(--amber); border-color: var(--amber); color: #1b1300; }
.pt-wz-pasos li.actual span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(224,158,0,.3); }
.pt-wz-pasos li.actual em { color: var(--ink); font-weight: 700; }
.pt-wz { animation: pt-entra .25s ease; min-height: 180px; }
@keyframes pt-entra { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.pt-wz-tit { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); margin: 0 0 12px; }
.pt-wz-veh { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pt-veh-op { flex-direction: row; align-items: center; gap: 12px; }
.pt-veh-op .pt-marca { flex: 0 0 42px; height: 42px; }
.pt-veh-op .pt-marca i { font-size: 1.2rem; color: var(--navy); }
.pt-wz-resumen { display: grid; gap: 8px; }
.pt-wz-resumen > div { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.pt-wz-resumen > div > i { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.pt-wz-resumen span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pt-wz-resumen small { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pt-wz-resumen b { font-size: .95rem; color: var(--ink); }
.pt-wz-resumen em { font-style: normal; font-size: .78rem; color: var(--muted); }
.pt-wz-resumen button { border: 0; background: transparent; color: var(--navy); font-weight: 700; font-size: .8rem; padding: 6px 8px; border-radius: 6px; }
.pt-wz-resumen button:hover { background: #fff; }
.pt-wz-pie { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pt-wz-ayuda { flex: 1; text-align: center; font-size: .82rem; color: var(--muted); }
.pt-wz-pie .btn-lg { min-width: 150px; }
@media (max-width: 767.98px) {
  .pt-wz-pasos em { font-size: .66rem; }
  .pt-wz-pie { flex-wrap: wrap; }
  .pt-wz-ayuda { order: -1; flex-basis: 100%; }
  .pt-wz-pie .btn-lg { flex: 1; min-width: 0; }
}

/* ---------- Paso 3: calendario con disponibilidad + horas ---------- */
.pt-pronto { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f6efe0; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: .88rem; color: #5b4310; }
.pt-pronto > i { font-size: 1.3rem; color: var(--amber-ink); }
.pt-pronto span { flex: 1; min-width: 180px; }
.pt-pronto button { border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem; padding: 7px 14px; border-radius: 8px; }
.pt-dh { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pt-cal { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.pt-cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pt-cal-cab b { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.pt-cal-nav { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--navy); font-size: 1rem; }
.pt-cal-nav:disabled { opacity: .35; }
.pt-cal-sem, .pt-cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.pt-cal-sem span { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.pt-cal-dias button { position: relative; height: 42px; border: 0; border-radius: 10px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text); }
.pt-cal-dias button b { font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; line-height: 1; }
.pt-cal-dias button i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.pt-cal-dias button.ok i { background: var(--ok); }
.pt-cal-dias button.poco i { background: var(--amber); }
.pt-cal-dias button.lleno i { background: var(--bad); }
.pt-cal-dias button.ok:hover, .pt-cal-dias button.poco:hover { background: var(--surface-2); }
.pt-cal-dias button.lleno b { text-decoration: line-through; color: #c9a59d; }
.pt-cal-dias button.cerrado b, .pt-cal-dias button.fuera b { color: #cfcabd; font-weight: 500; }
.pt-cal-dias button.hoy { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.pt-cal-dias button.sel { background: var(--ink) !important; box-shadow: none; }
.pt-cal-dias button.sel b { color: #fff; }
.pt-cal-dias button.sel i { background: var(--amber); }
.pt-cal-ley { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.pt-cal-ley span { display: inline-flex; align-items: center; gap: 5px; }
.pt-cal-ley i { width: 7px; height: 7px; border-radius: 50%; }
.pt-cal-ley .ok { background: var(--ok); } .pt-cal-ley .poco { background: var(--amber); } .pt-cal-ley .lleno { background: var(--bad); }
.pt-slots { min-width: 0; scroll-margin-top: 80px; }
.pt-slots-cab { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.pt-slots-cab b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; color: var(--ink); }
.pt-slots-cab small { font-size: .78rem; }
.pt-slots-vacio { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); padding: 30px 10px; border: 1.5px dashed var(--line-strong); border-radius: 12px; font-size: .86rem; }
.pt-slots-vacio i { font-size: 2rem; opacity: .5; }
.pt-turno + .pt-turno { margin-top: 14px; }
.pt-turno-cab { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; color: var(--ink); margin-bottom: 8px; }
.pt-turno-cab i { color: var(--amber-ink); font-size: 1.1rem; }
.pt-turno-cab small { margin-left: auto; font-weight: 600; color: var(--muted); font-size: .74rem; }
.pt-horas .pt-horas-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.pt-horas .pt-horas-grid button { height: auto; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pt-horas .pt-horas-grid button b { font-size: 1rem; }
.pt-horas .pt-horas-grid button small { font-size: .68rem; color: var(--muted); font-weight: 600; }
.pt-horas .pt-horas-grid button.sel small { color: #c7d3e2; }
.pt-horas .pt-horas-grid button:disabled small { visibility: hidden; }
@media (max-width: 767.98px) { .pt-dh { grid-template-columns: 1fr; } }

/* Con la agenda abierta solo se ve el asistente */
body.pt-agendando #ptActivas, body.pt-agendando .pt-grid, body.pt-agendando .pt-main > .pt-bloque,
body.pt-agendando .pt-sin-cuenta, body.pt-agendando .pt-hola-acc, body.pt-agendando .pt-main > .alert { display: none !important; }
body.pt-agendando .pt-agenda { margin-bottom: 0; }

/* Paso 4: resumen y notas en la misma fila */
.pt-confirmar { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pt-notas { display: flex; flex-direction: column; }
.pt-notas textarea.form-control { flex: 1; min-height: 150px; max-height: none; resize: none; field-sizing: fixed; }
.pt-notas-ayuda { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: .76rem; color: var(--muted); }
.pt-notas-ayuda i { font-size: 1rem; color: var(--navy); margin-top: 1px; }
@media (max-width: 767.98px) { .pt-confirmar { grid-template-columns: 1fr; } .pt-notas textarea.form-control { min-height: 90px; } }
