/* Tres veces breve — sistema visual.
   Tokens con los mismos nombres que tres-veces-breve-sistema/tokens.json.
   Cada página alterna su fondo: papel, rojo o violeta (data-fondo en <html>). */

:root {
  /* color: el violeta es ella, el rojo bordó es Antonio (el corazón cosido) */
  --ground: #f6f4fa;
  --ground-raised: #ffffff;
  --ground-sunk: #ece8f2;
  --line: #d9d2e4;
  --ink: #1f1029;
  --ink-muted: #463a54;
  --hilo: #482869;
  --hilo-sombra: #2c1048;
  --hilo-brillo: #8f74b0;
  --hilo-tenue: #c9bedb;
  --violeta: #6d5a8c;
  --rojo: #a50b16;
  --bordo: #5b181e;
  --on-hilo: #f6f4fa;
  --focus-ring: var(--rojo);
  --acento: var(--rojo);          /* la palabra en cursiva de los titulares */
  --halo: 255, 255, 255;          /* resplandor detrás de los titulares (r, g, b) */

  /* color de cada sección (menú, fondo del túnel en las subpáginas) */
  --c-artistas: #482869;
  --c-quienes: #5b181e;
  --c-que: #6d5a8c;
  --c-como: #a50b16;
  --c-ig: #2c1048;

  /* tipografía */
  --font-titular: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --titular-ancho: 125%;
  --titular-peso: 820;
  --font-texto: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-cursiva: "Instrument Serif", Georgia, serif;

  /* legibilidad de los titulares sobre la red: un resplandor de papel, sin duplicar la letra */
  --sombra-tit: 0 0 .04em rgba(var(--halo), 1), 0 0 .12em rgba(var(--halo), .95), 0 0 .3em rgba(var(--halo), .75);
  --sombra-em: 0 0 .05em rgba(var(--halo), 1), 0 0 .16em rgba(var(--halo), .9), 0 0 .36em rgba(var(--halo), .7);

  /* espacio */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --margen: clamp(16px, 4vw, 56px);
  --alto-cabecera: 72px;

  /* hilo e inclinación */
  --hilo-fino: 1.6px; --hilo-medio: 3px; --hilo-grueso: 5px;
  --tilt-leve: -2deg; --tilt: -5deg; --tilt-contra: 4deg;

  --curva: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* —— Fondos: cada página tiene el suyo (papel, rojo o violeta) y el final del túnel en el color que contrasta ——
   data-fondo va en <html>; lo pone la app al navegar. Sobre rojo y violeta la tinta pasa a ser clara. */
:root:is([data-fondo="rojo"], [data-fondo="violeta"]) {
  --ink: #ffffff;
  --ink-muted: #f4ecfb;
  --hilo: #ffffff;
  --hilo-tenue: rgba(255, 255, 255, .55);
  --line: rgba(255, 255, 255, .35);
  --focus-ring: #ffffff;
  color-scheme: dark;
}
:root[data-fondo="violeta"] { --ground: #3b2160; --ground-sunk: #2c1645; --acento: #ffb3ba; --halo: 30, 10, 52; }
:root[data-fondo="rojo"] { --ground: #8f0a15; --ground-sunk: #6e0710; --acento: #e9dcff; --halo: 64, 4, 14; }
/* las islas de papel conservan la tinta oscura */
:root:is([data-fondo="rojo"], [data-fondo="violeta"]) :is(.papelito, .hoja, .formulario, .visor-ficha, .compartir, .qr, .cabecera, .boton, .obras-lista, .pasos, .menu-movil .pie-menu, .carrusel-controles .flecha, .carrusel-etiqueta) {
  --ink: #1f1029; --ink-muted: #463a54; --hilo: #482869; --hilo-tenue: #c9bedb; --line: #d9d2e4; --ground: #f6f4fa; --ground-sunk: #ece8f2; --acento: #a50b16; --halo: 255, 255, 255; --focus-ring: #a50b16;
  color: var(--ink);
}
:root:is([data-fondo="rojo"], [data-fondo="violeta"]) .boton--lleno { --hilo: #2c1048; }
:root[data-fondo="violeta"] :is(.visor, .menu-movil) { background: rgba(44, 22, 69, .97); }
:root[data-fondo="rojo"] :is(.visor, .menu-movil) { background: rgba(110, 7, 16, .97); }
:root:is([data-fondo="rojo"], [data-fondo="violeta"]) .menu-movil .pie-menu { background: #fff; padding: 10px 12px; }
:root:is([data-fondo="rojo"], [data-fondo="violeta"]) .mitad--ella h3 { color: #e4d6ff; }
:root:is([data-fondo="rojo"], [data-fondo="violeta"]) .mitad--el h3 { color: #ffc4c9; }

/* titulares alternativos (probador del sistema) */
:root[data-titular="unbounded"] { --font-titular: "Unbounded", "Archivo", sans-serif; --titular-ancho: 100%; --titular-peso: 760; }
:root[data-titular="bricolage"] { --font-titular: "Bricolage Grotesque", "Archivo", sans-serif; --titular-ancho: 75%; --titular-peso: 800; }
/* sombras alternativas (probador del sistema) */
:root[data-sombra="paralela"] { --sombra-tit: .05em .05em 0 rgba(var(--halo), 1); --sombra-em: .05em .05em 0 rgba(var(--halo), 1); }
:root[data-sombra="ninguna"] { --sombra-tit: none; --sombra-em: none; }
:root[data-sombra="halo"] { --sombra-tit: none; --sombra-em: none; }
:root[data-sombra="halo"] :is(.titular, .display) { -webkit-text-stroke: .1em rgba(var(--halo), 1); paint-order: stroke fill; }
:root[data-sombra="halo"] :is(.titular, .display) em { -webkit-text-stroke: .08em rgba(var(--halo), 1); }
:root[data-sombra="papel"] { --sombra-tit: none; --sombra-em: none; }
:root[data-sombra="papel"] :is(.titular, .display) .l { background: rgba(var(--halo), 1); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .1em; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* ninguna palabra se corta: ni guiones ni saltos a mitad de palabra */
  -webkit-hyphens: manual; hyphens: manual; overflow-wrap: normal; word-break: normal;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--hilo); color: var(--on-hilo); }

/* las obras no se arrastran ni se guardan con un toque largo */
.protegida img, img.protegida, .visor img, .obras-lista img, .retrato img, .carrusel img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* papel: un grano casi imperceptible debajo de la red, para que el fondo tenga materia */
.papel {
  background-color: var(--ground);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .2  0 0 0 0 .4  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

/* —— Íconos (js/iconos.js) —— */
.icono { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; overflow: visible; }
.icono .nudo { fill: currentColor; stroke: none; }
.icono--grande { width: 28px; height: 28px; }

/* —— Tipografía —— */
.titular, .display {
  font-family: var(--font-titular);
  font-stretch: var(--titular-ancho);
  font-weight: var(--titular-peso);
  text-transform: uppercase;
  letter-spacing: -.012em;
  line-height: .86;
  margin: 0;
  text-wrap: balance;
  text-shadow: var(--sombra-tit);
}
.display { font-size: clamp(52px, 8.4vw, 140px); }
.titular { font-size: clamp(32px, 4.6vw, 68px); }
.titular--chico { font-size: clamp(24px, 2.6vw, 34px); line-height: .92; }
.titular em, .display em, .cursiva {
  font-family: var(--font-cursiva);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -.01em;
  font-size: 1.1em;
  line-height: .7;
}
.titular em, .display em { color: var(--acento); padding-right: .04em; text-shadow: var(--sombra-em); }
.texto { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.62; max-width: 34em; margin: 0 0 1em; text-wrap: pretty; }
.texto em { font-family: var(--font-cursiva); font-style: italic; font-size: 1.16em; line-height: 1; color: var(--hilo); }
.bajada, .ingles { font-style: italic; color: var(--ink-muted); font-size: .9em; text-shadow: 0 0 .4em rgba(var(--halo), 1), 0 0 .15em rgba(var(--halo), 1); }
.ficha { font-size: 13px; line-height: 19px; font-weight: 500; letter-spacing: .01em; color: var(--ink-muted); }
.etiqueta { font-size: 11px; line-height: 14px; font-weight: 640; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.numero { font-family: var(--font-cursiva); font-style: italic; color: var(--acento); font-size: 1.5em; letter-spacing: 0; text-transform: none; font-weight: 400; }

/* —— Inclinación: rompe la horizontal (nunca en párrafos) —— */
.tilt-leve { transform: rotate(var(--tilt-leve)); }
.tilt { transform: rotate(var(--tilt)); }
.tilt-contra { transform: rotate(var(--tilt-contra)); }

/* —— Acciones —— */
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  font: 560 15px/20px var(--font-texto); letter-spacing: .01em;
  padding: 12px 20px; border: 2px solid var(--hilo); background: var(--ground-raised); color: var(--hilo);
  cursor: pointer; position: relative; border-radius: 0; text-decoration: none;
  transition: background .2s, color .2s, transform .35s var(--curva), border-color .2s;
}
.boton::before, .boton::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 999px; background: var(--hilo-sombra); }
.boton::before { top: -5px; left: -5px; }
.boton::after { bottom: -5px; right: -5px; }
.boton:hover { background: var(--hilo); color: var(--on-hilo); transform: rotate(var(--tilt-leve)); }
.boton--lleno { background: var(--hilo); color: var(--on-hilo); }
.boton--lleno:hover { background: var(--bordo); border-color: var(--bordo); }
.boton--chico { padding: 8px 14px; font-size: 13px; gap: 8px; }
.boton[disabled] { opacity: .5; cursor: wait; }
.enlace { color: var(--hilo); text-decoration: none; padding-bottom: 1px; box-shadow: inset 0 -1.5px 0 var(--hilo); transition: box-shadow .25s, color .25s; display: inline-flex; align-items: center; gap: 6px; }
.enlace:hover { color: var(--rojo); box-shadow: inset 0 -3px 0 var(--rojo); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* —— Papeles: rótulos recortados apoyados sobre la red —— */
.papelito {
  display: inline-block; background: var(--ground-raised); color: var(--ink);
  padding: 8px 14px 10px; box-shadow: 0 0 0 1.5px var(--hilo), 5px 6px 0 rgba(44, 16, 72, .16);
  transform: rotate(var(--tilt-leve));
}

/* ——————————————————————————————————— Escenario ——— */
.escena { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.escena canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
/* tema B: el violeta del fondo, con el tono de cada sección (dos capas que se funden al cambiar) */
.fondo-tema { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--curva); }
.fondo-tema.on { opacity: 1; }
.fondo-tema::after { content: ""; position: absolute; inset: 0; opacity: .7; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* el resplandor al fondo del túnel: la tela roja en la portada, el color de la sección en el resto */
.fondo-centro {
  position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-radius: 50%; pointer-events: none;
  background: url("../img/marca/fondo-rojo.webp") center / cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, rgba(0, 0, 0, .62) 56%, rgba(0, 0, 0, .2) 78%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, rgba(0, 0, 0, .62) 56%, rgba(0, 0, 0, .2) 78%, transparent 100%);
  transition: opacity 1.2s var(--curva), background-color 1s; will-change: transform;
}
.fondo-centro.violeta { background: radial-gradient(closest-side, #6b4a98 0%, #482869 38%, #2c1048 70%, #1d0a33 100%); }
/* la tela roja de la entrada, a pantalla completa; al entrar se cierra hacia el centro del túnel */
.fondo-pleno {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0) 40%, rgba(40, 4, 10, .45) 100%), url("../img/marca/fondo-rojo.webp") center / cover;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 1.5s cubic-bezier(.7, 0, .2, 1), opacity .9s ease .9s;
}
.fondo-pleno.cerrado { opacity: 0; }
.velo { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .9s var(--curva); }
.velo--izq { background: linear-gradient(90deg, var(--ground) 0%, color-mix(in srgb, var(--ground) 94%, transparent) 34%, color-mix(in srgb, var(--ground) 55%, transparent) 50%, transparent 64%); }
.velo--der { background: linear-gradient(270deg, var(--ground) 0%, color-mix(in srgb, var(--ground) 94%, transparent) 34%, color-mix(in srgb, var(--ground) 55%, transparent) 50%, transparent 64%); }
.velo.on { opacity: 1; }

/* —— Cabecera: una tira de papel con el logo y, abajo, una línea fina del color de la página —— */
.cabecera {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--alto-cabecera);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--margen); background: rgba(255, 255, 255, .95);
  box-shadow: 0 14px 28px -18px rgba(44, 16, 72, .45);
}
.cabecera::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 3px; background: var(--linea, var(--hilo)); transition: background .8s var(--curva); }
/* el logo: las tres conchas sueltas; giran con el mouse encima y se quedan donde las dejás */
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.marca-conchas { position: relative; width: 50px; height: 50px; flex: none; }
.marca-conchas .concha img { filter: drop-shadow(0 2px 3px rgba(30, 10, 50, .3)); }
.marca:hover .giro, .marca:focus-visible .giro { animation-play-state: running; }
.marca > span { font-family: var(--font-titular); font-stretch: var(--titular-ancho); font-weight: var(--titular-peso); text-transform: uppercase; font-size: 18px; line-height: .86; letter-spacing: .01em; }
.marca > span em { display: block; font-family: var(--font-cursiva); font-style: italic; font-weight: 400; text-transform: none; color: var(--rojo); font-size: 1.3em; line-height: .9; font-stretch: 100%; letter-spacing: 0; }
/* florecer: al entrar, cada concha crece desde cero mientras gira */
.florece .marca-conchas .concha { animation: florece 1.1s var(--curva) both; }
.florece .marca-conchas .concha:nth-child(2) { animation-delay: .14s; }
.florece .marca-conchas .concha:nth-child(3) { animation-delay: .28s; }
.florece .marca > span { animation: entra .9s var(--curva) .35s both; }
@keyframes florece { from { transform: scale(0) rotate(-220deg); } 70% { transform: scale(1.08) rotate(8deg); } }
.cargando .cabecera, .cargando .vista { opacity: 0; pointer-events: none; }
.cabecera, .vista { transition: opacity .9s var(--curva); }

.cabecera nav { display: flex; align-items: center; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a {
  --c: var(--hilo);
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 12px; font-weight: 660; letter-spacing: .09em; text-transform: uppercase; color: var(--ink);
  padding: 10px 13px;
  /* resaltado: un rectángulo del color de la sección que se extiende detrás de todo el nombre */
  background: linear-gradient(color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c) 16%, transparent)) no-repeat left center / 0% 100%;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: background-size .45s var(--curva), box-shadow .3s, color .3s;
}
.menu a:hover, .menu a:focus-visible { background-size: 100% 100%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); }
.menu a[aria-current="page"] { background: var(--c); color: #fff; }
.menu [data-pag="artistas"] { --c: var(--c-artistas); }
.menu [data-pag="quienes-somos"] { --c: var(--c-quienes); }
.menu [data-pag="de-que-se-trata"] { --c: var(--c-que); }
.menu [data-pag="como-participar"] { --c: var(--c-como); }
/* idioma y contacto, juntos al final */
.nav-extra { display: flex; align-items: center; gap: 4px; margin-left: 14px; padding-left: 14px; box-shadow: inset 1.5px 0 0 var(--line); }
.icono-boton { width: 36px; height: 36px; display: grid; place-items: center; color: var(--hilo); text-decoration: none; transition: background .3s, color .3s; }
.icono-boton .icono { width: 20px; height: 20px; }
.icono-boton:hover, .icono-boton:focus-visible { background: var(--hilo); color: #fff; }
.idiomas { display: flex; align-items: center; gap: 0; margin-right: 6px; padding: 3px; box-shadow: inset 0 0 0 1.5px var(--hilo-tenue); }
.idiomas .icono { color: var(--hilo); margin: 0 4px 0 6px; }
.idiomas a { text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 5px 8px; color: var(--ink-muted); }
.idiomas a[aria-current] { background: var(--hilo); color: #fff; }
.menu-boton { display: none; }

/* —— Menú en el celular: un mosaico de baldosas a pantalla completa —— */
.menu-movil { position: fixed; inset: 0; z-index: 25; display: none; padding: calc(var(--alto-cabecera) + 22px) 14px 18px; background: rgba(246, 244, 250, .97); overflow: auto; }
.menu-movil.abierto { display: block; }
.menu-movil .baldosas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.menu-movil .baldosa {
  --c: var(--hilo); position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 112px; padding: 14px 16px;
  background: var(--c); color: #fff; text-decoration: none; overflow: hidden; animation: baldosa .55s var(--curva) both;
}
.menu-movil .baldosa b { font-family: var(--font-titular); font-stretch: var(--titular-ancho); font-weight: var(--titular-peso); text-transform: uppercase; font-size: 21px; line-height: .95; }
.menu-movil .baldosa .icono { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; opacity: .85; }
.menu-movil .baldosa[aria-current="page"]::after { content: ""; position: absolute; left: 16px; bottom: 9px; width: 34px; height: 3px; background: #fff; }
.menu-movil .b1 { grid-column: span 6; min-height: 128px; --c: var(--c-artistas); }
.menu-movil .b2 { grid-column: span 6; --c: var(--c-quienes); }
.menu-movil .b4 { grid-column: span 3; --c: var(--c-que); }
.menu-movil .b5 { grid-column: span 3; --c: var(--c-como); }
.menu-movil :is(.b4, .b5) b { font-size: clamp(14px, 4.2vw, 21px); }
.menu-movil .baldosa:nth-child(2) { animation-delay: .05s; } .menu-movil .baldosa:nth-child(3) { animation-delay: .1s; }
.menu-movil .baldosa:nth-child(4) { animation-delay: .15s; }
@keyframes baldosa { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } }
.menu-movil .pie-menu { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.menu-movil .pie-menu .contactos { display: flex; gap: 6px; }
.menu-movil .idiomas a { font-size: 14px; padding: 8px 14px; }
/* el botón del menú: tres líneas que se vuelven una cruz */
.boton-lineas { position: relative; width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; color: var(--hilo); }
.boton-lineas i { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--curva), opacity .25s; }
.boton-lineas i:nth-child(1) { top: 14px; }
.boton-lineas i:nth-child(2) { top: 21px; }
.boton-lineas i:nth-child(3) { top: 28px; }
.boton-lineas[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.boton-lineas[aria-expanded="true"] i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.boton-lineas[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* —— Vistas —— */
.vista { position: relative; z-index: 10; min-height: 100vh; min-height: 100svh; pointer-events: none; }
.vista > * { pointer-events: auto; }
.entra > * { animation: entra .9s var(--curva) both; }
.entra > *:nth-child(2) { animation-delay: .08s; }
.entra > *:nth-child(3) { animation-delay: .16s; }
.entra > *:nth-child(4) { animation-delay: .24s; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } }
.tensa { animation: tensa 1s var(--curva) both; }
/* el texto ya está en su lugar desde el principio: solo se estira un poco a lo ancho, así los renglones no saltan */
@keyframes tensa { from { scale: .9 1; opacity: 0; } 45% { opacity: 1; } }

/* —— Lo que cuelga del centro del túnel: las conchas (entrada), el carrusel (inicio), el corazón —— */
.colgante { position: fixed; z-index: 12; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transition: opacity .8s var(--curva); }
.colgante.fuera { opacity: 0; }
#conchas { position: fixed; }
.colgante.fuera * { pointer-events: none !important; }
.colgante-grupo { position: absolute; transform-origin: 0 0; will-change: transform; }
.concha { position: absolute; border-radius: 50%; pointer-events: auto; }
.concha .giro { display: block; width: 100%; height: 100%; animation: gira 2.6s linear infinite; animation-direction: var(--sentido, normal); animation-play-state: paused; }
.concha img { width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(30, 10, 50, .38)); }
@keyframes gira { to { transform: rotate(360deg); } }
/* las conchas giran sin parar mientras el mouse está sobre el logo */
.colgante-grupo:hover .concha .giro { animation-play-state: running; }
/* al elegir idioma, cada concha se encoge hasta desaparecer mientras gira */
#conchasGrupo .concha { transition: transform .95s cubic-bezier(.6, 0, .35, 1); }
.encoge #conchasGrupo .concha { transform: scale(0) rotate(250deg); }
.encoge #conchasGrupo .concha:nth-child(2) { transition-delay: .08s; }
.encoge #conchasGrupo .concha:nth-child(3) { transition-delay: .16s; }

.corazon-mitad { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; transition: transform 1s var(--curva); filter: drop-shadow(0 12px 16px rgba(30, 10, 50, .35)); }
.corazon-latido { position: absolute; inset: 0; animation: late 1.7s ease-in-out infinite; pointer-events: auto; cursor: pointer; }
.corazon-latido:hover .corazon-izq { transform: translateX(-7%) rotate(-4deg); }
.corazon-latido:hover .corazon-der { transform: translateX(7%) rotate(4deg); }
.uniendo .corazon-izq { animation: une-izq 1.6s var(--curva) both; }
.uniendo .corazon-der { animation: une-der 1.6s var(--curva) both; }
@keyframes une-izq { from { transform: translate(-26%, 6%) rotate(-14deg); opacity: 0; } 30% { opacity: 1; } }
@keyframes une-der { from { transform: translate(26%, -6%) rotate(14deg); opacity: 0; } 30% { opacity: 1; } }
@keyframes late { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.055); } 28% { transform: scale(.995); } 42% { transform: scale(1.03); } 60% { transform: scale(1); } }

/* —— Lo que tapa el final del túnel: una obra (artistas), las conchas (¿de qué se trata?),
   un marco vacío (¿cómo participar?), el video o el retrato (cada artista) —— */
.cubre-obra { position: absolute; inset: 0; clip-path: polygon(7% 3%, 95% 0, 100% 91%, 4% 100%); background: var(--ground-sunk); overflow: hidden; }
.cubre-obra img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--curva); }
.cubre-obra img.on { opacity: 1; }
.cubre-marco { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: auto; cursor: pointer; color: #fff; text-decoration: none; transition: transform .5s var(--curva); }
.cubre-marco:hover { transform: rotate(var(--tilt-leve)) scale(1.03); }
.cubre-marco svg.borde { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cubre-marco svg.borde polygon { fill: rgba(28, 8, 40, .5); stroke: #fff; stroke-width: 3; stroke-dasharray: 12 9; vector-effect: non-scaling-stroke; animation: hormiga 14s linear infinite; }
.cubre-marco:hover svg.borde polygon { fill: rgba(165, 11, 22, .55); }
@keyframes hormiga { to { stroke-dashoffset: -200; } }
.cubre-marco span { position: relative; display: grid; gap: 10px; justify-items: center; font-family: var(--font-titular); font-stretch: var(--titular-ancho); font-weight: var(--titular-peso); text-transform: uppercase; font-size: clamp(20px, 2.4vw, 36px); line-height: .95; text-shadow: 0 2px 12px rgba(30, 6, 30, .5); }
.cubre-marco span b { font-weight: inherit; }
.cubre-marco span em { font-family: var(--font-cursiva); font-weight: 400; text-transform: none; font-size: 1.2em; }
.cubre-marco .icono { width: 34px; height: 34px; }
.cubre-video { position: absolute; inset: 0; pointer-events: auto; }
.cubre-video-marco { --recorte: polygon(0 8%, 97% 0, 100% 94%, 3% 100%); position: absolute; inset: 0; background: #fff; clip-path: var(--recorte); cursor: pointer; }
.cubre-video-marco video { position: absolute; left: 5px; top: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; clip-path: var(--recorte); background: #1f1029; }
.cubre-video img.retrato { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(20, 4, 30, .45)); }
.cubre-video button { position: absolute; right: 7%; bottom: -16px; }
.cubre-conchas .concha img { filter: drop-shadow(0 12px 18px rgba(30, 10, 50, .45)); }

/* el video grande, con sonido */
.video-grande { position: fixed; inset: 0; z-index: 62; display: grid; place-items: center; padding: 24px; background: rgba(31, 16, 41, .92); opacity: 0; pointer-events: none; transition: opacity .35s; }
.video-grande.on { opacity: 1; pointer-events: auto; }
.video-grande video { max-width: min(1100px, 100%); max-height: calc(100svh - 120px); box-shadow: 0 0 0 1.5px #fff; background: #000; }
.video-grande .boton { position: absolute; top: 16px; right: 16px; }

/* —— Inicio: el carrusel de artistas cuelga en el centro del túnel —— */
.carrusel-marco { position: absolute; inset: 0; clip-path: polygon(7% 3%, 95% 0, 100% 91%, 4% 100%); background: var(--ground-sunk); pointer-events: auto; cursor: pointer; }
.carrusel-marco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--curva), transform 6.5s linear; pointer-events: none; }
.carrusel-marco img.on { opacity: 1; transform: scale(1); }
.carrusel-hilos { position: absolute; inset: -3%; pointer-events: none; }
.carrusel-pie { position: absolute; left: 56%; top: 66%; width: max-content; max-width: 260px; pointer-events: auto; transform: rotate(var(--tilt-leve)); }
.carrusel-pie .papelito { transform: none; display: grid; gap: 3px; padding: 10px 14px 12px; }
.carrusel-pie b { font-family: var(--font-titular); font-stretch: var(--titular-ancho); font-weight: var(--titular-peso); text-transform: uppercase; font-size: 19px; line-height: .95; }
.carrusel-pie i { font-family: var(--font-cursiva); font-size: 19px; line-height: 1.1; color: var(--hilo); }
.carrusel-pie .enlace { font-size: 13px; justify-self: start; margin-top: 4px; }
.carrusel-controles { position: absolute; inset: 0; pointer-events: none; }
.carrusel-controles button.flecha { position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; display: grid; place-items: center; border: 1.5px solid var(--hilo); background: var(--ground-raised); color: var(--hilo); cursor: pointer; pointer-events: auto; transition: background .2s, color .2s, transform .3s var(--curva); }
.carrusel-controles button.flecha[data-c="-1"] { right: calc(100% + 14px); }
.carrusel-controles button.flecha[data-c="1"] { left: calc(100% + 14px); }
.carrusel-controles button.flecha:hover { background: var(--hilo); color: var(--on-hilo); transform: rotate(var(--tilt-leve)); }
.carrusel-etiqueta { position: absolute; left: 0; bottom: calc(100% + 12px); white-space: nowrap; pointer-events: none; background: var(--ground-raised); color: var(--ink); padding: 5px 9px; box-shadow: 0 0 0 1.5px var(--hilo); transform: rotate(var(--tilt-leve)); }

/* —— Portada —— */
.portada-texto { position: fixed; z-index: 11; right: var(--margen); top: calc(var(--alto-cabecera) + 8vh); width: min(560px, 42vw); text-align: right; }
.portada-texto .titular { font-size: clamp(28px, 3vw, 50px); transform: rotate(var(--tilt)); transform-origin: 100% 0; margin-bottom: 30px; }
.portada-texto .papelito { text-align: left; padding: 14px 18px; transform: rotate(var(--tilt-contra)); max-width: 380px; }
.portada-texto .papelito p { margin: 0; font-size: 15px; line-height: 1.45; }
.portada-texto .acciones { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; margin-top: 26px; }

/* —— Página lateral (subpáginas) —— */
.lado { position: relative; width: min(600px, 46vw); padding: calc(var(--alto-cabecera) + 64px) 0 96px; }
.lado--izq { margin-left: var(--margen); }
.lado--der { margin-left: auto; margin-right: var(--margen); }
.lado .rotulo-pagina { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; text-shadow: 0 0 .5em rgba(var(--halo), 1), 0 0 .2em rgba(var(--halo), 1); }
.lado .rotulo-pagina .etiqueta, .lado > .etiqueta, .meta .etiqueta, .contacto { color: var(--ink); }
.lado .rotulo-pagina .icono { color: var(--acento); }
.lado .titular { transform: rotate(var(--tilt)); transform-origin: 0 100%; margin: 6px 0 40px; }
.lado--der .titular { transform: rotate(var(--tilt-contra)); }
.volver { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hoja { background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1.5px var(--hilo), 6px 8px 0 rgba(44, 16, 72, .1); padding: 26px 30px 12px; color: var(--ink); }

/* —— Artistas —— */
.lista-artistas { list-style: none; margin: 0; padding: 0; }
.lista-artistas a {
  display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; text-decoration: none; color: var(--ink);
  font-family: var(--font-titular); font-stretch: var(--titular-ancho); font-weight: var(--titular-peso); text-transform: uppercase;
  font-size: clamp(19px, 2.1vw, 30px); line-height: 1; padding: 7px 0; text-shadow: var(--sombra-tit); transition: color .25s, transform .4s var(--curva);
}
/* un grupo por país: la bandera y el nombre encima de sus artistas */
.grupos-pais { display: grid; gap: 30px; }
.pais-titulo { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding-bottom: 8px; box-shadow: inset 0 -1px 0 var(--line);
  font-family: var(--font-cursiva); font-style: italic; font-weight: 400; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.1; color: var(--ink); text-shadow: 0 0 .4em rgba(var(--halo), 1), 0 0 .15em rgba(var(--halo), 1); }
.pais-titulo small { margin-left: auto; font-family: var(--font-texto); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--ink-muted); }
.bandera { width: 1.3em; height: auto; flex: none; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(20, 4, 30, .3)); }
.pais-titulo .bandera { width: 34px; }
.meta .bandera { width: 22px; }
.lista-artistas a:hover, .lista-artistas a:focus-visible, .lista-artistas a.on { color: var(--acento); transform: translateX(10px) rotate(var(--tilt-leve)); }
.lista-artistas .ig { font-family: var(--font-texto); font-size: 13px; text-transform: none; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; font-stretch: 100%; text-shadow: none; display: inline-flex; gap: 4px; align-items: center; }

/* —— Artista —— */
.artista-nombre { font-size: clamp(34px, 4.8vw, 76px); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 30px; }
.obras-lista { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--hilo); background: rgba(255, 255, 255, .7); }
.obras-lista li { border-bottom: 1px solid var(--line); }
.obras-lista button {
  width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; text-align: left;
  background: none; border: 0; padding: 12px 4px; cursor: pointer; transition: background .2s; color: var(--ink);
}
.obras-lista button:hover, .obras-lista button:focus-visible, .obras-lista button.on { background: rgba(255, 255, 255, .95); }
.obras-lista img { width: 64px; height: 64px; object-fit: cover; clip-path: polygon(6% 0, 100% 8%, 94% 100%, 0 92%); filter: grayscale(.4); transition: filter .3s; pointer-events: none; }
.obras-lista button:hover img { filter: none; }
.obras-lista .t { font-weight: 640; font-size: 16px; line-height: 1.25; display: block; }
.obras-lista .t .bajada { font-weight: 400; display: block; font-size: 14px; text-shadow: none; }
.obras-lista .a { font-family: var(--font-cursiva); font-style: italic; font-size: 20px; color: var(--hilo); }
.navegar-artistas { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.extra { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-top: 34px; }

/* —— QR: mediano, blanco y negro, sobre papel y con nudos en las esquinas —— */
.qr { position: relative; margin: 0; display: inline-grid; gap: 8px; justify-items: center; background: var(--ground-raised); padding: 12px 12px 10px; box-shadow: 0 0 0 1.5px var(--hilo), 5px 6px 0 rgba(44, 16, 72, .14); transform: rotate(var(--tilt-contra)); }
.qr::before, .qr::after { content: ""; position: absolute; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--hilo-sombra); }
.qr::before { left: -5px; } .qr::after { right: -5px; }
.qr svg.codigo { width: 108px; height: 108px; display: block; shape-rendering: crispEdges; }
.qr figcaption { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink); }
.qr figcaption .icono { color: var(--hilo); }

/* —— Compartir —— */
.compartir { position: fixed; z-index: 65; display: none; background: var(--ground-raised); box-shadow: 0 0 0 1.5px var(--hilo), 6px 7px 0 rgba(44, 16, 72, .16); padding: 8px; transform: rotate(var(--tilt-leve)); }
.compartir.on { display: grid; }
.compartir a, .compartir button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 14px; text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); }
.compartir a:hover, .compartir button:hover { background: var(--ground-sunk); color: var(--hilo); }
.compartir .icono { color: var(--hilo); }
.compartir .qr { margin: 6px 8px 8px; transform: none; box-shadow: 0 0 0 1px var(--line); justify-self: start; }
.compartir .qr::before, .compartir .qr::after { display: none; }

/* —— Ficha de obra (visor) —— */
.visor { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 0; background: rgba(246, 244, 250, .97); opacity: 0; pointer-events: none; transition: opacity .35s; }
.visor.on { opacity: 1; pointer-events: auto; }
.visor-imagen { position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 40px; min-height: 0; }
.visor-imagen img { max-height: calc(100vh - 112px); max-height: calc(100svh - 112px); width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 0 0 1.5px var(--hilo), 10px 12px 0 rgba(44, 16, 72, .12); background: var(--ground-raised); transition: opacity .3s; pointer-events: none; }
.visor-escudo { position: absolute; inset: 0; }
.visor-ficha { background: var(--ground-raised); box-shadow: -1.5px 0 0 var(--hilo); padding: 72px 34px 34px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.visor-ficha h2 { font-family: var(--font-titular); font-stretch: var(--titular-ancho); font-weight: var(--titular-peso); text-transform: uppercase; font-size: 26px; line-height: .95; margin: 0; }
.visor-ficha dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 6px 0 0; font-size: 14px; align-items: center; }
.visor-ficha dt { color: var(--ink-muted); display: flex; align-items: center; gap: 6px; }
.visor-ficha dt .icono { color: var(--hilo); }
.visor-ficha dd { margin: 0; }
.visor-ficha dd .bajada { font-size: 13px; text-shadow: none; }
.visor-cerrar { position: absolute; top: 16px; right: 16px; z-index: 2; }
.visor-flechas { display: flex; gap: 12px; margin-top: auto; padding-top: 20px; flex-wrap: wrap; }
.visor-vistas { display: flex; gap: 8px; }
.visor-vistas button { width: 46px; height: 46px; padding: 0; border: 0; cursor: pointer; background: none; opacity: .55; }
.visor-vistas button.on { opacity: 1; box-shadow: 0 0 0 2px var(--rojo); }
.visor-vistas img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* —— Etiqueta flotante de las rendijas —— */
.pie-rendija { position: fixed; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .2s; max-width: 280px; transform: rotate(var(--tilt-leve)); }
.pie-rendija.on { opacity: 1; }
.pie-rendija .papelito { transform: none; }
.pie-rendija b { display: block; font-family: var(--font-titular); font-stretch: var(--titular-ancho); font-weight: var(--titular-peso); text-transform: uppercase; font-size: 17px; line-height: .95; margin-bottom: 4px; }
.pie-rendija i { display: block; font-family: var(--font-cursiva); font-size: 18px; line-height: 1.15; color: var(--hilo); }
.pie-rendija small { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.pie-rendija small .icono { color: var(--rojo); }

/* —— Casa: dos mitades y una costura —— */
.dupla { display: grid; grid-template-columns: 1fr 34px 1fr; margin: 8px 0 34px; align-items: stretch; }
.mitad { padding: 18px 0; }
.mitad h3 { font-family: var(--font-titular); font-stretch: var(--titular-ancho); font-weight: var(--titular-peso); text-transform: uppercase; font-size: clamp(24px, 2.2vw, 34px); line-height: .9; margin: 0 0 6px; text-shadow: var(--sombra-tit); }
.mitad--ella h3 { color: var(--violeta); }
.mitad--el h3 { color: var(--bordo); }
.mitad--el { text-align: right; }
.mitad .etiqueta { display: inline-flex; gap: 4px; align-items: center; }
.costura { position: relative; }
.costura canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.retrato { position: relative; margin: 6px 0 34px; transform: rotate(var(--tilt-contra)); max-width: 440px; }
.retrato img { width: 100%; box-shadow: 0 0 0 1.5px var(--hilo), 10px 12px 0 rgba(44, 16, 72, .12); pointer-events: none; }
.retrato::before, .retrato::after { content: ""; position: absolute; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--hilo-sombra); z-index: 2; }
.retrato::before { left: 18px; } .retrato::after { right: 18px; }
.retrato figcaption { margin-top: 12px; }

/* —— De qué se trata: espiral —— */
.espiral { position: fixed; z-index: 2; pointer-events: none; width: min(64vh, 560px); aspect-ratio: 1; }
.espiral svg { width: 100%; height: 100%; animation: gira 140s linear infinite reverse; }
.espiral text { font-family: var(--font-titular); font-stretch: var(--titular-ancho); font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .14em; fill: var(--hilo); paint-order: stroke fill; stroke: var(--ground); stroke-width: 4px; }
.espiral text .em { font-family: var(--font-cursiva); font-style: italic; font-weight: 400; text-transform: none; fill: var(--acento); font-size: 19px; letter-spacing: .02em; }

/* —— Cómo participar —— */
.pasos { list-style: none; margin: 4px 0 26px; padding: 0 12px; counter-reset: p; background: rgba(255, 255, 255, .7); }
.pasos li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.pasos li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-cursiva); font-style: italic; color: var(--rojo); font-size: 22px; line-height: 1.1; }
.correo { font-family: var(--font-cursiva); font-style: italic; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; color: var(--hilo); text-decoration: none; box-shadow: inset 0 -2px 0 var(--hilo); transition: color .25s, box-shadow .25s; display: inline-flex; gap: 10px; align-items: center; }
.correo:hover { color: var(--rojo); box-shadow: inset 0 -4px 0 var(--rojo); }
.contacto { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 10px 0 0; }
.contacto span { display: inline-flex; gap: 6px; align-items: center; }

/* el formulario: cada obra entra en su propia rendija */
/* regla: si la caja es recta, el texto va recto; solo una caja inclinada lleva texto inclinado */
.formulario { scroll-margin-top: calc(var(--alto-cabecera) + 30px); margin-top: 44px; background: var(--ground-raised); box-shadow: 0 0 0 1.5px var(--hilo); padding: 28px 30px 30px; }
.formulario h2 { font-size: clamp(24px, 2.5vw, 36px); margin: 0 0 8px; }
.formulario > p { margin: 0 0 22px; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.campo { display: grid; gap: 5px; }
.campo--ancho { grid-column: 1 / -1; }
.campo label, .campo .etiqueta { display: flex; gap: 6px; align-items: center; }
.campo label { font-size: 12px; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.campo label .icono { color: var(--hilo); }
.campo input, .campo textarea, .campo select {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--hilo); background: var(--ground); padding: 10px 12px; font-size: 16px; border-radius: 0; transition: background .2s, border-color .2s; color: var(--ink);
}
.campo textarea { min-height: 96px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; background: #fff; border-color: var(--rojo); box-shadow: 0 2px 0 var(--rojo); }
.campo input:invalid:not(:placeholder-shown) { border-color: var(--rojo); }
.obras-form { display: grid; gap: 14px; margin: 24px 0 8px; }
.obra-form { display: grid; grid-template-columns: 120px 1fr; gap: 14px 18px; padding: 14px; background: var(--ground); box-shadow: 0 0 0 1px var(--line); position: relative; }
.obra-form .rendija-foto { position: relative; width: 120px; height: 120px; background: var(--ground-sunk); clip-path: polygon(8% 4%, 96% 0, 100% 90%, 3% 100%); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; color: var(--hilo); }
.obra-form .rendija-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.obra-form .rendija-foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.obra-form .rendija-foto span { display: grid; justify-items: center; gap: 4px; font-size: 11px; font-weight: 640; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 6px; }
.obra-form .campos { grid-template-columns: 1fr 1fr; }
.obra-form .quitar { position: absolute; top: 8px; right: 8px; background: none; border: 0; cursor: pointer; color: var(--ink-muted); padding: 4px; }
.obra-form .quitar:hover { color: var(--rojo); }
.acepto { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 18px 0; }
.acepto input { width: 18px; height: 18px; accent-color: var(--hilo); margin-top: 2px; flex: none; }
.miel { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enviar-fila { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.progreso { height: 4px; background: var(--ground-sunk); flex: 1 1 160px; position: relative; overflow: hidden; display: none; }
.progreso i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--rojo); transition: width .2s; }
.enviando .progreso { display: block; }
.aviso { margin: 14px 0 0; font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.aviso.ok { color: var(--hilo); }
.aviso.error { color: var(--rojo); }

/* —— Entrada: la tela roja, el logo, una línea y el idioma —— */
.carga { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.intro { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(560px, 92vw); text-align: center; pointer-events: none; color: #fff; }
.intro .display { font-size: clamp(40px, min(6.4vw, 8.5vh), 92px); line-height: .84; color: #1f1029; text-shadow: none; }
.intro .display > span { display: block; }
.intro .display em { color: #fff; text-shadow: 0 2px 18px rgba(60, 0, 10, .45); font-size: 1.15em; }
.intro .bajada { display: block; margin: min(22px, 2.8vh) auto 0; font-size: 14px; line-height: 1.5; color: #fff; text-shadow: 0 1px 10px rgba(60, 0, 10, .55); max-width: 30em; font-style: normal; letter-spacing: .02em; }
.intro .bajada span { display: block; opacity: .8; font-style: italic; }
.intro .idiomas-intro { display: flex; gap: 14px; justify-content: center; margin-top: min(30px, 3.6vh); pointer-events: auto; flex-wrap: wrap; }
.intro .idiomas-intro .boton { min-width: 140px; justify-content: center; font-size: 15px; background: transparent; color: #fff; border-color: #fff; }
.intro .idiomas-intro .boton::before, .intro .idiomas-intro .boton::after { background: #fff; }
.intro .idiomas-intro .boton:hover, .intro .idiomas-intro .boton:focus-visible { background: #fff; color: var(--rojo); }
.intro .idiomas-intro .boton--lleno { background: #fff; color: var(--rojo); }
.intro > * { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--curva), transform .9s var(--curva); }
.intro.visible > * { opacity: 1; transform: none; }
.intro.visible > *:nth-child(2) { transition-delay: .2s; }
.intro.visible > *:nth-child(3) { transition-delay: .4s; }
.carga.fin .intro > * { opacity: 0; transform: translateY(-16px); transition-delay: 0s; transition-duration: .6s; }

.solo-lector { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%) rotate(var(--tilt-leve)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.on { opacity: 1; }

/* ———————————————————————————————————— Móvil ——— */
@media (max-width: 1040px) {
  .menu a { padding: 10px 8px; letter-spacing: .06em; }
  .nav-extra { margin-left: 8px; padding-left: 8px; }
}
@media (max-width: 760px) {
  :root { --alto-cabecera: 62px; }
  body { font-size: 16px; }
  .marca-conchas { width: 42px; height: 42px; }
  .marca > span { font-size: 15px; }
  .cabecera nav { display: none; }
  .menu-boton { display: block; }
  .portada-texto { top: auto; bottom: 18px; left: var(--margen); right: var(--margen); width: auto; }
  /* gira desde abajo a la izquierda: el último renglón no se mete debajo de los botones */
  .portada-texto .titular { font-size: clamp(22px, 6.2vw, 34px); margin-bottom: 18px; transform-origin: 0 100%; }
  .portada-texto .papelito { display: none; }
  .portada-texto .acciones { margin-top: 14px; justify-content: flex-end; }
  .portada-texto .acciones .boton { padding: 9px 14px; font-size: 13px; }
  .carrusel-pie { left: 40%; top: 74%; max-width: 200px; }
  .carrusel-pie b { font-size: 15px; }
  .carrusel-pie i { font-size: 15px; }
  .carrusel-controles button.flecha { width: 36px; height: 36px; margin-top: -18px; }
  .carrusel-controles button.flecha[data-c="-1"] { right: calc(100% + 6px); }
  .carrusel-controles button.flecha[data-c="1"] { left: calc(100% + 6px); }
  /* el túnel de arriba es una sección más: se va con el scroll, y lo que cuelga de su centro se va con él */
  .escena { position: absolute; }
  .colgante { position: absolute; }
  #conchas { position: fixed; }
  .lado { width: auto; margin: 0 !important; padding: 48vh var(--margen) 64px; }
  .lado::before { content: ""; position: absolute; inset: calc(48vh - 30px) 0 0; background: var(--ground); box-shadow: 0 -1.5px 0 var(--hilo); z-index: -1; }
  /* en el celular el texto va sobre una hoja recta: el titular también va recto */
  .lado .titular, .lado--der .titular { transform: none; margin-bottom: 26px; }
  .lista-artistas a:hover, .lista-artistas a:focus-visible { transform: translateX(6px); }
  .hoja { padding: 18px 16px 6px; }
  .visor { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .visor-imagen { padding: 64px 16px 14px; overflow: hidden; }
  .visor-imagen img { max-height: 100%; }
  .visor-ficha { padding: 18px var(--margen) 22px; box-shadow: 0 -1.5px 0 var(--hilo); max-height: 46svh; gap: 10px; }
  .visor-ficha h2 { font-size: 22px; }
  .visor-cerrar { background: var(--ground-raised); }
  .espiral { opacity: .5; }
  .dupla { grid-template-columns: 1fr 26px 1fr; }
  .mitad h3 { font-size: clamp(18px, 6vw, 26px); }
  .mitad .etiqueta { font-size: 10px; letter-spacing: .1em; }
  .formulario { padding: 22px 16px; margin-left: calc(var(--margen) * -1); margin-right: calc(var(--margen) * -1); box-shadow: 0 -1.5px 0 var(--hilo), 0 1.5px 0 var(--hilo); }
  .campos, .obra-form .campos { grid-template-columns: 1fr; }
  .obra-form { grid-template-columns: 1fr; }
  .obra-form .rendija-foto { width: 100%; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
