/* Campus ILC · pages-perfil: Biblioteca, Comunidad, Experiencias, Pasaporte y Certificados */

/* ═════════════════════ BIBLIOTECA VIRTUAL ═════════════════════ */
.bib-hero .page-hero-media img { object-position: 50% 55%; }
.bib-hero-sub { font-family: var(--font-display); font-size: 1.5em; line-height: 1.2; color: #fff; font-style: italic; display: inline-block; margin-bottom: 8px; }
.bib-kicker { color: var(--gold); letter-spacing: .2em; font-size: 0.7rem; }

/* Buscador */
.bib-search { padding: var(--s-6) var(--s-7); box-shadow: var(--e2); }
.bib-search-row { display: flex; gap: var(--s-3); }
.bib-search-field { flex: 1; min-width: 0; }
.bib-search-field .input { min-height: 54px; font-size: 1.06rem; background: var(--canvas); }
.bib-search-field svg { width: 21px; height: 21px; }
.bib-search-row .btn { min-height: 54px; padding: 0 28px; }
.bib-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.bib-chips .chip { height: 32px; font-size: 0.86rem; }
.bib-chips .chip:focus-visible { outline-offset: 2px; }
.bib-claim { display: flex; align-items: center; gap: 10px; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.9rem; }
.bib-claim svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.bib-claim b { color: var(--burgundy); font-weight: 600; }

/* Portada compuesta (tipografía real sobre arte) */
.bk { --bk-bg: #5D0D00; --bk-fg: #F6E9DF; container-type: inline-size; position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; overflow: hidden; border-radius: 2px 5px 5px 2px; background: var(--bk-bg); color: var(--bk-fg); box-shadow: 0 1px 1px rgba(30,10,4,.18), 0 6px 14px rgba(30,10,4,.16), 0 18px 34px -12px rgba(30,10,4,.28); isolation: isolate; text-align: center; }
.bk::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.16) 2.2%, rgba(0,0,0,.08) 4%, transparent 8%), linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%); }
.bk-art { position: absolute; inset: 0; z-index: 0; }
.bk-art img { width: 100%; height: 100%; object-fit: cover; }
.bk-type { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 11cqw 9cqw 0; }
.bk-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: var(--fs, 11cqw); line-height: 1.02; letter-spacing: .03em; text-wrap: balance; }
.bk-rule { width: 16cqw; height: 1px; margin: 5cqw 0 4cqw; background: currentColor; opacity: .6; }
.bk-sub { font-family: var(--font-display); font-style: italic; font-size: 6.4cqw; line-height: 1.2; opacity: .9; text-wrap: balance; }
.bk-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 4cqw; padding: 6cqw 7cqw 6cqw 10cqw; }
.bk-author { font-size: 5.2cqw; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; text-align: left; line-height: 1.2; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.bk-ilc { width: 13cqw; height: auto; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.bk-ribbon { position: absolute; top: -2px; right: 9cqw; z-index: 6; width: 12cqw; height: 18cqw; background: var(--gold); color: #fff; display: grid; place-items: center; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.bk-ribbon svg { width: 7cqw; height: 7cqw; margin-top: -3cqw; }
/* Variante "band": banda tipográfica sólida arriba, arte abajo */
.bk--band .bk-art { top: 44%; }
.bk--band .bk-art::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 26%; background: linear-gradient(180deg, var(--bk-bg), transparent); z-index: 1; }
.bk--band .bk-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 40%); }
/* Variante "full": arte a sangre con velo oscuro para el título */
.bk--full .bk-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,8,6,.9) 0%, rgba(14,8,6,.72) 36%, rgba(14,8,6,0) 64%, rgba(14,8,6,.6) 100%); }
.bk--full .bk-title { color: #fff; }
.bk--full .bk-rule { background: var(--gold-soft); opacity: 1; }
/* Variante "paper": papel claro con el arte enmarcado abajo */
.bk--paper { background: var(--bk-bg); }
.bk--paper .bk-art { top: 46%; left: 0; right: 0; }
.bk--paper .bk-art::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22%; background: linear-gradient(180deg, var(--bk-bg), transparent); z-index: 1; }
.bk--paper .bk-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 38%); }
.bk--paper .bk-sub { color: var(--ink-soft); }
.bk--paper .bk-rule { background: var(--gold); opacity: 1; }

/* Ficha de libro */
.bib-book { display: flex; flex-direction: column; height: 100%; }
.bib-cover-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.bib-cover-btn .bk { transition: transform var(--d-ui) var(--ease-out), box-shadow var(--d-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .bib-book:hover .bk { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 2px 2px rgba(30,10,4,.18), 0 14px 26px rgba(30,10,4,.2), 0 30px 46px -16px rgba(30,10,4,.35); }
}
.bib-meta { padding-top: 14px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bib-cat { font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.bib-meta h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ink); letter-spacing: 0; }
.bib-meta p { font-size: 0.88rem; color: var(--ink-mute); line-height: 1.35; }
.bib-open { margin-top: 12px; align-self: flex-start; }

/* Carriles horizontales */
.bib-rails { display: flex; flex-direction: column; }
.bib-rails[hidden], .bib-results[hidden] { display: none; }
.bib-rail { margin-top: var(--s-9); min-width: 0; }
.bib-rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-5); }
.bib-rail-head h2 { font-size: var(--t-xl); color: var(--burgundy); margin-top: 4px; }
.bib-rail-sub { color: var(--ink-soft); font-size: 0.93rem; margin-top: 4px; max-width: 62ch; }
.bib-rail-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.bib-rail-tools .link { margin-right: 8px; }
.bib-count { font-size: 0.86rem; color: var(--ink-mute); margin-right: 8px; }
.bib-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--burgundy); box-shadow: var(--e1); transition: background var(--d-fast), border-color var(--d-fast), opacity var(--d-fast), transform 120ms var(--ease-out); }
.bib-arrow svg { width: 20px; height: 20px; }
.bib-arrow:hover:not(:disabled) { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.bib-arrow:active:not(:disabled) { transform: scale(.94); }
.bib-arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.bib-rail.is-static .bib-arrow { display: none; }
.bib-track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 184px; gap: var(--s-6); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 6px 4px 18px; margin: -6px -4px 0; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; cursor: grab; }
.bib-track:focus-visible { outline-offset: 4px; }
.bib-track > li { scroll-snap-align: start; min-width: 0; }
.bib-track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.bib-track.is-drag * { pointer-events: none; }

/* Destacado editorial */
.bib-feature { margin-top: var(--s-10); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-9); align-items: center; padding: var(--s-9) var(--s-9); background: linear-gradient(120deg, var(--stone), var(--canvas)); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.bib-feature::after { content: "“"; position: absolute; right: 40px; top: -40px; font-family: var(--font-display); font-size: 22rem; line-height: 1; color: var(--burgundy); opacity: .05; pointer-events: none; }
.bib-feature-cover { transform: rotate(-2deg); }
.bib-feature-cover .bk { box-shadow: 0 2px 2px rgba(30,10,4,.2), 0 24px 50px -10px rgba(30,10,4,.45); }
.bib-feature-copy h2 { font-size: var(--t-2xl); color: var(--burgundy); margin-top: 8px; }
.bib-feature-author { margin-top: 8px; color: var(--ink-soft); font-style: italic; font-family: var(--font-display); font-size: 1.2rem; }
.bib-feature-quote { margin: var(--s-6) 0 0; padding-left: var(--s-5); border-left: 2px solid var(--gold); font-family: var(--font-display); font-size: 1.55rem; line-height: 1.3; color: var(--ink); font-style: italic; max-width: 40ch; }
.bib-feature-text { margin-top: var(--s-5); color: var(--ink-soft); max-width: 62ch; }

/* Resultados */
.bib-results { margin-top: var(--s-8); }
.bib-results-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); margin-bottom: var(--s-6); }
.bib-results-count { color: var(--ink-soft); }
.bib-results-count b { font-family: var(--font-display); font-size: 1.6rem; color: var(--burgundy); margin-right: 4px; }
.bib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s-7) var(--s-6); }
.bib-empty h3 { color: var(--ink); margin-top: 6px; }
.bib-empty p { margin-top: 8px; }

/* Franja de valores */
.bib-values { margin-top: var(--s-10); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s-6) 0; }
.bib-value { display: flex; align-items: center; gap: 16px; padding: 0 var(--s-6); border-right: 1px solid var(--line); }
.bib-value:first-child { padding-left: 0; }
.bib-value svg { width: 40px; height: 40px; color: var(--burgundy); stroke-width: 1.3; flex: none; }
.bib-value strong { display: block; font-size: 0.98rem; }
.bib-value span { display: block; font-size: 0.86rem; color: var(--ink-mute); }
.bib-value-quote { padding-left: var(--s-6); font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); max-width: 22ch; line-height: 1.25; }

/* Modal de libro */
.bib-modal-shell { width: min(940px, 100%); }
.bib-detail { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.bib-detail-cover { position: sticky; top: 0; }
.bib-detail-sub { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.25; margin-top: 6px; color: var(--ink); }
.bib-detail-author { margin-top: 6px; color: var(--ink-soft); }
.bib-detail-author b { color: var(--ink); font-weight: 600; }
.bib-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--s-5) 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bib-facts > div { padding: 12px 12px 12px 0; }
.bib-facts > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.bib-facts dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); font-weight: 700; }
.bib-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.bib-syn-h { margin-top: var(--s-5); font-size: 1.15rem; color: var(--burgundy); }
.bib-syn { margin-top: 6px; color: var(--ink-soft); }
.bib-detail [data-shelf][aria-pressed="true"] { --bg: var(--burgundy-50); }
.bib-more { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.bib-more h4 { font-size: 1.1rem; }
.bib-more-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-4); }
.bib-more-item { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.bib-more-item .bk { transition: transform var(--d-ui) var(--ease-out); }
.bib-more-item:hover .bk { transform: translateY(-3px); }

/* Lector */
.rd-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.rd-pos { font-size: 0.86rem; color: var(--ink-mute); }
.rd-stage { margin-top: var(--s-4); display: grid; justify-content: center; padding: var(--s-6); background: radial-gradient(120% 90% at 50% 0%, #4a2a20, #241510); border-radius: var(--r-md); }
.rd-stage--spread { grid-template-columns: repeat(2, minmax(0, 360px)); gap: 0; padding: var(--s-5); }
.rd-page { position: relative; background: #FBF6EC; color: #2E241E; min-height: 440px; padding: 32px 34px 44px; box-shadow: 0 18px 40px rgba(0,0,0,.4); font-family: var(--font-display); font-size: 1.04rem; line-height: 1.5; max-width: 380px; animation: pageIn 260ms var(--ease-out) both; }
.rd-page--l { border-radius: 4px 0 0 4px; background: linear-gradient(270deg, #E9E0CF 0, #F6EFE2 4%, #FBF6EC 14%); }
.rd-page--r { border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #E6DCCA 0, #F6EFE2 4%, #FBF6EC 14%); }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } }
.rd-page p + p { margin-top: .8em; text-indent: 1.4em; }
.rd-page h5 { font-family: var(--font-display); font-size: 1.5rem; color: var(--burgundy); text-align: center; margin: 0 0 18px; font-weight: 600; }
.rd-drop::first-letter { float: left; font-size: 3em; line-height: .85; padding: 4px 8px 0 0; color: var(--burgundy); font-weight: 600; }
.rd-list { margin: 14px 0 0 1.2em; display: grid; gap: 8px; }
.rd-note { margin-top: 18px !important; text-indent: 0 !important; font-style: italic; color: #6E5F55; text-align: center; font-size: 1rem; }
.rd-folio { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 0.85rem; color: #8E8077; }
.rd-title-page { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 20px; }
.rd-title-page .caps { font-family: var(--font-text); color: var(--gold); font-size: 0.66rem; }
.rd-title-page h4 { font-size: 1.9rem; text-transform: uppercase; letter-spacing: .03em; color: var(--burgundy); line-height: 1.05; margin-top: 18px; }
.rd-sub { font-style: italic; color: #6E5F55; }
.rd-orn { color: var(--gold); font-size: 1.3rem; margin: 18px 0; }
.rd-author { font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; }
.rd-ed { margin-top: 40px; font-family: var(--font-text); font-size: 0.78rem; color: #8E8077; }
.rd-ilc { width: 52px; }
.rd-end { text-align: center; padding-top: 70px; }
.rd-end svg { width: 40px; height: 40px; color: var(--gold); margin: 0 auto 14px; }
.rd-nav { display: flex; justify-content: center; align-items: center; gap: var(--s-5); margin-top: var(--s-5); }
.rd-dots { display: flex; gap: 6px; }
.rd-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); transition: background var(--d-fast), transform var(--d-fast); }
.rd-dots i.is-on { background: var(--burgundy); transform: scale(1.2); }

@media (max-width: 1100px) {
  .bib-values { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-5); }
  .bib-value-quote { grid-column: 1 / -1; padding-left: 0; max-width: none; text-align: center; }
  .bib-feature { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-7); padding: var(--s-8); }
}
@media (max-width: 760px) {
  .bib-search { padding: var(--s-5); }
  .bib-search-row .btn { display: none; }
  .bib-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--s-5) * -1); padding-inline: var(--s-5); scrollbar-width: none; }
  .bib-chips::-webkit-scrollbar { display: none; }
  .bib-chips .chip { flex: none; }
  .bib-claim { align-items: flex-start; font-size: 0.86rem; }
  .bib-rail { margin-top: var(--s-8); }
  .bib-rail-head { align-items: flex-start; }
  .bib-rail-head h2 { font-size: 1.6rem; }
  .bib-rail-tools .bib-arrow, .bib-count { display: none; }
  .bib-rail-tools .link { margin: 4px 0 0; }
  .bib-track { grid-auto-columns: 148px; gap: var(--s-4); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .bib-track::-webkit-scrollbar { display: none; }
  .bib-meta h3 { font-size: 0.94rem; }
  .bib-feature { grid-template-columns: 1fr; padding: var(--s-7) var(--s-5); gap: var(--s-6); }
  .bib-feature-cover { width: 62%; margin: 0 auto; }
  .bib-feature-quote { font-size: 1.3rem; }
  .bib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
  .bib-values { grid-template-columns: 1fr; }
  .bib-value { border-right: 0; padding: 0; }
  .bib-detail { grid-template-columns: 1fr; gap: var(--s-5); }
  .bib-detail-cover { position: static; width: 52%; margin: 0 auto; }
  .bib-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bib-facts > div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .bib-facts > div:nth-child(4) { border-top: 1px solid var(--line); }
  .bib-more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-stage { padding: var(--s-3); }
  .rd-page { padding: 28px 22px 44px; min-height: 420px; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .rd-page { animation: none; } .bib-book:hover .bk { transform: none; } }

/* Estanterías temáticas: carriles por categoría en dos columnas */
.bib-shelves-head { margin-top: var(--s-10); }
.bib-shelves-head h2 { font-size: var(--t-2xl); color: var(--ink); margin-top: 6px; }
.bib-shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-8); }
.bib-shelves .bib-rail { margin-top: var(--s-7); padding: var(--s-6) var(--s-6) var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e1); }
.bib-shelves .bib-rail-head h2 { font-size: 1.55rem; }
.bib-shelves .bib-track { grid-auto-columns: 164px; gap: var(--s-5); }
@media (max-width: 1100px) { .bib-shelves { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .bib-shelves .bib-rail { padding: var(--s-5) 0 0; background: none; border: 0; box-shadow: none; border-top: 1px solid var(--line); border-radius: 0; }
  .bib-shelves .bib-track { grid-auto-columns: 140px; }
}

/* ═════════════════════ COMUNIDAD ILC ═════════════════════ */
.com-kicker { color: var(--gold); letter-spacing: .2em; font-size: 0.7rem; }
.com-toolbar { padding: var(--s-6); box-shadow: var(--e2); }
.com-toolbar-top { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.com-seg { flex-wrap: wrap; }
.com-seg button { padding: 9px 16px; font-size: 0.92rem; transition: background var(--d-fast), color var(--d-fast); }
.com-seg button:hover { color: var(--burgundy); }
.com-search { flex: 1; min-width: 240px; }
.com-search[hidden], .com-filters[hidden], .com-toolbar-foot[hidden] { display: none; }
.com-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-5); }
.com-field label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); }
.com-field .select { min-height: 42px; font-size: 0.93rem; }
.com-toolbar-foot { display: flex; align-items: center; gap: var(--s-6); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.com-count { margin-right: auto; color: var(--ink-soft); }
.com-count b { font-family: var(--font-display); font-size: 1.5rem; color: var(--burgundy); margin-right: 4px; }
.com-mine { font-size: 0.93rem; align-items: center; }
.com-mine input { margin-top: 0; }

.com-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.com-sec-head h2 { font-size: var(--t-xl); color: var(--burgundy); }
.com-sec-head--list { margin-top: var(--s-8); }

/* Miembro destacado */
.com-feat { display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; }
.com-feat-photo { position: relative; min-height: 380px; background: linear-gradient(140deg, #6E1608, #3E0900); }
.com-feat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.com-feat-ini { position: absolute; inset: 0; display: grid; place-items: center; }
.com-feat-badge { position: absolute; left: 16px; bottom: 16px; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.92); color: var(--burgundy); font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.com-feat-body { padding: var(--s-7) var(--s-8); display: flex; flex-direction: column; }
.com-feat-body h2 { font-size: var(--t-2xl); margin-top: 6px; }
.com-role { color: var(--ink-soft); margin-top: 4px; }
.com-role b { color: var(--ink); font-weight: 600; }
.com-bio { margin-top: var(--s-4); font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.35; color: var(--ink); max-width: 48ch; }
.com-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-5) 0 var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.com-facts dt { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); font-weight: 700; }
.com-facts dt svg { width: 14px; height: 14px; color: var(--gold); }
.com-facts dd { margin: 3px 0 0; font-weight: 600; font-size: 0.93rem; line-height: 1.3; }
.com-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.com-tag { height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--canvas); font-size: 0.82rem; color: var(--ink-soft); transition: border-color var(--d-fast), color var(--d-fast), background var(--d-fast); }
.com-tag:hover { border-color: var(--burgundy-200); color: var(--burgundy); background: var(--burgundy-50); }
.com-connect[aria-pressed="true"] svg { color: var(--ok); }

/* Directorio */
.com-list { list-style: none; padding: 0 var(--s-6); }
.com-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.com-row:last-child { border-bottom: 0; }
.com-row-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.com-row-name h3 { font-family: var(--font-text); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.com-type { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 5px; background: var(--stone); color: var(--ink-soft); }
.com-type--estud { background: var(--burgundy-50); color: var(--burgundy); }
.com-type--egres { background: var(--ok-bg); color: var(--ok); }
.com-type--profe, .com-type--mento { background: var(--info-bg); color: var(--info); }
.com-row .com-role { font-size: 0.93rem; margin-top: 2px; }
.com-row-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.84rem; color: var(--ink-mute); margin: 6px 0 10px; }
.com-row-meta span { display: inline-flex; align-items: center; gap: 5px; }
.com-row-meta svg { width: 14px; height: 14px; }
.com-row-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

/* Proyectos */
.com-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.com-proj { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 320px; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--e2); isolation: isolate; }
.com-proj--lead { grid-column: 1 / -1; min-height: 400px; }
.com-proj-media { position: absolute; inset: 0; z-index: -1; }
.com-proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.com-proj::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,8,3,0) 30%, rgba(30,8,3,.88) 100%); }
@media (hover: hover) and (pointer: fine) { .com-proj:hover .com-proj-media img { transform: scale(1.04); } }
.com-proj-body { padding: var(--s-6); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; max-width: 620px; }
.com-proj-body .caps { color: var(--gold-soft); }
.com-proj-body h3 { color: #fff; font-size: 1.7rem; }
.com-proj--lead .com-proj-body h3 { font-size: var(--t-2xl); }
.com-proj-desc { color: var(--on-dark-soft); font-size: 0.95rem; }
.com-proj-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--on-dark-soft); margin-bottom: 8px; }
.com-proj-meta span { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.com-proj-meta svg { width: 15px; height: 15px; }
.com-proj-modal { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.com-proj-modal-media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.com-proj-modal-media img { width: 100%; height: 100%; object-fit: cover; }
.inline-ico { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }

/* Panel lateral */
.com-side { display: flex; flex-direction: column; gap: var(--s-5); position: sticky; top: calc(var(--header-h) + 20px); }
.com-side-card .card-title { font-size: 1.3rem; }
.com-conn-num { margin-top: 10px; color: var(--ink-soft); }
.com-conn-num b { font-family: var(--font-display); font-size: 2.4rem; color: var(--burgundy); line-height: 1; margin-right: 6px; }
.com-stack { display: flex; margin-top: 12px; }
.com-stack .avatar { box-shadow: 0 0 0 3px #fff; }
.com-stack .avatar + .avatar { margin-left: -10px; }
.com-more { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--stone); font-size: 0.8rem; font-weight: 700; margin-left: -10px; box-shadow: 0 0 0 3px #fff; }
.com-events { list-style: none; margin-top: var(--s-4); }
.com-event { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.com-event strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.com-event .small { display: block; margin-top: 2px; }
.com-event .link svg { width: 15px; height: 15px; }
.com-event .row { gap: 14px; }
.com-date { flex: none; width: 54px; height: 60px; border-radius: var(--r-md); background: var(--burgundy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-transform: uppercase; font-size: 0.7rem; letter-spacing: .12em; font-weight: 600; }
.com-date b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; letter-spacing: 0; }
.com-side-cta { padding: var(--s-6); border-radius: var(--r-lg); background: var(--stone); }
.com-side-cta .caps { color: var(--gold); }
.com-side-cta p { margin: 8px 0 12px; color: var(--ink-soft); font-size: 0.93rem; }
.com-msg-to { display: flex; gap: 14px; align-items: center; }
.com-msg-to strong { display: block; }

@media (max-width: 1100px) {
  .com-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .com-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .com-side-cta { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .com-toolbar { padding: var(--s-5); }
  .com-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .com-seg button { padding: 9px 6px; font-size: 0.86rem; }
  .com-search { min-width: 0; width: 100%; flex: none; }
  .com-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .com-toolbar-foot { flex-wrap: wrap; gap: var(--s-3) var(--s-5); }
  .com-count { width: 100%; }
  .com-feat { grid-template-columns: 1fr; }
  .com-feat-photo { min-height: 300px; }
  .com-feat-body { padding: var(--s-6) var(--s-5); }
  .com-facts { grid-template-columns: 1fr 1fr; }
  .com-list { padding: 0 var(--s-5); }
  .com-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .com-row .avatar { --size: 52px !important; }
  .com-row-actions { grid-column: 1 / -1; flex-direction: row; }
  .com-row-actions .btn { flex: 1; }
  .com-projects { grid-template-columns: 1fr; }
  .com-proj, .com-proj--lead { min-height: 340px; }
  .com-proj-modal { grid-template-columns: 1fr; }
  .com-side { grid-template-columns: 1fr; }
}

/* ═════════════════════ EXPERIENCIAS ILC ═════════════════════ */
.exp-summary { display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; box-shadow: var(--e2); }
.exp-sum-lead { padding: var(--s-7); background: var(--burgundy); color: var(--on-dark); position: relative; overflow: hidden; }
.exp-sum-lead::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 24px rgba(255,255,255,.03); }
.exp-sum-lead .caps { color: var(--gold-soft); }
.exp-sum-big { margin: 6px 0 8px; font-family: var(--font-display); font-size: 1.4rem; font-style: italic; color: var(--on-dark-soft); }
.exp-sum-big b { font-size: 4rem; font-style: normal; color: #fff; line-height: 1; margin-right: 6px; }
.exp-sum-lead .small { color: var(--on-dark-soft); max-width: 30ch; }
.exp-sum-grid { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; padding: var(--s-6) var(--s-4); }
.exp-sum-grid > div { padding: 0 var(--s-5); border-left: 1px solid var(--line); }
.exp-sum-grid > div:first-child { border-left: 0; }
.exp-sum-grid dt { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink-mute); line-height: 1.25; }
.exp-sum-grid dt svg { width: 16px; height: 16px; color: var(--gold); }
.exp-sum-grid dd { margin: 8px 0 0; color: var(--ink-soft); }
.exp-sum-grid dd b { font-family: var(--font-display); font-size: 2.3rem; color: var(--burgundy); line-height: 1; font-weight: 600; }

.exp-genera { margin-top: var(--s-9); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-4) var(--s-8); align-items: center; }
.exp-genera-title { font-size: 1.7rem; color: var(--burgundy); }
.exp-genera-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.exp-genera-list::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); }
.exp-genera-list li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding-right: var(--s-4); }
.exp-genera-list li > svg { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--surface); border: 1px solid var(--gold-soft); color: var(--burgundy); position: relative; }
.exp-genera-list strong { display: block; font-size: 0.98rem; }
.exp-genera-list span { display: block; font-size: 0.85rem; color: var(--ink-mute); line-height: 1.3; }
.exp-genera-note { grid-column: 2; font-size: 0.9rem; color: var(--ink-soft); }

.exp-tabs { margin-bottom: 0; }
.exp-cat-intro { display: flex; gap: var(--s-5); align-items: flex-start; padding: var(--s-5) var(--s-6); background: var(--stone); border-radius: var(--r-lg); margin-bottom: var(--s-5); }
.exp-cat-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--burgundy); color: #fff; flex: none; }
.exp-cat-ico svg { width: 24px; height: 24px; }
.exp-cat-intro h3 { color: var(--burgundy); }
.exp-cat-intro p { color: var(--ink-soft); margin-top: 2px; }
.exp-temas { font-size: 0.86rem; color: var(--ink-mute) !important; margin-top: 6px !important; }

.exp-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-4); }
.exp-item { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--e1); transition: box-shadow var(--d-ui) var(--ease-out); position: relative; }
.exp-item::before { content: ""; position: absolute; left: 240px; top: 0; bottom: 0; width: 3px; background: var(--tile-ochre); }
.exp-item--servicio::before { background: var(--burgundy); }
.exp-item--comunidad::before { background: var(--tile-navy); }
.exp-item[data-state="completado"] .exp-media img { filter: saturate(.85); }
.exp-media { position: relative; min-height: 170px; background: var(--stone); }
.exp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exp-media .badge { position: absolute; left: 12px; top: 12px; }
.exp-body { padding: var(--s-5) var(--s-6); min-width: 0; }
.exp-cat { color: var(--gold); font-size: 0.68rem; }
.exp-body h3 { font-size: 1.45rem; margin-top: 2px; }
.exp-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.exp-facts li { display: inline-flex; align-items: center; gap: 6px; }
.exp-facts svg { width: 15px; height: 15px; color: var(--ink-mute); }
.exp-badge { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); }
.exp-badge b { color: var(--ink); font-weight: 600; }
.exp-seal { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #E8D3A8, #A9844F); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 0 0 1px #A9844F; flex: none; }
.exp-seal svg { width: 15px; height: 15px; }
.exp-badge--none svg { width: 16px; height: 16px; color: var(--ink-mute); }
.exp-prog { margin-top: 12px; max-width: 320px; }
.exp-prog span { font-size: 0.82rem; color: var(--ink-mute); display: block; margin-bottom: 5px; }
.exp-act { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: var(--s-5); border-left: 1px solid var(--line); }
.exp-done { display: inline-flex; align-items: center; gap: 6px; color: var(--info); font-weight: 600; font-size: 0.9rem; }
.exp-done svg { width: 18px; height: 18px; }
.exp-cancel { font-size: 0.84rem; color: var(--ink-mute); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.exp-cancel:hover { color: var(--danger); }

@media (max-width: 1100px) {
  .exp-summary { grid-template-columns: 1fr; }
  .exp-sum-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-5); }
  .exp-sum-grid > div:nth-child(4) { border-left: 0; }
  .exp-genera { grid-template-columns: 1fr; }
  .exp-genera-note { grid-column: 1; }
  .exp-item { grid-template-columns: 200px minmax(0, 1fr); }
  .exp-item::before { left: 200px; }
  .exp-act { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: center; padding: var(--s-4) var(--s-6); }
}
@media (max-width: 760px) {
  .exp-sum-lead { padding: var(--s-6); }
  .exp-sum-big b { font-size: 3.2rem; }
  .exp-sum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-5); gap: var(--s-5) 0; }
  .exp-sum-grid > div { padding: 0 var(--s-4); }
  .exp-sum-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .exp-sum-grid > div:nth-child(4) { border-left: 1px solid var(--line); }
  .exp-genera-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) 0; }
  .exp-genera-list::before { display: none; }
  .exp-cat-intro { padding: var(--s-5); }
  .exp-item { grid-template-columns: 1fr; }
  .exp-item::before { left: 0; right: 0; top: 160px; bottom: auto; width: auto; height: 3px; }
  .exp-media { min-height: 160px; }
  .exp-body { padding: var(--s-5); }
  .exp-act { grid-column: 1; padding: var(--s-4) var(--s-5); flex-wrap: wrap; }
}

/* ═════════════════════ PASAPORTE DE LIDERAZGO ═════════════════════ */
.pp-page { background: radial-gradient(90% 60% at 50% 0%, #F3EADF 0%, var(--canvas) 70%); padding-bottom: var(--s-4); }
.pp-top { padding-top: var(--s-7); }
.pp-top-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); flex-wrap: wrap; }
.pp-kicker { color: var(--gold); }
.pp-h1 { font-size: var(--t-3xl); color: var(--burgundy); margin-top: 6px; }
.pp-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Libreta abierta: tapa + página de datos */
.pp-book { margin-top: var(--s-7); display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.5fr); border-radius: 14px; box-shadow: 0 2px 4px rgba(40,15,8,.12), 0 30px 70px -20px rgba(40,15,8,.4); position: relative; }
.pp-book::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(78 / 228 * 100%); width: 22px; transform: translateX(-11px); background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.06) 45%, rgba(255,255,255,.18) 55%, rgba(0,0,0,.08)); pointer-events: none; }
.pp-cover { border-radius: 14px 0 0 14px; background:
  radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.07), transparent 60%),
  repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 2px, transparent 2px 5px),
  linear-gradient(160deg, #6B1406, #4A0A00 55%, #340600); padding: 18px; color: #D9C4A0; }
.pp-cover-in { height: 100%; border: 1px solid rgba(217,196,160,.45); border-radius: 8px; box-shadow: inset 0 0 0 4px rgba(217,196,160,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: var(--s-7) var(--s-5); }
.pp-cover-top { text-transform: uppercase; letter-spacing: .3em; font-size: 0.66rem; font-weight: 600; opacity: .85; }
.pp-escudo { width: 120px; height: 120px; color: #D9C4A0; filter: drop-shadow(0 1px 0 rgba(0,0,0,.4)) drop-shadow(0 -1px 0 rgba(255,236,200,.18)); }
.pp-cover-title { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; letter-spacing: .14em; line-height: 1; font-weight: 600; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.pp-cover-title span { font-size: .55em; letter-spacing: .3em; }
.pp-cover-inst { font-family: var(--font-display); font-size: 0.86rem; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.pp-cover-ilc { width: 54px; height: auto; opacity: .9; }

.pp-data { border-radius: 0 14px 14px 0; position: relative; overflow: hidden; color: #2E241E; background:
  repeating-radial-gradient(circle at 85% 30%, transparent 0 9px, rgba(93,13,0,.035) 9px 10px),
  repeating-linear-gradient(115deg, transparent 0 14px, rgba(169,132,79,.05) 14px 15px),
  linear-gradient(180deg, #FBF5EA, #F5ECDD); display: flex; flex-direction: column; }
.pp-data::before { content: ""; position: absolute; right: -40px; bottom: 60px; width: 300px; height: 300px; background: url("../assets/escudo.svg") center / contain no-repeat; opacity: .05; pointer-events: none; }
.pp-data-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 28px; border-bottom: 1px solid rgba(93,13,0,.15); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--burgundy); font-weight: 600; }
.pp-num { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; }
.pp-data-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5) var(--s-7); padding: var(--s-6) 28px; flex: 1; position: relative; }
.pp-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pp-avatar { border-radius: 10px; width: 132px; height: 164px; font-size: 3.2rem; box-shadow: inset 0 0 0 2px rgba(217,196,160,.6), 0 2px 6px rgba(0,0,0,.15); }
.pp-photo-note { font-size: 0.68rem; color: var(--ink-mute); letter-spacing: .06em; }
.pp-fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; align-content: start; }
.pp-fields .pp-wide { grid-column: span 2; }
.pp-fields dt { font-size: 0.64rem; text-transform: uppercase; letter-spacing: .16em; color: #8E7563; font-weight: 600; }
.pp-fields dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; color: #2A1E18; }
.pp-sign { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; }
.pp-sign .script { font-size: 1.9rem; color: #2C3A5A; line-height: 1; padding: 0 20px 2px 6px; border-bottom: 1px solid rgba(46,36,30,.35); transform: rotate(-3deg); }
.pp-sign small { font-size: 0.66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 6px; }
.pp-mrz { display: flex; flex-direction: column; padding: 14px 28px 18px; background: rgba(255,255,255,.45); border-top: 1px solid rgba(93,13,0,.12); font-family: "OCR B", "OCR-B", ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(0.62rem, 1.15vw, 1rem); letter-spacing: .2em; color: #3A2E27; overflow: hidden; white-space: nowrap; }

/* Indicadores de progreso */
.pp-stats { margin-top: var(--s-7); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e1); }
.pp-stat { padding: var(--s-5) var(--s-5); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.pp-stat:first-child { border-left: 0; }
.pp-stat b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--burgundy); font-weight: 600; }
.pp-stat b small { font-size: .5em; color: var(--ink-mute); }
.pp-stat span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; line-height: 1.3; }

/* Hojas del pasaporte */
.pp-grid { margin-top: var(--s-7); display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
.pp-sheet { position: relative; background: linear-gradient(180deg, #FDF9F2, #F8F0E3); border: 1px solid #E8DCC8; border-radius: 10px; padding: var(--s-6) var(--s-7); box-shadow: var(--e1); }
.pp-sheet::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(169,132,79,.22); border-radius: 6px; pointer-events: none; }
.pp-sheet-head { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; position: relative; }
.pp-sheet-head h2 { font-size: var(--t-xl); color: var(--burgundy); }
.pp-sheet-head .link { margin-left: auto; }
.pp-folio { font-family: ui-monospace, Menlo, monospace; font-size: 0.68rem; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; order: -1; width: 100%; }
.pp-comp-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.pp-radar { max-width: 540px; justify-self: center; }
.pp-radar { width: 100%; height: auto; overflow: visible; }
.pp-radar-ring { fill: none; stroke: #DCCDB7; stroke-width: 1; }
.pp-radar-axis { stroke: #E4D7C4; stroke-width: 1; }
.pp-radar-area { fill: rgba(93,13,0,.16); stroke: var(--burgundy); stroke-width: 2; stroke-linejoin: round; }
.pp-radar-dot { fill: #fff; stroke: var(--burgundy); stroke-width: 2; }
.pp-radar-label { font-family: var(--font-text); font-size: 13.5px; fill: var(--ink-soft); font-weight: 600; }
.pp-bars { list-style: none; display: grid; gap: 12px; }
.pp-bar-top { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 4px; }
.pp-bar-top b { font-family: var(--font-display); font-size: 1.1rem; color: var(--burgundy); }
.pp-bars .progress { background: #E8DCC8; }
.pp-note { display: flex; gap: 8px; margin-top: var(--s-5); font-size: 0.82rem; color: var(--ink-mute); position: relative; }
.pp-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* Sellos: la firma visual del pasaporte */
.pp-stamps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); position: relative; }
.pp-stamp { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.pp-stamp-seal { position: relative; width: min(100%, 168px); aspect-ratio: 1; color: var(--ink); transform: rotate(var(--rot)); mix-blend-mode: multiply; opacity: .9; transition: transform var(--d-ui) var(--ease-out), opacity var(--d-ui); }
.pp-stamp-seal svg { width: 100%; height: 100%; display: block; }
.pp-stamp-text { font-family: var(--font-display); font-weight: 700; }
.pp-stamp-small { font-family: var(--font-text); font-weight: 700; }
.pp-stamp-ico { position: absolute; inset: 0; display: grid; place-items: center; }
.pp-stamp-ico svg { width: 30%; height: 30%; stroke-width: 1.5; }
.pp-stamp-seal::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, transparent 55%, color-mix(in srgb, var(--ink) 10%, transparent) 100%); }
@media (hover: hover) and (pointer: fine) { .pp-stamp:hover .pp-stamp-seal { transform: rotate(0deg) scale(1.05); opacity: 1; } }
.pp-stamp-cap strong { display: block; font-size: 0.88rem; line-height: 1.25; }
.pp-stamp-cap span { display: block; font-size: 0.76rem; color: var(--ink-mute); line-height: 1.3; }

/* Línea de tiempo de hitos */
.pp-timeline-sheet { margin-top: var(--s-6); }
.pp-timeline { list-style: none; position: relative; }
.pp-hito { display: grid; grid-template-columns: 110px 44px minmax(0, 1fr); gap: 0 var(--s-4); position: relative; padding-bottom: var(--s-5); }
.pp-hito::before { content: ""; position: absolute; left: calc(110px + var(--s-4) + 21px); top: 44px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--gold-soft) 0 4px, transparent 4px 8px); }
.pp-hito:last-child::before { display: none; }
.pp-hito time { text-align: right; font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; letter-spacing: .06em; color: var(--ink-mute); padding-top: 12px; text-transform: uppercase; }
.pp-hito-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--burgundy-200); color: var(--burgundy); position: relative; z-index: 1; }
.pp-hito-dot svg { width: 19px; height: 19px; }
.pp-hito.is-gold .pp-hito-dot { background: radial-gradient(circle at 35% 30%, #E8D3A8, #A9844F); border-color: #A9844F; color: #fff; }
.pp-hito.is-now .pp-hito-dot { background: var(--burgundy); border-color: var(--burgundy); color: #fff; box-shadow: 0 0 0 5px var(--burgundy-100); }
.pp-hito-body { padding-top: 4px; }
.pp-hito-tipo { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--gold); }
.pp-hito-body strong { display: block; font-size: 1.02rem; line-height: 1.3; }
.pp-hito-body p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 2px; }

.pp-links { margin-top: var(--s-7); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.pp-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.pp-link > svg:first-child { width: 26px; height: 26px; color: var(--burgundy); flex: none; }
.pp-link span { flex: 1; min-width: 0; }
.pp-link strong { display: block; }
.pp-link small { display: block; color: var(--ink-mute); font-size: 0.84rem; }
.pp-link-arrow { width: 18px; height: 18px; color: var(--ink-mute); }

@media (max-width: 1100px) {
  .pp-book { grid-template-columns: 1fr; }
  .pp-book::after { display: none; }
  .pp-cover { border-radius: 14px 14px 0 0; }
  .pp-cover-in { flex-direction: row; flex-wrap: wrap; padding: var(--s-5); gap: 10px 18px; }
  .pp-cover-top, .pp-cover-inst, .pp-cover-ilc { display: none; }
  .pp-escudo { width: 64px; height: 64px; }
  .pp-cover-title { font-size: 1.6rem; text-align: left; }
  .pp-data { border-radius: 0 0 14px 14px; }
  .pp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-stat:nth-child(4) { border-left: 0; }
  .pp-stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .pp-stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pp-top { padding-top: var(--s-5); }
  .pp-h1 { font-size: 2.3rem; }
  .pp-actions { width: 100%; }
  .pp-actions .btn { flex: 1 1 auto; }
  .pp-actions .btn:last-child { flex-basis: 100%; }
  .pp-data-head { padding: 12px 18px; font-size: 0.62rem; }
  .pp-data-body { grid-template-columns: 1fr; padding: var(--s-5) 18px; }
  .pp-photo { flex-direction: row; align-items: flex-end; }
  .pp-avatar { width: 96px; height: 120px; font-size: 2.4rem; }
  .pp-fields { gap: 12px 16px; }
  .pp-fields dd { font-size: 1.15rem; }
  .pp-sign { grid-column: 1; }
  .pp-mrz { padding: 12px 18px; font-size: 0.58rem; letter-spacing: .08em; }
  .pp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-stat { border-left: 0 !important; border-top: 1px solid var(--line); }
  .pp-stat:nth-child(-n+2) { border-top: 0; }
  .pp-stat:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .pp-stat b { font-size: 2.1rem; }
  .pp-sheet { padding: var(--s-5) var(--s-5); }
  .pp-comp-body { grid-template-columns: 1fr; }
  .pp-stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-hito { grid-template-columns: 44px minmax(0, 1fr); }
  .pp-hito time { grid-column: 2; grid-row: 1; text-align: left; padding: 0; font-size: 0.7rem; }
  .pp-hito-dot { grid-row: 1 / span 2; }
  .pp-hito-body { grid-column: 2; padding-top: 0; }
  .pp-hito::before { left: 21px; }
  .pp-links { grid-template-columns: 1fr; }
}

/* ═════════════════════ MIS CERTIFICADOS ═════════════════════ */
.cert-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); }
.cert-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; padding: var(--s-2) 0; box-shadow: var(--e2); }
.cert-summary > div { padding: var(--s-6); border-left: 1px solid var(--line); }
.cert-summary > div:first-child { border-left: 0; }
.cert-summary b { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--burgundy); font-weight: 600; }
.cert-summary span { display: block; margin-top: 6px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; }
.cert-verify { padding: var(--s-6); box-shadow: var(--e2); }
.cert-verify .card-title { font-size: 1.35rem; }
.cert-verify-form { display: flex; gap: 10px; margin-top: var(--s-4); }
.cert-verify-form .input { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }
.cert-verify-form .input::placeholder { text-transform: none; font-family: var(--font-text); letter-spacing: 0; }
.cert-verify-out { margin-top: 10px; font-size: 0.9rem; min-height: 1.4em; display: flex; gap: 8px; align-items: flex-start; }
.cert-verify-out svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.cert-verify-out.is-ok { color: var(--ok); }
.cert-verify-out.is-bad { color: var(--danger); }

.cert-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-4); }
.cert-row { display: grid; grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1.6fr) 200px; gap: var(--s-6); align-items: center; padding: var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e1); }
.cert-row--pending { background: var(--canvas); border-style: dashed; box-shadow: none; }
.cert-mini { display: block; width: 96px; aspect-ratio: 1.414; background: #FBF6EA; border: 1px solid #E3D3B5; border-radius: 3px; padding: 4px; box-shadow: 0 4px 10px rgba(60,30,20,.12); transform: rotate(-3deg); }
.cert-mini-in { height: 100%; border: 1.5px double var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.cert-mini-escudo { width: 18px; height: 18px; color: var(--burgundy); }
.cert-mini i { display: block; height: 2px; width: 50%; background: #D9C9AE; border-radius: 2px; }
.cert-mini i:nth-of-type(2) { width: 64%; background: var(--burgundy-200); }
.cert-mini i:nth-of-type(3) { width: 36%; }
.cert-mini.is-pending { filter: grayscale(1); opacity: .45; }
.cert-type { color: var(--gold); font-size: 0.66rem; }
.cert-row-main h3 { font-size: 1.4rem; margin-top: 2px; }
.cert-row-school { font-size: 0.88rem; color: var(--ink-mute); margin-top: 2px; }
.cert-row-facts { margin: 0; display: grid; grid-template-columns: 0.9fr 0.6fr 0.9fr 1.5fr; gap: var(--s-4); }
.cert-row-facts dt { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); font-weight: 700; white-space: nowrap; }
.cert-row-facts dd { margin: 3px 0 0; font-weight: 600; font-size: 0.93rem; }
.cert-code { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line-strong); background: var(--canvas); border-radius: 6px; padding: 3px 8px; font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; color: var(--ink); white-space: nowrap; transition: border-color var(--d-fast), color var(--d-fast); }
.cert-code svg { width: 13px; height: 13px; color: var(--ink-mute); }
.cert-code:hover { border-color: var(--burgundy); color: var(--burgundy); }
.cert-row-act { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cert-row-act .link svg { width: 16px; height: 16px; }
.cert-row-prog { max-width: 380px; }
.cert-row-prog .row-between { margin-bottom: 6px; font-weight: 600; }

/* El certificado (papel crema, doble marco, escudo, serif) */
.cert-modal { width: min(1000px, 100%); }
.cert-modal .modal-body { background: #EDE6DA; }
.cert-modal .modal-foot { align-items: center; flex-wrap: wrap; }
.cert-foot-note { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; }
.cert-stage { display: grid; place-items: center; }
.cert-paper { container-type: inline-size; width: 100%; aspect-ratio: 297 / 210; background:
  radial-gradient(120% 90% at 50% 40%, #FFFDF7 0%, #FBF4E6 60%, #F3E8D2 100%); color: #2E241E; padding: 2.6cqw; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 20px 50px rgba(60,30,20,.22); position: relative; }
.cert-frame { position: relative; height: 100%; border: 0.45cqw double var(--burgundy); outline: 0.12cqw solid var(--gold); outline-offset: -1.3cqw; padding: 3.2cqw 6cqw 2.4cqw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cert-frame::before { content: ""; position: absolute; inset: 0; background: url("../assets/escudo.svg") center 58% / 34cqw no-repeat; opacity: .045; pointer-events: none; }
.cert-corner { position: absolute; width: 4cqw; height: 4cqw; border: 0.15cqw solid var(--gold); }
.cert-corner--tl { top: 1.9cqw; left: 1.9cqw; border-right: 0; border-bottom: 0; }
.cert-corner--tr { top: 1.9cqw; right: 1.9cqw; border-left: 0; border-bottom: 0; }
.cert-corner--bl { bottom: 1.9cqw; left: 1.9cqw; border-right: 0; border-top: 0; }
.cert-corner--br { bottom: 1.9cqw; right: 1.9cqw; border-left: 0; border-top: 0; }
.cert-head { display: flex; align-items: center; gap: 1.6cqw; }
.cert-escudo { width: 6.4cqw; height: 6.4cqw; color: var(--burgundy); }
.cert-inst { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: 1.45cqw; line-height: 1.25; color: var(--burgundy); text-align: left; font-weight: 600; border-left: 0.1cqw solid var(--burgundy-200); padding-left: 1.6cqw; }
.cert-kind { margin-top: 2.4cqw; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .32em; font-size: 2.3cqw; color: var(--burgundy); font-weight: 600; }
.cert-lead { margin-top: 1.4cqw; font-family: var(--font-display); font-style: italic; font-size: 1.75cqw; color: #5A4A40; }
.cert-name { font-family: var(--font-script); font-size: 6.4cqw; line-height: 1.1; color: #2A1E18; margin-top: .4cqw; padding: 0 4cqw .4cqw; border-bottom: 0.1cqw solid var(--gold); }
.cert-course { font-family: var(--font-display); font-weight: 600; font-size: 3.2cqw; line-height: 1.1; color: var(--burgundy); margin-top: .8cqw; text-wrap: balance; }
.cert-school { font-size: 1.4cqw; letter-spacing: .14em; text-transform: uppercase; color: #6E5F55; margin-top: .8cqw; font-weight: 600; }
.cert-detail { font-family: var(--font-display); font-size: 1.75cqw; margin-top: 1.2cqw; color: #3A2E27; }
.cert-detail b { font-weight: 700; }
.cert-signs { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 4cqw; }
.cert-sign { display: flex; flex-direction: column; align-items: center; color: #2C3A5A; }
.cert-sig { width: 15cqw; height: auto; margin-bottom: -.6cqw; }
.cert-line { display: block; width: 100%; max-width: 24cqw; height: 0.1cqw; background: #6E5F55; }
.cert-sign b { margin-top: .7cqw; font-size: 1.25cqw; text-transform: uppercase; letter-spacing: .14em; color: #5A4A40; font-weight: 600; }
.cert-seal { width: 11cqw; height: 11cqw; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #F0DEB6, #C9A56A 55%, #A9844F); box-shadow: 0 0 0 0.4cqw #FBF4E6, 0 0 0 0.55cqw #A9844F, 0 0.6cqw 1.4cqw rgba(80,50,10,.3); position: relative; color: #5D0D00; }
.cert-seal-escudo { width: 6.4cqw; height: 6.4cqw; color: #4A0A00; }
.cert-seal span { position: absolute; bottom: 1.4cqw; font-size: .8cqw; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #4A0A00; }
.cert-foot { margin-top: 1.8cqw; width: 100%; display: flex; justify-content: space-between; gap: 2cqw; font-size: 1.05cqw; color: #6E5F55; letter-spacing: .04em; }
.cert-foot b { font-family: ui-monospace, Menlo, monospace; color: #2E241E; }

@media (max-width: 1100px) {
  .cert-top { grid-template-columns: 1fr; }
  .cert-row { grid-template-columns: 96px minmax(0, 1fr); }
  .cert-row-facts, .cert-row-prog, .cert-row-act { grid-column: 2; }
  .cert-row-act { flex-direction: row; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .cert-summary > div { padding: var(--s-5) var(--s-4); }
  .cert-summary b { font-size: 2.3rem; }
  .cert-summary span { font-size: 0.66rem; }
  .cert-row { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5); }
  .cert-mini { width: 64px; }
  .cert-row-main h3 { font-size: 1.25rem; }
  .cert-row-facts, .cert-row-prog, .cert-row-act { grid-column: 1 / -1; }
  .cert-row-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: var(--s-4); border-top: 1px solid var(--line); }
  .cert-code-cell { grid-column: 1 / -1; }
  .cert-modal .modal-body { padding: 12px; }
  .cert-modal .modal-foot .btn { flex: 1 1 100%; }
  .cert-foot-note { width: 100%; }
}

/* ═════════════════════ IMPRESIÓN ═════════════════════ */
@page cert { size: A4 landscape; margin: 0; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Certificado: solo el papel, A4 apaisado */
  html.printing-cert body > :not(.modal-root) { display: none !important; }
  html.printing-cert body { background: #fff; }
  html.printing-cert .modal-root { position: static; display: block; padding: 0; background: none; animation: none; opacity: 1; }
  html.printing-cert .modal { width: auto; max-height: none; overflow: visible; box-shadow: none; border-radius: 0; animation: none; }
  html.printing-cert .modal-head, html.printing-cert .modal-foot { display: none; }
  html.printing-cert .modal-body { padding: 0; background: none; }
  html.printing-cert .cert-paper { page: cert; width: 297mm; height: 210mm; aspect-ratio: auto; box-shadow: none; padding: 7mm; break-inside: avoid; }
  /* Pasaporte: solo el documento */
  body[data-view="pasaporte"] #shell, body[data-view="pasaporte"] #bottom, body[data-view="pasaporte"] .closing,
  body[data-view="pasaporte"] .pp-actions, body[data-view="pasaporte"] .crumbs, body[data-view="pasaporte"] .pp-links,
  body[data-view="pasaporte"] .toasts, body[data-view="pasaporte"] .pp-sheet-head .link, body[data-view="pasaporte"] .sr-only { display: none !important; }
  body[data-view="pasaporte"] { background: #fff; }
  body[data-view="pasaporte"] .page { padding: 0; min-height: 0; }
  body[data-view="pasaporte"] .pp-page { background: none; }
  body[data-view="pasaporte"] .wrap { max-width: none; padding: 0 10mm; }
  body[data-view="pasaporte"] .pp-top { padding-top: 6mm; }
  body[data-view="pasaporte"] .pp-h1 { font-size: 26pt; }
  body[data-view="pasaporte"] .pp-book { grid-template-columns: 0.78fr 1.5fr; box-shadow: none; border: 1px solid #ddd; break-inside: avoid; margin-top: 6mm; }
  body[data-view="pasaporte"] .pp-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); box-shadow: none; break-inside: avoid; margin-top: 6mm; }
  body[data-view="pasaporte"] .pp-sheet { box-shadow: none; break-inside: avoid; margin-top: 6mm; }
  body[data-view="pasaporte"] .pp-comp-body { grid-template-columns: 1.1fr 1fr; }
  body[data-view="pasaporte"] .pp-book::after { display: block; }
  body[data-view="pasaporte"] .pp-cover { border-radius: 14px 0 0 14px; }
  body[data-view="pasaporte"] .pp-data { border-radius: 0 14px 14px 0; }
  body[data-view="pasaporte"] .pp-cover-in { flex-direction: column; padding: 10mm 4mm; }
  body[data-view="pasaporte"] .pp-cover-top, body[data-view="pasaporte"] .pp-cover-inst, body[data-view="pasaporte"] .pp-cover-ilc { display: block; }
  body[data-view="pasaporte"] .pp-escudo { width: 90px; height: 90px; }
  body[data-view="pasaporte"] .pp-cover-title { text-align: center; font-size: 1.5rem; }
  body[data-view="pasaporte"] .pp-stamps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body[data-view="pasaporte"] .pp-hito { break-inside: avoid; }
  body[data-view="pasaporte"] .view-enter, body[data-view="pasaporte"] .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}
