/* ==========================================================================
   PLANTILLA COMÚN DE ACTUACIONES · V4
   Componentes reutilizables por todas las fichas (ACTxx_*/index.html).
   Cada sección es opcional: una ficha incluye solo las que necesite.
     .act-hero        Número de fondo (se escribe / se selecciona y borra) + título + imagen
     .brand-dance     (Opcional, desactivado en la 04 desde V4) baile de trazos del supergráfico
     .consiste        Bloques conectados por una línea de color sobre fondo de playa
     .act-stats       Cifras proporcionales con contador
     .incluye         Título sticky + elementos centrados que se descubren con el scroll
     .tour            Recorrido por mapa (ver assets/js/recorrido-mapa.js)
     .gallery         Carrusel con profundidad
     .act-dossier     Folleto horizontal impreso + botón de descarga
     .related         Actuaciones relacionadas
   Fondos: blanco o crema (--crema #F7F4EB) en todos los contenedores.
   ========================================================================== */

.page-actuacion { background: #fff; }
/* Color de texto de la categoría: el de la flecha de su icono, oscurecido para que sea legible sobre blanco */
.page-actuacion { --cat-ink: color-mix(in srgb, var(--cat, #2B509E) 80%, #0b2a3a); }
.act-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--azul); }
.act-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--azul-claro)); }
.act-h2 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; color: var(--azul); }
.bg-crema { background: var(--crema); }

/* ---------- Toast (aviso flotante) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 150; transform: translate(-50%, 20px);
  max-width: min(520px, calc(100% - 32px)); padding: 14px 20px; border-radius: 14px;
  background: var(--azul-profundo); color: #fff; font-weight: 700; font-size: 15px; box-shadow: var(--sombra);
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Botón de descarga (mismo lenguaje que la Home) ---------- */
.btn-download {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 32px;
  padding: 10px 10px 10px 28px; border-radius: 999px;
  background: var(--azul); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 16px 30px -18px rgba(20, 40, 90, .7);
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-download-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--azul); transition: transform .35s var(--ease); }
.btn-download-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-download:hover, .btn-download:focus-visible { background: var(--azul-profundo); transform: translateY(-2px); }
.btn-download:hover .btn-download-icon { transform: translateY(3px); }

/* ---------- Aparición simple ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   1. CABECERA DE ACTUACIÓN · fondo blanco, número escrito de fondo, título e imagen
   ========================================================================== */
.act-hero { position: relative; background: #fff; }
.act-hero-sticky { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 64px; }
/* V7: tramo de scroll para seleccionar y borrar el texto y llevar la imagen al centro */
.choreo-act .act-hero { height: 290vh; }
/* Selección "de editor" sobre todo el texto de inicio y borrado (se conserva el hueco para no mover nada) */
.act-hero .w { border-radius: 2px; transition: background-color .12s; }
.act-hero .w.is-sel { background: color-mix(in srgb, var(--cat, #2B509E) 28%, #fff); box-shadow: .12em 0 0 color-mix(in srgb, var(--cat, #2B509E) 28%, #fff); }
.act-hero .w.is-del { visibility: hidden; }
.act-hero-media { transform-origin: 50% 50%; will-change: transform; }
.choreo-act .act-hero-sticky { position: sticky; top: 0; height: 100vh; }
/* Rejilla: arriba migas + categoría; debajo, título + texto a la izquierda y la imagen a la derecha,
   con el mismo alto (la imagen se estira al alto del bloque de texto) */
.act-hero .wrap.act-hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); column-gap: clamp(32px, 4vw, 64px); row-gap: 8px; /* V34: imagen algo más grande (antes .9fr / 1.1fr) */
  grid-template-areas: "meta ." "copy media" ". index"; align-items: stretch;
}
.act-hero-meta { grid-area: meta; }
.act-hero-copy { grid-area: copy; display: flex; flex-direction: column; justify-content: space-between; }
.act-hero-media { grid-area: media; }
/* V8: apartados de la actuación, alineados con el margen derecho de la fotografía */
.act-index { grid-area: index; justify-self: end; margin-top: 10px; transition: opacity .3s; }
.act-index ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.act-index a { font-size: 13px; font-weight: 700; color: var(--azul); text-decoration: none; opacity: .7; transition: opacity .25s; }
.act-index a:hover, .act-index a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.crumbs { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; color: var(--texto-suave); }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--azul); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.act-hero-copy { position: relative; z-index: 1; }
/* Número: macizo, en un tono muy claro del color de la categoría, DETRÁS del título (V6) */
.act-title-wrap { position: relative; isolation: isolate; }
/* V15: el número arranca a la altura del título (antes centrado y subía hasta tapar el rótulo «Actuación NN · categoría») */
.act-hero-meta { position: relative; z-index: 2; }
.act-num {
  position: absolute; z-index: -1; left: -.07em; top: .07em;
  display: flex; align-items: center;
  font-size: clamp(220px, 27vw, 450px); font-weight: 900; line-height: .8; letter-spacing: -.04em;
  color: color-mix(in srgb, var(--cat, #2B509E) 16%, #fff);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.act-title { position: relative; }
/* V34: con títulos cortos, el número sobresale por arriba del título; su borde superior se alinea con el de la imagen
   de al lado (assets/js/actuacion.js · shortTitle lo coloca con --num-top) */
.act-title-wrap.is-short .act-num { top: var(--num-top, -25%); }
.act-num .ch { position: relative; display: inline-block; }
.act-num .ch.is-hidden { display: none; }
/* Selección "de editor de texto" sobre el número */
.act-num .ch.is-sel { color: #fff; }
.act-num .ch.is-sel::before { content: ""; position: absolute; inset: .02em -.02em; background: color-mix(in srgb, var(--cat, #2B509E) 45%, #fff); z-index: -1; }
.act-caret { display: inline-block; width: .045em; height: .78em; margin-left: .03em; background: color-mix(in srgb, var(--cat, #2B509E) 55%, #fff); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.act-title { font-size: clamp(44px, 5.4vw, 88px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; margin-top: 0; max-width: 11ch; color: var(--cat-ink); }
/* V16: el texto también queda por delante del número de fondo (antes el número lo pisaba) */
.act-lead { position: relative; z-index: 1; }
.act-lead { margin-top: 24px; max-width: 42ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: #33415f; }
.act-hero-media { position: relative; margin: 0; border-radius: 8px; min-height: 260px; }
.act-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
/* entrada al cargar */
.js .act-hero .act-hero-meta > *, .js .act-hero .act-title, .js .act-hero .act-lead { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .act-hero .act-hero-media img { clip-path: inset(0 0 100% 0 round 8px); transition: clip-path 1.3s var(--ease) .35s; }
.act-hero.is-in .act-hero-meta > *, .act-hero.is-in .act-title, .act-hero.is-in .act-lead { opacity: 1 !important; transform: none !important; }
.act-hero.is-in .act-hero-meta > :nth-child(2) { transition-delay: .1s; }
.act-hero.is-in .act-title { transition-delay: .2s; }
.act-hero.is-in .act-lead { transition-delay: .35s; }
.act-hero.is-in .act-hero-media img { clip-path: inset(0 0 0 0 round 8px); }
/* V34 · Cifras sobre la imagen ampliada (ficha 04, data-hero-stats): módulos crema con su franja de color, como en la Home */
.choreo-act .act-hero[data-hero-stats] { height: 360vh; }
.hero-stats { display: none; }
/* V34 (ajuste): la imagen baja al 50 % (js), encima «CIFRAS DEL PROYECTO» y los módulos escalonados en alto:
   el primero el más alto, después el segundo y el tercero el más bajo (--s de cada cifra: 1 · .8 · .62) */
.hero-stats-on .hero-stats {
  position: absolute; left: 0; right: 0; bottom: clamp(16px, 3%, 32px); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2vh, 22px);
  padding: 0 clamp(16px, 3%, 32px); pointer-events: none;
}
.hero-stats-title { margin: 0; font-size: clamp(22px, 2.2vw, 34px); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--azul-profundo); opacity: 0; will-change: transform, opacity; }
.hero-stats-list { display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 1.6vw, 22px); width: 100%; list-style: none; margin: 0; padding: 0; }
.hstat {
  position: relative; overflow: hidden; flex: 0 1 220px; min-height: calc(40px + 180px * var(--s, 1)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20px 16px 16px; border-radius: 6px; background: var(--crema); color: var(--azul-profundo); text-align: center;
  box-shadow: 0 18px 40px -18px rgba(20, 40, 90, .6); opacity: 0; will-change: transform, opacity;
}.hstat::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--c); }
.hstat-num { font-size: clamp(40px, 4.4vw, 72px); font-weight: 900; line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hstat-label { font-size: clamp(13px, 1vw, 16px); font-weight: 700; line-height: 1.2; }
/* con las cifras ya sobre la imagen, su sección aparte no se repite */
.hero-stats-on [data-act-stats] { display: none; }

/* V36 · «¿En qué consiste?» del esquema común ([data-act-cons]): fondo crema, título centrado, tres cajas escalonadas que
   se dibujan con una línea del color de la categoría (assets/js/actuacion.js · initActCons). Sin coreografía, con borde. */
.act-cons { position: relative; background: var(--crema); }
.act-cons-sticky { position: relative; background: var(--crema); }
.act-cons-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.act-cons-inner { position: relative; z-index: 1; padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(60px, 8vw, 110px); }
.act-cons-title { margin: 0 0 clamp(40px, 6vh, 70px); text-align: center; }
.act-cons-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.act-cons-item:nth-child(2) { margin-top: clamp(40px, 9vh, 110px); }
.act-cons-item:nth-child(3) { margin-top: clamp(16px, 4vh, 44px); }
/* V41: variante de cuatro cajas (ficha 10), escalonadas de la misma forma */
.act-cons-list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.act-cons-list--4 .act-cons-item:nth-child(4) { margin-top: clamp(50px, 11vh, 130px); }
.act-cons-list--4 .act-cons-box { padding: 22px 20px 24px; }
.act-cons-box { position: relative; padding: 24px 26px 26px; border-radius: 16px; }
.act-cons-num { display: block; font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.02em; color: var(--cat-ink, var(--cat)); }
.act-cons-box h3 { margin: 10px 0 0; font-size: clamp(19px, 1.5vw, 23px); font-weight: 900; line-height: 1.2; color: var(--azul); }
.act-cons-box p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: #2f3f63; }
.choreo-act .act-cons { height: 260vh; }
.choreo-act .act-cons-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; display: flex; align-items: center; }
.choreo-act .act-cons-inner { width: 100%; }
.choreo-act .act-cons-box > * { opacity: 0; }
@media (max-width: 1023px) {
  .act-cons-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .act-cons-item:nth-child(n), .act-cons-list--4 .act-cons-item:nth-child(n) { margin-top: 0; }
  .act-cons-box { border: 1.5px solid var(--cat); }
  .act-cons-path { display: none; }
}

/* V34 · Líneas de colores entre secciones (assets/js/actuacion.js · initConnectors) */
.act-connector { position: relative; height: clamp(120px, 20vh, 220px); pointer-events: none; }
.act-connector svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) {
  .act-hero-sticky { min-height: 0; padding-bottom: 56px; }
  .act-hero .wrap.act-hero-grid { grid-template-columns: 1fr; grid-template-areas: "meta" "copy" "media" "index"; row-gap: 24px; }
  .act-hero-media { min-height: 0; aspect-ratio: 16 / 10; }
  .act-num { font-size: 52vw; }
}

/* ==========================================================================
   2. BAILE DE TRAZOS DE MARCA (opcional; desactivado en la 04 desde V4)
   ========================================================================== */
.brand-dance { position: relative; height: 230vh; }
.brand-dance .dance-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.dance-stage { position: relative; width: min(900px, 84vw); aspect-ratio: 802 / 572; }
.dance-stage .tr, .dance-box .tr { position: absolute; will-change: transform, opacity; }
.dance-stage .tr img, .dance-box .tr img { display: block; width: 100%; height: 100%; animation: bob var(--bd, 5s) ease-in-out var(--bdl, 0s) infinite alternate; }
@keyframes bob {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(var(--bx, 4px), var(--by, -6px)) rotate(var(--br, 4deg)); }
  100% { transform: translate(calc(var(--bx, 4px) * -.6), calc(var(--by, -6px) * .5)) rotate(calc(var(--br, 4deg) * -.7)); }
}

/* ==========================================================================
   3. EN QUÉ CONSISTE · paseo por la orilla
   ========================================================================== */
.consiste { position: relative; }
.consiste-sticky { position: relative; overflow: hidden; }
/* Fondo de playa PROVISIONAL (arena + agua). Con la imagen definitiva: --consiste-bg: url(...) */
.consiste-bg {
  position: absolute; inset: 0;
  background:
    var(--consiste-bg, none) center / cover no-repeat,
    radial-gradient(120% 60% at 50% 115%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(176deg, #4FA1D1 0%, #7DBBE0 30%, #CFE6F1 41%, #F4EBDD 44%, #EFE2CC 70%, #E8D6B8 100%);
}
.consiste-bg::after {
  content: ""; position: absolute; left: -5%; right: -5%; top: 39%; height: 7%;
  background: radial-gradient(60% 50% at 50% 50%, rgba(255,255,255,.8), rgba(255,255,255,0) 70%);
  filter: blur(6px);
}
/* Con foto: la imagen se asigna en el HTML (style="background-image: url(...)", ruta relativa a la ficha) */
.consiste-bg.has-image { background-color: #E6D8BC; background-position: center top; background-size: cover; background-repeat: no-repeat; }
.consiste-bg.has-image::after { display: none; }
/* V16: mar en movimiento (copia del fondo, recortada al agua y distorsionada suavemente; ver initConsiste) */
.consiste-sea { position: absolute; inset: 0; background-position: center top; background-size: cover; background-repeat: no-repeat; filter: url(#seaWarp); pointer-events: none; }
.consiste-sea-fx { position: absolute; width: 0; height: 0; overflow: hidden; }
/* V6: separación en blanco respecto a la cabecera; título arriba (azul oscuro, sin sombra);
   los bloques suben todo lo posible sin tocar el agua (assets/js/actuacion.js · keepOnSand) */
.consiste { margin-top: clamp(70px, 12vh, 150px); }
.consiste-inner { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding-top: clamp(64px, 10vh, 110px); padding-bottom: 48px; } /* V8: título algo más abajo */
.consiste-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.consiste-head .act-h2 { color: var(--azul); text-shadow: none; }
.consiste-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.consiste-blocks { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); }
.consiste-blocks > li { position: relative; z-index: 1; }
.consiste-blocks > li:nth-child(2) { margin-top: clamp(50px, 11vh, 130px); }
.consiste-blocks > li:nth-child(3) { margin-top: clamp(10px, 3vh, 40px); }
/* WordPress: con 4 bloques (Comunicación), 4 columnas, para que la línea no cruce los textos al pasar a otra fila */
.consiste-blocks--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.consiste-blocks--4 > li:nth-child(4) { margin-top: clamp(50px, 11vh, 130px); }
.consiste-blocks--4 .cblock { padding: 26px 20px 28px; }
/* Sin caja: el texto va directamente sobre la arena. Un contorno fino verdoso se dibuja cuando la línea llega al punto (V5) */
.cblock { position: relative; padding: 26px 26px 28px; }
.cblock-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cblock-outline rect { fill: none; stroke: var(--cat, #00BA9D); stroke-width: 1.5; stroke-dasharray: 1 1.02; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.cblock-icon {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: -58px 0 18px; border-radius: 50%;
  background: var(--azul); color: #fff; font-weight: 900; font-size: 24px; box-shadow: 0 0 0 6px rgba(255,255,255,.9);
}
.cblock h3 { font-size: clamp(20px, 1.7vw, 26px); color: var(--azul); }
.cblock p { margin-top: 12px; color: #2f3f63; font-size: 16px; }
.cblock-icon { box-shadow: none; }
/* V22: el número va sin el círculo de color, solo la cifra, en el azul de los títulos de los bloques
   (en verde se confundía con la línea y los lazos, que ahora son del color de la categoría) */
.cblock-icon { background: none; color: var(--azul); font-size: 40px; letter-spacing: -.02em; }
.choreo-act .consiste { height: 320vh; }
/* fijo justo debajo de la cabecera de la web, para que el título no quede tapado */
.choreo-act .consiste-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); }
.choreo-act .consiste-inner { min-height: 100%; }
.choreo-act .cblock-wrap { opacity: 0; transform: translateY(30px) scale(.96); }
/* V22 (ajuste): el borde de la caja y el círculo del número los dibuja la propia línea en el SVG (initConsiste);
   ya no se usa el contorno propio de cada bloque */
.cblock-outline { display: none; }
.choreo-act .cblock-wrap { transform: none; }
@media (max-width: 900px) {
  .consiste-head { margin-bottom: 70px; }
  .consiste-blocks { grid-template-columns: 1fr; gap: 56px; padding-left: 34px; }
  .consiste-blocks > li:nth-child(n) { margin-top: 0; }
  .consiste-bg { background: var(--consiste-bg, none) center / cover no-repeat, linear-gradient(180deg, #4FA1D1 0%, #7DBBE0 18%, #CFE6F1 24%, #F4EBDD 27%, #EFE2CC 70%, #E8D6B8 100%); }
  .consiste-bg::after { top: 22%; height: 4%; }
}

/* ==========================================================================
   4. CIFRAS DE LA ACTUACIÓN
   ========================================================================== */
.act-stats { position: relative; background: var(--crema); }
.act-stats-sticky { position: relative; overflow: hidden; }
/* Fondo de trazos: la imagen es blanca; con "multiply" el blanco toma el crema del fondo.
   Cada lateral se descubre desde su borde hacia el centro según --rv (0→1, scroll) */
.stats-bg { position: absolute; inset: 0; pointer-events: none; }
.stats-bg .sb { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; mix-blend-mode: multiply; } /* imagen: style en el HTML */
.stats-bg .sb-l { clip-path: inset(calc((1 - var(--rv, 1)) * 100%) calc(100% - var(--rv, 1) * 50%) 0 0); }
.stats-bg .sb-r { clip-path: inset(0 0 calc((1 - var(--rv, 1)) * 100%) calc(100% - var(--rv, 1) * 50%)); }
.act-stats-inner { position: relative; z-index: 1; }
.act-stats-inner { min-height: 100vh; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: calc(var(--header-h) + 32px); padding-bottom: 56px; }
.vstats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.vstat {
  --s: 1;
  display: flex; align-items: center; gap: 22px;
  width: calc(100% * (.5 + .5 * var(--s))); min-height: calc(150px * var(--s));
  padding: 18px 28px; border-radius: 20px; background: var(--c); color: #fff;
  will-change: transform, opacity;
}
.vstat.dark { color: var(--azul); }
/* V15: la etiqueta va del mismo color que el número (crema), también en los módulos claros («Playas con videometría») */
.vstat, .vstat.dark { color: var(--crema); }
.vstat-num { font-size: calc(clamp(56px, 7vw, 120px) * var(--s)); font-weight: 900; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--crema); }
.act-stats .act-h2 { font-size: clamp(48px, 6.4vw, 104px); } /* V8: título de cifras más grande */
.vstat-label { font-size: clamp(15px, 1.3vw, 19px); font-weight: 700; line-height: 1.2; max-width: 14ch; }
/* V22: mismo aspecto que las cifras de la Home: módulo crema, número y etiqueta en azul oscuro y una franja
   superior en el color que tenía cada módulo. Una sombra suave lo separa del fondo crema de la sección */
.vstat { position: relative; overflow: hidden; background: var(--crema); box-shadow: 0 14px 34px -18px rgba(20, 40, 90, .35), 0 0 0 1px rgba(43, 80, 158, .08); }
.vstat::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--c); }
.vstat, .vstat.dark, .vstat-num { color: var(--azul-profundo); }
.choreo-act .act-stats { height: 220vh; }
.choreo-act .act-stats-sticky { position: sticky; top: 0; height: 100vh; }
@media (max-width: 900px) {
  .act-stats-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 90px; padding-bottom: 90px; }
  .vstat { width: calc(100% * (.62 + .38 * var(--s))); }
}

/* ==========================================================================
   5. ¿QUÉ INCLUYE LA ACTUACIÓN? · título sticky + elementos centrados
   ========================================================================== */
/* overflow-x: clip evita el desbordamiento del texto que entra deslizándose sin romper el título sticky */
.incluye { position: relative; padding: 130px 0 120px; background: #fff; overflow-x: clip; }
.incluye-grid { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.incluye-aside { position: sticky; top: calc(var(--header-h) + 48px); }
.incluye-aside .act-h2 { margin-top: 18px; font-size: clamp(40px, 5.2vw, 78px); }
.incluye-aside p { margin-top: 20px; color: var(--texto-suave); max-width: 34ch; }
.incluye-progress { display: flex; gap: 8px; margin-top: 32px; }
.incluye-progress span { width: 34px; height: 6px; border-radius: 6px; background: var(--azul-linea); overflow: hidden; position: relative; }
.incluye-progress span::after { content: ""; position: absolute; inset: 0; background: var(--azul); transform: scaleX(var(--p, 0)); transform-origin: left; }
.incluye-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(60px, 12vh, 140px); }
/* Ilustración y texto en un mismo eje central; todas las ilustraciones con el mismo ancho */
.inc-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.inc-media { position: relative; width: min(100%, 520px); aspect-ratio: 3 / 2; display: grid; place-items: center; }
.inc-blob { position: absolute; inset: 8% 6% 4% 10%; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; background: var(--c); opacity: .16; transform: scale(var(--blob, 1)); transform-origin: 50% 70%; }
.inc-media img { position: relative; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.inc-body { position: relative; width: min(100%, 520px); }
.inc-num { font-size: 15px; font-weight: 900; letter-spacing: .14em; color: var(--c); }
.inc-body h3 { font-size: clamp(24px, 2.4vw, 34px); color: var(--azul); margin-top: 6px; }
.inc-body ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.inc-body li { position: relative; padding-left: 26px; color: #3d4f78; }
.inc-body li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--c); }
/* V41: «¿En qué consiste?» como en la 04 pero sin la imagen de la orilla (Formación y Comunicación): fondo crema,
   línea y números del color de la sección (antes en ACT_FORMACION_CAPACITACION/css/formacion.css) */
.consiste--plain .consiste-sticky { background: var(--crema); }
.consiste--plain .cblock-icon { color: var(--cat); }
/* V40: ilustración pendiente (hueco del mismo tamaño, sobre la mancha de color) y descripción en un párrafo */
.inc-ph { position: relative; display: grid; place-items: center; width: 78%; height: 78%; border: 1.5px dashed color-mix(in srgb, var(--c) 55%, transparent); border-radius: 18px; background: rgba(255, 255, 255, .55); }
.inc-body .inc-text { margin: 14px 0 0; max-width: 46ch; color: #3d4f78; }
.inc-line { display: block; height: 5px; width: 120px; border-radius: 5px; background: var(--c); margin-top: 22px; transform: scaleX(var(--line, 1)); transform-origin: left; }
@media (max-width: 900px) {
  .incluye { padding: 90px 0; }
  .incluye-grid { grid-template-columns: 1fr; }
  .incluye-aside { position: relative; top: 0; }
  .incluye-progress { display: none; }
}

/* ==========================================================================
   6. RECORRIDO POR MAPA (zona costera) · fondo crema
   ========================================================================== */
.tour-section { position: relative; background: var(--crema); color: var(--azul); }
/* El título va dentro del bloque fijo, pegado al mapa (V5) */
.tour-head { padding-top: 90px; padding-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tour-head .act-h2 { font-size: clamp(30px, 3.2vw, 46px); }
.choreo-geo .tour-head { padding-top: 0; }
.choreo-geo .tour-sticky > .wrap { flex-direction: column; }
/* V8: filtros FUERA del mapa, bajo el título; «Saltar el recorrido» más pequeño y alineado con ellos */
.tour-head { flex-direction: column; align-items: stretch; gap: 6px; }
.tour-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tour-skip { color: var(--azul); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.tour-skip:hover { opacity: 1; }
.tour { position: relative; }
.tour-sticky { position: relative; }
.tour-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 48px); align-items: stretch; }

.map-col { min-width: 0; display: flex; }
.map-frame { position: relative; overflow: hidden; border-radius: 18px; background: #57ADB0; /* color del mar del propio mapa */ aspect-ratio: 1035 / 1300; width: 100%; isolation: isolate; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.map-frame.is-in { opacity: 1; transform: none; }
.map-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map-world > img { display: block; width: 100%; height: 100%; }
.map-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity .4s; }
.map-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-waves .wave { fill: none; stroke: #308D92; stroke-width: 5; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 50%; animation: waveMove 4.2s ease-in-out infinite alternate; }
.map-waves .wave:nth-of-type(2) { animation-delay: -1.1s; animation-duration: 4.8s; }
.map-waves .wave:nth-of-type(3) { animation-delay: -2.3s; animation-duration: 3.9s; }
.map-waves .wave:nth-of-type(4) { animation-delay: -3.1s; animation-duration: 5.1s; }
@keyframes waveMove { 0% { transform: translateX(-7px) scaleY(.82); } 100% { transform: translateX(7px) scaleY(1.12); } }
.map-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.map-layer.is-on { opacity: 1; }
.map-layer img { width: 100%; height: 100%; object-fit: cover; }
.map-layer.is-pending { background: repeating-linear-gradient(135deg, rgba(43,80,158,.28) 0 14px, rgba(43,80,158,.08) 14px 28px); }
.map-frame.layer-mode .pin, .map-frame.layer-mode .walker, .map-frame.layer-mode .map-route { opacity: 0 !important; pointer-events: none; }
.map-layer-note {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6;
  display: none; align-items: center; gap: 8px; white-space: nowrap;
  background: #fff; color: var(--azul); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: var(--sombra);
}
.map-frame.has-layer .map-layer-note { display: inline-flex; }
/* Filtros sobre el mapa (grupo exclusivo; «Mapa ubicaciones» vuelve al recorrido) */
.map-filters { position: static; display: flex; gap: 4px 22px; flex-wrap: wrap; }
.map-filter {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(255,255,255,.92); color: var(--azul); font: inherit; font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 16px -8px rgba(20, 40, 90, .5); transition: background .3s var(--ease), color .3s var(--ease);
}
/* V8: texto regular, más pequeño; sin pulsar = azul al 40 %; pulsado = 100 % */
.map-filter { padding: 4px 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; font-size: 14px !important; font-weight: 400 !important; color: var(--azul) !important; opacity: .4; transition: opacity .25s; }
.map-filter::before { content: none; }
.map-filter:hover { opacity: .7; }
.map-filter[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.map-meta-txt { position: absolute; left: 12px; bottom: 12px; z-index: 7; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 12px; font-weight: 700; color: var(--azul); }
/* V14: capa sin escalar sobre el mapa (texto nítido). Los puntos y el caminante se colocan en px desde el JS */
.map-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.map-overlay .pin button { pointer-events: auto; }
.pin { position: absolute; z-index: 3; width: 0; height: 0; transition: opacity .4s; }
/* V14: puntos más pequeños y sin contorno azul */
.pin button {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
  background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pin button::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; } /* área de pulsación cómoda */
.pin button:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 3px; }
.pin.is-active button { transform: scale(1.4); box-shadow: 0 3px 10px rgba(0,0,0,.4); }
.pin.is-active button::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #fff; animation: pinPulse 1.8s var(--ease) infinite; }
@keyframes pinPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.pin-label {
  position: absolute; left: 16px; top: -15px; white-space: nowrap; pointer-events: none;
  background: #fff; color: var(--azul); font-size: 13px; font-weight: 900; padding: 5px 10px; border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s var(--ease);
}
.pin.is-active .pin-label, .tour.is-general .pin-label { opacity: 1; transform: none; }
.tour.is-general .pin-label { font-size: 11px; padding: 3px 7px; top: -12px; font-weight: 700; }
/* V15: sin nombres sobre el mapa; el nombre ya aparece en el panel de al lado (y en el botón, para lectores de pantalla) */
.pin-label { display: none !important; }
.walker { position: absolute; z-index: 4; width: 0; height: 0; pointer-events: none; transition: opacity .4s; }
/* V14: el caminante se anima desde el JS según la distancia recorrida (piernas con rodilla, brazos y balanceo) */
.walker svg { position: absolute; left: -15px; top: -47px; width: 30px; height: 50px; overflow: visible; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.walker line { stroke: #2B509E; stroke-linecap: round; }
.walker .w-trunk { stroke-width: 5; }
.walker .w-limb line { stroke-width: 3.6; }
.walker .arm-a line, .walker .arm-b line { stroke-width: 3.2; }
.walker .leg-b line, .walker .arm-b line { stroke: #4A6DB5; } /* extremidades del fondo, algo más claras: da profundidad */
.walker circle { fill: #2B509E; }
.walker .w-shadow { fill: rgba(0, 0, 0, .25); }

/* Columna de datos: panel + listado de playas debajo, misma altura que el mapa */
.data-col { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.info-col { position: relative; min-width: 0; flex: 1; }
/* Sin caja blanca: el panel va directamente sobre el fondo crema (V5) */
.panel { background: transparent; color: var(--azul); padding: 0; }
.panel-photo { position: relative; margin: 0 0 16px; aspect-ratio: 16 / 7; border-radius: 12px; overflow: hidden; background: var(--azul-tinta); }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.panel-photo.is-pending { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #eef2f9 0 12px, #e4eaf5 12px 24px); }
.panel-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azul-claro); }
.panel h3 { font-size: clamp(30px, 2.8vw, 44px); margin-top: 4px; } /* V8: nombre de la playa más grande */
.panel-loc { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; color: var(--texto-suave); }
.panel-loc svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
/* Avisos activos · V8: SIN recuadro; texto azul oscuro; icono de peligro y flecha en amarillo.
   Al pulsar se abre una ventana EMERGENTE (modal) con los avisos de la ubicación. */
.avisos { margin-bottom: 12px; }
.avisos svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.avisos-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  color: var(--azul); font: inherit; font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; text-align: left;
}
.avisos-btn > svg:first-child { width: 20px; height: 20px; flex: 0 0 auto; color: #D9A300; }
.avisos-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(43, 80, 158, .12); font-size: 12px; letter-spacing: 0; }
.avisos-arrow { display: grid; place-items: center; width: 24px; height: 24px; color: #D9A300; transition: transform .3s var(--ease); }
.avisos-arrow svg { width: 18px; height: 18px; stroke-width: 2.8; }
.avisos-btn:hover .avisos-arrow, .avisos-btn:focus-visible .avisos-arrow { transform: translateX(4px); }
.panel { position: relative; }
.avisos-panel { display: none; } /* contenido de origen: se muestra en la ventana emergente */
.avisos-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(20, 40, 90, .45); opacity: 0; transition: opacity .3s var(--ease); }
.avisos-modal.is-open { opacity: 1; }
/* V14: cerrada no debe tapar la página (display: grid anulaba [hidden] y bloqueaba todos los clics: ruta, índice, filtros…) */
.avisos-modal[hidden] { display: none; }
.avisos-dialog {
  width: min(520px, 100%); max-height: min(70vh, 560px); overflow: auto;
  background: #fff; border-top: 6px solid var(--mostaza); border-radius: 16px; padding: 18px 20px 22px;
  box-shadow: 0 40px 80px -30px rgba(10, 25, 60, .6); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease);
}
.avisos-modal.is-open .avisos-dialog { transform: none; }
.avisos-panel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1.5px solid rgba(246, 193, 43, .7); }
.avisos-panel-head h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); }
.avisos-panel-head h4 svg { width: 20px; height: 20px; color: #B27F00; }
.avisos-panel-head > span { flex: 1; font-size: 14px; font-weight: 700; color: var(--texto-suave); }
.avisos-close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--mostaza); color: var(--azul); cursor: pointer; }
.avisos-close svg { width: 18px; height: 18px; stroke-width: 2.6; }
.avisos-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.avisos-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--azul); font-weight: 700; }
.avisos-list li svg { width: 18px; height: 18px; flex: 0 0 auto; color: #B27F00; margin-top: 2px; }
.avisos-empty { margin: 0; font-size: 14px; color: var(--texto-suave); }
/* Datos en vertical: título, valor grande y, al lado, el gráfico (se despliega con el scroll) */
.data-list { display: flex; flex-direction: column; margin-top: 4px; }
/* V7: número y gráfico alineados al CENTRO (vertical); gráfico más grande */
/* V8: gráficos mucho más grandes */
.data-item { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.6fr); gap: 18px; align-items: center; padding: 14px 0; border-top: 1.5px solid var(--azul-linea); }
.data-item:first-child { border-top: 0; padding-top: 4px; }
.data-item.no-chart { grid-template-columns: 1fr; }
.data-title { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-suave); line-height: 1.25; }
.data-value { display: block; margin-top: 6px; font-size: clamp(34px, 3.2vw, 52px); font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-value small { font-size: .5em; letter-spacing: 0; margin-left: 2px; }
.data-value.is-empty { color: rgba(43,80,158,.3); }
.data-chart { min-width: 0; clip-path: inset(var(--clip, 0%) 0 0 0); }
.data-chart { display: flex; align-items: center; justify-content: center; }
.data-chart img, .data-chart svg { display: block; width: 100%; height: auto; max-height: 230px; object-fit: contain; object-position: center; }
.data-note { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--texto-suave); }
.ind-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ind { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--azul-tinta); font-size: 13px; font-weight: 700; }
.ind i { width: 10px; height: 10px; border-radius: 50%; background: var(--ind, rgba(43,80,158,.3)); }
.ind.is-empty { color: var(--texto-suave); font-weight: 400; }
.panel [data-stage] { will-change: transform, opacity; }

/* V15: más separación con el último dato («Temperatura media») y opciones escritas, sin recuadro:
   al 50 % de opacidad; la seleccionada, en azul al 100 % */
.tour-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--azul-linea); }
.tour-nav button {
  padding: 4px 0; border: 0; border-radius: 0; background: none; color: var(--azul);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; opacity: .5; transition: opacity .25s, color .25s;
}
.tour-nav button:hover { opacity: .8; }
.tour-nav button[aria-current="true"] { opacity: 1; color: var(--azul); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* V7: los botones del listado van DEBAJO del título «Listado de playas» */
.tour-nav-label { flex: 0 0 100%; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); margin: 0 0 2px; }

/* Escritorio (html.choreo-geo, excepción geográfica: WordPress ya no usa choreo-act): sticky; mapa y datos con la misma altura y alineados */
.choreo-geo .tour-sticky { position: sticky; top: 0; height: 100vh; padding: calc(var(--header-h) + 20px) 0 20px; display: flex; flex-direction: column; }
.choreo-geo .tour-sticky > .wrap { flex: 1; min-height: 0; display: flex; }
.choreo-geo .tour-grid { flex: 1; min-height: 0; width: 100%; grid-template-columns: auto minmax(0, 1fr); }
.choreo-geo .map-col { height: 100%; }
/* el mapa ocupa como mucho la mitad del ancho útil; si se limita, el mar rellena arriba y abajo */
.choreo-geo .map-frame { height: 100%; width: auto; max-width: calc(min(100vw, 1416px) * .5 - 30px); }
.choreo-geo .panel-photo { aspect-ratio: auto; height: clamp(80px, 14vh, 180px); margin-bottom: 12px; }
.choreo-geo .data-item { padding: 10px 0; }
.choreo-geo .data-value { font-size: clamp(30px, 2.6vw, 44px); }
.choreo-geo .data-chart img { max-height: 200px; }
.choreo-geo .panel h3 { font-size: clamp(28px, 2.6vw, 40px); }
/* V22: datos algo más pequeños para que la vista general quepa entera (antes se cortaba «Temperatura media») */
.choreo-geo .data-item { padding: 8px 0; gap: 14px; }
.choreo-geo .data-value { font-size: clamp(26px, 2.2vw, 36px); margin-top: 4px; }
.choreo-geo .data-title { font-size: 11px; }
.choreo-geo .data-chart img, .choreo-geo .data-chart svg { max-height: 130px; }
.choreo-geo .avisos { margin-bottom: 8px; }
.tour-nav-break { flex: 0 0 100%; height: 0; }
.choreo-geo .info-col .panel { position: absolute; left: 0; right: 0; top: 0; max-height: 100%; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.choreo-geo .info-col .panel.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
@media (max-height: 840px) {
  .choreo-geo .tour-sticky { padding-top: calc(var(--header-h) + 10px); padding-bottom: 10px; }
  .choreo-geo .tour-nav .t { display: none; }
  .choreo-geo .panel { padding: 14px 18px; }
  .choreo-geo .panel-photo { height: clamp(70px, 13vh, 160px); margin-bottom: 10px; }
  .choreo-geo .panel h3 { font-size: 30px; }
  .choreo-geo .data-item { padding: 7px 0; }
  .choreo-geo .data-value { font-size: 27px; } /* V22: antes 32 */
  .choreo-geo .data-chart img, .choreo-geo .data-chart svg { max-height: 105px; } /* V22: antes 150 */
  .choreo-geo .avisos { padding: 7px 12px; margin-bottom: 10px; }
  .choreo-geo .tour-head { padding-bottom: 8px; }
  .choreo-geo .tour-head .act-h2 { font-size: 28px; }
  .choreo-geo .panel-photo { height: clamp(60px, 11vh, 140px); }
}
/* Flujo (móvil/tablet o movimiento reducido): mapa sticky arriba, paneles en columna */
html:not(.choreo-geo) .tour-grid { grid-template-columns: 1fr; }
html:not(.choreo-geo) .map-col { position: sticky; top: var(--header-h); z-index: 5; background: var(--crema); padding: 10px 0 12px; }
html:not(.choreo-geo) .map-frame { aspect-ratio: auto; height: 40vh; }
html:not(.choreo-geo) .map-world { transition: transform .8s var(--ease); }
html:not(.choreo-geo) .walker { transition: left .8s var(--ease), top .8s var(--ease), opacity .4s; }
html:not(.choreo-geo) .pin { transition: left .8s var(--ease), top .8s var(--ease), opacity .4s; }
html:not(.choreo-geo) .info-col { display: flex; flex-direction: column; gap: 24px; padding: 20px 0 30px; }
html:not(.choreo-geo) .tour-nav { display: none; }
@media (max-width: 640px) {
  .data-item { grid-template-columns: 1fr 1fr; gap: 10px; }
  .map-filter { padding: 6px 10px; font-size: 12px; }
}

/* ==========================================================================
   7. GALERÍA · carrusel con profundidad (fondo crema; nombre al pasar el cursor)
   ========================================================================== */
.gallery { position: relative; padding: 120px 0 110px; background: #fff; overflow: hidden; } /* V34 (ajuste): fondo blanco en todas las fichas (antes crema) */
.gal-stage { position: relative; height: clamp(300px, 46vw, 560px); margin-top: 40px; perspective: 1400px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
/* V7: arrastre con el ratón; mientras se arrastra, las fotos siguen al puntero sin retardo */
.gal-stage.is-dragging { cursor: grabbing; }
.gal-stage.is-dragging .gal-item { transition: none; }
.gal-item {
  position: absolute; left: 50%; top: 50%; width: min(64%, 820px); aspect-ratio: 3 / 2; margin: 0;
  border-radius: 22px; overflow: hidden; cursor: pointer; background: #e9e3d3;
  transform: translate(-50%, -50%); transition: transform .9s var(--ease), filter .9s var(--ease), opacity .9s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(20, 40, 90, .5);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gal-item figcaption { position: absolute; left: 18px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--azul); font-size: 14px; font-weight: 900; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.gal-item:hover figcaption, .gal-item:focus-within figcaption { opacity: 1; transform: none; }
/* V16: huecos grises para imágenes pendientes (fichas de Comunicación y formación) */
.act-hero-media.is-pending, .doc-photo.is-pending, .rel-media.is-pending { display: grid; place-items: center; background: #D3D3D3; }
.act-hero-media.is-pending { border-radius: 8px; }
.rel-media.is-pending { aspect-ratio: 4 / 3; }
/* V14: hueco de galería a la espera de su fotografía */
.gal-item.is-pending { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #eef2f9 0 14px, #e4eaf5 14px 28px); }
.gal-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.gal-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--azul); background: #fff; color: var(--azul); cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s; }
.gal-btn:hover { background: var(--azul); color: #fff; }
.gal-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gal-dots { display: flex; gap: 8px; }
.gal-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--azul-linea); cursor: pointer; transition: background .3s, transform .3s; }
.gal-dots button[aria-current="true"] { background: var(--azul); transform: scale(1.3); }
@media (max-width: 760px) { .gal-item { width: 78%; } }

/* ==========================================================================
   8. DOSSIER DE LA ACTUACIÓN · folleto HORIZONTAL impreso + botón bajo el título
   ========================================================================== */
.act-dossier { position: relative; background: var(--crema); padding: 120px 0 130px; overflow: hidden; } /* V35: fondo crema (antes blanco) */
.act-dossier .wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: center; }
.desk { position: relative; height: 480px; perspective: 1700px; }
.doc {
  position: absolute; left: 50%; top: 50%; width: min(620px, 92%); aspect-ratio: 1.414 / 1; display: block;
  transform-style: preserve-3d; text-decoration: none;
  transform: translate(-50%, -50%) rotateX(var(--rx, 16deg)) rotateY(var(--ry, -6deg)) rotateZ(var(--rz, -4deg));
  transition: transform .3s linear;
}
.doc-sheet { position: absolute; inset: 0; background: #fff; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 30px 60px -24px rgba(20, 40, 90, .45); }
.doc-sheet--back2 { transform: translate3d(18px, 16px, -2px) rotate(2deg); background: #f1f2f0; }
.doc-sheet--back1 { transform: translate3d(9px, 8px, -1px) rotate(1deg); background: #f8f8f6; }
.doc-cover { display: flex; flex-direction: row; overflow: hidden; }
.doc-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.28) 48%, rgba(255,255,255,0) 60%), linear-gradient(90deg, rgba(0,0,0,0) 49.6%, rgba(0,0,0,.08) 50%, rgba(0,0,0,0) 51%); }
.doc-photo { flex: 0 0 56%; overflow: hidden; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-foot { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 6% 7%; }
/* Portada real del PDF (17/11/2026): la página 1 entera, como el dossier de la Home */
.doc-cover--img { display: block; background: #fff; }
.doc-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.doc-kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--azul-claro); }
.doc-name { font-size: clamp(15px, 1.5vw, 22px); font-weight: 900; line-height: 1.1; color: var(--azul); }
.doc-num { font-size: 13px; font-weight: 900; color: var(--cat-ink); }
.doc:hover { --rx: 10deg; --rz: -2deg; }
@media (max-width: 900px) {
  .act-dossier .wrap { grid-template-columns: 1fr; }
  .desk { height: 360px; }
  .doc { width: 92%; }
}

/* ==========================================================================
   9. ACTUACIONES RELACIONADAS
   ========================================================================== */
.related { padding: 110px 0 130px; background: #fff; }
.related .act-h2 { margin-bottom: 40px; }
.rel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rel-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--azul); border-radius: 22px; overflow: hidden; border: 1.5px solid var(--azul-linea); transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.rel-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--crema); display: grid; place-items: center; }
/* V8: imagen destacada de cada actuación; franja inferior con el color de su categoría */
.rel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rel-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--c); }
.rel-media .tag-pendiente { position: absolute; left: 12px; top: 12px; }
.rel-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px 22px; }
.rel-title { font-size: 21px; font-weight: 900; line-height: 1.15; }
.rel-title span { display: block; font-size: 13px; letter-spacing: .14em; color: var(--c); margin-bottom: 4px; }
.rel-arrow { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--c); color: var(--c); transition: background .35s, color .35s, transform .35s var(--ease); }
.rel-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rel-card:hover { border-color: var(--c); transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(20, 40, 90, .45); }
.rel-card:hover .rel-media img { transform: scale(1.06); }
.rel-card:hover .rel-arrow { background: var(--c); color: #fff; transform: translateX(4px); }
@media (max-width: 900px) { .rel-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   WordPress · añadidos de la migración (sin coreografía)
   ========================================================================== */
/* Escritorio sin escenario fijo: la cabecera ocupa su alto natural (mínimo, la pantalla menos un respiro) */
@media (min-width: 901px) {
  .act-hero-sticky { min-height: min(100vh, 900px); }
}
/* ¿Qué incluye? sin ilustración (13, 15, Comunicación, Formación): solo el texto, sin hueco */
.inc-item--text { align-items: stretch; }
.inc-item--text .inc-body { width: 100%; max-width: 560px; padding-left: 22px; border-left: 3px solid var(--c); }
.incluye-list:has(.inc-item--text) { gap: clamp(40px, 7vh, 80px); }
/* «Descargar»: texto opcional del documento */
.act-dossier-text { margin: 18px 0 0; max-width: 42ch; color: #33415f; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; }
/* Enlaces reales de la ficha (p. ej. plataforma e-learning), con el botón «e-learning» del rediseño */
.act-links { position: relative; background: #fff; padding: clamp(70px, 9vw, 110px) 0; }
.act-links-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 22px; }
.act-links .btn-elearning {
  display: inline-flex; align-items: center; gap: 14px; margin: 0; padding: 16px 22px 16px 28px; border-radius: 999px;
  background: var(--azul); color: #fff; text-decoration: none; font-size: 15px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 16px 30px -18px rgba(20, 40, 90, .7); transition: background .35s var(--ease), transform .35s var(--ease);
}
.act-links .btn-elearning .arrow { display: grid; place-items: center; transition: transform .35s var(--ease); }
.act-links .btn-elearning:hover, .act-links .btn-elearning:focus-visible { background: var(--azul-profundo); transform: translateY(-2px); }
.act-links .btn-elearning:hover .arrow { transform: translateX(5px); }
.act-links .btn-elearning:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 4px; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .dance-stage .tr img, .dance-box .tr img, .map-waves .wave, .act-caret { animation: none; }
  .js .reveal, .js .act-hero .act-hero-copy > * { opacity: 1 !important; transform: none !important; }
  .js .act-hero .act-hero-media img { clip-path: none; }
  .act-hero-line polyline { stroke-dashoffset: 0; transition: none; }
  .map-frame { opacity: 1; transform: none; }
  .pin.is-active button::after { animation: none; }
  .gal-item { transition: none; }
}
/* =====================================================================
   16/11/2026 · Submenú sticky de apartados (antes, enlaces pequeños bajo la imagen de cabecera)
   Barra bajo la cabecera de la web con el nombre de la actuación y una píldora por apartado; la del apartado visible se
   rellena del color del área. Baja 40 px cuando aparece la ruta de navegación (.site-route).
   ===================================================================== */
.act-subnav {
  position: sticky; top: var(--header-h); z-index: 80;
  background: rgba(255, 255, 255, .94); border-top: 1px solid var(--azul-linea); border-bottom: 1px solid var(--azul-linea);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: top .28s var(--ease);
}
body:has(.site-route.is-visible) .act-subnav { top: calc(var(--header-h) + 40px); }
.act-subnav-inner { display: flex; align-items: center; gap: 20px; min-height: 58px; }
.act-subnav-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 16px; font-weight: 750; color: var(--azul-profundo); white-space: nowrap; }
.act-subnav-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--azul)); }
.act-subnav .act-index {
  grid-area: auto; justify-self: auto; margin: 0 0 0 auto; padding: 8px 0; list-style: none;
  display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.act-subnav .act-index::-webkit-scrollbar { display: none; }
.act-subnav .act-index li { flex: 0 0 auto; }
.act-subnav .act-index a {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--azul-linea);
  font-size: 14px; font-weight: 700; color: var(--azul-profundo); text-decoration: none; white-space: nowrap; opacity: 1;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.act-subnav .act-index a:hover, .act-subnav .act-index a:focus-visible { border-color: var(--cat, var(--azul)); text-decoration: none; }
.act-subnav .act-index a.is-active { background: var(--cat, var(--azul)); border-color: transparent; color: #fff; }
.single-actuacion main [id] { scroll-margin-top: calc(var(--header-h) + 76px); }
@media (max-width: 760px) {
  .act-subnav-label { display: none; }
  .act-subnav .act-index { margin: 0; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .act-subnav, .act-subnav .act-index a { transition: none; } }
/* =====================================================================
   16/11/2026 · ¿En qué consiste? (variante común) con el diseño de la Home: fondo crema, antetítulo con trazo, título a
   la izquierda y tarjetas blancas de igual alto con el número y un trazo de su color arriba.
   ===================================================================== */
.act-cons--home { position: relative; background: var(--crema); }
.act-cons--home .act-cons-inner { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(72px, 9vw, 130px); }
.act-cons-head { margin-bottom: clamp(32px, 4.4vw, 56px); }
.act-cons-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: clamp(14px, 1.1vw, 16px); font-weight: 700; line-height: 1.2; color: var(--texto-suave); }
.act-cons-kicker::before { content: ""; flex: 0 0 auto; width: 34px; height: 5px; border-radius: 3px; background: var(--cat, var(--azul-claro)); }
.act-cons--home .act-cons-title { margin: 0; text-align: left; max-width: 20ch; }
.act-cons-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.act-cons-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.act-cons-card { display: flex; }
.act-cons-card-box {
  position: relative; flex: 1 1 auto; border-radius: 18px; background: #fff;
  padding: clamp(26px, 2.6vw, 38px) clamp(24px, 2.4vw, 34px) clamp(28px, 2.8vw, 40px);
  box-shadow: 0 1px 0 rgba(43, 80, 158, .06), 0 22px 44px -34px rgba(20, 40, 90, .45);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.act-cons-card-box::before { content: ""; position: absolute; left: clamp(24px, 2.4vw, 34px); top: 0; width: 56px; height: 5px; border-radius: 0 0 3px 3px; background: var(--k); transition: width .45s var(--ease); }
.act-cons-card-num { display: block; font-family: var(--font-display); font-size: clamp(40px, 3.6vw, 54px); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--k); }
.act-cons-card:nth-child(4n + 3) .act-cons-card-num { color: #d16c9f; } /* rosa algo más oscuro para leerse sobre blanco */
.act-cons-card-box h3 { margin: 18px 0 0; font-size: clamp(19px, 1.5vw, 23px); font-weight: 800; line-height: 1.2; color: var(--azul); }
.act-cons-card-box p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: #3b4a6b; }
@media (hover: hover) {
  .act-cons-card-box:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(43, 80, 158, .06), 0 30px 54px -34px rgba(20, 40, 90, .55); }
  .act-cons-card-box:hover::before { width: calc(100% - clamp(48px, 4.8vw, 68px)); }
}
@media (max-width: 1100px) { .act-cons-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .act-cons-cards, .act-cons-cards--4 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .act-cons-card-box, .act-cons-card-box::before { transition: none; } }
/* 16/11/2026: el texto del botón de descarga va siempre en una línea */
.btn-download { white-space: nowrap; max-width: 100%; font-size: clamp(12px, 1vw, 14px); letter-spacing: .06em; }
@media (max-width: 420px) { .btn-download { font-size: 12px; letter-spacing: .03em; padding-left: 20px; gap: 10px; } }
