/* El Impreso Digital — landing editorial estilo New York Times.
   Paleta y tipografía heredadas del tema de la revista (course.cljs). */

:root {
  --ink:    #1a1a1a;
  --ink-2:  #0d0d0d;
  --red:    #a02019;
  --gold:   #c9a86a;
  --paper:  #f4ede0;
  --page:   #fffaf0;
  --rule:   rgba(26, 26, 26, 0.18);
  --rule-strong: rgba(26, 26, 26, 0.42);
  /* Acentos «Greb» — paleta viva para chips, filtros y acciones */
  --blue:   #2f6fed;
  --green:  #1f9d57;
  --purple: #7c4dff;
  --amber:  #e08a00;
  --teal:   #0ca6a6;
  --pink:   #d63384;
  --display: "Playfair Display", Georgia, serif;
  --body:    "Source Serif 4", Georgia, serif;
  --ui:      "Outfit", system-ui, sans-serif;
  --maxw:    1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--ink-2); }

/* ── Botones ───────────────────────────────────────────────────────────── */

.eid-btn-primary,
.eid-btn-ghost {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.5em;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.eid-btn-primary {
  background: var(--ink);
  color: var(--page);
  box-shadow: 4px 4px 0 var(--red);
}
.eid-btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--red); }
.eid-btn-ghost { background: transparent; color: var(--ink); }
.eid-btn-ghost:hover { background: var(--ink); color: var(--page); }

/* ── Top bar ───────────────────────────────────────────────────────────── */

.eid-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule-strong);
}
.eid-topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.7rem 1.5rem;
}
.eid-topbar-brand {
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  display: flex; align-items: center;
}
.eid-topbar-logo { height: 46px; width: auto; display: block; }
.eid-topbar-nav {
  margin-left: auto; display: flex; align-items: center; gap: 1.4rem;
  font-family: var(--ui); font-weight: 500; font-size: 0.92rem;
}
.eid-topbar-nav a { text-decoration: none; opacity: 0.8; transition: opacity .15s; }
.eid-topbar-nav a:hover { opacity: 1; }
.eid-topbar-cta {
  background: var(--red); color: var(--page) !important;
  padding: 0.4em 0.9em; border-radius: 2px; opacity: 1 !important;
}
.eid-cmdk {
  font-family: var(--ui); font-weight: 600; font-size: 0.8rem;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 4px; padding: 0.4em 0.6em; cursor: pointer;
  transition: background .15s, color .15s;
}
.eid-cmdk:hover { background: var(--ink); color: var(--page); }

/* Avatar del usuario logueado (esquina superior derecha) */
.eid-topbar-user { display: inline-flex; align-items: center; text-decoration: none; }
.eid-topbar-user img,
.eid-topbar-user-ph {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--ink); transition: box-shadow .15s, transform .15s;
}
.eid-topbar-user:hover img,
.eid-topbar-user:hover .eid-topbar-user-ph { box-shadow: 0 0 0 3px var(--gold); transform: translateY(-1px); }
.eid-topbar-user-ph {
  display: grid; place-items: center; background: var(--gold); color: var(--ink-2);
  font-family: var(--display); font-weight: 800; font-size: 0.95rem;
}
.eid-topbar-user { background: none; border: none; padding: 0; cursor: pointer; }

/* Menú de perfil (al hacer clic en el avatar) */
.eid-topbar-user-wrap { position: relative; }
.eid-user-menu-backdrop { position: fixed; inset: 0; z-index: 60; }
.eid-user-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 61; width: 260px;
  background: var(--page); border: 1.5px solid var(--ink); border-radius: 6px;
  box-shadow: -4px 8px 0 rgba(26,26,26,0.2); padding: 1rem; font-family: var(--ui);
}
.eid-user-menu-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.eid-user-menu-head .eid-avatar, .eid-user-menu-head .eid-avatar-ph { width: 40px; height: 40px; }
.eid-user-menu-head strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.eid-user-menu-email { font-size: 0.8rem; color: rgba(26,26,26,0.6); word-break: break-all; }
.eid-user-menu-rol { font-size: 0.85rem; color: rgba(26,26,26,0.7); padding: 0.5rem 0; border-top: 1px solid var(--rule); }
.eid-user-menu-item, .eid-user-menu-logout {
  display: block; padding: 0.5rem 0; font-weight: 600; text-decoration: none; color: var(--ink);
  border-top: 1px solid var(--rule);
}
.eid-user-menu-item:hover { color: var(--red); }
.eid-user-menu-logout { color: var(--red); }
.eid-user-menu-logout:hover { text-decoration: underline; }

/* Scrollbar del omnirepl (barra de comandos) en tono Greb */
.omnibar-suggestions-scroll::-webkit-scrollbar { width: 10px; }
.omnibar-suggestions-scroll::-webkit-scrollbar-track { background: transparent; }
.omnibar-suggestions-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.35); border-radius: 999px;
  border: 3px solid transparent; background-clip: content-box;
}
.omnibar-suggestions-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.55); background-clip: content-box; }
.omnibar-suggestions-scroll { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.35) transparent; }

/* ── Hero / masthead ────────────────────────────────────────────────────── */

.eid-hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center;
  position: relative;
}
.eid-hero-rule {
  position: absolute; left: 1.5rem; right: 1.5rem; top: 0; height: 4px;
  background: var(--ink);
}
.eid-hero-eyebrow {
  font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; font-weight: 600; color: var(--red); margin: 0 0 1rem;
}
.eid-masthead { width: 100%; max-width: 560px; filter: drop-shadow(0 2px 1px rgba(0,0,0,0.06)); }
.eid-hero-tagline {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1.7rem; margin: 1rem 0 0.4rem; color: var(--ink);
}
.eid-hero-meta {
  font-family: var(--ui); font-size: 0.85rem; letter-spacing: 0.05em;
  color: rgba(26,26,26,0.7); display: flex; gap: 0.6rem; align-items: center;
  text-transform: uppercase; margin-bottom: 1.8rem;
}
.eid-hero-meta .dot { color: var(--gold); }
.eid-hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.eid-hero-cover { position: relative; }
.eid-hero-cover img {
  width: 100%; border: 1px solid var(--rule);
  box-shadow: 14px 18px 0 rgba(26,26,26,0.10), 0 30px 60px rgba(0,0,0,0.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.eid-hero-cover a:hover img { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 18px 24px 0 rgba(160,32,25,0.18), 0 40px 80px rgba(0,0,0,0.22); }
.eid-hero-cover-cap {
  display: block; text-align: center; font-family: var(--ui);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(26,26,26,0.55); margin-top: 0.7rem;
}

/* ── Secciones ─────────────────────────────────────────────────────────── */

.eid-section {
  max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--rule);
}
.eid-section-dark {
  max-width: none; background: var(--ink-2); color: var(--paper);
  border-top: none;
}
.eid-section-dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.eid-section-dark .eid-kicker { color: var(--gold); }

.eid-section-head { margin-bottom: 2.2rem; }
.eid-kicker {
  font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.72rem; font-weight: 700; color: var(--red); margin: 0 0 0.6rem;
}
.eid-section-head h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.05; margin: 0; letter-spacing: -0.015em;
}
.eid-section-sub {
  font-family: var(--ui); font-size: 1rem; color: rgba(26,26,26,0.65);
  margin: 0.8rem 0 0; max-width: 44ch;
}
.eid-section-dark .eid-section-sub { color: rgba(244,237,224,0.7); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Qué es ─────────────────────────────────────────────────────────────── */

.eid-columns { columns: 2; column-gap: 2.6rem; }
.eid-columns p { margin: 0 0 1.1rem; break-inside: avoid; }
.eid-lead {
  font-family: var(--display); font-size: 1.35rem; line-height: 1.4;
  font-weight: 500;
}
.eid-lead::first-letter {
  font-family: var(--display); font-weight: 800; float: left;
  font-size: 3.6rem; line-height: 0.78; padding: 0.1em 0.12em 0 0; color: var(--red);
}
.eid-tags {
  list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.eid-tags li {
  font-family: var(--ui); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.35em 0.8em; border: 1px solid var(--rule-strong);
  border-radius: 100px;
}

/* ── Editores ──────────────────────────────────────────────────────────── */

.eid-editores-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.eid-editor {
  display: flex; gap: 1.3rem; padding: 1.8rem;
  background: rgba(255,250,240,0.04); border: 1px solid rgba(244,237,224,0.14);
  border-radius: 4px; transition: transform .2s ease, border-color .2s;
}
.eid-editor:hover { transform: translateY(-3px); border-color: var(--gold); }
.eid-editor-portrait {
  flex: 0 0 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.7rem;
  color: var(--ink-2); background: var(--gold);
}
.eid-editor-body h3 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 0.2rem; }
.eid-editor-rol {
  font-family: var(--ui); font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); margin: 0 0 0.7rem; font-weight: 600;
}
.eid-editor-bio { font-size: 0.98rem; line-height: 1.5; color: rgba(244,237,224,0.82); margin: 0; }

/* ── Biblioteca ────────────────────────────────────────────────────────── */

.eid-biblioteca-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.eid-issue-card { display: grid; grid-template-columns: 200px 1fr; gap: 1.6rem; align-items: center; }
.eid-issue-cover img {
  width: 100%; border: 1px solid var(--rule);
  box-shadow: 8px 10px 0 rgba(26,26,26,0.10); transition: transform .25s ease;
}
.eid-issue-cover a:hover img { transform: translateY(-3px) rotate(-0.8deg); }
.eid-issue-soon {
  width: 100%; aspect-ratio: 3/4; border: 2px dashed var(--rule-strong);
  display: grid; place-items: center; align-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(26,26,26,0.03) 10px, rgba(26,26,26,0.03) 20px);
  border-radius: 2px;
}
.eid-issue-soon span { font-family: var(--display); font-weight: 900; font-size: 3rem; color: var(--rule-strong); }
.eid-issue-soon p { font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; color: rgba(26,26,26,0.5); margin: 0.3rem 0 0; }
.eid-issue-num { font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700; color: var(--red); margin: 0 0 0.3rem; }
.eid-issue-info h3 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; margin: 0 0 0.4rem; }
.eid-issue-fecha { font-family: var(--ui); font-size: 0.9rem; color: rgba(26,26,26,0.6); margin: 0 0 1rem; }
.eid-issue-link { font-family: var(--ui); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 1px; }
.eid-issue-link:hover { color: var(--red); }
.eid-issue-badge.is-soon { font-family: var(--ui); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(26,26,26,0.5); }
.eid-issue-card.is-soon { opacity: 0.92; }

/* ── Timeline ──────────────────────────────────────────────────────────── */

.eid-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.eid-timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: rgba(244,237,224,0.22);
}
.eid-tl-item { position: relative; padding: 0 0 2.5rem 2.6rem; }
.eid-tl-item:last-child { padding-bottom: 0; }
.eid-tl-dot {
  position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink-2); border: 3px solid var(--gold);
}
.eid-tl-item.is-next .eid-tl-dot { border-color: rgba(244,237,224,0.4); background: transparent; }
.eid-tl-date { font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 700; color: var(--gold); margin: 0 0 0.4rem; }
.eid-tl-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 0 0 0.5rem; }
.eid-tl-card p { color: rgba(244,237,224,0.8); margin: 0 0 0.7rem; max-width: 56ch; }
.eid-tl-card a { font-family: var(--ui); font-weight: 600; text-decoration: none; color: var(--gold); border-bottom: 1px solid rgba(201,168,106,0.5); }
.eid-tl-card a:hover { color: var(--page); }

/* ── Anúnciate con nosotros ───────────────────────────────────────────────── */

.eid-anunciate {
  background: linear-gradient(160deg, #fffaf0 0%, #f6ead2 100%);
  color: var(--ink); padding: 5rem 1.5rem;
  border-top: 1px solid var(--rule); border-bottom: 4px solid var(--gold);
}
.eid-anunciate-inner { max-width: var(--maxw); margin: 0 auto; }
.eid-anunciate h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05; margin: 0 0 1rem; letter-spacing: -0.015em; max-width: 18ch;
}
.eid-anunciate-lead {
  font-family: var(--display); font-size: 1.3rem; line-height: 1.45; font-style: italic;
  color: rgba(26,26,26,0.78); max-width: 60ch; margin: 0 0 2.5rem;
}
.eid-anunciate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.eid-anunciate-card {
  border: 1px solid var(--rule-strong); border-radius: 8px; padding: 1.5rem;
  background: rgba(255,255,255,0.6); transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.eid-anunciate-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 6px 8px 0 rgba(201,168,106,0.25); }
.eid-anunciate-card span { font-size: 1.6rem; color: var(--red); display: block; margin-bottom: 0.6rem; }
.eid-anunciate-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin: 0 0 0.4rem; }
.eid-anunciate-card p { font-family: var(--ui); font-size: 0.95rem; color: rgba(26,26,26,0.65); margin: 0; line-height: 1.5; }
.eid-anunciate-cta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

@media (max-width: 800px) { .eid-anunciate-grid { grid-template-columns: 1fr; } }

/* ── Footer ────────────────────────────────────────────────────────────── */

.eid-footer { background: var(--ink-2); color: var(--paper); border-top: 4px solid var(--red); }
.eid-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem; }
.eid-footer-brand { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.eid-footer-brand img { height: 46px; width: auto; background: #fff; padding: 6px 10px; border-radius: 6px; }
.eid-footer-brand p { font-family: var(--ui); font-size: 0.95rem; color: rgba(244,237,224,0.75); margin: 0; max-width: 48ch; }
.eid-footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.4rem; font-family: var(--ui); font-weight: 600; }
.eid-footer-links a { text-decoration: none; color: var(--gold); }
.eid-footer-links a:hover { color: var(--page); }
.eid-footer-legal { font-family: var(--ui); font-size: 0.8rem; color: rgba(244,237,224,0.5); margin: 0; line-height: 1.6; }

/* ── Publicar artículo ─────────────────────────────────────────────────── */

.eid-publicar { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.eid-publicar-head { border-bottom: 1px solid var(--rule); padding-bottom: 1.8rem; margin-bottom: 2.4rem; }
.eid-publicar-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.02; margin: 0.4rem 0 0.8rem; letter-spacing: -0.02em; }
.eid-publicar-sub { font-family: var(--ui); font-size: 1.05rem; color: rgba(26,26,26,0.7); max-width: 60ch; margin: 0; }
.eid-publicar-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }

.eid-form { display: flex; flex-direction: column; gap: 1.2rem; }
.eid-field { display: flex; flex-direction: column; gap: 0.4rem; }
.eid-field-label { font-family: var(--ui); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(26,26,26,0.7); }
.eid-form input, .eid-form select, .eid-form textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--page); border: 1.5px solid var(--rule-strong); border-radius: 3px;
  padding: 0.7em 0.8em; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.eid-form textarea { font-family: var(--body); line-height: 1.6; resize: vertical; }
.eid-form input:focus, .eid-form select:focus, .eid-form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(160,32,25,0.12);
}
.eid-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.eid-form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.4rem; }
.eid-btn-primary[disabled] { opacity: 0.55; cursor: progress; }
.eid-form-msg { font-family: var(--ui); font-size: 0.9rem; font-weight: 500; }
.eid-form-msg.is-ok { color: #2e6b3e; }
.eid-form-msg.is-error { color: var(--red); }

.eid-articulos { border-left: 1px solid var(--rule); padding-left: 2.4rem; }
.eid-articulos h2 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 0 0 1.2rem; }
.eid-muted { font-family: var(--ui); color: rgba(26,26,26,0.55); font-size: 0.95rem; }
.eid-muted code { background: rgba(26,26,26,0.08); padding: 0.1em 0.4em; border-radius: 3px; }
.eid-articulos-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.eid-articulo-item { border-bottom: 1px solid var(--rule); padding-bottom: 1.4rem; }
.eid-articulo-item:last-child { border-bottom: none; }
.eid-articulo-sec { font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; font-weight: 700; color: var(--red); }
.eid-articulo-item h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; margin: 0.25rem 0 0.2rem; }
.eid-articulo-meta { font-family: var(--ui); font-size: 0.82rem; color: rgba(26,26,26,0.6); margin: 0 0 0.5rem; }
.eid-articulo-body { font-size: 0.95rem; color: rgba(26,26,26,0.8); margin: 0; }

/* ── Editor WYSIWYG ────────────────────────────────────────────────────── */

.eid-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem;
  padding: 0.5rem; border: 1.5px solid var(--rule-strong); border-bottom: none;
  border-radius: 3px 3px 0 0; background: rgba(26,26,26,0.03);
}
.eid-tb-btn {
  font-family: var(--ui); font-size: 0.85rem; font-weight: 600;
  min-width: 2rem; padding: 0.35em 0.6em; cursor: pointer;
  background: var(--page); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 3px;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.eid-tb-btn:hover { background: var(--ink); color: var(--page); }
.eid-tb-btn b, .eid-tb-btn i { font-size: 0.95rem; line-height: 1; }
.eid-tb-img { cursor: pointer; }
.eid-tb-sep { width: 1px; align-self: stretch; background: var(--rule-strong); margin: 0 0.2rem; }

.eid-editor-area {
  min-height: 320px; padding: 1.1rem 1.2rem;
  border: 1.5px solid var(--rule-strong); border-radius: 0 0 3px 3px;
  background: var(--page); font-family: var(--body); font-size: 1.05rem;
  line-height: 1.65; outline: none; overflow-y: auto;
}
.eid-editor-area:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(160,32,25,0.10); }
.eid-editor-area[data-placeholder]:empty::before,
.eid-editor-area p:only-child:empty::before { content: attr(data-placeholder); color: rgba(26,26,26,0.4); }
.eid-editor-area p { margin: 0 0 0.9rem; }
.eid-editor-area h2 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin: 1.2rem 0 0.6rem; }
.eid-editor-area h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 1rem 0 0.5rem; }
.eid-editor-area blockquote {
  margin: 1rem 0; padding: 0.4rem 0 0.4rem 1.2rem; border-left: 4px solid var(--gold);
  font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--ink);
}
.eid-editor-area img { margin: 1rem 0; border: 1px solid var(--rule); max-width: 100%; cursor: move; border-radius: 10px; }
.eid-editor-area img:hover { outline: 2px dashed var(--gold); outline-offset: 2px; }
.eid-editor-area ul { margin: 0 0 0.9rem 1.4rem; }

/* Burbuja flotante de formato sobre el texto seleccionado */
.eid-bubble {
  position: fixed; z-index: 1000; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.15rem; padding: 0.25rem;
  background: var(--ink); border-radius: 5px; box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.eid-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 5px solid var(--ink);
}
.eid-bubble-btn {
  font-family: var(--ui); font-size: 0.85rem; font-weight: 700; line-height: 1;
  min-width: 1.9rem; padding: 0.35em 0.5em; cursor: pointer;
  background: transparent; color: var(--page); border: none; border-radius: 3px;
}
.eid-bubble-btn:hover { background: rgba(255,255,255,0.18); }
.eid-bubble-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,0.25); margin: 0 0.15rem; }

/* ── Login gate / Google ───────────────────────────────────────────────── */

.eid-login-card {
  border: 1.5px solid var(--rule-strong); border-radius: 6px; padding: 2.2rem;
  background: rgba(26,26,26,0.02); align-self: start;
}
.eid-login-card h2 { font-family: var(--display); font-weight: 800; font-size: 1.8rem; margin: 0.3rem 0 0.8rem; }
.eid-btn-google {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1rem;
  font-family: var(--ui); font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 0.8em 1.4em; border: 1.5px solid var(--ink); border-radius: 3px;
  background: var(--page); color: var(--ink); box-shadow: 4px 4px 0 var(--gold);
  transition: transform .15s, box-shadow .15s;
}
.eid-btn-google:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--gold); }
.eid-btn-google .eid-g {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--display); font-weight: 900; font-size: 1rem;
}
.eid-login-note { margin-top: 1.2rem; font-size: 0.85rem; }

.eid-userbar {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.4rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
  font-family: var(--ui); font-size: 0.92rem;
}
.eid-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule); }
.eid-logout { margin-left: auto; font-weight: 600; color: var(--red); text-decoration: none; }
.eid-logout:hover { text-decoration: underline; }

.eid-articulo-html { font-size: 0.95rem; color: rgba(26,26,26,0.82); }
.eid-articulo-html img { max-width: 100%; border: 1px solid var(--rule); margin: 0.6rem 0; }
.eid-articulo-html h2, .eid-articulo-html h3 { font-family: var(--display); font-size: 1.1rem; margin: 0.5rem 0 0.3rem; }
.eid-articulo-html blockquote { border-left: 3px solid var(--gold); margin: 0.5rem 0; padding-left: 0.8rem; font-style: italic; }

/* ── Gestión: tablas (artículos / usuarios) ────────────────────────────── */

.eid-gestion { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.eid-gestion-head { border-bottom: 1px solid var(--rule); padding-bottom: 1.6rem; margin-bottom: 2rem; }
.eid-gestion-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem,5vw,3.2rem); line-height: 1.02; margin: 0.3rem 0 0.7rem; letter-spacing: -0.02em; }
.eid-gestion-sub { font-family: var(--ui); font-size: 1.02rem; color: rgba(26,26,26,0.7); margin: 0; max-width: 64ch; }

.eid-table { width: 100%; border-collapse: collapse; font-family: var(--ui); }
.eid-table thead th {
  text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(26,26,26,0.55); padding: 0.6rem 0.8rem;
  border-bottom: 2px solid var(--ink);
}
.eid-table th.eid-th-acc { text-align: right; }
.eid-table tbody td { padding: 0.85rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.eid-table tbody td.eid-th-acc { text-align: right; }
.eid-row.is-clickable { cursor: pointer; transition: background .12s; }
.eid-row.is-clickable:hover { background: rgba(201,168,106,0.12); }
.eid-cell-title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.eid-cell-id { font-family: var(--ui); font-size: 0.72rem; color: rgba(26,26,26,0.4); margin-left: 0.5rem; }
.eid-cell-fecha { font-size: 0.85rem; color: rgba(26,26,26,0.6); white-space: nowrap; }
.eid-pill {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.2em 0.7em; border: 1px solid var(--rule-strong); border-radius: 100px;
}
.eid-btn-edit {
  font-family: var(--ui); font-weight: 600; font-size: 0.82rem; cursor: pointer;
  padding: 0.4em 0.9em; border: 1.5px solid var(--ink); border-radius: 3px;
  background: var(--page); color: var(--ink); white-space: nowrap;
}
.eid-btn-edit:hover { background: var(--ink); color: var(--page); }
.eid-td-avatar { width: 44px; }
.eid-avatar-ph {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--ink-2); font-family: var(--display); font-weight: 800;
  text-transform: uppercase;
}

.eid-editing-banner {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem;
  padding: 0.7rem 1rem; border-left: 4px solid var(--gold); background: rgba(201,168,106,0.12);
  font-family: var(--ui); font-size: 0.92rem; font-weight: 600;
}
.eid-link-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-family: var(--ui); font-weight: 600; color: var(--red); font-size: 0.9rem;
}
.eid-link-btn:hover { text-decoration: underline; }

/* ── Grupos de artículos (/articulos) ──────────────────────────────────── */

.eid-art-group { margin-bottom: 3rem; }
.eid-art-group-head {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; margin-bottom: 0.5rem;
}
.eid-art-group-head h2 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin: 0; }
.eid-art-count { font-family: var(--ui); font-size: 0.8rem; color: rgba(26,26,26,0.55); letter-spacing: 0.03em; }
.eid-art-open { margin-left: auto; font-family: var(--ui); font-weight: 600; font-size: 0.85rem; text-decoration: none; color: var(--red); }
.eid-art-open:hover { text-decoration: underline; }
.eid-art-group .eid-table thead th { border-bottom-width: 1px; }

/* ── Preview en vivo (lado derecho de /publicar-articulo) ──────────────── */

.eid-live { position: sticky; top: 90px; align-self: start; }
.eid-live-label {
  font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.7rem; font-weight: 700; color: rgba(26,26,26,0.5); margin: 0 0 0.7rem;
}
.eid-live-paper {
  background: var(--page); border: 1px solid var(--rule-strong);
  box-shadow: 8px 10px 0 rgba(26,26,26,0.08);
  padding: 2rem clamp(1.2rem, 3vw, 2rem); max-height: 75vh; overflow-y: auto;
}
.eid-live-paper .eid-preview-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.eid-live-paper .eid-preview-body { font-size: 1.02rem; }

/* ── Vista previa del artículo (magazine) ──────────────────────────────── */

.eid-btn-ghost-sm {
  font-family: var(--ui); font-weight: 600; font-size: 0.8rem; cursor: pointer;
  padding: 0.4em 0.8em; margin-right: 0.5rem; border: 1.5px solid var(--rule-strong);
  border-radius: 3px; background: transparent; color: var(--ink);
}
.eid-btn-ghost-sm:hover { border-color: var(--ink); background: rgba(26,26,26,0.05); }

.eid-preview-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(13,13,13,0.55);
  backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 1rem; overflow-y: auto;
}
.eid-preview-page { position: relative; width: 100%; max-width: 720px; }
.eid-preview-close {
  position: absolute; top: -2.6rem; right: 0; background: none; border: none;
  color: var(--paper); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.eid-preview-paper {
  background: var(--page); border: 1px solid var(--rule);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4); padding: 3.2rem clamp(1.4rem, 5vw, 3.5rem);
}
.eid-preview-kicker {
  font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; font-weight: 700; color: var(--red); margin: 0 0 0.8rem;
}
.eid-preview-title {
  font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 0.8rem;
}
.eid-preview-byline { font-family: var(--ui); font-size: 0.95rem; color: rgba(26,26,26,0.6); margin: 0 0 1.4rem; }
.eid-preview-rule { height: 3px; background: var(--ink); margin: 0 0 1.8rem; }
.eid-preview-body { font-family: var(--body); font-size: 1.12rem; line-height: 1.65; color: var(--ink); }
.eid-preview-body p { margin: 0 0 1.1rem; }
.eid-preview-body > p:first-of-type::first-letter {
  font-family: var(--display); font-weight: 800; float: left; font-size: 3.6rem;
  line-height: 0.78; padding: 0.1em 0.12em 0 0; color: var(--red);
}
.eid-preview-body h1 { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1.08; letter-spacing: -0.01em; margin: 1.6rem 0 0.7rem; color: var(--ink); }
.eid-preview-body h2 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.12; margin: 1.5rem 0 0.6rem; color: var(--ink); }
.eid-preview-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; margin: 1.2rem 0 0.5rem; color: var(--ink); }
/* No aplicar la capitular si el cuerpo empieza por un encabezado */
.eid-preview-body > h1:first-child + p::first-letter,
.eid-preview-body > h2:first-child + p::first-letter { all: unset; }
.eid-preview-body blockquote {
  margin: 1.2rem 0; padding: 0.4rem 0 0.4rem 1.2rem; border-left: 4px solid var(--gold);
  font-family: var(--display); font-style: italic; font-size: 1.3rem;
}
.eid-preview-body img { max-width: 100%; border: 1px solid var(--rule); margin: 1rem 0; border-radius: 10px; }

/* ── Galería de estatuas 3D — tarjetas con flip (foto ⟳ modelo 3D) ──────── */
.eid-model3d-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(0.8rem, 2.4vw, 1.5rem);
  margin: 1.8rem 0 2.2rem;
}
.eid-preview-body figure.eid-flip { margin: 0; perspective: 1400px; }
.eid-flip-toggle { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.eid-flip-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 8;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  border-radius: 12px;
  /* NB: nada de overflow:hidden ni filter aquí — ambos aplanan el contexto 3D
     y romperían el flip. El recorte y la sombra van en cada cara. */
}
.eid-flip-toggle:checked ~ .eid-flip-inner { transform: rotateY(180deg); }
.eid-flip-face {
  position: absolute; inset: 0; margin: 0;
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #faf7f1 0%, #ece3d3 100%);
  box-shadow: 0 1px 2px rgba(26,26,26,0.06), 0 8px 22px rgba(26,26,26,0.07);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.eid-flip:hover .eid-flip-face { box-shadow: 0 2px 4px rgba(26,26,26,0.08), 0 14px 34px rgba(26,26,26,0.13); }
.eid-flip-front { cursor: pointer; }
.eid-flip-front img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; border: 0; margin: 0; border-radius: 0; }
.eid-flip-badge {
  position: absolute; right: 0.55rem; bottom: 0.55rem;
  font-family: var(--ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  background: rgba(26,26,26,0.78); color: #fff;
  padding: 0.32em 0.7em; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(26,26,26,0.25);
}
.eid-flip-front:hover .eid-flip-badge { background: var(--red); }
.eid-flip-back { transform: rotateY(180deg); background: linear-gradient(180deg, #f6f1e8 0%, #e6dccb 100%); }
.eid-flip-back model-viewer {
  width: 100%; height: 100%;
  background-color: transparent;
  --poster-color: transparent;
  --progress-bar-color: var(--gold);
  cursor: grab;
}
.eid-flip-back model-viewer:active { cursor: grabbing; }
.eid-flip-soon {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--ui); font-size: 0.8rem; font-weight: 600; text-align: center;
  color: rgba(26,26,26,0.5); line-height: 1.3;
}
.eid-flip-soon-ic { font-size: 1.8rem; color: var(--gold); }
.eid-flip-flipback {
  position: absolute; right: 0.55rem; bottom: 0.55rem; cursor: pointer;
  font-family: var(--ui); font-size: 0.7rem; font-weight: 700;
  background: rgba(255,255,255,0.85); color: var(--ink);
  padding: 0.32em 0.7em; border-radius: 100px; border: 1px solid var(--rule);
}
.eid-flip-flipback:hover { background: #fff; }
.eid-preview-body figure.eid-flip figcaption {
  font-family: var(--ui); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  color: rgba(26,26,26,0.72); margin: 0.55rem 0 0;
}
.eid-mv-hint {
  font-family: var(--ui); font-size: 0.72rem; font-weight: 600;
  background: rgba(26,26,26,0.72); color: #fff;
  padding: 0.3em 0.7em; border-radius: 100px; white-space: nowrap;
  pointer-events: none;
}
/* ── Figuras del cuerpo del artículo (fotos con pie) ─────────────────────── */
.eid-preview-body figure.eid-art-fig { margin: 1.6rem 0; }
.eid-preview-body figure.eid-art-fig img {
  width: 100%; display: block; margin: 0;
  border: 1px solid var(--rule); border-radius: 10px;
}
.eid-preview-body figure.eid-art-fig figcaption {
  font-family: var(--ui); font-size: 0.8rem; line-height: 1.45;
  color: rgba(26,26,26,0.6); margin-top: 0.5rem;
}
.eid-preview-body figure.eid-art-wide { margin: 2rem 0; }
@media (min-width: 720px) {
  .eid-preview-body figure.eid-art-right {
    float: right; width: 42%; margin: 0.4rem 0 1rem 1.6rem;
  }
  .eid-preview-body figure.eid-art-left {
    float: left; width: 42%; margin: 0.4rem 1.6rem 1rem 0;
  }
}
/* La galería 3D despeja los flotantes previos para no montarse sobre ellos. */
.eid-preview-body .eid-model3d-galeria { clear: both; }

/* ── Video embebido (YouTube) responsive 16:9 ────────────────────────────── */
.eid-preview-body figure.eid-video { margin: 1.8rem 0; clear: both; }
.eid-preview-body figure.eid-video .eid-video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #000;
}
.eid-preview-body figure.eid-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.eid-preview-body figure.eid-video figcaption {
  font-family: var(--ui); font-size: 0.8rem; line-height: 1.45;
  color: rgba(26,26,26,0.6); margin-top: 0.5rem;
}

/* ── RA / QR bajo cada estatua (abrir el .usdz en el iPhone) ──────────────── */
.eid-flip-ar {
  display: flex; align-items: center; gap: 0.7rem; margin: 0.55rem 0 0;
  font-family: var(--ui); font-size: 0.74rem; line-height: 1.35;
  color: rgba(26,26,26,0.66);
}
.eid-flip-ar img {
  width: 78px; height: 78px; flex: 0 0 auto; margin: 0;
  border: 1px solid var(--rule); border-radius: 6px; background: #fff;
}
.eid-flip-ar a { color: var(--red); font-weight: 700; text-decoration: none; white-space: nowrap; }
.eid-flip-ar a:hover { text-decoration: underline; }

.eid-preview-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.2rem; padding: 1rem clamp(1.4rem, 5vw, 3.5rem); background: var(--ink-2);
}

/* ── Roles + detalle de usuario ────────────────────────────────────────── */

.eid-rol {
  display: inline-block; font-family: var(--ui); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2em 0.6em; border-radius: 100px;
  border: 1px solid var(--rule-strong);
}
.eid-rol-admin  { background: var(--red);  color: #fff; border-color: var(--red); }
.eid-rol-editor { background: var(--gold); color: var(--ink-2); border-color: var(--gold); }
.eid-rol-usuario { background: transparent; color: rgba(26,26,26,0.6); }

.eid-user-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.eid-row.is-selected { background: rgba(201,168,106,0.18); }

.eid-user-detail {
  position: sticky; top: 90px; border: 1.5px solid var(--rule-strong); border-radius: 6px;
  padding: 1.4rem; background: rgba(26,26,26,0.02);
}
.eid-user-detail-top { display: flex; gap: 1rem; align-items: center; margin: 0.6rem 0 1.2rem; }
.eid-user-detail-top h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 0; }
.eid-avatar-lg { width: 56px; height: 56px; font-size: 1.4rem; }
.eid-user-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0 0 1.2rem; font-family: var(--ui); font-size: 0.9rem; }
.eid-user-dl dt { color: rgba(26,26,26,0.5); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; align-self: center; }
.eid-user-dl dd { margin: 0; }
.eid-rol-editor { border-top: 1px solid var(--rule); padding-top: 1rem; }
.eid-rol-btns { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.eid-rol-btn {
  font-family: var(--ui); font-size: 0.8rem; font-weight: 600; cursor: pointer;
  padding: 0.4em 0.8em; border: 1.5px solid var(--rule-strong); border-radius: 3px;
  background: var(--page); color: var(--ink); text-transform: capitalize;
}
.eid-rol-btn:hover { border-color: var(--ink); }
.eid-rol-btn.is-active { background: var(--ink); color: var(--page); border-color: var(--ink); }

@media (max-width: 800px) { .eid-user-layout { grid-template-columns: 1fr; } }

/* ── Editor: pulido + campo de alias (slug) ────────────────────────────── */

.eid-field-hint { font-family: var(--ui); font-size: 0.8rem; color: rgba(26,26,26,0.55); }
.eid-field-hint code {
  background: rgba(26,26,26,0.07); padding: 0.1em 0.4em; border-radius: 3px;
  font-size: 0.9em; color: var(--ink);
}
.eid-slug-row {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--rule-strong); border-radius: 3px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s; background: var(--page);
}
.eid-slug-row:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(160,32,25,0.12); }
.eid-slug-prefix {
  display: flex; align-items: center; padding: 0 0.7em; white-space: nowrap;
  background: rgba(26,26,26,0.05); color: rgba(26,26,26,0.55);
  font-family: var(--ui); font-size: 0.92rem; border-right: 1.5px solid var(--rule-strong);
}
.eid-form .eid-slug-input { border: none; border-radius: 0; box-shadow: none; }
.eid-form .eid-slug-input:focus { box-shadow: none; }

/* La página de edición debe sentirse cuidada: encabezado con acento, foco claro. */
.eid-publicar-head .eid-kicker,
.eid-gestion-head .eid-kicker { color: var(--red); }
.eid-publicar-head h1 { position: relative; }
.eid-form { gap: 1.35rem; }
.eid-toolbar { position: sticky; top: 72px; z-index: 5; backdrop-filter: blur(4px); }
.eid-tb-btn:active { transform: translateY(1px); }
.eid-editor-area h1 {
  font-family: var(--display); font-weight: 900; font-size: 2rem;
  line-height: 1.05; letter-spacing: -0.01em; margin: 1.4rem 0 0.7rem;
}

/* ── Historial de versiones (editor) ───────────────────────────────────── */

.eid-historial {
  border: 1px solid var(--rule); border-left: 4px solid var(--blue); border-radius: 8px;
  background: linear-gradient(135deg, rgba(47,111,237,0.06), rgba(201,168,106,0.06));
  padding: 1rem 1.2rem; margin: 0.2rem 0 0.4rem;
}
.eid-historial-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.eid-historial-title {
  font-family: var(--ui); font-weight: 800; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--blue);
}
.eid-historial .eid-link-btn { margin-left: 0; }
.eid-rev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; max-height: 320px; overflow-y: auto; }
.eid-rev-item {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.6rem;
  background: var(--page); border: 1px solid var(--rule); border-radius: 6px;
}
.eid-rev-item .eid-avatar, .eid-rev-item .eid-avatar-ph { width: 30px; height: 30px; flex: 0 0 auto; }
.eid-rev-meta { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; flex: 1; }
.eid-rev-who { font-family: var(--ui); font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.eid-rev-when { font-family: var(--ui); font-size: 0.74rem; color: rgba(26,26,26,0.55); }
.eid-rev-tit { font-family: var(--body); font-size: 0.82rem; color: rgba(26,26,26,0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eid-rev-item .eid-btn-ghost-sm { flex: 0 0 auto; }

/* ── Plegado de secciones + reordenar (/articulos) ─────────────────────── */

.eid-collapse-btn {
  border: none; background: none; cursor: pointer; font-size: 0.9rem; line-height: 1;
  color: rgba(26,26,26,0.55); padding: 0.15rem 0.35rem; margin-right: -0.4rem;
  border-radius: 3px; transition: background .12s, color .12s;
}
.eid-collapse-btn:hover { background: rgba(26,26,26,0.06); color: var(--ink); }
.eid-td-ord { width: 1%; white-space: nowrap; }
.eid-table th.eid-td-ord { text-align: center; }
.eid-ord-btn {
  border: 1.5px solid var(--rule-strong); background: var(--page); color: var(--ink);
  cursor: pointer; border-radius: 3px; width: 1.7rem; height: 1.7rem; line-height: 1;
  font-size: 0.9rem; margin: 0 0.1rem; transition: background .12s, border-color .12s;
}
.eid-ord-btn:hover:not([disabled]) { background: var(--ink); color: var(--page); border-color: var(--ink); }
.eid-ord-btn[disabled] { opacity: 0.3; cursor: default; }
.eid-permalink {
  font-family: var(--ui); font-size: 0.8rem; color: rgba(26,26,26,0.55);
  background: rgba(26,26,26,0.05); padding: 0.2em 0.6em; border-radius: 3px;
}

/* ── Página propia del artículo: /articulos/{id|slug} ──────────────────── */

.eid-articulo-pagina { max-width: 940px; margin: 0 auto; padding: 2.4rem 1.5rem 5rem; }
.eid-articulo-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.eid-articulo-bar .eid-link-btn { margin-left: 0; }
.eid-articulo-bar .eid-btn-edit { margin-left: auto; }
.eid-articulo-paper {
  background: var(--page); border: 1px solid var(--rule);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10); padding: 3.4rem clamp(1.4rem, 5vw, 3.6rem);
}

/* ── Color «Greb»: acciones, chips, estados, filtros ───────────────────── */

/* Celda de acciones: chips en fila, alineados a la derecha, sin apilarse feo */
.eid-table tbody td.eid-th-acc {
  display: flex; gap: 0.4rem; justify-content: flex-end; flex-wrap: wrap; align-items: center;
}
.eid-btn-ghost-sm, .eid-btn-edit {
  margin: 0; border-radius: 100px; font-weight: 700; letter-spacing: 0.01em;
  font-size: 0.78rem; padding: 0.4em 0.85em; white-space: nowrap;
  transition: transform .1s, background .12s, color .12s, border-color .12s, box-shadow .12s;
}
.eid-btn-ghost-sm:active, .eid-btn-edit:active { transform: translateY(1px); }

/* «Página ↗» — azul */
a.eid-btn-ghost-sm {
  border: 1.5px solid var(--blue); color: var(--blue); background: rgba(47,111,237,0.07);
  text-decoration: none;
}
a.eid-btn-ghost-sm:hover { background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 3px 10px rgba(47,111,237,0.30); }

/* «Vista previa» — teal */
button.eid-btn-ghost-sm {
  border: 1.5px solid var(--teal); color: var(--teal); background: rgba(12,166,166,0.08);
}
button.eid-btn-ghost-sm:hover { background: var(--teal); color: #fff; border-color: var(--teal);
  box-shadow: 0 3px 10px rgba(12,166,166,0.30); }

/* «Editar» — rojo de marca, relleno */
.eid-btn-edit {
  border: 1.5px solid var(--red); background: var(--red); color: #fff;
}
.eid-btn-edit:hover { background: #861a14; border-color: #861a14; color: #fff;
  box-shadow: 0 3px 10px rgba(160,32,25,0.32); }

/* Chips de sección: color rotando por el nombre (clase la añade el markup base) */
.eid-pill {
  background: rgba(124,77,255,0.10); border-color: rgba(124,77,255,0.45); color: var(--purple);
  font-weight: 700;
}

/* Estado */
.eid-estado {
  display: inline-block; font-family: var(--ui); font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2em 0.7em; border-radius: 100px;
  border: 1.5px solid transparent;
}
.eid-estado-publicado { background: rgba(31,157,87,0.12); color: var(--green); border-color: rgba(31,157,87,0.4); }
.eid-estado-borrador  { background: rgba(224,138,0,0.14); color: var(--amber); border-color: rgba(224,138,0,0.45); }
.eid-estado-archivado { background: rgba(26,26,26,0.08); color: rgba(26,26,26,0.55); border-color: var(--rule-strong); }

/* Botones de orden ↑/↓ en color */
.eid-ord-btn { color: var(--blue); border-color: rgba(47,111,237,0.45); }
.eid-ord-btn:hover:not([disabled]) { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Barra de filtros — tarjeta viva con acento dorado */
.eid-filtros {
  display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem;
  padding: 1rem 1.2rem; border-radius: 10px;
  background: linear-gradient(135deg, rgba(201,168,106,0.14), rgba(47,111,237,0.07));
  border: 1px solid var(--rule);
}
.eid-filtros-title {
  font-family: var(--ui); font-weight: 800; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--red); align-self: center; margin-right: 0.2rem;
}
.eid-filtro { display: flex; flex-direction: column; gap: 0.3rem; }
.eid-filtro-label {
  font-family: var(--ui); font-weight: 700; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: rgba(26,26,26,0.6);
}
.eid-filtro select {
  font-family: var(--ui); font-size: 0.9rem; color: var(--ink); background: var(--page);
  border: 1.5px solid var(--rule-strong); border-radius: 6px; padding: 0.45em 0.7em; min-width: 9rem;
  transition: border-color .15s, box-shadow .15s;
}
.eid-filtro select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,237,0.15); }
.eid-filtro-clear {
  align-self: center; font-family: var(--ui); font-weight: 700; font-size: 0.8rem; cursor: pointer;
  padding: 0.45em 0.9em; border-radius: 100px; border: 1.5px solid var(--red);
  background: rgba(160,32,25,0.06); color: var(--red);
}
.eid-filtro-clear:hover { background: var(--red); color: #fff; }

/* Cabeceras de sección con acento de color */
.eid-art-group-head { border-bottom-color: var(--red); }
.eid-art-group-head h2 { color: var(--ink); }
.eid-collapse-btn { color: var(--red); }
.eid-collapse-btn:hover { background: rgba(160,32,25,0.08); }

/* Acciones en la página del artículo, con color */
.eid-articulo-bar .eid-link-btn { color: var(--blue); }
.eid-articulo-bar .eid-link-btn:hover { color: var(--blue); }

/* ── Selects modernos (sin estilo nativo del sistema) ──────────────────── */

.eid-form select,
.eid-filtro select,
.eid-select select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-color: var(--page);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a02019' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7em center; background-size: 16px;
  padding-right: 2.3em !important; cursor: pointer;
  border: 1.5px solid var(--rule-strong); border-radius: 8px;
  font-family: var(--ui); font-weight: 600; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.eid-form select:hover, .eid-filtro select:hover, .eid-select select:hover { border-color: var(--ink); }
.eid-form select:focus, .eid-filtro select:focus, .eid-select select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(160,32,25,0.14);
}
.eid-select { display: block; }
.eid-form select option { font-weight: 500; }

/* ── Iconos (Lucide inline) en la barra del editor ─────────────────────── */

.eid-icon { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.eid-tb-btn { gap: 0.4rem; }
.eid-tb-btn .eid-icon { color: var(--red); }
.eid-tb-btn:hover .eid-icon { color: var(--page); }
.eid-bubble-btn { display: inline-flex; align-items: center; }
.eid-bubble-btn .eid-icon { color: var(--page); }

/* ── Autores: enlace, perfil y listado ─────────────────────────────────── */

.eid-autor-link { color: var(--blue); text-decoration: none; font-weight: 600; border-bottom: 1px dotted transparent; }
.eid-autor-link:hover { border-bottom-color: var(--blue); }
.eid-byline-fecha { color: rgba(26,26,26,0.55); font-weight: 400; }

.eid-autor-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.eid-autor-art { border-bottom: 1px solid var(--rule); }
.eid-autor-art-link {
  display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0.4rem; text-decoration: none;
  color: var(--ink); transition: background .12s;
}
.eid-autor-art-link:hover { background: rgba(201,168,106,0.12); }
.eid-autor-art-tit { font-family: var(--display); font-weight: 700; font-size: 1.15rem; flex: 1; }
.eid-autor-art-date { font-family: var(--ui); font-size: 0.82rem; color: rgba(26,26,26,0.55); white-space: nowrap; }

.eid-autores-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-top: 1.6rem;
}
.eid-autor-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center;
  padding: 1.4rem 1rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 10px; background: var(--page);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.eid-autor-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.10); border-color: var(--gold); }
.eid-autor-card-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.eid-autor-card-count { font-family: var(--ui); font-size: 0.8rem; color: rgba(26,26,26,0.55); }

/* ── Pie del artículo: anterior/siguiente + relacionados ───────────────── */

.eid-articulo-footer { max-width: 760px; margin: 2.2rem auto 0; }
.eid-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.eid-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; }
.eid-rel-card {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--page);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.eid-rel-card:hover { border-color: var(--blue); box-shadow: 0 5px 16px rgba(47,111,237,0.12); transform: translateY(-1px); }
.eid-rel-tag {
  font-family: var(--ui); font-weight: 700; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--red);
}
.eid-rel-tit { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: var(--ink); }
.eid-relacionados { margin-top: 1.6rem; }
.eid-rel-title {
  font-family: var(--ui); font-weight: 800; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--red); margin: 0 0 0.8rem;
}

/* Rol «autor» */
.eid-rol-autor { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Botón borrar (papelera) */
.eid-btn-danger {
  font-family: var(--ui); font-weight: 700; font-size: 0.78rem; cursor: pointer;
  padding: 0.4em 0.85em; border-radius: 100px; white-space: nowrap;
  border: 1.5px solid var(--red); background: transparent; color: var(--red);
  transition: background .12s, color .12s, box-shadow .12s;
}
.eid-btn-danger:hover { background: var(--red); color: #fff; box-shadow: 0 3px 10px rgba(160,32,25,0.28); }

/* ── Ediciones: vista pública + constructor ────────────────────────────── */

.eid-edicion { max-width: 920px; margin: 0 auto; padding: 1.6rem 1.5rem 5rem; }
.eid-ed-bar { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.eid-ed-bar .eid-link-btn { margin-left: 0; }
.eid-ed-bar .eid-link-btn + .eid-link-btn { margin-left: auto; }
.eid-ediciones-acc { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.eid-ed-portada {
  position: relative; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden;
  background: var(--ink); color: var(--page); margin-bottom: 2rem;
}
.eid-ed-cover { width: 100%; max-height: 420px; object-fit: cover; display: block; opacity: 0.85; }
.eid-ed-portada-txt { padding: 1.6rem 1.8rem; }
.eid-ed-cover + .eid-ed-portada-txt {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,13,13,0.85));
}
.eid-ed-kicker { font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.72rem; font-weight: 700; color: var(--gold); margin: 0 0 0.4rem; }
.eid-ed-titulo { font-family: var(--display); font-weight: 900; font-size: clamp(2rem,5vw,3.2rem);
  line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
.eid-ed-sub { font-family: var(--display); font-style: italic; font-size: 1.2rem; margin: 0.5rem 0 0; opacity: 0.9; }

.eid-ed-h2 { font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  border-bottom: 2px solid var(--red); padding-bottom: 0.4rem; margin: 2rem 0 1rem; }
.eid-ed-nota-cuerpo { font-family: var(--body); font-size: 1.1rem; line-height: 1.7; white-space: pre-wrap; }

.eid-ed-indice { background: rgba(201,168,106,0.08); border: 1px solid var(--rule);
  border-radius: 10px; padding: 1.2rem 1.6rem; }
.eid-ed-indice-sec { margin-bottom: 0.8rem; }
.eid-ed-indice-seccion { font-family: var(--ui); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.78rem; color: var(--red); margin: 0.6rem 0 0.3rem; }
.eid-ed-indice ul { margin: 0; padding-left: 1.2rem; }
.eid-ed-indice a { color: var(--ink); text-decoration: none; font-weight: 600; }
.eid-ed-indice a:hover { color: var(--red); }

.eid-ed-seccion { margin-top: 2rem; }
.eid-ed-art { padding: 1rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: 0.8rem; align-items: flex-start; }
.eid-ed-art-cuerpo { flex: 1; min-width: 0; }
.eid-ed-art-ord { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0.2rem; padding-top: 0.2rem; }
.eid-ed-art-ord .eid-ord-btn { display: block; }
.eid-ed-art-link { text-decoration: none; }
.eid-ed-art-tit { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.15;
  margin: 0 0 0.2rem; color: var(--ink); }
.eid-ed-art-link:hover .eid-ed-art-tit { color: var(--red); }
.eid-ed-art-meta { font-family: var(--ui); font-size: 0.85rem; color: rgba(26,26,26,0.6); margin: 0 0 0.4rem; }
.eid-ed-art-extracto { font-family: var(--body); font-size: 1rem; color: rgba(26,26,26,0.8); margin: 0; }

/* Constructor */
.eid-ed-builder { border: 1.5px solid var(--blue); border-radius: 10px; padding: 1.4rem;
  background: linear-gradient(135deg, rgba(47,111,237,0.05), rgba(201,168,106,0.05)); margin-bottom: 2rem; }
.eid-ed-builder-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.eid-ed-builder-title { font-family: var(--ui); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.78rem; color: var(--blue); }
.eid-ed-builder .eid-field, .eid-ed-builder .eid-form-row { margin-bottom: 1rem; }
.eid-ed-builder input[type=text], .eid-ed-nota-input {
  font-family: var(--body); font-size: 1rem; width: 100%;
  border: 1.5px solid var(--rule-strong); border-radius: 8px; padding: 0.6em 0.8em; background: var(--page); }
.eid-ed-nota-input { line-height: 1.6; resize: vertical; }
.eid-ed-portada-row { display: flex; align-items: center; gap: 1rem; }
.eid-ed-portada-thumb { width: 90px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); }
.eid-ed-secs, .eid-ed-asignar { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.eid-ed-sec-item { display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0.6rem; border: 1px solid var(--rule); border-radius: 6px; margin-bottom: 0.3rem;
  font-family: var(--ui); font-weight: 600; background: var(--page); }
.eid-ed-asignar { max-height: 260px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 8px; padding: 0.4rem; }
.eid-ed-asignar-item label { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.4rem; cursor: pointer; }
.eid-ed-asignar-item label:hover { background: rgba(201,168,106,0.1); }
.eid-ed-asignar-tit { flex: 1; font-family: var(--body); }
.eid-ed-pub { display: flex; align-items: center; gap: 0.5rem; font-family: var(--ui); font-weight: 600; margin: 0.8rem 0; }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  body { font-size: 17px; }
  .eid-hero { grid-template-columns: 1fr; padding-top: 2.5rem; gap: 2rem; }
  .eid-hero-cover { max-width: 360px; margin: 0 auto; }
  .eid-columns { columns: 1; }
  .eid-editores-grid, .eid-biblioteca-grid, .eid-publicar-grid { grid-template-columns: 1fr; gap: 2rem; }
  .eid-articulos { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 2rem; }
  .eid-topbar-nav { gap: 0.9rem; font-size: 0.82rem; }
  .eid-topbar-nav a:not(.eid-topbar-cta) { display: none; }
}

@media (max-width: 560px) {
  .eid-issue-card { grid-template-columns: 120px 1fr; gap: 1rem; }
  .eid-form-row { grid-template-columns: 1fr; }
  .eid-topbar-brand { font-size: 1rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   BLOG / PORTADA  (landing = últimos artículos)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Masthead del blog ─────────────────────────────────────────────────── */
.eid-blog-masthead {
  border-bottom: 3px double var(--rule-strong);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(201,168,106,0.10), transparent 60%),
    var(--page);
}
.eid-blog-masthead-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.7rem 1.5rem 1.3rem;
  text-align: center;
}
.eid-blog-eyebrow {
  font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.66rem; font-weight: 700; color: var(--red); margin: 0 0 0.7rem;
}
.eid-blog-logo {
  width: 100%; max-width: 380px; margin: 0 auto;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.06));
}
.eid-blog-tagline {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1.15rem; margin: 0.5rem 0 0.5rem; color: var(--ink);
}
.eid-blog-masthead-meta {
  font-family: var(--ui); font-size: 0.78rem; letter-spacing: 0.08em;
  color: rgba(26,26,26,0.6); display: flex; gap: 0.55rem; justify-content: center;
  text-transform: uppercase;
}
.eid-blog-masthead-meta .dot { color: var(--gold); }

/* ── Contenedor del feed ───────────────────────────────────────────────── */
.eid-blog { }
.eid-blog-feed {
  max-width: var(--maxw); margin: 0 auto; padding: 1.6rem 1.5rem 1rem;
}
.eid-blog-feed-head { margin-bottom: 1.1rem; }
.eid-blog-feed-head h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.03; margin: 0; letter-spacing: -0.02em;
}
.eid-blog-feed-sub {
  font-family: var(--ui); font-size: 1rem; color: rgba(26,26,26,0.66);
  margin: 0.7rem 0 0; max-width: 52ch;
}

/* ── Layout de dos columnas (feed + lateral fijo) ──────────────────────── */
.eid-blog-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3.2rem;
  align-items: start; margin-top: 2rem;
  border-top: 1px solid var(--rule); padding-top: 2.4rem;
}
.eid-blog-main { min-width: 0; }
.eid-blog-side {
  position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2rem;
  max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin;
}
.eid-cats-toggle {
  font-family: var(--ui); font-size: 0.78rem; font-weight: 600; color: var(--red);
  background: none; border: none; cursor: pointer; padding: 0.3rem 0 0; text-align: left;
}
.eid-cats-toggle:hover { text-decoration: underline; }

/* ── Lateral: módulos ──────────────────────────────────────────────────── */
.eid-side-title {
  font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; font-weight: 700; color: var(--red); margin: 0 0 0.9rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink);
}
.eid-cats-list { list-style: none; margin: 0; padding: 0; }
.eid-cats-list li { border-bottom: 1px solid var(--rule); }
.eid-cat {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: 0; cursor: pointer; padding: 0.55rem 0.2rem;
  font-family: var(--ui); font-weight: 600; font-size: 0.92rem; color: var(--ink);
  transition: color .15s, padding .15s;
}
.eid-cat:hover { color: var(--red); padding-left: 0.5rem; }
.eid-cat.is-active { color: var(--red); }
.eid-cat.is-active span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.eid-cat-n {
  font-size: 0.72rem; font-weight: 700; color: rgba(26,26,26,0.5);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  min-width: 1.6rem; text-align: center; padding: 0.05rem 0.4rem;
}
.eid-side-anunciate {
  border: 1px solid var(--rule); background: var(--paper); padding: 1.2rem;
}
.eid-side-anunciate-txt {
  font-family: var(--body); font-size: 0.9rem; line-height: 1.5;
  color: rgba(26,26,26,0.72); margin: 0 0 1rem;
}

/* ── Media de tarjeta (fallback siempre presente detrás de la imagen) ──── */
.eid-post-media {
  position: relative; overflow: hidden; border: 1px solid var(--rule);
  background: linear-gradient(135deg, var(--ink-2), #2b2b2b);
  display: grid; place-items: center;
}
.eid-post-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease;
}
.eid-post-media-kicker {
  font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; font-weight: 700; color: var(--gold); text-align: center; padding: 1rem;
}

/* ── Post destacado (lead, media arriba a lo ancho de la columna) ──────── */
.eid-post-lead { margin-bottom: 2.8rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--rule); }
.eid-post-lead-link { display: block; text-decoration: none; color: inherit; }
.eid-post-media-lead { aspect-ratio: 16 / 9; margin-bottom: 1.2rem; }
.eid-post-lead:hover .eid-post-media img { transform: scale(1.03); }
.eid-post-lead-body { display: block; }
.eid-post-lead-title {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0.5rem 0 0.7rem;
}
.eid-post-lead:hover .eid-post-lead-title { color: var(--red); }
.eid-post-lead .eid-post-excerpt { font-size: 1.06rem; max-width: 62ch; }

/* ── Parrilla de tarjetas (2 columnas dentro del feed) ─────────────────── */
.eid-blog-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 2rem;
}
.eid-post-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.eid-post-media-card { aspect-ratio: 3 / 2; margin-bottom: 0.9rem; }
.eid-post-card:hover .eid-post-media img { transform: scale(1.04); }
.eid-post-card-title {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.12;
  letter-spacing: -0.01em; margin: 0.3rem 0 0.5rem;
}
.eid-post-card:hover .eid-post-card-title { color: var(--red); }

/* ── Meta común de post ────────────────────────────────────────────────── */
.eid-post-kicker {
  font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.68rem; font-weight: 700; color: var(--red); margin: 0;
  display: flex; gap: 0.5rem; align-items: center;
}
.eid-post-sec { color: var(--red); }
.eid-post-excerpt {
  font-family: var(--body); font-size: 0.98rem; color: rgba(26,26,26,0.72);
  margin: 0 0 0.8rem; line-height: 1.5;
}
.eid-post-card .eid-post-excerpt { font-size: 0.92rem; }
.eid-post-meta {
  font-family: var(--ui); font-size: 0.78rem; letter-spacing: 0.03em;
  color: rgba(26,26,26,0.6); margin: auto 0 0; display: flex; gap: 0.5rem; align-items: center;
}
.eid-post-autor { font-weight: 700; color: var(--ink); }
.eid-post-dot { color: var(--gold); }

/* ── Anuncio: piezas compartidas ───────────────────────────────────────── */
.eid-ad-tag {
  display: inline-block;
  font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.58rem; font-weight: 700; color: rgba(26,26,26,0.5);
  border: 1px solid var(--rule); border-radius: 3px; padding: 0.22rem 0.5rem;
}
.eid-ad-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.7rem 0.9rem; border-top: 1px solid var(--rule); font-family: var(--ui);
}
.eid-ad-brand { font-weight: 800; letter-spacing: 0.13em; font-size: 0.78rem; }
.eid-ad-go { font-weight: 600; font-size: 0.8rem; color: var(--red); white-space: nowrap; }

/* ── (1) Anuncio vertical del lateral ──────────────────────────────────── */
.eid-ad-v .eid-ad-tag { margin-bottom: 0.6rem; }
.eid-ad-v-link {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--ink); background: #fff;
  box-shadow: 8px 11px 0 rgba(26,26,26,0.10), 0 18px 40px rgba(0,0,0,0.14);
  transition: transform .3s ease, box-shadow .3s ease;
}
.eid-ad-v-link:hover { transform: translateY(-3px); box-shadow: 11px 16px 0 rgba(160,32,25,0.16), 0 26px 54px rgba(0,0,0,0.2); }
.eid-ad-v-img { width: 100%; display: block; }

/* ── (2) Anuncio en banda horizontal (una vez en el feed) ──────────────── */
.eid-ad-band {
  display: grid; grid-template-columns: 200px 1fr; align-items: stretch;
  text-decoration: none; color: inherit; margin: 2.8rem 0;
  border: 1px solid var(--ink); background: var(--ink-2); color: var(--paper);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 8px 11px 0 rgba(26,26,26,0.12);
}
.eid-ad-band:hover { transform: translateY(-3px); box-shadow: 12px 16px 0 rgba(160,32,25,0.2); }
.eid-ad-band-media { position: relative; min-height: 190px; overflow: hidden; }
.eid-ad-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.eid-ad-band-body { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; }
.eid-ad-band-body .eid-ad-tag { color: var(--gold); border-color: rgba(201,168,106,0.5); align-self: flex-start; }
.eid-ad-band-brand { font-family: var(--ui); font-weight: 800; letter-spacing: 0.16em; font-size: 1.15rem; margin: 0.5rem 0 0; }
.eid-ad-band-line { font-family: var(--body); font-style: italic; color: rgba(244,237,224,0.8); margin: 0 0 0.4rem; }
.eid-ad-band .eid-ad-go { color: var(--gold); font-weight: 700; }

/* ── Ediciones (strip) ─────────────────────────────────────────────────── */
.eid-blog-ediciones {
  max-width: var(--maxw); margin: 2rem auto 0; padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--rule);
}
.eid-blog-sec-head { margin-bottom: 2rem; }
.eid-blog-sec-head h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05; margin: 0; letter-spacing: -0.015em;
}
.eid-blog-ediciones-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.eid-blog-ed {
  display: grid; grid-template-columns: 150px 1fr; gap: 1.4rem; align-items: center;
  text-decoration: none; color: inherit; padding: 1.2rem; border: 1px solid var(--rule);
  background: var(--page); transition: box-shadow .2s ease, transform .2s ease;
}
.eid-blog-ed:hover { transform: translateY(-3px); box-shadow: 8px 12px 0 rgba(26,26,26,0.08); }
.eid-blog-ed img { width: 150px; height: 200px; object-fit: cover; border: 1px solid var(--rule); }
.eid-blog-ed-soon {
  width: 150px; height: 200px; display: grid; place-content: center; text-align: center;
  background: linear-gradient(135deg, var(--ink-2), #2b2b2b); color: var(--gold);
  border: 1px solid var(--rule);
}
.eid-blog-ed-soon span { font-family: var(--display); font-weight: 800; font-size: 2.4rem; }
.eid-blog-ed-soon p { font-family: var(--ui); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0.4rem 0 0; }
.eid-blog-ed-num { font-family: var(--ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--red); margin: 0; }
.eid-blog-ed-info h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin: 0.35rem 0; line-height: 1.1; }
.eid-blog-ed-fecha { font-family: var(--ui); font-size: 0.82rem; color: rgba(26,26,26,0.6); margin: 0 0 0.6rem; }
.eid-blog-ed-link { font-family: var(--ui); font-weight: 700; font-size: 0.85rem; color: var(--red); }
.eid-blog-ed-badge {
  font-family: var(--ui); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(26,26,26,0.55);
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0.2rem 0.7rem; display: inline-block;
}

/* ── Anúnciate (blog) ──────────────────────────────────────────────────── */
.eid-blog-anunciate { background: var(--ink-2); color: var(--paper); }
.eid-blog-anunciate-inner { max-width: 780px; margin: 0 auto; padding: 4.5rem 1.5rem; text-align: center; }
.eid-blog-anunciate .eid-kicker { color: var(--gold); }
.eid-blog-anunciate-inner h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.06; margin: 0 0 1.1rem; letter-spacing: -0.015em;
}
.eid-blog-anunciate-lead {
  font-family: var(--body); font-size: 1.1rem; line-height: 1.6;
  color: rgba(244,237,224,0.82); margin: 0 auto 2rem; max-width: 60ch;
}

/* ── Responsive del blog ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  /* El lateral pasa a fluir bajo el feed (sin sticky). */
  .eid-blog-layout { grid-template-columns: 1fr; gap: 2.4rem; }
  .eid-blog-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 1.6rem; }
  .eid-blog-side > * { flex: 1 1 240px; }
  .eid-ad-v-link { max-width: 340px; }
}
@media (max-width: 900px) {
  .eid-blog-ediciones-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .eid-blog-grid { grid-template-columns: 1fr; }
  .eid-ad-band { grid-template-columns: 1fr; }
  .eid-ad-band-media { min-height: 200px; }
  .eid-blog-side { flex-direction: column; }
}
@media (max-width: 560px) {
  .eid-blog-ed { grid-template-columns: 110px 1fr; gap: 1rem; }
  .eid-blog-ed img, .eid-blog-ed-soon { width: 110px; height: 150px; }
  .eid-ad { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════════
   TIRA CÓMICA + CATÁLOGO DE ANUNCIANTES
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tira cómica de apertura (discreta, no domina la portada) ────────────── */
.eid-blog-comic-wrap { max-width: 620px; margin: 0 auto; padding: 1.4rem 1.5rem 0; }
.eid-comic {
  position: relative; margin: 0; border: 1px solid var(--rule-strong); background: var(--page);
  box-shadow: 4px 6px 0 rgba(26,26,26,0.06);
}
.eid-comic-tag {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2;
  font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.52rem; font-weight: 700; color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.5); padding: 0.2rem 0.5rem; border-radius: 3px; backdrop-filter: blur(2px);
}
.eid-comic-img { width: 100%; display: block; border-bottom: 1px solid var(--rule); }
.eid-comic-cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.45rem 0.8rem; font-family: var(--ui); font-size: 0.68rem; color: rgba(26,26,26,0.5);
}
.eid-comic-cap strong { color: var(--ink); font-weight: 700; letter-spacing: 0.02em; font-size: 0.76rem; }

/* ── Anuncio diseñado (clientes sin creatividad: Scouts, Greb) ──────────── */
.eid-ad-designed {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.7rem; color: var(--paper); padding: 1.6rem 1.2rem;
}
.eid-ad-designed-sym { font-size: 2.8rem; line-height: 1; color: rgba(255,255,255,0.95); }
.eid-ad-designed-head {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.12; color: #fff;
}
.eid-ad-designed.eid-ad-v-img { min-height: 360px; }
.eid-ad-designed.eid-ad-band-img { position: absolute; inset: 0; }
.eid-ad-designed.eid-ad-card-img { width: 100%; height: 100%; }

/* ── Sección «Anunciantes» (discreta: tira compacta, sin descripciones) ─── */
.eid-anunciantes {
  max-width: var(--maxw); margin: 0 auto; padding: 2.4rem 1.5rem; border-top: 1px solid var(--rule);
}
.eid-anunciantes .eid-blog-sec-head { margin-bottom: 1.2rem; }
.eid-anunciantes .eid-blog-sec-head h2 { font-size: 1.2rem; font-weight: 700; }
.eid-ad-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
.eid-ad-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--rule); background: var(--page); border-radius: 4px; overflow: hidden;
  transition: border-color .2s ease;
}
.eid-ad-card:hover { border-color: var(--ink); }
.eid-ad-card-media {
  aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--rule);
  background: var(--paper); display: grid; place-items: center;
}
.eid-ad-card-img { width: 100%; height: 100%; object-fit: cover; }
.eid-ad-card-logo { max-width: 60%; }
.eid-ad-card-body { padding: 0.55rem 0.6rem; display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.eid-ad-card-brand { font-family: var(--ui); font-weight: 700; font-size: 0.76rem; margin: 0; line-height: 1.15; }
.eid-ad-card-tag { display: none; }
.eid-ad-card-desc { display: none; }
.eid-ad-card-cta { margin-top: auto; padding-top: 0.35rem; font-family: var(--ui); font-weight: 600; font-size: 0.68rem; color: var(--red); }
.eid-ad-designed.eid-ad-card-img { min-height: 0; }
.eid-ad-designed.eid-ad-card-img .eid-ad-designed-sym { font-size: 1.6rem; }
.eid-ad-designed.eid-ad-card-img .eid-ad-designed-head { font-size: 0.8rem; }

@media (max-width: 900px) { .eid-ad-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .eid-ad-cards { grid-template-columns: repeat(2, 1fr); } }

/* ══════════════════════════════════════════════════════════════════════════
   MAPA DE GRUPOS SCOUTS (RD)
   ══════════════════════════════════════════════════════════════════════════ */
.eid-mapa { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem; border-top: 1px solid var(--rule); }
.eid-mapa-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.4rem; align-items: start; margin-top: 1.4rem; }
.eid-mapa-fig {
  border: 1px solid var(--ink); background:
    radial-gradient(120% 120% at 30% 0%, rgba(31,157,87,0.10), transparent 60%), var(--page);
  padding: 0.6rem; box-shadow: 8px 11px 0 rgba(26,26,26,0.08);
}
.eid-mapa-svg { width: 100%; height: auto; display: block; }
.eid-mapa-pais { fill: rgba(31,157,87,0.12); stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; }
.eid-mapa-halo { fill: rgba(160,32,25,0.14); }
.eid-mapa-dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.eid-mapa-dot-n { fill: #fff; font-family: var(--ui); font-weight: 800; font-size: 20px; }
.eid-mapa-lbl { fill: var(--ink); font-family: var(--ui); font-weight: 700; font-size: 20px; letter-spacing: 0.01em; }
.eid-mapa-mk { transition: opacity .2s; }

.eid-mapa-list { list-style: none; margin: 0; padding: 0; }
.eid-mapa-city { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.eid-mapa-city-name {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.3rem;
  font-family: var(--ui); font-weight: 700; font-size: 0.95rem;
}
.eid-mapa-city-n {
  font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--red);
  border-radius: 999px; min-width: 1.4rem; text-align: center; padding: 0.05rem 0.45rem;
}
.eid-mapa-groups { list-style: none; margin: 0; padding: 0 0 0 0.2rem; }
.eid-mapa-groups li { font-family: var(--body); font-size: 0.9rem; color: rgba(26,26,26,0.78); padding: 0.12rem 0; }
.eid-mapa-gnum { color: rgba(26,26,26,0.45); font-family: var(--ui); font-size: 0.78rem; }

@media (max-width: 820px) {
  .eid-mapa-layout { grid-template-columns: 1fr; }
  .eid-mapa-lbl, .eid-mapa-dot-n { font-size: 24px; }
}
.eid-mapa-glink { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(160,32,25,0.3); }
.eid-mapa-glink:hover { border-bottom-color: var(--red); }

/* ══════════════════════════════════════════════════════════════════════════
   GESTIÓN DE ANUNCIOS (admin)
   ══════════════════════════════════════════════════════════════════════════ */
.eid-anunciantes-admin { margin-left: auto; }
.eid-blog-sec-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.eid-an-form {
  border: 1px solid var(--rule); background: var(--page); padding: 1.4rem 1.6rem;
  margin: 1.4rem 0 2.4rem; max-width: 760px;
}
.eid-an-form h2, .eid-an-hist h2 {
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin: 0 0 1rem;
}
.eid-an-chks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: 0.4rem; }
.eid-an-chk {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
  font-family: var(--ui); font-weight: 600; font-size: 0.9rem;
  border: 1.5px solid var(--rule); border-radius: 999px; padding: 0.35rem 0.8rem;
  transition: border-color .15s, background .15s;
}
.eid-an-chk:hover { border-color: var(--ink); }
.eid-an-chk input { accent-color: var(--red); }
.eid-an-hist { margin-top: 1rem; }

/* ══════════════════════════════════════════════════════════════════════════
   COMENTARIOS (blog ↔ greb-docs)
   ══════════════════════════════════════════════════════════════════════════ */
.eid-coment-hilo { max-width: 720px; margin: 3rem auto 0; padding: 2.2rem 1.5rem 4rem; border-top: 2px solid var(--ink); }
.eid-coment-h2 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin: 0 0 0.3rem; display: flex; align-items: baseline; gap: 0.6rem; }
.eid-coment-n { font-family: var(--ui); font-size: 0.9rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 0.1rem 0.6rem; }
.eid-coment-sync { font-family: var(--ui); font-size: 0.8rem; color: rgba(26,26,26,0.55); margin: 0 0 1.6rem; }

.eid-coment-login { border: 1px solid var(--rule); background: var(--page); padding: 1.2rem 1.4rem; }
.eid-coment-login p { margin: 0 0 0.8rem; font-family: var(--ui); }

.eid-coment-composer { border: 1px solid var(--ink); background: var(--page); padding: 1rem 1.1rem 1.1rem; margin-bottom: 2rem; }
.eid-coment-composer-head { display: flex; align-items: center; gap: 0.6rem; font-family: var(--ui); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.7rem; }
.eid-coment-composer-head .eid-avatar, .eid-coment-composer-head .eid-avatar-ph { width: 30px; height: 30px; }
.eid-coment-tools { display: flex; gap: 0.35rem; margin-bottom: 0.5rem; }
.eid-coment-tool { font-family: var(--ui); min-width: 2rem; height: 2rem; border: 1.5px solid var(--rule); background: transparent; border-radius: 5px; cursor: pointer; font-size: 0.9rem; }
.eid-coment-tool:hover { border-color: var(--ink); background: var(--paper); }
.eid-coment-editor {
  min-height: 90px; border: 1.5px solid var(--rule); border-radius: 6px; padding: 0.7rem 0.8rem;
  font-family: var(--body); font-size: 1rem; line-height: 1.55; background: #fff; outline: none;
}
.eid-coment-editor:focus { border-color: var(--ink); }
.eid-coment-editor:empty::before { content: attr(data-placeholder); color: rgba(26,26,26,0.4); }
.eid-coment-editor img { max-width: 100%; border-radius: 4px; margin: 0.4rem 0; }
.eid-coment-actions { margin-top: 0.8rem; }

.eid-coment-list { display: flex; flex-direction: column; gap: 1.6rem; }
.eid-coment { display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; }
.eid-coment .eid-avatar, .eid-coment .eid-avatar-ph { width: 40px; height: 40px; }
.eid-coment-meta { font-family: var(--ui); font-size: 0.82rem; margin: 0 0 0.35rem; color: rgba(26,26,26,0.6); display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: baseline; }
.eid-coment-meta strong { color: var(--ink); font-size: 0.92rem; }
.eid-coment-origen { color: var(--gold); font-weight: 600; }
.eid-coment-texto { font-family: var(--body); font-size: 1rem; line-height: 1.6; }
.eid-coment-texto p { margin: 0 0 0.5rem; }
.eid-coment-texto img { max-width: 100%; border-radius: 4px; }
.eid-coment-texto a { color: var(--red); }

.eid-coment-admin-snip { max-width: 380px; max-height: 3.4em; overflow: hidden; font-size: 0.9rem; color: rgba(26,26,26,0.75); }

/* ── Sección de la tira cómica (reubicada, no encabeza la portada) ───────── */
.eid-blog-comic-sec { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem; border-top: 1px solid var(--rule); }
.eid-blog-comic-sec .eid-blog-comic-wrap { padding: 1.2rem 0 0; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════════════════
   CUERPO DE ARTÍCULO — layout rico (figuras, 2 columnas, pull-quotes, embed)
   ══════════════════════════════════════════════════════════════════════════ */
.eid-preview-body figure { margin: 1.6rem 0; }
.eid-preview-body figure.eid-fig img { width: 100%; border: 1px solid var(--rule); }
.eid-preview-body figure figcaption { font-family: var(--ui); font-size: 0.8rem; color: rgba(26,26,26,0.55); margin-top: 0.5rem; text-align: center; }
.eid-preview-body figure.eid-fig-hero { margin-top: 0.4rem; }

.eid-preview-body .eid-2col { display: grid; grid-template-columns: 0.9fr 1fr; gap: 1.8rem; align-items: center; margin: 2.2rem 0; }
.eid-preview-body .eid-2col-rev { grid-template-columns: 1fr 0.9fr; }
.eid-preview-body .eid-2col-rev .eid-2col-media { order: 2; }
.eid-preview-body .eid-2col-media img { width: 100%; border: 1px solid var(--rule); box-shadow: 6px 8px 0 rgba(26,26,26,0.06); }
.eid-preview-body .eid-2col-text h2 { margin-top: 0; }
.eid-preview-body .eid-2col-text p { margin-bottom: 0; }

.eid-preview-body blockquote.eid-pull {
  border: none; border-left: 4px solid var(--red); background: rgba(201,168,106,0.09);
  margin: 2rem 0; padding: 1rem 1.5rem; font-family: var(--display); font-style: italic;
  font-size: 1.4rem; line-height: 1.35; color: var(--ink);
}

.eid-preview-body ol.eid-qgrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  list-style: none; counter-reset: q; padding: 0; margin: 1.2rem 0;
}
.eid-preview-body ol.eid-qgrid li {
  counter-increment: q; position: relative; break-inside: avoid;
  border: 1px solid var(--rule); background: var(--page); border-radius: 8px;
  box-shadow: 4px 6px 0 rgba(26,26,26,0.05);
  padding: 0.95rem 1rem 0.95rem 2.9rem;
  font-family: var(--body); font-size: 0.92rem; line-height: 1.5;
}
.eid-preview-body ol.eid-qgrid li::before {
  content: counter(q); position: absolute; left: 0.7rem; top: 0.9rem;
  width: 1.55rem; height: 1.55rem; background: var(--red); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--ui); font-weight: 700; font-size: 0.8rem;
}

.eid-preview-body figure.eid-embed iframe {
  width: 100%; height: 540px; border: 1px solid var(--ink); border-radius: 6px;
  box-shadow: 6px 8px 0 rgba(26,26,26,0.08); background: var(--page); display: block;
}
.eid-preview-body figure.eid-embed figcaption { text-align: left; font-size: 0.82rem; color: rgba(26,26,26,0.6); }
.eid-preview-body figure.eid-embed a { color: var(--red); font-weight: 600; }

@media (max-width: 640px) {
  .eid-preview-body .eid-2col, .eid-preview-body .eid-2col-rev { grid-template-columns: 1fr; }
  .eid-preview-body .eid-2col-rev .eid-2col-media { order: 0; }
  .eid-preview-body ol.eid-qgrid { grid-template-columns: 1fr; }
  .eid-preview-body figure.eid-embed iframe { height: 400px; }
}

/* ── Avatares de autor (foto/logo) + byline con avatar ──────────────────── */
img.eid-avatar { object-fit: cover; background: var(--paper); }
.eid-avatar-md { width: 46px; height: 46px; font-size: 1.1rem; }
.eid-avatar-xl { width: 92px; height: 92px; font-size: 2.2rem; }
.eid-byline-row { display: flex; align-items: center; gap: 0.7rem; margin: 0.4rem 0 0; }
.eid-byline-row .eid-preview-byline { margin: 0; }
.eid-autor-hero-row { display: flex; align-items: center; gap: 1rem; margin-top: 0.3rem; }
.eid-autor-hero-row h1 { margin: 0; }
/* El logo de Greb como avatar no se recorta en círculo */
img.eid-avatar[src$=".svg"] { object-fit: contain; padding: 4px; background: var(--page); }
.eid-preview-body p.eid-doclink { margin: 0.7rem 0 0; }
.eid-preview-body p.eid-doclink a {
  font-family: var(--ui); font-size: 0.82rem; font-weight: 700; color: var(--red);
  text-decoration: none; border-bottom: 1px dashed rgba(160,32,25,0.45);
}
.eid-preview-body p.eid-doclink a:hover { border-bottom-style: solid; }

/* ── Compartir en redes (página de artículo) ────────────────────────────── */
.eid-share { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; }
.eid-share-label { font-family: var(--ui); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(26,26,26,0.5); margin-right: 0.15rem; }
.eid-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; color: #fff; text-decoration: none; border: none; cursor: pointer; transition: transform 0.12s ease; }
.eid-share-btn svg { display: block; }
.eid-share-btn:hover { transform: translateY(-2px); }
.eid-sh-wa { background: #25D366; }
.eid-sh-fb { background: #1877F2; }
.eid-sh-x  { background: #111; }
.eid-sh-li { background: #0A66C2; }
.eid-sh-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.eid-share-btn:hover { opacity: 0.88; }
.eid-share-copied { font-family: var(--ui); font-size: 0.72rem; font-weight: 600; color: var(--green); }

/* ── Traducción a inglés (toggle EN/ES) ─────────────────────────────────── */
.eid-lang-btn { font-weight: 700; }
.eid-lang-note { font-family: var(--ui); font-size: 0.78rem; font-style: italic; color: rgba(26,26,26,0.55); margin: 0 0 0.9rem; border-left: 3px solid var(--gold); padding-left: 0.7rem; }
.eid-lang-error { font-family: var(--ui); font-size: 0.8rem; color: var(--red); margin: 0 0 0.9rem; }

/* ── Panel de preflights ─────────────────────────────────────────────────── */
.eid-pf-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(20,18,14,0.5); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem; overflow-y: auto; }
.eid-pf { width: 100%; max-width: 640px; background: var(--page); border: 1px solid var(--ink); border-radius: 12px; box-shadow: 10px 14px 0 rgba(26,26,26,0.12); padding: 1.4rem 1.5rem 1.6rem; }
.eid-pf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.9rem; margin-bottom: 1rem; }
.eid-pf-kicker { font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.68rem; font-weight: 700; color: var(--red); margin: 0 0 0.2rem; }
.eid-pf-head h2 { font-family: var(--display); font-size: 1.4rem; margin: 0; line-height: 1.15; }
.eid-pf-x { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: rgba(26,26,26,0.5); }
.eid-pf-corriendo { font-family: var(--ui); color: rgba(26,26,26,0.6); padding: 1rem 0; }
.eid-pf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.eid-pf-item { border: 1px solid var(--rule); border-radius: 8px; padding: 0.8rem 0.9rem; }
.eid-pf-item-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.eid-pf-badge { font-family: var(--ui); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.08em; padding: 0.2rem 0.5rem; border-radius: 999px; color: #fff; }
.eid-pf-badge.is-ok { background: #1f9d57; }
.eid-pf-badge.is-warn { background: #c9a86a; color: #1a1a1a; }
.eid-pf-badge.is-error { background: var(--red); }
.eid-pf-label { font-family: var(--ui); font-weight: 700; font-size: 0.92rem; }
.eid-pf-resumen { font-family: var(--ui); font-size: 0.82rem; color: rgba(26,26,26,0.6); margin-left: auto; }
.eid-pf-matches { list-style: none; margin: 0.7rem 0 0; padding: 0.7rem 0 0; border-top: 1px dashed var(--rule); display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.82rem; }
.eid-pf-matches code { background: rgba(160,32,25,0.08); color: var(--red); padding: 0.05rem 0.3rem; border-radius: 4px; font-family: var(--ui); }
.eid-pf-sug { color: #1f9d57; font-weight: 600; font-family: var(--ui); }
.eid-pf-msg { color: rgba(26,26,26,0.6); }
.eid-pf-mas { color: rgba(26,26,26,0.5); font-style: italic; }

/* ── Preflight de edición: barra de progreso + hints ────────────────────── */
.eid-pf-barra { height: 8px; background: rgba(26,26,26,0.08); border-radius: 999px; margin: 0.7rem 0 0; overflow: hidden; }
.eid-pf-barra-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.3s ease; }
.eid-pf-hint { font-family: var(--ui); font-size: 0.82rem; color: rgba(26,26,26,0.7); margin: 0.7rem 0 0.5rem; }
.eid-pf-msg-big { font-family: var(--ui); font-size: 0.9rem; color: #1f9d57; margin: 1rem 0 0; }
.eid-pf .eid-btn-primary { margin-top: 0.6rem; }

/* ── Pestañas de edición (sala de redacción) ────────────────────────────── */
.eid-ed-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.3rem; }
.eid-ed-tab { font-family: var(--ui); font-weight: 600; font-size: 0.85rem; padding: 0.42rem 0.95rem; border: 1px solid var(--rule); background: var(--page); border-radius: 999px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 0.45rem; }
.eid-ed-tab:hover { border-color: var(--ink); }
.eid-ed-tab.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.eid-ed-tab-new { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--gold); color: #1a1a1a; padding: 0.08rem 0.4rem; border-radius: 4px; font-weight: 700; }

/* ── Autores en el landing ──────────────────────────────────────────────── */
.eid-blog-autores { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem; border-top: 1px solid var(--rule); }
.eid-blog-sec-link { font-family: var(--ui); font-weight: 600; font-size: 0.85rem; color: var(--red); text-decoration: none; margin-left: auto; }
.eid-blog-autores .eid-blog-sec-head { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.eid-blog-autores-row { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.6rem; }
.eid-blog-autor { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); width: 118px; text-align: center; }
.eid-blog-autor .eid-avatar, .eid-blog-autor .eid-avatar-ph { width: 72px; height: 72px; font-size: 1.7rem; }
.eid-blog-autor-name { font-family: var(--display); font-weight: 700; font-size: 0.95rem; line-height: 1.15; }
.eid-blog-autor-count { font-family: var(--ui); font-size: 0.74rem; color: rgba(26,26,26,0.55); }
.eid-blog-autor:hover .eid-blog-autor-name { color: var(--red); }

/* ── Página /scouts ─────────────────────────────────────────────────────── */
.eid-scouts { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 4rem; }
.eid-scouts-hero { text-align: center; padding: 3rem 0 1rem; }
.eid-scouts-hero h1 { font-family: var(--display); font-size: clamp(2.2rem,5vw,3.4rem); margin: 0.3rem 0; }
.eid-scouts-hero p { font-family: var(--ui); color: rgba(26,26,26,0.65); max-width: 46ch; margin: 0.4rem auto 0; }
.eid-scouts-arts { margin-top: 2.5rem; }
.eid-scouts-arts h2 { font-family: var(--display); font-size: 1.6rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; }

/* ── Menú móvil (hamburguesa) ────────────────────────────────────────────── */
.eid-nav-burger { display: none; }
.eid-mnav-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(20,18,14,0.42); }
.eid-mnav { position: fixed; top: 0; right: 0; z-index: 901; width: min(80vw, 320px); height: 100vh;
  background: var(--page); border-left: 1px solid var(--ink); box-shadow: -8px 0 24px rgba(0,0,0,0.14);
  display: flex; flex-direction: column; padding: 4.6rem 1.4rem 1.4rem; gap: 0.2rem; overflow-y: auto; }
.eid-mnav a { font-family: var(--ui); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  text-decoration: none; padding: 0.75rem 0.4rem; border-bottom: 1px solid var(--rule); }
.eid-mnav a:hover { color: var(--red); }
.eid-mnav a.eid-topbar-cta { color: #fff; background: var(--red); border: none; border-radius: 8px;
  margin-top: 0.6rem; text-align: center; }
@media (max-width: 760px) {
  .eid-topbar-nav { display: none !important; }
  .eid-nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 42px; height: 40px; background: none; border: 1px solid var(--rule); border-radius: 8px;
    cursor: pointer; padding: 0 10px; }
  .eid-nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
}

/* ── Anuncio a display completo (creativo propio, sin caja) ─────────────── */
.eid-ad-band-full { position: relative; display: block; margin: 2rem auto; max-width: var(--maxw);
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; line-height: 0; }
.eid-ad-band-full-img, .eid-ad-band-full picture, .eid-ad-band-full img {
  display: block; width: 100%; height: auto; }
.eid-ad-tag-float { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2; line-height: 1;
  background: rgba(20,18,14,0.6); color: #fff; font-family: var(--ui); font-size: 0.62rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.25rem 0.55rem; border-radius: 4px; }

/* ── Bloque 3D (model-viewer) ──────────────────────────────────────────────── */

.eid-model3d {
  margin: 1.6rem 0; text-align: center;
}
.eid-model3d model-viewer {
  --poster-color: transparent;
  width: 100%; height: min(72vh, 560px);
  background: radial-gradient(120% 100% at 50% 0%, #fbf7ef 0%, #efe7d7 70%, #e6dcc7 100%);
  border: 1px solid var(--rule); border-radius: 12px;
  --interaction-prompt-color: var(--ink);
}
.eid-model3d figcaption {
  margin-top: 0.55rem; font-family: var(--ui); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em; color: rgba(26,26,26,0.62);
}
.eid-mv-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(20,18,14,0.72); color: #fff; font-family: var(--ui);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.32rem 0.7rem; border-radius: 100px; pointer-events: none;
}
.eid-model3d model-viewer[ar-status="session-started"] .eid-mv-hint { display: none; }

/* Galería 3D: rejilla responsive de visores */
.eid-model3d-galeria {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin: 1.6rem 0;
}
.eid-model3d-galeria .eid-model3d { margin: 0; }
.eid-model3d-galeria model-viewer { height: min(56vh, 440px); }

/* ── Modal selector de modelos 3D (editor) ────────────────────────────────── */

.eid-modal-overlay {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center;
  justify-content: center; padding: 1.5rem; background: rgba(12,10,8,0.55);
  backdrop-filter: blur(2px);
}
.eid-modal {
  background: var(--page); border: 1px solid var(--rule-strong); border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.32); max-width: 760px; width: 100%;
  max-height: 86vh; overflow: auto; padding: 1.4rem;
}
.eid-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.eid-modal-head h3 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; margin: 0; }
.eid-model-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.9rem;
}
.eid-model-card {
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
  padding: 0.7rem; background: rgba(26,26,26,0.02); border: 1px solid var(--rule);
  border-radius: 10px; cursor: pointer; font-family: var(--ui); font-size: 0.82rem;
  font-weight: 600; color: var(--ink); transition: border-color 0.15s, transform 0.1s;
}
.eid-model-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.eid-model-card img { width: 100%; height: 130px; object-fit: contain; }
