/* Oksigenia Hechauka: two zones at once, the birthday strip, the place of the screen and the centre's own sentence (Jujol, 12
 * November 2026). Goes after every sheet of the player but pieles.css, fondos.css, letras.css, actividad.css and
 * movimiento.css (the player page's list and the demo's).
 *
 * The useful ideas of a four-zone signage screen, combined with the compositions that take turns, never in their place:
 *   zonas        one more composition of the rotation, now and then (one slide in nine, about 45 s): a column with its own
 *                carousel (portrait pictures with a slow move, the weather, the coming days) beside a wide zone (a landscape
 *                picture or video, or the card of the screen's place). On a vertical screen, the wide zone a 16:9 band on
 *                top and the column under it. What fails goes and what stays grows (:only-child), never an empty box.
 *   the strip    whoever has their birthday today, all day, above the ticker, over every composition but the big birthday
 *                slide; one person at a time, a garland of pennants along its top edge, still.
 *   the place    screen.place: open or closed now, in a chip beside the clock (3 and 5 m) and as the card of the two zones.
 *   the motto    centre.phrase: one more sentence of the ticker, whole, in the letter of the titles and with the centre's
 *                logo in place of the label; from 8 m, or too long for two lines, a headline of its own.
 * And a fix: the important band also shows on a screen without sentences in its ticker (.hk-sin-cinta hid it with them).
 *
 * Markup: src/zonas.js, src/franja.js and render.js (the chip, the seal) say it at the top of each.
 *
 * Chromium 56: flexbox with margins (no gap, no grid), no clamp/min/max, no inset, no aspect-ratio, no nested calc; only
 * transform and opacity move. */

/* --- The sizes of the strip, by distance and behind glass (distancia.css's way: plain values, no calc of a calc) ------ */
.hk {
    --hk-franja-guirnalda: 4.8rem;      /* the garland along its top edge: a point every 4.8 of these (about 230 px at 3 m) */
    --hk-franja-cara: 12rem;            /* the portrait, almost as high as the strip */
    --hk-franja-sube: 3.6rem;           /* how far the portrait rises in front of the garland */
}
.hk[data-distancia="5"] {
    --hk-franja-guirnalda: 6.2rem;
    --hk-franja-cara: 15.6rem;
    --hk-franja-sube: 4.7rem;
}
.hk[data-distancia="8"] {
    --hk-franja-guirnalda: 7.9rem;
    --hk-franja-cara: 19.8rem;
    --hk-franja-sube: 5.9rem;
}
.hk[data-cristal] {
    --hk-franja-guirnalda: 5.5rem;
    --hk-franja-cara: 13.8rem;
    --hk-franja-sube: 4.1rem;
}
.hk[data-distancia="5"][data-cristal] {
    --hk-franja-guirnalda: 7.1rem;
    --hk-franja-cara: 17.9rem;
    --hk-franja-sube: 5.4rem;
}
.hk[data-distancia="8"][data-cristal] {
    --hk-franja-guirnalda: 9.1rem;
    --hk-franja-cara: 22.8rem;
    --hk-franja-sube: 6.8rem;
}

/* ================================================================================================================
 * 1. zonas: the two zones
 * ============================================================================================================= */
.hk .hk-cuerpo[data-composicion="zonas"] > .hk-zonas-col,
.hk .hk-cuerpo[data-composicion="zonas"] > .hk-zonas-ancha {
    min-width: 0;
    min-height: 0;
}
/* Horizontal: the column on the left, a third; the wide zone on the right, two. From afar the column needs more room. */
.hk-horizontal .hk-cuerpo[data-composicion="zonas"] > .hk-zonas-col {
    flex: 1 1 0px;
    margin-right: var(--hk-hueco);
}
.hk-horizontal[data-distancia="5"] .hk-cuerpo[data-composicion="zonas"] > .hk-zonas-col {
    flex: 1.25 1 0px;
}
.hk-horizontal[data-distancia="8"] .hk-cuerpo[data-composicion="zonas"] > .hk-zonas-col {
    flex: 1.5 1 0px;
}
.hk-horizontal .hk-cuerpo[data-composicion="zonas"] > .hk-zonas-ancha {
    flex: 2 1 0px;
    height: auto;
}
/* Vertical: the wide zone a 16:9 band across the top, the column under it, filling the rest. */
.hk-vertical .hk-cuerpo[data-composicion="zonas"] {
    flex-direction: column;
}
.hk.hk-vertical .hk-cuerpo[data-composicion="zonas"] > .hk-zonas-ancha {
    -webkit-box-ordinal-group: 0;
    order: -1;
    flex: none;
    height: 56.25rem;
}
.hk-vertical .hk-cuerpo[data-composicion="zonas"] > .hk-zonas-col {
    flex: 1 1 0px;
    margin-top: var(--hk-hueco);
}
/* Only words in the column, on a vertical screen: the column as high as they are, the wide zone above takes the rest
   (never less than its 16:9; zonas.js keeps the column under that). */
.hk.hk-vertical .hk-cuerpo[data-composicion="zonas"] > .hk-zonas-col.hk-zonas-col-justa {
    flex: none;
}
.hk.hk-vertical .hk-cuerpo[data-composicion="zonas"] > .hk-zonas-col-justa + .hk-zonas-ancha {
    flex: 1 1 auto;
    height: auto;
    min-height: 56.25rem;
}
.hk-vertical .hk-zonas-col-justa .hk-zonas-pase {
    flex: none;
}
.hk.hk-vertical .hk-zonas-col-justa .hk-zonas-item,
.hk.hk-vertical .hk-zonas-col-justa .hk-zonas-item > .hk-zonas-agenda,
.hk.hk-vertical .hk-zonas-col-justa .hk-zonas-item > .hk-tercio-tiempo {
    position: relative;
    height: auto;
}
/* Zones grow, never empty: what is left alone takes the whole body. */
.hk.hk .hk-cuerpo[data-composicion="zonas"] > :only-child {
    flex: 1 1 auto;
    height: auto;
    margin: 0;
}

/* --- The column: a tile with its carousel, and a band under it with what is on and a mark for each ----------------- */
.hk-zonas-col {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: calc(2.4rem * var(--hk-esquina));
    background: var(--hk-superficie);
    box-shadow: 0 .2rem .8rem rgba(0, 0, 0, .06);
}
.hk-zonas-pase {
    position: relative;
    flex: 1 1 0px;
    min-height: 0;
    overflow: hidden;
}
.hk-zonas-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    -webkit-transition: opacity .45s ease;
    transition: opacity .45s ease;
}
.hk-zonas-item.hk-zonas-actual {
    opacity: 1;
    -webkit-transition-duration: .6s;
    transition-duration: .6s;
}
/* a picture over a picture dissolves, slowly */
.hk-zonas-item.hk-zonas-cruza,
.hk-zonas-item.hk-zonas-cruza.hk-zonas-actual {
    -webkit-transition-duration: 1.2s;
    transition-duration: 1.2s;
}
/* A portrait picture fills the tile and moves slowly while it is on: from a little larger and to one side, to rest. */
.hk-zonas-foto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #111417;
}
.hk-zonas-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transform: scale(1.12) translate3d(-1.6%, 1.2%, 0);
    transform: scale(1.12) translate3d(-1.6%, 1.2%, 0);
}
.hk-zonas-item[data-kb="b"] .hk-zonas-foto img {
    -webkit-transform: scale(1.12) translate3d(1.6%, -1.2%, 0);
    transform: scale(1.12) translate3d(1.6%, -1.2%, 0);
}
.hk-zonas-item.hk-zonas-actual .hk-zonas-foto img {
    -webkit-transform: scale(1.01);
    transform: scale(1.01);
    -webkit-transition: -webkit-transform 11s cubic-bezier(.3, .15, .45, 1);
    transition: transform 11s cubic-bezier(.3, .15, .45, 1);
}
.hk-zonas-item.hk-zonas-sin-paso .hk-zonas-foto img {
    -webkit-transition: none;
    transition: none;
}
/* The weather: the third's (tercios.css), filling the tile. */
.hk .hk-zonas-item > .hk-tercio-tiempo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}
/* from 8 m the third's own layout is a row; in the column it stays a column */
.hk[data-distancia="8"].hk-horizontal .hk-zonas-col .hk-tercio-hoy {
    flex: none;
    -webkit-align-self: stretch;
    align-self: stretch;
    padding: 0 0 2.4rem;
    border-right: 0;
    border-bottom: .3rem solid var(--hk-linea);
}
.hk[data-distancia="8"].hk-horizontal .hk-zonas-col .hk-tercio-dias {
    width: auto;
    justify-content: flex-start;
    padding: 2.4rem 0 0;
}
.hk[data-distancia="8"].hk-horizontal .hk-zonas-col .hk-tercio-dias .hk-dia-tiempo {
    margin-top: 1.6rem;
}
.hk[data-distancia="8"].hk-horizontal .hk-zonas-col .hk-tercio-dias .hk-dia-tiempo:first-child {
    margin-top: 0;
}
/* the weather with no next days left (zonas.js): today alone, without the line under it */
.hk.hk .hk-zonas-col .hk-tercio-tiempo.hk-zonas-sin-dias .hk-tercio-hoy {
    padding-bottom: 0;
    border-bottom: 0;
}
.hk-zonas-sin-dias .hk-tercio-dias {
    display: none;
}
/* in the column at 8 m, today's icon and figures a size smaller than the third's, and the days in the least letter */
.hk[data-distancia="8"] .hk-zonas-col .hk-tercio-hoy .hk-tiempo-icono {
    width: var(--hk-t-cifra);
    height: var(--hk-t-cifra);
}
.hk[data-distancia="8"] .hk-zonas-col .hk-tercio-hoy .hk-dia-tiempo-grados {
    font-size: var(--hk-t-cifra);
}
.hk[data-distancia="8"] .hk-zonas-col .hk-tercio-hoy .hk-dia-tiempo-cielo {
    font-size: var(--hk-t-min);
}
.hk[data-distancia="8"] .hk-zonas-col .hk-tercio-dias .hk-etiqueta,
.hk[data-distancia="8"] .hk-zonas-col .hk-tercio-dias .hk-dia-tiempo-grados {
    font-size: var(--hk-t-min);
}
.hk[data-distancia="8"] .hk-zonas-col .hk-tercio-dias .hk-dia-tiempo-grados small {
    display: none;
}
.hk[data-distancia="8"] .hk-zonas-col .hk-tercio-dias .hk-tiempo-icono {
    width: calc(var(--hk-t-min) * 1.4);
    height: calc(var(--hk-t-min) * 1.4);
}

/* The coming days, compact: the day, then its events with their hour and their colour. As many days as fit (zonas.js). */
.hk-zonas-agenda {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 3.2rem 3.2rem 2.4rem 4rem;
}
/* the days share the column's height (each grows the same from what it holds): never an empty box under the last one */
.hk-zonas-agenda {
    display: flex;
    flex-direction: column;
}
.hk-zonas-dia {
    -webkit-box-flex: 1;
    flex: 1 0 auto;
}
.hk-zonas-dia + .hk-zonas-dia {
    margin-top: 2.4rem;
    padding-top: 2.2rem;
    border-top: .3rem solid var(--hk-linea);
}
.hk .hk-zonas-dia-nombre {
    margin-bottom: .6rem;
    color: var(--hk-texto-suave);
    font-size: var(--hk-t-min);
    font-weight: 700;
    line-height: 1.15;
}
.hk-zonas-dia-nombre b {
    margin-right: .2em;
    color: var(--hk-texto);
    font-family: var(--hk-letra-titulos);
    font-size: var(--hk-t-lista);
    font-weight: 800;
}
.hk-zonas-ev {
    display: flex;
    align-items: stretch;
    margin-top: 1.2rem;
}
.hk-zonas-ev-color {
    flex: none;
    width: 1rem;
    margin-right: 1.6rem;
    border-radius: calc(.5rem * var(--hk-esquina));
    background: var(--hk-ev, var(--hk-primario));
}
[data-tema="oscuro"] .hk-zonas-ev-color {
    background: var(--hk-ev-oscuro, var(--hk-ev, var(--hk-primario)));
}
.hk .hk-zonas-ev-texto {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--hk-t-min);
    font-weight: 800;
    line-height: 1.12;
}
.hk-zonas-ev-texto time {
    margin-right: .45em;
    color: var(--hk-acento-texto);
    font-variant-numeric: tabular-nums;
}
[data-tema="oscuro"] .hk-zonas-ev-texto time {
    color: var(--hk-acento);
}
.hk-zonas-ev-grupo {
    display: block;
    margin-top: .2rem;
    color: var(--hk-texto-suave);
    font-size: var(--hk-t-min);
    font-weight: 700;
}
.hk .hk-zonas-festivo {
    margin-top: .4rem;
    color: var(--hk-texto-suave);
    font-size: var(--hk-t-min);
    font-weight: 800;
}
/* The band: a mark for each item in the four colours of the centre, and the title of what is on. */
.hk-zonas-pie {
    position: relative;
    flex: none;
    padding: 1.8rem 3.2rem 2.2rem 4rem;
}
.hk-zonas-pie::before {
    content: "";
    position: absolute;
    top: 1.8rem;
    bottom: 2rem;
    left: 0;
    width: 1rem;
    border-radius: 0 calc(1rem * var(--hk-esquina)) calc(1rem * var(--hk-esquina)) 0;
    background: var(--hk-acento);
}
.hk .hk-zonas-marcas {
    display: flex;
    margin-bottom: 1.2rem;
}
.hk-zonas-marcas i {
    flex: none;
    width: 4.4rem;
    height: 1rem;
    margin-right: .8rem;
    border-radius: calc(.5rem * var(--hk-esquina));
    background: var(--hk-marca-1);
    opacity: .25;
    -webkit-transition: opacity .6s ease;
    transition: opacity .6s ease;
}
.hk-zonas-marcas i[data-n="2"] { background: var(--hk-marca-2); }
.hk-zonas-marcas i[data-n="3"] { background: var(--hk-marca-3); }
.hk-zonas-marcas i[data-n="4"] { background: var(--hk-marca-4); }
[data-tema="oscuro"] .hk-zonas-marcas i[data-n="1"] { background: var(--hk-marca-1-oscuro); }
[data-tema="oscuro"] .hk-zonas-marcas i[data-n="2"] { background: var(--hk-marca-2-oscuro); }
[data-tema="oscuro"] .hk-zonas-marcas i[data-n="3"] { background: var(--hk-marca-3-oscuro); }
[data-tema="oscuro"] .hk-zonas-marcas i[data-n="4"] { background: var(--hk-marca-4-oscuro); }
.hk-zonas-marcas i.hk-zonas-actual {
    opacity: 1;
}
.hk-zonas-titulos {
    position: relative;
}
.hk .hk-zonas-titulo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: var(--hk-t-lista);
    font-weight: 800;
    line-height: 1.08;
    opacity: 0;
    -webkit-transition: opacity .4s ease;
    transition: opacity .4s ease;
}
.hk .hk-zonas-titulo[data-ajuste="1"] {
    font-size: var(--hk-t-min);
}
.hk-zonas-titulo.hk-zonas-actual {
    opacity: 1;
    -webkit-transition-duration: .6s;
    transition-duration: .6s;
}
.hk[data-distancia="8"] .hk-zonas-marcas i {
    width: 6rem;
    height: 1.4rem;
}

/* --- The wide zone: a picture or video (the usual slot), or the card of the place ---------------------------------- */
.hk-sitio-ficha {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 5.6rem 6.4rem;
    border-radius: calc(2.8rem * var(--hk-esquina));
    background: var(--hk-primario);
    color: var(--hk-sobre-primario);
}
.hk-sitio-ficha-cuerpo {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}
.hk-sitio-ficha-cuerpo > * {
    flex: none;
}
.hk .hk-sitio-etiqueta {
    margin-bottom: 1.6rem;
    font-size: var(--hk-t-min);
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}
.hk .hk-sitio-nombre {
    font-family: var(--hk-letra-titulos);
    font-size: var(--hk-t-titular);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.015em;
}
.hk .hk-sitio-ficha[data-ajuste="1"] .hk-sitio-nombre { font-size: calc(var(--hk-t-titular) * .82); }
.hk .hk-sitio-ficha[data-ajuste="2"] .hk-sitio-nombre { font-size: calc(var(--hk-t-titular) * .68); }
.hk .hk-sitio-ficha[data-ajuste="3"] .hk-sitio-nombre { font-size: var(--hk-t-titulo-min); }
.hk .hk-sitio-estado {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    font-size: var(--hk-t-entrada);
    font-weight: 800;
    line-height: 1.12;
}
.hk-sitio-estado b {
    font-weight: 800;
}
.hk-sitio-estado span {
    font-weight: 700;
}
.hk-sitio-sep {
    font-style: normal;
    font-weight: 700;
    white-space: pre;
}
/* in two lines: the second under the first, where the words start, with no separator */
.hk-sitio-estado-dos .hk-sitio-sep {
    display: none;
}
.hk-sitio-estado-dos span {
    width: 100%;
    padding-left: 1em;
}
.hk-sitio-ficha .hk-sitio-punto {
    -webkit-align-self: center;
    align-self: center;
    flex: none;
    width: .58em;
    height: .58em;
    margin-right: .42em;
    border-radius: 50%;
}
.hk-sitio-ficha[data-estado="abierto"] .hk-sitio-punto {
    background: var(--hk-acento);
    box-shadow: 0 0 0 .14em rgba(255, 255, 255, .22);
}
.hk-sitio-ficha[data-estado="cerrado"] .hk-sitio-punto {
    border: .12em solid currentColor;
}
.hk-sitio-semana {
    margin-top: 3.6rem;
    padding-top: 2.6rem;
    border-top: .3rem solid rgba(255, 255, 255, .3);
}
.hk .hk-sitio-fila {
    display: flex;
    align-items: baseline;
    margin-top: 1.1rem;
    font-size: var(--hk-t-min);
    font-weight: 700;
    line-height: 1.15;
}
.hk-sitio-fila b {
    flex: none;
    width: 45%;
    padding-right: 2rem;
    font-weight: 800;
}
.hk-sitio-fila span {
    flex: 1 1 auto;
    min-width: 0;
}
.hk .hk-sitio-fila-hoy {
    margin-top: 0;
    margin-bottom: 1.8rem;
    font-size: var(--hk-t-lista);
    font-weight: 800;
}
.hk-sitio-fila-hoy b {
    color: var(--hk-acento);
}
.hk-sitio-sin-semana .hk-sitio-fila:not(.hk-sitio-fila-hoy) {
    display: none;
}
.hk-sitio-sin-semana .hk-sitio-fila-hoy {
    margin-bottom: 0;
}
.hk-sitio-sin-etiqueta .hk-sitio-etiqueta {
    display: none;
}

/* ================================================================================================================
 * 2. The place of the screen in the header: a chip beside the clock, at 3 and 5 m; the first to go when there is no room
 * ============================================================================================================= */
.hk-sitio {
    display: none;
}
.hk-con-sitio > .hk-sitio {
    display: flex;
    flex: none;
    align-items: center;
    -webkit-box-ordinal-group: 2;
    order: 1;
    margin-right: 3.2rem;
    padding: 1rem 2.4rem 1.1rem 1.8rem;
    border-radius: calc(1.8rem * var(--hk-esquina));
    background: var(--hk-superficie);
}
.hk-con-sitio > .hk-hora {
    -webkit-box-ordinal-group: 3;
    order: 2;
}
.hk:not([data-distancia="8"]) .hk-con-sitio:not(.hk-cab-sin-sitio) > .hk-hora {
    flex: none;                            /* the date never wraps for the chip: the chip goes first (fitHeaders) */
}
/* From 5 m the chip says only the state (render.js) and has no card of its own, so that it stays beside the clock */
.hk[data-distancia="5"] .hk-con-sitio > .hk-sitio {
    margin-right: 1.8rem;
    padding: 0 1.8rem 0 0;
    border-right: .3rem solid var(--hk-linea);  /* as the weather's: the chip's words never run into the date's */
    border-radius: 0;
    background: none;
}
.hk[data-distancia="5"] .hk-completa .hk-con-sitio > .hk-sitio {
    border-right-color: rgba(255, 255, 255, .45);
}
.hk[data-distancia="5"] .hk-sitio .hk-sitio-punto {
    margin-right: 1.2rem;
}
.hk[data-distancia="5"] .hk-completa .hk-con-sitio > .hk-sitio {
    background: none;
}
/* before the chip goes, the weather keeps only the degrees of now; when it has gone, the weather is whole again */
.hk .hk-con-sitio.hk-cab-tiempo-justo:not(.hk-cab-sin-sitio) .hk-tiempo-extremos,
.hk .hk-con-sitio.hk-cab-tiempo-justo:not(.hk-cab-sin-sitio) .hk-tiempo-lluvia {
    display: none;
}
.hk .hk-con-sitio.hk-cab-sin-sitio > .hk-sitio,
.hk[data-distancia="8"] .hk-con-sitio > .hk-sitio,
.hk[data-composicion="escaparate"] .hk-sitio,
.hk-reposo .hk-sitio {
    display: none;
}
/* without the weather beside it, the chip takes the margin that puts the clock on the right, and the clock follows it */
.hk .hk-con-sitio:not(.hk-con-tiempo):not(.hk-cab-sin-sitio) > .hk-sitio,
.hk .hk-con-sitio.hk-cab-sin-tiempo:not(.hk-cab-sin-sitio) > .hk-sitio {
    margin-left: auto;
}
.hk:not([data-distancia="8"]) .hk-con-sitio:not(.hk-con-tiempo):not(.hk-cab-sin-sitio) > .hk-hora,
.hk:not([data-distancia="8"]) .hk-con-sitio.hk-cab-sin-tiempo:not(.hk-cab-sin-sitio) > .hk-hora {
    margin-left: 0;
}
.hk .hk-sitio p {
    font-size: var(--hk-t-min);
    line-height: 1.1;
    white-space: nowrap;
}
.hk-sitio p b,
.hk-sitio p span {
    display: block;
}
.hk-sitio p b {
    color: var(--hk-texto);
    font-weight: 800;
}
.hk-sitio p span {
    color: var(--hk-texto-suave);
    font-weight: 700;
}
.hk-sitio .hk-sitio-punto {
    flex: none;
    width: calc(var(--hk-t-min) * .48);
    height: calc(var(--hk-t-min) * .48);
    margin-right: 1.6rem;
    border-radius: 50%;
}
.hk-sitio[data-estado="abierto"] .hk-sitio-punto {     /* lit: the accent, ringed in its darker tone so a pale one shows */
    background: var(--hk-acento);
    box-shadow: 0 0 0 .3rem var(--hk-acento-texto), 0 0 1.2rem var(--hk-acento);
}
.hk-completa .hk-sitio[data-estado="abierto"] .hk-sitio-punto {
    box-shadow: 0 0 1.2rem var(--hk-acento);
}
.hk-sitio[data-estado="cerrado"] .hk-sitio-punto {
    border: .45rem solid var(--hk-texto-suave);
}
/* over a full-screen picture: white, on a veil of its own */
.hk-completa .hk-con-sitio > .hk-sitio {
    background: rgba(0, 0, 0, .34);
}
.hk-completa .hk-sitio p b,
.hk-completa .hk-sitio p span {
    color: #fff;
}
.hk-completa .hk-sitio[data-estado="cerrado"] .hk-sitio-punto {
    border-color: #fff;
}

/* ================================================================================================================
 * 3. The birthday strip, above the ticker: a party, not one more band (Gaudí's review, 12 November 2026)
 * ============================================================================================================= */
.hk-cumple-franja {
    display: none;
}
.hk.hk-con-franja > .hk-cumple-franja {
    position: relative;
    z-index: 6;                            /* over the full-screen layer, as the important band */
    display: flex;
    flex: none;
    flex-direction: column;
    margin: var(--hk-hueco) -4rem 0;
    padding: var(--hk-franja-guirnalda) 4rem 1.2rem;
    overflow: hidden;
    background: var(--hk-superficie);
    color: var(--hk-texto);
    box-shadow: 0 -.2rem 1.2rem rgba(0, 0, 0, .07);
    -webkit-transition: -webkit-transform .8s cubic-bezier(.4, 0, .2, 1);
    transition: transform .8s cubic-bezier(.4, 0, .2, 1);
}
.hk.hk-con-franja.hk-sin-franja > .hk-cumple-franja {
    display: none;
}
/* the strip and the ticker, one frame at the bottom */
.hk.hk-con-franja:not(.hk-sin-franja) > .hk-cinta {
    margin-top: 0;
}
.hk[data-zona-segura].hk-con-franja > .hk-cumple-franja {
    margin-right: -7.7rem;
    margin-left: -7.7rem;
    padding-right: 7.7rem;
    padding-left: 7.7rem;
}
/* with nothing under it, it goes to the bottom edge */
.hk.hk-con-franja:not(.hk-sin-franja)[data-distancia="8"]:not([data-zona-segura]),
.hk.hk-con-franja:not(.hk-sin-franja).hk-sin-cinta:not([data-zona-segura]) {
    padding-bottom: 0;
}
/* On a vertical screen the strip takes its height from the body: what leads gives a little more of it to the third under
   it (jerarquia.css's 2 : 1), so the third keeps at least a line and never stands empty. */
.hk.hk.hk-vertical.hk-con-franja:not(.hk-sin-franja) .hk-cuerpo[data-composicion="foto-hoy"] > .hk-medio,
.hk.hk.hk-vertical.hk-con-franja:not(.hk-sin-franja) .hk-cuerpo[data-composicion="vertical-hoy"] > .hk-medio,
.hk.hk.hk-vertical.hk-con-franja:not(.hk-sin-franja) .hk-cuerpo[data-composicion="dos-verticales"] > .hk-pareja,
.hk.hk.hk-vertical.hk-con-franja:not(.hk-sin-franja) .hk-cuerpo[data-composicion="tres-verticales"] > .hk-pareja,
.hk.hk.hk-vertical.hk-con-franja:not(.hk-sin-franja) .hk-cuerpo[data-composicion="solo-hoy"] > .hk-lider {
    -webkit-box-flex: 1.5;
    flex-grow: 1.5;
}
/* Its paper: a soft tint of the skin's colour, with confetti printed on it, still and of little contrast. Nothing like the
   bands of the notices (the accent) or the ticker (the colour, whole). */
.hk.hk-con-franja > .hk-cumple-franja::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hk-primario);
    opacity: .08;
}
[data-tema="oscuro"] .hk.hk-con-franja > .hk-cumple-franja::before {
    opacity: .2;
}
.hk-franja-papel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hk-franja-papel svg {
    display: block;
}
.hk-franja-papel rect,
.hk-franja-papel circle,
.hk-franja-papel path {
    stroke: none;
    opacity: .22;
}
.hk-franja-papel .hk-franja-serpentina {
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
}
.hk-franja-confeti-0 { fill: var(--hk-marca-1); stroke: var(--hk-marca-1); }
.hk-franja-confeti-1 { fill: var(--hk-marca-2); stroke: var(--hk-marca-2); }
.hk-franja-confeti-2 { fill: var(--hk-marca-3); stroke: var(--hk-marca-3); }
.hk-franja-confeti-3 { fill: var(--hk-marca-4); stroke: var(--hk-marca-4); }
.hk-franja-papel .hk-franja-serpentina.hk-franja-confeti-0 { stroke: var(--hk-marca-1); }
.hk-franja-papel .hk-franja-serpentina.hk-franja-confeti-1 { stroke: var(--hk-marca-2); }
.hk-franja-papel .hk-franja-serpentina.hk-franja-confeti-2 { stroke: var(--hk-marca-3); }
.hk-franja-papel .hk-franja-serpentina.hk-franja-confeti-3 { stroke: var(--hk-marca-4); }
[data-tema="oscuro"] .hk-franja-confeti-0 { fill: var(--hk-marca-1-oscuro); }
[data-tema="oscuro"] .hk-franja-confeti-1 { fill: var(--hk-marca-2-oscuro); }
[data-tema="oscuro"] .hk-franja-confeti-2 { fill: var(--hk-marca-3-oscuro); }
[data-tema="oscuro"] .hk-franja-confeti-3 { fill: var(--hk-marca-4-oscuro); }
[data-tema="oscuro"] .hk-franja-papel .hk-franja-serpentina.hk-franja-confeti-0 { stroke: var(--hk-marca-1-oscuro); }
[data-tema="oscuro"] .hk-franja-papel .hk-franja-serpentina.hk-franja-confeti-1 { stroke: var(--hk-marca-2-oscuro); }
[data-tema="oscuro"] .hk-franja-papel .hk-franja-serpentina.hk-franja-confeti-2 { stroke: var(--hk-marca-3-oscuro); }
[data-tema="oscuro"] .hk-franja-papel .hk-franja-serpentina.hk-franja-confeti-3 { stroke: var(--hk-marca-4-oscuro); }
[data-tema="oscuro"] .hk-franja-papel .hk-franja-serpentina {
    fill: none;
}
/* Its garland: the string hangs in swags between points, the pennants tilted along it in the four colours of the skin. */
.hk-franja-guirnalda {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: var(--hk-franja-guirnalda);
}
.hk-franja-tramo,
.hk-franja-nudos {
    position: absolute;
    top: 0;
    display: block;
}
.hk-franja-nudos {
    left: 0;
}
.hk-franja-tramo {
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
}
.hk-franja-cuerda {
    fill: none;
    stroke: var(--hk-texto-suave);
    stroke-width: 2.2;
    opacity: .6;
}
.hk-franja-nudos circle {
    fill: var(--hk-texto-suave);
}
.hk-franja-banderin-0 { fill: var(--hk-marca-1); }
.hk-franja-banderin-1 { fill: var(--hk-marca-2); }
.hk-franja-banderin-2 { fill: var(--hk-marca-3); }
.hk-franja-banderin-3 { fill: var(--hk-marca-4); }
[data-tema="oscuro"] .hk-franja-banderin-0 { fill: var(--hk-marca-1-oscuro); }
[data-tema="oscuro"] .hk-franja-banderin-1 { fill: var(--hk-marca-2-oscuro); }
[data-tema="oscuro"] .hk-franja-banderin-2 { fill: var(--hk-marca-3-oscuro); }
[data-tema="oscuro"] .hk-franja-banderin-3 { fill: var(--hk-marca-4-oscuro); }
/* A person's moment, once (franja.js adds the classes as they come and takes them away 1.3 s later): the pennants sway and
   stop; how much, the skin's party says. */
.hk-cumple-franja.hk-franja-mece .hk-franja-tramo {
    -webkit-animation: hk-franja-mece 1s cubic-bezier(.45, .05, .55, .95) 1 both;
    animation: hk-franja-mece 1s cubic-bezier(.45, .05, .55, .95) 1 both;
}
.hk-cumple-franja[data-fiesta="sobria"].hk-franja-mece .hk-franja-tramo {
    -webkit-animation-name: hk-franja-mece-poco;
    animation-name: hk-franja-mece-poco;
}
.hk-cumple-franja[data-fiesta="juguetona"].hk-franja-mece .hk-franja-tramo {
    -webkit-animation-name: hk-franja-mece-mas;
    animation-name: hk-franja-mece-mas;
}
@-webkit-keyframes hk-franja-mece {
    0% { -webkit-transform: none; }
    22% { -webkit-transform: rotate(1.6deg) scaleY(1.06); }
    50% { -webkit-transform: rotate(-1.1deg) scaleY(.97); }
    76% { -webkit-transform: rotate(.5deg) scaleY(1.02); }
    100% { -webkit-transform: none; }
}
@keyframes hk-franja-mece {
    0% { transform: none; }
    22% { transform: rotate(1.6deg) scaleY(1.06); }
    50% { transform: rotate(-1.1deg) scaleY(.97); }
    76% { transform: rotate(.5deg) scaleY(1.02); }
    100% { transform: none; }
}
@-webkit-keyframes hk-franja-mece-poco {
    0% { -webkit-transform: none; }
    35% { -webkit-transform: rotate(.7deg) scaleY(1.03); }
    70% { -webkit-transform: rotate(-.4deg); }
    100% { -webkit-transform: none; }
}
@keyframes hk-franja-mece-poco {
    0% { transform: none; }
    35% { transform: rotate(.7deg) scaleY(1.03); }
    70% { transform: rotate(-.4deg); }
    100% { transform: none; }
}
@-webkit-keyframes hk-franja-mece-mas {
    0% { -webkit-transform: none; }
    20% { -webkit-transform: rotate(2.6deg) scaleY(1.09); }
    46% { -webkit-transform: rotate(-1.8deg) scaleY(.95); }
    72% { -webkit-transform: rotate(.9deg) scaleY(1.03); }
    100% { -webkit-transform: none; }
}
@keyframes hk-franja-mece-mas {
    0% { transform: none; }
    20% { transform: rotate(2.6deg) scaleY(1.09); }
    46% { transform: rotate(-1.8deg) scaleY(.95); }
    72% { transform: rotate(.9deg) scaleY(1.03); }
    100% { transform: none; }
}
/* One person at a time: in from a little below, out a little up, never two names at once. */
.hk-franja-pista {
    position: relative;
    z-index: 2;
    flex: none;
}
.hk-franja-persona {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    opacity: 0;
    -webkit-transform: translate3d(0, 40%, 0);
    transform: translate3d(0, 40%, 0);
    -webkit-transition: opacity .6s ease, -webkit-transform .8s cubic-bezier(.2, .7, .2, 1);
    transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.hk-franja-persona.hk-franja-dentro {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
}
.hk-franja-persona.hk-franja-fuera {
    opacity: 0;
    -webkit-transform: translate3d(0, -30%, 0);
    transform: translate3d(0, -30%, 0);
    -webkit-transition-duration: .45s;
    transition-duration: .45s;
}
/* The portrait, almost as high as the strip, in front of the garland, ringed in the skin's colour; it bounces in, once. */
.hk .hk-franja-cara {
    width: var(--hk-franja-cara);
    height: var(--hk-franja-cara);
    margin: calc(var(--hk-franja-sube) * -1) 2.8rem 0 0;
    border: calc(var(--hk-franja-cara) * .055) solid var(--hk-primario);
    box-shadow: 0 .6rem 1.8rem rgba(0, 0, 0, .16);
}
.hk-franja-persona.hk-franja-salta .hk-franja-cara {
    -webkit-animation: hk-franja-salta .45s cubic-bezier(.3, 1.35, .5, 1) 1 both;
    animation: hk-franja-salta .45s cubic-bezier(.3, 1.35, .5, 1) 1 both;
}
.hk-cumple-franja[data-fiesta="sobria"] .hk-franja-persona.hk-franja-salta .hk-franja-cara {
    -webkit-animation-name: hk-franja-salta-poco;
    animation-name: hk-franja-salta-poco;
    -webkit-animation-timing-function: cubic-bezier(.2, .7, .2, 1);
    animation-timing-function: cubic-bezier(.2, .7, .2, 1);
}
@-webkit-keyframes hk-franja-salta {
    0% { -webkit-transform: scale(.85); }
    60% { -webkit-transform: scale(1.05); }
    100% { -webkit-transform: none; }
}
@keyframes hk-franja-salta {
    0% { transform: scale(.85); }
    60% { transform: scale(1.05); }
    100% { transform: none; }
}
@-webkit-keyframes hk-franja-salta-poco {
    0% { -webkit-transform: scale(.9); }
    100% { -webkit-transform: none; }
}
@keyframes hk-franja-salta-poco {
    0% { transform: scale(.9); }
    100% { transform: none; }
}
/* over a full-screen picture the ticker goes down; the strip goes down with it, to the edge */
.hk[data-composicion="foto-completa"].hk-con-franja:not(.hk-con-importante):not(.hk-sin-cinta):not([data-distancia="8"])
    > .hk-cumple-franja {
    -webkit-transform: translate3d(0, var(--hk-cinta-alto), 0);
    transform: translate3d(0, var(--hk-cinta-alto), 0);
}
/* and the picture's caption and QR go over it (the player measures what sits at the bottom: --hk-pie-abajo) */
.hk.hk.hk-con-franja:not(.hk-sin-franja) .hk-completa .hk-pie {
    bottom: var(--hk-pie-abajo, 0px);
}
.hk.hk.hk-con-franja:not(.hk-sin-franja) .hk-completa .hk-qr {
    bottom: calc(var(--hk-pie-abajo, 0px) + 4rem);
}
/* The words: the heading small, the name big, the group after it. */
.hk .hk-franja-texto {
    -webkit-align-self: center;
    align-self: center;
    display: flex;
    flex: 1 1 auto;
    align-items: baseline;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.hk .hk-franja-antetitulo {
    flex: none;
    margin-right: 2.4rem;
    color: var(--hk-acento-texto);
    font-size: var(--hk-t-min);
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.1;
    text-transform: uppercase;
}
[data-tema="oscuro"] .hk-franja-antetitulo {
    color: var(--hk-acento);
}
.hk-franja-linea {
    flex: none;
}
.hk .hk-franja-nombre {
    font-family: var(--hk-letra-titulos);
    font-size: var(--hk-t-entrada);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.01em;
}
.hk .hk-franja-grupo {
    display: inline-block;                 /* the group goes whole to the next line, never split («2.º de / Bachillerato») */
    margin-left: .7em;
    color: var(--hk-texto-suave);
    font-size: var(--hk-t-lista);
    font-weight: 700;
    white-space: nowrap;
}
/* the steps of a long name (franja.js): the name smaller in the same line, the heading over it, both, the name in two lines */
.hk .hk-cumple-franja[data-ajuste="2"] .hk-franja-texto,
.hk .hk-cumple-franja[data-ajuste="3"] .hk-franja-texto,
.hk .hk-cumple-franja[data-ajuste="4"] .hk-franja-texto {
    flex-direction: column;
    align-items: flex-start;
}
.hk .hk-cumple-franja[data-ajuste="2"] .hk-franja-antetitulo,
.hk .hk-cumple-franja[data-ajuste="3"] .hk-franja-antetitulo,
.hk .hk-cumple-franja[data-ajuste="4"] .hk-franja-antetitulo {
    margin: 0 0 .5rem;
}
.hk .hk-cumple-franja[data-ajuste="1"] .hk-franja-nombre,
.hk .hk-cumple-franja[data-ajuste="3"] .hk-franja-nombre,
.hk .hk-cumple-franja[data-ajuste="4"] .hk-franja-nombre {
    font-size: var(--hk-t-lista);
}
.hk .hk-cumple-franja[data-ajuste="1"] .hk-franja-grupo,
.hk .hk-cumple-franja[data-ajuste="3"] .hk-franja-grupo,
.hk .hk-cumple-franja[data-ajuste="4"] .hk-franja-grupo {
    font-size: var(--hk-t-min);
}
.hk .hk-cumple-franja[data-ajuste="4"] .hk-franja-texto,
.hk .hk-cumple-franja[data-ajuste="4"] .hk-franja-linea {
    white-space: normal;
}
.hk .hk-cumple-franja[data-ajuste="4"] .hk-franja-linea {
    flex: none;
    max-width: 100%;
}
.hk .hk-cumple-franja[data-ajuste="4"] .hk-franja-grupo {
    display: block;
    margin-left: 0;
}

/* ================================================================================================================
 * 4. The centre's own sentence in the ticker, and in a headline of its own
 * ============================================================================================================= */
.hk-cinta-sello {
    display: none;
}
.hk .hk-cinta.hk-cinta-centro:not(.hk-cinta-sin-sello) > b:not(.hk-cinta-rotulo) {
    display: none;
}
.hk .hk-cinta.hk-cinta-centro:not(.hk-cinta-sin-sello):not(.hk-cinta-importante) > .hk-cinta-sello {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 3.2rem 0 4rem;
}
/* the logo on its card, the one of each theme; the initial on the accent, where the label was */
.hk-cinta-sello {
    background: var(--hk-superficie);
}
.hk-cinta-sello[data-inicial] {
    min-width: calc(var(--hk-t-entrada) * 1.6);
    background: var(--hk-acento);
    color: var(--hk-sobre-acento);
}
.hk-cinta-sello img {
    width: auto;
    height: 62%;
}
.hk-cinta-sello[data-inicial] span {
    font-family: var(--hk-letra-titulos);
    font-size: var(--hk-t-entrada);
    font-weight: 800;
    line-height: 1;
}
.hk .hk-frase.hk-frase-centro {
    font-family: var(--hk-letra-titulos);
    letter-spacing: -.005em;
}
.hk-tipografica-logo {
    display: block;
    width: auto;
    height: calc(var(--hk-t-min) * 1.6);
}

/* ================================================================================================================
 * 5. The important band also on a screen without sentences in its ticker (hechauka.css's .hk-sin-cinta hid it with them)
 * ============================================================================================================= */
.hk.hk-sin-cinta > .hk-cinta.hk-cinta-importante {
    display: flex;
}
.hk.hk.hk-sin-cinta.hk-con-importante:not([data-zona-segura]) {
    padding-bottom: 0;
}

/* ================================================================================================================
 * 6. A screen that keeps still: the same changes, with fades only
 * ============================================================================================================= */
.hk-quieto .hk-zonas-foto img,
.hk-quieto .hk-zonas-item[data-kb="b"] .hk-zonas-foto img,
.hk-quieto .hk-zonas-item.hk-zonas-actual .hk-zonas-foto img,
.hk-quieto .hk-franja-persona,
.hk-quieto .hk-franja-persona.hk-franja-fuera,
.hk-capa[data-mv-quieta] .hk-zonas-foto img {
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-transition: none;
    transition: none;
}
.hk-quieto .hk-franja-persona {
    -webkit-transition: opacity .5s ease;
    transition: opacity .5s ease;
}
/* the strip's moment, too: no bounce and no sway, only the fade from one person to the next */
.hk-quieto .hk-franja-tramo,
.hk-quieto .hk-franja-cara {
    -webkit-animation: none !important;
    animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .hk .hk-zonas-foto img,
    .hk .hk-zonas-item.hk-zonas-actual .hk-zonas-foto img,
    .hk .hk-franja-persona,
    .hk .hk-franja-persona.hk-franja-fuera {
        -webkit-transform: none !important;
        transform: none !important;
    }
    .hk .hk-franja-tramo,
    .hk .hk-franja-cara {
        -webkit-animation: none !important;
        animation: none !important;
    }
}
