/* Dangofe 26 · Portal del técnico · «Ya lo instalé» de un equipo del Taller · portal-ya-instale v1.0.1 · 2026-11-17 · © 2026 DANGOFE
   v1.0.1: Karla eligió la B («Se abre en el panel»); el CSS no cambia.
   Panel de Gerald: sin el rojo de Power Wave, con el vidrio de «Mi cartera». Va después de portal_tecnico.css (y de portal-cartera.css si está).
   Todo bajo .pyi (la hoja de la A, bajo .pyi-velo, en <body>). Claro por defecto; Noche azul con html[data-theme='dark']. Sin sombras; solo la hoja se mueve al abrir. */
.pyi, .pyi-velo {
  --pyi-vidrio: rgba(255, 255, 255, .66);
  --pyi-aviso: rgba(255, 255, 255, .94);
  --pyi-borde: rgba(255, 255, 255, .85);
  --pyi-brillo: rgba(255, 255, 255, .55);
  --pyi-linea: rgba(20, 24, 33, .14);
  --pyi-linea2: rgba(20, 24, 33, .32);
  --pyi-dentro: rgba(255, 255, 255, .5);
  --pyi-txt: #12151c;
  --pyi-txt2: #2b303b;
  --pyi-btn: #12151c;
  --pyi-btn-txt: #ffffff;
  --pyi-btn-toca: #2b303b;
  --pyi-ok: #0f5c32;
  --pyi-amb: #5a3300;
  --pyi-err: #a8380a;
  --pyi-foco: #12151c;
  --pyi-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312151c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}
html[data-theme='dark'] .pyi, html[data-theme='dark'] .pyi-velo {
  --pyi-vidrio: rgba(10, 18, 46, .8);
  --pyi-aviso: rgba(10, 18, 46, .94);
  --pyi-borde: rgba(255, 255, 255, .14);
  --pyi-brillo: rgba(255, 255, 255, .08);
  --pyi-linea: rgba(255, 255, 255, .16);
  --pyi-linea2: rgba(255, 255, 255, .36);
  --pyi-dentro: rgba(14, 24, 66, .5);
  --pyi-txt: #f4f6fb;
  --pyi-txt2: #c9d2e3;
  --pyi-btn: #f4f6fb;
  --pyi-btn-txt: #0a0f1d;
  --pyi-btn-toca: #c9d2e3;
  --pyi-ok: #8fe3b0;
  --pyi-amb: #fcd34d;
  --pyi-err: #fed7aa;
  --pyi-foco: #ffffff;
  --pyi-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f6fb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}
.pyi *, .pyi *::before, .pyi *::after, .pyi-velo *, .pyi-velo *::before, .pyi-velo *::after { box-sizing: border-box; }
.pyi p, .pyi h3, .pyi-velo p, .pyi-velo h3 { margin: 0; }
.pyi svg, .pyi-velo svg { flex: none; }
:where(.pyi, .pyi-velo) :where(button, select) { font-family: inherit; -webkit-tap-highlight-color: transparent; }
:where(.pyi, .pyi-velo) button { cursor: pointer; }
:where(.pyi, .pyi-velo) :where(button, select, a, h3):focus-visible, :where(.pyi, .pyi-velo) :where(.pyi-subir, .pyi-otra):focus-within { outline: 2px solid var(--pyi-foco); outline-offset: 2px; }

/* ---------- el bloque: un solo vidrio ---------- */
.pyi {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border-radius: 20px; border: 1px solid var(--pyi-borde);
  background: linear-gradient(180deg, var(--pyi-brillo), transparent 46px), var(--pyi-vidrio);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  color: var(--pyi-txt); font-size: 16px; line-height: 1.45; overflow-wrap: anywhere;
}
.pyi-cab { display: flex; align-items: flex-start; gap: 10px; }
.pyi-cab > svg { margin-top: 2px; }
.pyi-cab__t { min-width: 0; }
.pyi-tit { font-size: 18px; font-weight: 800; line-height: 1.25; }
.pyi-sub { margin-top: 2px; font-size: 15px; color: var(--pyi-txt2); }
.pyi-nota { font-size: 14px; color: var(--pyi-txt2); }
.pyi-nota--fuerte { color: var(--pyi-txt); }

/* ---------- botones ---------- */
.pyi-bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 20px; border-radius: 999px; font-size: 16px; font-weight: 800; line-height: 1.2; text-align: center; }
.pyi-bt--pri { border: 1px solid var(--pyi-btn); background: var(--pyi-btn); color: var(--pyi-btn-txt); }
.pyi-bt--pri:active:not(:disabled) { background: var(--pyi-btn-toca); border-color: var(--pyi-btn-toca); }
.pyi-bt--pri:disabled { opacity: .72; cursor: default; }
.pyi-bt--ancho { width: 100%; }
.pyi-bt--txt { min-height: 48px; min-width: 48px; padding: 0 12px; border: 0; background: none; color: var(--pyi-txt); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pyi-bt--fin { align-self: center; }
.pyi-x { display: grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 0; border-radius: 999px; border: 1px solid var(--pyi-linea2); background: none; color: var(--pyi-txt); }
.pyi-x:active { background: var(--pyi-linea); }

/* ---------- la ficha de un equipo (fila, tarjeta, elegido) ---------- */
.pyi-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; text-align: left; }
.pyi-f__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pyi-f__num { font-size: 14px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--pyi-txt); }
.pyi-f__cita { font-size: 14px; font-weight: 700; color: var(--pyi-txt2); }
.pyi-f__cli { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--pyi-txt); }
.pyi-f__eq { font-size: 15px; font-weight: 600; color: var(--pyi-txt); }
.pyi-f__dir { font-size: 14px; color: var(--pyi-txt2); }
.pyi-elegido { display: flex; align-items: flex-start; gap: 8px; padding: 12px 6px 12px 14px; border-radius: 16px; border: 1.5px solid var(--pyi-txt); }
.pyi-elegido .pyi-bt--txt { flex: none; margin-top: -8px; }

/* ---------- la foto (como la de Mendoza): la entrada va escondida dentro de su etiqueta ---------- */
.pyi-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.pyi-foto { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pyi-subir { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-radius: 16px; border: 1.5px dashed var(--pyi-linea2); background: var(--pyi-dentro); color: var(--pyi-txt); font-size: 16px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pyi-subir > span { min-width: 0; }
.pyi-subir:active, .pyi-otra:active { opacity: .8; }
.pyi-otra { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 10px; border-radius: 999px; color: var(--pyi-txt); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pyi-foto--lista { flex-direction: row; align-items: center; gap: 10px; }
.pyi-foto--lista .pyi-otra { align-self: center; flex: none; margin-left: auto; }
.pyi-mini { flex: none; display: block; width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--pyi-linea2); object-fit: cover; background: var(--pyi-dentro); }
.pyi-mini--sin { display: grid; place-items: center; color: var(--pyi-txt2); }
.pyi-mini-a { flex: none; display: block; border-radius: 12px; }
.pyi-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.pyi-t b { display: flex; align-items: flex-start; gap: 6px; font-size: 15px; font-weight: 800; line-height: 1.3; }
.pyi-t b svg { margin-top: 2px; }
.pyi-t small { font-size: 14px; color: var(--pyi-txt2); }
.pyi-err { display: flex; align-items: flex-start; gap: 7px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--pyi-err); background: var(--pyi-aviso); color: var(--pyi-txt); font-size: 15px; font-weight: 700; }
.pyi-err svg { margin-top: 3px; color: var(--pyi-err); }
.pyi-err > span { min-width: 0; }

/* ---------- lo que ya avisó ---------- */
.pyi-hechos { display: flex; flex-direction: column; }
.pyi-hechos--raya { padding-top: 4px; border-top: 1px solid var(--pyi-linea); }
.pyi-hecho { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.pyi-hecho + .pyi-hecho { border-top: 1px solid var(--pyi-linea); }
.pyi-hecho .pyi-t b svg { color: var(--pyi-ok); }
.pyi-hecho--pend .pyi-t b svg { color: var(--pyi-amb); }
.pyi-hecho--pend .pyi-mini { border: 1.5px dashed var(--pyi-amb); }

/* ---------- A · la hoja que sube (vive en <body>) ---------- */
html.pyi-abierta, html.pyi-abierta body { overflow: hidden; }
.pyi-velo { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 15, 29, .42);
  padding: 0 max(0px, env(safe-area-inset-right)) 0 max(0px, env(safe-area-inset-left)); color: var(--pyi-txt); font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.pyi-hoja { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; border: 1px solid var(--pyi-borde); border-bottom: 0;
  background: var(--pyi-aviso); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  animation: pyi-sube .26s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pyi-sube { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .pyi-velo { align-items: center; } .pyi-hoja { border-radius: 26px; border-bottom: 1px solid var(--pyi-borde); padding-bottom: 20px; } }
.pyi-hoja__asa { width: 40px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--pyi-linea2); }
.pyi-hoja__cab { display: flex; align-items: flex-start; gap: 10px; }
.pyi-hoja__ct { flex: 1 1 auto; min-width: 0; }
.pyi-paso { font-size: 14px; font-weight: 700; color: var(--pyi-txt2); }
.pyi-hoja__tit { margin-top: 2px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.pyi-lista { display: flex; flex-direction: column; border-top: 1px solid var(--pyi-linea); }
.pyi-fila { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 14px 6px 14px 0; border: 0; border-bottom: 1px solid var(--pyi-linea); background: none; color: var(--pyi-txt); text-align: left; }
.pyi-fila:active { background: var(--pyi-linea); }
.pyi-fila > svg { color: var(--pyi-txt2); }

/* ---------- B · se abre en el panel: pasos numerados y tarjetas ---------- */
.pyi-pre { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.pyi-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--pyi-btn); color: var(--pyi-btn-txt); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pyi-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.pyi-tile { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; min-height: 48px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--pyi-linea2); background: none; color: var(--pyi-txt); text-align: left; }
.pyi-tile:active { background: var(--pyi-linea); }
.pyi-tile__el { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--pyi-linea); font-size: 15px; font-weight: 800; color: var(--pyi-txt); }

/* ---------- C · todo a la vista: el desplegable ---------- */
.pyi-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pyi-campo__t { font-size: 15px; font-weight: 700; }
.pyi-sel { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; min-height: 52px; padding: 10px 44px 10px 14px; border-radius: 14px; border: 1.5px solid var(--pyi-linea2);
  background: var(--pyi-chev) no-repeat right 14px center / 20px 20px, var(--pyi-dentro); color: var(--pyi-txt); font-size: 16px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; cursor: pointer; }
.pyi-sel:disabled { opacity: .72; cursor: default; }
.pyi-detalle { display: flex; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--pyi-txt); }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .pyi, .pyi-velo { --pyi-vidrio: rgba(255, 255, 255, .94); }
  html[data-theme='dark'] .pyi, html[data-theme='dark'] .pyi-velo { --pyi-vidrio: rgba(10, 18, 46, .96); }
}
@media (prefers-reduced-motion: reduce) { .pyi-hoja { animation: none; } }
