/* ==========================================================
   PALETA VILLARÁN — "la página es un lienzo"
   ========================================================== */

:root {
  --hueso: #F5F0E3;        /* esmalte cerámico, base de sus platos */
  --hueso-claro: #FBF8EF;
  --tinta: #0D0D0D;        /* tinta china */
  --azul: #2417FF;         /* klein eléctrico */
  --fucsia: #FF1F9C;
  --fosforito: #A8FF00;
  --naranja: #FF4D00;      /* el naranja del ojo */
  --turquesa: #00C8B4;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-mano: "Shantell Sans", cursive;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --ancho: min(1200px, 92vw);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--hueso);
  color: var(--tinta);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  /* grano de papel */
  background-image:
    radial-gradient(rgba(20,20,20,0.028) 1px, transparent 1.4px);
  background-size: 5px 5px;
}

::selection { background: var(--fosforito); color: var(--tinta); }

img { max-width: 100%; display: block; }

em { font-style: italic; }

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- utilidades tipográficas ---------- */

.cejilla {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.cejilla::before {
  content: "";
  width: 2.2em; height: 3px;
  background: var(--fucsia);
  border-radius: 2px;
  transform: rotate(-2deg);
}
.cejilla--centrada { justify-content: center; display: flex; }
.cejilla--centrada::after {
  content: "";
  width: 2.2em; height: 3px;
  background: var(--azul);
  border-radius: 2px;
  transform: rotate(2deg);
}
.cejilla--clara { color: var(--hueso); }

.titulo-seccion {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0.5em 0 0.55em;
}
.titulo-seccion--claro { color: var(--hueso); }

.txt-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--tinta);
}
.txt-outline-claro {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--hueso);
}
.txt-fosforito { color: var(--fosforito); }
.txt-fucsia { color: var(--fucsia); }

.nota-mano {
  font-family: var(--f-mano);
  font-weight: 500;
  font-size: 1rem;
  color: var(--tinta);
  opacity: 0.75;
  line-height: 1.35;
}
.nota-mano--clara { color: var(--hueso); opacity: 0.7; }

/* ---------- botones ---------- */

.boton {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--hueso-claro);
  background: var(--tinta);
  border: none;
  cursor: pointer;
  position: relative;
  border-radius: 999px;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  box-shadow: 4px 4px 0 var(--fucsia);
}
.boton:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .boton:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--fucsia); }
  .boton:hover:active { transform: scale(0.97); }
}
.boton:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}
.boton--grande { font-size: 1.05rem; padding: 1.05em 2em; }
.boton--mini { font-size: 0.85rem; padding: 0.65em 1.4em; box-shadow: 3px 3px 0 var(--fosforito); }
@media (hover: hover) and (pointer: fine) {
  .boton--mini:hover { box-shadow: 5px 5px 0 var(--fosforito); }
}
.boton--claro {
  background: var(--fosforito);
  color: var(--tinta);
  box-shadow: 4px 4px 0 var(--fucsia), 7px 7px 0 var(--tinta);
}
@media (hover: hover) and (pointer: fine) {
  .boton--claro:hover { box-shadow: 6px 6px 0 var(--fucsia), 10px 10px 0 var(--tinta); }
}

/* ---------- cabecera ---------- */

.cabecera {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  pointer-events: none;
}
.cabecera > * { pointer-events: auto; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--tinta);
}
.logo-texto {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.logo-blobs { position: relative; width: 26px; height: 26px; display: inline-block; }
.logo-blobs .b { position: absolute; border-radius: 50%; width: 15px; height: 15px; }
.b1 { background: var(--fucsia); top: 0; left: 0; }
.b2 { background: var(--azul); top: 2px; right: 0; }
.b3 { background: var(--fosforito); bottom: 0; left: 6px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6rem 1rem 4rem;
}

#lienzo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;   /* el dedo pinta en horizontal y deja hacer scroll vertical */
}

.hero-contenido {
  position: relative;
  text-align: center;
  max-width: 900px;
  pointer-events: none;   /* que el ratón pinte "a través" del texto */
}
.hero-contenido a, .hero-contenido button { pointer-events: auto; }

.titulo {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-size: clamp(3.2rem, 12.5vw, 9.5rem);
  margin: 0.18em 0 0.22em;
  user-select: none;
}
.titulo .linea1, .titulo .linea2 { display: block; white-space: nowrap; }

/* letras pintadas: el JS envuelve cada letra en .letra */
.letra {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em) rotate(4deg);
  animation: letra-entra 640ms var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes letra-entra {
  60% { transform: translateY(-0.04em) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.letra--azul { color: var(--azul); }
.letra--fucsia { color: var(--fucsia); }
.letra--verde { color: var(--fosforito); text-shadow: 0 0 0 var(--tinta); -webkit-text-stroke: 2.5px var(--tinta); }
.letra--naranja { color: var(--naranja); }
.letra--hueca { color: transparent; -webkit-text-stroke: 2.5px var(--tinta); }

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 34em;
  margin: 0 auto 2.2rem;
}
.hero-sub em { background: linear-gradient(transparent 62%, var(--fosforito) 62%, var(--fosforito) 94%, transparent 94%); font-style: italic; }

.hero-acciones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.hero-acciones .nota-mano { text-align: left; transform: rotate(-3deg); }

.limpiar {
  position: absolute;
  bottom: 1.1rem;
  right: 1.2rem;
  font-family: var(--f-mano);
  font-size: 0.85rem;
  background: transparent;
  border: 1.5px dashed rgba(20,20,20,0.45);
  color: rgba(20,20,20,0.65);
  border-radius: 999px;
  padding: 0.4em 1em;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms ease, opacity 160ms ease;
  opacity: 0;
}
.limpiar.visible { opacity: 1; }
.limpiar:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .limpiar:hover { background: rgba(20,20,20,0.06); }
}

/* trazos SVG gestuales */
.trazo { position: absolute; pointer-events: none; }
.trazo path {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 7;
  stroke-linecap: round;
}
.trazo--hero-1 { width: clamp(160px, 24vw, 320px); top: 12%; left: 3%; transform: rotate(-8deg); }
.trazo--hero-2 { width: clamp(110px, 15vw, 210px); bottom: 10%; right: 5%; transform: rotate(6deg); }
.trazo--manifiesto { width: min(380px, 60vw); margin: 0 auto 1rem; position: static; display: block; }
.trazo--manifiesto path { stroke-width: 6; stroke: var(--azul); }
.trazo--artista { width: 46%; bottom: -9%; left: -14%; transform: rotate(-4deg); }
.trazo--artista path { stroke: var(--fucsia); stroke-width: 9; }

/* salpicaduras de pintura */
.salpicadura {
  position: absolute;
  border-radius: 47% 53% 60% 40% / 55% 45% 55% 45%;
  filter: blur(0.5px);
  pointer-events: none;
}
.salpicadura--fucsia { width: 130px; height: 110px; background: var(--fucsia); top: 16%; right: 10%; opacity: 0.9; border-radius: 62% 38% 46% 54% / 48% 60% 40% 52%; }
.salpicadura--fucsia::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: var(--fucsia); right: -34px; top: 55%;
}
.salpicadura--verde { width: 90px; height: 84px; background: var(--fosforito); bottom: 22%; left: 8%; }
.salpicadura--azul { width: 56px; height: 50px; background: var(--azul); top: 30%; left: 16%; border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; }

/* ---------- marquesina ---------- */

.marquesina {
  background: var(--tinta);
  color: var(--hueso);
  overflow: hidden;
  padding: 0.9rem 0;
  transform: rotate(-1.2deg) scale(1.02);
  border-top: 3px solid var(--tinta);
  border-bottom: 3px solid var(--tinta);
}
.marquesina-pista {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquesina 22s linear infinite;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
/* palabras de la marquesina a juego con su punto */
.marquesina-pista span:nth-of-type(4n + 1) { color: var(--fucsia); }
.marquesina-pista span:nth-of-type(4n + 2) { color: var(--fosforito); }
.marquesina-pista span:nth-of-type(4n + 3) { color: #6E7BFF; }
.marquesina-pista span:nth-of-type(4n + 4) { color: var(--naranja); }

.punto { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.p-fucsia { background: var(--fucsia); }
.p-verde { background: var(--fosforito); }
.p-azul { background: var(--azul); }
.p-naranja { background: var(--naranja); }
@keyframes marquesina { to { transform: translateX(-50%); } }

/* ---------- manifiesto ---------- */

.manifiesto {
  text-align: center;
  padding: clamp(5rem, 12vw, 9rem) 1rem;
  max-width: var(--ancho);
  margin: 0 auto;
}
.manifiesto-frase {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.manifiesto-frase span { display: block; }
.manifiesto-frase--pintada {
  color: var(--fucsia);
  transform: rotate(-1.5deg);
  text-shadow: 0.045em 0.05em 0 var(--tinta);
}
.manifiesto-texto {
  max-width: 38em;
  margin: 1.8rem auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* ---------- la paleta (hueco) ---------- */

.seccion-paleta {
  padding: clamp(3rem, 7vw, 6rem) 1rem;
  text-align: center;
}
.paleta-escenario {
  position: relative;
  width: min(640px, 94vw);
  margin: 2.2rem auto 0;
}
.paleta-silueta { width: 100%; height: auto; display: block; }
.paleta-borde {
  fill: var(--hueso-claro);
  stroke: var(--tinta);
  stroke-width: 3.5;
  stroke-dasharray: 14 12;
  stroke-linecap: round;
  animation: hormigas 30s linear infinite;
}
.paleta-agujero {
  fill: var(--hueso);
  stroke: var(--tinta);
  stroke-width: 3;
  stroke-dasharray: 10 9;
  animation: hormigas 30s linear infinite reverse;
}
@keyframes hormigas { to { stroke-dashoffset: -520; } }

.paleta-hueco {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 14%;
}
.hueco-etiqueta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  border: 1.5px solid var(--tinta);
  border-radius: 999px;
  padding: 0.35em 1.1em;
  background: var(--hueso);
}
.paleta-hueco strong {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.4vw, 2.3rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.hueco-nota { transform: rotate(-2deg); }

.mancha {
  position: absolute;
  border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%;
  z-index: -1;
  border: 3px solid var(--tinta);
  box-shadow: 5px 5px 0 var(--tinta);
  animation: flotar 7s var(--ease-in-out) infinite alternate;
}
.mancha--1 { width: 120px; height: 100px; background: var(--azul); top: -8%; right: 2%; }
.mancha--2 { width: 90px; height: 86px; background: var(--fosforito); bottom: -6%; left: 4%; animation-delay: -2.5s; }
.mancha--3 { width: 64px; height: 58px; background: var(--naranja); top: 30%; left: -7%; animation-delay: -5s; }
@keyframes flotar { to { transform: translateY(-14px) rotate(6deg); } }

/* ---------- los colores (hueco) ---------- */

.seccion-colores {
  background: var(--tinta);
  color: var(--hueso);
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 1rem;
  transform: rotate(0deg);
}
.seccion-colores .titulo-seccion { color: var(--hueso); }
.seccion-colores .txt-outline { -webkit-text-stroke-color: var(--hueso); }
.colores-sub { opacity: 0.75; margin-bottom: 3rem; }

.colores-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
  max-width: 880px;
  margin: 0 auto;
}
.pastilla { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.pastilla-circulo {
  width: clamp(84px, 12vw, 130px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px dashed var(--tinte, rgba(245,240,227,0.55));
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: color-mix(in srgb, var(--tinte, #F5F0E3) 80%, white);
  box-shadow: 0 0 22px color-mix(in srgb, var(--tinte, transparent) 32%, transparent),
              inset 0 0 18px color-mix(in srgb, var(--tinte, transparent) 22%, transparent);
  position: relative;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, color 220ms ease, box-shadow 220ms var(--ease-out), background-color 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .pastilla:hover .pastilla-circulo {
    background-color: var(--tinte);
    border-color: var(--tinte);
    color: transparent;
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 0 34px color-mix(in srgb, var(--tinte) 65%, transparent);
  }
}
.pastilla-nombre {
  font-family: var(--f-mano);
  font-size: 0.9rem;
  opacity: 0.7;
}
/* la pastilla negra necesita borde claro para no desaparecer sobre el fondo */
.pastilla[style*="#131313"] .pastilla-circulo {
  border-color: rgba(245,240,227,0.7);
  color: rgba(245,240,227,0.7);
  box-shadow: 0 0 22px rgba(245,240,227,0.12);
}

/* ---------- obra / texturas ---------- */

.seccion-obra { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.obra-cabecera {
  max-width: var(--ancho);
  margin: 0 auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: end;
}
.obra-cabecera p { max-width: 30em; }

.obra-marquesina { transform: rotate(-1.5deg) scale(1.03); }
.obra-pista {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  width: max-content;
  animation: marquesina 46s linear infinite;
}
.obra-carta {
  width: clamp(220px, 26vw, 340px);
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  border-radius: 14px;
  border: 3px solid var(--tinta);
  box-shadow: 7px 7px 0 var(--tinta);
  background: var(--hueso-claro);
  flex: none;
  transition: transform 240ms var(--ease-out);
}
/* sombras de color rotando: las cartas parecen recién despegadas de la mesa */
.obra-carta:nth-child(5n + 1) { box-shadow: 7px 7px 0 var(--fucsia), 10px 10px 0 var(--tinta); }
.obra-carta:nth-child(5n + 2) { box-shadow: 7px 7px 0 var(--fosforito), 10px 10px 0 var(--tinta); }
.obra-carta:nth-child(5n + 3) { box-shadow: 7px 7px 0 var(--azul), 10px 10px 0 var(--tinta); }
.obra-carta:nth-child(5n + 4) { box-shadow: 7px 7px 0 var(--naranja), 10px 10px 0 var(--tinta); }
.obra-carta:nth-child(5n + 5) { box-shadow: 7px 7px 0 var(--turquesa), 10px 10px 0 var(--tinta); }
.obra-carta:nth-child(odd) { transform: rotate(1.4deg); }
.obra-carta:nth-child(even) { transform: rotate(-1.6deg) translateY(10px); }
.obra-carta img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .obra-carta:hover { transform: rotate(0deg) scale(1.03); }
}

/* ---------- el esfinge ---------- */

.seccion-esfinge {
  background: var(--tinta);
  color: var(--hueso);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.esfinge-dibujo { position: relative; display: grid; place-items: center; }
#gato { width: min(400px, 80vw); height: auto; position: relative; z-index: 1; }

.gl {
  fill: none;
  stroke: var(--hueso);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gl--fina { stroke-width: 3; opacity: 0.85; }
.gl--ojo { stroke: var(--fosforito); stroke-width: 4.5; filter: drop-shadow(0 0 7px rgba(168,255,0,0.75)); }
.gl--pupila { stroke: var(--fosforito); stroke-width: 6; filter: drop-shadow(0 0 7px rgba(168,255,0,0.75)); }
.gl--collar { stroke: var(--fucsia); stroke-width: 4; filter: drop-shadow(0 0 7px rgba(255,31,156,0.7)); }
.gl--rabo { stroke-width: 6; }

/* el JS asigna dasharray/offset y anima el dibujo */
.esfinge-brillo {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,255,0,0.16), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.esfinge-texto p { max-width: 34em; }
.esfinge-texto .nota-mano { display: inline-block; margin-top: 1.4rem; transform: rotate(-1.5deg); }

/* ---------- el artista ---------- */

.seccion-artista {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 1rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.artista-marco {
  position: relative;
  justify-self: center;
  width: min(420px, 88vw);
}
.artista-fondo {
  position: absolute;
  inset: -6% -8% -4% -6%;
  background: var(--azul);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  transform: rotate(-3deg);
}
.artista-foto {
  position: relative;
  border-radius: 50% 50% 46% 54% / 55% 55% 45% 45%;
  border: 4px solid var(--tinta);
  filter: saturate(1.05) contrast(1.04);
  transform: rotate(1.5deg);
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .artista-marco:hover .artista-foto { transform: rotate(0deg) scale(1.02); }
}
.artista-datos {
  list-style: none;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.artista-datos li { display: flex; flex-direction: column; max-width: 11em; }
.artista-datos strong {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--azul);
}
.artista-datos li:nth-child(2) strong { color: var(--fucsia); }
.artista-datos li:nth-child(3) strong { color: var(--naranja); }
.artista-datos span { font-size: 0.9rem; opacity: 0.8; margin-top: 0.3rem; }

/* ---------- avísame ---------- */

.seccion-aviso {
  position: relative;
  background: var(--azul);
  color: var(--hueso-claro);
  text-align: center;
  padding: clamp(5rem, 11vw, 9rem) 1rem;
  overflow: hidden;
}
.aviso-titulo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.aviso-sub {
  max-width: 34em;
  margin: 1.6rem auto 2.4rem;
  opacity: 0.92;
}
.aviso-form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.aviso-form input {
  font-family: var(--f-body);
  font-size: 1.05rem;
  padding: 1em 1.4em;
  border-radius: 999px;
  border: 3px solid var(--tinta);
  background: var(--hueso-claro);
  color: var(--tinta);
  width: min(340px, 80vw);
  transition: box-shadow 160ms var(--ease-out);
}
.aviso-form input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--fosforito);
}
.aviso-ok {
  margin-top: 1.4rem;
  font-family: var(--f-mano);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms var(--ease-out);
}
.aviso-ok.visible { opacity: 1; transform: translateY(0); }

.salpicadura--aviso-1 { width: 150px; height: 130px; background: var(--fucsia); top: -30px; left: 6%; border: 3px solid var(--tinta); box-shadow: 6px 6px 0 var(--tinta); }
.salpicadura--aviso-2 { width: 110px; height: 96px; background: var(--fosforito); bottom: -20px; right: 8%; border-radius: 40% 60% 52% 48% / 58% 42% 58% 42%; border: 3px solid var(--tinta); box-shadow: 6px 6px 0 var(--tinta); }

/* ---------- pie ---------- */

.pie {
  background: var(--tinta);
  color: var(--hueso);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem clamp(1rem, 4vw, 2.5rem);
  font-size: 0.9rem;
}
.pie-firma { font-family: var(--f-mano); opacity: 0.8; }

/* ---------- reveals on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 600ms ease, transform 600ms var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .obra-cabecera { grid-template-columns: 1fr; align-items: start; }
  .seccion-esfinge { grid-template-columns: 1fr; text-align: center; }
  .esfinge-texto .cejilla { justify-content: center; }
  .seccion-artista { grid-template-columns: 1fr; }
  .artista-datos { justify-content: center; }
  .seccion-artista { text-align: center; }
  .seccion-artista .cejilla { justify-content: center; display: inline-flex; }
  .colores-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trazo--hero-2 { display: none; }
}

@media (max-width: 520px) {
  .titulo .linea1, .titulo .linea2 { white-space: normal; }
  .hero-acciones .nota-mano { transform: rotate(0); text-align: center; }
  .obra-carta { width: 74vw; }
}

/* ---------- modo captura (?foto): todo visible, sin animaciones ---------- */

html.modo-foto { scroll-behavior: auto; }
html.modo-foto .reveal { opacity: 1; transform: none; transition: none; }
html.modo-foto .letra { animation: none; opacity: 1; transform: none; }
html.modo-foto .gl { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .letra { animation: none; opacity: 1; transform: none; }
  .marquesina-pista, .obra-pista { animation: none; width: auto; flex-wrap: wrap; }
  .mancha, .paleta-borde, .paleta-agujero { animation: none; }
  .reveal { transition: opacity 300ms ease; transform: none; }
  .gl { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}
