:root {
  --noche: #0b222d; --manta: #f4f1ea; --grana: #d9352f; --ocre: #f4a247; --verde: #7fb4d8; --cuerda: #8fa6b2; --teal: #1a5873; --cielo: #b8d4ec;
  --titulo: "Big Shoulders Display", Impact, sans-serif;
  /* Greca escalonada, como en el bordado huasteco */
  --greca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Cpath fill='%23ea3833' d='M0 16V12H4V8H8V4H12V0H20V4H24V8H28V12H32V16Z'/%3E%3Cpath fill='%23f4f1ea' d='M14 8H18V12H14Z'/%3E%3C/svg%3E") 0 0 / 32px 16px repeat-x;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { font: 1.05rem/1.6 Figtree, system-ui, sans-serif; background: var(--noche); color: var(--manta); }
img, iframe { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; }
main { overflow-x: clip; }
h2 { font: 900 clamp(2.6rem, 8vw, 5rem)/.95 var(--titulo); text-transform: uppercase; text-wrap: balance; margin-bottom: 1.25rem; }
h2::after { content: ""; display: block; width: 8rem; height: 16px; margin-top: .75rem; background: var(--greca); }
.oculto, .saltar { position: absolute; left: -999px; }
.saltar:focus { left: 1rem; top: 1rem; z-index: 9; background: var(--manta); color: var(--noche); padding: .5rem 1rem; }

.boton { display: inline-block; padding: .75rem 1.5rem; border: 2px solid var(--grana); background: var(--grana); color: var(--manta); font: 700 1.15rem var(--titulo); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.boton:hover { background: var(--manta); border-color: var(--manta); color: var(--noche); }
.boton.hueco { background: transparent; border-color: var(--manta); color: var(--manta); }
.boton.hueco:hover { background: var(--manta); color: var(--noche); }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }

.portada { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.5rem 1rem 4.5rem; }
.maguey { width: clamp(13rem, 38vw, 18rem); height: auto; margin: -2rem 0 -.25rem; }
.maguey .flor { transform-box: fill-box; transform-origin: 50% 100%; animation: brota .9s cubic-bezier(.2,1.3,.4,1) both; }
.maguey .aura { animation: late 6s ease-in-out infinite; }
.maguey .perlas { transform-box: fill-box; transform-origin: center; animation: gira 90s linear infinite; }
@keyframes gira { to { transform: rotate(1turn); } }
@keyframes brota { from { transform: scale(0); } }
@keyframes late { 50% { opacity: .6; } }
h1 { width: min(100%, 52rem); filter: drop-shadow(.25rem .25rem 0 var(--grana)); }
h1::before { content: ""; display: block; aspect-ratio: 877 / 377; background: #fff; mask: url(img/letras.png) center / contain no-repeat; }
.sobre { margin: 2rem 0 .75rem; font: 700 1.15rem var(--titulo); text-transform: uppercase; letter-spacing: .3em; color: var(--ocre); }
.lema { max-width: 36rem; font-size: 1.25rem; }

.cinta { overflow: hidden; background: var(--grana); color: var(--manta); padding: .55rem 0; }
.cinta div { display: flex; width: max-content; animation: corre 40s linear infinite; }
.cinta p { display: flex; font: 900 1.5rem var(--titulo); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.cinta span::after { content: "✦"; margin: 0 1.5rem; color: var(--noche); }
@keyframes corre { to { translate: -50% 0; } }

.bloque { position: relative; padding: clamp(3.5rem, 6vw, 5rem) max(1rem, 8vw); }
.bloque::before { content: ""; position: absolute; inset: 0 0 auto; height: 16px; background: var(--greca); rotate: 180deg; }
.intro { max-width: 40rem; font-size: 1.2rem; }

/* Árbol de la vida bordado que da paso a los tres instrumentos */
/* Ocupa justo lo que queda bajo la barra, para verse completo de una vez */
.arbol { display: flex; flex-direction: column; align-items: center; height: calc(100svh - 6rem); min-height: 22rem; margin-top: 3rem; scroll-margin-top: 0; }
.arbol-svg { display: block; flex: 1; width: 100%; min-height: 0; }
.ins { transform-box: fill-box; transform-origin: center; }
.ins-1 { color: var(--grana); } .ins-2 { color: var(--manta); --cuerda: #5a5245; } .ins-3 { color: var(--ocre); --cuerda: #4d3a1c; }
.cose path { opacity: 0; stroke: var(--b); }
.repetir { display: none; margin-top: .75rem; padding: .4rem 1.2rem; background: none; border: 1px solid #f4f1ea66; color: var(--manta); font: 700 1rem var(--titulo); text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.arbol.js .repetir { display: inline-block; }
.arbol.js .p, .arbol.js .ins { opacity: 0; }
/* 1) se borda el árbol  2) caen tres ramas  3) sus puntadas forman los instrumentos  4) quedan terminados y el árbol retoña */
.arbol.dibuja .p { animation: puntada .35s cubic-bezier(.3,1.8,.5,1) calc(var(--f) * 65ms) forwards; }
.arbol.dibuja .bordado { transform-box: fill-box; transform-origin: 50% 100%; animation: mece 1.1s ease-in-out 2.4s; }
.arbol.dibuja .r { animation: retono 6.2s linear 2.8s; }
.arbol.dibuja .cose path { animation: forma 4.6s calc(2.8s + var(--r)) forwards; }
.arbol.dibuja .ins { animation: termina 1.2s cubic-bezier(.2,1.5,.4,1) 7s forwards; }
.arbol.dibuja .ins-2 { animation-delay: 7.2s; } .arbol.dibuja .ins-3 { animation-delay: 7.4s; }
.nombre { transform-box: fill-box; transform-origin: center; }
.nombre { font: 900 26px var(--titulo); text-anchor: middle; text-transform: uppercase; letter-spacing: .08em; }
.arbol.js .nombre { opacity: 0; }
.arbol.dibuja .nombre { animation: sube .7s ease-out calc(7.8s + var(--i) * .2s) forwards; }
@keyframes puntada { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
@keyframes mece { 25% { rotate: -1.6deg; } 55% { rotate: 1.4deg; } 80% { rotate: -.6deg; } }
@keyframes retono { 0%, 76% { opacity: 0; } }
@keyframes forma {
  0% { opacity: 1; stroke: var(--a); transform: translate(var(--dx), var(--dy)); animation-timing-function: cubic-bezier(.5,0,.9,.6); }
  30% { opacity: 1; stroke: var(--a); transform: translate(calc(var(--dx) + var(--g)), calc(var(--dy) + var(--cae))) rotate(.01deg); animation-timing-function: ease-in-out; }
  46% { opacity: 1; stroke: var(--b); transform: translate(calc(var(--dx) - var(--g)), calc(var(--dy) * .45 + var(--cae) * .5)); animation-timing-function: cubic-bezier(.4,0,.15,1.25); }
  74%, 86% { opacity: 1; stroke: var(--b); transform: none; }
  100% { opacity: 0; stroke: var(--b); transform: none; }
}
@keyframes termina { from { opacity: 0; scale: .9; filter: brightness(2.4); } to { opacity: 1; scale: 1; filter: none; } }
@keyframes sube { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

/* Fichas: bloque plano, marco doble e instrumento entero */
.integrantes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.4rem, 2vw, 1.5rem); max-width: 64rem; margin: 3.5rem auto 0; }
.ficha { --c: var(--grana); --t: var(--manta); --cuerda: #d9b9a6; display: grid; grid-template-rows: auto 1fr auto; text-align: center; background: var(--c); color: var(--t); outline: 1px solid var(--manta); outline-offset: calc(-1 * clamp(4px, 1.2vw, 9px)); padding: clamp(4px, 1.2vw, 9px); container-type: inline-size; }
.ficha:nth-child(2) { --c: var(--manta); --t: var(--noche); --cuerda: #a89c84; outline-color: var(--noche); }
.ficha:nth-child(3) { --c: var(--ocre); --t: var(--noche); --cuerda: #e5c893; outline-color: var(--noche); }
.ficha::before { content: ""; height: 16px; margin: .6rem 6cqi 0; background: var(--greca); }
.ficha:nth-child(1)::before { filter: brightness(0) invert(.9) sepia(.2); }
.ficha .sombra { justify-self: center; width: min(62cqi, 7.6rem); height: auto; aspect-ratio: 2 / 5; margin: .75rem 0; color: var(--t); --noche: var(--c); }
.ficha b { grid-row: 3; font: 900 clamp(1rem, 15cqi, 2.3rem)/1 var(--titulo); text-transform: uppercase; padding: 0 3cqi; }
.ficha span { display: block; margin: .4rem 5cqi .75rem; padding-top: .5rem; border-top: 2px solid currentColor; font-weight: 700; font-size: clamp(.5rem, 6cqi, .8rem); line-height: 1.4; letter-spacing: .04em; min-height: 4.2em; text-transform: uppercase; }

@media (max-width: 40rem) { #trio { padding-inline: .75rem; } }

/* Historia del trío */
.grito { font: 900 clamp(3.5rem, 17vw, 11rem)/1 var(--titulo); text-transform: uppercase; color: var(--grana); -webkit-text-stroke: 1px var(--manta); margin-bottom: 1rem; }
h3 { font: 900 1.7rem/1.05 var(--titulo); text-transform: uppercase; margin-bottom: .5rem; }
.relato, .raices, .rasgos { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem; margin-top: 3rem; }
.relato { counter-reset: paso; }
.relato li { counter-increment: paso; padding-top: 1rem; border-top: 3px solid var(--grana); }
.relato li::before { content: counter(paso, upper-roman); display: block; font: 700 1rem var(--titulo); color: var(--ocre); letter-spacing: .2em; margin-bottom: .5rem; }
.raices article { padding: 1.5rem; border: 1px solid #f4f1ea55; border-top: 6px solid var(--grana); }
.raices article:nth-child(2) { border-top-color: var(--manta); }
.raices article:nth-child(3) { border-top-color: var(--ocre); }
.rasgos { margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.rasgos li { padding-top: 1rem; border-top: 1px solid #f4f1ea33; }
.rasgos b { display: block; font: 900 1.3rem/1.1 var(--titulo); text-transform: uppercase; color: var(--ocre); margin-bottom: .4rem; }
.fuente { margin-top: 3rem; font-size: .85rem; opacity: .75; }

/* Ficha: la foto manda; el instrumento aparece cuando la persona lo pide */
.ficha { position: relative; transition: translate .35s cubic-bezier(.2,1.4,.4,1), box-shadow .35s; }
.arte { position: relative; margin: .75rem 5cqi; aspect-ratio: 2 / 3; overflow: hidden; isolation: isolate; --cerrado: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); --abierto: polygon(50% -60%, 160% 50%, 50% 160%, -60% 50%); }
.arte > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.arte img { object-fit: cover; object-position: 50% 20%; transition: scale .8s cubic-bezier(.2,.7,.2,1); }
.ficha .arte .sombra { z-index: 1; margin: 0; width: 100%; height: 100%; aspect-ratio: auto; padding: 4% 0; background: var(--c); clip-path: var(--cerrado); transition: clip-path .55s cubic-bezier(.7,0,.2,1); }
.sombra use { transform-box: view-box; transform-origin: 50% 12%; transform: rotate(-14deg) scale(.8); transition: transform .8s cubic-bezier(.25,1.9,.4,1) .1s; }
.girar { position: absolute; inset: 0; z-index: 5; width: 100%; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.girar:focus-visible { outline: 3px solid var(--manta); outline-offset: 4px; }
.ficha:has(.girar:active) { scale: .98; }
.ficha.ver .arte .sombra { clip-path: var(--abierto); }
.ficha.ver .sombra use { transform: none; }
.ficha.ver .arte img { scale: 1.12; }
@media (hover: hover) {
  .ficha:hover { translate: 0 -8px; box-shadow: 0 18px 30px #0007; }
  .ficha:hover .arte .sombra { clip-path: var(--abierto); }
  .ficha:hover .sombra use { transform: none; }
  .ficha:hover .arte img { scale: 1.12; }
}
.pista { margin-top: 1rem; text-align: center; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }

/* Galería en movimiento */
.tira { overflow: hidden; border-block: 3px solid var(--naranja, var(--ocre)); }
.tira > div, .tira span { display: flex; gap: 4px; width: max-content; }
.tira > div { padding-block: 4px; animation: corre-tira 60s linear infinite; }
.tira img { height: clamp(11rem, 26vw, 19rem); width: auto; }
.tira:hover > div, .tira:focus > div, .tira:active > div { animation-play-state: paused; }
@keyframes corre-tira { to { translate: calc(-50% - 2px) 0; } }

/* Disco y repertorio */
.disco { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2.5rem; align-items: center; }
.disco img { width: 100%; height: auto; border: 1px solid #f4f1ea40; box-shadow: 12px 12px 0 var(--teal); }
.disco .sobre { margin-top: 0; }
.subtitulo { margin-top: 3.5rem; font-size: 2.4rem; }
.piezas { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; max-height: 19rem; overflow-y: auto; }
.piezas li { padding: .35rem .85rem; border: 1px solid #f4f1ea40; font-size: .92rem; }

/* Contratación: detalles plegados */
.tecnico { max-width: 42rem; margin: 2.5rem auto 0; text-align: left; border: 1px solid #ffffff80; }
.tecnico summary { cursor: pointer; padding: .9rem 1.25rem; font: 700 1.2rem var(--titulo); text-transform: uppercase; letter-spacing: .08em; }
.tecnico[open] { background: #0b222dcc; padding-bottom: 1.25rem; }
.tecnico ul, .tecnico p, .tecnico table, .tecnico h3 { margin: .75rem 1.25rem 0; }
.tecnico ul { padding-left: 1.1rem; }
.tecnico table { width: calc(100% - 2.5rem); border-collapse: collapse; font-size: .9rem; }
.tecnico :is(th, td) { padding: .35rem .5rem; border-bottom: 1px solid #ffffff40; text-align: left; }


/* En el camino: hojas de calendario agrupadas por año */
.anio { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem 2rem; padding: 2rem 0; border-top: 1px solid #f4f1ea33; }
.anio h3 { font-size: 4rem; line-height: .85; color: var(--grana); -webkit-text-stroke: 1px var(--manta); align-self: start; position: sticky; top: 6.5rem; }
.anio ol { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.anio a { display: flex; height: 100%; text-decoration: none; border: 1px solid #f4f1ea40; transition: translate .2s, border-color .2s; }
.anio a:hover, .anio a:focus-visible { translate: 0 -4px; border-color: var(--ocre); }
.anio time { flex: 0 0 4.75rem; display: flex; flex-direction: column; background: var(--manta); color: var(--noche); text-align: center; font-family: var(--titulo); }
.anio small { background: var(--grana); color: var(--manta); font-size: .95rem; font-weight: 700; letter-spacing: .14em; padding: .15rem 0; }
.anio strong { flex: 1; display: grid; place-content: center; min-height: 3.5rem; font-size: 2.1rem; font-weight: 900; line-height: 1; }
.anio span { align-self: center; padding: .75rem 1rem; font-size: .85rem; line-height: 1.4; color: #f4f1eabf; }
.anio b { display: block; margin-bottom: .25rem; font: 900 1.35rem/1.05 var(--titulo); text-transform: uppercase; color: var(--manta); }
/* la fecha más reciente destaca */
.anio:first-of-type li:first-child { grid-column: 1 / -1; }
.anio:first-of-type li:first-child time { flex-basis: 7.5rem; }
.anio:first-of-type li:first-child strong { font-size: 3.2rem; min-height: 6rem; }
.anio:first-of-type li:first-child b { font-size: clamp(1.5rem, 4vw, 2.4rem); }
.anio:first-of-type li:first-child a { border: 2px solid var(--ocre); }

/* Pestañas: sin JS todo el contenido queda visible */
.barra-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; padding: 4px; }
.barra-tabs button { flex: none; padding: .5rem 1.2rem; background: none; border: 1px solid #f4f1ea55; color: var(--manta); font: 700 1.15rem var(--titulo); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.barra-tabs button:hover { border-color: var(--ocre); }
.barra-tabs button[aria-selected="true"] { background: var(--grana); border-color: var(--grana); }
[role="tabpanel"] { animation: aparece .35s ease; }
@keyframes aparece { from { opacity: 0; translate: 0 .5rem; } }
[role="tabpanel"] > :is(.relato, .raices, .rasgos) { margin-top: 0; }
.con-tabs .anio { display: block; padding: 0; border: 0; }
.con-tabs .anio[hidden] { display: none; }
.con-tabs .anio h3 { position: absolute; left: -999px; }
.pestanas .grito { font-size: clamp(3.5rem, 13vw, 7rem); }

/* En móvil las tarjetas de cada pestaña se deslizan de lado en vez de apilarse */
@media (max-width: 40rem) {
  [role="tabpanel"] > :is(.relato, .raices) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; scrollbar-color: var(--grana) transparent; }
  [role="tabpanel"] > :is(.relato, .raices) > * { scroll-snap-align: start; }
}

.contrata { background: var(--grana); text-align: center; }
.contrata::before { display: none; }
.contrata h2::after { margin-inline: auto; filter: brightness(0) invert(.9) sepia(.2); }
.contrata .intro { margin-inline: auto; }
.contrata .boton:not(.hueco) { background: var(--noche); border-color: var(--noche); }
.contrata .boton:hover { background: var(--manta); border-color: var(--manta); color: var(--noche); }


@media (max-width: 40rem) {
  .anio { grid-template-columns: 1fr; }
  .anio h3 { position: static; font-size: 3rem; }
  .anio:first-of-type li:first-child time { flex-basis: 5.5rem; }
  .anio:first-of-type li:first-child strong { font-size: 2.4rem; } 
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* el menú no se parte en dos líneas en pantallas medianas */


/* Pie: alianza Trío Jujupa × Tlatolli, simétrica con los sellos junto al centro */
footer { position: relative; padding: 3.5rem max(.75rem, 5vw) 2rem; text-align: center; }
footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 16px; background: var(--greca); rotate: 180deg; }
.alianza { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; max-width: 56rem; margin: 0 auto; border: 1px solid #f4f1ea40; outline: 1px solid #f4f1ea1f; outline-offset: 6px; }
.socio { display: flex; align-items: center; justify-content: flex-start; gap: 1.25rem; min-width: 0; padding: 1.5rem 1rem 1.5rem 1.5rem; text-decoration: none; transition: background-color .25s; }
.socio.jujupa { flex-direction: row-reverse; text-align: right; }
.socio:hover, .socio:focus-visible { background: #f4f1ea0f; }
.emblema { flex: none; display: grid; place-items: center; width: 4.75rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid #f4f1ea73; outline: 1px solid transparent; outline-offset: 4px; overflow: hidden; transition: outline-color .25s; }
.emblema img { width: 76%; height: auto; }
.jujupa .emblema img { width: 100%; }
.socio:hover .emblema { outline-color: var(--ocre); }
.texto { display: grid; gap: .55rem; justify-items: start; min-width: 0; }
.jujupa .texto { justify-items: end; }
.texto small { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ocre); }
.texto b { font: 900 1.75rem/21px var(--titulo); text-transform: uppercase; letter-spacing: .08em; }
.palabra { width: 8.25rem; height: auto; }
.cruz { position: relative; display: grid; place-items: center; width: 4rem; }
.cruz::before { content: ""; position: absolute; inset: 0 auto; width: 1px; background: #f4f1ea40; }
.cruz i { position: relative; display: grid; place-items: center; width: 2.4rem; aspect-ratio: 1; background: var(--grana); outline: 5px solid var(--noche); rotate: 45deg; font: 700 1.9rem/1 var(--titulo); font-style: normal; }
.cruz i { color: transparent; }
.cruz i::after { content: "×"; position: absolute; color: var(--manta); rotate: -45deg; }
.pie-nota { margin-top: 2rem; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; opacity: .6; }
@media (max-width: 44rem) {
  .socio, .socio.jujupa { flex-direction: column; justify-content: flex-start; gap: .9rem; padding: 1.25rem .35rem; text-align: center; }
  .texto, .jujupa .texto { justify-items: center; }
  .texto small { font-size: .56rem; letter-spacing: .08em; min-height: 2.8em; }
  .texto b { font-size: clamp(.95rem, 4.6vw, 1.4rem); letter-spacing: .03em; }
  .palabra { width: min(100%, 6.25rem); }
  .emblema { width: 4rem; }
  .cruz { width: 1.75rem; }
  .cruz i { width: 1.4rem; font-size: 1.2rem; outline-width: 3px; }
}

/* ===== Identidad de la carpeta: azules, textura de la flor y logo oficial ===== */
.portada { position: relative; isolation: isolate; }
h1 { filter: drop-shadow(.2rem .2rem 0 var(--teal)) drop-shadow(0 6px 22px #0009); }
.lema { text-shadow: 0 1px 8px #000b; }
#trio, #repertorio { background: #103444; }
#historia, #camino { isolation: isolate; }
#historia::after, #camino::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/textura.webp) 0 0 / 300px; opacity: .045; pointer-events: none; }
/* Historia en azul cielo, como su carpeta de presentación */
#historia { background: var(--cielo); color: #0b2c3b; }
#historia::after { filter: invert(1); opacity: .09; }
#historia .barra-tabs button { color: #0b2c3b; border-color: #1a587380; }
#historia .barra-tabs button[aria-selected="true"] { color: #fff; }
#historia :is(.raices article, .rasgos li) { border-color: #1a587355; }
#historia .raices article { background: #ffffffb3; border-top-width: 6px; border-top-color: var(--grana); }
#historia .raices article:nth-child(2) { border-top-color: var(--teal); }
#historia .raices article:nth-child(3) { border-top-color: var(--ocre); }
#historia :is(.rasgos b, .relato li::before) { color: var(--teal); }
#historia .grito { -webkit-text-stroke-color: #0b2c3b; }
.contrata { position: relative; isolation: isolate; }
.contrata::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/textura.webp) 0 0 / 300px; opacity: .13; }
@media (prefers-reduced-motion: reduce) {
  .tira { overflow-x: auto; } .tira span { display: none; }
}

/* ===== Barra superior ===== */
.barra { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: .65rem max(1rem, 4vw) calc(.65rem + 3px); background: #0b222dd9; backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 10px 28px #0006; }
/* filo con los tres colores del logo */
.barra::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--teal) 0 33.4%, var(--ocre) 0 66.7%, var(--grana) 0); }
.marca { display: flex; align-items: center; gap: .8rem; margin-right: auto; text-decoration: none; }
.emblema-barra { width: 3.25rem; height: 3.25rem; border-radius: 50%; box-shadow: 0 0 0 1px #fff6, 0 0 0 5px #ffffff14; transition: rotate .5s cubic-bezier(.2,1.6,.4,1); }
.marca:hover .emblema-barra { rotate: -10deg; }
.nombre-barra { height: 2.6rem; width: auto; }
#menu { display: flex; gap: .25rem; position: static; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
#menu a { position: relative; padding: .45rem .8rem; font: 700 1.1rem var(--titulo); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
#menu a::after { content: ""; position: absolute; inset: auto .8rem .1rem; height: 2px; background: var(--ocre); scale: 0 1; transition: scale .25s ease; }
#menu a:hover::after, #menu a:focus-visible::after, #menu a[aria-current]::after { scale: 1 1; }
.contacto { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.25rem .6rem 1rem; border-radius: 99px; background: var(--grana); color: #fff; font: 700 1.1rem var(--titulo); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px #ffffff40, 0 6px 18px #d9352f59; transition: translate .25s, background-color .25s, color .25s; }
.contacto:hover, .contacto:focus-visible { translate: 0 -2px; background: #fff; color: var(--noche); }
.contacto svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hamburguesa { display: none; }
@media (max-width: 62rem) {
  .hamburguesa { display: grid; place-items: center; order: 3; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid #ffffff59; background: none; color: var(--manta); cursor: pointer; }
  .hamburguesa span, .hamburguesa span::before, .hamburguesa span::after { display: block; width: 1.15rem; height: 2px; background: currentColor; }
  .hamburguesa span { position: relative; }
  .hamburguesa span::before, .hamburguesa span::after { content: ""; position: absolute; top: -6px; }
  .hamburguesa span::after { top: 6px; }
  #menu:not(:popover-open) { display: none; }
  #menu:popover-open { position: fixed; inset: 5rem .75rem auto auto; flex-direction: column; min-width: 14rem; padding: .6rem; background: #0b222df7; border: 1px solid #ffffff33; border-top: 3px solid var(--ocre); box-shadow: 0 18px 40px #0009; }
  #menu a { font-size: 1.3rem; padding: .7rem 1rem; }
}
@media (max-width: 30rem) {
  .barra { gap: .6rem; padding-inline: .75rem; }
  .emblema-barra { width: 2.75rem; height: 2.75rem; }
  .nombre-barra { display: none; }
  .contacto { padding: .5rem .9rem .5rem .75rem; font-size: 1rem; }
}

/* Portada: la foto va aparte, completa, para no tapar a nadie */
.portada { background: radial-gradient(80% 60% at 20% 0%, #1a587355, transparent), var(--noche); }
.portada::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/textura.webp) 0 0 / 300px; opacity: .05; }
.foto-portada { width: min(100%, 60rem); margin-top: 3rem; }
.foto-portada img { width: 100%; height: auto; border: 1px solid #ffffff40; box-shadow: 12px 12px 0 var(--teal), 0 24px 50px #0007; }
@media (min-width: 62rem) {
  .portada { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: repeat(5, auto); align-content: center; justify-items: center; column-gap: 3.5rem; min-height: calc(100svh - 5rem); padding: 2.5rem 4vw 3.5rem; }
  .portada > :not(.foto-portada) { grid-column: 1; }
  .foto-portada { grid-column: 2; grid-row: 1 / -1; align-self: center; width: 100%; margin: 0; }
  .portada .maguey { width: clamp(10rem, 15vw, 15rem); }
  .portada h1 { width: 100%; }
  .portada .sobre { margin-top: 1.25rem; letter-spacing: .2em; }
  .portada .lema { font-size: 1.1rem; }
}

/* Plataformas de música */
.plataformas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.plataforma { display: inline-flex; align-items: center; gap: .65rem; padding: .6rem 1.3rem .6rem .8rem; border-radius: 99px; border: 1px solid #ffffff4d; font: 700 1.15rem var(--titulo); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: translate .25s, background-color .25s, border-color .25s; }
.plataforma svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spotify svg circle { fill: #1db954; stroke: none; } .spotify svg path { stroke: #08150d; stroke-width: 2; }
.ytmusic svg circle:first-child { fill: #f00; stroke: none; } .ytmusic svg path { fill: #fff; stroke: none; }
.plataforma:hover, .plataforma:focus-visible { translate: 0 -3px; }
.spotify:hover { border-color: #1db954; background: #1db95426; }
.ytmusic:hover { border-color: #f33; background: #f0000026; }
.otros { margin-top: 1rem; font-size: .9rem; opacity: .8; }

/* ===== Experiencia de las animaciones ===== */
.quieto, .quieto *, .quieto::before, .quieto::after { animation-play-state: paused !important; } /* fuera de pantalla no gastan batería */
.cinta:hover div { animation-play-state: paused; }
/* con menos movimiento la galería no corre sola: se desliza a mano */
@media (prefers-reduced-motion: reduce) {
  .tira { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tira > div { animation: none; }
  .tira span { display: none; }
  .tira img { scroll-snap-align: center; }
}

/* ===== Sala de video: escenario grande y lista ===== */
.cine { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 2rem; }
.sala { min-width: 0; }
.escenario { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px #ffffff26, 0 30px 70px -20px #000, 0 0 80px -30px var(--grana); }
.escenario iframe, .escenario .video, .escenario img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.escenario img { object-fit: cover; transition: scale 1.2s cubic-bezier(.2,.7,.2,1), filter .4s; }
.video::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(#0000 45%, #000a); }
.video::after { content: ""; position: absolute; z-index: 2; inset: 0; margin: auto; width: clamp(4rem, 10%, 5.5rem); aspect-ratio: 1; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b222d' stroke='%230b222d' stroke-width='2' stroke-linejoin='round' d='M9.5 7.5 17 12l-7.5 4.5Z'/%3E%3C/svg%3E") center / 66% no-repeat, #fff; box-shadow: 0 0 0 0 #ffffff59, 0 12px 34px #0009; transition: scale .3s cubic-bezier(.2,1.7,.4,1), box-shadow .5s; }
.video:hover img, .video:focus-visible img { scale: 1.05; filter: saturate(1.15); }
.video:hover::after, .video:focus-visible::after { scale: 1.1; box-shadow: 0 0 0 14px #ffffff26, 0 12px 34px #0009; }
.cartel { display: grid; gap: .15rem; margin-top: 1.1rem; padding-left: 1rem; border-left: 4px solid var(--ocre); }
.cartel small { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ocre); }
.cartel strong { font: 900 clamp(1.7rem, 4vw, 2.6rem)/1.05 var(--titulo); text-transform: uppercase; }
.lista { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(70%, 15rem); gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 3px 3px .75rem; scrollbar-width: thin; scrollbar-color: var(--grana) transparent; }
.lista li { scroll-snap-align: start; min-width: 0; }
.lista a { position: relative; display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: .5rem; border-radius: 12px; text-decoration: none; background: #ffffff0a; transition: background-color .25s, translate .25s; }
.lista a:hover, .lista a:focus-visible { background: #ffffff1c; translate: 0 -2px; }
.lista a[aria-current] { background: #d9352f2e; box-shadow: inset 0 0 0 1.5px var(--grana); }
.mini { position: relative; display: block; flex: none; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini b { position: absolute; right: .3rem; bottom: .3rem; padding: 0 .35rem; border-radius: 4px; background: #000c; font-size: .68rem; line-height: 1.6; }
.datos { display: grid; align-content: center; gap: .2rem; min-width: 0; }
.datos strong { font: 700 1.2rem/1.05 var(--titulo); text-transform: uppercase; letter-spacing: .03em; }
.datos small { font-size: .75rem; opacity: .7; }
/* barras que se mueven solo en el video que está sonando */
.onda { position: absolute; top: .9rem; left: .9rem; display: none; align-items: flex-end; gap: 2px; height: 16px; padding: 2px 4px; border-radius: 4px; background: #000b; box-sizing: content-box; }
.onda i { width: 3px; height: 100%; background: var(--ocre); transform-origin: bottom; animation: onda .8s ease-in-out infinite alternate; }
.onda i:nth-child(2) { animation-delay: -.5s; } .onda i:nth-child(3) { animation-delay: -.25s; }
.sonando .lista a[aria-current] .onda { display: flex; }
@keyframes onda { from { transform: scaleY(.25); } }
@media (min-width: 62rem) {
  .cine { grid-template-columns: minmax(0, 2.2fr) minmax(17rem, 1fr); align-items: start; }
  /* la lista mide lo mismo que la sala y se desplaza por dentro */
  .lista { grid-auto-flow: row; grid-auto-columns: auto; grid-auto-rows: max-content; align-content: start; height: 0; min-height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-type: none; padding: 3px .4rem 3px 3px; gap: .5rem; align-self: stretch; }
  .lista a { flex-direction: row; align-items: center; gap: .8rem; }
  .mini { width: 8rem; }
}
.youtube svg rect { fill: #f00; stroke: none; } .youtube svg path { fill: #fff; stroke: none; }
.youtube:hover { border-color: #f33; background: #f0000026; }

/* datos para cotizar */
.cotiza { max-width: 42rem; margin: 1.5rem auto 0; text-align: left; padding: 1.25rem 1.5rem; border: 2px solid currentColor; }
.cotiza h3 { margin: 0 0 .75rem; }
.cotiza ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.cotiza li::before { content: "◆ "; color: var(--ocre); }

/* ===== Pie: secciones y redes ===== */
.pie-nav, .pie-redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; max-width: 56rem; margin: 0 auto 1rem; }
.pie-redes { margin-bottom: 2rem; color: var(--ocre); }
.pie-nav a, .pie-redes a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.pie-nav a { font: 700 1.05rem var(--titulo); text-transform: uppercase; letter-spacing: .1em; }
.pie-nav a:hover, .pie-redes a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ===== Entrada: Trío Jujupa × Tlatolli ===== */
html.con-intro { overflow: hidden; }
.con-intro .portada *, .con-intro .cinta * { animation-play-state: paused !important; }
.intro-carga { position: fixed; inset: 0; z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.5rem; overflow: hidden; background: radial-gradient(circle at 50% 42%, #1a5873, var(--noche) 70%); cursor: pointer; clip-path: circle(150% at 50% 50%); animation: icFuera .5s cubic-bezier(.7,0,.25,1) 2.3s forwards; }
.intro-carga > * { position: relative; }
.intro-carga .ic-sello { position: absolute; left: 50%; top: 50%; width: min(440px, 88vw); translate: -50% -50%; opacity: .12; animation: icSello .6s cubic-bezier(.4,0,.2,1) .05s both; }
.ic-flor { width: clamp(5rem, 24vw, 7rem); height: auto; padding: .6rem; border-radius: 50%; background: #fff; box-shadow: 0 0 40px #ffffff73; animation: icSello .6s cubic-bezier(.2,1.3,.4,1) .1s both; }
.ic-a { font: 900 clamp(2.4rem, 11vw, 4rem)/1.1 var(--titulo); text-transform: uppercase; color: var(--manta); animation: icSube .5s ease-out .4s both; }
.ic-x { font-size: 1.4rem; color: var(--ocre); animation: icCruz .45s cubic-bezier(.3,1.5,.5,1) .7s both; }
.intro-carga small { font-size: .68rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ocre); animation: icSube .5s ease-out .85s both; }
.intro-carga .ic-b { width: clamp(150px, 44vw, 220px); height: auto; animation: icPalabra .6s cubic-bezier(.16,1,.3,1) 1s both; }
.intro-carga i { width: min(200px, 56vw); height: 14px; margin-top: .5rem; background: var(--greca); animation: icPalabra .6s ease-out 1.25s both; }
@keyframes icSello { from { opacity: 0; scale: 1.7; rotate: -12deg; } }
@keyframes icSube { from { opacity: 0; translate: 0 .6em; } }
@keyframes icCruz { from { opacity: 0; scale: 0; rotate: -180deg; } }
@keyframes icPalabra { from { opacity: 0; clip-path: inset(0 50%); } to { clip-path: inset(0); } }
@keyframes icFuera { to { clip-path: circle(0 at 50% 50%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro-carga { display: none; } }
