/* El mosaico de la portada (mosaico.js): azulejos de alberca. Cada pieza tiene su cara (ícono y texto) y, encima, su escena
   (.anim, posición absoluta: nunca cambia el tamaño de la pieza ni mueve a las demás). .activa la muestra: cursor, foco o turno.
   Solo se animan transform y opacity; las escenas se miden con unidades del contenedor (cq*) para verse igual en celular. */

/* ---------- bajo el agua: juntas del azulejo y cáusticas que se desvanecen con la profundidad ---------- */
.sec-mosaico { position: relative; isolation: isolate; overflow: hidden; padding: 8px 0 clamp(56px, 8vw, 104px); background: linear-gradient(#0c1433, var(--noche) 560px); }
.sec-mosaico::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px) 0 0 / 28px 28px; }
.causticas { position: absolute; inset: 0 0 auto; z-index: -1; height: 620px; overflow: hidden; pointer-events: none; }
.causticas i { position: absolute; top: 0; left: 0; width: calc(100% + 480px); height: 100%; opacity: .5; mix-blend-mode: screen; will-change: transform;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .017' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .37 0 0 0 0 .84 0 0 0 0 .81 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 .05 .55 .05 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='480' height='480' filter='url(%23c)'/%3E%3C/svg%3E") 0 0 / 480px 480px;
  animation: deriva 46s linear infinite; }
.causticas i + i { opacity: .32; background-position: 170px 90px; animation-duration: 70s; animation-direction: reverse; }
.causticas::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 10%, var(--noche) 96%); }
@keyframes deriva { to { transform: translate3d(-480px, 0, 0); } }
.sec-mosaico .h2 { margin-bottom: 26px; }

/* ---------- cuadrícula: 2 columnas en celular, 4 desde 640 px, 6 desde 1000 px ---------- */
.bento {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(136px, auto); gap: 12px;
  grid-template-areas: "cuenta cuenta" "tarifas programa" "pase programa" "pase cupo" "pasos pasos" "panel panel" "panel panel" "ponentes sede" "pago recuperar" "congreso congreso";
}
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(156px, auto);
    grid-template-areas: "cuenta cuenta tarifas pase" "programa programa cupo pase" "programa programa pasos pasos" "panel panel ponentes sede" "panel panel pago recuperar" "congreso congreso congreso congreso"; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(172px, auto);
    grid-template-areas: "cuenta cuenta tarifas programa programa pase" "cupo pasos pasos programa programa pase" "panel panel ponentes ponentes sede pago" "panel panel congreso congreso congreso recuperar"; }
}

/* ---------- pieza: cara y escena encima ---------- */
.b {
  position: relative; overflow: hidden; display: block; min-width: 0; padding: clamp(16px, 2vw, 22px); border: 0; border-radius: 26px; color: #fff; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .3s, box-shadow .3s; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12);
}
.b::before { /* azulejo chico: la textura del mosaico, en el color de la tinta de cada pieza */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(color-mix(in srgb, currentColor 9%, transparent) 1px, transparent 1px) -1px -1px / 22px 22px, linear-gradient(90deg, color-mix(in srgb, currentColor 9%, transparent) 1px, transparent 1px) -1px -1px / 22px 22px;
}
.b:is(:hover, :focus-visible, .activa) { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 18px 40px -14px rgb(0 0 0 / .75); }
.cara { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; height: 100%; transition: opacity .35s ease, transform .35s ease; }
.cara > b { font: 800 clamp(19px, 2vw, 25px)/1.08 var(--titulos); letter-spacing: -.01em; }
.cara > span:not(.b-cap, .b-anillo, .cuerdas, .tel) { font-size: 14px; line-height: 1.3; opacity: .85; }
:is(.b-cuenta, .b-pasos, .b-congreso, .b-pase) .cara > span { opacity: 1; }      /* sobre color, el texto chico va a tinta plena (contraste 4.5:1) */
.b-ico { flex: none; width: clamp(32px, 3vw, 40px); height: clamp(32px, 3vw, 40px); margin-bottom: auto; }
.anim { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; opacity: 0; transform: scale(1.03); pointer-events: none; container-type: size; transition: opacity .35s ease .1s, transform .35s ease .1s; }
.b.activa .cara { opacity: 0; transform: scale(.96); }
.b.activa .anim { opacity: 1; transform: none; }
.b:is(.b-panel, .b-congreso).activa .cara { opacity: 1; transform: none; }      /* estas dos se animan en su propia cara */

/* ---------- 1 · cuenta regresiva (cronómetro) ---------- */
.b-cuenta { grid-area: cuenta; background: #ff7e67; color: var(--navy); }
.b-cuenta .grande { font-size: 1.9em; letter-spacing: -.03em; }
.b-cuenta .anim { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 5%, 26px); background: #ff7e67; }
.cr { position: relative; flex: none; display: block; --d: clamp(64px, 60cqh, 112px); width: var(--d); height: var(--d); border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 4px #fff, 0 8px 18px rgb(27 51 104 / .35); }
.cr::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: repeating-conic-gradient(rgb(255 255 255 / .75) 0 2.5deg, transparent 2.5deg 30deg); -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%); mask: radial-gradient(circle, transparent 60%, #000 62%); }
.cr::after { content: ""; position: absolute; left: 50%; top: -9%; width: 16%; height: 12%; margin-left: -8%; border-radius: 3px 3px 0 0; background: var(--navy); }
.cr-aguja { position: absolute; left: 50%; bottom: 50%; width: 3px; height: 36%; margin-left: -1.5px; border-radius: 3px; background: #ff7e67; transform-origin: 50% 100%; }
:is(.b.activa, .det-cuenta) .cr-aguja { animation: gira 4s linear infinite; }
.cr-txt { display: grid; gap: 4px; }
.cr-txt b { font: 800 clamp(22px, 8.4cqw, 38px)/1 var(--titulos); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.cr-txt small { font: 700 12.5px/1.2 var(--texto); }

/* ---------- 2 · tarifas ---------- */
.b-tarifas { grid-area: tarifas; background: #151c33; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.b-tarifas .b-ico { color: var(--acento-cl); }
.b-tarifas .anim { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 6px; padding: 12px; background: #151c33; }
.tf { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgb(255 255 255 / .08); font: 700 12.5px/1 var(--texto); }
.tf i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf b { font: 800 15px/1 var(--titulos); }
.tf-hoy { background: var(--acento-cl); color: var(--tinta); }
.b-tarifas.activa .tf { animation: entra .45s cubic-bezier(.3, 1.3, .5, 1) calc(.15s + var(--i) * .22s) both; }

/* ---------- 3 · programa: los días pasan uno tras otro ---------- */
.b-programa { grid-area: programa; background: linear-gradient(160deg, #2448a3, #1b3368 60%, #142858); }
.b-programa .anim { display: grid; padding: 14px; background: linear-gradient(160deg, #2448a3, #1b3368 60%, #142858); }
.pg-dia { grid-area: 1 / 1; display: grid; align-content: center; gap: 6px; min-width: 0; opacity: 0; }
.pg-dia em { font: 800 14px/1 var(--titulos); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--acento-cl); }
.pg-s { display: block; padding: 8px 9px; border-radius: 9px; background: rgb(255 255 255 / .1); font: 600 12px/1.2 var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-s i { font-style: normal; font-weight: 800; }
.pg-taller { box-shadow: inset 3px 0 0 #ff7e67; }
@container (height < 240px) { .pg-s:nth-of-type(n + 5) { display: none; } }
.b-programa.activa .pg-dia { animation: turno3 9s calc(var(--i) * 3s) infinite both; }
@keyframes turno3 { 0% { opacity: 0; transform: translateX(16px); } 4%, 30% { opacity: 1; transform: none; } 33.3%, 100% { opacity: 0; transform: translateX(-16px); } }

/* ---------- 4 · tu pase: el QR se dibuja, pasa el lector y queda la palomita ---------- */
.b-pase { grid-area: pase; background: var(--acento); color: var(--tinta); }
.b-pase .anim { display: grid; place-items: center; background: var(--acento); }
.mp { position: relative; display: grid; justify-items: center; gap: 7px; width: min(74cqw, 62cqh, 170px); padding: 10px 10px 12px; border-radius: 14px; background: #fff; color: var(--navy); box-shadow: 0 12px 24px -8px rgb(0 0 0 / .45); }
.mp-top { display: grid; gap: 4px; width: 100%; }
.mp-top b { font: 800 11px/1 var(--titulos); letter-spacing: .1em; text-transform: uppercase; }
.mp-top i { height: 5px; border-radius: 3px; background: #dfe2ef; }
.mp-top i:last-child { width: 60%; }
.mp-qr { position: relative; display: block; width: 100%; overflow: hidden; border-top: 2px dashed #dfe2ef; container-type: inline-size; }
.mp-qr svg { display: block; width: 100%; height: auto; }
.mp-tapa { position: absolute; inset: 0; background: #fff; }
.b-pase.activa .mp-tapa { animation: dibuja 1.5s steps(9) .35s both; }
@keyframes dibuja { to { transform: translateY(101%); } }
.mp-laser { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #ff7e67; box-shadow: 0 0 10px 2px rgb(255 126 103 / .7); opacity: 0; }
.b-pase.activa .mp-laser { animation: laser 2.2s ease-in-out 2.1s both; }
@keyframes laser { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 50% { opacity: 1; transform: translateY(98cqw); } 90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
.mp-ok { position: absolute; right: -10px; top: -10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; opacity: 0; }
.mp-ok .ico { width: 16px; height: 16px; stroke-width: 3; }
.b-pase.activa .mp-ok { animation: brota .5s cubic-bezier(.3, 1.6, .5, 1) 4.3s both; opacity: 1; }

/* ---------- 5 · cupo: el anillo se llena ---------- */
.b-cupo { grid-area: cupo; background: #10182e; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acento-cl) 38%, transparent); }
.b-anillo { display: block; width: 46px; height: 46px; margin-bottom: auto; }
.anillo { display: block; width: 100%; height: 100%; }
.anillo-pista { fill: none; stroke: rgb(255 255 255 / .13); }
.anillo-valor { fill: none; stroke: var(--acento-cl); stroke-linecap: round; }
.b-cupo .anim { display: grid; place-items: center; background: #10182e; }
.cp { position: relative; display: grid; place-items: center; align-content: center; width: min(74cqmin, 150px); aspect-ratio: 1; }
.cp .anillo { position: absolute; inset: 0; }
.cp b { font: 800 clamp(22px, 21cqmin, 38px)/1 var(--titulos); }
.cp small { font: 600 11px/1.2 var(--texto); color: var(--tenue); }
.b-cupo.activa .anillo-valor, .det-cupo .anillo-valor { animation: llena 1.4s cubic-bezier(.3, .9, .3, 1) .25s both; }
@keyframes llena { from { stroke-dashoffset: 100; } }      /* trazo pequeño y de una sola vez */

/* ---------- 6 · tres pasos: un nadador recorre el carril y enciende cada boya ---------- */
.b-pasos { grid-area: pasos; background: #a5a9d8; color: var(--navy); }
.b-pasos .anim { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 0 8%; background: #a5a9d8; }
.carril-mini { position: relative; display: flex; justify-content: space-between; align-items: flex-start; width: 100%; max-width: 420px; justify-self: center; container-type: inline-size; }
.carril-mini::before { content: ""; position: absolute; left: 20px; right: 20px; top: 18px; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--navy) 0 10px, #fff 10px 20px, #ff7e67 20px 30px); }
.boya { position: relative; display: grid; justify-items: center; gap: 6px; font-style: normal; }
.boya b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--navy); font: 800 17px/1 var(--titulos); box-shadow: 0 4px 10px rgb(27 51 104 / .3); }
.boya b.on { position: absolute; top: 0; background: var(--navy); color: #fff; opacity: 0; }
.boya em { font: 700 12.5px/1 var(--texto); font-style: normal; }
.b-pasos.activa .boya b.on { animation: enciende 6s calc(var(--i) * 1.8s + .2s) infinite both; }
@keyframes enciende { 0% { opacity: 0; transform: scale(.6); } 5% { opacity: 1; transform: scale(1.15); } 10%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.nadador { position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: #ff7e67; box-shadow: 0 0 0 4px rgb(255 126 103 / .4), 0 4px 8px rgb(27 51 104 / .4); transform: translateX(9px); }
.b-pasos.activa .nadador { animation: nada 6s cubic-bezier(.5, 0, .5, 1) infinite both; }
@keyframes nada { 0%, 4% { transform: translateX(9px); } 30%, 36% { transform: translateX(calc(50cqw - 12px)); } 62%, 100% { transform: translateX(calc(100cqw - 33px)); } }

/* ---------- 7 · el panel del comité en un teléfono: sus pantallas se turnan ---------- */
.b-panel { grid-area: panel; padding-bottom: 0; background: radial-gradient(circle at 50% 120%, #2a4fae, #1b3368 62%); }
.b-panel .cara { justify-content: flex-start; align-items: center; gap: 14px; }
.b-cap { align-self: flex-start; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--navy); font: 700 13px/1 var(--texto); }
.b-panel .tel { --w: clamp(150px, 17vw, 196px); --tel-sombra: 0 -10px 40px -10px rgb(0 0 0 / .5); }
.mpn { position: absolute; inset: calc(var(--s) * .14) 0 0; display: block; padding: 0 5.5cqw; color: #fff; font-size: 5.2cqw; }
[data-so="android"] .mpn { top: calc(var(--s) * .10); }
.mpn-barras { display: flex; align-items: flex-end; gap: .35em; width: 100%; height: 4.6em; padding: .7em .75em; border-radius: .7em; background: rgb(255 255 255 / .08); }
.mpn-barras i { flex: 1; height: calc(var(--h) * 100%); border-radius: .25em .25em 0 0; background: var(--acento-cl); }
.mpn-nav { position: absolute; inset: auto 0 0; display: flex; justify-content: space-around; padding: .9em 1em 1.5em; background: #0a0f1f; box-shadow: 0 -1px 0 rgb(255 255 255 / .1); }
.mpn-nav .ico { width: 1.5em; height: 1.5em; opacity: .5; }
.mpn-nav .ico:first-child { opacity: 1; color: var(--acento-cl); }
.mpn-cab { display: flex; align-items: center; gap: .45em; padding: .2em 0 .9em; font: 800 1em/1 var(--titulos); }
.mpn-cab i { width: .8em; height: .8em; border-radius: 50%; }
.mpn-cab em { margin-left: auto; padding: .35em .65em; border-radius: 99px; background: rgb(255 255 255 / .12); font: 700 .68em/1 var(--texto); font-style: normal; }
.mpn-pants { display: grid; }
.mpn-pant { grid-area: 1 / 1; display: grid; align-content: start; justify-items: center; gap: .6em; }
.mpn-pant:not(:first-child) { opacity: 0; }
.mpn-anillo { position: relative; display: grid; place-items: center; width: 9.4em; height: 9.4em; }
.mpn-anillo .anillo { position: absolute; inset: 0; }
.mpn-anillo b { font: 800 2.2em/1 var(--titulos); }
.mpn-l { font: 700 .92em/1.2 var(--texto); }
.mpn-t { justify-self: start; font: 800 1.25em/1 var(--titulos); }
.mpn-fila { display: flex; justify-content: space-between; gap: .5em; width: 100%; padding: .65em .75em; border-radius: .7em; background: rgb(255 255 255 / .08); font: 600 .82em/1 var(--texto); }
.mpn-fila i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpn-fila b { font-weight: 800; white-space: nowrap; }
.mpn-ok { display: grid; place-items: center; width: 5.4em; height: 5.4em; margin-top: .8em; border-radius: 50%; background: var(--teal-cl); color: var(--tinta); }
.mpn-ok .ico { width: 2.6em; height: 2.6em; stroke-width: 3; }
.b-panel.activa .mpn-pant { animation: turno3 9s calc(var(--i) * 3s) infinite both; }

/* ---------- 8 · ponentes: gorras de natación numeradas ---------- */
.b-ponentes { grid-area: ponentes; background: #e0f4f4; color: var(--navy); }
.b-ponentes .anim { display: grid; align-content: center; justify-items: center; gap: 10px; padding: 12px; background: #e0f4f4; }
.gorras { display: grid; grid-template-columns: repeat(6, auto); gap: 6px; }
@container (width < 290px) { .gorras { grid-template-columns: repeat(3, auto); } }
.gorra { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 35px; color: var(--navy); font-style: normal; }
.gorra:nth-child(3n + 2) { color: #007575; } .gorra:nth-child(3n) { color: #5a5f96; }
.gorra svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gorra b { position: relative; margin-top: 9px; color: #fff; font: 800 13px/1 var(--titulos); }
.b-ponentes.activa .gorra { animation: brota .5s cubic-bezier(.3, 1.6, .5, 1) calc(.1s + var(--i) * .12s) both; }
.esp { display: grid; justify-items: center; }
.esp em { grid-area: 1 / 1; opacity: 0; font: 700 12.5px/1.2 var(--texto); font-style: normal; text-align: center; }
.b-ponentes.activa .esp em { animation: turno6 9s calc(.9s + var(--i) * 1.5s) infinite both; }
@keyframes turno6 { 0% { opacity: 0; transform: translateY(6px); } 3%, 14% { opacity: 1; transform: none; } 16.6%, 100% { opacity: 0; transform: translateY(-6px); } }

/* ---------- 9 · sede: una alberca vista desde arriba, el pin cae y hace ondas ---------- */
.b-sede { grid-area: sede; background: #151c33; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.b-sede .b-ico { color: #ff7e67; }
.b-sede .anim { display: grid; place-items: center; background: #151c33; }
.alb { position: relative; display: block; width: 78cqw; height: 58cqh; border-radius: 12px; box-shadow: 0 0 0 4px #e0f4f4;
  background: repeating-linear-gradient(0deg, transparent 0 calc(25% - 2px), rgb(255 255 255 / .55) calc(25% - 2px) 25%), linear-gradient(160deg, #00a8a8, #007575); }
.alb-pin { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -32px 0 0 -18px; }
.alb-pin .ico { width: 100%; height: 100%; fill: #ff7e67; stroke: var(--navy); }
.onda { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
:is(.b.activa, .dp) .onda { animation: onda-agua 2.2s ease-out .7s infinite; }
:is(.b.activa, .dp) .onda.o2 { animation-delay: 1.8s; }
@keyframes onda-agua { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(2.6); } }
:is(.b.activa, .dp) .alb-pin { animation: cae .7s cubic-bezier(.3, 1.5, .5, 1) .15s both; }
@keyframes cae { from { opacity: 0; transform: translateY(-40px); } }

/* ---------- 10 · pago: tarjeta aprobada y ficha OXXO pagada, por turnos ---------- */
.b-pago { grid-area: pago; background: #ffece8; color: var(--navy); }
.b-pago .anim { display: grid; place-items: center; padding: 10px; background: #ffece8; }
.pg-tj, .pg-ox { grid-area: 1 / 1; display: grid; justify-items: center; gap: 6px; opacity: 0; }
.pg-tj > .ico, .pg-ox > .ico { width: 34px; height: 34px; }
.pg-tj em, .pg-ox em { font: 800 14px/1 var(--titulos); font-style: normal; }
.pg-tj b, .pg-ox b { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: #007575; color: #fff; font: 700 12px/1 var(--texto); white-space: nowrap; }
.pg-ox .barras { width: 84px; height: 18px; }
.b-pago.activa .pg-tj { animation: turno2 7s infinite both; }
.b-pago.activa .pg-ox { animation: turno2 7s 3.5s infinite both; }
.b-pago.activa .pg-tj b { animation: sello 7s infinite both; }
.b-pago.activa .pg-ox b { animation: sello 7s 3.5s infinite both; }
@keyframes turno2 { 0% { opacity: 0; transform: translateY(10px); } 6%, 44% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes sello { 0%, 14% { opacity: 0; transform: scale(.4); } 20%, 100% { opacity: 1; transform: none; } }

/* ---------- 11 · el congreso: cuerdas de carril que ondulan y la estela de un nadador ---------- */
.b-congreso { grid-area: congreso; background: #007575; color: #fff; }
.b-congreso .cara { padding-top: 46px; }
.cuerdas { position: absolute; inset: -6px -22px auto; height: 44px; display: grid; align-content: space-between; opacity: .7; pointer-events: none; }
.cuerda:nth-child(3) { display: none; }
.cuerda { display: block; height: 10px; margin-inline: -20px; --f: 4px;
  background: radial-gradient(circle var(--f) at 50% 50%, #fff 94%, transparent) 0 0 / 36px 10px repeat-x, radial-gradient(circle var(--f) at 50% 50%, #ff7e67 94%, transparent) 12px 0 / 36px 10px repeat-x, radial-gradient(circle var(--f) at 50% 50%, #5fd6cf 94%, transparent) 24px 0 / 36px 10px repeat-x; }
.b-congreso.activa .cuerda { animation: ondula 2.6s ease-in-out calc(var(--i) * .35s) infinite; }
@keyframes ondula { 50% { transform: translate(-12px, 4px); } }
.estela { position: absolute; left: -32%; top: 17px; width: 30%; height: 10px; border-radius: 10px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .85)); opacity: 0; }
.b-congreso.activa .estela { animation: cruza 3.4s ease-in-out .4s infinite; }
@keyframes cruza { 0% { opacity: 0; transform: translateX(0); } 15%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(460%); } }
.b-congreso .cara > b { max-width: 22em; font-size: clamp(19px, 2vw, 24px); }

/* ---------- 12 · recuperar el pase: un salvavidas ---------- */
.b-recuperar { grid-area: recuperar; background: transparent; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .28); }
.b-recuperar .b-ico { color: #ff7e67; }
.b-recuperar .anim { display: grid; place-items: center; background: #151c33; }
.sv { position: relative; display: block; width: min(46cqmin, 84px); aspect-ratio: 1; margin-bottom: 18px; color: #ff7e67; }
.sv .ico { display: block; width: 100%; height: 100%; stroke-width: 2.2; }
.sv .onda { border-color: var(--teal-cl); }
.b-recuperar.activa .sv .ico { animation: gira 9s linear infinite; }
.sv-chip { position: absolute; bottom: 10%; left: 50%; display: inline-flex; align-items: center; gap: 5px; margin-left: -70px; width: 140px; justify-content: center; padding: 6px 0; border-radius: 999px; background: var(--teal-cl); color: var(--tinta); font: 700 11.5px/1 var(--texto); white-space: nowrap; }
.b-recuperar.activa .sv-chip { animation: brota .5s cubic-bezier(.3, 1.6, .5, 1) 1s both; }

/* ---------- pieza ampliada: crece desde su lugar (transición de vista) y lleva el contenido real ---------- */
.dp-cab { position: relative; padding: 22px 120px 20px 22px; background: var(--pz, #1b3368); color: var(--pz-fg, #fff); }
.dp-cab .eyebrow { color: inherit; }
.dp-cab h2 { margin-top: 8px; font: 800 clamp(24px, 4vw, 36px)/1.05 var(--titulos); letter-spacing: -.02em; text-wrap: balance; }
.dp-cuerpo { display: grid; gap: 16px; padding: 22px; font-size: 16px; line-height: 1.5; }
.dp-cuerpo .ctas { margin-top: 4px; }
.dp-cuerpo .lead { margin: 0; }
.dp-cuenta, .dp-pago { --pz-fg: var(--navy); } .dp-cuenta { --pz: #ff7e67; } .dp-pago { --pz: #ffece8; }
.dp-tarifas, .dp-sede, .dp-cupo, .dp-recuperar { --pz: #1b2443; }
.dp-pase { --pz: var(--acento); --pz-fg: var(--tinta); }
.dp-pasos { --pz: #a5a9d8; --pz-fg: var(--navy); }
.dp-ponentes { --pz: #e0f4f4; --pz-fg: var(--navy); }
.dp-congreso { --pz: #007575; }
.dp-programa .prog { margin: 0; }
@media (min-width: 720px) { .dlg-pieza.dp-programa { width: min(1040px, 100vw - 24px); } .dp-programa .prog { grid-template-columns: repeat(3, 1fr); } }

.det-cuenta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; padding: 8px 0; }
.cr-grande { --d: 116px; }
.relojes { display: flex; gap: 8px; }
.relojes span { display: grid; justify-items: center; gap: 4px; min-width: 62px; padding: 12px 6px 10px; border-radius: 14px; background: rgb(255 255 255 / .07); font: 700 11.5px/1 var(--texto); letter-spacing: .08em; text-transform: uppercase; color: var(--tenue); }
.relojes b { font: 800 30px/1 var(--titulos); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: #fff; }
.tars { display: grid; gap: 10px; }
@media (min-width: 640px) { .tars { grid-template-columns: repeat(3, 1fr); } }
.tar { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 18px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .12); }
.tar-vig { box-shadow: inset 0 0 0 2px var(--acento-cl); background: color-mix(in srgb, var(--acento) 12%, transparent); }
.tar-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 800 17px/1.2 var(--titulos); }
.tar-precio { font: 800 36px/1 var(--titulos); letter-spacing: -.03em; }
.tar-nota, .tar-vigencia { font-size: 13.5px; color: var(--tenue); }
.tar .btn { margin-top: 8px; }
.det-cupo, .det-sede, .det-panel { display: grid; gap: 20px; align-items: center; justify-items: center; }
.cp-grande { width: 170px; }
.cp-grande b { font-size: 44px; }
.alb-grande { width: min(100%, 320px); height: 170px; }
.datos { display: grid; gap: 12px; width: 100%; }
.datos dt { font: 700 11px/1 var(--texto); letter-spacing: .1em; text-transform: uppercase; color: var(--tenue); }
.datos dd { margin-top: 4px; font: 700 17px/1.25 var(--titulos); }
.pasos-det { display: grid; gap: 10px; }
.pasos-det li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px; border-radius: 18px; background: rgb(255 255 255 / .05); }
.pasos-det li > span { position: absolute; top: 10px; right: 14px; font: 800 34px/1 var(--titulos); color: rgb(255 255 255 / .14); }
.pasos-det .ico { grid-row: span 2; width: 34px; height: 34px; color: var(--acento-cl); }
.pasos-det b { font: 800 18px/1.2 var(--titulos); }
.pasos-det p { font-size: 14.5px; color: var(--tenue); }
.metodos, .pon { display: grid; gap: 10px; }
.metodos li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px; border-radius: 18px; background: rgb(255 255 255 / .05); }
.metodos .ico { grid-row: span 2; width: 34px; height: 34px; color: #ff7e67; }
.metodos b { font: 800 18px/1.2 var(--titulos); }
.metodos p { font-size: 14.5px; color: var(--tenue); }
.pon li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgb(255 255 255 / .05); }
.pon div { display: grid; gap: 2px; min-width: 0; }
.pon div b { font: 800 16px/1.2 var(--titulos); }
.pon div span { font-size: 13.5px; color: var(--tenue); }
.pon .gorra { color: #2a4fae; } .pon li:nth-child(3n + 2) .gorra { color: #007575; } .pon li:nth-child(3n) .gorra { color: #5a5f96; }
.lista-ok { display: grid; gap: 10px; width: 100%; }
.lista-ok li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.lista-ok .ico { margin-top: 3px; color: var(--teal-cl); stroke-width: 3; }
.tel-det { --w: 190px; }
.tel-det .mpn-pant { animation: turno3 9s calc(var(--i) * 3s) infinite both; }
@media (min-width: 640px) {
  .det-cupo, .det-sede, .det-panel { grid-template-columns: auto 1fr; justify-items: start; }
  .pasos-det, .metodos { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .pasos-det li, .metodos li { grid-template-columns: 1fr; align-content: start; gap: 8px; }
  .pon { grid-template-columns: 1fr 1fr; }
}

/* ---------- menos movimiento: las piezas se quedan en su cara y nada se desplaza ---------- */
@media (prefers-reduced-motion: reduce) {
  .b .anim { display: none; }
  .b.activa .cara { opacity: 1; transform: none; }
  .b, .b *, .dp *, .causticas i { animation: none !important; transition: none !important; }
  .b:is(:hover, :focus-visible, .activa) { transform: none; }
  .mpn-pant:first-child { opacity: 1; }
}
