/* Historia Viva: lectura documental y relaciones adaptables. */
.tl{padding:0 0 0 1.4rem;max-width:62rem}
.tl::before{left:3px;top:.8rem;bottom:1.3rem;background:#aebdb7;width:1px}
.tl-item{display:grid;grid-template-columns:minmax(7rem,.35fr) minmax(0,1fr);gap:1.5rem;padding:0 0 1.6rem 1rem;margin:0;position:relative}
.tl-item::before{left:-1.4rem;top:.52rem;width:7px;height:7px;background:#e5ebe6;border:1px solid #54766d;box-shadow:none}
.tl-item.hito::before{background:#8c672f;border-color:#8c672f;box-shadow:0 0 0 4px #f3f0e7}
.tl-item .anio{font-family:var(--label);font-size:1rem;line-height:1.5;font-weight:700;letter-spacing:0;color:#795622}
.tl-item .qué{font-size:1rem;line-height:1.7;color:#334e49;padding-bottom:1.3rem;border-bottom:1px solid #dce0d6}
.tl-item:last-child{padding-bottom:0}.tl-item:last-child .qué{border-bottom:0}
.ficha-ciudad{border:0;border-left:3px solid #96703a;border-radius:0;background:#e9ede5;padding:clamp(1.2rem,3vw,2rem)}
.ficha-ciudad .estas-aqui{display:grid;gap:.4rem;border:0;padding:0 0 1.1rem;margin:0 0 1.1rem;border-bottom:1px solid #c6d1c5;background:transparent;color:#173638}
.ficha-ciudad .estas-aqui span{font-size:.85rem;letter-spacing:.06em;color:#65766a}
.ficha-ciudad .estas-aqui b{font-size:1.08rem;line-height:1.5;letter-spacing:0}
.ficha-ciudad h4{font-size:1.8rem;line-height:1.2;margin:.4rem 0 .7rem}
.ficha-ciudad p{line-height:1.75;max-width:75ch}
.ficha-datos{gap:0;font-size:.95rem;line-height:1.65}
.ficha-datos>div{padding:.65rem 0;border-bottom:1px solid #e0e3db;gap:1rem;min-width:0;grid-template-columns:minmax(6rem,.28fr) minmax(0,1fr)}
.ficha-datos>div:last-child{border-bottom:0}.ficha-datos .k{font-size:.85rem;line-height:1.65;font-weight:600;letter-spacing:0;text-transform:none;color:#60756c}
.ficha-datos span{min-width:0;overflow-wrap:anywhere}
.pieza figcaption{padding:clamp(1rem,2vw,1.5rem);gap:.85rem}
.pieza figcaption h4{font-size:1.3rem;line-height:1.3}
.pieza .marco{background:#e8e9e0}.pieza .sinfoto{background:#e7ece5;color:#536b62;font-size:.95rem;letter-spacing:0;text-transform:none;line-height:1.6}
.comparador{width:100%;max-width:100%;overflow:auto;overscroll-behavior-x:contain;border:1px solid #d7ddd2;border-radius:4px;background:#fcfbf6}
.comparador table{min-width:560px;margin:0;width:100%;table-layout:fixed}
.comparador th,.comparador td{padding:1rem;overflow-wrap:anywhere;line-height:1.65}
.comparador thead th{background:#e7ece4;border-bottom:2px solid #8f733f;font-size:1.08rem}
.comparador tbody th{font-size:.9rem;letter-spacing:0;text-transform:none;color:#173638;width:25%;font-weight:600}
.comparador tbody tr:nth-child(even){background:#f2f3eb}
.hv-relations{padding:clamp(1.2rem,3vw,2rem);background:#faf9f3;border:1px solid #cdd6ca;border-top:3px solid #31574f;border-radius:4px;color:#173638}
.hv-relations-intro h3{font-size:1.5rem;line-height:1.3;margin:0 0 .6rem}.hv-relations-intro p{font-size:1rem;line-height:1.65;color:#577066;max-width:65ch}
.hv-relation-people{display:flex;flex-wrap:wrap;gap:.5rem;padding:1.25rem 0!important;margin:0!important;list-style:none!important;border-bottom:1px solid #d5ded1}
.hv-relation-person{padding:.4rem .7rem;background:#edf1e9;color:#38594f;line-height:1.5;font-size:.95rem;border:1px solid transparent;overflow-wrap:anywhere;max-width:100%}
.hv-relation-person.is-focus{background:#173638;color:#fff}
.hv-relation-legend{display:flex;flex-wrap:wrap;gap:1.4rem;padding:1.1rem 0;color:#5a7066;font-size:.85rem}
.hv-relation-legend>span{display:flex;align-items:center;gap:.65rem}.hv-relation-legend i{width:2rem;display:inline-block}
.hv-relation-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:2rem;list-style:none!important;margin:0!important;padding:0!important}
.hv-relation-link{display:grid;grid-template-columns:minmax(0,1fr) 2.3rem minmax(0,1fr);align-items:center;gap:.8rem;padding:1rem 0;border-bottom:1px solid #e0e4db;font-size:1rem;line-height:1.5;min-width:0}
.hv-relation-link>span{min-width:0;overflow-wrap:anywhere}.hv-relation-link>span:last-child{text-align:right}
.hv-relation-line{height:1px;min-width:1.4rem;background:#a6b7ad;position:relative}
.hv-relation-line::before,.hv-relation-line::after{content:'';position:absolute;top:-2px;width:5px;height:5px;border-radius:50%;background:inherit}.hv-relation-line::before{left:0}.hv-relation-line::after{right:0}
.hv-relation-link.is-strong .hv-relation-line,.hv-relation-line.is-strong{height:3px;background:#97733b}
@media(max-width:700px){
 .tl-item{grid-template-columns:minmax(0,1fr);gap:.3rem;padding-left:.6rem;padding-bottom:1rem}.tl-item .qué{padding-bottom:1rem}.tl-item .anio{font-size:1rem}
 .ficha-datos>div{display:block}.ficha-datos .k{display:block;margin-bottom:.25rem}.ficha-ciudad h4{font-size:1.55rem}
 .hv-relation-links{grid-template-columns:minmax(0,1fr)}.hv-relations{padding:1.1rem}.hv-relation-link{font-size:.95rem;grid-template-columns:minmax(0,1fr) 1.6rem minmax(0,1fr);gap:.5rem}
 .hv-relation-people{gap:.4rem}.hv-relation-person{font-size:.9rem;padding:.35rem .55rem}
}
@media(prefers-reduced-motion:reduce){.tl-item,.hv-relations *{animation:none;transition:none}}

/* Atlas por clase */
.mapa-lienzo{background:#dce9e5;border:1px solid #baccc3;border-radius:8px;overflow:hidden;color:#173638;--caliza:#173638;--caliza-2:#405653;--caliza-3:#5b6960}
.hv-atlas-key{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:20px;background:#f8f7f0;border-top:1px solid #c4d2c8}
.hv-map-place{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #c8d3c8;border-radius:4px;background:#fffdf7;color:#173638;min-width:0;padding:10px 12px;min-height:48px;font-size:15px;line-height:1.4;cursor:pointer}
.hv-map-place.sel{background:#173638;color:white;border-color:#173638}.hv-place-number{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:24px;height:24px;border:1px solid currentColor;border-radius:50%;font-size:12px;font-weight:700}.hv-map-place small{display:block;font-size:12px;opacity:.85}.hv-atlas-credit{padding:12px 20px;background:#eef2e9;font-size:13px;line-height:1.6;color:#435d53}.hv-atlas-credit a{text-decoration:underline}.hv-map-pin{cursor:pointer}.hv-map-pin:focus-visible{outline:none;filter:drop-shadow(0 0 3px #173638)}
.hv-place-context{margin-top:1rem;border-top:1px solid #c6d1c5;padding-top:1rem}.hv-place-context summary{cursor:pointer;font-weight:600;min-height:44px}.hv-place-context p{margin-top:1rem}.tag{white-space:normal!important;max-width:100%;overflow-wrap:anywhere}.vitrina>div{min-width:0}.vitrina{grid-template-columns:minmax(0,1fr)}
@media(max-width:700px){.hv-atlas-key{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:6px}.hv-map-place{padding:9px;font-size:14px}.hv-atlas-credit{padding:12px}.hv-atlas svg{min-height:250px}.hv-map-place small{font-size:12px}}

.hv-source-map-note{font-size:.9rem;color:#52695f;padding:1rem 0;border-top:1px solid #cdd6ca}.hv-source-map-note summary{cursor:pointer;min-height:44px}.hv-source-map-note p{line-height:1.7;max-width:80ch;margin-top:.8rem}
