* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cover-dark:       #170b07;
    --cover-mid:        #2a120c;
    --paper:            #f2ede1;
    --paper-2:          #e9e1d2;
    --ink:              #2e2218;
    --ink-soft:         #564434;
    --ink-muted:        #6e5947;
    --nav:              #c9b497;
    --nav-active:       #dd8a3f;
    --accent:           #c97c3c;
    --quote:            #8fa56f;
    --soft-brown:       #5f4a38;
    --panel-dark:       #130905;
    --danger:           #9d3f2f;
    --olive:            #7c8f63;
    --gold:             #f0c48b;
    --theory-blue:      #4d86d9;
    --paper-shadow:     rgba(0, 0, 0, 0.06);
    --paper-line:       rgba(0, 0, 0, 0.08);
    --card-bg:          rgba(0, 0, 0, 0.035);
    --card-bg-strong:   rgba(0, 0, 0, 0.05);
    --author-text-light:  #efe0cb;
    --author-text-strong: #fff1da;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Libre Baskerville', serif;
    background-image: url("./fotos_utilizadas/fondo.png");
    background-size: 90%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    position: relative;
    color: var(--ink);
    line-height: 1.5;
}

body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0)    68%,
        rgba(0, 0, 0, 0.12) 86%,
        rgba(0, 0, 0, 0.28) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* ===== POSICIÓN DEL ÁLBUM ===== */
#album-wrapper {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    width: 55%;
    /* clamp: mínimo 420px, ideal 53% de la viewport, máximo 680px */
    height: clamp(420px, 53vh, 680px);
    z-index: 10;
    perspective: 1800px;
}

#album-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 18% 18%,
        rgba(255, 220, 150, 0.18) 0%,
        rgba(255, 200, 120, 0.08) 22%,
        rgba(255, 180, 80,  0.03) 34%,
        transparent 52%
    );
    pointer-events: none;
    z-index: 5;
    border-radius: 10px;
    mix-blend-mode: screen;
}

#album-wrapper::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -20px;
    height: 30px;
    background: rgba(0, 0, 0, 0.26);
    filter: blur(16px);
    border-radius: 50%;
    z-index: -1;
}

/* ===== PORTADA E INTERIOR ===== */
#gatefold-inside,
#front-cover {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

/* ===== INTERIOR ===== */
#gatefold-inside {
    display: flex;
    background: #160c08;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

#gatefold-inside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 12%,
        transparent 38%
    );
    pointer-events: none;
    z-index: 3;
}

.panel-left {
    width: 31%;
    background: linear-gradient(180deg, #23120b 0%, #130905 100%);
    color: #eadcc8;
    padding: 1.05rem 0.95rem 1rem;
    border-right: 2px solid rgba(0, 0, 0, 0.28);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
}

.panel-left::-webkit-scrollbar {
    display: none;
}

.panel-right {
    width: 69%;
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
    padding: 1.2rem 1.35rem 1.25rem;
    overflow-y: auto;
    box-shadow: inset 10px 0 18px rgba(0, 0, 0, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(60, 60, 60, 0.4) transparent;
    position: relative;
    z-index: 1;
}

.panel-right::-webkit-scrollbar {
    width: 10px;
}

.panel-right::-webkit-scrollbar-track {
    background: transparent;
}

.panel-right::-webkit-scrollbar-thumb {
    background: rgba(60, 60, 60, 0.35);
    border-radius: 10px;
}

/* ===== PORTADA ===== */
#front-cover {
    position: absolute;
    inset: 0;
    z-index: 20;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 20%),
        linear-gradient(135deg, var(--cover-dark) 0%, var(--cover-mid) 46%, #110704 100%);
    color: #f6e7d0;
    padding: 1.8rem 1.7rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition:
        transform 1s ease,
        opacity 0.9s ease,
        visibility 0.9s ease;
    transform-origin: left center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brillo sutil en la portada — sin .cover-glow redundante */
#front-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 18% 16%,
        rgba(255, 226, 170, 0.22) 0%,
        rgba(255, 205, 120, 0.12) 20%,
        transparent 45%
    );
    pointer-events: none;
}

.cover-top,
.cover-middle,
.cover-bottom {
    position: relative;
    z-index: 1;
}

.cover-kicker {
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    color: #b98c63;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

#front-cover h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 0.95;
    font-weight: 900;
    max-width: 76%;
    letter-spacing: -0.02em;
}

.author-tag {
    margin-top: 0.8rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    color: #d8be97;
    text-transform: uppercase;
}

.cover-hook {
    max-width: 78%;
    font-size: 1rem;
    line-height: 1.5;
    color: #e6d5bc;
    text-wrap: pretty;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.cover-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.producer-tag {
    max-width: 340px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ccb799;
}

.producer-tag span {
    color: #fff1da;
    font-weight: 700;
}

/* ===== PRECINTO VERTICAL ===== */
.seal-strip-wrap {
    position: absolute;
    top: 27%;
    right: 0%;
    height: 48%;
    width: 120px;
    z-index: 6;
    pointer-events: none;
}

.seal-callout {
    position: absolute;
    right: 18px;
    top: 9%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    width: auto;
    max-width: 320px;
    animation: calloutBob 1.8s ease-in-out infinite;
    pointer-events: none;
}

.seal-callout-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: #f2d3a5;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255, 220, 150, 0.08);
}

.seal-arrow-group {
    position: relative;
    width: 60px;
    height: 12px;
    flex-shrink: 0;
}

.seal-arrow-shaft {
    position: absolute;
    left: 0;
    top: 50%;
    width: 44px;
    height: 2px;
    background: rgba(255, 220, 150, 0.9);
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(255, 220, 150, 0.16);
}

.seal-arrow-head {
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255, 220, 150, 0.9);
    border-right: 2px solid rgba(255, 220, 150, 0.9);
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 1px -1px 6px rgba(255, 220, 150, 0.08);
}

@keyframes calloutBob {
    0%, 100% { transform: translateY(0);    opacity: 0.72; }
    50%       { transform: translateY(-4px); opacity: 1;    }
}

.seal-strip {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 100%;
    overflow: hidden;
    border-left: 1px solid rgba(20, 20, 20, 0.5);
    border-right: 1px solid rgba(20, 20, 20, 0.5);
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.18);
    background: repeating-linear-gradient(
        135deg,
        #d7b100 0px,
        #d7b100 8px,
        #111111 8px,
        #111111 16px
    );
    pointer-events: auto;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    border-top: none;
    border-bottom: none;
}

.seal-strip::before,
.seal-strip::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: repeating-linear-gradient(
        135deg,
        #d7b100 0px,
        #d7b100 8px,
        #111111 8px,
        #111111 16px
    );
    transition: transform 0.38s ease, opacity 0.38s ease;
}

.seal-strip::before {
    top: 0;
    transform-origin: top center;
}

.seal-strip::after {
    bottom: 0;
    transform-origin: bottom center;
}

.seal-knife {
    position: absolute;
    top: 0;
    right: -21px;
    width: 42px;
    height: 16px;
    opacity: 0;
    transform: translateY(0) rotate(90deg);
    pointer-events: none;
}

.knife-blade {
    position: absolute;
    left: 0;
    top: 5px;
    width: 26px;
    height: 4px;
    background: linear-gradient(90deg, #d8d8d8 0%, #f4f4f4 40%, #b8b8b8 100%);
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.18);
}

.knife-handle {
    position: absolute;
    right: 0;
    top: 2px;
    width: 16px;
    height: 10px;
    background: linear-gradient(180deg, #4b2e1d 0%, #2c170d 100%);
    border-radius: 3px;
}

#front-cover.cutting .seal-callout {
    opacity: 0;
    transition: opacity 0.18s ease;
}

#front-cover.cutting .seal-knife {
    opacity: 1;
    animation: knifeCutDown 0.58s ease forwards;
}

#front-cover.cutting .seal-strip::before {
    transform: translateY(-12px) rotate(-2deg);
    opacity: 0.95;
}

#front-cover.cutting .seal-strip::after {
    transform: translateY(12px) rotate(2deg);
    opacity: 0.95;
}

@keyframes knifeCutDown {
    0%   { transform: translateY(0) rotate(90deg);               opacity: 0; }
    12%  {                                                         opacity: 1; }
    100% { transform: translateY(calc(100% + 150px)) rotate(90deg); opacity: 1; }
}

#front-cover.open {
    transform: perspective(1800px) rotateY(-105deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== FOCUS ACCESIBLE ===== */
button:focus-visible,
.nav-item:focus-visible,
.seal-strip:focus-visible,
.mini-translate-btn:focus-visible {
    outline: 2px solid #f0c48b;
    outline-offset: 3px;
}

/* ===== PANEL IZQUIERDO ===== */
.photo-frame {
    width: 66%;
    max-width: 155px;
    aspect-ratio: 1 / 1;
    background: #f5f1e9;
    padding: 0.55rem;
    transform: rotate(-1.5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
    margin-bottom: 0.9rem;
}

.photo-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #11161e);
    position: relative;
    overflow: hidden;
}

.book-cover-frame {
    background: #111;
}

.book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dossier-chip {
    align-self: flex-start;
    margin-bottom: 0.9rem;
    background: rgba(201, 124, 60, 0.18);
    color: #e7c49d;
    border: 1px solid rgba(201, 124, 60, 0.35);
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
}

.nav-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #b8743a;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    font-family: 'Space Mono', monospace;
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--nav);
    margin-bottom: 0.65rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    background: transparent;
    border: none;
    text-align: left;
    padding: 0.12rem 0;
}

.nav-item:hover {
    color: #f1d3ab;
    transform: translateX(4px);
}

.nav-item.active {
    color: var(--nav-active);
    font-weight: 700;
}

.side-note {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-left: 4px solid rgba(201, 124, 60, 0.85);
    color: #f5e8d5;
    font-size: 0.82rem;
    line-height: 1.5;
    border-radius: 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 18px rgba(0, 0, 0, 0.16);
    position: relative;
    z-index: 2;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.side-note strong {
    color: #fff4e2;
    display: inline-block;
    margin-bottom: 0.3rem;
    font-size: 0.86rem;
}

/* ===== PANEL DERECHO GENERAL ===== */
.dossier-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dossier-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: #8a6d50;
    text-transform: uppercase;
}

.meta-label    { color: #b8743a; }
.meta-separator { opacity: 0.55; }

/* ===== SECCIONES — sin flash al cambiar rápido ===== */
.content-section {
    /* Usamos visibility + opacity en vez de display:none puro
       para que la animación de entrada no haga flash */
    display: none;
    opacity: 0;
}

.content-section.active {
    display: block;
    animation: fadeInSection 0.3s ease forwards;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.section-header {
    margin-bottom: 1.3rem;
}

.section-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #b8743a;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 2.35vw, 2.9rem);
    line-height: 1.04;
    font-weight: 700;
    color: #3a291d;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 3px solid var(--accent);
}

.section-lead {
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 96%;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

/* ===== CITA PRINCIPAL ===== */
.quote-box {
    margin: 1.35rem 0 1.55rem;
    padding: 1.15rem 1rem;
    border-left: 5px solid var(--quote);
    background: rgba(0, 0, 0, 0.035);
    border-radius: 4px;
}

.hero-quote {
    background: linear-gradient(180deg,
        rgba(143, 165, 111, 0.08) 0%,
        rgba(0, 0, 0, 0.025) 100%
    );
}

.quote-inline {
    font-family: 'Playfair Display', serif;
    font-size: 0.97rem;
    line-height: 1.5;
    font-style: italic;
    color: #3f2f22;
    margin-bottom: 0.35rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.quote-ref {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8c6e50;
    margin-bottom: 0.55rem;
}

.quote-ref-main {
    margin-top: 10px;
    font-size: 15px;
}

/* ===== BLOQUES ===== */
.summary-grid,
.card-grid {
    display: grid;
    gap: 1rem;
}

.summary-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1.55rem;
}

.card-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.evidence-card,
.column-card {
    background: var(--card-bg);
    border: 1px solid var(--paper-line);
    border-top: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1.05rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.evidence-card:hover,
.column-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.04);
}

.evidence-card h3,
.column-card h3,
.debate-head h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    line-height: 1.25;
    color: #38281b;
    margin-bottom: 0.78rem;
}

.evidence-card p,
.column-card p,
.debate-side p,
.timeline-content p {
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--ink);
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.evidence-card p + p,
.column-card p + p,
.debate-side p + p {
    margin-top: 0.85rem;
}

.emphasis-card {
    margin-top: 15px;
    border-left: 4px solid var(--accent);
    background: rgba(0, 0, 0, 0.05);
}

.reflective-card {
    margin-top: 15px;
    background: rgba(201, 124, 60, 0.06);
    border-top-color: #b8743a;
}

.verdict-box {
    margin-top: 1.25rem;
    background: linear-gradient(180deg, #efe7d9 0%, #e7ddcc 100%);
    border-left: 5px solid var(--quote);
    padding: 1rem 1.05rem;
    border-radius: 6px;
    color: #453528;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.verdict-box strong {
    color: #2f2219;
}

.verdict-box.emphasis {
    border-left-color: var(--accent);
}

/* ===== TIMELINE ===== */
.timeline-block {
    margin: 1.45rem 0 1.55rem;
}

.mini-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    color: #8e7356;
    margin-bottom: 0.95rem;
    text-transform: uppercase;
}

.timeline-list {
    display: grid;
    gap: 0.78rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.8rem 0.85rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.timeline-hour {
    font-family: 'Space Mono', monospace;
    font-size: 0.84rem;
    color: #b8743a;
    padding-top: 0.15rem;
}

.timeline-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #392a1d;
    margin-bottom: 0.34rem;
}

.timeline-content p {
    color: var(--ink-soft);
}

/* ===== IMPRESIONES ===== */
.split-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.45rem;
}

.argument-block {
    margin-bottom: 1.55rem;
}

.counter-block {
    margin-bottom: 1.5rem;
}

/* ===== DEBATE ===== */
.debate-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.debate-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.debate-head {
    padding: 0.95rem 1rem 0.45rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.28);
}

.debate-label {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    color: #a85f2a;
    margin-bottom: 0.45rem;
}

.debate-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.debate-side {
    padding: 1rem;
}

.debate-side h4 {
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.62rem;
}

.debate-side.critic {
    background: rgba(157, 63, 47, 0.045);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.debate-side.critic h4 { color: #964131; }

.debate-side.defend {
    background: rgba(124, 143, 99, 0.06);
}

.debate-side.defend h4 { color: #667b51; }

.debate-side p { color: var(--ink); }

/* ===== MAPA ===== */
.map-subtitle {
    margin-bottom: 0.85rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: #7e7266;
    letter-spacing: 0.08em;
}

#mynetwork {
    width: 100%;
    height: 330px;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 35%),
        linear-gradient(180deg, #191512 0%, #0f0b09 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.95rem;
    /* Permite scroll-to-zoom en el mapa cuando el usuario lo desee */
    touch-action: auto;
}

#author-info {
    margin-top: 0.95rem;
    padding: 1rem;
    color: var(--author-text-light);
    background: rgba(26, 18, 12, 0.92);
    border-left: 4px solid #c97c3c;
    border-radius: 6px;
    min-height: 120px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.author-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    align-items: start;
}

.author-photo-wrap {
    width: 90px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    background: #201712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.author-photo.author-bruce    { object-position: 22% center; }
.author-photo.author-foucault { object-position: center 18%; }
.author-photo.author-veliz    { object-position: center 18%; }
.author-photo.author-zuboff   { object-position: center 20%; }
.author-photo.author-snowden  { object-position: center 22%; }
.author-photo.author-peirano  { object-position: center 18%; }

.author-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #f3d9b8;
    background: linear-gradient(180deg, #2a1c14 0%, #17100c 100%);
}

.author-meta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.22rem;
    line-height: 1.1;
    color: var(--author-text-strong);
    margin-bottom: 0.25rem;
}

.author-role {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d7a16d;
    margin-bottom: 0.58rem;
}

.author-text {
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--author-text-light);
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.author-links-title {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d7a16d;
    margin-bottom: 0.5rem;
}

.author-links-list {
    display: grid;
    gap: 0.5rem;
}

.author-link-item {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--author-text-light);
    padding-left: 0.1rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.author-link-item strong {
    color: var(--author-text-strong);
}

.placeholder-card .author-meta h3 {
    color: #f6e8d4;
}

/* ===== LEYENDA ===== */
.legend-box {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin-top: 0.95rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5b4a3b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.legend-dot.blue  { background: var(--theory-blue); }
.legend-dot.green { background: #8fa56f; }
.legend-dot.red   { background: #b05543; }

/* ===== BOTONES DE TRADUCCIÓN ===== */
.btn-flag {
    width: 14px;
    height: auto;
    margin-right: 5px;
    border-radius: 2px;
    vertical-align: middle;
}

.mini-translate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(201, 124, 60, 0.42);
    color: #b86e34;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.mini-translate-btn:hover {
    background: rgba(201, 124, 60, 0.12);
    color: #dd8a3f;
    border-color: #dd8a3f;
}

.hero-quote.quote-container {
    position: relative;
    padding-bottom: 25px;
}

.hero-quote .mini-translate-btn {
    position: absolute;
    bottom: 10px;
    right: 15px;
}

/* ===== REFERENCIAS BIBLIOGRÁFICAS ===== */
.references-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.references-box h3 {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #8a6d50;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.references-box ul {
    list-style-type: none;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.references-box li {
    margin-bottom: 0.5rem;
}

.references-box strong {
    color: #38281b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    #album-wrapper {
        width: 60%;
    }
}

@media (max-width: 1100px) {
    body {
        overflow: auto;
        background-attachment: scroll;
        background-size: cover;
    }

    body::after {
        background: none;
    }

    #album-wrapper {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: min(92vw, 940px);
        height: auto;
        margin: 2rem auto;
    }

    #album-wrapper::before {
        display: none;
    }

    #gatefold-inside {
        min-height: 680px;
        flex-direction: column;
    }

    .panel-left,
    .panel-right {
        width: 100%;
    }

    .panel-right {
        max-height: none;
        overflow: visible;
    }

    #front-cover {
        min-height: 680px;
    }

    .summary-grid,
    .split-column,
    .card-grid.two-columns,
    .debate-body,
    .author-card {
        grid-template-columns: 1fr;
    }

    .side-note {
        font-size: 0.9rem;
    }

    /* En tablet/móvil permitir zoom en el mapa */
    #mynetwork {
        touch-action: auto;
    }
}

@media (max-width: 700px) {
    #front-cover {
        padding: 1.5rem 1.2rem;
    }

    #front-cover h1 {
        max-width: 100%;
        font-size: 2rem;
    }

    .cover-hook {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .seal-strip-wrap {
        right: 7.2%;
        width: 100px;
    }

    .seal-callout {
        right: 14px;
        top: 6%;
        gap: 0.45rem;
        max-width: 220px;
    }

    .seal-callout-text {
        font-size: 0.55rem;
        letter-spacing: 0.11em;
    }

    .seal-arrow-group {
        width: 44px;
    }

    .seal-arrow-shaft {
        width: 30px;
    }

    .panel-left,
    .panel-right {
        padding: 1rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-hour {
        padding-top: 0;
    }

    .photo-frame {
        width: 62%;
        max-width: 150px;
    }

    .author-photo-wrap {
        width: 100px;
        height: 120px;
    }

    .mini-translate-btn {
        font-size: 11px;
        padding: 4px 7px;
        margin-left: 6px;
    }
}
