/* Eguahe, the pages of the families: their own pages, not Moodle's. The centre's brand rules (logo, name, colour)
   and Eguahe keeps the language of its mark: the child's backpack on its hook, the name written by hand on its label,
   the people who will receive the family, warm paper and calm, large type (DESIGN.md of Gaudí, 7 November 2026).
   Works in Firefox 98: no color-mix(), no :has(), no container queries; every colour that comes from the centre is
   computed on the server and written as a variable. */
@font-face {
    font-family: 'Eg Sans';
    src: url(fonts/schibsted-grotesk.woff2) format('woff2');
    font-weight: 400 800;
    font-display: swap;
    /* The Latin letters only: the Arabic ones go to its own face, below. */
    unicode-range: U+0000-05FF, U+1E00-1EFF, U+2000-20CF, U+2100-22FF, U+FB00-FB06;
}

/* Arabic text (Gaudí, 8 November 2026): Vazirmatn, a second face of the same family, so mixed text shares itself out;
   a point larger, as Arabic needs to read as comfortably as the Latin letters. */
@font-face {
    font-family: 'Eg Sans';
    src: url(fonts/vazirmatn-arabe.woff2) format('woff2');
    /* The same weights as the Latin face: browsers only share a family out between faces that match. */
    font-weight: 400 800;
    font-display: swap;
    /* stylelint-disable-next-line csstree/validator */
    size-adjust: 106%;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

@font-face {
    font-family: 'Eg Mano';
    src: url(fonts/caveat.woff2) format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

/* Names in other alphabets and with more accents («Олена», «Łukasz», «Tomáš», the ẽ of eguahẽ): the rest of Caveat, only
   downloaded when a name needs it. And names in Arabic script, written by hand too: Playpen Sans Arabic at 88 % of
   Caveat, so the alef stands as tall as an «l» (the art director, 8 November 2026). */
@font-face {
    font-family: 'Eg Mano';
    src: url(fonts/caveat-mas.woff2) format('woff2');
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0100-024F, U+0300-036F, U+0400-052F, U+1E00-1EFF;
}

@font-face {
    font-family: 'Eg Mano';
    src: url(fonts/playpen-sans-arabic.woff2) format('woff2');
    font-weight: 400 700;
    font-display: swap;
    /* stylelint-disable-next-line csstree/validator */
    size-adjust: 88%;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
    /* Sizes that follow the width of the screen */
    --eg-fluido-1: clamp(2.6rem, 11.5vw, 6.2rem);
    --eg-fluido-2: clamp(34px, 5vw, 56px);
    --eg-fluido-3: clamp(20px, 6vw, 56px);
    --eg-fluido-4: clamp(1.9rem, 8.4vw, 3.4rem);
    --eg-fluido-5: clamp(1.7rem, 7.6vw, 3rem);
    --eg-fluido-6: clamp(170px, 50vw, 260px);
    --eg-fluido-7: clamp(60px, 16vw, 84px);
    --eg-fluido-8: clamp(132px, 40vw, 240px);
    --eg-fluido-9: clamp(92px, 26vw, 200px);
    --eg-fluido-10: clamp(40px, 5vw, 96px);
    --eg-fluido-11: clamp(1.375rem, 1.7vw, 1.75rem);
    --eg-fluido-12: clamp(2rem, 8.6vw, 4.2rem);
    --eg-fluido-13: clamp(1.5rem, 5.6vw, 2.4rem);
    --eg-fluido-14: clamp(1.75rem, 6vw, 2.75rem);
    --eg-fluido-15: clamp(48px, 6vw, 112px);
    --eg-fluido-16: clamp(1.9rem, 7vw, 3rem);
    --eg-fluido-17: clamp(1.4rem, 5vw, 1.9rem);
    --eg-fluido-18: clamp(2.2rem, 9vw, 4.8rem);
    --eg-fluido-19: clamp(2.2rem, 8vw, 4.4rem);
    /* Eguahe: the same for every centre */
    --eg-papel: #fbf7f1;
    --eg-superficie: #fff;
    --eg-hundido: #f3ece3;
    --eg-tinta: #2b2226;
    --eg-tinta-2: #5f5459;
    --eg-linea: #e7ded3;
    --eg-borde: #8c8086;
    --eg-madera: #bc8759;
    --eg-madera-luz: #d2a57c;
    --eg-madera-sombra: #8e5e3a;
    --eg-gancho: #7a5236;
    --eg-chapita: #fff;
    --eg-chapita-tinta: #2b2226;
    --eg-sombra: rgba(70, 45, 30, 0.16);
    --eg-luz: rgba(255, 248, 236, 0.9);
    --eg-error: #b3261e;
    --eg-error-suave: #fbeae7;
    --eg-maqueta: #6f5e6e;
    --eg-barra: rgba(106, 63, 120, 0.45);
    --eg-trama: rgba(95, 84, 89, 0.08);
    /* The centre: written by the server from its one colour (defaults, overwritten by the script) */
    --c-acento: #1f5a4e;
    --c-sobre-acento: #fff;
    --c-acento-texto: #1f5a4e;
    --c-acento-vivo: #1f5a4e;
    --c-sobre-vivo: #fff;
    --c-pared: #efe7db;
    --c-acento-suave: #eef2ef;
    --c-banda-linea: rgba(255, 255, 255, 0.35);
    --mochila: #1f5a4e;
    --mochila-sombra: #184539;
    --mochila-luz: #a9c1bb;
    --radio: 18px;
    --radio-boton: 14px;
    --radio-campo: 14px;
    --g: 20px;
    /* side gutter */
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --eg-papel: #171413;
        --eg-superficie: #211d1b;
        --eg-hundido: #120f0e;
        --eg-tinta: #f3ece6;
        --eg-tinta-2: #bbb0aa;
        --eg-linea: #36302d;
        --eg-borde: #877c77;
        --eg-madera: #a87a55;
        --eg-madera-luz: #c29670;
        --eg-madera-sombra: #7b573c;
        --eg-gancho: #cda27a;
        --eg-chapita: #f5eee5;
        --eg-sombra: rgba(0, 0, 0, 0.45);
        --eg-luz: rgba(255, 222, 184, 0.07);
        --eg-error: #f2a9a2;
        --eg-error-suave: #3a201d;
        --eg-maqueta: #bba9b8;
        --eg-barra: rgba(217, 182, 227, 0.35);
        --eg-trama: rgba(187, 176, 170, 0.07);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --eg-papel: #171413;
    --eg-superficie: #211d1b;
    --eg-hundido: #120f0e;
    --eg-tinta: #f3ece6;
    --eg-tinta-2: #bbb0aa;
    --eg-linea: #36302d;
    --eg-borde: #877c77;
    --eg-madera: #a87a55;
    --eg-madera-luz: #c29670;
    --eg-madera-sombra: #7b573c;
    --eg-gancho: #cda27a;
    --eg-chapita: #f5eee5;
    --eg-sombra: rgba(0, 0, 0, 0.45);
    --eg-luz: rgba(255, 222, 184, 0.07);
    --eg-error: #f2a9a2;
    --eg-error-suave: #3a201d;
    --eg-maqueta: #bba9b8;
    --eg-barra: rgba(217, 182, 227, 0.35);
    --eg-trama: rgba(187, 176, 170, 0.07);
    color-scheme: dark;
}

@media (min-width: 720px) {
    :root {
        --g: 40px;
    }
}

@media (min-width: 1200px) {
    :root {
        --g: 64px;
    }
}

@media (min-width: 1600px) {
    :root {
        --g: 96px;
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--eg-papel);
    color: var(--eg-tinta);
    font: 400 1.0625rem/1.55 'Eg Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    color: var(--c-acento-texto);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--c-acento-texto);
    outline-offset: 3px;
    border-radius: 6px;
}

.oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.muted {
    color: var(--eg-tinta-2);
}

.cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--g) 14px;
    background: var(--c-pared);
}

.placa {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.placa .logo {
    flex: none;
    flex-shrink: 0;
    display: flex;
}

.placa .logo.con-fondo {
    background: #fbf7f1;
    border-radius: 12px;
    padding: 6px 10px;
}

.placa .nombre {
    font-weight: 650;
    font-size: 1.0625rem;
    line-height: 1.2;
    letter-spacing: -0.005em;
}

.monograma {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--c-acento);
    color: var(--c-sobre-acento);
    font-weight: 750;
    font-size: 0.95rem;
}
/* ---------- The wall and the peg: the child's own place, edge to edge ---------- */
.pared {
    position: relative;
    background: radial-gradient(ellipse 70% 90% at 30% 30%, var(--eg-luz), transparent 70%), var(--c-pared);
    padding: 28px 0 0;
    overflow: hidden;
}

.pared::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image: url(img/grano.svg);
}

.pared > * {
    position: relative;
}

.saludo-arriba {
    padding: 0 var(--g);
    display: grid;
    gap: 10px;
}

.antetitulo {
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--c-acento-texto);
    letter-spacing: 0.01em;
}

.titular {
    font-size: var(--eg-fluido-1);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 780;
}

.pregunta {
    font-size: 1.125rem;
    font-weight: 650;
    margin-top: 6px;
}

.riel {
    position: relative;
    margin-top: var(--eg-fluido-2);
    height: 38px;
    background:
        linear-gradient(
            to bottom,
            var(--eg-madera-luz) 0 2px,
            transparent 2px calc(100% - 5px),
            var(--eg-madera-sombra) calc(100% - 5px)
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 46px,
            rgba(90, 55, 30, 0.07) 46px 47px,
            transparent 47px 83px,
            rgba(255, 240, 220, 0.08) 83px 84px
        ),
        var(--eg-madera);
    box-shadow: 0 14px 22px -14px var(--eg-sombra);
}

.perchas {
    display: flex;
    gap: var(--eg-fluido-3);
    padding: 0 var(--g) 20px;
    align-items: flex-start;
}

@media (min-width: 960px) {
    .perchas {
        padding-bottom: 48px;
    }
}

.percha {
    display: grid;
    justify-items: center;
}

.chapita {
    position: relative;
    margin-top: -38px;
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    z-index: 1;
}

.chapita .placa-nombre {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    margin-top: -9px;
    padding: 4px 26px 6px;
    border-radius: 9px;
    background: var(--eg-chapita);
    color: var(--eg-chapita-tinta);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 14px -6px rgba(50, 30, 20, 0.35);
    font-weight: 800;
    font-size: var(--eg-fluido-4);
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.chapita .placa-nombre::before,
.chapita .placa-nombre::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #d9cfc6, #8d8178);
}

.chapita .placa-nombre::before {
    inset-inline-start: 9px;
}

.chapita .placa-nombre::after {
    inset-inline-end: 9px;
}

.chapita .placa-nombre.vacia {
    width: 4.6em;
    height: 56px;
    background: var(--eg-chapita);
    opacity: 0.55;
    border: 2px dashed var(--eg-tinta-2);
    box-shadow: none;
}

.chapita .placa-nombre.vacia::before,
.chapita .placa-nombre.vacia::after {
    display: none;
}

.chapita input.placa-nombre {
    width: 7.2em;
    border: 2px dashed var(--eg-madera-sombra);
    background: var(--eg-chapita);
    text-align: center;
    padding: 4px 22px 6px;
    font-size: var(--eg-fluido-5);
}

.chapita input.placa-nombre::placeholder {
    color: #8c8086;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.chapita input.placa-nombre:focus-visible {
    outline: 3px solid var(--c-acento-texto);
    outline-offset: 3px;
    border-style: solid;
    border-color: var(--eg-chapita);
}

.chapita.mal input.placa-nombre {
    border-color: var(--eg-error);
    border-style: solid;
}

.colgante {
    display: block;
    width: var(--eg-fluido-6);
    height: auto;
    margin-top: -2px;
    overflow: visible;
}

.colgante.vacio {
    width: var(--eg-fluido-7);
}

.perchas.n2 .colgante {
    width: var(--eg-fluido-8);
}

.perchas.n3 .colgante {
    width: var(--eg-fluido-9);
}
/* Four or more brothers and sisters: each a little smaller on a phone, so that all fit on the rail. */
.perchas.n4 .colgante {
    /* stylelint-disable-next-line csstree/validator */
    width: clamp(72px, 20vw, 200px);
}

.perchas.n5 .colgante {
    /* stylelint-disable-next-line csstree/validator */
    width: clamp(58px, 16vw, 140px);
}

.perchas.n6 .colgante {
    /* stylelint-disable-next-line csstree/validator */
    width: clamp(50px, 13vw, 120px);
}

.perchas.n5,
.perchas.n6 {
    gap: 8px;
}

.perchas.n3,
.perchas.n4 {
    gap: 12px;
}

.colgante .gancho {
    fill: var(--eg-gancho);
}

.colgante .pomo-luz {
    fill: #fff;
    opacity: 0.28;
}

.colgante .cuerpo {
    fill: var(--mochila);
}

.colgante .correa {
    fill: var(--mochila-sombra);
}

.colgante .linea {
    fill: var(--mochila-luz);
}

.colgante .sombra {
    fill: var(--eg-sombra);
    filter: blur(2.2px);
}

.colgante .halo {
    fill: var(--mochila);
    stroke: var(--mochila);
}

.colgante .borde {
    fill: var(--c-acento-vivo);
}

.colgante .papel {
    fill: var(--eg-chapita);
}

.colgante .renglon {
    fill: #8c8178;
}

.colgante .pico {
    fill: #dccdbb;
}

.colgante .mano {
    font-family: 'Eg Mano', 'Segoe Print', 'Bradley Hand', cursive;
    font-weight: 600;
    fill: #2b2226;
}

.colgante .mochila {
    transform-box: fill-box;
    transform-origin: 44% 0%;
    /* Hung by a child: each one a little crooked, its own way. */
    transform: rotate(var(--reposo, 0deg));
}
/* What hangs by the age the course starts at, the same drawings as in the panel (panel_hanging, panel::hanging_object):
  the small backpack, the tall school backpack with its bottle, the sporty one with a ball and a clear name holder, the
  narrow flat one with a key ring, the luggage tag and the card on a lanyard. The partial draws them all and the class
  of the svg shows one; without it, the backpack. Each swings from the point where it rests on the knob. */
.colgante .de-escolar,
.colgante .de-figura,
.colgante .de-llavero,
.colgante .de-equipaje,
.colgante .de-credencial,
.colgante-escolar .de-mochila,
.colgante-figura .de-mochila,
.colgante-llavero .de-mochila,
.colgante-equipaje .de-mochila,
.colgante-credencial .de-mochila,
.colgante-credencial-neutra .de-mochila {
    display: none;
}

.colgante-escolar .de-escolar,
.colgante-figura .de-figura,
.colgante-llavero .de-llavero,
.colgante-equipaje .de-equipaje,
.colgante-credencial .de-credencial,
.colgante-credencial-neutra .de-credencial {
    display: inline;
}

.colgante .de-escolar {
    transform-origin: 53.86% 0%;
}

.colgante .de-figura {
    transform-origin: 49.73% 0%;
}

.colgante .de-llavero {
    transform-origin: 45.06% 0%;
}

.colgante .de-equipaje {
    transform-origin: 45.8% 0%;
}

.colgante .de-credencial {
    transform-origin: 47.16% 0%;
}
/* The plate of the key ring and the clear name holder hang plumb from their rings, whatever the tilt. */
.colgante .chapa,
.colgante .funda {
    transform-box: fill-box;
    transform: rotate(calc(var(--reposo, 0deg) * -1));
}

.colgante .chapa {
    transform-origin: 48.42% 13.96%;
}

.colgante .funda {
    transform-origin: 48.15% 0%;
}

.colgante .carton {
    fill: #ecdfc6;
}

.colgante .trazo {
    fill: none;
    stroke: var(--mochila-luz);
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* From eight the colours are less sweet: a veil of ink, and a reflective stripe. */
.colgante .velo {
    fill: #2b2226;
    opacity: 0.2;
}

.colgante .reflectante {
    fill: #d4d8db;
}

.colgante .pelota {
    fill: var(--mochila);
}

.colgante .pelota-costura {
    fill: none;
    stroke: var(--mochila-sombra);
    stroke-width: 0.5;
}

.colgante .plastico {
    fill: #fff;
    opacity: 0.16;
}

.colgante .plastico-filo {
    fill: none;
    stroke: #fff;
    stroke-width: 0.7;
    opacity: 0.55;
}

.colgante .brillo {
    fill: #fff;
    opacity: 0.38;
}

.colgante .hueco {
    fill: #1a1416;
    opacity: 0.55;
}
/* The card on its lanyard: the lanyard in the tone of the child; from eighteen a plain one, with a thread of that
  tone. The name printed, not written. */
.colgante .cinta,
.colgante .hilo {
    fill: var(--mochila);
}

.colgante .hilo {
    display: none;
}

.colgante-credencial-neutra .cinta {
    fill: var(--eg-tinta-2);
}

.colgante-credencial-neutra .hilo {
    display: inline;
}

.colgante .impreso {
    font-family: 'Eg Sans', sans-serif;
    font-weight: 700;
}

.mano-titular {
    display: block;
    font-family: 'Eg Mano', 'Segoe Print', 'Bradley Hand', cursive;
    font-weight: 600;
    font-size: 1.32em;
    line-height: 0.9;
    letter-spacing: 0;
    margin-top: 0.04em;
}

.colgante.llega .mochila {
    animation: colgar 1.6s cubic-bezier(0.3, 0.7, 0.3, 1) both;
    animation-delay: var(--retraso, 0s);
}

@keyframes colgar {
    0% {
        transform: rotate(calc(var(--reposo, 0deg) + 8deg));
    }

    28% {
        transform: rotate(calc(var(--reposo, 0deg) - 4.5deg));
    }

    52% {
        transform: rotate(calc(var(--reposo, 0deg) + 2.2deg));
    }

    76% {
        transform: rotate(calc(var(--reposo, 0deg) - 0.8deg));
    }

    100% {
        transform: rotate(var(--reposo, 0deg));
    }
}

.placa-nombre.aparece {
    animation: aparece 0.5s ease-out both;
}

@keyframes aparece {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .colgante.llega .mochila,
    .placa-nombre.aparece {
        animation: none;
    }
}

.bajo-riel {
    display: grid;
    gap: 18px;
    padding: 8px var(--g) 36px;
}

.entradilla {
    font-size: 1.1875rem;
    line-height: 1.5;
}

.entradilla b {
    font-weight: 700;
}

.ayuda-campo {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
}

/* A date is a leaf of the calendar written in place: its binding in the aubergine of Eguahe (the centre keeps its
   colour for what is its own), the month small, the day big and the year under it. The fields keep the order of the
   country of the centre for the keyboard; only the leaf puts them in their place. Empty, each says what goes in it. */
.fecha-tres {
    display: inline-grid;
    justify-self: start;
    width: max-content;
    grid-template-columns: 7rem;
    grid-template-areas: "m" "d" "y";
    padding: 12px 0 8px;
    border-radius: 3px 3px 12px 12px;
    background: linear-gradient(var(--eg-maqueta) 0 7px, transparent 7px), var(--eg-superficie);
    box-shadow: inset 0 0 0 1.5px var(--eg-borde), 0 12px 20px -16px rgba(58, 42, 30, 0.6);
    text-align: center;
}

.fecha-tres:focus-within {
    box-shadow: inset 0 0 0 3px var(--c-acento-texto), 0 12px 20px -16px rgba(58, 42, 30, 0.6);
}

.fecha-parte {
    display: block;
}

.fecha-tres .fecha-m {
    grid-area: m;
}

.fecha-tres .fecha-d {
    grid-area: d;
}

.fecha-tres .fecha-y {
    grid-area: y;
}

/* The names of the parts stay for those who listen; on the leaf, each empty field says it. */
.fecha-tres .fecha-nombre,
.campo .fecha-tres .fecha-nombre {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.fecha-tres .fecha-parte input,
.campo .fecha-tres .fecha-parte input,
.fecha-tres .fecha-parte select,
.campo .fecha-tres .fecha-parte select {
    width: 100%;
    min-height: 0;
    padding: 2px 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--eg-tinta);
    font: inherit;
    text-align: center;
    text-align-last: center;
    font-variant-numeric: tabular-nums;
    appearance: none;
}

.fecha-tres .fecha-m input,
.campo .fecha-tres .fecha-m input,
.fecha-tres .fecha-m select,
.campo .fecha-tres .fecha-m select {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.fecha-tres .fecha-d input,
.campo .fecha-tres .fecha-d input {
    font-size: 2.5rem;
    font-weight: 780;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.fecha-tres .fecha-y input,
.campo .fecha-tres .fecha-y input {
    color: var(--eg-tinta-2);
    font-size: 1.0625rem;
    font-weight: 700;
}

.fecha-tres .fecha-parte input::placeholder {
    color: var(--eg-tinta-2);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.fecha-tres .fecha-parte input:focus,
.fecha-tres .fecha-parte select:focus,
.campo .fecha-tres .fecha-parte input:focus-visible,
.campo .fecha-tres .fecha-parte select:focus-visible {
    border: 0;
    outline: none;
    background: var(--eg-hundido);
    box-shadow: none;
}

.fecha-tres:has([aria-invalid="true"]) {
    box-shadow: inset 0 0 0 3px var(--eg-error), 0 12px 20px -16px rgba(58, 42, 30, 0.6);
}

.nino + .nino {
    padding-top: 18px;
    border-top: 1px solid var(--eg-linea);
}

.anadir-nino {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-block: 0;
    padding-inline: 10px 14px;
    border-radius: 999px;
    border: 1.5px dashed var(--eg-madera-sombra);
    background: transparent;
    color: var(--eg-tinta);
    font-weight: 650;
    cursor: pointer;
}

.anadir-nino svg {
    width: 18px;
    height: 18px;
}

.error-riel {
    color: var(--eg-error);
    font-weight: 650;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.error-riel svg {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex: none;
}

@media (min-width: 960px) {
    .pared {
        padding-top: 48px;
    }

    .heroe-ancho {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: var(--eg-fluido-10);
        align-items: start;
    }

    .heroe-ancho .perchas {
        padding-inline-end: 0;
    }

    .heroe-ancho .bajo-riel {
        padding-inline-start: 0;
        padding-top: 40px;
        padding-bottom: 64px;
        align-content: start;
    }

    .heroe-ancho .entradilla {
        font-size: var(--eg-fluido-11);
        line-height: 1.45;
        letter-spacing: -0.01em;
    }
}
/* ---------- The notice (just signed up) ---------- */
.aviso {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px var(--g);
    background: var(--c-acento-suave);
    border-bottom: 1px solid var(--eg-linea);
    font-size: 0.9875rem;
}

.aviso .icono {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-acento-vivo);
    color: var(--c-sobre-vivo);
    display: grid;
    place-items: center;
}

.aviso .icono svg {
    width: 16px;
    height: 16px;
}

.aviso b {
    font-weight: 700;
}

.aviso.en-heroe {
    padding: 12px 14px;
    border: 1px solid var(--eg-linea);
    border-radius: 14px;
    background: var(--eg-superficie);
}
/* ---------- The visit: a band in the centre's colour ---------- */
.banda {
    background: var(--c-acento);
    color: var(--c-sobre-acento);
    padding: 36px var(--g) 40px;
    display: grid;
    gap: 22px;
}

.banda a {
    color: var(--c-sobre-acento);
}

.banda .etiqueta {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.banda .cuando {
    font-size: var(--eg-fluido-12);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 780;
}

.banda .cuando span {
    display: block;
}

.banda .detalles {
    display: grid;
    gap: 4px;
    font-size: 1.0625rem;
}

.banda .detalles b {
    font-size: 1.1875rem;
    font-weight: 700;
}

.banda .acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
}

.banda .otra {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--c-banda-linea);
}

/* The miniature of the centre: the way from the entrance to where they are received, as a cut-out on the band. */
.banda .miniatura {
    margin: 0;
    display: grid;
    gap: 8px;
}

.banda .miniatura a {
    display: block;
    border-radius: 6px;
}

.banda .miniatura picture img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    background: var(--c-pared);
    box-shadow: 0 2px 0 rgb(0 0 0 / 12%), 0 14px 30px -18px rgb(0 0 0 / 45%);
}

.miniatura-lamina {
    position: relative;
}

/* The guide of the centre: a little dog of paper and felt, with what it says in a bubble written by hand. */
.guia {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 16px;
}

.guia img {
    flex: none;
    width: 96px;
    height: 96px;
}

.bocadillo {
    position: relative;
    margin: 10px 0 0;
    padding: 7px 14px 8px;
    border-radius: 14px;
    background: #fffdf8;
    color: #2b2226;
    font-family: 'Eg Mano', 'Eg Sans', sans-serif;
    font-size: 1.625rem;
    line-height: 1.15;
    box-shadow: 0 1px 0 rgb(0 0 0 / 10%), 0 8px 18px -12px rgb(0 0 0 / 45%);
}

.guia-saluda .bocadillo::before,
.guia-presenta .bocadillo::before {
    content: "";
    position: absolute;
    top: 14px;
    inset-inline-start: -5px;
    width: 12px;
    height: 12px;
    background: inherit;
    transform: rotate(45deg);
}

/* On the miniature: where families arrive, just before the way starts, looking where it goes (guide::spot()); what it
   says in front of its face. It lets a touch through to the miniature. */
.guia-mapa {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: block;
    width: 14%;
    min-width: 60px;
    margin: 0;
    transform: translate(-50%, var(--alto, -100%));
    pointer-events: none;
}

.guia-mapa img {
    display: block;
    width: 100%;
    height: auto;
    transform: scaleX(var(--giro, 1));
}

/* Without script, behind the guide, away from where the way goes; the page then moves it to the first side where it
   covers no label nor the pin (data-lado: right, left, above). */
.guia-mapa .bocadillo {
    position: absolute;
    top: 6%;
    left: calc(50% - var(--giro, 1) * 40%);
    width: max-content;
    max-width: 320%;
    margin: 0;
    padding: 4px 10px 5px;
    font-size: 1.25rem;
    transform: translateX(calc(-50% - var(--giro, 1) * 50%));
}

.guia-mapa[data-lado="derecha"] .bocadillo {
    left: 92%;
    transform: none;
}

.guia-mapa[data-lado="izquierda"] .bocadillo {
    left: 8%;
    transform: translateX(-100%);
}

.guia-mapa[data-lado="derecha-pies"] .bocadillo {
    top: auto;
    bottom: 2%;
    left: 92%;
    transform: none;
}

.guia-mapa[data-lado="izquierda-pies"] .bocadillo {
    top: auto;
    bottom: 2%;
    left: 8%;
    transform: translateX(-100%);
}

.guia-mapa[data-lado="encima"] .bocadillo {
    top: auto;
    bottom: 96%;
    left: 50%;
    transform: translateX(-50%);
}

.guia-mapa[data-lado="debajo"] .bocadillo {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* On a phone what it says goes first in the caption, with its head (Jujol). */
.banda .miniatura figcaption .marca-guia {
    display: none;
}

.cabeza-perro {
    display: inline-block;
    flex: none;
    width: 26px;
    height: 26px;
    overflow: hidden;
    border-radius: 50%;
    background: #fffdf8;
}

.cabeza-perro img {
    display: block;
    width: 72px;
    max-width: none;
    height: 72px;
    margin: -8px 0 0 -44px;
}

@media (max-width: 640px) {
    .guia-mapa {
        left: var(--xn, var(--x));
        top: var(--yn, var(--y));
        width: 44px;
        min-width: 0;
        transform: translate(-50%, var(--alton, var(--alto, -100%)));
    }

    .guia-mapa img {
        transform: scaleX(var(--giron, var(--giro, 1)));
    }

    .guia-mapa .bocadillo {
        display: none;
    }

    .banda .miniatura figcaption .marca-guia {
        display: inline-flex;
        flex-basis: 100%;
    }

    .guia-saluda .bocadillo,
    .guia-presenta .bocadillo {
        font-size: 1.375rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .guia img {
        animation: guia-llega 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
    }

    .guia .bocadillo {
        animation: guia-dice 0.4s 0.5s ease-out both;
    }
}

@keyframes guia-llega {
    from {
        opacity: 0;
        translate: 0 14px;
    }
}

@keyframes guia-dice {
    from {
        opacity: 0;
    }
}

.banda .miniatura figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 0.9375rem;
}

.banda .miniatura .marca {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.banda .miniatura .marca svg {
    flex: none;
}

.banda .otra b {
    display: block;
    font-weight: 700;
}

.banda .siguiente {
    font-size: var(--eg-fluido-13);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 720;
}

@media (min-width: 960px) {
    .banda {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        column-gap: var(--eg-fluido-10);
        padding-top: 64px;
        padding-bottom: 64px;
        align-items: end;
    }

    .banda .etiqueta {
        grid-column: 1 / -1;
    }

    .banda .otra {
        grid-column: 2;
    }

    /* With a miniature (Jujol): the day and what they need to know on the left, the miniature on the right, level
       with the day; the two columns even. */
    .banda.banda-con-miniatura {
        grid-template-rows: auto auto 1fr;
        align-items: start;
    }

    .banda-con-miniatura .cuando {
        grid-column: 1;
        grid-row: 2;
    }

    .banda-con-miniatura .detalles {
        grid-column: 1;
        grid-row: 3;
    }

    .banda-con-miniatura .miniatura {
        grid-column: 2;
        grid-row: 2 / span 2;
    }

    .banda-con-miniatura .otra {
        grid-column: 1 / -1;
    }
}
/* ---------- Buttons ---------- */
.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: var(--radio-boton);
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.15s ease, background-color 0.15s ease;
}

.boton svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.boton:hover {
    filter: brightness(1.06);
}

.boton:active {
    transform: translateY(1px);
}

.boton.principal {
    background: var(--c-acento-vivo);
    color: var(--c-sobre-vivo);
}

.boton.inverso {
    background: var(--c-sobre-acento);
    color: var(--c-acento);
}

.boton.secundario {
    background: transparent;
    color: var(--eg-tinta);
    border-color: var(--eg-borde);
}

.boton.peligro {
    background: var(--eg-error);
    color: var(--eg-papel);
}

.boton.rojo {
    background: transparent;
    color: var(--eg-error);
    border-color: var(--eg-error);
}

.boton[aria-disabled="true"] {
    cursor: progress;
    filter: saturate(0.7);
}

.boton.ancho {
    width: 100%;
}

.enlace {
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.enlace svg {
    width: 20px;
    height: 20px;
}

.giro {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    animation: girar 0.8s linear infinite;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .giro {
        animation: none;
        border-right-color: currentColor;
        opacity: 0.6;
    }
}
/* ---------- Sections on paper ---------- */
.seccion {
    padding: 48px var(--g) 8px;
    display: grid;
    gap: 24px;
}

.seccion > h2 {
    font-size: var(--eg-fluido-14);
}

.seccion > .sub {
    color: var(--eg-tinta-2);
    margin-top: -12px;
    font-size: 1.0625rem;
}

@media (min-width: 960px) {
    .seccion {
        padding-top: 80px;
    }
}

.personas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
}

.cabeza {
    display: grid;
    gap: 12px;
    align-content: start;
}

.cabeza h2 {
    font-size: var(--eg-fluido-14);
}

.cabeza .sub {
    color: var(--eg-tinta-2);
    font-size: 1.0625rem;
}

@media (min-width: 960px) {
    .seccion.dos-col {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
        column-gap: var(--eg-fluido-15);
        align-items: start;
    }

    .personas {
        gap: 32px;
    }

    .persona .retrato {
        aspect-ratio: 1 / 1;
    }
}

@media (min-width: 1400px) {
    .personas {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.persona {
    display: grid;
    gap: 10px;
    align-content: start;
}

.persona .retrato {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radio);
    background: var(--c-acento-suave);
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    font-weight: 780;
    color: var(--c-acento-texto);
}

.persona b {
    font-size: 1.1875rem;
    font-weight: 720;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.persona .papel {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
    margin-top: -6px;
}

.persona .dice {
    font-size: 1.0625rem;
    line-height: 1.45;
}

.persona .dice::before {
    content: '«';
}

.persona .dice::after {
    content: '»';
}

html[lang="en"] .persona .dice::before,
html[lang="pt-BR"] .persona .dice::before {
    content: '“';
}

html[lang="en"] .persona .dice::after,
html[lang="pt-BR"] .persona .dice::after {
    content: '”';
}

.equipo {
    font-size: 1.1875rem;
}

.lo-contado {
    display: grid;
    gap: 28px;
}

@media (min-width: 720px) {
    .lo-contado {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
    }
}

.lo-contado h3 {
    font-size: 1.125rem;
    font-weight: 720;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--eg-linea);
}

.lo-contado dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.lo-contado dt {
    font-weight: 700;
    font-size: 1.0625rem;
}

.lo-contado dd {
    margin: 0;
    color: var(--eg-tinta-2);
}

.lo-contado .acciones {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.pie {
    margin-top: 64px;
    padding: 24px var(--g) 36px;
    border-top: 1px solid var(--eg-linea);
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    align-items: center;
}
/* ---------- The sign-up form ---------- */
.inscripcion {
    display: grid;
    gap: 40px;
    padding: 40px var(--g) 0;
}

@media (min-width: 960px) {
    .inscripcion {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
        gap: var(--eg-fluido-15);
        padding-top: 72px;
        align-items: start;
    }

    .inscripcion .resumen-acto {
        position: sticky;
        top: 24px;
    }
}

.resumen-acto {
    display: grid;
    gap: 18px;
    align-content: start;
}

.resumen-acto .cuando {
    font-size: var(--eg-fluido-16);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 780;
}

.resumen-acto .cuando span {
    display: block;
    color: var(--c-acento-texto);
}

.caras-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.caras-mini .pila {
    display: flex;
}

.caras-mini img,
.caras-mini .ini {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px var(--eg-papel);
    background: var(--c-acento-suave);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--c-acento-texto);
}

.caras-mini img + img {
    margin-inline-start: -12px;
}

form {
    display: grid;
    gap: 40px;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    min-width: 0;
}

legend {
    padding: 0;
    font-size: var(--eg-fluido-17);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 4px;
}

legend .opc {
    font-size: 1rem;
    font-weight: 500;
    color: var(--eg-tinta-2);
    letter-spacing: 0;
}

.ayuda {
    color: var(--eg-tinta-2);
    font-size: 1rem;
    margin-top: -8px;
}

.campo {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.campo label,
.campo .etiqueta {
    font-weight: 650;
    font-size: 1rem;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: var(--radio-campo);
    border: 1.5px solid var(--eg-borde);
    background: var(--eg-superficie);
    font-size: 1.0625rem;
}

.campo textarea {
    min-height: 112px;
    resize: vertical;
}

.campo select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url(img/flecha.svg);
    background-position: right 18px center;
    background-repeat: no-repeat;
    padding-inline-end: 46px;
}

[dir="rtl"] .campo select {
    background-position: left 18px center;
}

.campo input:focus-visible,
.campo select:focus-visible,
.campo textarea:focus-visible {
    outline: 3px solid var(--c-acento-texto);
    outline-offset: 1px;
    border-color: var(--c-acento-texto);
}

.campo.mal input {
    border-color: var(--eg-error);
    border-width: 2px;
}

.error {
    color: var(--eg-error);
    font-weight: 650;
    font-size: 0.9875rem;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.error svg {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 3px;
}

.dos {
    display: grid;
    gap: 18px;
}

@media (min-width: 560px) {
    .dos {
        grid-template-columns: 1fr 1fr;
    }
}

.anadir {
    justify-self: start;
    background: none;
    border: 0;
    padding: 0;
    min-height: 44px;
    color: var(--c-acento-texto);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.anadir svg {
    width: 20px;
    height: 20px;
}

.paso {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--eg-borde);
    border-radius: var(--radio-campo);
    background: var(--eg-superficie);
    justify-self: start;
}

.paso button {
    width: 56px;
    height: 54px;
    border: 0;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--c-acento-texto);
}

.paso output {
    min-width: 40px;
    text-align: center;
    font-weight: 750;
    font-size: 1.25rem;
}

.fichas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ficha {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px 0 14px;
    border-radius: 999px;
    border: 1.5px solid var(--eg-borde);
    background: var(--eg-superficie);
    cursor: pointer;
    font-weight: 650;
}

.ficha .marca {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid var(--eg-borde);
    display: grid;
    place-items: center;
}

.ficha[aria-pressed="true"],
.ficha[aria-current="true"] {
    border-color: var(--c-acento-texto);
    background: var(--c-acento-suave);
}

.ficha[aria-pressed="true"] .marca,
.ficha[aria-current="true"] .marca {
    background: var(--c-acento-vivo);
    border-color: var(--c-acento-vivo);
    color: var(--c-sobre-vivo);
}

.ficha .marca svg {
    width: 14px;
    height: 14px;
}

.turnos {
    display: grid;
    gap: 10px;
}

.turno {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 60px;
    padding: 0 18px;
    border-radius: var(--radio-campo);
    border: 1.5px solid var(--eg-borde);
    background: var(--eg-superficie);
    cursor: pointer;
    text-align: start;
}

.turno .punto {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--eg-borde);
}

.turno[aria-checked="true"] {
    border-color: var(--c-acento-texto);
    background: var(--c-acento-suave);
}

.turno[aria-checked="true"] .punto {
    border: 8px solid var(--c-acento-vivo);
}

.turno b {
    font-weight: 750;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.turno .quedan {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
}

.turno[aria-disabled="true"] {
    cursor: default;
    background: transparent;
    border-style: dashed;
}

.turno[aria-disabled="true"] .punto {
    visibility: hidden;
}

.capa {
    border-top: 1px solid var(--eg-linea);
    padding-top: 22px;
    display: grid;
    gap: 14px;
    font-size: 0.9375rem;
}

.capa > b {
    font-size: 1rem;
}

.capa dl {
    margin: 0;
    display: grid;
    gap: 10px 32px;
}

@media (min-width: 720px) {
    .capa dl {
        grid-template-columns: 1fr 1fr;
    }
}

.capa dt {
    font-weight: 700;
}

.capa dd {
    margin: 0;
    color: var(--eg-tinta-2);
}

.robot {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    border: 1.5px solid var(--eg-linea);
    border-radius: var(--radio-campo);
    background: var(--eg-superficie);
}

.robot .caja {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 2px solid var(--eg-borde);
    display: grid;
    place-items: center;
}

.robot.hecho .caja {
    background: var(--c-acento-vivo);
    border-color: var(--c-acento-vivo);
    color: var(--c-sobre-vivo);
}

.robot .caja svg {
    width: 16px;
    height: 16px;
}

.robot small {
    margin-inline-start: auto;
    color: var(--eg-tinta-2);
    font-size: 0.8125rem;
}

.enviar {
    display: grid;
    gap: 14px;
}

.resumen {
    border-inline-start: 4px solid var(--eg-error);
    background: var(--eg-error-suave);
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-start-end-radius: var(--radio-campo);
    border-end-end-radius: var(--radio-campo);
    padding: 16px 18px;
    display: grid;
    gap: 8px;
}

.resumen b {
    font-size: 1.125rem;
}

.resumen ul {
    margin: 0;
    padding-inline-start: 1.2em;
    display: grid;
    gap: 4px;
}

.resumen a {
    color: var(--eg-error);
    font-weight: 650;
}

.nota-plaza {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
}
/* ---------- Loose messages, the question before erasing, the page of text ---------- */
.mensaje {
    display: grid;
    gap: 20px;
    padding: 0 var(--g) 48px;
    justify-items: start;
}

.mensaje h1 {
    font-size: var(--eg-fluido-18);
    line-height: 1;
    letter-spacing: -0.035em;
}

.mensaje .entradilla {
    color: var(--eg-tinta);
}

.mensaje .acciones,
.acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.pared.corta {
    padding-bottom: 0;
}

.texto-largo {
    display: grid;
    gap: 32px;
    padding: 32px var(--g) 0;
}

.texto-largo h1 {
    font-size: var(--eg-fluido-19);
    line-height: 1;
    letter-spacing: -0.035em;
}

.texto-largo section {
    display: grid;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--eg-linea);
}

.texto-largo h2 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

@media (min-width: 960px) {
    .texto-largo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 64px;
    }

    .texto-largo > header {
        grid-column: 1 / -1;
    }
}
/* ---------- The language: a disclosure that works without JavaScript ---------- */
.idioma > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    border: 1px solid var(--eg-linea);
    background: var(--eg-superficie);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    list-style: none;
}

.idioma > summary::-webkit-details-marker {
    display: none;
}

.idioma > summary svg {
    width: 18px;
    height: 18px;
}

.idioma ul {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    margin: 0;
    padding: 6px;
    list-style: none;
    min-width: 230px;
    background: var(--eg-superficie);
    border: 1px solid var(--eg-linea);
    border-radius: 16px;
    box-shadow: 0 24px 48px -20px rgba(40, 25, 20, 0.45);
    z-index: 5;
}

.idioma li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--eg-tinta);
    text-decoration: none;
    font-size: 1rem;
}

.idioma li a:hover {
    background: var(--eg-hundido);
}

.idioma li a[aria-current="true"] {
    font-weight: 700;
    color: var(--c-acento-texto);
}

.idioma li a svg {
    width: 18px;
    height: 18px;
}

.placa .logo img {
    display: block;
    height: 40px;
    width: auto;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .placa .logo.plato-oscuro {
        background: #fbf7f1;
        border-radius: 12px;
        padding: 6px 10px;
    }
}

.pie a {
    color: var(--eg-tinta-2);
}
/* Who makes Eguahe: small, under what is the centre's. */
.pie .firma {
    flex-basis: 100%;
    margin: 0;
    font-size: 0.8125rem;
}
/* ---------- Real inputs under the chips, the turns and the step: they work without JavaScript ---------- */
.ficha input,
.turno input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ficha {
    position: relative;
}

.ficha .marca svg {
    visibility: hidden;
}

.ficha input:checked + .marca {
    background: var(--c-acento-vivo);
    border-color: var(--c-acento-vivo);
    color: var(--c-sobre-vivo);
}

.ficha input:checked + .marca svg {
    visibility: visible;
}

.ficha.esta {
    border-color: var(--c-acento-texto);
    background: var(--c-acento-suave);
}

.ficha input:focus-visible + .marca,
.turno input:focus-visible + .punto {
    outline: 3px solid var(--c-acento-texto);
    outline-offset: 3px;
}

.turno {
    position: relative;
}

.turno input:checked + .punto {
    border: 8px solid var(--c-acento-vivo);
}

.turno.esta {
    border-color: var(--c-acento-texto);
    background: var(--c-acento-suave);
}

.turno.completo {
    cursor: default;
    background: transparent;
    border-style: dashed;
}

.turno.completo .punto {
    visibility: hidden;
}

.paso input {
    width: 56px;
    min-height: 54px;
    border: 0;
    background: none;
    text-align: center;
    font-weight: 750;
    font-size: 1.25rem;
    -moz-appearance: textfield;
}

.paso input::-webkit-outer-spin-button,
.paso input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.campo .opc {
    font-weight: 500;
    color: var(--eg-tinta-2);
}

.campo.mal select,
.campo.mal textarea {
    border-color: var(--eg-error);
    border-width: 2px;
}

fieldset.mal .turnos .turno,
fieldset.mal .fichas .ficha {
    border-color: var(--eg-error);
}

.lejos[hidden] {
    display: none;
}
/* ---------- The check against robots: the widget of ALTCHA, dressed as the rest ---------- */
.robot [challenge] {
    display: block;
    width: 100%;
    --altcha-max-width: 100%;
    --altcha-border-radius: 14px;
    --altcha-border-width: 1.5px;
    --altcha-border-color: var(--eg-linea);
    --altcha-color-base: var(--eg-superficie);
    --altcha-color-base-content: var(--eg-tinta);
    --altcha-color-primary: var(--c-acento-vivo);
    --altcha-color-primary-content: var(--c-sobre-vivo);
    --altcha-color-error: var(--eg-error);
    --altcha-checkbox-border-color: var(--eg-borde);
    --altcha-checkbox-border-radius: 7px;
    --altcha-checkbox-size: 26px;
    --altcha-padding: 14px 16px;
}

.robot {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
}
/* ---------- Rows of children and adults that wait to be added ---------- */
.nino[hidden],
.adulto[hidden],
.hermano[hidden],
.quien-cuenta[hidden],
.percha[hidden],
.curso[hidden],
.anadir-nino[hidden],
.anadir[hidden] {
    display: none;
}

.espera {
    margin-bottom: 28px;
}

.texto-largo > header {
    display: grid;
    gap: 14px;
}

.banda .acciones {
    margin-top: 18px;
}

.lo-contado .acciones.datos {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    justify-items: start;
}

.dos {
    align-items: start;
}

.lo-contado .escribimos {
    margin-top: 12px;
}

/* The questions of a form of the centre: one under the other, each shown only when its answer calls for it. */
.preguntas {
    display: grid;
    gap: 22px;
}

.campo[hidden],
.seccion-form[hidden] {
    display: none;
}

.seccion-form {
    display: grid;
    gap: 6px;
}

.seccion-form h2 {
    margin: 8px 0 0;
    font-size: var(--eg-fluido-17);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.seccion-form .ayuda {
    margin-top: 0;
}

.pregunta .etiqueta-campo {
    margin: 0;
    font-weight: 650;
    font-size: 1rem;
}

.pregunta .opc,
.campo label .opc {
    font-weight: 500;
    color: var(--eg-tinta-2);
}

.pregunta.aparece {
    animation: aparecer 0.25s ease-out;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pregunta.aparece {
        animation: none;
    }
}

/* Inside the web of the centre: the web already says whose it is. */
.incrustado .cabecera .placa {
    visibility: hidden;
}

/* After the visit (Gaudí, «Cómo fue», 8 November 2026): a warm gesture, not a form. Once they came, the label of each
   backpack is stuck down, as it was at the door. One open question waits on the wall as a note on lined paper, its top
   in the colour of the centre like the band of a label, with the face of whoever answers on the button; once sent, a
   slip says who has it. If the centre turned on the survey «How did it go?», the band says who reads it, with their
   faces, and holds a sheet with the label of each child stuck in its corner: the open question first, then each scale as
   a row of words in their order, the one chosen filled with ink, each answer kept when it is touched; when the last
   one is answered, the thanks with the name used at home, written by hand, and the label is pressed on. Words, never
   numbers or stars. */
.perchas.pegada .colgante .pegatina .pico {
    opacity: 0;
}

.perchas.pegada.pegando .colgante .pegatina .pico {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: pegar-pico 0.44s 0.55s cubic-bezier(0.3, 0.7, 0.3, 1) both;
}

.perchas.pegada.pegando .colgante .pegado {
    animation: pegar-esquina 0.44s 0.55s ease-out both;
}

@keyframes pegar-pico {
    0% {
        opacity: 1;
        transform: rotate(135deg) scaleY(1) rotate(-135deg);
    }

    70% {
        opacity: 1;
        transform: rotate(135deg) scaleY(-1) rotate(-135deg);
    }

    100% {
        opacity: 0;
        transform: rotate(135deg) scaleY(-1) rotate(-135deg);
    }
}

@keyframes pegar-esquina {
    0%,
    62% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
/* The note on the wall and the sheet of the band: paper, a little grain, a soft shadow */
.hoja-pregunta,
.hoja-encuesta {
    position: relative;
    background: var(--eg-superficie);
    color: var(--eg-tinta);
    border-radius: var(--radio);
    box-shadow: 0 1px 2px var(--eg-sombra), 0 18px 36px -18px var(--eg-sombra);
    padding: 22px 20px 24px;
}

.hoja-pregunta::before,
.hoja-encuesta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url(img/grano.svg);
    opacity: 0.22;
    pointer-events: none;
}

.hoja-pregunta > *,
.hoja-encuesta > * {
    position: relative;
}
/* On the wall, the note wears the top of a label: the band of the colour of the centre */
.hoja-pregunta {
    border-top: 8px solid var(--c-acento-vivo);
}

.pregunta-abierta {
    display: grid;
    gap: 8px;
}

.pregunta-abierta .pregunta-titulo {
    font-size: var(--eg-fluido-17);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
/* Lined paper: the text sits on its lines, and the lines go with it when it scrolls */
textarea.renglones {
    --renglon: 30px;
    display: block;
    width: 100%;
    min-height: calc(3 * var(--renglon) + 18px);
    margin-top: 4px;
    padding: 8px 16px 10px;
    border: 1.5px solid var(--eg-borde);
    border-radius: var(--radio-campo);
    background-color: var(--eg-superficie);
    background-image: linear-gradient(transparent calc(var(--renglon) - 1px), var(--eg-linea) calc(var(--renglon) - 1px));
    background-size: 100% var(--renglon);
    background-position: 0 2px;
    background-attachment: local;
    color: var(--eg-tinta);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: var(--renglon);
    resize: vertical;
}

textarea.renglones:focus-visible {
    outline: 3px solid var(--c-acento-texto);
    outline-offset: 2px;
    border-color: var(--c-acento-texto);
}

.enviar-pregunta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 8px;
}

.enviar-pregunta .contesta {
    flex: 1 1 220px;
    margin: 0;
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.cara-boton {
    margin-inline-start: -15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    display: grid;
    place-items: center;
    background: var(--c-sobre-vivo);
    color: var(--c-acento-vivo);
    box-shadow: 0 0 0 2px var(--c-sobre-vivo);
    font-size: 0.8125rem;
    font-weight: 750;
}

.cara-boton img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boton[aria-disabled="true"] {
    opacity: 0.75;
    cursor: progress;
}
/* The slip that says who has it now */
.ya-pasado {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 10px 14px 10px 10px;
    border-radius: var(--radio-campo);
    background: var(--c-acento-suave);
    font-weight: 650;
    line-height: 1.35;
}

.ya-pasado:focus {
    outline: none;
}

.ya-pasado.llega {
    animation: llega-papel 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.marca-hecho {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex: none;
    display: grid;
    place-items: center;
    background: var(--c-acento-vivo);
    color: var(--c-sobre-vivo);
}

.marca-hecho svg {
    width: 17px;
    height: 17px;
}
/* What was written leaves as a note, up and away, while the slip comes in its place */
.nota-que-sale {
    --renglon: 30px;
    position: absolute;
    z-index: 2;
    padding: 8px 16px 10px;
    border-radius: var(--radio-campo);
    background-color: var(--eg-superficie);
    background-image: linear-gradient(transparent calc(var(--renglon) - 1px), var(--eg-linea) calc(var(--renglon) - 1px));
    background-size: 100% var(--renglon);
    background-position: 0 2px;
    box-shadow: 0 14px 28px -12px var(--eg-sombra);
    color: var(--eg-tinta);
    font-size: 1.0625rem;
    line-height: var(--renglon);
    white-space: pre-wrap;
    overflow: hidden;
    pointer-events: none;
    animation: nota-sale 0.52s cubic-bezier(0.4, 0, 0.6, 1) both;
}

@keyframes nota-sale {
    0% {
        opacity: 1;
        transform: none;
    }

    35% {
        opacity: 1;
        transform: translateY(-6px) rotate(-1deg) scale(0.98);
    }

    100% {
        opacity: 0;
        transform: translateY(-46px) rotate(-3deg) scale(0.9);
    }
}

@keyframes llega-papel {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
/* What the centre does with what they told: a note of the centre, under the thanks */
.lo-que-hacemos {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 12px 16px 14px;
    border-top: 6px solid var(--c-acento-vivo);
    border-radius: 14px;
    background: var(--eg-superficie);
    box-shadow: 0 1px 2px var(--eg-sombra);
    font-size: 1.0625rem;
    line-height: 1.5;
}

.lo-que-hacemos b {
    color: var(--c-acento-texto);
    font-size: 0.9375rem;
    font-weight: 700;
}
/* ---------- The band «How did it go?» ---------- */
.banda.banda-encuesta {
    position: relative;
    align-items: start;
    background-image: radial-gradient(ellipse 70% 55% at 12% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
}

.cabeza-encuesta {
    display: grid;
    gap: 14px;
    align-content: start;
}

.titulo-encuesta {
    font-size: var(--eg-fluido-16);
    font-weight: 780;
    letter-spacing: -0.03em;
    line-height: 1;
}

.cabeza-encuesta .siguiente {
    font-size: 1.1875rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
}
/* Who reads it, said plainly, with their faces */
.lo-lee {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.0625rem;
    font-weight: 650;
    line-height: 1.35;
}

.caras-lee {
    display: inline-flex;
    flex: none;
}

.caras-lee img,
.caras-lee .ini {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px var(--c-acento);
}

.caras-lee .ini {
    display: grid;
    place-items: center;
    background: var(--c-sobre-acento);
    color: var(--c-acento);
    font-size: 0.875rem;
    font-weight: 750;
}

.caras-lee > * + * {
    margin-inline-start: -10px;
}

.cabeza-encuesta .guardado-todo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 650;
}

.cabeza-encuesta .guardado-todo::before {
    content: '';
    flex: none;
    width: 10px;
    height: 6px;
    margin: 0 4px 4px;
    border-inline-start: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(-45deg);
}
/* The sheet, with the label of each child stuck in its corner, as on a card sent from the centre */
.hoja-encuesta {
    display: grid;
    gap: 28px;
    padding-top: 30px;
}

.sellos-etiqueta {
    display: flex;
    pointer-events: none;
}

.hoja-encuesta .sellos-etiqueta {
    position: absolute;
    top: -30px;
    inset-inline-end: 14px;
    z-index: 1;
}
/* Beside the sheet, on a wide screen: the label large, a sticker on the colour of the centre with its white edge */
.cabeza-encuesta .sellos-etiqueta {
    display: none;
}

.sello-etiqueta {
    display: block;
    width: 84px;
    height: auto;
    overflow: visible;
    transform: rotate(-8deg);
}

.sello-etiqueta + .sello-etiqueta {
    margin-inline-start: -22px;
    transform: rotate(5deg) translateY(6px);
}

.sello-etiqueta + .sello-etiqueta + .sello-etiqueta {
    transform: rotate(-3deg) translateY(-2px);
}

.sellos-etiqueta.n3 .sello-etiqueta,
.sellos-etiqueta.n4 .sello-etiqueta {
    width: 70px;
}

.sello-etiqueta .halo {
    fill: rgba(43, 34, 38, 0.2);
    stroke: rgba(43, 34, 38, 0.2);
    transform: translate(0.6px, 1.6px);
    filter: blur(1.1px);
}

.sello-etiqueta .borde {
    fill: var(--c-acento-vivo);
}

.sello-etiqueta .papel {
    fill: var(--eg-chapita);
}

.sello-etiqueta .renglon {
    fill: #8c8178;
}

.sello-etiqueta .mano {
    font-family: 'Eg Mano', 'Segoe Print', 'Bradley Hand', cursive;
    font-weight: 600;
    fill: #2b2226;
}

/* The stamp is what hangs from the knob for the age (public_tags): the label of the backpacks; from twelve the luggage
  tag, of cream card with its reinforced hole and its cord; from sixteen the card of the lanyard, the band in the
  colour of the centre and the name printed, with a plain lanyard and a thread of the tone from eighteen. */
.sello-etiqueta .de-equipaje,
.sello-etiqueta .de-credencial,
.sello-de-equipaje .de-etiqueta,
.sello-de-credencial .de-etiqueta,
.sello-de-credencial-neutra .de-etiqueta {
    display: none;
}

.sello-de-equipaje .de-equipaje,
.sello-de-credencial .de-credencial,
.sello-de-credencial-neutra .de-credencial {
    display: inline;
}

.sello-etiqueta .carton {
    fill: #ecdfc6;
}

.sello-etiqueta .filete {
    fill: none;
    stroke: #8c8178;
    stroke-width: 0.45;
    opacity: 0.5;
}

.sello-etiqueta .cordel {
    fill: none;
    stroke: var(--mochila);
    stroke-width: 1.3;
    stroke-linecap: round;
}

.sello-etiqueta .cinta,
.sello-etiqueta .hilo {
    fill: var(--mochila);
}

.sello-etiqueta .hilo {
    display: none;
}

.sello-de-credencial-neutra .cinta {
    fill: var(--eg-tinta-2);
}

.sello-de-credencial-neutra .hilo {
    display: inline;
}

.sello-etiqueta .gancho {
    fill: var(--eg-gancho);
}

.sello-etiqueta .hueco {
    fill: #1a1416;
    opacity: 0.55;
}

.sello-etiqueta .impreso {
    font-family: 'Eg Sans', sans-serif;
    font-weight: 700;
}

.sellos-etiqueta.estampa .sello-etiqueta {
    animation: estampar 0.5s cubic-bezier(0.3, 0.7, 0.3, 1) both;
}

.sellos-etiqueta.estampa .sello-etiqueta + .sello-etiqueta {
    animation-name: estampar-2;
    animation-delay: 0.12s;
}

@keyframes estampar {
    0% {
        transform: rotate(-14deg) scale(1.22) translateY(-8px);
    }

    55% {
        transform: rotate(-7deg) scale(0.96);
    }

    100% {
        transform: rotate(-8deg);
    }
}

@keyframes estampar-2 {
    0% {
        transform: rotate(11deg) scale(1.22) translateY(-2px);
    }

    55% {
        transform: rotate(4deg) scale(0.96) translateY(6px);
    }

    100% {
        transform: rotate(5deg) translateY(6px);
    }
}
/* The title keeps clear of the labels in the corner; its help, lower, takes the whole width of the sheet */
.hoja-encuesta .pregunta-titulo {
    padding-inline-end: 64px;
}

.hoja-encuesta .pregunta-abierta > .ya-pasado {
    margin-inline-end: 56px;
}

.hoja-encuesta .preguntas-encuesta {
    display: grid;
    gap: 22px;
    padding-top: 26px;
    border-top: 1.5px dashed var(--eg-linea);
}

.hoja-encuesta .campo {
    display: grid;
    gap: 10px;
}

.hoja-encuesta .etiqueta-campo,
.hoja-encuesta .campo > label {
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
/* All of them are «if you wish», and the head of the band says it once */
.hoja-encuesta .opc {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hoja-encuesta input[type="text"],
.hoja-encuesta input[type="date"] {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: var(--radio-campo);
    border: 1.5px solid var(--eg-borde);
    background: var(--eg-superficie);
    color: var(--eg-tinta);
    font-size: 1.0625rem;
}
/* A scale: the words in their order, side by side, the one chosen filled with ink from its start. Four in a row from
   560 px, two and two below; three always in a row; five, three and two. */
.fichas.escala {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fichas.escala .ficha {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    min-width: 0;
    min-height: 56px;
    padding: 0 10px;
    border-radius: var(--radio-campo);
    background: var(--eg-superficie);
    isolation: isolate;
    text-align: center;
    transition: border-color 0.15s ease;
}

.fichas.escala .ficha:first-child:nth-last-child(3),
.fichas.escala .ficha:first-child:nth-last-child(3) ~ .ficha {
    flex-basis: 0;
}

.fichas.escala .ficha:first-child:nth-last-child(5),
.fichas.escala .ficha:first-child:nth-last-child(5) ~ .ficha {
    flex-basis: calc(33.333% - 6px);
}

.fichas.escala .ficha:hover {
    border-color: var(--c-acento-texto);
}

.fichas.escala .ficha.esta {
    background: var(--eg-superficie);
    border-color: var(--c-acento-vivo);
}

.fichas.escala .ficha .marca {
    position: absolute;
    inset: -1.5px;
    z-index: -1;
    display: block;
    width: auto;
    height: auto;
    border: 0;
    border-radius: inherit;
    background: var(--c-acento-vivo);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[dir="rtl"] .fichas.escala .ficha .marca {
    transform-origin: 100% 50%;
}

.fichas.escala .ficha input:checked + .marca {
    transform: none;
    box-shadow: inset 0 0 0 1.5px var(--c-acento-texto);
}

.fichas.escala .ficha .marca svg {
    position: absolute;
    top: 6px;
    inset-inline-end: 7px;
    width: 14px;
    height: 14px;
    color: var(--c-sobre-vivo);
}

.fichas.escala .ficha .palabra {
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.15;
    transition: color 0.2s ease;
}

.fichas.escala .ficha input:checked ~ .palabra {
    color: var(--c-sobre-vivo);
    font-weight: 750;
}
/* The ring of the focus goes round the whole word, whatever its fill */
.fichas.escala .ficha .palabra::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 3px solid var(--c-acento-texto);
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
}

.fichas.escala .ficha input:focus-visible + .marca {
    outline: none;
}

.fichas.escala .ficha input:focus-visible ~ .palabra::after {
    opacity: 1;
}

@media (min-width: 560px) {
    .fichas.escala .ficha,
    .fichas.escala .ficha:first-child:nth-last-child(5),
    .fichas.escala .ficha:first-child:nth-last-child(5) ~ .ficha {
        flex-basis: 0;
    }
}
/* Kept: a small check and the word, once the server has it */
.guardado {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 1.25em;
    margin: 0;
    color: var(--c-acento-texto);
    font-size: 0.875rem;
    font-weight: 650;
}

.guardado:not(:empty)::before {
    content: '';
    flex: none;
    width: 9px;
    height: 5px;
    margin: 0 2px 3px;
    border-inline-start: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.guardado.dicho {
    animation: llega-papel 0.3s ease-out both;
}
/* The thanks, when the last one is answered: the same words as the head of the page, the name by hand */
.despedida {
    display: grid;
    gap: 12px;
    padding-top: 26px;
    border-top: 1.5px dashed var(--eg-linea);
}

.despedida[hidden] {
    display: none;
}

.despedida .gracias {
    font-size: var(--eg-fluido-16);
    font-weight: 780;
    letter-spacing: -0.03em;
    line-height: 1;
}

.despedida .gracias .mano-titular {
    margin-top: 0.08em;
    color: var(--eg-tinta);
}

.despedida .cambiar {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
}

.despedida.llega {
    animation: llega-papel 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hecho-encuesta {
    margin: 0;
    font-weight: 700;
}

.al-tocar .guardar-encuesta {
    display: none;
}
/* «Your first day»: the story of a child who starts, as a card on the wall: its cover, the label with their name, what
   it is and that it opens (Jujol) */
.cuento-tarjeta {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 12px 18px 12px 12px;
    border-radius: var(--radio);
    border: 1.5px solid transparent;
    background: var(--eg-superficie);
    color: var(--eg-tinta);
    box-shadow: 0 1px 2px var(--eg-sombra), 0 14px 28px -16px var(--eg-sombra);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cuento-portada {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    background: var(--eg-hundido);
}

.etiqueta-cuento {
    width: 84%;
    height: auto;
    overflow: visible;
    transform: rotate(-4deg);
    filter: drop-shadow(0 1px 1px var(--eg-sombra)) drop-shadow(0 6px 8px var(--eg-sombra));
}

.etiqueta-cuento .banda {
    fill: var(--c-acento-vivo);
}

.etiqueta-cuento .papel {
    fill: #fff;
}

.etiqueta-cuento .renglon {
    fill: #8c8178;
}

.etiqueta-cuento .pico {
    fill: #dccdbb;
}

.etiqueta-cuento text {
    fill: #2b2226;
    font-family: 'Eg Mano', 'Segoe Print', 'Bradley Hand', cursive;
    font-weight: 650;
}

.cuento-que {
    display: grid;
    gap: 2px;
}

.cuento-etiqueta {
    color: var(--c-acento-texto);
    font-family: 'Eg Mano', 'Segoe Print', 'Bradley Hand', cursive;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.05;
}

.cuento-que b {
    font-size: 1.25rem;
    font-weight: 780;
    letter-spacing: -0.02em;
}

.cuento-que > span:nth-child(3) {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
}

.cuento-abrir {
    margin-top: 6px;
    color: var(--c-acento-texto);
    font-size: 0.9375rem;
    font-weight: 700;
}

.cuento-abrir::after {
    content: ' →';
}

[dir="rtl"] .cuento-abrir::after {
    content: ' ←';
}

/* The birthday of a child, in its days: the words of its card and the piece of its age (the video or the card, made
   when asked; the seal of the older ones beside the words). */
.cumple-tarjeta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: var(--radio);
    background: var(--eg-superficie);
    color: var(--eg-tinta);
    box-shadow: 0 1px 2px var(--eg-sombra), 0 14px 28px -16px var(--eg-sombra);
}

.cumple-tarjeta:has(.cumple-sello:not([hidden])) {
    grid-template-columns: 96px minmax(0, 1fr);
}

.cumple-sello {
    display: block;
    width: 96px;
    height: auto;
    border-radius: 8px;
}

.cumple-tarjeta .boton {
    justify-self: start;
    margin-top: 10px;
}

.cuento-tarjeta:focus-visible {
    border-color: var(--c-acento-texto);
    outline: 3px solid var(--c-acento-texto);
    outline-offset: 3px;
    box-shadow: 0 1px 2px var(--eg-sombra), 0 20px 34px -16px var(--eg-sombra);
}

@media (hover: hover) {
    .cuento-tarjeta:hover {
        border-color: var(--c-acento-texto);
        box-shadow: 0 1px 2px var(--eg-sombra), 0 20px 34px -16px var(--eg-sombra);
    }

    .cuento-tarjeta:hover .cuento-abrir {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cuento-tarjeta {
        transition: none;
    }
}

/* In their free time (Jujol): a light part of «What you told us». Each adult folded, with what they said on their line;
   open, the chips of paper, which read as choosing and not as filling a form. Kept when touched. */
.aficiones .muted {
    margin: 0 0 10px;
}

.hoja-aficiones {
    display: grid;
    gap: 8px;
}

.aficiones-adulto {
    border-bottom: 1px dashed var(--eg-linea);
}

.aficiones-adulto summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    padding: 8px 0 10px;
    cursor: pointer;
    list-style: none;
}

.aficiones-adulto summary::-webkit-details-marker {
    display: none;
}

.aficiones-adulto .quien {
    font-family: 'Eg Mano', 'Segoe Print', 'Bradley Hand', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.aficiones-adulto .lo-dicho {
    flex: 1 1 10em;
    min-width: 0;
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
}

.aficiones-adulto .lo-dicho.por-contar,
.aficiones-adulto .cambiar {
    color: var(--c-acento-texto);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.aficiones-adulto .cambiar {
    margin-inline-start: auto;
    padding-inline-end: 4px;
}

.aficiones-adulto .cambiar[hidden] {
    display: none;
}

.aficiones-adulto[open] .cambiar {
    visibility: hidden;
}

.aficiones-adulto summary:focus-visible {
    outline: 3px solid var(--c-acento-texto);
    outline-offset: 3px;
    border-radius: 6px;
}

.aficiones-adulto fieldset {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 2px 0 14px;
    border: 0;
}

.fichas-papel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* The chip is its word: the box stays in the page for the keyboard and the screen readers, out of sight */
.ficha-papel {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.ficha-papel input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ficha-papel .palabra {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1.5px solid var(--eg-borde);
    background: var(--eg-superficie);
    font-size: 0.9375rem;
    font-weight: 600;
}

.ficha-papel input:checked + .palabra {
    border-color: var(--c-acento-texto);
    background: var(--c-acento-suave);
}

.ficha-papel input:checked + .palabra::before {
    content: '✓';
    color: var(--c-acento-texto);
    font-weight: 800;
}

.ficha-papel input:focus-visible + .palabra {
    outline: 3px solid var(--c-acento-texto);
    outline-offset: 2px;
}

.otra-aficion {
    display: grid;
    gap: 6px;
}

.otra-aficion label {
    color: var(--eg-tinta-2);
    font-size: 0.875rem;
    font-weight: 650;
}

.otra-aficion input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--radio-campo);
    border: 1.5px solid var(--eg-borde);
    background: var(--eg-superficie);
    color: var(--eg-tinta);
    font-size: 1rem;
}

.guardar-aficiones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-top: 6px;
}

.al-tocar .guardar-aficiones {
    display: none;
}

@media (forced-colors: active) {
    .ficha-papel input:checked + .palabra {
        border-width: 3px;
    }
}


@media (min-width: 720px) {
    .hoja-pregunta,
    .hoja-encuesta {
        padding: 30px 32px 32px;
    }

    .hoja-encuesta {
        padding-top: 36px;
    }

    .sello-etiqueta {
        width: 104px;
    }

    .hoja-encuesta .sellos-etiqueta {
        top: -34px;
        inset-inline-end: 22px;
    }

    .hoja-encuesta .pregunta-titulo {
        padding-inline-end: 96px;
    }
}

@media (min-width: 960px) {
    .banda.banda-encuesta {
        align-items: start;
    }

    .banda-encuesta .cabeza-encuesta {
        position: sticky;
        top: 32px;
        padding-top: 8px;
    }

    .cabeza-encuesta .siguiente {
        font-size: 1.3125rem;
    }

    .hoja-encuesta .sellos-etiqueta {
        display: none;
    }

    .hoja-encuesta .pregunta-titulo,
    .hoja-encuesta .pregunta-abierta > .ayuda-campo {
        padding-inline-end: 0;
    }

    .hoja-encuesta .pregunta-abierta > .ya-pasado {
        margin-inline-end: 0;
    }

    .cabeza-encuesta .sellos-etiqueta {
        display: flex;
        margin-top: 40px;
        padding-inline-start: 14px;
    }

    .cabeza-encuesta .sello-etiqueta {
        width: 230px;
        filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
    }

    .cabeza-encuesta .sellos-etiqueta.n2 .sello-etiqueta {
        width: 180px;
    }

    .cabeza-encuesta .sellos-etiqueta.n3 .sello-etiqueta,
    .cabeza-encuesta .sellos-etiqueta.n4 .sello-etiqueta {
        width: 130px;
    }

    .cabeza-encuesta .sello-etiqueta + .sello-etiqueta {
        margin-inline-start: -36px;
    }

    .cabeza-encuesta .sello-etiqueta .halo {
        fill: var(--eg-chapita);
        stroke: var(--eg-chapita);
        stroke-width: 5;
        transform: none;
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .perchas.pegada.pegando .colgante .pegatina .pico,
    .perchas.pegada.pegando .colgante .pegado,
    .ya-pasado.llega,
    .nota-que-sale,
    .sellos-etiqueta.estampa .sello-etiqueta,
    .guardado.dicho,
    .despedida.llega {
        animation: none;
    }

    .nota-que-sale {
        display: none;
    }

    .fichas.escala .ficha .marca {
        transition: none;
    }
}

@media (forced-colors: active) {
    .fichas.escala .ficha input:checked ~ .palabra {
        text-decoration: underline;
        text-decoration-thickness: 3px;
    }

    .hoja-pregunta,
    .hoja-encuesta {
        border: 1px solid;
    }
}

/* A name in Arabic script, or mixed, finds its own direction on the label. */
.colgante text.mano {
    unicode-bidi: plaintext;
}

/* The drawing of each child: small in «Who would come», big when touched; and the page where the family sends it, a
   photo of the sheet put straight in the browser by its four corners. A detail, not a chore. */
.nino-fila dd {
    overflow-wrap: anywhere;
}

.dibujo-nino {
    display: block;
    width: 96px;
    margin-block: 10px 0;
    cursor: zoom-in;
}

.dibujo-nino img,
.dibujo-nino canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px var(--eg-sombra);
    transform: rotate(-1.5deg);
}

.mandar-dibujo {
    display: inline-block;
    margin-block-start: 6px;
}

/* What they call each child at home: a quiet link under the child, which opens to change it, with or without
   JavaScript. */
.en-casa {
    margin-block-start: 6px;
}

.en-casa > summary {
    display: inline-flex;
    color: var(--c-acento-texto);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    cursor: pointer;
    list-style: none;
}

.en-casa > summary::-webkit-details-marker {
    display: none;
}

.hoja-casa {
    display: grid;
    justify-items: start;
    gap: 12px;
    margin-block: 10px 4px;
}

.hoja-casa .campo {
    width: 100%;
}

.casa-guardado {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
}

.pagina-dibujo .volver {
    margin: 0 0 10px;
}

.dibujo-familia {
    display: grid;
    gap: 22px;
}

.dibujo-familia .dibujo-actual {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin: 0;
}

.dibujo-familia .dibujo-actual img {
    display: block;
    max-width: 100%;
    max-height: 340px;
    height: auto;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 20px var(--eg-sombra);
}

.dibujo-familia .aviso-error {
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--radio-campo);
    background: var(--eg-error-suave);
    color: var(--eg-error);
    font-weight: 650;
}

.dibujo-tomar {
    display: grid;
    gap: 16px;
}

.dibujo-tomar .segmentos[hidden],
.dibujo-tomar .boton[hidden],
.dibujo-tomar .dibujo-recorte[hidden] {
    display: none;
}

.foto-dibujo {
    display: grid;
    justify-items: start;
    gap: 6px;
    cursor: pointer;
}

/* Without JavaScript, the plain field: it says which photo goes. With the cutter, the button alone. */
.dibujo-tomar:not(.con-recorte) .foto-dibujo .boton {
    display: none;
}

.con-recorte .foto-dibujo input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.foto-dibujo:focus-within .boton {
    outline: 3px solid var(--c-acento-texto);
    outline-offset: 2px;
}

.dibujo-lienzo {
    position: relative;
    width: max-content;
    max-width: 100%;
    touch-action: none;
}

.dibujo-lienzo canvas {
    display: block;
    border-radius: 6px;
}

.dibujo-esquinas {
    position: absolute;
    inset: 0;
}

.dibujo-esquinas .hoja {
    fill: rgba(255, 255, 255, 0.12);
    stroke: var(--c-acento-vivo);
    stroke-width: 2.5;
}

.dibujo-esquinas .esquina {
    fill: #fff;
    stroke: var(--c-acento-vivo);
    stroke-width: 3;
    cursor: grab;
}

.dibujo-esquinas .esquina.primera {
    fill: var(--c-acento-vivo);
}

.dibujo-tomar .segmentos {
    display: inline-flex;
    border: 1.5px solid var(--eg-borde);
    border-radius: 999px;
    overflow: hidden;
}

.dibujo-tomar .segmentos button {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: var(--eg-tinta);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.dibujo-tomar .segmentos button[aria-pressed="true"] {
    background: var(--c-acento-suave);
}

.estado-dibujo {
    min-height: 1.4em;
    margin: 0;
    color: var(--eg-tinta-2);
}

/* The drawing big, over the page: touching it or Escape closes it. */
.visor-dibujo {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(20, 14, 12, 0.82);
    cursor: zoom-out;
}

.visor-dibujo img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 96px);
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

/* The miniature big: an SVG has no size of its own, so its box has one (a miniature is 16:10). On a phone: as tall as
   the screen, sliding sideways, opened at the pin (Jujol). */
.visor-pista {
    display: none;
}

.visor-miniatura .visor-caja {
    width: calc(100vw - 48px);
    max-width: calc((100vh - 96px) * 1.6);
}

.visor-miniatura .visor-caja img {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 96px);
}

@media (max-width: 640px) {
    .visor-miniatura {
        padding: 72px 0 24px;
        place-items: center stretch;
        background: rgba(20, 14, 12, 0.95);
        cursor: default;
    }

    .visor-miniatura .visor-caja {
        width: auto;
        max-width: 100vw;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    .visor-miniatura .visor-caja img {
        width: auto;
        height: 80vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .visor-miniatura .visor-pista {
        display: block;
        position: absolute;
        top: 26px;
        inset-inline-start: 16px;
        color: #fff;
        font-size: 0.875rem;
        opacity: 0.85;
    }
}

.visor-dibujo button {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #2b2226;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

/* Once enrolled, the last moment of the page: who carries them from now on (a person with their face, or a place on
   the colour of the centre), how the centre writes to them, the offer as a sentence with a yes, and the thanks of
   whoever received them, signed. The page stays still. */
.quien-lleva {
    display: grid;
    gap: 8px;
    margin: 0;
}

.etiqueta-lleva {
    margin: 0;
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
    font-weight: 650;
}

.persona-lleva {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.persona-lleva .retrato {
    width: 56px;
    height: 56px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
    background: var(--c-acento-suave);
    color: var(--c-acento-texto);
    font-weight: 780;
}

.persona-lleva > span {
    display: grid;
}

.persona-lleva b {
    font-size: 1.1875rem;
    font-weight: 720;
    line-height: 1.2;
}

.persona-lleva .papel {
    color: var(--eg-tinta-2);
}

.placa-sitio {
    justify-self: start;
    margin: 0;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--c-acento);
    color: var(--c-sobre-acento);
    font-size: 1.125rem;
    font-weight: 720;
    line-height: 1.3;
}

.por-donde {
    margin: 0;
    line-height: 1.5;
}

.ofrecimiento {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0;
    padding: 12px 14px 12px 16px;
    border-radius: 14px;
    background: var(--eg-superficie);
    box-shadow: 0 1px 2px var(--eg-sombra);
}

.ofrecimiento p {
    flex: 1 1 260px;
    margin: 0;
    font-weight: 650;
    line-height: 1.4;
}

.ofrecimiento.hecho {
    flex-wrap: nowrap;
    background: var(--c-acento-suave);
    box-shadow: none;
    font-weight: 650;
}

.gracias-firmadas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 6px 0 0;
}

.texto-gracias {
    font-family: 'Eg Mano', 'Segoe Print', 'Bradley Hand', cursive;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
}

.gracias-firmadas .firma {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--eg-tinta-2);
    font-weight: 650;
}

.gracias-firmadas .firma img,
.gracias-firmadas .firma .ini {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
    background: var(--c-acento-suave);
    color: var(--c-acento-texto);
    font-size: 0.8125rem;
    font-weight: 780;
}

/* The brothers and sisters who would come later: told when signing up, offered once enrolled and, when their turn
   comes, a place kept with one touch, on the wall of the colour of the centre. */
.hermanos-luego {
    display: grid;
    gap: 10px;
}

.hermanos-luego .ayuda-campo {
    margin: 0;
}

/* A question among the others, not a heading. */
.hermanos-luego legend {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.le-toca {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--c-acento);
    color: var(--c-sobre-acento);
}

.le-toca p {
    flex: 1 1 260px;
    margin: 0;
    line-height: 1.45;
}

.le-toca b {
    display: block;
    font-size: 1.1875rem;
}

.le-toca .boton.principal {
    background: var(--c-sobre-acento);
    color: var(--c-acento);
}

/* Re-enrolment, on the page of the family: for each child, what hangs for them (the same drawing as on their wall) on
   the peg of next year. Going on, it hangs straight; not knowing yet, it hangs crooked; not going on, the peg stays empty
   and the thing rests below it; with no answer yet, it waits beside the peg, faint. The three answers are one switch;
   the reasons and a few words, only when they are wanted. */
.rematricula {
    display: grid;
    gap: 6px;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--eg-superficie);
    box-shadow: 0 1px 0 var(--eg-linea), 0 18px 32px -24px rgba(58, 42, 30, 0.55);
}

.rematricula-titulo {
    margin: 0;
    font-size: 1.5rem;
}

.rematricula-entrada {
    margin: 0 0 6px;
    color: var(--eg-tinta-2);
}

.rematricula-nino {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: start;
    gap: 6px 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--eg-linea);
}

.rematricula-texto {
    display: grid;
    gap: 10px;
}

.rematricula-pregunta {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

/* The peg of next year: a piece of rail, its knob, what hangs, and the course written under it. */
.rematricula-percha {
    position: relative;
    height: 186px;
}

.rematricula-riel {
    position: absolute;
    top: 34px;
    left: 0;
    right: 0;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(var(--eg-madera-luz), var(--eg-madera) 40%, var(--eg-madera-sombra));
    box-shadow: 0 4px 6px -3px rgba(0, 0, 0, 0.4);
}

.rematricula-gancho {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, var(--eg-madera-luz), var(--eg-madera) 55%, var(--eg-madera-sombra));
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}

.rematricula-colgante {
    position: absolute;
    top: 40px;
    left: 50%;
    width: 84px;
    margin-left: -42px;
    transform-origin: 50% 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.rematricula-colgante svg {
    display: block;
    width: 100%;
    height: auto;
}

.rematricula-curso {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: var(--eg-tinta-2);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.rematricula-unsure .rematricula-colgante {
    transform: rotate(14deg);
}

.rematricula-leave .rematricula-colgante {
    transform: translateY(46px) rotate(-12deg);
    opacity: 0.55;
}

.rematricula-none .rematricula-colgante {
    transform: translateX(34px) translateY(30px);
    opacity: 0.35;
}

/* The three answers: one switch, the one given in the colour of the centre. */
.rematricula-botones {
    display: inline-flex;
    flex-wrap: wrap;
    justify-self: start;
    gap: 3px;
    padding: 4px;
    border-radius: 26px;
    background: var(--eg-hundido);
}

.rematricula .eleccion {
    min-height: 44px;
    padding: 6px 18px;
    border: 0;
    border-radius: 22px;
    background: transparent;
    color: var(--eg-tinta);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.rematricula .eleccion[aria-pressed="true"] {
    background: var(--c-acento);
    color: var(--c-sobre-acento);
}

.rematricula-hecho {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 650;
}

.rematricula-porque {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.rematricula-etiqueta {
    flex-basis: 100%;
    margin: 0;
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
}

.rematricula .ficha-boton {
    min-height: 36px;
    padding: 4px 14px;
    border: 1.5px solid var(--eg-linea);
    border-radius: 18px;
    background: var(--eg-superficie);
    color: var(--eg-tinta);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
}

.rematricula .ficha-boton[aria-pressed="true"] {
    border-color: var(--c-acento);
    box-shadow: inset 0 0 0 1px var(--c-acento);
    font-weight: 700;
}

.rematricula-mas > summary {
    color: var(--c-acento-texto);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    list-style: none;
}

.rematricula-mas > summary::-webkit-details-marker {
    display: none;
}

.rematricula-mas[open] > summary {
    margin-bottom: 8px;
}

.rematricula-nota textarea {
    min-height: 80px;
}

@media (max-width: 719px) {
    .rematricula {
        padding: 18px 16px;
    }

    .rematricula-nino {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 6px 14px;
    }

    .rematricula-percha {
        height: 160px;
    }

    .rematricula-colgante {
        width: 64px;
        margin-left: -32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rematricula-colgante {
        transition: none;
    }
}

/* Arabic joins its letters: no spacing between them anywhere, or the words break apart. */
html[lang="ar"] body * {
    /* stylelint-disable-next-line declaration-no-important */
    letter-spacing: 0 !important;
}

/* Long Arabic text, with more room between its lines (Gaudí). */
:lang(ar) p,
:lang(ar) li {
    line-height: 1.75;
}

/* A note of the centre in another script, in a column written from right to left: its own order, the column's edge. */
[dir="rtl"] p[dir="auto"],
[dir="rtl"] .lugar-acto {
    text-align: right;
}

.lugar-acto {
    display: inline-block;
}

/* ---------- What a family shares: the drawing sent to someone. Stuck on the wall of the centre with two strips of paper
   tape and the label of its name on its corner, as its preview shows it; under it, the gift of the centre and sending it
   on; then the invitation, as the band of a visit. Nothing moves but the drawing, which draws itself once. ---------- */
.compartido-dibujo {
    display: grid;
    justify-items: center;
    gap: 30px;
    padding: 32px var(--g) 64px;
    text-align: center;
}

.compartido-cabeza {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.compartido-cabeza .antetitulo {
    margin: 0;
}

.compartido-dibujo .mano-titular {
    margin: 0;
    /* stylelint-disable-next-line csstree/validator */
    font-size: clamp(3rem, 13vw, 5.6rem);
    color: var(--eg-tinta);
}

.dibujo-pegado {
    position: relative;
    width: 100%;
    max-width: 880px;
    margin: 6px 0 18px;
    transform: rotate(-1.2deg);
}

.dibujo-grande {
    display: block;
    background: #f4efe6;
    box-shadow: 0 1px 2px rgba(58, 42, 30, 0.16), 0 22px 40px -18px rgba(58, 42, 30, 0.42);
}

.dibujo-grande img,
.dibujo-grande canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* The two strips of tape on the corners at the top: cream, half seen through, the ends torn. */
.dibujo-pegado::before,
.dibujo-pegado::after {
    content: '';
    position: absolute;
    top: -12px;
    z-index: 1;
    /* stylelint-disable csstree/validator */
    width: clamp(72px, 13%, 116px);
    height: clamp(22px, 3.6%, 32px);
    /* stylelint-enable csstree/validator */
    background: rgba(232, 217, 180, 0.84);
    box-shadow: inset 0 0 0 1px rgba(201, 180, 138, 0.5);
    /* stylelint-disable max-line-length */
    -webkit-clip-path: polygon(0 0, 100% 0, 97% 20%, 100% 40%, 97% 60%, 100% 80%, 97% 100%, 0 100%, 3% 80%, 0 60%, 3% 40%, 0 20%);
    /* stylelint-enable max-line-length */
    clip-path: polygon(0 0, 100% 0, 97% 20%, 100% 40%, 97% 60%, 100% 80%, 97% 100%, 0 100%, 3% 80%, 0 60%, 3% 40%, 0 20%);
    pointer-events: none;
}

.dibujo-pegado::before {
    left: -3%;
    transform: rotate(-38deg);
}

.dibujo-pegado::after {
    right: -3%;
    transform: rotate(38deg);
}

/* The label of the name, stuck on the corner below, as on the preview. */
.etiqueta-cuento.etiqueta-dibujo {
    position: absolute;
    right: -3%;
    bottom: -7%;
    z-index: 1;
    /* stylelint-disable-next-line csstree/validator */
    width: clamp(116px, 24%, 210px);
    transform: rotate(-5deg);
}

.compartido-pie {
    display: grid;
    justify-items: center;
    gap: 18px;
}

/* The gift of the centre, signed between two short lines. */
.regalo-firma {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: var(--c-acento-texto);
}

.regalo-firma::before,
.regalo-firma::after {
    content: '';
    flex: none;
    width: 28px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.5;
}

.compartir-fila {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    margin: 0;
}

.compartir-aviso {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
}

.compartir-aviso:empty {
    display: none;
}

@media (min-width: 600px) {
    .regalo-firma {
        gap: 14px;
        font-size: 1.0625rem;
    }
}

/* The invitation to whoever received it, when the centre has it on: one quiet line, the size of the gift, with its link
   small. Whoever opens a drawing is mostly family, out of love: the drawing of a child carries no advert. */
.invitacion-compartido {
    margin: 6px 0 0;
    font-size: 1rem;
    color: var(--eg-tinta-2);
}

.invitacion-compartido b {
    font-weight: 650;
    color: var(--eg-tinta);
}

.invitacion-compartido a {
    font-weight: 650;
    white-space: nowrap;
}

/* ---------- The invitation of an ambassador family: a card from them, on the wall of the centre, a little crooked and
   stuck with two strips of tape, like the drawing they send. The band of the centre across its top with its emblem,
   who invites by hand and what to. The same card is the heading of the invitation (big) and, on the page of the family
   that sends it, how it will be seen. The paper stays light at night, like the labels. ---------- */
.invitacion-tarjeta {
    position: relative;
    display: grid;
    gap: 4px;
    margin: 12px 4px 6px;
    padding: 40px 24px 22px;
    border-radius: 8px;
    background: linear-gradient(var(--c-acento-vivo), var(--c-acento-vivo)) top / 100% 16px no-repeat, var(--eg-chapita);
    color: var(--eg-chapita-tinta);
    box-shadow: 0 1px 2px rgba(58, 42, 30, 0.16), 0 20px 36px -20px rgba(58, 42, 30, 0.5);
    transform: rotate(-1deg);
}

[dir="rtl"] .invitacion-tarjeta {
    transform: rotate(1deg);
}

/* The two strips of tape, as on the drawing that is sent. */
.invitacion-tarjeta::before,
.invitacion-tarjeta::after {
    content: '';
    position: absolute;
    top: -10px;
    z-index: 1;
    width: 72px;
    height: 22px;
    background: rgba(232, 217, 180, 0.84);
    box-shadow: inset 0 0 0 1px rgba(201, 180, 138, 0.5);
    /* stylelint-disable max-line-length */
    -webkit-clip-path: polygon(0 0, 100% 0, 97% 20%, 100% 40%, 97% 60%, 100% 80%, 97% 100%, 0 100%, 3% 80%, 0 60%, 3% 40%, 0 20%);
    /* stylelint-enable max-line-length */
    clip-path: polygon(0 0, 100% 0, 97% 20%, 100% 40%, 97% 60%, 100% 80%, 97% 100%, 0 100%, 3% 80%, 0 60%, 3% 40%, 0 20%);
    pointer-events: none;
}

.invitacion-tarjeta::before {
    left: -18px;
    transform: rotate(-36deg);
}

.invitacion-tarjeta::after {
    right: -18px;
    transform: rotate(36deg);
}

/* The emblem of the centre, on its band, as a round seal. */
.invitacion-sello {
    position: absolute;
    top: -4px;
    /* Clear of the tape on the corner. */
    inset-inline-end: 64px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--c-acento-vivo);
    background: #fff;
    color: var(--c-acento-texto);
    font-weight: 780;
    font-size: 1rem;
    letter-spacing: 0.02em;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(58, 42, 30, 0.2);
}

.invitacion-sello img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.invitacion-de {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.3;
    color: #5f5459;
}

/* Who invites, by hand: the only hand on the card, as on the page of the family. */
.invitacion-firma {
    display: block;
    font-family: 'Eg Mano', 'Segoe Print', 'Bradley Hand', cursive;
    font-weight: 600;
    font-size: 2.125rem;
    line-height: 1.05;
    color: var(--eg-chapita-tinta);
}

.invitacion-titulo {
    margin: 8px 0 0;
    font-size: 1.375rem;
    font-weight: 780;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--eg-chapita-tinta);
}

.invitacion-tarjeta.grande {
    margin: 18px 8px 4px;
    padding: 56px 34px 32px;
    background-size: 100% 20px, auto;
    transform: rotate(-1.4deg);
}

[dir="rtl"] .invitacion-tarjeta.grande {
    transform: rotate(1.4deg);
}

.invitacion-tarjeta.grande::before,
.invitacion-tarjeta.grande::after {
    width: 104px;
    height: 30px;
    top: -14px;
}

.invitacion-tarjeta.grande .invitacion-sello {
    width: 68px;
    height: 68px;
    inset-inline-end: 96px;
    font-size: 1.25rem;
}

.invitacion-tarjeta.grande .invitacion-de {
    font-size: 1.25rem;
}

.invitacion-tarjeta.grande .invitacion-firma {
    /* stylelint-disable-next-line csstree/validator */
    font-size: clamp(2.6rem, 7vw, 3.6rem);
}

.invitacion-tarjeta.grande .invitacion-titulo {
    margin-top: 12px;
    /* stylelint-disable-next-line csstree/validator */
    font-size: clamp(1.75rem, 4.2vw, 2.6rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

/* The page of the invitation: the card and the welcome of the centre; beside it, or under it on a phone, the next acts
   as visits to come, and asking for information in one quiet line. */
.compartido-invitacion {
    display: grid;
    gap: 34px;
    padding: 36px var(--g) 64px;
}

.invitacion-cabeza,
.invitacion-cuerpo {
    display: grid;
    gap: 22px;
    align-content: start;
}

.invitacion-bienvenida {
    margin: 0 8px;
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--eg-tinta-2);
}

@media (min-width: 900px) {
    .compartido-invitacion {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        align-items: start;
        gap: 64px;
        padding-top: 64px;
    }

    .invitacion-cuerpo {
        padding-top: 18px;
    }

    /* Without acts, asking for information stands at the height of the card, so the page reads as one piece (Gaudí,
       11 November 2026). */
    .compartido-invitacion.sin-actos {
        align-items: center;
    }

    .sin-actos .invitacion-cuerpo {
        padding-top: 0;
    }
}

.invitacion-actos {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Each act as a visit to come: its day in the colour of the centre, as on the band of the visit (the weekday in small
   capitals, the date in big), then what and when, and the button. */
.invitacion-acto {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px 18px;
    padding: 14px;
    border-radius: 16px;
    background: var(--eg-superficie);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 24px -18px rgba(58, 42, 30, 0.45);
}

/* On a phone, the day goes across the top of the visit, as a strip, and the button under it, wide. */
.invitacion-acto > * {
    grid-column: 1 / -1;
}

/* The day is the stub of the visit, in Eguahe's paper and aubergine: the centre's colour stays for what is the centre's
   (its band, its seal, its buttons), so a red, blue or mustard school does not fill the list with its colour. */
.invitacion-acto-fecha {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--eg-hundido);
    color: var(--eg-tinta-2);
    box-shadow: inset 0 -2px 0 0 var(--eg-linea);
}

@media (min-width: 560px) {
    .invitacion-acto {
        grid-template-columns: 10.5rem minmax(0, 1fr) auto;
    }

    .invitacion-acto > * {
        grid-column: auto;
    }

    .invitacion-acto-fecha {
        display: grid;
        align-content: center;
        align-self: stretch;
        min-height: 72px;
        margin: -14px 0 -14px -14px;
        border-radius: 16px 0 0 16px;
        box-shadow: none;
        border-inline-end: 2px dashed var(--eg-linea);
    }

    [dir="rtl"] .invitacion-acto-fecha {
        margin: -14px -14px -14px 0;
        border-radius: 0 16px 16px 0;
    }
}

.invitacion-acto-fecha span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.invitacion-acto-fecha b {
    color: var(--eg-maqueta);
    font-size: 1.25rem;
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.invitacion-acto-que {
    display: grid;
    gap: 4px;
}

.invitacion-acto-que b {
    font-size: 1.125rem;
    font-weight: 720;
    line-height: 1.25;
}

.invitacion-acto-que > span {
    color: var(--eg-tinta-2);
}

.invitacion-pedir {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0;
    color: var(--eg-tinta-2);
}

.sin-actos .invitacion-pedir {
    padding: 22px;
    border-radius: 16px;
    background: var(--eg-superficie);
    color: var(--eg-tinta);
    font-size: 1.125rem;
}

/* ---------- An ambassador family, on its own page: what their invitation brought, as a small backpack on the rail for
   each family that came; the invitation as the card the others will see; sending it, as the main button; the link to
   copy, quiet; and how they sign it, folded once they signed. ---------- */
.embajadora {
    display: grid;
    gap: 14px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--eg-linea);
}

.embajadora h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.embajadora > p {
    margin: 0;
}

.embajadora-pasar,
.embajadora-acciones {
    display: grid;
    gap: 14px;
    align-items: center;
}

/* With room, the card and how to send it side by side: the card at the size of a card. */
@media (min-width: 1100px) {
    .embajadora-pasar {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        gap: 28px;
    }
}

.embajadora .compartir-fila {
    justify-content: flex-start;
    margin: 0;
}

.embajadora-enlace label {
    font-size: 0.875rem;
    color: var(--eg-tinta-2);
}

.embajadora-enlace input {
    min-height: 42px;
    font-size: 0.875rem;
    color: var(--eg-tinta-2);
    background: var(--eg-hundido);
}

.embajadora-llegaron {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 16px;
    padding: 14px 18px 14px 14px;
    border-radius: 16px;
    background: var(--eg-superficie);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.embajadora-llegaron p {
    flex: 1 1 14rem;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 650;
    line-height: 1.4;
}

/* The rail: a strip of the wood of the wall, with a backpack hanging from it for each family that came. */
.embajadora-riel {
    display: flex;
    gap: 4px;
    padding: 0 6px;
    border-top: 5px solid var(--eg-madera);
    border-radius: 3px;
}

.embajadora-percha {
    display: block;
    width: 36px;
}

.embajadora-percha .colgante {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.embajadora-firma summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-weight: 650;
    color: var(--c-acento-texto);
    cursor: pointer;
    list-style: none;
}

.embajadora-firma summary::-webkit-details-marker {
    display: none;
}

.embajadora-firma summary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.embajadora-firma[open] summary svg {
    transform: rotate(180deg);
}

.embajadora-firma .hoja-casa {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 12px;
}

.embajadora-firma .campo {
    flex: 1 1 16rem;
}

/* Passing a piece on from the page of the family: a button that reads as the links beside it («Cambiar su dibujo»,
   «Cómo llegar»), with the arrow that sends; what it says when the link is copied, beside it. */
.pasar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 12px;
}

.mandar-dibujo + .compartir-aviso,
.pasar .compartir-aviso {
    font-size: 0.9375rem;
}

button.enlace {
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-acento-texto);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

button.enlace span {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.banda button.enlace,
.banda .compartir-aviso {
    color: var(--c-sobre-acento);
}

/* Under the drawing, on the line of «Cambiar su dibujo» when there is room. */
.nino-fila .pasar {
    margin-inline-start: 18px;
    vertical-align: baseline;
}

.nino-fila button.mandar-dibujo {
    min-height: 0;
}

/* The seal of Eguahe under a piece shared: its mark and its name, always this size, in this place. */
.firma.sello a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--eg-tinta-2);
}

.firma.sello a span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* The backpack alone, without its tile, a little bigger than the text beside it: its shape reads at a glance and the
   line stays quiet (Enrique, 11 November 2026: «tan chiquitín que ni se sabe qué es»). The outline of the label is the
   paper under it. */
.sello-marca {
    width: 28px;
    height: 28px;
    flex: none;
}

.sello-marca .sm-borde {
    fill: var(--eg-papel);
    stroke: var(--eg-papel);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .sello-marca .sm-mochila {
        fill: #8a7489;
    }

    :root:not([data-theme="light"]) .sello-marca .sm-etiqueta {
        fill: #f0947b;
    }

    :root:not([data-theme="light"]) .sello-marca .sm-papel {
        fill: #f5ece3;
    }

    :root:not([data-theme="light"]) .sello-marca .sm-pico {
        fill: #cdb8a2;
    }
}

:root[data-theme="dark"] .sello-marca .sm-mochila {
    fill: #8a7489;
}

:root[data-theme="dark"] .sello-marca .sm-etiqueta {
    fill: #f0947b;
}

:root[data-theme="dark"] .sello-marca .sm-papel {
    fill: #f5ece3;
}

:root[data-theme="dark"] .sello-marca .sm-pico {
    fill: #cdb8a2;
}

/* The sheet of the video of a drawing (pub/dibujo-video.js): its title, the video as it will arrive (upright, in the
   shape of a phone), and under it sending it and keeping it; closing, quietly, last. While it is made, the same shape
   waits with a thin line that fills. In the colours of the page, light or dark; the video keeps those of the day. */
.hoja-video {
    /* stylelint-disable-next-line csstree/validator */
    width: min(92vw, 400px);
    padding: 18px 18px 12px;
    border: 0;
    border-radius: 22px;
    background: var(--eg-papel, #fff);
    color: var(--eg-tinta, #1a1614);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
}

.hoja-video::backdrop {
    background: rgba(20, 16, 14, 0.6);
}

.hoja-video-titulo {
    margin: 0 0 12px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-align: center;
}

.hoja-video-vista {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    /* stylelint-disable-next-line csstree/validator */
    height: min(60vh, 560px);
    max-width: 100%;
    aspect-ratio: 9 / 16;
    margin: 0 auto 16px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--c-pared, var(--eg-hundido, #f3ece3));
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 36px -22px rgba(0, 0, 0, 0.55);
}

.hoja-video-vista video,
.hoja-video-vista img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hoja-video-estado {
    margin: 0;
    padding: 0 16px;
    color: var(--eg-tinta-2, #5f5459);
    font-size: 0.9375rem;
    text-align: center;
}

.hoja-video-vista progress {
    width: 60%;
    height: 6px;
    border: 0;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(var(--eg-tinta-rgb, 43, 34, 38), 0.12);
    color: var(--c-acento-vivo, #2f5d62);
    -webkit-appearance: none;
    appearance: none;
}

.hoja-video-vista progress::-webkit-progress-bar {
    background: transparent;
}

.hoja-video-vista progress::-webkit-progress-value {
    border-radius: 3px;
    background: var(--c-acento-vivo, #2f5d62);
}

.hoja-video-vista progress::-moz-progress-bar {
    border-radius: 3px;
    background: var(--c-acento-vivo, #2f5d62);
}

.hoja-video-acciones {
    display: grid;
    gap: 8px;
    margin: 0;
}

.hoja-video-acciones .boton {
    width: 100%;
}

.hoja-video > .enlace {
    display: block;
    min-height: 44px;
    margin: 6px auto 0;
}

/* ---------- A family that was already known signs up again (public_known) ----------
   The wall of their page, with the things of the children they just wrote hanging from the rail; under it, the visit as
   the stub of the invitation and, with small faces, who receives them. */
.conocidos-correo p {
    margin: 0;
}

.conocidos-cuerpo {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.conocidos-reciben h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--eg-tinta-2);
}

.conocidos-caras {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.conocidos-caras .persona-lleva {
    margin: 0;
}

/* Not coming after all: a quiet link beside the others of the visit. */
.banda .no-podemos {
    display: inline;
    margin: 0;
}

/* ---------- One thing of now, and the rest under «Also on your page» (Jujol) ----------
   Under the heading, the one thing that matters now (familypage::arrange()); a card goes on the wall, a band right after
   it. The rest, below: each a slip that says what it is and how it stands, and opens where it is. */
.ahora {
    display: grid;
    gap: 18px;
}

.ahora > .cuento-tarjeta {
    margin-top: 0;
}

.tambien {
    padding-bottom: 0;
}

.tambien-cosas {
    display: grid;
    gap: 12px;
    align-items: start;
}

@media (min-width: 960px) {
    .tambien-cosas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .tambien-cosas > .otra-cosa[open] {
        grid-column: 1 / -1;
    }
}

.otra-cosa {
    border-radius: var(--radio);
    background: var(--eg-superficie);
    box-shadow: 0 1px 2px var(--eg-sombra), 0 14px 28px -18px var(--eg-sombra);
}

.otra-cosa > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 18px;
    border-radius: var(--radio);
    cursor: pointer;
    list-style: none;
}

.otra-cosa > summary::-webkit-details-marker {
    display: none;
}

.otra-cosa > summary:focus-visible {
    outline: 3px solid var(--c-acento-vivo);
    outline-offset: 2px;
}

.otra-cosa > summary > svg {
    width: 22px;
    height: 22px;
    color: var(--c-acento-texto);
    transition: transform 0.2s ease;
}

.otra-cosa[open] > summary > svg {
    transform: rotate(180deg);
}

.otra-cosa-que {
    display: grid;
    gap: 2px;
}

.otra-cosa-antes {
    color: var(--c-acento-texto);
    font-family: 'Eg Mano', 'Segoe Print', 'Bradley Hand', cursive;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.05;
}

.otra-cosa-que b {
    font-size: 1.125rem;
    font-weight: 720;
    line-height: 1.3;
}

.otra-cosa-estado {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
}

.otra-cosa-dentro {
    padding: 0 18px 18px;
}

/* Opened, what is inside keeps its drawing: the band, rounded, at the width of the slip; next school year without a
   second card around it, and its title is the line above. */
.otra-cosa-dentro > .banda {
    border-radius: 14px;
    padding: 26px 22px 28px;
}

.otra-cosa-dentro > .rematricula {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.otra-cosa-dentro .rematricula-titulo {
    display: none;
}

.otra-cosa.suelta {
    background: transparent;
    box-shadow: none;
}

.otra-cosa.suelta > .cuento-tarjeta,
.otra-cosa.suelta > .cumple-tarjeta {
    margin-top: 0;
}

@media (min-width: 960px) {
    .otra-cosa-dentro > .banda {
        padding: 36px 40px 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .otra-cosa > summary > svg {
        transition: none;
    }
}

/* The band of now, right under the greeting: the day at the top, so that it is in the first screen. */
@media (min-width: 960px) {
    .familia-arriba + .banda {
        align-items: start;
        padding-top: 44px;
    }
}

/* How to ask for a place, in the band once they came: the words of the centre, and one line for what is doubtful. */
.banda .como-se-pide {
    margin: 4px 0 0;
    font-size: 1.125rem;
    line-height: 1.5;
    white-space: pre-line;
}

.banda .ayuda-banda {
    margin: 6px 0 0;
    opacity: 0.86;
}

/* The reason chosen of a child that does not go on: filled, as the answer above it. */
.rematricula .ficha-boton[aria-pressed="true"] {
    border-color: var(--c-acento);
    background: var(--c-acento);
    color: var(--c-sobre-acento);
    box-shadow: none;
}

/* On a phone the card of next school year takes the width: what hangs, small, beside the question, and the answers,
   the reasons and the note under both. */
@media (max-width: 559px) {
    .rematricula-nino {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px 12px;
    }

    .rematricula-texto {
        display: contents;
    }

    .rematricula-pregunta {
        grid-column: 2;
        align-self: center;
    }

    .rematricula-texto > :not(.rematricula-pregunta) {
        grid-column: 1 / -1;
    }

    .rematricula-percha {
        height: 104px;
    }

    .rematricula-riel {
        top: 12px;
    }

    .rematricula-gancho {
        top: 8px;
    }

    .rematricula-colgante {
        top: 18px;
        width: 50px;
        margin-left: -25px;
    }

    .rematricula-curso {
        display: none;
    }

    .rematricula-leave .rematricula-colgante {
        transform: translateY(30px) rotate(-12deg);
    }

    .rematricula-none .rematricula-colgante {
        transform: translateX(14px) translateY(20px);
    }

    .rematricula-botones {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-self: stretch;
        border-radius: 22px;
    }

    .rematricula-botones .eleccion:last-child {
        grid-column: 1 / -1;
    }
}

/* Their data, folded: what it is in a line, and inside, taking it and, quieter, erasing it (it asks again before). */
.sus-datos > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    cursor: pointer;
    list-style: none;
}

.sus-datos > summary::-webkit-details-marker {
    display: none;
}

.sus-datos > summary > h3 {
    grid-column: 1 / -1;
}

.sus-datos > summary > .muted {
    grid-column: 1;
}

.sus-datos > summary > svg {
    grid-column: 2;
    grid-row: 2;
    width: 20px;
    height: 20px;
    color: var(--c-acento-texto);
    transition: transform 0.2s ease;
}

.sus-datos[open] > summary > svg {
    transform: rotate(180deg);
}

.lo-contado .borrar-datos {
    color: var(--eg-tinta-2);
    font-size: 0.9375rem;
    font-weight: 600;
}

/* An email that looks like a slip of a common one: what they surely meant, under it, and one tap to use it. */
.quisieron {
    margin: 6px 0 0;
    color: var(--eg-tinta);
    font-size: 0.9375rem;
}

.quisieron bdi {
    font-weight: 700;
}

.quisieron-usar {
    min-height: 32px;
    padding: 2px 10px;
    border: 1.5px solid currentcolor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

/* A family whose every way is closed: what hung stands on a shelf, off its knob, a little leaning, with a short
   shadow where it touches the wood (Jujol). The shelf runs under all of them. */
.perchas.apoyadas {
    position: relative;
}

.perchas.apoyadas::after {
    content: "";
    position: absolute;
    inset-inline: var(--g);
    bottom: 8px;
    height: 12px;
    border-radius: 2px;
    background:
        linear-gradient(
            to bottom,
            var(--eg-madera-luz) 0 2px,
            var(--eg-madera) 2px calc(100% - 3px),
            var(--eg-madera-sombra) calc(100% - 3px)
        );
    box-shadow: 0 10px 14px -10px var(--eg-sombra);
}

@media (min-width: 960px) {
    .perchas.apoyadas::after {
        bottom: 36px;
    }
}

.perchas.apoyadas .colgante {
    --reposo: 0deg;
    margin-top: 28px;
    transform: rotate(-6deg);
    transform-origin: 50% 100%;
    filter: drop-shadow(0 3px 1.5px rgba(40, 25, 15, 0.3));
}

.perchas.apoyadas .colgante .gancho,
.perchas.apoyadas .colgante .pomo-luz {
    display: none;
}

/* The waiting list, said plainly: who waits for which course, and that they will hear as soon as a place is free. */
.en-espera h3,
.lo-que-cuesta h3 {
    margin: 0 0 8px;
}

.en-espera-quien {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    font-weight: 700;
}

.en-espera p,
.lo-que-cuesta p {
    margin: 6px 0 0;
}

/* What it costs, as a receipt: what on the left, how much on the right, a dotted line between them. */
.recibo {
    display: grid;
    gap: 6px;
    margin: 0;
}

.recibo div {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.recibo dt {
    flex: 1 1 auto;
    display: flex;
    gap: 8px;
    align-items: baseline;
    min-width: 0;
}

.recibo dt::after {
    content: "";
    flex: 1 1 auto;
    min-width: 16px;
    border-bottom: 2px dotted var(--eg-linea);
    transform: translateY(-4px);
}

.recibo dd {
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
}

.recibo .sin-importe dt::after {
    content: none;
}

/* The way in of a site that is only Eguahe: the dog at the door with its hello, and the form on the paper. The form
   takes the width of its column; the fields keep the width of what goes in them. */
.entrar {
    display: grid;
    gap: 8px;
    padding-top: 32px;
}

.entrar-perro {
    display: flex;
    gap: 12px;
    align-items: end;
    margin: 0;
    padding: 0 var(--g);
}

.entrar-perro img {
    width: 96px;
    height: auto;
}

.entrar-perro figcaption {
    margin-bottom: 40px;
    padding: 6px 12px;
    border-radius: 14px 14px 14px 2px;
    background: var(--eg-superficie);
    box-shadow: inset 0 0 0 1.5px var(--eg-borde);
    font-size: 1.25rem;
}

.entrar-form {
    display: grid;
    gap: 16px;
    width: 100%;
}

.entrar-form .campo input {
    width: 100%;
    max-width: 24rem;
}

.entrar-error {
    padding: 10px 14px;
    border-inline-start: 4px solid var(--eg-error);
    background: var(--eg-superficie);
    color: var(--eg-tinta);
}

.entrar-otras {
    display: grid;
    gap: 8px;
}

.entrar-otras ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.entrar-otras .boton {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.entrar-sin-cuenta {
    color: var(--eg-tinta-2);
}

/* What a visitor will find in a centre of their own, before trying it. */
.probar-puntos {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-inline-start: 1.25em;
}

/* The scrollbar, thin and in Eguahe's aubergine, never the browser's grey (Enrique, 17-11: like his other projects).
   It is inherited, so the inner scrolls take it too. */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--eg-barra) transparent;
}

/* A student signing up for themselves («Para mí»): no rows for children, other adults or brothers and sisters. */
[data-para="yo"] .para-familia,
[data-para="yo"] .para-familia[hidden] {
    display: none;
}

.para-quien .fichas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.para-quien a.ficha {
    color: inherit;
    text-decoration: none;
}
