/* ¿Podemos identificar masacres en los certificados de defunción? · estilos propios de la pieza.
   Los componentes comunes vienen de ../css/pieza.css: aquí solo lo que es de esta pieza. */

/* El recorrido sale del contenedor: el body apila bloques */
body { flex-direction: column; }
.contenedor { width: 100%; }

.lienzo-canvas { position: relative; }

/* ---------------------------------------------------------------- recorrido a pantalla completa */
.recorrido {
    width: 100%;
    position: relative;
    margin: 3rem 0;
}

.recorrido-mapa {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: #000;
}

.mapa-lienzo,
.mapa-etiquetas {
    position: absolute;
    inset: 0;
    display: block;
}

.mapa-etiquetas { pointer-events: none; overflow: visible; }
.mapa-etiquetas .a-guia { fill: none; stroke: #cccccc; stroke-width: 0.8; }
.mapa-etiquetas .a-marca { fill: none; stroke: white; stroke-width: 1.2; }
.mapa-etiquetas .a-texto {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 14px;
    fill: white;
    paint-order: stroke;
    stroke: black;
    stroke-width: 4px;
}

.reloj {
    position: absolute;
    right: clamp(16px, 3vw, 40px);
    bottom: clamp(16px, 4vh, 40px);
    text-align: right;
    pointer-events: none;
}

.reloj-anios {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 0.3rem;
}

.reloj-dato {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.95rem;
    color: var(--texto-suave);
    margin: 0 0 0.5rem;
}

.reloj-dato strong { color: var(--color-rojo); font-weight: 700; }
.reloj svg text { font-family: "Roboto Condensed", sans-serif; font-size: 11px; fill: var(--texto-tenue); }

.mapa-leyenda {
    position: absolute;
    left: clamp(16px, 3vw, 40px);
    top: clamp(16px, 4vh, 40px);
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.85rem;
    color: var(--texto-suave);
    pointer-events: none;
}

.recorrido-pasos {
    position: relative;
    margin-top: -100vh;
    margin-top: -100svh;
    pointer-events: none;
}

/* Última parada: la tarjeta queda centrada y el mapa se suelta poco después */
.paso.paso-final { min-height: 100vh; min-height: 100svh; }
.tarjeta-final { border-color: var(--color-rojo); }

.reloj-corre { color: var(--texto-tenue); font-size: 0.85rem; }

.cierre p:first-child { font-family: "Outfit", sans-serif; font-weight: 500; font-size: 1.25rem; line-height: 1.5; }

.paso {
    min-height: 120vh;
    display: flex;
    align-items: center;
    padding: 0 clamp(16px, 4vw, 56px);
}

.paso:first-child { min-height: 100vh; }

.tarjeta-paso {
    pointer-events: auto;
    width: min(28rem, 100%);
    background: rgba(8, 8, 8, 0.92);
    border: 1px solid var(--borde, #2f2f2f);
    border-radius: 6px;
    padding: 1.4rem 1.5rem 1.2rem;
}

.tarjeta-paso h2 {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0 0 0.8rem;
}

.tarjeta-paso p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
    margin: 0 0 0.75rem;
}

.paso-lugar {
    font-family: "Roboto Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem !important;
    color: var(--color-rojo);
    margin-bottom: 0.4rem !important;
}

@media (max-width: 767.98px) {
    .paso { align-items: flex-end; min-height: 110vh; padding-bottom: 4vh; }
    .paso:first-child { min-height: 100vh; }
    .tarjeta-paso { padding: 1rem 1.1rem 0.6rem; }
    .tarjeta-paso h2 { font-size: 1.2rem; }
    .tarjeta-paso p { font-size: 0.92rem; }
    .reloj { top: 12px; bottom: auto; right: 12px; }
    .reloj-anios { font-size: 1.8rem; }
    .mapa-leyenda { display: none; }
}

/* ---------------------------------------------------------------- muestras de color */
.muestra {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: -1px;
}

.m-ataque { background: var(--color-rojo); }
.m-hallazgo { background: var(--color-turqueza); }
.m-antes { background: #4a4a4a; }
.muestra-hueca { border: 1.5px solid white; background: black; }
.muestra-barra { border-radius: 1px; }
.muestra-guion { border-radius: 0; height: 2px; width: 16px; background: repeating-linear-gradient(90deg, #8a8a8a 0 5px, transparent 5px 8px); vertical-align: 3px; }

.leyenda-linea svg text {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 12px;
    fill: var(--texto-suave);
}

.leyenda-linea .item { display: inline-flex; align-items: center; }
#g-ranking .serie { cursor: default; transition: opacity 0.2s; }
#g-ranking .serie text { paint-order: stroke; stroke: black; stroke-width: 4px; stroke-linejoin: round; }

/* ---------------------------------------------------------------- tablas de prensa */
.tabla-envoltura { overflow-x: auto; }

.tabla-prensa {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.tabla-prensa th {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--texto-tenue);
    text-align: left;
    padding: 0.5rem 0.75rem 0.5rem 0;
    border-bottom: 1px solid var(--borde);
}

.tabla-prensa td {
    padding: 0.65rem 0.75rem 0.65rem 0;
    border-bottom: 1px solid #1c1c1c;
    vertical-align: top;
    font-weight: 300;
}

.tabla-prensa td:nth-child(1) { white-space: nowrap; }
.tabla-prensa .num { text-align: right; font-family: "Outfit", sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; }
.tabla-prensa .sub { display: block; font-family: "Roboto Condensed", sans-serif; font-size: 0.8rem; color: var(--texto-tenue); }
.tabla-prensa a { color: #ff7a86; }
.fila-excluida td { color: var(--texto-tenue); }

.chip-tipo {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid #444;
}

.t-ataque { border-color: var(--color-rojo); color: #ff7a86; }
.t-enfrentamiento { border-color: var(--color-amarillo); color: var(--color-amarillo); }
.t-fuerzas { border-color: var(--color-amarillo); color: var(--color-amarillo); background: rgba(254, 190, 0, 0.12); }
.t-penal { border-color: #bbbbbb; color: #dddddd; }
.t-fosa, .t-cuerpos { border-color: var(--color-turqueza); color: var(--color-turqueza); }
.t-varios, .t-excluida { border-style: dashed; color: var(--texto-tenue); }

@media (max-width: 575.98px) {
    .tabla-prensa { font-size: 0.85rem; }
}

.mas-casos { margin: 0 0 3rem; max-width: 100%; }
.mas-casos summary {
    cursor: pointer;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* Esquema del método: estilos comunes en ../css/secciones.css; aquí, el color de la pieza. */
#hackea-esta-pieza { --esquema-color: var(--color-rojo); }
