/* evoSensui · estética: índigo (aizome), olas seigaiha, papel aguamarina y un sello bermellón. */
:root {
  --kon: #16264a;
  --kon-2: #22365f;
  --ai: #2d5a8c;
  --asagi: #3f8f9f;
  --asagi-soft: #d7e9ec;
  --sea: #e9f1f1;
  --paper: #fbfdfc;
  --ink: #15233d;
  --ink-2: #4d5d74;
  --line: #d3e0e2;
  --shu: #c9402a;
  --danger: #b4321f;
  --ok: #2f7d62;
  --warn: #9a5b12;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", Roboto, sans-serif;
  --tabs-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sea: #0d1830;
    --paper: #142341;
    --ink: #e7eef3;
    --ink-2: #a7b6c8;
    --line: #26385c;
    --asagi: #6cb8c6;
    --asagi-soft: #1e3b52;
    --danger: #ff8a75;
    --ok: #7fd0ae;
    --warn: #f0b46a;
  }
}

body.evo-app-evosensui { background: var(--sea); color: var(--ink); font-family: var(--sans); }
.esn { min-height: 100vh; min-height: 100dvh; font-family: var(--sans); color: var(--ink); line-height: 1.5; font-size: 16px; }
.esn *, .esn *::before, .esn *::after { box-sizing: border-box; }
.esn a { color: inherit; }
.esn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.esn :focus-visible { outline: 3px solid var(--asagi); outline-offset: 2px; border-radius: 6px; }

/* ---------- Banda superior con olas ---------- */
.esn-top {
  position: sticky; top: 0; z-index: 20;
  background-color: var(--kon);
  background-image: radial-gradient(circle at 50% 100%, transparent 9px, rgba(126, 172, 210, .22) 10px, transparent 11px, transparent 15px, rgba(126, 172, 210, .16) 16px, transparent 17px);
  background-size: 34px 17px;
  color: #f2f6f8;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
}
.esn-top-in { max-width: 680px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.esn-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.esn-brand .esn-logo { width: 38px; height: 38px; stroke: none; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.esn-brand-txt { display: flex; align-items: baseline; gap: 8px; }
.esn-name { font-family: var(--serif); font-size: 21px; letter-spacing: .01em; }
.esn-name b { font-weight: 700; }
.esn-kanji { font-family: var(--serif); font-size: 13px; opacity: .7; }
.esn-lang { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); color: inherit; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 6px 12px; font: 600 13px/1 var(--sans); cursor: pointer; }
.esn-lang svg { width: 17px; height: 17px; }

/* ---------- Contenido ---------- */
.esn-main { max-width: 680px; margin: 0 auto; padding: 18px 16px calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); outline: none; }
.esn-head { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; }
.esn-head h1 { margin: 0; font-family: var(--serif); font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -.005em; }
.esn-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.esn-back { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -6px; border-radius: 50%; text-decoration: none; color: var(--ink); }
.esn-back:hover { background: var(--asagi-soft); }
.esn-muted { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 12px; }
.esn-center { text-align: center; }
.esn-warn { color: var(--warn) !important; }
.esn-empty { padding: 26px 18px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); text-align: center; color: var(--ink-2); margin: 0 0 16px; }
.esn-loading { display: grid; place-items: center; padding: 80px 0; }
.esn-loading .esn-logo { width: 64px; height: 64px; border-radius: 18px; animation: esn-breathe 1.6s ease-in-out infinite; }
@keyframes esn-breathe { 50% { transform: translateY(-4px); opacity: .75; } }
.esn-foot { text-align: center; color: var(--ink-2); font-size: 12.5px; margin: 26px 0 0; }

.esn-hint { display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin: 0 0 16px; border-radius: var(--r-md); background: var(--asagi-soft); text-decoration: none; }
.esn-hint-t { flex: 1; min-width: 0; }
.esn-hint b { display: block; font-size: 15px; }
.esn-hint-t span { display: block; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Tarjetas de perfil ---------- */
.esn-cards { display: grid; gap: 12px; margin: 0 0 18px; }
.esn-pcard { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.esn-pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--kon); color: #f2f6f8; }
.esn-pcard-name { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.esn-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.esn-pcard-body { display: flex; gap: 16px; align-items: center; padding: 14px 16px 16px; }
.esn-pcard-kg { min-width: 92px; }
.esn-pcard-kg small { display: block; font-size: 12.5px; color: var(--ink-2); }
.esn-pcard-kg b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--ai); white-space: nowrap; }
.esn-pcard ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); display: grid; gap: 2px; min-width: 0; }
.esn-pcard li { overflow-wrap: anywhere; line-height: 1.35; }
.esn-pcard:hover { border-color: var(--asagi); }

/* ---------- Detalle de perfil ---------- */
.esn-hero { background: var(--kon); color: #eef4f7; border-radius: var(--r-lg); padding: 20px; margin: 0 0 14px; position: relative; overflow: hidden; }
.esn-hero::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 120px; opacity: .22; background-image: radial-gradient(circle at 50% 100%, transparent 9px, #9cc8e0 10px, transparent 11px, transparent 15px, #9cc8e0 16px, transparent 17px); background-size: 34px 17px; }
.esn-hero-kg small { font-size: 13.5px; opacity: .8; }
.esn-hero-kg b { display: block; font-family: var(--serif); font-size: 54px; line-height: 1.05; font-weight: 700; }
.esn-hero-kg span { display: block; font-size: 14px; opacity: .85; margin-top: 2px; }
.esn-hero-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 16px 0 0; position: relative; z-index: 1; }
.esn-hero-dl dt { font-size: 12.5px; opacity: .72; }
.esn-hero-dl dd { margin: 0; font-size: 14.5px; font-weight: 600; }
.esn-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 14px; }
.esn-panel h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 18px; }
.esn-panel .esn-muted { margin-top: 0; }
.esn-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.esn-table th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 13px; padding: 6px 0; border-bottom: 1.5px solid var(--ink); }
.esn-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.esn-table tr:last-child td { border-bottom: 0; }
.esn-table td:last-child, .esn-table th:last-child { text-align: right; }
.esn-table-c td, .esn-table-c th { text-align: center !important; }
.esn-table-c th:first-child, .esn-table-c tbody th { text-align: left !important; }
.esn-table-c tbody th { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 14.5px; }
.esn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.esn-chip { padding: 6px 12px; border-radius: 999px; background: var(--asagi-soft); font-size: 14px; }
.esn-sugg-b { padding: 14px 0 4px; border-top: 1px solid var(--line, rgba(22,38,74,.12)); }
.esn-sugg-b:first-of-type { border-top: 0; }
.esn-sugg-b h3 { margin: 0 0 6px; font-size: 15px; }
.esn-sugg-b.is-main h3 { color: var(--ai, #16264a); }
.esn-sugg-b ul { list-style: none; margin: 0 0 6px; padding: 0; }
.esn-sugg-b li { padding: 6px 0; }
.esn-sugg-b li b { display: block; font-size: 17px; }
.esn-sugg-b li small, .esn-sugg-b small { display: block; font-size: 13px; opacity: .75; }
.esn-sugg-v { margin: 0 0 2px; font-size: 22px; font-weight: 600; }
.esn-sugg-b:not(.is-main) .esn-sugg-v { opacity: .8; }
.esn-note { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--asagi-soft); font-size: 13px; line-height: 1.45; }
.esn-chip:has(small) { border-radius: 14px; }
.esn-chip small { display: block; font-size: 12px; opacity: .75; margin-top: 1px; }

/* ---------- Diario ---------- */
.esn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 0 0 16px; }
.esn-stat { background: var(--paper); padding: 12px 8px; text-align: center; min-width: 0; }
.esn-stat b { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esn-stat span { font-size: 12px; color: var(--ink-2); }
.esn-year { font-family: var(--serif); font-size: 15px; color: var(--ink-2); font-weight: 400; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.esn-log { display: grid; gap: 8px; }
.esn-dive { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; }
.esn-dive:hover { border-color: var(--asagi); }
.esn-dive > svg { color: var(--ink-2); width: 18px; height: 18px; }
.esn-dive-n { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 4px; border-radius: 50%; background: var(--asagi-soft); font-family: var(--serif); font-weight: 700; font-size: 15px; }
.esn-dive-main { flex: 1; min-width: 0; }
.esn-dive-main b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esn-dive-main small { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; }
.esn-dive-main small svg { width: 15px; height: 15px; }
.esn-dive-chips { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ai); }
.esn-dive-chips .is-profile { font-weight: 500; color: var(--ink-2); }

/* ---------- Formularios ---------- */
.esn-form fieldset { border: 0; margin: 0 0 18px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-wrap: wrap; gap: 12px 12px; }
.esn-form fieldset[hidden] { display: none; }
.esn-form legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; font-family: var(--serif); font-size: 17px; font-weight: 700; }
.esn-form legend + * { clear: both; }
.esn-form .esn-muted { width: 100%; margin: 0; }
.esn-field { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.esn-field.is-half { width: calc(50% - 6px); }
.esn-field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.esn-field small { font-size: 12.5px; color: var(--ink-2); }
.esn input[type=text], .esn input[type=number], .esn input[type=date], .esn input[type=time], .esn select, .esn textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: 16px/1.3 var(--sans); color: var(--ink);
  background: var(--sea); border: 1.5px solid var(--line); border-radius: var(--r-sm); appearance: none; -webkit-appearance: none;
}
.esn select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.esn textarea { min-height: 96px; resize: vertical; }
.esn input:focus, .esn select:focus, .esn textarea:focus { border-color: var(--asagi); outline: none; box-shadow: 0 0 0 3px var(--asagi-soft); }
.esn-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; min-height: 40px; }
.esn-check input { width: 22px; height: 22px; accent-color: var(--ai); flex: none; }
.esn-checks { display: flex; flex-wrap: wrap; gap: 2px 18px; width: 100%; }
.esn-rep { display: grid; gap: 8px; width: 100%; }
.esn-rep-row { display: flex; gap: 6px; align-items: center; }
.esn-rep-row input { min-width: 0; flex: 1 1 0; }
.esn-rep-row input.is-wide { flex: 2.2 1 0; }
.esn-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink-2); border-radius: 50%; cursor: pointer; flex: none; }
.esn-icon-btn:hover { background: var(--asagi-soft); color: var(--danger); }
.esn-icon-btn svg { width: 19px; height: 19px; }

.esn-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.esn-seg-opt { position: relative; }
.esn-seg-opt input { position: absolute; opacity: 0; inset: 0; }
.esn-seg-opt span { display: block; text-align: center; padding: 9px 6px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.esn-seg-opt input:checked + span { background: var(--kon); color: #f2f6f8; }
.esn-seg-opt input:focus-visible + span { outline: 3px solid var(--asagi); }

/* ---------- Botones ---------- */
.esn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--ai); color: #fff !important; font: 600 15.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.esn-btn:hover { background: var(--kon-2); }
.esn-btn svg { width: 19px; height: 19px; }
.esn-btn[disabled], .esn-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.esn-btn.is-busy { opacity: .7; cursor: progress; }
.esn-btn-wide { width: 100%; margin: 0 0 14px; }
.esn-btn-soft { background: var(--asagi-soft); color: var(--ink) !important; }
.esn-btn-soft:hover { background: var(--line); }
.esn-btn-ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.esn-btn-ghost:hover { background: var(--paper); }
.esn-btn-danger { background: var(--danger); }
.esn-btn-danger-txt { color: var(--danger) !important; box-shadow: none; }
.esn-btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.esn-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 6px 0 16px; flex-wrap: wrap; }
.esn-actions-stack { flex-direction: column; align-items: stretch; }

/* ---------- Yo ---------- */
.esn-me { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.esn-me-av .esn-logo { width: 56px; height: 56px; border-radius: 16px; stroke: none; }
.esn-me b { display: block; font-family: var(--serif); font-size: 20px; }
.esn-me span { color: var(--ink-2); font-size: 14px; }
.esn-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); margin: 0 0 14px; overflow: hidden; }
.esn-list-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px; border: 0; background: none; text-align: left; text-decoration: none; font: inherit; color: inherit; cursor: pointer; border-bottom: 1px solid var(--line); }
.esn-list-a:last-child { border-bottom: 0; }
.esn-list-a:hover { background: var(--sea); }
.esn-list-a b { display: block; font-size: 15.5px; }
.esn-list-a small { color: var(--ink-2); font-size: 13.5px; }
.esn-list-a svg { color: var(--ink-2); width: 18px; height: 18px; }

/* ---------- Pestañas inferiores ---------- */
.esn-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 680px; margin: 0 auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
@media (min-width: 700px) { .esn-tabs { bottom: 14px; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 30px rgba(22, 38, 74, .14); } }
.esn-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 52px; text-decoration: none; color: var(--ink-2); font-size: 12px; font-weight: 600; border-radius: 14px; }
.esn-tab.is-on { color: var(--kon); background: var(--asagi-soft); }
@media (prefers-color-scheme: dark) { .esn-tab.is-on { color: #fff; } }

/* ---------- Avisos y diálogos ---------- */
.esn-toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 22px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 70; max-width: min(92vw, 460px); padding: 11px 18px; border-radius: 14px; background: var(--kon); color: #fff; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.esn-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.esn-toast.is-bad { background: var(--danger); }
.esn-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; padding: 16px; background: rgba(10, 20, 40, .48); }
.esn-modal[hidden] { display: none; }
@media (min-width: 560px) { .esn-modal { place-items: center; } }
.esn-modal-card { width: 100%; max-width: 460px; max-height: 88vh; overflow: auto; padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); border-radius: 22px; }
.esn-modal-card h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 21px; }
.esn-ask { font-size: 16px; margin: 0 0 16px; }
.esn-langs { display: grid; gap: 8px; margin: 0 0 12px; }
.esn-lang-opt { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--sea); color: var(--ink); font: 16px var(--sans); cursor: pointer; }
.esn-lang-opt.is-on { border-color: var(--ai); box-shadow: inset 0 0 0 1px var(--ai); }
.esn-lang-opt span { color: var(--ink-2); font-size: 13px; }
.esn-noscript { padding: 30px; text-align: center; }

@media (max-width: 540px) { .esn-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) {
  .esn-field.is-half { width: 100%; }
  .esn-pcard-kg b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .esn *, .esn-toast { transition: none !important; animation: none !important; } }

/* Modo autónomo (sin evoCore): la app vive dentro de una página del tema. */
.esn-standalone .esn-top { position: relative; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.esn-standalone .esn { background: var(--sea); border-radius: var(--r-lg); }
.esn-standalone .esn-tabs { position: sticky; }

/* ======================================================================
   IMPRESIÓN — A4 vertical. Ficha: dos caras de 210 × 148 mm para doblar.
   ====================================================================== */
.esn-print-root { display: none; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { background: #fff !important; }
  body.esn-printing { padding: 0 !important; margin: 0 !important; }
  body.esn-printing > *:not(.esn-print-root) { display: none !important; }
  body.esn-printing .esn-print-root { display: block; }
}
.esn-print-root, .esn-print-root * { box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.esn-print-root { font-family: var(--sans); color: #15233d; font-size: 10.5pt; line-height: 1.35; }
.pr-sheet { width: 210mm; height: 296mm; overflow: hidden; break-after: page; page-break-after: always; position: relative; }
.pr-sheet:last-child { break-after: auto; page-break-after: auto; }
.pr-face { width: 210mm; height: 148mm; overflow: hidden; position: relative; background: #f1f6f6; }
.pr-fold { position: absolute; left: 0; right: 0; top: 148mm; border-top: .3mm dashed #b8c9cd; z-index: 2; }
.pr-waves { position: absolute; inset: 0; width: 100%; height: 100%; color: #ffffff; opacity: .13; pointer-events: none; }

/* Cara 1 */
.pr-face1 { display: grid; grid-template-columns: 62mm 1fr; }
.pr-aside { position: relative; overflow: hidden; background: #16264a; color: #eef4f7; }
.pr-aside .pr-waves { opacity: .16; }
.pr-aside-in { position: relative; height: 100%; display: flex; flex-direction: column; padding: 9mm 7mm 6mm; }
.pr-eyebrow { font-size: 8pt; color: #9fc6db; letter-spacing: .02em; }
.pr-eyebrow.is-dark { color: #3f8f9f; }
.pr-title { margin: 3mm 0 0; font-family: var(--serif); font-size: 22pt; line-height: 1.05; font-weight: 700; }
.pr-rule { width: 12mm; height: 1mm; background: #c9402a; border-radius: 1mm; margin: 4mm 0 3.5mm; }
.pr-name { font-family: var(--serif); font-size: 13pt; font-weight: 700; line-height: 1.2; }
.pr-badge { display: inline-block; align-self: flex-start; margin-top: 2mm; padding: .8mm 2.6mm; border: .25mm solid rgba(255, 255, 255, .45); border-radius: 10mm; font-size: 7.6pt; }
.pr-ins, .pr-profile { margin-top: 4mm; display: flex; flex-direction: column; gap: .5mm; font-size: 8pt; }
.pr-ins span, .pr-profile span { color: #9fc6db; font-size: 7.4pt; }
.pr-ins b, .pr-profile b { font-weight: 600; }
.pr-profile b { font-size: 9.5pt; }
.pr-face-n { margin-top: auto; font-size: 7.4pt; color: #9fc6db; }
.pr-content { padding: 6.5mm 7mm 6mm; display: flex; flex-direction: column; gap: 3.5mm; min-width: 0; }
.pr-summary { background: #22365f; color: #eef4f7; border-radius: 4mm; padding: 3.5mm 4.5mm; }
.pr-summary-t { font-family: var(--serif); font-size: 11pt; font-weight: 700; margin-bottom: 1.5mm; }
.pr-srow { display: grid; grid-template-columns: 19mm 1fr; column-gap: 3mm; align-items: baseline; padding: 1.1mm 0; border-top: .2mm solid rgba(255, 255, 255, .18); font-size: 9pt; }
.pr-srow:first-of-type { border-top: 0; }
.pr-srow span { color: #a9cde0; font-size: 7.8pt; }
.pr-srow b { font-weight: 600; }
.pr-srow em { grid-column: 2; font-style: normal; color: #cfe2ec; font-size: 8pt; }
.pr-big { font-family: var(--serif); font-size: 15pt; }
.pr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5mm; align-items: start; }
.pr-cols.is-one { grid-template-columns: 1fr; }
.pr-panel { background: #fff; border: .25mm solid #d3e0e2; border-radius: 3mm; overflow: hidden; }
.pr-panel h3 { margin: 0; padding: 1.8mm 3.5mm; font-family: var(--serif); font-size: 9.5pt; color: #fff; background: #16264a; }
.pr-panel h3 small { font-family: var(--sans); font-weight: 400; font-size: 7.4pt; opacity: .85; }
.pr-panel h3.is-green { background: #2c6b5b; }
.pr-panel h3.is-indigo { background: #2d5a8c; }
.pr-panel-b { padding: 1.5mm 3.5mm 2.5mm; }
.pr-kv { display: flex; justify-content: space-between; gap: 3mm; padding: 1mm 0; border-bottom: .2mm solid #e5eef0; font-size: 8.6pt; }
.pr-kv:last-child { border-bottom: 0; }
.pr-kv span { color: #4d5d74; }
.pr-kv span.is-dark { color: #15233d; }
.pr-kv b { font-weight: 600; text-align: right; }
.pr-ideal { margin-top: 2mm; background: #e6f1ee; border-radius: 2.5mm; padding: 2mm 3mm; }
.pr-ideal span { display: block; font-size: 7.6pt; color: #2c6b5b; }
.pr-ideal b { display: block; font-family: var(--serif); font-size: 19pt; line-height: 1.1; }
.pr-ideal em { font-style: normal; font-size: 8pt; color: #4d5d74; }

/* Cara 2 */
.pr-face2 { background: #f1f6f6; }
.pr-face2 .pr-waves { color: #2d5a8c; opacity: .07; }
.pr-face2-in { position: relative; height: 100%; padding: 7mm 8mm 5mm; display: flex; flex-direction: column; gap: 3.5mm; }
.pr-check { display: grid; grid-template-columns: 3.4mm 1fr; gap: 2mm; align-items: start; padding: .9mm 0; font-size: 8.6pt; }
.pr-check i { width: 3.2mm; height: 3.2mm; margin-top: .4mm; border: .3mm solid #3f8f9f; border-radius: .7mm; }
.pr-res { display: flex; justify-content: space-between; gap: 2mm; margin-top: 1.4mm; padding: 1.2mm 2.5mm; background: #fbeee9; border-left: 1mm solid #c9402a; border-radius: 0 1.5mm 1.5mm 0; font-size: 8.4pt; }
.pr-res b { color: #a3341f; }
.pr-ref { background: #fff; border: .25mm solid #d3e0e2; border-left: 1.4mm solid #3f8f9f; border-radius: 3mm; padding: 2.5mm 4mm 3mm; }
.pr-ref h3 { margin: 0; font-family: var(--serif); font-size: 9.5pt; }
.pr-ref p { margin: 1mm 0 2mm; font-size: 8.4pt; color: #3d4b60; }
.pr-ref-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(40mm, 1fr)); gap: 2.5mm; }
.pr-ref-card { border: .25mm solid #d3e0e2; border-top: .9mm solid #2d5a8c; border-radius: 2mm; padding: 1.8mm 2.5mm; background: #f8fbfb; }
.pr-ref-card span { display: block; font-size: 7.8pt; color: #3d4b60; line-height: 1.25; }
.pr-ref-card b { display: block; font-family: var(--serif); font-size: 11.5pt; margin-top: .8mm; }
.pr-ref-card em { display: block; font-style: normal; font-size: 7.2pt; color: #4d5d74; }
.pr-ref .pr-ref-note { margin: 2mm 0 0; font-size: 7.6pt; color: #4d5d74; }
.pr-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 5mm; padding-top: 2mm; border-top: .25mm solid #d3e0e2; font-size: 7.4pt; color: #4d5d74; }
.pr-foot p { margin: 0; max-width: 125mm; }
.pr-foot span { white-space: nowrap; }

/* Diario */
.pr-log { width: 210mm; padding: 12mm 12mm 10mm; background: #fff; break-before: page; page-break-before: always; }
.pr-log:first-child { break-before: auto; page-break-before: auto; }
.pr-log-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; padding-bottom: 3mm; margin-bottom: 3mm; border-bottom: .6mm solid #16264a; }
.pr-log-h h1 { margin: 1mm 0 0; font-family: var(--serif); font-size: 17pt; }
.pr-log-h p { margin: .5mm 0 0; font-size: 9pt; color: #4d5d74; }
.pr-log-r { text-align: right; font-size: 9pt; color: #15233d; }
.pr-log-r small { display: block; color: #9a5b12; font-size: 7.8pt; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 8.4pt; }
.pr-table thead { display: table-header-group; }
.pr-table th { text-align: left; font-weight: 600; font-size: 7.8pt; color: #4d5d74; padding: 1.4mm 1.2mm; border-bottom: .3mm solid #15233d; }
.pr-table td { padding: 1.6mm 1.2mm; border-bottom: .2mm solid #dfe7ea; vertical-align: top; }
.pr-table tr { break-inside: avoid; page-break-inside: avoid; }
.pr-table .c-n { font-family: var(--serif); font-weight: 700; width: 9mm; }
.pr-table .c-d { width: 22mm; white-space: nowrap; }
.pr-table .c-s b { display: block; font-weight: 600; }
.pr-table .c-s i { display: block; font-size: 7.6pt; color: #3d4b60; }
.pr-table .c-s small { display: block; color: #4d5d74; font-size: 7.6pt; }
.pr-table .c-s em { display: block; font-style: normal; color: #3d4b60; font-size: 7.6pt; margin-top: .5mm; }
.pr-table .c-x { text-align: right; white-space: nowrap; width: 11mm; }
.pr-table th:nth-child(n+4) { text-align: right; }
.pr-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; margin-top: 5mm; break-inside: avoid; }
.pr-totals div { background: #f1f6f6; border-radius: 2.5mm; padding: 2.5mm 3mm; }
.pr-totals b { display: block; font-family: var(--serif); font-size: 13pt; }
.pr-totals span { font-size: 7.8pt; color: #4d5d74; }
.pr-log-f { display: flex; justify-content: space-between; margin-top: 5mm; padding-top: 2mm; border-top: .25mm solid #d3e0e2; font-size: 7.6pt; color: #4d5d74; }

.esn-table tfoot th { padding: 9px 0 2px; font-weight: 700; color: var(--ink); border: 0; }
.esn-table tfoot th:last-child { text-align: right; }
.pr-kv.is-total { border-top: .3mm solid #16264a; border-bottom: 0; font-weight: 700; }
