[hidden] { display: none !important; }
/* R∴L∴ Luz del Norte nº 63 — un faro que ilumina la noche */
:root {
  --noche: #0d1626;
  --noche-2: #142037;
  --noche-3: #1d2c4a;
  --oro: #c9a55c;
  --oro-claro: #e8d3a0;
  --oro-osc: #a5833d;
  --marfil: #f7f2e8;
  --papel: #fffdf8;
  --tinta: #1d2333;
  --gris: #6a6f7e;
  --linea: #e5dccb;
  --rojo: #a8423a;
  --verde: #3f7d5a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radio: 10px;
  --sombra: 0 1px 2px rgba(13,22,38,.06), 0 6px 24px rgba(13,22,38,.07);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--tinta); background: var(--marfil); }
img { max-width: 100%; display: block; }
a { color: var(--oro-osc); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--noche); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--gris); }
.small { font-size: .88rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.pre { white-space: pre-wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--oro); margin-bottom: 1rem; }
.empty { color: var(--gris); font-style: italic; padding: .5rem 0; }

/* ---------- emblema ---------- */
.emblem { color: var(--oro); flex: none; }
.lighthouse .beam { transform-origin: 50px 31px; animation: beam 6s ease-in-out infinite; }
@keyframes beam { 0%,100% { opacity: .12; } 50% { opacity: .42; } }
@media (prefers-reduced-motion: reduce) { .lighthouse .beam { animation: none; } }

/* ---------- noche estrellada ---------- */
.night { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1px 1px at 12% 22%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 14%, #fffb 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 42%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 64%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 84%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 88%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 40%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 34%, #fff7 50%, transparent 51%),
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(201,165,92,.16), transparent 70%),
    linear-gradient(180deg, #0a1220 0%, var(--noche) 55%, var(--noche-2) 100%); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.4em;
  border-radius: 999px; border: 1px solid transparent; font: 600 .95rem/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--oro); color: var(--noche); }
.btn-gold:hover { background: var(--oro-claro); }
.btn-ghost { border-color: rgba(232,211,160,.5); color: var(--oro-claro); background: transparent; }
.btn-ghost:hover { border-color: var(--oro-claro); background: rgba(232,211,160,.08); }
.btn-outline { border-color: rgba(232,211,160,.55); color: var(--oro-claro); }
.btn-outline:hover { background: rgba(232,211,160,.1); }
.btn-outline .emblem { color: currentColor; }
.btn-outline-dark { border-color: var(--linea); color: var(--tinta); background: var(--papel); }
.btn-outline-dark:hover { border-color: var(--oro); }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--linea);
  background: var(--papel); color: var(--tinta); text-decoration: none; font-size: 1.05rem; cursor: pointer; }
.icon-btn:hover { border-color: var(--oro); color: var(--oro-osc); }
.icon-btn.on { color: var(--oro-osc); border-color: var(--oro); background: #fbf3df; }
.danger, .icon-btn.danger:hover { color: var(--rojo); }
.icon-btn.danger:hover { border-color: var(--rojo); }

/* ---------- cabecera pública ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,22,38,.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201,165,92,.18); }
.site-header.over-hero { position: absolute; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--marfil); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font: 600 1.35rem/1 var(--serif); letter-spacing: .02em; }
.brand small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); margin-top: .25rem; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a:not(.btn) { color: #e9e4d8; text-decoration: none; font-size: .93rem; position: relative; padding: .3rem 0; }
.site-nav > a:not(.btn):hover, .site-nav > a[aria-current] { color: var(--oro-claro); }
.site-nav > a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--oro); }
.nav-toggle, .nav-burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--marfil); padding: 150px 0 110px; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(transparent, rgba(13,22,38,.6)); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: 3rem; }
.hero h1 { color: #fff; font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 500; letter-spacing: .01em; margin-bottom: .3em; }
.hero-lead { font-size: 1.12rem; color: #d8d4ca; max-width: 34em; }
.hero-lead strong { color: var(--oro-claro); font-weight: 500; }
.hero-emblem { display: grid; place-items: center; }
.hero-emblem .emblem { width: min(340px, 70vw); height: auto; filter: drop-shadow(0 0 40px rgba(201,165,92,.25)); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- portada ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: -52px; position: relative; z-index: 2; }
.pillar { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.8rem 1.6rem; box-shadow: var(--sombra); }
.pillar .num { font: 600 .9rem var(--serif); color: var(--oro); letter-spacing: .2em; }
.pillar h3 { font-size: 1.7rem; margin: .2rem 0 .4rem; }
.pillar p { margin: 0; color: var(--gris); font-size: .97rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 5rem auto; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: var(--tinta); padding: 2rem 1.8rem;
  border-top: 2px solid var(--oro); background: linear-gradient(180deg, #fff, var(--papel)); border-radius: 0 0 var(--radio) var(--radio);
  transition: transform .2s, box-shadow .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.kicker { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-osc); font-weight: 600; }
.card-link h3 { font-size: 1.8rem; margin: .4rem 0 .6rem; }
.card-link p { color: var(--gris); flex: 1; }
.more { color: var(--oro-osc); font-weight: 600; font-size: .92rem; }
.quote-band { background: var(--noche); color: var(--oro-claro); padding: 4.5rem 0; text-align: center; position: relative; }
.quote-band blockquote { margin: 0 auto; max-width: 30em; font: italic 500 clamp(1.5rem, 3.4vw, 2.3rem)/1.35 var(--serif); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 5rem auto; padding: 2.4rem 2.6rem;
  background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; color: var(--gris); }

/* ---------- páginas interiores ---------- */
.page-head { position: relative; color: var(--marfil); padding: 90px 0 70px; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-weight: 500; }
.page-head .lead { font: italic 500 1.4rem/1.4 var(--serif); color: var(--oro-claro); max-width: 36em; margin: 0; }
.prose { max-width: 720px; margin: 4rem auto; }
.prose h2 { margin-top: 2.4rem; padding-top: .2rem; position: relative; }
.prose h2::before { content: ""; display: block; width: 36px; height: 2px; background: var(--oro); margin-bottom: .9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--oro-osc); }
.prose strong { color: var(--noche); font-weight: 600; }
.prose blockquote { margin: 2rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--oro); background: #fbf6ea;
  font: italic 500 1.25rem/1.5 var(--serif); color: var(--noche-3); }
.prose blockquote p:last-child { margin: 0; }
.app-main .prose { margin: 0; max-width: none; }
.error-page { text-align: center; padding: 130px 0 110px; }
.error-emblem { display: grid; place-items: center; margin-bottom: 1rem; }

/* ---------- contacto y formularios ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; margin: 4rem auto 5rem; align-items: start; }
.contact-grid .prose { margin: 0; }
.contact-points { list-style: none; padding: 0 !important; }
.contact-points li { padding-left: 1.6rem; position: relative; }
.contact-points li::before { content: "✦"; position: absolute; left: 0; color: var(--oro); }
.panel { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.6rem; box-shadow: var(--sombra); }
.form { display: flex; flex-direction: column; gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--noche-3); }
input:not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1px solid var(--linea); border-radius: 8px;
  background: #fff; color: var(--tinta); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(201,165,92,.2); }
input[type=file] { font: inherit; font-size: .92rem; padding: .6rem; border: 1px dashed var(--oro); border-radius: 8px; background: #fffaf0; width: 100%; }
textarea { resize: vertical; }
textarea.mono { font-size: .9rem; line-height: 1.55; }
.check { display: flex; align-items: center; gap: .55rem; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--oro-osc); flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
hr { border: 0; border-top: 1px solid var(--linea); margin: .5rem 0; }
.flashes { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.flash { padding: .8rem 1rem; border-radius: 8px; border: 1px solid; font-size: .95rem; }
.flash.ok { background: #eef6f0; border-color: #bcd8c5; color: #24563a; }
.flash.error { background: #fbeeec; border-color: #ebc4bf; color: #7d2b24; }
.flash.info { background: #fbf4e2; border-color: #ead9ad; color: #6a5220; }
.flash.secret { background: var(--noche); border-color: var(--oro); color: var(--oro-claro); font-family: ui-monospace, Menlo, monospace; }

/* ---------- pie ---------- */
.site-footer { background: var(--noche); color: #bfbcb3; padding: 3.5rem 0 1.5rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: var(--oro); font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { display: block; color: #d8d4ca; text-decoration: none; margin-bottom: .5rem; }
.site-footer a:hover { color: var(--oro-claro); }
.site-footer .muted { color: #8e8c86; max-width: 26em; margin-top: 1rem; }
.brand-footer { color: var(--marfil); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(201,165,92,.18);
  margin-top: 2.5rem; padding-top: 1.2rem; font-size: .8rem; letter-spacing: .06em; color: #8e8c86; }

/* ---------- login ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; position: relative; background: var(--noche); padding: 24px 16px; }
.login-box { position: relative; z-index: 1; width: min(400px, 100%); text-align: center; color: var(--marfil);
  background: rgba(20,32,55,.72); border: 1px solid rgba(201,165,92,.25); border-radius: 16px; padding: 2.4rem 2rem 1.8rem; backdrop-filter: blur(6px); }
.login-box h1 { color: #fff; font-weight: 500; margin: .4rem 0 .1rem; }
.login-box .muted { color: #a9a69e; margin-bottom: 1.6rem; }
.login-box .form { text-align: left; }
.login-box .field > span { color: var(--oro-claro); }
.login-box input { background: rgba(255,255,255,.95); }
.login-emblem { display: inline-block; }
.back { display: inline-block; margin-top: 1.4rem; color: #a9a69e; font-size: .88rem; text-decoration: none; }

/* ---------- área privada ---------- */
.app-body { background: #f3eee3; }
.app-bar { background: var(--noche); color: var(--marfil); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.app-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem max(16px, calc((100% - 1180px)/2)); }
.who { display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
.who form { display: inline; }
.who .link-btn { color: #bdb9ae; font-size: .85rem; }
.app-nav { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; padding: 0 max(10px, calc((100% - 1190px)/2)); border-top: 1px solid rgba(201,165,92,.15); }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav a { flex: none; color: #cfcabd; text-decoration: none; font-size: .9rem; padding: .75rem .8rem; border-bottom: 2px solid transparent; }
.app-nav a:hover { color: #fff; }
.app-nav a[aria-current] { color: var(--oro-claro); border-bottom-color: var(--oro); }
.app-nav .nav-admin { color: var(--oro); }
.app-nav .nav-web { margin-left: auto; color: #8e8c86; }
.app-main { width: min(1180px, 100% - 32px); margin: 1.8rem auto 4rem; }
.page-title { margin-bottom: 1.4rem; }
.page-title h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: .15em; }
.page-title p { margin: 0; }
.crumbs { margin: 0 0 .5rem; font-size: .9rem; }
.crumbs a { text-decoration: none; }
.badge { display: inline-block; font: 600 .7rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .35em .6em; border-radius: 4px; vertical-align: middle; white-space: nowrap; }
.badge.g1 { background: #ece8de; color: #5a5548; }
.badge.g2 { background: #e2e9f3; color: #2c4a72; }
.badge.g3 { background: #f6ead0; color: #7a5a1d; }
.badge.admin { background: var(--noche); color: var(--oro-claro); }
.app-bar .badge.g1, .app-bar .badge.g2, .app-bar .badge.g3 { background: rgba(201,165,92,.18); color: var(--oro-claro); }

.welcome { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--noche); color: var(--marfil); border-radius: 14px; padding: 2rem 2.2rem; margin-bottom: 1.6rem; position: relative; overflow: hidden; }
.welcome::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(rgba(201,165,92,.22), transparent 70%); }
.welcome h1 { color: #fff; font-weight: 500; margin-bottom: .1em; }
.welcome .muted { color: #a9a69e; margin: 0; }
.welcome .eyebrow { margin-bottom: .5rem; }
.stats { display: flex; gap: .8rem; position: relative; }
.stats a { text-decoration: none; text-align: center; min-width: 92px; padding: .9rem 1rem; border: 1px solid rgba(201,165,92,.3); border-radius: 10px; color: #cfcabd; }
.stats strong { display: block; font: 600 1.9rem/1 var(--serif); color: var(--oro-claro); }
.stats span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.panel-head h2 { font-size: 1.5rem; margin: 0; }
.panel-head a { font-size: .88rem; text-decoration: none; }
.panel > h2 { font-size: 1.5rem; }
.event-row { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--linea); }
.event-row:first-of-type { border-top: 0; }
.event-row h3 { font-size: 1.2rem; margin: 0; }
.event-row p { margin: 0; font-size: .9rem; }
.event-row .grow { flex: 1; }
.event-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; text-align: right; }
.date-chip { flex: none; width: 56px; text-align: center; border-radius: 8px; background: var(--noche); color: var(--oro-claro); padding: .45rem 0; }
.date-chip strong { display: block; font: 600 1.5rem/1 var(--serif); }
.date-chip span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.event-row > div:nth-child(2) { flex: 1; }
.aviso-mini { padding: .6rem 0; border-top: 1px solid var(--linea); }
.aviso-mini:first-of-type { border-top: 0; }
.aviso-mini h3 { font-size: 1.15rem; margin: 0; }
.aviso-mini p { margin: 0; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .6rem 0; border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.list li:first-child { border-top: 0; }
.list li a { flex: 1 1 60%; }
ul.panel.list { padding: .6rem 1.6rem; }
.album-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.album-tile { text-decoration: none; color: var(--tinta); font-size: .85rem; }
.album-tile .cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: var(--noche); display: grid; place-items: center; }
.album-tile .t { display: block; margin-top: .35rem; line-height: 1.3; }
.faded { opacity: .85; margin-top: 1.4rem; }

/* biblioteca */
.search-bar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.4rem; }
.search-bar input[type=search] { flex: 1 1 260px; }
.search-bar select { flex: 0 1 260px; width: auto; }
.book-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.book { display: flex; align-items: center; gap: 1rem; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: .8rem 1rem; }
.book-spine { flex: none; width: 40px; height: 54px; border-radius: 3px 6px 6px 3px; display: grid; place-items: center;
  background: linear-gradient(90deg, var(--noche-3), var(--noche)); color: var(--oro-claro); font: 600 1.4rem var(--serif); box-shadow: inset 3px 0 0 rgba(201,165,92,.6); }
.book-info { flex: 1; min-width: 0; }
.book-title { font: 600 1.15rem/1.25 var(--serif); color: var(--noche); text-decoration: none; }
.book-title:hover { color: var(--oro-osc); }
.book-info p { margin: .15rem 0 0; }
.book-actions, .plancha-actions, .row-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.book-actions form, .plancha-actions form, .row-actions form { display: inline; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.4rem; margin: 1.6rem 0; font-size: .95rem; }
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state .emblem { margin: 0 auto 1rem; }

/* pestañas, subidas */
.tabs { display: flex; gap: .3rem; overflow-x: auto; margin-bottom: 1.2rem; border-bottom: 1px solid var(--linea); scrollbar-width: none; }
.tabs a { flex: none; padding: .7rem 1rem; text-decoration: none; color: var(--gris); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a[aria-current] { color: var(--noche); border-bottom-color: var(--oro); }
.tabs .count { font-size: .75rem; background: #ebe4d3; border-radius: 99px; padding: .1em .55em; margin-left: .2em; color: var(--gris); }
details.upload { margin-bottom: 1.4rem; padding: 0; }
details.upload > summary { cursor: pointer; padding: 1rem 1.6rem; font-weight: 600; color: var(--oro-osc); list-style: none; }
details.upload > summary::-webkit-details-marker { display: none; }
details.upload[open] > summary { border-bottom: 1px solid var(--linea); }
details.upload > form { padding: 1.4rem 1.6rem 1.6rem; }
details.help summary { cursor: pointer; color: var(--oro-osc); font-size: .9rem; }
.plancha-list { display: grid; gap: .8rem; }
.plancha { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.3rem; }
.plancha-icon { flex: none; width: 46px; height: 56px; border-radius: 4px; border: 1px solid var(--oro); color: var(--oro-osc);
  display: grid; place-items: center; font: 700 .7rem var(--sans); letter-spacing: .05em; background: #fffaf0; }
.plancha-body { flex: 1; min-width: 0; }
.plancha-body h3 { margin: 0 0 .1rem; font-size: 1.3rem; }
.plancha-body h3 a { color: var(--noche); text-decoration: none; }
.plancha-body p:last-child { margin: 0; }

/* álbum */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.album-card { position: relative; display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--noche); text-decoration: none; box-shadow: var(--sombra); }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover img { transform: scale(1.04); }
.cover-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.album-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem .9rem; color: #fff; background: linear-gradient(transparent, rgba(8,13,24,.88)); }
.album-meta h3 { color: #fff; margin: 0; font-size: 1.35rem; }
.album-meta p { margin: 0; color: #d6d2c6; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.ph { position: relative; margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #e7e0d0; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(13,22,38,.7); color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s; }
.ph:hover .ph-del, .ph-del:focus { opacity: 1; }
@media (hover: none) { .ph-del { opacity: .85; } }
.danger-zone { margin-top: 2.5rem; text-align: right; font-size: .9rem; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,10,18,.95); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 1rem; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 0; right: 0; font-size: 1.8rem !important; }
.lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0; top: 50%; transform: translateY(-50%); }
.lb-dl { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: var(--oro-claro); text-decoration: none; font-size: .9rem; }

/* avisos, perfil, admin */
.aviso { margin-bottom: 1rem; }
.aviso header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.aviso h2 { margin: 0; font-size: 1.5rem; }
.pinned { border-left: 3px solid var(--oro); }
.narrow { max-width: 560px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; margin: 0 0 1.4rem; }
.kv dt { color: var(--gris); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 500; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat-card { text-decoration: none; color: var(--tinta); }
.stat-card strong { display: block; font: 600 2.4rem/1 var(--serif); color: var(--oro-osc); }
.stat-card span { color: var(--gris); font-size: .9rem; }
.table-wrap { overflow-x: auto; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); margin-top: 1.4rem; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); background: #faf6ec; }
.table tr:last-child td { border-bottom: 0; }
.inline-form { display: flex; gap: .5rem; align-items: center; }
.inline-form select { width: auto; padding: .4rem .6rem; }
.users { padding: .4rem 1rem; }
.user-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr 56px 56px 1fr auto; gap: .6rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--linea); }
.user-row input:not([type=checkbox]), .user-row select { padding: .45rem .6rem; font-size: .9rem; }
.user-head { border-top: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); font-weight: 600; }
.user-row.inactive { opacity: .5; }
.message { margin-bottom: 1rem; }
.message header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--linea); padding-bottom: .6rem; margin-bottom: .8rem; }
.message h3 { margin: 0; font-size: 1.25rem; }
.message h3 a { font: 400 .9rem var(--sans); }
.message.unread { border-left: 3px solid var(--oro); }
.aviso-admin { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .8rem; padding: 1rem 1.3rem; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav-burger { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; display: block; width: 24px; height: 2px; background: var(--oro-claro); position: relative; transition: .2s; }
  .nav-burger span::before { position: absolute; top: -7px; }
  .nav-burger span::after { position: absolute; top: 7px; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--noche); padding: .5rem 16px 1.2rem; border-bottom: 1px solid rgba(201,165,92,.25); display: none; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav > a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 1rem; }
  .site-nav > a[aria-current]::after { display: none; }
  .site-nav .btn { margin-top: 1rem; }
  .hero { padding: 120px 0 90px; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; gap: 1rem; }
  .hero-emblem { order: -1; justify-content: start; }
  .hero-emblem .emblem { width: 120px; }
  .pillars, .cards { grid-template-columns: 1fr; }
  .contact-grid, .dash-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .user-head { display: none; }
  .user-row { grid-template-columns: 1fr 1fr; }
  .user-row .sr { position: static; width: auto; height: auto; clip: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 1.8rem 1.4rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .panel { padding: 1.2rem; }
  .welcome { padding: 1.5rem 1.3rem; }
  .stats { width: 100%; }
  .stats a { flex: 1; min-width: 0; padding: .7rem .4rem; }
  .who-name { display: none; }
  .book { flex-wrap: wrap; }
  .book-actions { width: 100%; justify-content: flex-end; }
  .plancha { flex-wrap: wrap; }
  .plancha-actions { width: 100%; justify-content: flex-end; }
  .event-row { flex-wrap: wrap; }
  .event-side { flex-direction: row; width: 100%; justify-content: space-between; padding-left: 72px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .ph { border-radius: 2px; }
  .search-bar select { flex: 1 1 100%; }
  .album-mini { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   PORTADA DINÁMICA — de la noche al amanecer
   Variables que actualiza app.js al hacer scroll:
   --sky-top, --sky-bot, --stars, --sun, --beam
   ===================================================================== */
.home { background: var(--noche); --sky-top: #060c18; --sky-bot: #0d1626; --stars: 1; --sun: 0; --beam: 1; }
.home main { position: relative; z-index: 1; }
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 100%); }
.stars { position: absolute; inset: -5%; opacity: var(--stars);
  transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -8px), 0);
  background:
    radial-gradient(1.2px 1.2px at 8% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 18% 38%, #fffc 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 27% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 33% 56%, #fff9 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 41% 24%, #fffd 50%, transparent 51%), radial-gradient(1px 1px at 52% 6%, #fffa 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 58% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 66% 14%, #fffb 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 73% 48%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 81% 9%, #fffd 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 94% 58%, #fffa 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 64%, #fff8 50%, transparent 51%), radial-gradient(1.2px 1.2px at 47% 70%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 62%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 12% 82%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 44%, #fff8 50%, transparent 51%), radial-gradient(1.4px 1.4px at 77% 72%, #fff9 50%, transparent 51%);
  animation: twinkle 7s ease-in-out infinite alternate; }
@keyframes twinkle { from { filter: brightness(.85); } to { filter: brightness(1.25); } }
.sun { position: absolute; left: 50%; bottom: 0; width: 46vmin; height: 46vmin; margin-left: -23vmin; border-radius: 50%;
  background: radial-gradient(circle, #fff6d8 0%, #ffd98a 38%, rgba(255,190,110,.55) 58%, transparent 72%);
  opacity: var(--sun); transform: translateY(calc((1 - var(--sun)) * 55vmin - 14vh)); filter: blur(1px); }
.sea { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 11vh; min-height: 60px; }
.wave { fill: var(--sky-bot); filter: brightness(.55); }
.w1 { opacity: .55; animation: waves 9s ease-in-out infinite alternate; }
.w2 { opacity: .9; animation: waves 13s ease-in-out infinite alternate-reverse; }
@keyframes waves { from { transform: translateX(0); } to { transform: translateX(-60px); } }

/* hero */
.home .hero { background: none; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 100px; overflow: hidden; }
.home .hero::after { display: none; }
.hero-emblem { position: relative; }
.hero-lh .beam { display: none; }                      /* el haz real lo pinta .beam-sweep */
.beam-origin { position: absolute; left: 50%; top: 30.5%; width: 0; height: 0; z-index: -1; opacity: var(--beam); }
.beam-sweep { position: absolute; left: 0; top: 0; width: 320vmax; height: 320vmax; translate: -50% -50%; border-radius: 50%;
  background: conic-gradient(from 0deg,
     transparent 0deg, rgba(255,226,160,.0) 70deg, rgba(255,226,160,.22) 84deg, rgba(255,236,190,.5) 90deg, rgba(255,226,160,.22) 96deg, transparent 110deg,
     transparent 250deg, rgba(255,226,160,.16) 264deg, rgba(255,236,190,.38) 270deg, rgba(255,226,160,.16) 276deg, transparent 290deg);
  -webkit-mask: radial-gradient(circle, #000 0 2%, rgba(0,0,0,.85) 12%, rgba(0,0,0,.25) 38%, transparent 60%);
          mask: radial-gradient(circle, #000 0 2%, rgba(0,0,0,.85) 12%, rgba(0,0,0,.25) 38%, transparent 60%);
  mix-blend-mode: screen; animation: sweep 11s linear infinite; }
@keyframes sweep { to { rotate: 360deg; } }
.lamp-glow { position: absolute; left: 50%; top: 30.5%; width: 90px; height: 90px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,240,200,.95), rgba(255,210,120,.35) 40%, transparent 70%);
  opacity: calc(var(--beam) * .9); animation: lamp 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes lamp { 0%,100% { transform: scale(.8); opacity: calc(var(--beam) * .55); } 50% { transform: scale(1.15); opacity: var(--beam); } }
.hero-text { position: relative; z-index: 2; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(232,211,160,.55); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--oro-claro); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* secciones sobre el cielo */
.home .pillars { margin-top: 0; padding-top: 2rem; }
.home .pillar { background: rgba(255,253,248,.96); }
.symbols-sec, .timeline-sec, .activities-sec { padding: 7rem 0 3rem; color: #e6e1d4; }
.symbols-sec h2, .timeline-sec h2, .activities-sec h2 { color: #fff; font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.1rem); }
.sec-lead { max-width: 40em; font-size: 1.08rem; color: #cfcabd; }
.hint { color: var(--oro-claro); white-space: nowrap; }

/* símbolos */
.symbols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; perspective: 1200px; }
.symbol { all: unset; cursor: pointer; display: block; height: 230px; -webkit-tap-highlight-color: transparent; }
.symbol:focus-visible { outline: 2px solid var(--oro); outline-offset: 4px; border-radius: 14px; }
.symbol-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.symbol[aria-pressed="true"] .symbol-inner { transform: rotateY(180deg); }
.symbol-front, .symbol-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  padding: 1.4rem; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; }
.symbol-front { border: 1px solid rgba(201,165,92,.35); background: linear-gradient(160deg, rgba(29,44,74,.75), rgba(13,22,38,.75)); color: var(--oro); backdrop-filter: blur(3px); transition: border-color .3s, box-shadow .3s; }
.symbol:hover .symbol-front { border-color: var(--oro); box-shadow: 0 0 40px rgba(201,165,92,.18); }
.symbol-front strong { font: 600 1.45rem var(--serif); color: var(--oro-claro); }
.symbol-back { transform: rotateY(180deg); background: linear-gradient(160deg, #f7ecd2, #e9d3a1); color: var(--noche); justify-content: center; gap: .6rem; }
.symbol-back strong { font: 600 1.3rem var(--serif); }
.symbol-back span { font-size: .95rem; line-height: 1.5; }

/* línea del tiempo */
.tl-wrap { position: relative; margin-top: 2.4rem; }
.timeline { list-style: none; margin: 0; padding: 1rem max(16px, calc((100% - 1140px) / 2)) 2rem; display: flex; gap: 1.4rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100% - 1140px) / 2)); scrollbar-width: none; }
.timeline::-webkit-scrollbar { display: none; }
.tl-item::before { content: ""; position: absolute; top: 9px; left: 8px; right: -1.4rem; height: 1px; background: rgba(201,165,92,.55); }
.tl-last::before { right: 40%; background: linear-gradient(90deg, rgba(201,165,92,.55), transparent); }
.tl-item { position: relative; flex: 0 0 min(300px, 78vw); scroll-snap-align: start; padding-top: 2.4rem; }
.tl-dot { position: absolute; top: 2px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--noche); border: 2px solid var(--oro); box-shadow: 0 0 0 4px rgba(201,165,92,.15); }
.tl-year { display: block; font: 600 2.2rem/1 var(--serif); color: var(--oro-claro); margin-bottom: .5rem; }
.tl-item h3 { color: #fff; font-weight: 500; font-size: 1.4rem; margin-bottom: .35rem; }
.tl-item p { color: #cfcabd; font-size: .97rem; margin: 0; }
.tl-last .tl-dot { background: var(--oro); box-shadow: 0 0 0 6px rgba(201,165,92,.25), 0 0 30px rgba(255,220,150,.7); }
.tl-last .tl-year { color: #fff; }
.tl-nav { position: absolute; top: -4.2rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(232,211,160,.45); background: rgba(13,22,38,.4);
  color: var(--oro-claro); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.tl-nav:hover { border-color: var(--oro-claro); }
.tl-prev { right: calc(max(16px, (100% - 1140px) / 2) + 54px); }
.tl-next { right: max(16px, calc((100% - 1140px) / 2)); }
.dark-band { background: linear-gradient(180deg, var(--noche), var(--noche-2)); padding-bottom: 4rem; }

/* actividades */
.activities { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.activity { display: flex; gap: 1.1rem; background: rgba(255,253,248,.97); color: var(--tinta); border-radius: 14px; padding: 1.4rem; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.activity h3 { margin: 0 0 .1rem; }
.activity-body p { margin-bottom: .6rem; }
.activity .date-chip { height: fit-content; }

/* tarjetas y amanecer */
.cards-sec { padding: 3rem 0 0; }
.cards-sec .cards { margin-top: 2rem; margin-bottom: 3rem; }
.cards-sec .card-link { background: rgba(255,253,248,.94); }
.dawn { padding: 6rem 0 16vh; text-align: center; color: #2a2230; }
.dawn-inner { max-width: 760px; }
.dawn blockquote { margin: 0 0 3rem; font: italic 500 clamp(1.5rem, 3.4vw, 2.3rem)/1.35 var(--serif); color: #3b2b33; }
.dawn h2 { font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.4rem); color: #1d1a2a; }
.dawn p { font-size: 1.1rem; color: #43384a; }
.btn-dark { background: var(--noche); color: var(--oro-claro); margin-top: 1rem; }
.btn-dark:hover { background: var(--noche-3); }

/* aparición al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* contacto enviado: el faro se enciende */
.sent-panel { text-align: center; padding: 2.6rem 1.8rem; background: linear-gradient(180deg, var(--noche), var(--noche-2)); color: #ddd8cc; border-color: rgba(201,165,92,.35); }
.sent-panel h2 { color: #fff; font-weight: 500; }
.sent-panel .btn-outline-dark { background: transparent; color: var(--oro-claro); border-color: rgba(232,211,160,.5); }
.sent-light { display: grid; place-items: center; margin-bottom: 1rem; }
.lit .beam { animation: lit-beam 2.4s ease-out forwards, beam 6s 2.4s ease-in-out infinite; opacity: 0; }
@keyframes lit-beam { 0% { opacity: 0; } 40% { opacity: .6; } 100% { opacity: .35; } }

@media (max-width: 920px) {
  .home .hero { align-items: flex-start; padding-top: 110px; }
  .symbols { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .symbol { height: 210px; }
  .symbol-back span { font-size: .88rem; }
  .tl-nav { display: none; }
  .lamp-glow { width: 50px; height: 50px; }
  .home .hero-emblem { width: 120px; justify-self: start; }
  .symbol { height: 190px; }
}
@media (max-width: 600px) {
  .symbols-sec, .timeline-sec, .activities-sec { padding-top: 5rem; }
  .symbol { height: 220px; }
  .symbol-front svg { width: 52px; height: 52px; }
  .symbol-front strong { font-size: 1.2rem; }
  .symbol-back { padding: 1rem .9rem; }
  .symbol-back strong { font-size: 1.1rem; }
  .symbol-back span { font-size: .82rem; line-height: 1.42; }
  .activity { flex-direction: column; }
  .activities { grid-template-columns: 1fr; }
  .dawn { padding-bottom: 22vh; }
}
@media (prefers-reduced-motion: reduce) {
  .beam-sweep, .lamp-glow, .stars, .wave, .scroll-hint span { animation: none !important; }
  .beam-sweep { rotate: 60deg; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .symbol-inner { transition: none; }
}
.home .site-footer { position: relative; z-index: 1; }

/* ---------- v3: errores de formulario ---------- */
.field-error { color: var(--rojo); font-size: .85rem; font-weight: 500; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(168,66,58,.12); }
.check.has-error span { color: var(--rojo); }
.grid-2.tight { align-items: start; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px;
  background: var(--rojo); color: #fff; font: 600 .72rem/1 var(--sans); }
.admin-inbox { margin-bottom: 1.4rem; }
.admin-inbox.has-new { border-left: 4px solid var(--oro); }
.inbox-row { display: flex; gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--linea); }
.inbox-row:first-of-type { border-top: 0; }
.inbox-row p { margin: .15rem 0 0; }
.grow { flex: 1; min-width: 0; }
.contact-line { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: .2rem 0; }
.contact-line a { text-decoration: none; }
@media (max-width: 600px) { .inbox-row { flex-direction: column; align-items: flex-start; } }

/* ---------- v3: tabla de hermanos ---------- */
.center { text-align: center !important; }
.nowrap { white-space: nowrap; }
.users-table td { padding: .55rem .6rem; }
.users-table input:not([type=checkbox]), .users-table select { padding: .45rem .6rem; font-size: .9rem; min-width: 110px; }
.users-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--oro-osc); }
.users-table tr.inactive td { opacity: .5; }
@media (max-width: 920px) {
  .users-table thead { display: none; }
  .users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; }
  .users-table tr { padding: .8rem 1rem; border-bottom: 1px solid var(--linea); }
  .users-table td { border: 0; padding: .3rem 0; display: flex; align-items: center; gap: .8rem; }
  .users-table td[data-label]::before { content: attr(data-label); flex: 0 0 120px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
  .users-table td.center { justify-content: flex-start; text-align: left !important; }
  .users-table input:not([type=checkbox]), .users-table select { flex: 1; }
}

/* ---------- v3: desplegable múltiple ---------- */
.multi-select { position: relative; }
.multi-select > summary { list-style: none; cursor: pointer; padding: .7rem 2.2rem .7rem .85rem; border: 1px solid var(--linea); border-radius: 8px; background: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.multi-select > summary::-webkit-details-marker { display: none; }
.multi-select > summary::after { content: "▾"; position: absolute; right: .9rem; top: 50%; translate: 0 -50%; color: var(--gris); }
.multi-select[open] > summary { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(201,165,92,.2); }
.multi-options { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto;
  background: #fff; border: 1px solid var(--linea); border-radius: 8px; box-shadow: var(--sombra); padding: .4rem .8rem; }
.multi-options .check { padding: .45rem 0; border-bottom: 1px solid #f1ece0; }
.multi-options .check:last-child { border-bottom: 0; }
.agape-line { font-size: .88rem; color: var(--oro-osc); margin-top: .15rem !important; }
.inline-edit { margin-top: .6rem; }
.inline-edit > summary { cursor: pointer; color: var(--oro-osc); font-size: .88rem; }
.inline-edit > form { margin-top: .8rem; }

/* ---------- v3: biblioteca ---------- */
.lib-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.lib-head .actions { margin: 0; }
.view-toggle { display: inline-flex; border: 1px solid var(--linea); border-radius: 99px; overflow: hidden; margin-left: auto; background: var(--papel); }
.view-toggle a { padding: .5rem .9rem; font-size: .88rem; text-decoration: none; color: var(--gris); }
.view-toggle a[aria-current] { background: var(--noche); color: var(--oro-claro); }
.cat-desc { margin: -.6rem 0 1.2rem; padding: .7rem 1rem; border-left: 3px solid var(--oro); background: #fbf6ea; font-style: italic; color: var(--noche-3); }
.badge.new { background: #e6f1ea; color: #2c6447; }
.book { position: relative; }
.book-thumb { flex: none; width: 40px; height: 56px; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.bulk-check { width: 18px; height: 18px; accent-color: var(--oro-osc); flex: none; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .7rem 1rem; margin-bottom: .8rem; border: 1px dashed var(--oro); border-radius: var(--radio); background: #fffaf0; }
.bulk-bar select { width: auto; padding: .4rem .6rem; }
.icon-btn.sm { width: 30px; height: 30px; font-size: .9rem; }
.book-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.4rem 1.1rem; }
.book-card { position: relative; display: flex; flex-direction: column; }
.book-card .bulk-check { position: absolute; top: 8px; left: 8px; z-index: 2; }
.cover { display: block; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden; background: var(--noche);
  box-shadow: 0 2px 6px rgba(13,22,38,.15), 0 10px 24px rgba(13,22,38,.12); transition: transform .2s, box-shadow .2s; }
.cover:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(13,22,38,.18), 0 18px 34px rgba(13,22,38,.16); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-ph { display: flex; flex-direction: column; justify-content: center; gap: .5rem; height: 100%; padding: 1rem .9rem; text-align: center;
  background: linear-gradient(160deg, var(--noche-3), var(--noche)); color: var(--oro-claro); box-shadow: inset 4px 0 0 rgba(201,165,92,.55); }
.cover-ph span { font: 600 1.05rem/1.25 var(--serif); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cover-ph small { font-size: .75rem; color: #b9b3a3; }
.book-card-body { padding-top: .6rem; }
.book-card .book-title { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-card p { margin: .1rem 0 .4rem; }
.book-card .book-actions { gap: .3rem; }
/* novedades en el inicio */
.span-all { grid-column: 1 / -1; }
.news-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.news-book { text-decoration: none; color: var(--tinta); display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.news-book img, .news-book .cover-ph { aspect-ratio: 2/3; width: 100%; object-fit: cover; border-radius: 3px 7px 7px 3px; box-shadow: 0 4px 14px rgba(13,22,38,.15); }
.news-book .cover-ph { display: grid; place-items: center; font: 600 2.4rem var(--serif); }
.news-book strong { font: 600 .98rem/1.25 var(--serif); margin-top: .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* subida */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; padding: 2.6rem 1.4rem;
  border: 2px dashed var(--oro); border-radius: 14px; background: #fffaf0; cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone.over { background: #f7ecd2; border-color: var(--oro-osc); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { font-size: 2.2rem; color: var(--oro-osc); line-height: 1; }
.dz-files { font-size: .88rem; color: var(--noche-3); max-width: 100%; }
.progress { position: relative; height: 26px; border-radius: 99px; background: #ece5d5; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--oro-osc), var(--oro)); transition: width .2s; }
.progress-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; font-weight: 600; color: var(--noche); }
.review-list { display: grid; gap: .8rem; }
.review-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; }
.review-item.dup { opacity: .75; border-color: #ebc4bf; }
.review-fields { flex: 1; min-width: 0; }
.review-fields p { margin: 0 0 .5rem; }
/* admin: categorías y ficha */
.create-cat { margin-bottom: 1rem; }
.create-cat input { max-width: 340px; }
.cat-list { border-top: 1px solid var(--linea); }
.cat-item { border-bottom: 1px solid var(--linea); }
.cat-item > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .8rem .2rem; list-style: none; }
.cat-item > summary::-webkit-details-marker { display: none; }
.cat-item > summary::before { content: "▸"; color: var(--oro-osc); transition: transform .2s; }
.cat-item[open] > summary::before { transform: rotate(90deg); }
.cat-sum-desc { flex-basis: 100%; padding-left: 1.2rem; }
.cat-body { padding: .4rem 0 1.2rem 1.2rem; display: grid; gap: 1rem; }
.cat-actions { display: grid; gap: .6rem; }
.cat-actions .inline-form { flex-wrap: wrap; }
.book-edit { display: grid; grid-template-columns: 260px 1fr; gap: 1.4rem; align-items: start; }
.book-edit > div { display: grid; gap: 1.4rem; }
.cover-panel { display: grid; gap: .8rem; }
.cover.big { width: 100%; }
.danger-panel { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-color: #ebc4bf; }
.danger-panel p { margin: 0; }
@media (max-width: 920px) { .news-row { grid-template-columns: repeat(3, 1fr); } .book-edit { grid-template-columns: 1fr; } .cover-panel { max-width: 320px; } }
@media (max-width: 600px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem .8rem; }
  .news-row { grid-template-columns: repeat(2, 1fr); }
  .view-toggle { margin-left: 0; }
  .review-item { flex-direction: column; }
}
.zip-tree { font-family: ui-monospace, Menlo, monospace; margin-top: 1.4rem; line-height: 1.6; }

/* ---------- v3: visor de fotos ---------- */
.lightbox img { transition: opacity .2s; }
.lightbox img.loading { opacity: .35; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem;
  background: linear-gradient(rgba(0,0,0,.55), transparent); color: #fff; z-index: 2; }
.lb-count { font: 600 1rem var(--sans); letter-spacing: .05em; background: rgba(255,255,255,.12); padding: .35rem .8rem; border-radius: 99px; }
.lb-tools { display: flex; gap: .5rem; }
.lightbox .lb-btn { position: static; display: inline-flex; align-items: center; gap: .4rem; height: 44px; min-width: 44px; justify-content: center; padding: 0 1rem;
  border-radius: 99px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font: 600 .95rem var(--sans);
  text-decoration: none; cursor: pointer; opacity: 1; transform: none; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 2.4rem; line-height: 1; opacity: .9; z-index: 2; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.28); opacity: 1; }
.lightbox .lb-prev { left: 1rem; }
.lightbox .lb-next { right: 1rem; }
@media (max-width: 600px) {
  .lightbox .lb-nav { width: 48px; height: 48px; font-size: 2rem; top: auto; bottom: 1.2rem; transform: none; }
  .lb-dl span { display: none; }
}
.backup-panel { margin-bottom: 1.4rem; border-left: 4px solid var(--verde); }
.backup-panel.bad { border-left-color: var(--rojo); }
.backup-panel p { margin: .2rem 0; }
.cover, .cover:hover, .news-book, .news-book:hover { text-decoration: none; }
.users-table select { min-width: 130px; }
.app-main > .panel, .app-main > form.panel, .app-main > details.panel { margin-bottom: 1.4rem; }

/* ---------- v4: cargos, trayectoria, aniversarios ---------- */
.badge.perm { background: #efe6d2; color: #6a5220; text-transform: none; letter-spacing: 0; font-weight: 600; }
.office-grid { display: grid; gap: .2rem; }
.office-row { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 1rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--linea); }
.office-row:first-child { border-top: 0; }
.office-name { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.perm-box { border: 1px solid var(--linea); border-radius: 8px; padding: .6rem .9rem; display: grid; gap: .3rem; }
.new-office { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--linea); }
.copy-prev { margin: -0.6rem 0 1.4rem; }
.timeline-v { list-style: none; margin: 0 0 1rem; padding: 0 0 0 1.2rem; border-left: 2px solid var(--oro); }
.timeline-v li { position: relative; padding: 0 0 1rem .6rem; }
.timeline-v li::before { content: ""; position: absolute; left: -1.62rem; top: .35rem; width: 11px; height: 11px; border-radius: 50%; background: var(--papel); border: 2px solid var(--oro); }
.tv-date { display: block; font-size: .82rem; color: var(--oro-osc); font-weight: 600; }
.timeline-v p { margin: .1rem 0 0; }
.inline-del { display: inline; margin-left: .4rem; }
.anniv { margin-bottom: 1.4rem; background: linear-gradient(120deg, #fbf3df, var(--papel)); border-left: 4px solid var(--oro); }
.anniv p { margin: .2rem 0; }
@media (max-width: 600px) { .office-row { grid-template-columns: 1fr; gap: .4rem; } }
.rsvp { margin-top: .6rem; }
.rsvp-form { display: flex; flex-wrap: wrap; gap: .4rem; }
.rsvp-btn { border: 1px solid var(--linea); background: #fff; border-radius: 99px; padding: .4rem .8rem; font: 500 .85rem var(--sans); cursor: pointer; color: var(--tinta); }
.rsvp-btn:hover { border-color: var(--oro); }
.rsvp-btn.on { background: var(--noche); color: var(--oro-claro); border-color: var(--noche); }
.rsvp-btn.no.on { background: #6b3b36; border-color: #6b3b36; color: #fff; }
.rsvp-count { margin: .35rem 0 0 !important; }
.attend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .2rem 1.4rem; margin: .6rem 0 1rem; }
.attend-row { padding: .45rem 0; border-bottom: 1px solid #f1ece0; display: grid; grid-template-columns: auto 1fr auto; }

/* ---------- v4: búsqueda en libros y lector ---------- */
.fulltext { margin-bottom: .6rem; }
.fulltext input { flex: 1 1 300px; background: #fffaf0; border-color: var(--oro); }
.search-results { display: grid; gap: .9rem; }
.search-hit { padding: 1rem 1.2rem; }
.hit-head { display: flex; gap: .9rem; align-items: center; margin-bottom: .5rem; }
.hit-head p { margin: .1rem 0 0; }
.hit-page { display: grid; grid-template-columns: 70px 1fr; gap: .8rem; padding: .55rem 0; border-top: 1px solid #f1ece0; text-decoration: none; color: var(--tinta); }
.hit-page:hover { background: #fffaf0; }
.hit-num { font-size: .8rem; font-weight: 600; color: var(--oro-osc); }
.hit-snip { font-size: .93rem; line-height: 1.5; }
mark { background: #f5df9e; color: inherit; padding: 0 .1em; border-radius: 2px; }
.reading-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.reading-item { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: var(--tinta); }
.reading-item img, .reading-item .cover-ph { width: 52px; height: 74px; object-fit: cover; border-radius: 2px 5px 5px 2px; flex: none; display: grid; place-items: center; font: 600 1.4rem var(--serif); }
.reading-item > span { display: grid; gap: .15rem; min-width: 0; }
.reading-item strong { font: 600 1rem/1.25 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress.mini { height: 5px; }
.reader-body { background: #2b2f38; margin: 0; }
.reader { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; height: 100dvh; }
.reader-bar { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; background: var(--noche); color: var(--marfil); flex-wrap: wrap; }
.rb-title { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.rb-title strong { font: 600 1.05rem var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-title span { font-size: .78rem; color: #a9a69e; }
.rb-nav, .rb-zoom { display: flex; align-items: center; gap: .3rem; }
.rb-btn { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .5rem; border-radius: 8px; border: 1px solid rgba(232,211,160,.3);
  background: rgba(255,255,255,.06); color: var(--oro-claro); font: 600 1.1rem var(--sans); text-decoration: none; cursor: pointer; }
.rb-btn.wide { font-size: .85rem; }
.rb-btn:hover { background: rgba(255,255,255,.14); }
.rb-page { display: flex; align-items: center; gap: .3rem; font-size: .9rem; color: #cfcabd; }
.rb-page input { width: 64px !important; padding: .35rem .4rem !important; text-align: center; }
.reader-stage { overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 12px; }
.reader-stage canvas { background: #fff; box-shadow: 0 6px 30px rgba(0,0,0,.4); }
.reader-msg { color: #ddd; margin-top: 3rem; }
.reader-foot { padding: .35rem .8rem; color: #9a978f; background: #23262d; }
@media (max-width: 600px) { .reading-row { grid-template-columns: 1fr; } .rb-zoom .wide { display: none; } .rb-title { flex-basis: 100%; order: -1; } }

/* ---------- v4: Telegram, versión, emergencia ---------- */
.tg-preview { white-space: pre-wrap; background: #e7f0f7; border-radius: 12px 12px 12px 3px; padding: .9rem 1rem; font-size: .95rem; line-height: 1.45; max-width: 420px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.check.disabled { opacity: .55; }
.telegram-form h2 { font-size: 1.1rem; margin: .8rem 0 .4rem; }
.row-actions { display: inline-flex; gap: .4rem; align-items: center; }
.version-tag { text-align: center; font-size: .75rem; color: #9a978f; letter-spacing: .04em; padding: 1.5rem 0 1rem; }
.emergency-banner { background: #8b1e1e; color: #fff; text-align: center; padding: .55rem 1rem; font-weight: 600; font-size: .92rem; }
.badge.ok { background: #e6f1ea; color: #2c6447; }
.badge.danger { background: #f6e1e1; color: #8b1e1e; }

/* ---------- v5 ---------- */
.badge.status-activo, .badge.status-segunda { background: #e6f1ea; color: #2c6447; }
.badge.status-suenos { background: #e8e6f3; color: #4a4473; }
.badge.status-baja_adm, .badge.status-baja_vol, .badge.status-baja, .badge.status-irradiado { background: #f1ece0; color: #6b6457; }
.badge.status-oriente { background: var(--noche); color: var(--oro-claro); }
.oriente { font-family: var(--serif); font-size: 1.15rem; color: var(--oro-osc); border-left: 3px solid var(--oro); padding-left: .8rem; }
.small-tabs a { padding: .45rem .8rem; font-size: .9rem; }
.admin-nav { display: grid; gap: .2rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--linea); padding-bottom: .3rem; }
.nav-group { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ng-label { flex: none; width: 118px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oro-osc); font-weight: 600; }
.tabs.wrap { flex-wrap: wrap; overflow: visible; border-bottom: 0; margin: 0; gap: 0; }
.tabs.wrap a { padding: .5rem .8rem; border-bottom-width: 2px; margin-bottom: 0; }
@media (max-width: 700px) { .ng-label { width: 100%; margin-top: .4rem; } .tabs.wrap a { padding: .45rem .6rem; font-size: .92rem; } }
.danger-zone { border: 1px solid #e3c4c4; background: #fffafa; }
.danger-btn { background: #8b1e1e; color: #fff; border-color: #8b1e1e; }
.danger-btn:hover { background: #6e1515; }
.delete-summary .panel h2 { font-size: 1.2rem; }
.track-list { list-style: none; margin: 0; padding: 0; }
.track-list.numbered { counter-reset: n; }
.track { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid #f1ece0; flex-wrap: wrap; }
.track:first-child { border-top: 0; }
.track-list.numbered .track::before { counter-increment: n; content: counter(n); width: 1.6rem; text-align: right; color: var(--oro-osc); font: 600 1rem var(--serif); }
.track-info { flex: 1 1 200px; min-width: 0; }
.play-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--oro); background: #fffaf0; color: var(--oro-osc); cursor: pointer; font-size: .9rem; flex: none; }
.play-btn:hover, .play-btn.playing { background: var(--oro); color: var(--noche); }
.track-edit { flex-basis: auto; }
.track-edit[open] { flex-basis: 100%; }
.track-edit summary { list-style: none; cursor: pointer; display: inline-grid; }
.track-edit summary::-webkit-details-marker { display: none; }
.track-edit .form { margin-top: .5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.track-move { display: flex; gap: .25rem; }
.add-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .2rem .8rem; max-height: 420px; overflow: auto; margin-bottom: .8rem; }
.music-player { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem; margin-top: 1rem;
  background: var(--noche); color: var(--marfil); border-radius: 12px 12px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.2); flex-wrap: wrap; }
.music-player audio { flex: 1 1 260px; height: 40px; }
.mp-info { display: grid; min-width: 0; flex: 0 1 260px; }
.mp-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--oro); }
.mp-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.badge.partial { background: #fbf0d6; color: #7a5a1d; }
.danger-text { color: #8b1e1e; }
.treasury th { vertical-align: bottom; }
.due-cell { min-width: 130px; }
.due-edit summary { list-style: none; cursor: pointer; display: inline; }
.due-edit summary::-webkit-details-marker { display: none; }
.due-edit[open] .form { position: absolute; z-index: 30; background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: .8rem; box-shadow: 0 10px 30px rgba(0,0,0,.15); width: 260px; display: grid; gap: .5rem; }
.treasury-stats { margin-bottom: 1rem; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; }
.treasury-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.t-stat { padding: 1rem 1.1rem; display: grid; gap: .25rem; margin: 0; }
.t-stat strong { font: 600 1.6rem/1 var(--serif); color: var(--oro-osc); }
.t-stat span { font-size: .85rem; color: var(--gris); }
.warn-row { background: #fff8e6; }
.coll-tag { font-size: .8rem; color: var(--oro-osc); font-weight: 600; }
.qr-box { background: #fff; display: inline-block; padding: .4rem; border-radius: 8px; border: 1px solid var(--linea); margin: .6rem 0; }
.qr-box svg { display: block; width: 225px; height: auto; max-width: 100%; }
.secret-key { letter-spacing: .08em; user-select: all; }
.code-input { font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; max-width: 220px; }
.steps-list li { margin-bottom: .8rem; }
.nav-group { flex-wrap: nowrap; align-items: baseline; }
.nav-group .tabs.wrap { flex: 1 1 0; min-width: 0; }
@media (max-width: 700px) { .nav-group { flex-wrap: wrap; } .nav-group .tabs.wrap { flex-basis: 100%; } }
.convocation-box { border: 1px solid var(--linea); border-radius: 10px; padding: .9rem 1rem; display: grid; gap: .7rem; }
.convocation-box legend { font-weight: 600; padding: 0 .4rem; }
.convocation-text { white-space: pre-wrap; font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; background: #fffdf7; border: 1px solid var(--linea); border-radius: 10px; padding: 1.4rem 1.6rem; max-width: 760px; }
@media print { .app-bar, .app-nav, .version-tag, .no-print { display: none !important; } .convocation-text { border: 0; padding: 0; } body { background: #fff; } }
.months-grid td, .months-grid th { padding: .35rem .3rem; }
.months-grid input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--oro-osc); }
.month-chips { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.mchip { font-size: .72rem; padding: .15em .4em; border-radius: 4px; background: #f6e1e1; color: #8b1e1e; }
.mchip.on { background: #e6f1ea; color: #2c6447; }
.memoria { background: #fffdf7; border: 1px solid var(--linea); border-radius: 12px; padding: 2rem 2.4rem; max-width: 900px; }
.memoria section { margin-top: 1.8rem; break-inside: avoid-page; }
.memoria h2 { font-size: 1.45rem; border-bottom: 1px solid var(--linea); padding-bottom: .3rem; }
.memoria-cover { text-align: center; padding: 1rem 0 1.5rem; border-bottom: 2px solid var(--oro); color: var(--oro-osc); }
.memoria-cover h1 { color: var(--noche); margin: .3rem 0; }
.mem-lodge { letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.mem-table { font-size: .93rem; }
.mem-table th { text-align: left; font-weight: 600; width: 40%; }
.in-memoriam { border-left: 3px solid var(--oro); padding: .3rem 1rem; margin-top: 1rem; font-family: var(--serif); }
.memoria-foot { margin-top: 2rem; text-align: right; font-style: italic; color: var(--gris); }
@media print { .memoria { border: 0; padding: 0; max-width: none; } .memoria section { page-break-inside: avoid; } }
.poll-option { display: grid; grid-template-columns: auto 1fr minmax(80px, 30%) 2.5rem; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid #f1ece0; }
div.poll-option { grid-template-columns: 1fr minmax(80px, 35%) 2.5rem; }
.poll-bar { height: 8px; background: #f1ece0; border-radius: 99px; overflow: hidden; }
.poll-bar > span { display: block; height: 100%; background: var(--oro); }
.study-list { list-style: none; padding: 0; margin: 0; }
.study-list li { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-top: 1px solid #f1ece0; }
.study-list li:first-child { border-top: 0; }
.study-list li.done .study-info strong { text-decoration: line-through; text-decoration-color: var(--oro); opacity: .7; }
.study-info { flex: 1; min-width: 0; }
.study-check { width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--oro); background: #fff; color: #2c6447; font-weight: 700; cursor: pointer; flex: none; }
li.done .study-check { background: #e6f1ea; }
.badge.stage-aceptado, .badge.stage-iniciado { background: #e6f1ea; color: #2c6447; }
.badge.stage-balotaje { background: #f6ead0; color: #7a5a1d; }
.badge.stage-descartado { background: #f1ece0; color: #6b6457; }
.task-list { margin: 0; padding-left: 1.2rem; line-height: 1.5; }
.task-list li { padding: .45rem 0; border-top: 1px solid var(--linea); }
.task-list li:first-child { border-top: 0; }
@media (min-width: 900px) { .app-nav { flex-wrap: wrap; overflow: visible; } .app-nav a { padding: .7rem .65rem; } }
@media (max-width: 899px) { .app-nav { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); } }
.badge.stage-rechazado { background: #f6e1e1; color: #8b1e1e; }
.badge.stage-aplomacion { background: #e2e9f3; color: #2c4a72; }
.pre-line { white-space: pre-line; }
dialog.modal { border: 0; border-radius: 14px; padding: 1.4rem 1.6rem; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.35); background: var(--papel); }
dialog.modal::backdrop { background: rgba(13,22,38,.55); }
dialog.modal h3 { margin-top: 0; }
dialog.modal textarea { width: 100%; }
.plain-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .8rem; }
.aviso-office { color: var(--oro-osc); font-weight: 600; }
.vm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.postit-new textarea { width: 100%; }
.postits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; margin-top: 1rem; }
.postit { padding: .9rem 1rem .6rem; border-radius: 4px 4px 14px 4px; box-shadow: 0 3px 10px rgba(0,0,0,.1); transform: rotate(-.4deg); display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; }
.postit:nth-child(2n) { transform: rotate(.5deg); }
.postit p { white-space: pre-line; margin: 0 0 .6rem; }
.postit footer { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; color: #5a5548; }
.postit.c-oro { background: #fbefc4; } .postit.c-azul { background: #dce9f7; } .postit.c-verde { background: #dff0dc; }
.postit.c-rosa { background: #f8dfe4; } .postit.c-gris { background: #ebe8e1; }
.postit.done { opacity: .5; } .postit.done p { text-decoration: line-through; }
.postit.late { box-shadow: 0 0 0 2px #c0504d, 0 3px 10px rgba(0,0,0,.1); }
.list.compact li { padding: .3rem 0; }
.tri { width: 28px; height: 28px; border-radius: 6px; border: 2px solid #cfc7b4; background: #fff; cursor: pointer; font-weight: 700; line-height: 1; }
.tri-pagado { background: var(--oro-osc); border-color: var(--oro-osc); color: #fff; }
.tri-exento { background: #ebe8e1; border-color: #cfc7b4; color: #8a8478; }
.tri:disabled { cursor: default; }
.mchip.ex { background: #ebe8e1; color: #8a8478; text-decoration: line-through; }
.archive-offer { display: grid; gap: .4rem; margin-top: .5rem; } .archive-offer input { font-size: .85rem; }
.play-btn.wait { display: inline-grid; place-items: center; cursor: default; }

/* v8 · lista de asistencia y libro de la tenida */
.badge.warn { background: #f7e7d9; color: #8a4b1c; }
.attend-table td:first-child { width: 4.5rem; text-align: center; }
.attend-table .absent-opts .check { display: inline-flex; margin-right: .9rem; }
.att-row:has(input[name="present"]:checked) .absent-opts { visibility: hidden; }
.attend-recap { background: #f8f5ee; border-left: 3px solid var(--oro, #c9a55c); padding: .6rem 1rem; margin: .5rem 0 1rem; }
.attend-recap p { margin: .25rem 0; }
.guest-add { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: .8rem; }
@media (max-width: 700px) { .guest-add { grid-template-columns: 1fr; } }
.libro-sec { margin-top: 1.2rem; }
.libro-sec textarea { width: 100%; min-height: 5.5rem; }
.libro-sec h3 { margin-bottom: .3rem; }
.officer-row { display: grid; grid-template-columns: 11rem 1fr auto; gap: .6rem; align-items: center; padding: .25rem 0; border-bottom: 1px solid #eee6d6; }
@media (max-width: 700px) { .officer-row { grid-template-columns: 1fr; } }
.work-row { border: 1px solid #eee6d6; border-radius: 6px; padding: .7rem; margin: .5rem 0; display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; }
.work-row .span-all { grid-column: 1 / -1; }
.autosave-state { font-size: .8rem; color: #7a7466; min-height: 1.2em; }
.acta-text { width: 100%; min-height: 32rem; font: 1rem/1.55 var(--serif, Georgia, serif); }
@media print { .no-print, .app-bar, .app-nav, .admin-nav, .site-footer { display: none !important; } .acta-print { white-space: pre-wrap; font: 12pt/1.5 Georgia, serif; } }
.acta-page { background: #fff; color: #222; max-width: 46rem; margin: 0 auto; padding: 2rem 1.2rem; }
.acta-print { font: 1.05rem/1.6 Georgia, serif; text-align: justify; }
.acta-print .acta-h { text-align: center; font-size: 1.1rem; margin: .4rem 0; }
.acta-print .acta-li { margin: .15rem 0 .15rem 1.6rem; text-align: left; }
.acta-tools { margin-bottom: 1.5rem; }
@media print { .acta-page { padding: 0; } .acta-print { white-space: normal; } }
@media (max-width: 700px) {
  .attend-table thead { display: none; }
  .attend-table tr { display: grid; grid-template-columns: 2.6rem 1fr; padding: .4rem 0; border-bottom: 1px solid #eee6d6; }
  .attend-table td { display: block; border: 0; padding: .15rem .3rem; width: auto !important; }
  .attend-table td:first-child { grid-row: span 3; align-self: center; }
  .attend-table .absent-opts:empty { display: none; }
}
.attend-table input[name="present"] { width: 1.3rem; height: 1.3rem; accent-color: var(--oro); }
