* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: #f3f0e6;
  color: #1c2822;
  font: 17px/1.55 Outfit, "Segoe UI", sans-serif;
}
a { color: #1e4638; }
img { max-width: 100%; height: auto; }
.friso {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: #1e4638;
  color: #f6f1e4;
}
.nombre {
  color: inherit;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.mayoria {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.recorrido {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 10px 22px 12px;
  background: #16362b;
}
.recorrido a {
  color: #e7efe4;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.recorrido a[aria-current="page"] { border-bottom-color: #d2a06a; color: #fff; }
.lamina {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}
h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.fecha { margin: 8px 0 0; color: #5c675f; }
.cuidado {
  margin: 10px 0 0;
  color: #8a3e24;
  font-size: 14px;
  font-weight: 600;
}
.franjas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.franjas li {
  min-width: 0;
  padding: 8px 12px 9px;
  background: #fffdf8;
  border-left: 3px solid #a65b32;
}
.franjas b { display: block; font-size: 13px; }
.franjas span { color: #a65b32; font-weight: 700; }
.cimas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.cima {
  min-width: 0;
  background: #fffdf8;
  border-top: 4px solid #1e4638;
  padding: 12px 10px 14px;
  text-align: center;
}
.cima.tarde { border-top-color: #a65b32; }
.cima.nocturna { border-top-color: #243044; }
.cima .turno {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cima .cuando { margin: 4px 0 0; color: #5c675f; font-size: 13px; }
.cima .cifra {
  margin: 8px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.cima .par { margin: 4px 0 0; color: #8a3e24; font-weight: 600; font-size: 14px; }
.cima .sello {
  margin: 8px 0 0;
  color: #1e4638;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cima .sello:empty { display: none; }
.cima.vacia .cifra { color: #8d877b; }
.pliego { margin-top: 8px; }
.extracto {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fffdf8;
}
.extracto caption {
  caption-side: top;
  padding: 14px 2px 6px;
  text-align: left;
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}
.extracto td {
  padding: 6px 6px;
  border-top: 1px solid #e6e0d2;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.extracto .puesto { width: 14%; color: #6d675c; font-size: 13px; text-align: right; }
.extracto .valor { width: 36%; font-weight: 600; text-align: center; }
.extracto tr.primero td { background: #f4e7d4; }
.nota { margin-top: 28px; }
.nota h2 {
  margin: 1.35em 0 0.4em;
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}
.nota p { margin: 0.75em 0; }
.nota ol { margin: 8px 0 16px; padding-left: 1.25em; }
.nota li { margin: 0.45em 0; }
.nota table {
  width: 100%;
  margin: 12px 0 6px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fffdf8;
  font-size: 15px;
}
.nota caption {
  caption-side: bottom;
  padding-top: 8px;
  text-align: left;
  color: #5c675f;
  font-size: 13px;
}
.nota th, .nota td {
  padding: 8px 8px;
  border-bottom: 1px solid #e6e0d2;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.nota th {
  background: #1e4638;
  color: #f6f1e4;
  font-weight: 600;
}
.origen { margin-top: 22px; color: #5c675f; font-size: 14px; }
.cartel { width: min(420px, 100%); margin: 18px auto; }
.cartel[hidden] { display: none !important; }
.cartel a { display: block; }
.cartel img { display: block; width: 100%; height: auto; }
@media (min-width: 1120px) {
  .lamina > .cartel {
    position: absolute;
    top: 28px;
    bottom: 0;
    left: calc(100% + 18px);
    width: min(280px, calc((100vw - 760px) / 2 - 32px));
    margin: 0;
  }
  .lamina > .cartel a { position: sticky; top: 14px; }
}
.busca {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 12px 0 16px;
}
.busca label { font-weight: 600; }
.busca input {
  display: block;
  width: min(240px, 100%);
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #d9d1c2;
  background: #fffdf8;
  font: inherit;
}
.busca button {
  border: 0;
  background: #1e4638;
  color: #f6f1e4;
  font: inherit;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
}
.hallazgo { margin: 0 0 8px; }
.nota td.parnum { width: 4.5rem; font-weight: 700; color: #a65b32; }
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .cimas { grid-template-columns: 1fr; }
  .nota h2 { font-size: 22px; }
  .friso, .recorrido { padding-left: 14px; padding-right: 14px; }
}
