/* Hoja de Noticias Bajo Demanda: campos de color de los setenta, arcoíris de cuatro franjas,
   mosaico de baldosas que baja en escalera y retratos con marco blanco */

/* Valores comunes */
:root {
  --not-umber: hsl(18, 39%, 13%);
  --not-dust: hsl(18, 20%, 32%);
  --not-trace: hsla(18, 39%, 13%, 0.4);
  --not-linen: hsl(38, 100%, 94%);
  --not-room: 16px;
  --not-corner: 12px;
  --not-corner-btn: 6px;
  --not-mostaza: hsl(41, 78%, 50%);
  --not-petroleo: hsl(182, 67%, 21%);
  --not-teja: hsl(16, 71%, 42%);
  --not-chocolate: hsl(18, 39%, 13%);
  --not-crema: hsl(38, 100%, 94%);
  --not-oliva: hsl(64, 50%, 33%);
  --not-papel: hsl(40, 100%, 98%);
  --not-curva: cubic-bezier(0.4, 0, 0.2, 1);
  --not-franja: 12px;
  --not-voz: "Caprasimo", "Selulu Caprasimo", Georgia, serif;
  --not-mano: "Yellowtail", "Selulu Yellowtail", cursive;
  --not-texto: "Libre Franklin", "Selulu Libre Franklin", system-ui, sans-serif;
}

/* Base de lectura */
body {
  font-family: var(--not-texto);
  font-size: 16px;
  line-height: 1.55;
  color: var(--not-umber);
  background: var(--not-crema);
}

/* En la portada la cabecera y el televisor están sobre un solo campo de mostaza: el lienzo es ese color */
body.notc-lienzo-portada {
  background: hsl(41, 78%, 50%);
}

.notc-lienzo-portada .notc-cabecera,
.notc-lienzo-portada .notc-portada {
  background: transparent;
}

h1,
h2,
h3 {
  font-family: var(--not-voz);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(36px, 4.2vw, 58px);
  max-width: 17ch;
}

h3 {
  font-size: 26px;
  line-height: 1.12;
}

p {
  margin: 0 0 12px;
}

a {
  color: inherit;
  text-decoration: underline dotted 1px;
  text-underline-offset: 0.3em;
}

a:hover {
  text-decoration-style: solid;
}

:focus-visible {
  outline: 2px solid var(--anillo, var(--not-umber));
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--fondo, var(--not-crema));
}

img {
  max-width: 100%;
  height: auto;
}

.notc-salto {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 12px 18px;
  background: var(--not-chocolate);
  color: var(--not-crema);
  border-radius: var(--not-corner-btn);
}

.notc-salto:focus {
  top: 12px;
}

.notc-muestra {
  font-size: 0.7em;
  margin-left: 1px;
  text-decoration: none;
}

.notc-mano {
  font-family: var(--not-mano);
  font-weight: 400;
  letter-spacing: 0;
}

/* Campos de color: cada sección pinta su fondo entero */
.notc-campo {
  background: var(--fondo);
  color: var(--tinta);
}

.notc-campo--mostaza {
  --fondo: hsl(41, 78%, 50%);
  --tinta: hsl(18, 39%, 13%);
  --panel: hsl(41, 78%, 46%);
  --anillo: hsl(18, 39%, 13%);
  --r1: hsl(182, 67%, 21%);
  --r2: hsl(16, 71%, 42%);
  --r3: hsl(64, 50%, 33%);
  --r4: hsl(18, 39%, 13%);
}

.notc-campo--petroleo {
  --fondo: hsl(182, 67%, 21%);
  --tinta: hsl(38, 100%, 94%);
  --panel: hsl(182, 60%, 25%);
  --anillo: hsl(41, 78%, 58%);
  --r1: hsl(41, 78%, 50%);
  --r2: hsl(16, 71%, 48%);
  --r3: hsl(38, 100%, 94%);
  --r4: hsl(64, 50%, 40%);
}

.notc-campo--crema {
  --fondo: hsl(38, 100%, 94%);
  --tinta: hsl(18, 39%, 13%);
  --panel: hsl(38, 80%, 90%);
  --anillo: hsl(182, 67%, 21%);
  --r1: hsl(41, 78%, 50%);
  --r2: hsl(16, 71%, 42%);
  --r3: hsl(182, 67%, 21%);
  --r4: hsl(18, 39%, 13%);
}

.notc-campo--teja {
  --fondo: hsl(16, 71%, 40%);
  --tinta: hsl(38, 100%, 96%);
  --panel: hsl(16, 66%, 44%);
  --anillo: hsl(41, 90%, 62%);
  --r1: hsl(41, 78%, 50%);
  --r2: hsl(38, 100%, 94%);
  --r3: hsl(182, 67%, 21%);
  --r4: hsl(18, 39%, 13%);
}

/* El cierre es la tele apagada: casi negro, apenas cálido */
.notc-campo--chocolate {
  --fondo: hsl(24, 10%, 10%);
  --tinta: hsl(38, 100%, 94%);
  --panel: hsl(24, 8%, 16%);
  --anillo: hsl(41, 78%, 56%);
  --r1: hsl(41, 78%, 50%);
  --r2: hsl(16, 71%, 50%);
  --r3: hsl(182, 50%, 38%);
  --r4: hsl(64, 50%, 40%);
}

/* Botones: el tono entero cambia al pulsar, una mancha redonda al pasar por encima */
.notc-boton {
  --base: hsl(182, 67%, 21%);
  --letra: hsl(38, 100%, 96%);
  --mancha: hsl(182, 67%, 15%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 3px solid var(--base);
  border-radius: var(--not-corner-btn);
  background: var(--base);
  color: var(--letra);
  font-family: var(--not-texto);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--not-curva), color 160ms var(--not-curva);
}

.notc-boton::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
  border-radius: 50%;
  background: var(--mancha);
  transform: scale(0);
  transition: transform 200ms var(--not-curva);
}

.notc-boton:hover::before {
  transform: scale(1);
}

.notc-boton:active {
  background: var(--mancha);
}

.notc-boton--hueco {
  --base: transparent;
  --letra: currentColor;
  --mancha: hsla(18, 39%, 13%, 0.1);
  border-color: currentColor;
}

.notc-campo--chocolate .notc-boton--hueco,
.notc-campo--petroleo .notc-boton--hueco,
.notc-campo--teja .notc-boton--hueco {
  --mancha: hsla(38, 100%, 94%, 0.12);
}

.notc-boton--teja {
  --base: hsl(16, 71%, 40%);
  --mancha: hsl(16, 71%, 33%);
}

.notc-boton--mostaza {
  --base: hsl(41, 78%, 50%);
  --letra: hsl(18, 39%, 13%);
  --mancha: hsl(41, 78%, 44%);
}

/* Cabecera: logotipo, contacto y botón de menú */
.notc-cabecera {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 12px 40px;
}

.notc-cabecera__logo {
  display: block;
  margin-right: auto;
  line-height: 56px;
}

.notc-cabecera__logo img {
  display: block;
  width: 190px;
  height: auto;
}

.notc-cabecera__tel {
  display: inline-block;
  padding-block: 6px;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  text-decoration: none;
}

.notc-cabecera__pedir {
  padding: 10px 4px;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  color: inherit;
  text-decoration: underline dotted 2px;
  text-decoration-skip-ink: none;
  text-underline-offset: 6px;
  border-bottom: 2px dotted currentColor;
}

.notc-cabecera__pedir:hover {
  color: hsl(16, 71%, 34%);
}

/* El botón de menú es una etiqueta setentera con sus cuatro franjas */
.notc-cabecera__menu {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 22px 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--not-chocolate);
  color: var(--not-crema);
  font-family: var(--not-voz);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms var(--not-curva), background-color 160ms var(--not-curva);
}

.notc-cabecera__rayas {
  align-self: stretch;
  width: 40px;
  background: linear-gradient(to right, hsl(182, 67%, 21%) 0 25%, hsl(16, 71%, 40%) 25% 50%, hsl(64, 51%, 33%) 50% 75%, hsl(41, 78%, 50%) 75% 100%);
}

.notc-cabecera__menu:hover {
  background: hsl(18, 39%, 22%);
}

.notc-cabecera__menu:active {
  transform: scale(0.97);
}

.notc-solo-portada-tel {
  display: none;
}

/* Menú a pantalla completa con vistas pequeñas */
.notc-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  overflow-y: auto;
  padding: 24px 40px 40px;
  background: var(--not-chocolate);
  color: var(--not-crema);
  --fondo: hsl(18, 39%, 13%);
  --anillo: hsl(41, 78%, 56%);
}

.notc-menu[data-abierto="si"] {
  display: block;
}

.notc-menu__barra {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.notc-menu__cerrar {
  min-width: 52px;
  min-height: 52px;
}

.notc-menu__lista {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
}

.notc-menu__lista li + li {
  border-top: 1px dotted hsla(38, 100%, 94%, 0.4);
}

.notc-menu__enlace {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
  font-family: var(--not-voz);
  font-size: clamp(40px, 7vw, 118px);
  line-height: 1.02;
  text-decoration: none;
}

.notc-menu__enlace img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border: 6px solid var(--not-papel);
  transform: rotate(-3deg);
  filter: contrast(108%) saturate(106%) brightness(96%);
}

.notc-menu__enlace:hover {
  color: hsl(41, 78%, 60%);
}

.notc-menu__pie {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  font-size: 18px;
}

/* Portada: la línea del proceso cruza la pantalla */
/* El arcoíris hace de marco de un televisor de los setenta; el titular sale en su pantalla
   y los cuatro pasos del pedido son las perillas del marco */
.notc-portada {
  --orilla: clamp(150px, 13.9vw, 220px);
  --marco-alto: clamp(584px, calc(100svh - 170px), 730px);
  position: relative;
  height: max(720px, calc(100svh - 84px));
  max-height: 980px;
  overflow: hidden;
}

.notc-portada__texto {
  position: absolute;
  z-index: 3;
  left: calc(var(--orilla) + 48px);
  right: calc(var(--orilla) + 48px);
  top: 64px;
  height: calc(var(--marco-alto) - 96px);
  padding: 44px 56px 0;
  border: 3px solid var(--not-chocolate);
  border-radius: 32px;
  /* La pantalla: el gris azulado de un tubo encendido, con más luz en el centro */
  background: radial-gradient(70% 70% at 50% 45%, hsl(195, 30%, 96%), hsl(195, 22%, 93%) 75%, hsl(195, 14%, 86%));
  color: var(--not-chocolate);
  text-align: left;
}

.notc-portada h1 {
  font-size: min(4.1vw, 64px);
  max-width: none;
  margin: 0 0 16px;
  text-wrap: balance;
}

.notc-portada__lid {
  max-width: 440px;
  margin: 24px 0 0;
  font-size: 17px;
  text-align: left;
}

/* La pregunta va arriba de la pantalla, como el rótulo de un avance; el titular, en el centro */
.notc-portada__pregunta {
  max-width: 560px;
  margin: 0 0 52px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
}

.notc-portada__respuesta {
  padding-left: 24px;
  border-left: 6px solid var(--not-teja);
}

/* Marco: cuatro rectángulos redondeados uno dentro de otro; por la derecha la línea sigue hacia abajo */
.notc-ruta,
.notc-ruta-cola {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.notc-ruta {
  left: var(--orilla);
  top: 16px;
  width: calc(100% - 2 * var(--orilla));
  height: var(--marco-alto);
}

.notc-ruta-cola {
  right: var(--orilla);
  top: calc(var(--marco-alto) - 64px);
  bottom: 0;
  width: calc(4 * var(--not-franja));
  height: calc(100% - var(--marco-alto) + 64px);
}

.notc-ruta__c1 {
  fill: var(--r1);
  stroke: var(--r1);
}

.notc-ruta__c2 {
  fill: var(--r2);
  stroke: var(--r2);
}

.notc-ruta__c3 {
  fill: var(--r3);
  stroke: var(--r3);
}

.notc-ruta__c4 {
  fill: var(--r4);
  stroke: var(--r4);
}

.notc-ruta .notc-ruta__marco {
  fill: none;
  stroke-width: var(--not-franja);
  x: var(--dentro);
  y: var(--dentro);
  width: calc(100% - 2 * var(--dentro));
  height: calc(100% - 2 * var(--dentro));
  rx: calc(80px - var(--dentro));
}

.notc-ruta-cola .notc-ruta__cae {
  stroke: none;
  x: calc(100% - var(--not-franja) - var(--col));
  y: 0;
  width: var(--not-franja);
  height: 100%;
}

/* Las perillas del marco: 1 y 2 en las esquinas de arriba, 3 abajo a la derecha, 4 en el borde de abajo */
.notc-proceso {
  position: absolute;
  z-index: 4;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.notc-proceso > li {
  position: absolute;
  pointer-events: auto;
}

.notc-proceso > li:nth-child(1),
.notc-proceso > li:nth-child(2) {
  top: 24px;
}

.notc-proceso > li:nth-child(1) {
  right: calc(100% - var(--orilla) - 72px);
  align-items: flex-end;
  text-align: right;
}

.notc-proceso > li:nth-child(1) .notc-nodo__pie {
  max-width: calc(var(--orilla) - 32px);
  margin-right: 80px;
}

.notc-proceso > li:nth-child(2),
.notc-proceso > li:nth-child(3) {
  left: calc(100% - var(--orilla) - 72px);
  align-items: flex-start;
  text-align: left;
}

.notc-proceso > li:nth-child(2) .notc-nodo__pie,
.notc-proceso > li:nth-child(3) .notc-nodo__pie {
  max-width: calc(var(--orilla) - 32px);
  margin-left: 80px;
}

.notc-proceso > li:nth-child(3) {
  bottom: calc(100% - var(--marco-alto) - 8px);
  flex-direction: column-reverse;
}

.notc-proceso > li:nth-child(3) .notc-nodo__pie {
  margin-top: 0;
  margin-bottom: 12px;
}

.notc-proceso > li:nth-child(4) {
  left: calc(100% - var(--orilla) - 330px);
  top: calc(var(--marco-alto) - 40px);
  width: 230px;
}

.notc-nodo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.notc-nodo__perilla {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid var(--not-chocolate);
  border-radius: 50%;
  background: var(--not-crema);
  color: var(--not-chocolate);
  font-family: var(--not-voz);
  font-size: 28px;
  line-height: 1;
}

.notc-nodo__perilla::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 4px;
  height: 10px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--not-teja);
}

.notc-nodo__pie {
  display: block;
  max-width: 230px;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.notc-nodo__tel {
  display: block;
  margin-top: 2px;
  font-family: var(--not-voz);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 28px);
  white-space: nowrap;
  text-decoration: none;
}

.notc-globo {
  --cable: clamp(26px, calc(var(--marco-alto) - 640px), 90px);
  position: absolute;
  z-index: 4;
  bottom: calc(100% + var(--cable));
  left: calc(50% - 150px);
  width: 300px;
  padding: 16px;
  border: 3px solid var(--not-chocolate);
  border-radius: var(--not-corner);
  background: var(--not-papel);
  color: var(--not-chocolate);
  text-align: left;
}

.notc-globo::after {
  content: "";
  position: absolute;
  bottom: -19px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -16px;
  border: 16px solid transparent;
  border-top-color: var(--not-chocolate);
  border-bottom: 0;
}

/* El cable que baja de la pantalla a la perilla 4 */
.notc-globo::before {
  content: "";
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 3px;
  height: calc(var(--cable) - 10px);
  margin-left: -1.5px;
  background: var(--not-chocolate);
}

.notc-globo .notc-boton {
  width: 100%;
  font-size: 19px;
}

.notc-globo__siguiente {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.4;
}

.notc-globo__flecha {
  margin-left: 10px;
  flex: none;
}

.notc-portada__nota {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 360px;
  font-size: 32px;
  transform: rotate(-6deg);
}

/* Secciones en escalera: cada una entra un poco más a la derecha */
.notc-tramo {
  position: relative;
  padding: 88px 0 96px;
}

.notc-tramo__marco {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

.notc-escalon {
  position: relative;
}

.notc-tramo__cabeza {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.notc-tramo__cabeza p {
  max-width: 560px;
  font-size: 18px;
}

.notc-codo {
  position: absolute;
  top: -1px;
  left: 0;
  width: 96px;
  height: 64px;
  pointer-events: none;
  background: radial-gradient(circle at 0 100%, transparent 16px, var(--r1) 16px 24px, var(--r2) 24px 32px, var(--r3) 32px 40px, var(--r4) 40px 48px, transparent 48px) left bottom / 48px 48px no-repeat,
    linear-gradient(to bottom, var(--r4) 0 8px, var(--r3) 8px 16px, var(--r2) 16px 24px, var(--r1) 24px 32px) 48px 32px / 48px 32px no-repeat;
}

/* Mosaico de baldosas */
.notc-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  grid-auto-flow: dense;
  gap: 12px;
}

.notc-baldosa {
  position: relative;
  min-width: 0;
  padding: 24px;
  border-radius: var(--not-corner);
  background: var(--panel);
}

.notc-baldosa--2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.notc-baldosa--2x1 {
  grid-column: span 2;
}

.notc-baldosa--1x2 {
  grid-row: span 2;
}

.notc-baldosa--4x1 {
  grid-column: span 4;
}

.notc-baldosa--3x1 {
  grid-column: span 3;
}

.notc-baldosa--3x1 > p {
  max-width: 68ch;
}

.notc-baldosa--3x2 {
  grid-column: span 3;
  grid-row: span 2;
}

.notc-baldosa--plana {
  background: transparent;
  padding: 0;
}

.notc-baldosa h3 {
  margin-bottom: 12px;
}

/* Retratos con marco blanco y pie escrito a mano */
.notc-polaroid {
  display: inline-block;
  margin: 0;
  padding: 10px 10px 8px;
  background: var(--not-papel);
  color: var(--not-chocolate);
  box-shadow: 0 2px 0 hsla(18, 39%, 13%, 0.25);
  transform: rotate(var(--giro, -2deg));
}

.notc-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: contrast(108%) saturate(106%) brightness(96%);
}

.notc-polaroid--ancha img {
  aspect-ratio: 4 / 3;
}

.notc-polaroid--alta img {
  aspect-ratio: 3 / 4;
}

.notc-polaroid--cortada img {
  aspect-ratio: 4 / 3;
  object-position: 50% 100%;
}

.notc-polaroid figcaption {
  padding-top: 6px;
  font-family: var(--not-mano);
  font-size: 22px;
  line-height: 1.1;
  text-align: center;
}

.notc-tablero {
  position: relative;
  min-height: 420px;
}

.notc-tablero .notc-polaroid {
  position: absolute;
  width: 54%;
}

.notc-tablero .notc-polaroid:nth-child(1) {
  left: 0;
  top: 8px;
  --giro: -4deg;
}

.notc-tablero .notc-polaroid:nth-child(2) {
  right: 0;
  top: 0;
  z-index: 2;
  --giro: 3deg;
}

.notc-tablero .notc-polaroid:nth-child(3) {
  left: 22%;
  bottom: 0;
  z-index: 3;
  --giro: -1deg;
}

/* Cifras grandes con su arco de colores */
.notc-cifra {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.notc-cifra__arco {
  position: relative;
  display: grid;
  place-items: end center;
  width: 260px;
  max-width: 100%;
  height: 134px;
  margin: 0 auto 8px;
  background: radial-gradient(circle at 50% 100%, transparent 90px, var(--r1) 90px 100px, var(--r2) 100px 110px, var(--r3) 110px 120px, var(--r4) 120px 130px, transparent 130px);
}

.notc-odometro {
  display: inline-flex;
  font-family: var(--not-voz);
  font-size: 78px;
  line-height: 1;
  height: 1em;
  overflow: hidden;
}

.notc-odometro__col {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}

.notc-odometro__col span {
  display: block;
  height: 1em;
}

.notc-cifra__dice {
  max-width: 240px;
  margin: 8px auto 0;
  font-size: 16px;
}

/* Mini cuestionario */
.notc-cuestion fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.notc-cuestion legend {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 17px;
}

.notc-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notc-opciones label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid currentColor;
  border-radius: var(--not-corner-btn);
  cursor: pointer;
  font-size: 15px;
}

.notc-opciones input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.notc-opciones input:checked + span {
  font-weight: 700;
}

.notc-opciones label:has(input:checked) {
  background: var(--tinta);
  color: var(--fondo);
}

.notc-opciones label:has(input:focus-visible) {
  outline: 2px solid var(--anillo);
  outline-offset: 2px;
}

.notc-cuestion__salida {
  display: block;
  min-height: 48px;
  padding-top: 12px;
  border-top: 1px dotted var(--tinta);
  font-size: 17px;
}

.notc-cuestion__salida strong {
  font-family: var(--not-voz);
  font-weight: 400;
  font-size: 24px;
}

/* Escena de la señal en lienzo */
.notc-escena canvas {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  background: hsl(18, 39%, 13%);
}

.notc-escena__pausa {
  margin-top: 12px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline dotted 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
  min-height: 44px;
}

/* Lista de precios con barras de longitud */
.notc-grupo h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.notc-grupo__escala {
  font-family: var(--not-texto);
  font-size: 16px;
  color: var(--not-dust);
}

.notc-filas {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Cada fila: nombre, precio y barra a la izquierda; la cantidad a su derecha */
.notc-fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
  padding: 18px 0;
  background: repeating-linear-gradient(to right, var(--not-trace) 0 1px, transparent 1px 3px) left bottom / 100% 1px no-repeat;
}

.notc-fila .notc-cantidad {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 168px;
}

.notc-fila .notc-pista {
  margin-bottom: 0;
}

.notc-fila:last-child {
  background: none;
}

.notc-fila__cab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.notc-fila__nombre {
  font-weight: 600;
  font-size: 18px;
}

.notc-fila__precio {
  flex: none;
  font-family: var(--not-voz);
  font-size: 26px;
  white-space: nowrap;
}

.notc-pista {
  display: block;
  height: 10px;
  margin: 8px 0 12px;
  border-radius: 5px;
  background: hsla(18, 39%, 13%, 0.1);
}

.notc-pista span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: hsl(182, 67%, 24%);
}

#fila-p1 .notc-pista span { width: 49.5%; }
#fila-p2 .notc-pista span { width: 75%; }
#fila-p3 .notc-pista span { width: 100%; }
#fila-p4 .notc-pista span { width: 100%; background: hsl(16, 71%, 40%); }
#fila-p5 .notc-pista span { width: 51%; }
#fila-p6 .notc-pista span { width: 100%; }
#fila-p7 .notc-pista span { width: 31%; }
#fila-p8 .notc-pista span { width: 100%; }
#fila-p9 .notc-pista span { width: 65.5%; }
#fila-p10 .notc-pista span { width: 100%; }
#fila-p11 .notc-pista span { width: 100%; background: hsl(16, 71%, 40%); }
#fila-p12 .notc-pista span { width: 79.6%; }
#fila-p13 .notc-pista span { width: 38.8%; }
#fila-p14 .notc-pista span { width: 100%; }

.notc-cantidad {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 8px;
}

.notc-cantidad label {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
}

.notc-cantidad input {
  width: 64px;
  height: 44px;
  border: 2px solid var(--not-umber);
  border-radius: var(--not-corner-btn);
  background: var(--not-papel);
  color: var(--not-umber);
  font-size: 18px;
  text-align: center;
}

.notc-cantidad button {
  width: 44px;
  height: 44px;
  border: 2px solid var(--not-umber);
  border-radius: var(--not-corner-btn);
  background: transparent;
  color: var(--not-umber);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms var(--not-curva);
}

.notc-cantidad button:hover {
  background: hsla(18, 39%, 13%, 0.08);
}

.notc-cantidad button:active {
  background: hsla(18, 39%, 13%, 0.18);
}

.notc-cesta {
  --fondo: hsl(18, 39%, 13%);
  --tinta: hsl(38, 100%, 94%);
  --anillo: hsl(41, 78%, 56%);
  background: var(--fondo);
  color: var(--tinta);
}

.notc-cesta__lineas {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 15px;
}

.notc-cesta__lineas li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted hsla(38, 100%, 94%, 0.4);
}

.notc-cesta__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 20px;
}

.notc-cesta__total output {
  font-family: var(--not-voz);
  font-size: 56px;
  line-height: 1;
}

.notc-cesta__aviso {
  font-size: 14px;
  line-height: 1.45;
}

.notc-nota-precios {
  font-size: 15px;
}

.notc-invita {
  margin-top: 24px;
  font-size: 20px;
}

/* Campos de formulario tipo losa */
.notc-campo-form {
  margin-bottom: 18px;
}

.notc-campo-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 17px;
}

.notc-campo-form input,
.notc-campo-form select,
.notc-campo-form textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 3px solid var(--not-chocolate);
  border-radius: var(--not-corner-btn);
  background: var(--not-papel);
  color: var(--not-chocolate);
  font-family: var(--not-texto);
  font-size: 18px;
}

.notc-campo-form textarea {
  min-height: 120px;
  resize: vertical;
}

.notc-campo-form input:focus,
.notc-campo-form select:focus,
.notc-campo-form textarea:focus {
  outline: 3px solid var(--anillo);
  outline-offset: 2px;
}

.notc-campo-form [aria-invalid="true"] {
  border-color: hsl(0, 85%, 32%);
  box-shadow: 0 0 0 3px hsl(41, 90%, 62%);
}

.notc-campo-form__ayuda {
  margin: 6px 0 0;
  font-size: 15px;
}

.notc-campo-form__error {
  display: none;
  margin: 6px 0 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--not-papel);
  color: hsl(0, 80%, 30%);
  font-weight: 700;
  font-size: 15px;
}

.notc-campo-form [aria-invalid="true"] ~ .notc-campo-form__error {
  display: block;
}

.notc-casilla {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 15px;
}

.notc-casilla input {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: hsl(41, 78%, 50%);
}

.notc-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notc-estado {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--not-corner);
  background: var(--not-papel);
  color: var(--not-chocolate);
  font-size: 17px;
}

form[data-state="enviando"] .notc-estado--enviando,
form[data-state="hecho"] .notc-estado--hecho,
form[data-state="fallo"] .notc-estado--fallo,
form[data-state="sin-servicio"] .notc-estado--sin-servicio {
  display: block;
}

form[data-state="hecho"] .notc-formulario__campos {
  display: none;
}

.notc-capa {
  margin: 0;
  font-size: 15px;
}

.notc-capa dt {
  font-weight: 700;
}

.notc-capa dd {
  margin: 0 0 10px;
}

/* Pasos del recorrido unidos por el arcoíris */
.notc-paso {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-content: start;
}

.notc-paso:not(.notc-baldosa--2x1):not(.notc-baldosa--4x1) {
  grid-template-columns: minmax(0, 1fr);
}

.notc-paso .notc-nodo__perilla {
  width: 64px;
  height: 64px;
}

.notc-paso p:last-child {
  margin-bottom: 0;
}

.notc-puente {
  height: 48px;
  margin: 0 0 0 30px;
  background: linear-gradient(to right, var(--r4) 0 25%, var(--r3) 25% 50%, var(--r2) 50% 75%, var(--r1) 75% 100%) 0 0 / 32px 100% no-repeat;
}

/* Pestañas por etapas y tablero de respuestas */
.notc-pestanas__fila {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-bottom: 40px;
  border-bottom: 1px dotted var(--tinta);
}

.notc-pestanas__boton {
  padding: 12px 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--not-texto);
  font-weight: 700;
  font-size: 19px;
  cursor: pointer;
  min-height: 48px;
}

.notc-pestanas__boton[aria-selected="false"] {
  opacity: 0.78;
}

.notc-pestanas__raya {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 4px;
  width: 0;
  background: var(--anillo);
  transition: transform 200ms var(--not-curva), width 200ms var(--not-curva);
}

.notc-pestanas__panel + .notc-pestanas__panel {
  margin-top: 56px;
}

.notc-pestanas--viva .notc-pestanas__panel + .notc-pestanas__panel {
  margin-top: 0;
}

.notc-pestanas__etapa {
  margin-bottom: 24px;
  font-size: 22px;
}

.notc-pestanas--viva .notc-pestanas__etapa {
  display: none;
}

.notc-veredictos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 0;
}

.notc-veredicto dt {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.notc-veredicto__corto {
  display: block;
  margin-bottom: 10px;
  font-family: var(--not-voz);
  font-size: 42px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.notc-veredicto dd {
  margin: 0;
}

/* Ventana de dirección con mapa arriba */
.notc-ventana {
  overflow: hidden;
  padding: 0;
  background: var(--panel);
}

.notc-ventana iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

.notc-ventana__pie {
  padding: 24px;
}

.notc-horas {
  font-family: var(--not-voz);
  font-size: 54px;
  line-height: 1.02;
  margin: 4px 0 12px;
}

.notc-esquema svg {
  display: block;
  width: 100%;
  height: auto;
}

.notc-datos {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notc-datos li {
  padding: 12px 0;
  background: repeating-linear-gradient(to right, hsla(38, 100%, 94%, 0.4) 0 1px, transparent 1px 3px) left bottom / 100% 1px no-repeat;
}

.notc-datos li:last-child {
  background: none;
}

.notc-datos a {
  font-weight: 700;
  font-size: 19px;
}

/* Pie en una sola franja */
.notc-pie {
  padding: 20px 0;
  font-size: 16px;
}

.notc-pie__franja {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

.notc-pie__logo img {
  width: 130px;
  height: auto;
  display: block;
}

.notc-pie__franja a {
  white-space: nowrap;
}

.notc-pie__legal {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 16px;
}

.notc-pie__opina {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.notc-pie__opina a {
  padding: 4px 0;
}

/* Páginas de texto: aviso legal, cookies, condiciones, privacidad */
.notc-documento {
  padding: 56px 0 88px;
}

.notc-documento__cuerpo {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-wrap: anywhere;
}

.notc-documento__cuerpo h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 24px;
}

.notc-documento__cuerpo h2 {
  font-size: 30px;
  max-width: none;
  margin: 36px 0 12px;
}

.notc-documento__cuerpo ul,
.notc-documento__cuerpo ol {
  padding-left: 22px;
}

.notc-documento__cuerpo dt {
  font-weight: 700;
}

.notc-documento__cuerpo dd {
  margin: 0 0 10px;
}

/* Capas fijas del sitio se apartan mientras el aviso de cookies está abierto */
html.permit-visible .notc-flotante {
  display: none;
}

/* Tabletas */
@media (max-width: 1199.98px) {
  .notc-veredictos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .notc-portada__pregunta {
    font-size: 19px;
  }

  .notc-portada__lid {
    max-width: 300px;
    font-size: 16px;
  }

  .notc-globo {
    left: calc(50% - 130px);
    width: 260px;
  }
}

/* Escalera solo en pantallas anchas */
@media (min-width: 992px) {
  .notc-tramo[data-paso="1"] .notc-escalon {
    margin-left: 8.333%;
  }

  .notc-tramo[data-paso="2"] .notc-escalon {
    margin-left: 16.666%;
  }

  .notc-tramo[data-paso="3"] .notc-escalon {
    margin-left: 25%;
  }

  .notc-tramo[data-paso="1"] .notc-codo {
    left: 8.333%;
  }

  .notc-tramo[data-paso="2"] .notc-codo {
    left: 16.666%;
  }

  .notc-tramo[data-paso="3"] .notc-codo {
    left: 25%;
  }
}

@media (max-width: 991.98px) {
  .notc-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notc-baldosa--3x1,
  .notc-baldosa--3x2,
  .notc-baldosa--4x1 {
    grid-column: span 2;
  }

  .notc-cabecera {
    padding: 10px 20px;
  }

  .notc-solo-portada-tel {
    display: inline;
  }

  .notc-nodo__tel {
    display: none;
  }

  /* La línea del proceso baja por el borde izquierdo */
  .notc-portada {
    height: auto;
    min-height: calc(100svh - 64px);
    max-height: none;
    padding-bottom: 40px;
  }

  /* En el móvil no hay televisor: el titular va arriba, sobre el campo de color */
  .notc-portada__texto {
    position: relative;
    inset: auto;
    height: auto;
    padding: 12px 20px 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    box-shadow: none;
    text-align: left;
  }

  .notc-portada h1 {
    font-size: 9.6vw;
    margin-bottom: 8px;
  }

  .notc-portada__lid {
    display: block;
    max-width: none;
    margin: 0;
    font-size: 16px;
  }

  /* En el móvil el titular ya dice lo mismo que la pregunta */
  .notc-portada__pregunta {
    display: none;
  }

  .notc-portada__respuesta {
    display: block;
    padding-left: 14px;
    border-left-width: 4px;
  }

  .notc-ruta,
  .notc-ruta-cola,
  .notc-portada__nota {
    display: none;
  }

  .notc-proceso {
    position: relative;
    inset: auto;
    z-index: auto;
    display: block;
    margin: 10px 20px 0;
    padding-left: 0;
    pointer-events: auto;
  }

  .notc-proceso > li:nth-child(n) {
    position: relative;
    inset: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .notc-proceso > li:nth-child(n) .notc-nodo__pie {
    max-width: none;
    margin: 0;
  }

  .notc-proceso::before {
    content: "";
    position: absolute;
    left: 11px;
    top: -14px;
    bottom: -40px;
    width: 24px;
    background: linear-gradient(to right, var(--r4) 0 25%, var(--r3) 25% 50%, var(--r2) 50% 75%, var(--r1) 75% 100%);
  }

  .notc-nodo {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
    min-height: 44px;
  }

  .notc-nodo + .notc-nodo {
    margin-top: 2px;
  }

  .notc-nodo__perilla {
    flex: none;
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .notc-nodo__pie {
    margin-top: 0;
    font-size: 16px;
  }

  .notc-nodo--final {
    flex-wrap: wrap;
  }

  .notc-globo {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
    flex: 1 1 100%;
    margin: 2px 0 0 60px;
    padding: 8px;
  }

  .notc-globo::after,
  .notc-globo::before {
    display: none;
  }

  .notc-globo .notc-boton {
    min-height: 50px;
    font-size: 17px;
  }

  .notc-globo__siguiente {
    font-size: 16px;
    margin-top: 6px;
  }

  .notc-veredictos {
    grid-template-columns: minmax(0, 1fr);
  }

  .notc-tramo__marco,
  .notc-pie__franja {
    padding: 0 20px;
  }

  .notc-menu {
    padding: 16px 20px 32px;
  }

  .notc-menu__enlace {
    font-size: 11vw;
    gap: 14px;
  }

  .notc-menu__enlace img {
    width: 64px;
    height: 48px;
    border-width: 4px;
  }
}

/* Teléfonos */
@media (max-width: 575.98px) {
  .notc-bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .notc-baldosa--2x2,
  .notc-baldosa--2x1,
  .notc-baldosa--3x1,
  .notc-baldosa--3x2,
  .notc-baldosa--4x1 {
    grid-column: auto;
    grid-row: auto;
  }

  .notc-baldosa--1x2 {
    grid-row: auto;
  }

  .notc-baldosa {
    padding: 20px;
  }

  .notc-cabecera {
    min-height: 60px;
    gap: 12px;
    padding: 6px 14px;
  }

  .notc-cabecera__logo img {
    width: 118px;
  }

  .notc-cabecera__tel {
    font-size: 16px;
  }

  .notc-cabecera__pedir {
    display: none;
  }

  .notc-cabecera__menu {
    gap: 8px;
    padding-right: 14px;
    font-size: 17px;
  }

  .notc-cabecera__rayas {
    width: 24px;
  }

  .notc-tramo {
    padding: 64px 0 72px;
  }

  .notc-tramo[data-paso="1"] .notc-escalon {
    padding-left: 8px;
  }

  .notc-tramo[data-paso="2"] .notc-escalon {
    padding-left: 16px;
  }

  .notc-tramo[data-paso="3"] .notc-escalon {
    padding-left: 24px;
  }

  .notc-codo {
    transform: scale(0.5);
    transform-origin: 0 0;
  }

  /* En el móvil las fotos del tablero se reparten en dos columnas y la tercera cierra debajo, sin taparse */
  .notc-tablero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    align-items: start;
    min-height: 0;
  }

  .notc-tablero .notc-polaroid {
    position: relative;
    inset: auto;
    width: auto;
  }

  .notc-tablero .notc-polaroid:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 64%;
  }

  .notc-odometro {
    font-size: 72px;
  }

  .notc-veredicto__corto {
    font-size: 30px;
  }

  .notc-horas {
    font-size: 40px;
  }

  .notc-cesta__total output {
    font-size: 44px;
  }

  .notc-fila__nombre {
    font-size: 17px;
  }

  .notc-fila__precio {
    font-size: 22px;
  }

  .notc-fila {
    grid-template-columns: minmax(0, 1fr);
  }

  .notc-fila .notc-cantidad {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }

  .notc-ventana iframe {
    height: 280px;
  }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .notc-boton,
  .notc-boton::before,
  .notc-pestanas__raya,
  .notc-cantidad button {
    transition: none;
  }
}

/* Lista de precios en papel */
@media print {
  .notc-cabecera,
  .notc-menu,
  .notc-portada,
  .notc-tramo:not(#lista),
  .notc-pie,
  .notc-cantidad,
  .notc-cesta,
  .notc-invita,
  .notc-polaroid,
  .notc-codo,
  [data-permit-strip],
  .piece-holder {
    display: none !important;
  }

  body,
  .notc-campo,
  .notc-baldosa {
    background: hsl(0, 0%, 100%) !important;
    color: hsl(0, 0%, 8%) !important;
  }

  .notc-impreso {
    display: block !important;
    margin-bottom: 16px;
    font-size: 14px;
  }

  #lista {
    padding: 0;
  }

  #lista .notc-escalon {
    margin: 0;
  }

  .notc-bento {
    display: block;
  }

  .notc-baldosa {
    break-inside: avoid;
    padding: 8px 0;
  }

  .notc-fila {
    break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

.notc-impreso {
  display: none;
}
