/* Visappy · capa premium (fase 1). Se carga al final: unifica botones, campos, ritmo y movimiento
   en el cuestionario del cliente y el panel del consultor. Sólo presentación; no cambia datos ni flujos. */
body.app-body {
  --p-bg: #0A1628;
  --p-surface: #101E34;
  --p-raised: #15263F;
  --p-fill: rgba(245, 241, 232, .06);
  --p-fill-2: rgba(245, 241, 232, .10);
  --p-sep: rgba(245, 241, 232, .08);
  --p-champ: #E3C995;
  --p-champ-deep: #C9A96E;
  --p-ink: #0F1E36;
  --p-text: #F5F1E8;
  --p-text-2: #A7B2C4;
  --p-text-3: #7D8AA0;
  --p-danger: #FF8A7A;
  --p-r-lg: 20px;
  --p-r-md: 14px;
  --p-r-sm: 10px;
  --p-spring: cubic-bezier(.32, .72, 0, 1);
  --p-tap: 52px;
  font-size: 16px;
  letter-spacing: -.005em;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
@media (max-width: 640px) { body.app-body { font-size: 17px; } }

/* ---------- Barra superior: vidrio, ligera ---------- */
.app-body .app-top { min-height: 60px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px;
  background: rgba(10, 22, 40, .72); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: .5px solid var(--p-sep); }
.app-body .app-top__label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--p-text-3); }

/* ---------- Botones: mayúsculas fuera, tacto de presión ---------- */
.app-body .btn { text-transform: none; letter-spacing: -.01em; font-size: 16px; font-weight: 600; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--p-r-md); justify-content: center;
  transition: transform .35s var(--p-spring), background-color .2s, color .2s, box-shadow .3s, opacity .2s; }
.app-body .btn .arrow { display: none; }
.app-body .btn:active:not(:disabled) { transform: scale(.97); transition-duration: .08s; }
.app-body .btn--gold { background: var(--p-champ); color: var(--p-ink); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 24px -12px rgba(227,201,149,.55); }
.app-body .btn--gold:hover { transform: none; background: #EBD5A8; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 28px -12px rgba(227,201,149,.7); }
.app-body .btn--outline, .app-body .btn--outline-gold { border: 0; background: var(--p-fill); color: var(--p-text); font-size: 15px; padding: 11px 18px; }
.app-body .btn--outline:hover, .app-body .btn--outline-gold:hover { background: var(--p-fill-2); color: var(--p-text); }
.app-body .btn--danger { background: rgba(255,138,122,.12); color: var(--p-danger); border: 0; }
.app-body .btn:disabled, .app-body .btn[aria-disabled="true"] { opacity: .38; box-shadow: none; }
.app-body .app-top > .btn { min-height: 36px; padding: 8px 14px; font-size: 14px; letter-spacing: -.005em; border-radius: 999px; background: var(--p-fill); }
.app-body .link-btn { text-transform: none; letter-spacing: 0; }

/* ---------- Encabezados: sin etiquetas gritadas ---------- */
.app-body .app-eyebrow, .app-body .eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--p-champ); margin-bottom: 6px; }
.app-body .app-title { letter-spacing: -.03em; line-height: 1.06; }
.app-body .app-sub { color: var(--p-text-2); font-size: 1.0625em; line-height: 1.5; margin: 10px 0 28px; }
.app-body .app-side__title { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--p-text-3); }

/* ---------- Superficies: una sola capa, sin marcos duplicados ---------- */
.app-body .card-form { border: 0; border-radius: var(--p-r-lg); background: var(--p-surface);
  box-shadow: 0 0 0 .5px rgba(245,241,232,.07) inset, 0 30px 60px -40px rgba(0,0,0,.8); }
.app-body .card-form > h2 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 18px; }

/* ---------- Preguntas ---------- */
.app-body .q { padding: 22px 0; border-top: .5px solid var(--p-sep); }
.app-body .q:first-of-type { padding-top: 4px; }
.app-body .q__label { font-size: 1em; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.app-body .q__label small { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--p-text-3); }
.app-body .q__hint { font-size: 14px; color: var(--p-text-3); margin: -4px 0 12px; line-height: 1.45; }

/* Campos: rellenos, grandes, sin borde hasta el foco */
.app-body .card-form input:not([type="checkbox"]):not([type="radio"]),
.app-body .card-form select, .app-body .card-form textarea, .app-body .in {
  min-height: var(--p-tap); padding: 13px 16px; border-radius: var(--p-r-sm); border: 1px solid transparent;
  background-color: var(--p-fill); color: var(--p-text); font-size: 17px !important; line-height: 1.35;
  transition: background-color .2s, border-color .2s, box-shadow .25s var(--p-spring); }
.app-body .card-form input::placeholder, .app-body .card-form textarea::placeholder { color: var(--p-text-3); }
.app-body .card-form input:not([type="checkbox"]):not([type="radio"]):hover,
.app-body .card-form select:hover, .app-body .card-form textarea:hover { background-color: var(--p-fill-2); }
.app-body .card-form input:focus, .app-body .card-form select:focus, .app-body .card-form textarea:focus, .app-body .in:focus {
  outline: none; background-color: rgba(10,22,40,.9); border-color: rgba(227,201,149,.75); box-shadow: 0 0 0 4px rgba(227,201,149,.14); }
.app-body .card-form select, .app-body select.in {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23E3C995' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; padding-right: 42px; }
.app-body .card-form .fecha { gap: 8px; }
.app-body .card-form .fecha select { padding-left: 14px; padding-right: 30px; background-position: right 12px center; }
.app-body .card-form input:disabled { opacity: .5; }

/* Sí / No / Tengo una duda: control segmentado */
.app-body .seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px;
  background: var(--p-fill); border-radius: 12px; max-width: 100%; flex-wrap: nowrap; }
.app-body .seg button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 9px; background: transparent;
  color: var(--p-text); font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .25s var(--p-spring), color .2s, box-shadow .25s, transform .3s var(--p-spring); }
.app-body .seg button:hover { border: 0; background: var(--p-fill); }
.app-body .seg button:active { transform: scale(.96); }
.app-body .seg button[aria-pressed="true"] { background: var(--p-champ); color: var(--p-ink); font-weight: 600; box-shadow: 0 2px 8px -2px rgba(0,0,0,.45); }
.app-body .seg button.seg--doubt[aria-pressed="true"] { background: var(--p-raised); color: var(--p-champ); border: 0; box-shadow: 0 0 0 1px rgba(227,201,149,.5) inset; }
@media (max-width: 420px) { .app-body .seg { display: grid; width: 100%; } .app-body .seg button { padding: 8px 6px; font-size: 14.5px; } }
/* Botones largos (preguntas de seguridad): el texto se acomoda en dos líneas y en celular van uno bajo otro; nunca se corta */
.app-body .seg--big button { white-space: normal; line-height: 1.25; }
@media (max-width: 520px) { .app-body .seg--big { grid-auto-flow: row; } }

/* «No lo sé» y opciones secundarias: discretas pero tocables */
.app-body .q__unknown { margin-top: 10px; min-height: 32px; padding: 6px 12px; border-radius: 999px; background: transparent;
  font-size: 14px; color: var(--p-text-3); text-decoration: none; box-shadow: 0 0 0 1px var(--p-sep) inset; }
.app-body .q__unknown:hover { color: var(--p-text-2); background: var(--p-fill); }
.app-body .q__unknown.is-on { color: var(--p-champ); box-shadow: 0 0 0 1px rgba(227,201,149,.45) inset; }
.app-body .q__dnk, .app-body .check, .app-body .multi__opt { -webkit-user-select: none; user-select: none; }
.app-body .q__dnk { font-size: 14.5px; color: var(--p-text-2); gap: 10px; margin-top: 10px; }
.app-body .q__note { font-size: 14px; color: var(--p-text-2); }

/* Casillas y opciones múltiples con aspecto nativo */
.app-body input[type="checkbox"]:not(.sr-only), .app-body input[type="radio"]:not(.sr-only) {
  -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0;
  border-radius: 7px; background: var(--p-fill-2); box-shadow: 0 0 0 1px rgba(245,241,232,.22) inset; cursor: pointer;
  display: inline-grid; place-content: center; transition: background-color .2s, box-shadow .2s, transform .25s var(--p-spring); }
.app-body input[type="radio"]:not(.sr-only) { border-radius: 50%; }
.app-body input[type="checkbox"]:not(.sr-only)::after { content: ""; width: 11px; height: 6px; border: solid var(--p-ink); border-width: 0 0 2.2px 2.2px;
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--p-spring); }
.app-body input[type="radio"]:not(.sr-only)::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--p-ink); transform: scale(0); transition: transform .25s var(--p-spring); }
.app-body input[type="checkbox"]:not(.sr-only):checked, .app-body input[type="radio"]:not(.sr-only):checked { background: var(--p-champ); box-shadow: none; }
.app-body input[type="checkbox"]:not(.sr-only):checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.app-body input[type="radio"]:not(.sr-only):checked::after { transform: scale(1); }
.app-body input[type="checkbox"]:not(.sr-only):active, .app-body input[type="radio"]:not(.sr-only):active { transform: scale(.9); }
.app-body input[type="checkbox"]:focus-visible, .app-body input[type="radio"]:focus-visible { outline: 2px solid var(--p-champ); outline-offset: 3px; }
.app-body .multi { display: grid; gap: 8px; }
.app-body .multi__opt { border: 0; background: var(--p-fill); border-radius: 12px; padding: 14px 16px; align-items: center; min-height: var(--p-tap); transition: background-color .2s; }
.app-body .multi__opt:has(input:checked) { background: rgba(227,201,149,.12); box-shadow: 0 0 0 1px rgba(227,201,149,.4) inset; }

/* ---------- Consentimiento ---------- */
.app-body .consent-box details { border: 0; background: var(--p-fill); border-radius: 12px; }
.app-body .check { gap: 14px; font-size: 15.5px; line-height: 1.5; }

/* ---------- Progreso y navegación de secciones ---------- */
.app-body .bar { height: 4px; background: var(--p-fill-2); }
.app-body .bar i { background: var(--p-champ); transition: width .7s var(--p-spring); }
.app-body .step-link { border-radius: 10px; font-size: 15px; transition: background-color .2s, color .2s; }
.app-body .step-link span { font-weight: 500; color: var(--p-text-3); }
.app-body .step-link.is-current { background: var(--p-fill-2); box-shadow: none; color: var(--p-text); font-weight: 600; }
.app-body .step-link.is-current span { color: var(--p-champ); }
.app-body .app-picker label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--p-text-3); }
.app-body .app-picker select { min-height: 48px; border-radius: 12px; border: 0; background-color: var(--p-fill); font-weight: 600; }

/* ---------- Acciones del cuestionario ---------- */
.app-body .app-actions { margin-top: 24px; }
.app-body .app-actions #nextBtn, .app-body .app-actions #submitBtn { min-height: var(--p-tap); padding: 14px 28px; font-size: 17px; }
.app-body .status-line { font-size: 14px; color: var(--p-text-3); }
.app-body .alert { border-radius: 12px; }

/* Móvil: dock inferior fijo con «Atrás» compacto y «Continuar» amplio */
@media (max-width: 640px) {
  .app-body .app-main { padding: 22px 16px calc(120px + env(safe-area-inset-bottom)); }
  .app-body .app-picker label { font-size: 0; gap: 0; }
  .app-body .app-picker { margin-bottom: 18px; }
  .app-body .app-title { font-size: 32px; }
  .app-body .card-form { padding: 22px 18px; border-radius: 18px; margin-left: -4px; margin-right: -4px; }
  .app-body .app-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; flex-wrap: nowrap; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 22, 40, .78); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-top: .5px solid var(--p-sep); }
  .app-body .app-actions .btn { flex: 1 1 auto; min-height: var(--p-tap); }
  .app-body .app-actions #backBtn { flex: 0 0 auto; padding: 12px 18px; }
  .app-body .app-actions #nextBtn, .app-body .app-actions #submitBtn { flex: 1 1 auto; }
  .app-body .seg { width: 100%; }
}

/* ---------- Transición entre pantallas del cuestionario ---------- */
@keyframes p-in-fwd { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes p-in-back { from { opacity: 0; transform: translate3d(-28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes p-fade { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
.app-main.is-fwd > :not(.app-actions):not(.app-picker) { animation: p-in-fwd .42s var(--p-spring) both; }
.app-main.is-back > :not(.app-actions):not(.app-picker) { animation: p-in-back .42s var(--p-spring) both; }
.app-body .q__note, .app-body .q__warn { animation: p-fade .3s var(--p-spring) both; }

/* ---------- Panel del consultor: mismos componentes ---------- */
.app-body .pill { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border: 0; background: var(--p-fill-2); color: var(--p-text-2); }
.app-body .pill--ready { background: rgba(227,201,149,.16); color: var(--p-champ); }
.app-body .org-nav { gap: 2px; padding: 3px; background: var(--p-fill); border-radius: 12px; display: inline-flex; flex-wrap: wrap; }
.app-body .org-nav button { border: 0; border-radius: 9px; min-height: 40px; color: var(--p-text-2); font-weight: 500; font-size: 14.5px; transition: background-color .25s var(--p-spring), color .2s; }
.app-body .org-nav button[aria-pressed="true"] { background: var(--p-raised); color: var(--p-text); box-shadow: 0 2px 10px -3px rgba(0,0,0,.6); }
.app-body .org-next > span { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.app-body .del-x { color: var(--p-danger); text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .85; }
.app-body .buscar input { border: 0 !important; background-color: var(--p-fill) !important; border-radius: 12px !important; min-height: 48px; }
.app-body .admin-filters select { border: 0; background-color: var(--p-fill); border-radius: 12px; min-height: 48px; }
.app-body .admin-cases .case-row { border-top: .5px solid var(--p-sep); }
.app-body .etapa__n { font-weight: 600; }
.app-body summary { -webkit-tap-highlight-color: transparent; }

/* Desplazamiento y selección */
html:has(body.app-body) { scroll-behavior: smooth; }
.app-body ::selection { background: rgba(227,201,149,.35); }

@media (prefers-reduced-motion: reduce) {
  .app-body *, .app-body *::before, .app-body *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html:has(body.app-body) { scroll-behavior: auto; }
}

/* ---------- Ajustes finos ---------- */
.app-body .card-form h2 + .q, .app-body .card-form legend + .q { border-top: 0; padding-top: 2px; }
.app-body .app-picker select { -webkit-appearance: none; appearance: none; }
.app-body .btn--sm { font-size: 14px; min-height: 40px; padding: 9px 16px; border-radius: 12px; }
.app-body .step-link { grid-template-columns: 34px 1fr; }
.app-body .step-link span { white-space: nowrap; }
.app-body .client-downloads { border: 0; background: var(--p-surface); border-radius: 16px; box-shadow: 0 0 0 .5px rgba(245,241,232,.07) inset; }
.app-body .client-downloads__head small { color: var(--p-text-3); font-weight: 500; }
.app-body .client-download { border-radius: 12px; }
@media (min-width: 641px) { .app-body .seg { min-width: 340px; } }
@media (max-width: 700px) {
  .app-body .org-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .app-body .org-nav::-webkit-scrollbar { display: none; }
  .app-body .org-nav button { flex: 1 0 auto; white-space: nowrap; }
}
.app-body .chev { display: inline-block; width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); margin: 0 2px 0 4px; }
html:has(body.app-body), body.app-body { overflow-x: clip; }
.app-body .fam-int:empty { display: none; }
/* Campos fuera del formulario principal (acceso, panel, diálogos) con el mismo estilo */
.app-body input:is([type="text"],[type="email"],[type="password"],[type="tel"],[type="number"],[type="search"],[type="date"],[type="time"],:not([type])),
.app-body main select:not(.in), .app-body main textarea, .app-body dialog textarea, .app-body dialog select {
  min-height: 48px; padding: 12px 16px; border-radius: var(--p-r-sm); border: 1px solid transparent;
  background-color: var(--p-fill); color: var(--p-text); font-family: var(--sans); font-size: 17px;
  transition: background-color .2s, border-color .2s, box-shadow .25s var(--p-spring); }
.app-body input:is([type="text"],[type="email"],[type="password"],[type="tel"],[type="number"],[type="search"],[type="date"],[type="time"],:not([type])):focus,
.app-body main select:focus, .app-body main textarea:focus, .app-body dialog textarea:focus {
  outline: none; background-color: rgba(10,22,40,.9); border-color: rgba(227,201,149,.75); box-shadow: 0 0 0 4px rgba(227,201,149,.14); }
.app-body input[type="date"], .app-body input[type="time"] { color-scheme: dark; }
.app-body :is(.case-next small, .etapas__h, .ev__tag, .falt__paso, .kicker, .intro__hint) { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.app-body .etapas__h { color: var(--p-text-2); font-size: 14px; }
.app-body .etapas, .app-body .falt, .app-body .ev { border-radius: 16px; }
.app-body .admin-filters select { width: auto; min-width: 200px; }
@media (max-width: 600px) { .app-body .admin-filters select { width: 100%; } }
.app-body .fam { border: 0; border-radius: 16px; background: var(--p-surface); box-shadow: 0 0 0 .5px rgba(245,241,232,.07) inset; }

/* ---------- Fase 2: aviso breve y documentos al pie ---------- */
.p-toast { position: fixed; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; background: rgba(21, 38, 63, .92); color: #F5F1E8; font: 600 15px/1.2 var(--sans); letter-spacing: -.01em;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 0 0 .5px rgba(245,241,232,.12) inset, 0 18px 40px -16px rgba(0,0,0,.8);
  transform: translate(-50%, 0); animation: p-toast-in .5s cubic-bezier(.32,.72,0,1) both; transition: opacity .4s, transform .5s cubic-bezier(.32,.72,0,1); }
.p-toast.is-out { opacity: 0; transform: translate(-50%, 10px) scale(.98); }
.p-toast__ok { width: 22px; height: 22px; border-radius: 50%; background: #E3C995; display: inline-grid; place-content: center; }
.p-toast__ok::after { content: ""; width: 9px; height: 5px; border: solid #0F1E36; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
@keyframes p-toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 640px) { .p-toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }
.app-body .docs-pie { margin-top: 28px; }
.app-body .docs-pie .client-downloads { background: transparent; box-shadow: 0 0 0 .5px rgba(245,241,232,.1) inset; }
/* Páginas siguientes de una sección: sin repetir la introducción en el celular */
@media (max-width: 640px) {
  .app-body .app-main.is-cont .app-sub { display: none; }
  .app-body .app-main.is-cont .app-title { font-size: 26px; margin-bottom: 18px; }
}
.app-body #formFs > .q:first-child { border-top: 0; padding-top: 2px; }
.p-toast { white-space: nowrap; max-width: calc(100vw - 32px); }

/* =========================== Fase 3: panel del consultor =========================== */
/* Lista: cada expediente es una celda tocable; las acciones secundarias van en «•••» */
.app-body .case-cell { cursor: pointer; padding: 18px 8px 18px 0; border-radius: 12px; transition: background-color .2s; }
.app-body .admin-cases .case-cell { padding: 18px 12px; margin: 0 -12px; }
@media (hover: hover) { .app-body .case-cell:hover { background: var(--p-fill); } }
.app-body .case-cell:active { background: var(--p-fill-2); }
.app-body .case-cell .case-row__btns { margin-top: 0; align-items: center; flex-wrap: nowrap; }
.app-body .case-cell__main strong { font-size: 16.5px; letter-spacing: -.01em; }
.app-body .case-cell__main small { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.app-body .case-cell__main .pill { margin-right: 0; }
.app-body .case-cell .org-next { margin-top: 8px; }
.app-body .case-menu { position: relative; }
.app-body .case-menu > summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center; border-radius: 50%;
  color: var(--p-text-2); font-size: 11px; letter-spacing: 1px; background: var(--p-fill); transition: background-color .2s; }
.app-body .case-menu > summary::-webkit-details-marker { display: none; }
.app-body .case-menu > summary:hover, .app-body .case-menu[open] > summary { background: var(--p-fill-2); color: var(--p-text); }
.app-body .case-menu__list { position: absolute; right: 0; top: 46px; z-index: 25; min-width: 240px; padding: 6px; border-radius: 14px;
  background: rgba(21, 38, 63, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 .5px rgba(245,241,232,.14) inset, 0 24px 48px -16px rgba(0,0,0,.85); transform-origin: top right; animation: p-pop .22s var(--p-spring) both; }
.app-body .case-menu__list button { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-radius: 10px; background: transparent;
  color: var(--p-text); font: 500 15px/1.2 var(--sans); cursor: pointer; }
.app-body .case-menu__list button:hover { background: var(--p-fill-2); }
.app-body .case-menu__list .case-menu__danger { color: var(--p-danger); }
@keyframes p-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .app-body .admin-cases .case-cell { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .app-body .case-cell__open { display: none; }
  .app-body .case-cell .case-row__btns { justify-content: flex-end; }
  .app-body .case-cell::after { content: ""; position: absolute; right: 64px; top: 50%; width: 8px; height: 8px; border: solid var(--p-text-3); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); display: none; }
}

/* Expediente: pestañas */
.app-body .case-tabs { display: flex; gap: 2px; padding: 3px; margin: 8px 0 22px; background: var(--p-fill); border-radius: 12px; position: sticky; top: 70px; z-index: 15;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.app-body .case-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--p-text-2); font: 500 15px/1 var(--sans); letter-spacing: -.01em; cursor: pointer; transition: background-color .25s var(--p-spring), color .2s; }
.app-body .case-tabs button[aria-selected="true"] { background: var(--p-raised); color: var(--p-text); font-weight: 600; box-shadow: 0 2px 10px -3px rgba(0,0,0,.6); }
.app-body .case-tabs__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(227,201,149,.18); color: var(--p-champ); font: 600 12px/20px var(--sans); }
.app-body .case-tabs__ico { display: none; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.app-body .case-tabs__ico--resumen { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='4'/%3E%3Cpath d='M8 9h8M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.app-body .case-tabs__ico--consul { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.2 5.3L20 9l-4.4 3.8L17 18.5 12 15.6 7 18.5l1.4-5.7L4 9l5.8-.7z'/%3E%3C/svg%3E"); }
.app-body .case-tabs__ico--respuestas { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='M4 6l1 1 2-2M4 12l1 1 2-2M4 18l1 1 2-2'/%3E%3C/svg%3E"); }
.app-body .case-tabs__ico--documentos { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E"); }
.app-body .case-pane.is-in { animation: p-fade .32s var(--p-spring) both; }

/* Lista: iconos de la barra inferior (móvil) */
.app-body .org-nav button::before { content: none; }

@media (max-width: 700px) {
  .app-body .admin-wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  /* Barra inferior estilo pestañas: lista (Expedientes/Hoy/Agenda/Archivo) y expediente (Resumen/Cónsul/Respuestas/Documentos) */
  .app-body .org-nav, .app-body .case-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; margin: 0; width: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-radius: 0; overflow: visible;
    background: rgba(10, 22, 40, .82); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-top: .5px solid var(--p-sep); }
  .app-body .org-nav button, .app-body .case-tabs button { position: relative; flex-direction: column; gap: 3px; min-height: 54px; padding: 6px 2px; border-radius: 10px;
    background: transparent !important; box-shadow: none !important; color: var(--p-text-3); font: 500 11px/1.1 var(--sans); letter-spacing: 0; white-space: normal; text-align: center; }
  .app-body .org-nav button[aria-pressed="true"], .app-body .case-tabs button[aria-selected="true"] { color: var(--p-champ); font-weight: 600; }
  .app-body .case-tabs__ico { display: block; }
  .app-body .case-tabs__n { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; padding: 0 5px; background: var(--p-champ); color: var(--p-ink); }
  .app-body .org-nav button::before { content: ""; display: block; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
  .app-body .org-nav button[data-org-view="expedientes"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3C/svg%3E"); }
  .app-body .org-nav button[data-org-view="hoy"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M8.5 12.5l2.3 2.3 4.7-5'/%3E%3C/svg%3E"); }
  .app-body .org-nav button[data-org-view="agenda"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
  .app-body .org-nav button[data-org-view="archivo"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='5' rx='1.5'/%3E%3Cpath d='M5 9v9a2 2 0 002 2h10a2 2 0 002-2V9M10 13h4'/%3E%3C/svg%3E"); }
  .app-body .org-nav button span, .app-body .org-nav button small { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; background: var(--p-fill-2); color: var(--p-text-2); }
}
.app-body .case-work-header { grid-template-columns: 1fr; margin-bottom: 8px; }
.app-body .case-tools--pane { display: grid; gap: 8px; margin: 18px 0 6px; padding-top: 18px; border-top: .5px solid var(--p-sep); }
.app-body .case-tabs { margin-top: 4px; }
@media (min-width: 701px) { .app-body .case-tabs { max-width: 620px; } }
/* Más acciones en el celular: hoja inferior, como en iOS */
@media (max-width: 700px) {
  .app-body .case-menu[open]::before { content: ""; position: fixed; inset: 0; z-index: 48; background: rgba(4, 10, 20, .55); animation: p-fade .2s both; }
  .app-body .case-menu__list { position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; min-width: 0;
    padding: 8px; border-radius: 18px; transform-origin: bottom center; animation: p-sheet .32s var(--p-spring) both; }
  .app-body .case-menu__list button { padding: 16px; font-size: 17px; text-align: center; }
}
@keyframes p-sheet { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.app-body input[type="file"] { font: 15px var(--sans); color: var(--p-text-2); max-width: 100%; }
.app-body input[type="file"]::file-selector-button { margin-right: 12px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--p-fill-2); color: var(--p-text); font: 600 15px var(--sans); cursor: pointer; }
/* Faltantes: misma superficie oscura que el resto del panel */
.app-body .falt { border: 0; background: var(--p-raised); border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 0 .5px rgba(245,241,232,.08) inset; }
.app-body .falt, .app-body .falt summary, .app-body .falt__item { color: var(--p-text); }
.app-body .falt summary small, .app-body .falt__paso { color: var(--p-text-3); }
.app-body .falt__n { background: var(--p-champ); color: var(--p-ink); font-weight: 600; }
.app-body .falt__item { border-bottom: .5px solid var(--p-sep); padding: 10px 0; }
.app-body .falt .link-btn { color: var(--p-champ); }
.app-body .falt__tipo--vacio { background: rgba(255,138,122,.14); color: var(--p-danger); }
.app-body .falt__tipo--duda { background: rgba(227,201,149,.14); color: var(--p-champ); }
.app-body details.falt__grupo > summary b { background: var(--p-fill-2); color: var(--p-text-2); }

/* Trámite anterior y subida de documentos del cliente */
.app-body .hist { margin: 0 0 16px; padding: 18px; border-radius: 16px; background: var(--p-surface); box-shadow: 0 0 0 .5px rgba(245,241,232,.07) inset; }
.app-body .hist__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-body .hist__opts button { min-height: 52px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--p-fill); color: var(--p-text); font: 500 15px/1.25 var(--sans); text-align: left; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, transform .3s var(--p-spring); }
.app-body .hist__opts button:active { transform: scale(.97); }
.app-body .hist__opts button[aria-checked="true"] { background: rgba(227,201,149,.14); color: var(--p-champ); font-weight: 600; box-shadow: 0 0 0 1.5px var(--p-champ) inset; }
@media (max-width: 420px) { .app-body .hist__opts { grid-template-columns: 1fr; } }
.app-body .subida__item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: .5px solid var(--p-sep); }
.app-body .subida__item strong { display: block; font-size: 15.5px; }
.app-body .subida__item small { display: block; color: var(--p-text-3); font-size: 13.5px; margin-top: 2px; }
.app-body .subida__file { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 14px; color: var(--p-text-2); }
.app-body .subida__file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.app-body .subida__file span::before { content: "✓ "; color: var(--p-champ); }
.app-body .subida__btn { flex: none; cursor: pointer; }
.app-body .subida .status-line:empty { display: none; }
.app-body .q__hint--auto { color: var(--p-champ); opacity: .85; margin-top: 8px; }
.app-body .pill--alerta { background: rgba(255,138,122,.14); color: var(--p-danger); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-body .q__warn { color: var(--p-danger); font-size: 14px; line-height: 1.45; margin-top: 8px; }

/* Entrada al cuestionario: «Comenzar ahora / Ya lo empecé» como control segmentado */
.app-body .access-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; margin-bottom: 24px; background: var(--p-fill); border-radius: 14px; flex-wrap: nowrap; }
.app-body .access-tabs .btn { min-height: 46px; padding: 10px 8px; border-radius: 11px; font-size: 15px; box-shadow: none; text-align: center; justify-content: center; }
.app-body .access-tabs .btn--outline { background: transparent; color: var(--p-text-2); }
.app-body .access-tabs .btn--gold { background: var(--p-champ); color: var(--p-ink); box-shadow: 0 2px 10px -3px rgba(0,0,0,.5); }
.app-body .start form .btn, .app-body #emailResume .btn { width: 100%; justify-content: center; text-align: center; }

/* =========================== Espacio del cliente tras entregar =========================== */
.app-body .espacio { max-width: 1040px; margin: 0 auto; padding: 48px var(--gutter) 64px; }
.app-body .espacio__hero { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.app-body .espacio__hero .app-title { font-size: clamp(32px, 5vw, 44px); margin-top: 18px; }
.app-body .espacio__hero .app-sub { margin: 12px auto 0; }
.app-body .espacio__ok { display: inline-grid; place-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(227,201,149,.14);
  box-shadow: 0 0 0 1px rgba(227,201,149,.35) inset; animation: p-pop .6s var(--p-spring) both; }
.app-body .espacio__ok::after { content: ""; width: 22px; height: 12px; border: solid var(--p-champ); border-width: 0 0 3px 3px; transform: translateY(-3px) rotate(-45deg); }
.app-body .espacio__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.app-body .espacio__main, .app-body .espacio__side { display: grid; gap: 20px; min-width: 0; }
.app-body .esp-card { padding: 24px; border-radius: 20px; background: var(--p-surface); box-shadow: 0 0 0 .5px rgba(245,241,232,.07) inset, 0 30px 60px -40px rgba(0,0,0,.8); }
.app-body .esp-card h2 { font-size: 19px; letter-spacing: -.015em; margin: 0 0 16px; }
.app-body .esp-card p { color: var(--p-text-2); font-size: 15px; line-height: 1.55; margin: 0; }
.app-body .esp-card--quiet { background: transparent; box-shadow: 0 0 0 .5px rgba(245,241,232,.1) inset; }
.app-body .esp-pasos { list-style: none; margin: 0; padding: 0; }
.app-body .esp-pasos li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 0 0 22px; }
.app-body .esp-pasos li:last-child { padding-bottom: 0; }
.app-body .esp-pasos li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--p-fill-2); }
.app-body .esp-pasos li.is-ok:not(:last-child)::before { background: rgba(227,201,149,.45); }
.app-body .esp-pasos__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-content: center; box-shadow: 0 0 0 2px var(--p-fill-2) inset; }
.app-body .esp-pasos li.is-ok .esp-pasos__dot { background: var(--p-champ); box-shadow: none; }
.app-body .esp-pasos li.is-ok .esp-pasos__dot::after { content: ""; width: 10px; height: 5px; border: solid var(--p-ink); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.app-body .esp-pasos li.is-now .esp-pasos__dot { box-shadow: 0 0 0 2px var(--p-champ) inset; }
.app-body .esp-pasos li.is-now .esp-pasos__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--p-champ); animation: p-latido 2s ease-in-out infinite; }
@keyframes p-latido { 50% { transform: scale(.6); opacity: .6; } }
.app-body .esp-pasos strong { display: block; font-size: 16px; letter-spacing: -.01em; margin-top: 3px; }
.app-body .esp-pasos small { display: block; color: var(--p-text-3); font-size: 14px; line-height: 1.45; margin-top: 3px; }
.app-body .esp-pasos li:not(.is-ok):not(.is-now) strong { color: var(--p-text-2); }
.app-body .esp-docs { list-style: none; margin: 0; padding: 0; }
.app-body .esp-doc { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-top: .5px solid var(--p-sep); font-size: 15.5px; }
.app-body .esp-doc:first-child { border-top: 0; }
.app-body .esp-doc small { color: var(--p-text-3); font-size: 13.5px; }
.app-body .esp-doc.is-pend span { color: var(--p-text-2); }
.app-body .esp-doc__go { border: 0; background: var(--p-fill-2); color: var(--p-champ); font: 600 14px var(--sans); padding: 8px 14px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.app-body .espacio .study { margin: 0; padding: 24px; border: 0; border-radius: 20px; background: var(--p-surface); box-shadow: 0 0 0 .5px rgba(227,201,149,.25) inset; }
.app-body .espacio__firma { text-align: center; margin: 44px 0 0; font-family: var(--accent); font-size: 22px; color: var(--p-champ); opacity: .9; }
.app-body .espacio .app-foot { text-align: center; }
@media (max-width: 760px) {
  .app-body .espacio { padding-top: 32px; }
  .app-body .espacio__grid { grid-template-columns: 1fr; }
  .app-body .esp-card { padding: 20px; border-radius: 18px; }
}

/* Hoja inferior: datos faltantes */
.p-sheet { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; justify-items: center; background: rgba(4, 10, 20, .55); animation: p-fade .2s both; }
.p-sheet.is-out { opacity: 0; transition: opacity .2s; }
.p-sheet__panel { width: min(520px, 100%); margin: 0 0 max(12px, env(safe-area-inset-bottom)); padding: 24px 20px 18px; border-radius: 22px; background: #15263F;
  box-shadow: 0 0 0 .5px rgba(245,241,232,.14) inset, 0 30px 60px -20px rgba(0,0,0,.9); animation: p-sheet .38s cubic-bezier(.32,.72,0,1) both; }
@media (max-width: 560px) { .p-sheet__panel { width: calc(100% - 20px); } }
@media (min-width: 561px) { .p-sheet { align-items: center; } }
.p-sheet__panel h2 { font: 600 20px/1.25 var(--display); letter-spacing: -.02em; margin: 0 0 12px; color: #F5F1E8; }
.p-sheet__panel ul { margin: 0 0 12px; padding-left: 20px; color: #E3C995; font-size: 15.5px; line-height: 1.6; }
.p-sheet__panel p { color: #A7B2C4; font-size: 14.5px; line-height: 1.5; margin: 0 0 18px; }
.p-sheet__panel .btn { width: 100%; margin-top: 8px; }
.app-body .hosp-nota { margin-top: 6px; padding: 16px 18px; border-radius: 14px; background: rgba(227,201,149,.08); box-shadow: 0 0 0 .5px rgba(227,201,149,.3) inset; }
.app-body .hosp-nota strong { color: var(--p-champ); font-size: 15.5px; }
.app-body .hosp-nota p { margin: 4px 0 0; color: var(--p-text-2); font-size: 14.5px; line-height: 1.5; }
.app-body .ext-ok { margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: rgba(227,201,149,.1); color: var(--p-champ); font-size: 14.5px; font-weight: 600; }
.app-body .ext-ok::before { content: "✓ "; }
.app-body .ext-falt { margin: 14px 0; }
.app-body .esp-doc { padding: 10px 0; }
.app-body .esp-doc > span { display: grid; gap: 2px; }
.app-body .esp-doc__nota { color: var(--p-text-3); font-size: 13px; line-height: 1.4; }
.app-body .esp-doc.is-pend > small { flex: none; }
.p-toast--error .p-toast__ok { background: #FF8A7A; }
.p-toast--error .p-toast__ok::after { content: "!"; width: auto; height: auto; border: 0; transform: none; color: #0F1E36; font: 700 14px/1 var(--sans); }
.p-toast--error { white-space: normal; max-width: min(460px, calc(100vw - 32px)); }
.app-body .cita-cliente__form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.app-body .cita-cliente__form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--p-text-2); }
.app-body .cita-cliente__lugar { grid-column: 1 / -1; }

/* =========================== Espacio de estudio =========================== */
.app-body .study { display: grid; gap: 18px; }
.app-body .study-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.app-body .study-head h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.02em; }
.app-body .study-count { margin: 0; color: var(--p-text-3); font-size: 14px; white-space: nowrap; }
.app-body .study-count b { color: var(--p-champ); font-size: 20px; }
.app-body .study-dots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-body .study-dots button { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-content: center; cursor: pointer;
  background: var(--p-fill); color: var(--p-text-2); font: 600 15px var(--sans); box-shadow: 0 0 0 1.5px transparent inset; transition: background-color .25s, box-shadow .25s, transform .3s var(--p-spring); }
.app-body .study-dots button:active { transform: scale(.9); }
.app-body .study-dots button.is-current { box-shadow: 0 0 0 2px var(--p-champ) inset; color: var(--p-text); }
.app-body .study-dots button.is-read { background: var(--p-champ); }
.app-body .study-dots button.is-read span::after { content: ""; display: block; width: 12px; height: 6px; border: solid var(--p-ink); border-width: 0 0 2.2px 2.2px; transform: translateY(-2px) rotate(-45deg); }
.app-body .study-dots__exam { width: auto !important; padding: 0 16px; border-radius: 999px !important; font-size: 14px !important; }
.app-body .study-card { border-radius: 18px; overflow: hidden; }
.app-body .study-card__n { margin: 0 0 4px; color: var(--p-champ); font-size: 14px; font-weight: 500; }
.app-body .study-card > h3 { margin: 0 0 14px; font: 600 24px/1.2 var(--display); letter-spacing: -.02em; }
.app-body .study-paper { border-radius: 16px; background: #FBF9F4; color: #0A1628; }
.app-body .study-paper .guia { padding: 22px 20px; }
.app-body .study-paper .guia h1, .app-body .study-paper .gu-pie, .app-body .study-paper .gu-meta { display: none; }
.app-body .study-paper .guia p, .app-body .study-paper .guia li { font-size: 17px; line-height: 1.7; }
.app-body .study-paper .guia h3 { font-size: 18px; margin: 18px 0 8px; }
.app-body .study-paper .guia blockquote { font-size: 17.5px; line-height: 1.7; }
.app-body .study-paper canvas { display: block; max-width: 100%; height: auto; margin: auto; }
.app-body .study-nav { display: flex; justify-content: space-between; gap: 10px; }
.app-body .study-nav .btn--gold { flex: 1; }
.app-body .study-nav--2 .btn { flex: 1; }
.app-body .study-nav--col { flex-direction: column; }
.app-body .study-card--exam, .app-body .study-card--res { padding: 24px 20px; background: var(--p-raised); }
.app-body .study-exam__bar { height: 4px; border-radius: 2px; background: var(--p-fill-2); margin-bottom: 18px; overflow: hidden; }
.app-body .study-exam__bar i { display: block; height: 100%; background: var(--p-champ); transition: width .5s var(--p-spring); }
.app-body .study-exam__q { margin: 6px 0 14px; font: 600 26px/1.3 var(--display); letter-spacing: -.02em; }
.app-body .study-exam__hint { color: var(--p-text-2); font-size: 16px; line-height: 1.55; margin: 0 0 18px; }
.app-body .study-exam__show { width: 100%; }
.app-body .study-exam__r { margin: 6px 0 16px; padding: 16px 18px; border-radius: 14px; background: #FBF9F4; color: #0A1628; animation: p-fade .3s both; }
.app-body .study-exam__r p { margin: 0 0 8px; font-size: 17px; line-height: 1.6; color: #0A1628; }
.app-body .study-exam__lbl { margin: 0 0 8px !important; font-size: 13px !important; font-weight: 600; color: #72572C !important; }
.app-body .study-card--res .study-exam__lbl { color: var(--p-champ) !important; }
.app-body .study-exam__ask { margin: 0 0 10px; color: var(--p-text-2); font-size: 15px; text-align: center; }
.app-body .study-score { --p: 0; width: 132px; height: 132px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--p-raised) 82%, transparent 83% 100%), conic-gradient(var(--p-champ) calc(var(--p) * 1%), var(--p-fill-2) 0); }
.app-body .study-score b { font: 700 32px/1 var(--display); color: var(--p-text); }
.app-body .study-score small { color: var(--p-text-3); font-size: 13px; margin-top: 4px; }
.app-body .study-card--res h3 { text-align: center; margin: 0 0 6px; font: 600 22px/1.3 var(--display); }
.app-body .study-card--res > p { text-align: center; color: var(--p-text-2); font-size: 15.5px; line-height: 1.55; margin: 0 0 16px; }
.app-body .study-repasar { margin: 0; padding-left: 20px; color: var(--p-text); font-size: 15.5px; line-height: 1.6; }
.app-body .study-note { font-size: 12.5px !important; color: var(--p-text-3) !important; margin: 0 !important; }
.app-body .study-error { color: var(--p-danger); font-size: 14px; }
.app-body .study-card { overflow: visible; }
.app-body .study-paper .guia p, .app-body .study-paper .guia li, .app-body .study-paper .guia blockquote { text-align: left; hyphens: none; }
.app-body .correo-cliente__f { display: grid; gap: 6px; font-size: 13.5px; color: var(--p-text-2); margin-top: 10px; }
/* Registro de entrevista consular (panel y espacio del cliente) */
.entv { display: grid; gap: 12px; }
.entv__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.entv__grid label, .entv > label { display: grid; gap: 4px; font-size: 13.5px; }
.entv__h { margin: 4px 0 0; }
.entv__lista, .entv__real { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.entv__lista li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.entv__lista small, .entv__real small { display: block; opacity: .75; }
.entv__nueva { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.entv__item { padding: 10px 0; border-bottom: 1px solid rgba(127, 127, 127, .25); }
.entv__item p { margin: 0 0 6px; }
.entv__cal { font-size: 13.5px; }
@media (max-width: 640px) { .entv__nueva { grid-template-columns: 1fr; } }
.app-body .study-paper .guia .gu-q { font-size: 18px; margin: 20px 0 6px; }
