/* David Méndez · mago. Noche de teatro (fondo) + luz de vela (oro) + papel antiguo (crema). */
@font-face { font-family: 'Playfair'; src: url('/fonts/playfair.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url('/fonts/playfair-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --noche: #0e0b16;
  --noche-2: #161125;
  --violeta: #241b3a;
  --tinta: #f5eee2;
  --tinta-suave: #cfc5dc;
  --oro: #e9b44c;
  --oro-claro: #f6cf7a;
  --brasa: #b13f27; /* 5,2:1 sobre crema (AA) */
  --crema: #f7f1e6;
  --crema-2: #efe6d6;
  --texto: #221c2c;
  --texto-suave: #5b5266;
  --linea-clara: #dccfba;
  --radio: 14px;
  --sombra: 0 18px 40px -18px rgba(14, 11, 22, .45);
  --serif: 'Playfair', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ancho: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--noche); color: var(--tinta); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.envoltura { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }
.envoltura--texto { max-width: 860px; }
.centrado { text-align: center; margin-top: 2rem; }
.saltar { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--oro); color: var(--noche); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.saltar:focus { top: 1rem; }

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -.18em; }
.antetitulo { font: 700 .78rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brasa); margin-bottom: .9rem; }
.antetitulo--hero, .seccion--oscura .antetitulo { color: var(--oro); }
.destacado { font-size: 1.2rem; line-height: 1.6; }

/* ---------- botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.boton:hover { transform: translateY(-2px); }
.boton--oro { background: linear-gradient(180deg, var(--oro-claro), var(--oro)); color: #1c1407; box-shadow: 0 10px 30px -10px rgba(233, 180, 76, .7); }
.boton--oro:hover { box-shadow: 0 14px 36px -10px rgba(233, 180, 76, .9); }
.boton--linea { border-color: currentColor; color: inherit; background: transparent; }
.boton--linea:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.boton--peq { min-height: 42px; padding: .55rem 1.15rem; font-size: .95rem; }
.boton--ancho { width: 100%; margin-top: .75rem; }
.enlace { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; cursor: pointer; }

/* ---------- cabecera ---------- */
.cab { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.cab--fija, .cab--abierta { background: rgba(14, 11, 22, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.cab__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tinta); }
.logo__dm { height: 34px; width: auto; filter: drop-shadow(0 0 10px rgba(246, 207, 122, .25)); transition: filter .3s; }
.logo:hover .logo__dm { filter: drop-shadow(0 0 14px rgba(246, 207, 122, .6)); }
.logo__txt { font: 600 .82rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; margin-left: .2rem; }
.logo__sub { font: 700 .65rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--tinta-suave); border-left: 1px solid rgba(255, 255, 255, .25); padding-left: .6rem; }
.cab__nav { display: flex; align-items: center; gap: 1.75rem; }
.cab__nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.cab__nav ul a { text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--tinta-suave); padding: .5rem 0; position: relative; }
.cab__nav ul a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--oro); transition: right .25s; }
.cab__nav ul a:hover, .cab__nav ul a[aria-current] { color: var(--tinta); }
.cab__nav ul a:hover::after, .cab__nav ul a[aria-current]::after { right: 0; }
.cab__boton { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--tinta); cursor: pointer; border-radius: 10px; }
.hamb, .hamb::before, .hamb::after { display: block; width: 24px; height: 2px; background: currentColor; margin-inline: auto; position: relative; transition: transform .25s, background .25s; }
.hamb::before, .hamb::after { content: ''; position: absolute; left: 0; }
.hamb::before { top: -7px; } .hamb::after { top: 7px; }
[aria-expanded='true'] .hamb { background: transparent; }
[aria-expanded='true'] .hamb::before { transform: translateY(7px) rotate(45deg); }
[aria-expanded='true'] .hamb::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .logo__sub { display: none; }
  .cab__boton { display: block; }
  .cab__nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; background: rgba(14, 11, 22, .98); border-top: 1px solid rgba(255, 255, 255, .08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .cab--abierta .cab__nav { opacity: 1; visibility: visible; transform: none; }
  .cab__nav ul { flex-direction: column; gap: 0; }
  .cab__nav ul a { display: block; padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .cab__nav ul a::after { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; padding: 130px 0 clamp(3rem, 8vw, 6rem); isolation: isolate; overflow: hidden; }
.hero__fondo, .cabshow__fondo { position: absolute; inset: 0; z-index: -1; }
.hero__fondo img, .cabshow__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero__fondo::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(14, 11, 22, .94) 0%, rgba(14, 11, 22, .7) 42%, rgba(14, 11, 22, .1) 75%),
  linear-gradient(0deg, var(--noche) 0%, transparent 35%); }
.hero__in { position: relative; }
.hero__tit { font-size: clamp(3.4rem, 11vw, 8rem); font-weight: 800; line-height: .92; margin-bottom: .2em; letter-spacing: -.02em; }
.hero__tit em { font-style: italic; font-weight: 600; color: var(--oro-claro); text-shadow: 0 0 40px rgba(233, 180, 76, .45); }
.hero__lema { font: italic 600 clamp(1.4rem, 3vw, 2rem)/1.2 var(--serif); color: var(--tinta); margin-bottom: 1rem; }
.hero__txt { max-width: 34rem; color: var(--tinta-suave); font-size: 1.12rem; }
.hero__botones { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.75rem 0 0; }
.hero__sellos { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; padding: 0; margin: 2.2rem 0 0; color: var(--tinta-suave); font-size: .95rem; font-weight: 600; }
.hero__sellos .ico { fill: var(--oro); width: .9em; height: .9em; margin-right: .3rem; vertical-align: -.05em; }
@media (max-width: 760px) {
  .hero { min-height: 92svh; }
  .hero__fondo img { object-position: 78% 30%; }
  .hero__fondo::after { background: linear-gradient(0deg, var(--noche) 8%, rgba(14, 11, 22, .82) 50%, rgba(14, 11, 22, .25) 100%); }
}

/* ---------- secciones ---------- */
.seccion { background: var(--crema); color: var(--texto); color-scheme: light; padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.seccion--oscura { color-scheme: dark; background: radial-gradient(1200px 500px at 85% 0%, rgba(80, 52, 140, .28), transparent 60%), var(--noche-2); color: var(--tinta); }
.seccion a:not(.boton) { color: inherit; }
.titular { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.titular p:last-child { color: var(--texto-suave); font-size: 1.08rem; }
.seccion--oscura .titular p:last-child { color: var(--tinta-suave); }
.titular .antetitulo { color: var(--brasa); }
.seccion--oscura .titular .antetitulo { color: var(--oro); }

/* públicos */
.publicos { padding: 0 0 clamp(3rem, 6vw, 4rem); background: linear-gradient(180deg, var(--noche) 0 50%, var(--crema) 50%); color: var(--tinta); }
.publicos__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.publico { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.5rem 1.4rem; border-radius: var(--radio); text-decoration: none; background: linear-gradient(160deg, var(--violeta), #18122a); border: 1px solid rgba(233, 180, 76, .22); box-shadow: var(--sombra); transition: transform .25s, border-color .25s; }
.publico:hover { transform: translateY(-4px); border-color: var(--oro); }
.publico__ico { width: 34px; height: 34px; fill: var(--oro); margin-bottom: .5rem; }
.publico__tit { font: 700 1.2rem/1.2 var(--serif); color: var(--tinta); }
.publico__txt { font-size: .93rem; line-height: 1.5; color: var(--tinta-suave); }
@media (max-width: 960px) { .publicos__lista { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .publico { padding: 1.1rem 1rem; } .publico__txt { display: none; } .publico__ico { width: 28px; height: 28px; margin: 0; } }

/* filtros + tarjetas de espectáculo */
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--linea-clara); background: #fff; color: var(--texto); font: 600 .95rem var(--sans); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--texto); }
.chip[aria-pressed='true'] { background: var(--texto); border-color: var(--texto); color: var(--crema); }
.shows { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.75rem); }
@media (max-width: 1100px) { .shows { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .shows { grid-template-columns: 1fr; } }
.show { display: flex; flex-direction: column; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: 0 1px 0 var(--linea-clara), var(--sombra); transition: transform .3s, box-shadow .3s; position: relative; }
.show:hover { transform: translateY(-5px); box-shadow: 0 1px 0 var(--linea-clara), 0 26px 50px -20px rgba(14, 11, 22, .55); }
.show[hidden] { display: none; }
.show__foto { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--violeta); }
.show__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.show:hover .show__foto img { transform: scale(1.05); }
.show__txt { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.show__txt .antetitulo { font-size: .7rem; margin-bottom: .5rem; }
.show__tit { font-size: 1.45rem; margin-bottom: .45rem; }
.show__tit a { text-decoration: none; }
.show__tit a::after { content: ''; position: absolute; inset: 0; }
.show__txt > p:not(.antetitulo) { color: var(--texto-suave); font-size: .97rem; line-height: 1.55; }
.datos { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: .9rem 0 0; margin: auto 0 0; border-top: 1px solid var(--crema-2); font-size: .85rem; font-weight: 700; color: var(--texto-suave); }
.datos .ico { fill: var(--brasa); margin-right: .2rem; }
.seccion--oscura .show { background: var(--violeta); box-shadow: var(--sombra); }
.seccion--oscura .show__txt > p:not(.antetitulo), .seccion--oscura .datos { color: var(--tinta-suave); }
.seccion--oscura .datos { border-color: rgba(255, 255, 255, .1); }
.seccion--oscura .datos .ico { fill: var(--oro); }
.shows__vacio { text-align: center; color: var(--texto-suave); }

/* sobre */
.sobre__rejilla { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.sobre__fotos { position: relative; padding: 0 12% 18% 0; }
.sobre__f1 { border-radius: var(--radio); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8); aspect-ratio: 1; object-fit: cover; width: 100%; }
.sobre__f2 { position: absolute; right: 0; bottom: 0; width: 55%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radio); border: 6px solid var(--noche-2); }
.sobre__txt .destacado { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--oro-claro); }
.sobre__txt p { color: var(--tinta-suave); }
.sobre__txt a { color: var(--oro-claro) !important; }
.pasos { list-style: none; counter-reset: paso; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem .9rem; align-items: baseline; color: var(--tinta-suave); }
.pasos li::before { content: counter(paso); grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--oro); color: var(--oro); font: 700 1.1rem var(--serif); }
.pasos b { color: var(--tinta); }
@media (max-width: 860px) { .sobre__rejilla { grid-template-columns: 1fr; } .sobre__fotos { max-width: 460px; } }

/* empresas */
.empresas__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.empresas__txt > p { color: var(--texto-suave); }
.empresas__foto { position: relative; }
.empresas__foto img { border-radius: var(--radio); box-shadow: var(--sombra); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.etiquetas { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.etiquetas li { padding: .4rem .9rem; border-radius: 999px; background: var(--noche); color: var(--tinta); font-size: .88rem; font-weight: 600; }
.etiquetas--claras li { background: var(--crema-2); color: var(--texto); }
.cita { margin: 0; font: italic 600 1.15rem/1.45 var(--serif); }
.empresas__foto .cita { position: absolute; left: -1.5rem; bottom: -1.5rem; max-width: 80%; padding: 1.25rem 1.5rem; background: var(--noche); color: var(--oro-claro); border-radius: var(--radio); box-shadow: var(--sombra); }
.cita--grande { font-size: 1.4rem; padding-left: 1.25rem; border-left: 3px solid var(--oro); margin: 2rem 0; }
@media (max-width: 860px) { .empresas__rejilla { grid-template-columns: 1fr; } .empresas__foto .cita { position: static; max-width: none; margin-top: -2rem; margin-inline: 1rem; position: relative; } }

/* vídeos */
.videos { display: grid; grid-template-columns: 3fr 2fr; gap: 1.25rem; }
.videos__resto { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.video { margin: 0; }
.video__boton { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: #000; }
.video__boton img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .5s; }
.video__boton:hover img { opacity: 1; transform: scale(1.03); }
.video__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 11, 22, .65); border: 2px solid var(--oro); transition: background .2s, transform .2s; }
.video__play .ico { fill: var(--oro-claro); width: 26px; height: 26px; margin-left: 3px; }
.video--grande .video__play { width: 84px; height: 84px; }
.video--grande .video__play .ico { width: 38px; height: 38px; }
.video__boton:hover .video__play { background: var(--oro); transform: scale(1.08); }
.video__boton:hover .video__play .ico { fill: var(--noche); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }
.video figcaption { font-size: .9rem; font-weight: 600; margin-top: .5rem; color: var(--tinta-suave); }
.seccion:not(.seccion--oscura) .video figcaption { color: var(--texto-suave); }
.nota-externa { font-size: .85rem; color: var(--tinta-suave); margin-top: 1rem; max-width: 52rem; }
.seccion:not(.seccion--oscura) .nota-externa { color: var(--texto-suave); }
@media (max-width: 860px) { .videos { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .videos__resto { grid-template-columns: 1fr 1fr; gap: .7rem; } .video figcaption { font-size: .8rem; } }

/* galería */
#galeria { background: var(--noche); color: var(--tinta); }
.galeria { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: .75rem; }
.galeria__item a { display: block; height: 100%; border-radius: 10px; overflow: hidden; position: relative; }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; }
.galeria__item a:hover img { transform: scale(1.06); filter: brightness(1.08); }
.galeria__item--ancha { grid-column: span 2; }
.galeria__item--alta { grid-row: span 2; }
.galeria--show { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; margin-top: 2rem; }
@media (max-width: 760px) { .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: .5rem; } .galeria--show { grid-template-columns: repeat(2, 1fr); } }

.visor:not([open]) { display: none; }
.visor { position: fixed; inset: 0; z-index: 90; background: rgba(8, 6, 12, .95); display: grid; place-items: center; padding: 3.5rem 1rem 1rem; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; color: var(--tinta); }
.visor::backdrop { background: rgba(8, 6, 12, .95); }
.visor img { max-width: min(1400px, 100%); max-height: 82vh; object-fit: contain; border-radius: 8px; }
.visor p { text-align: center; color: var(--tinta-suave); margin: .8rem 0 0; font-size: .95rem; }
.visor button { position: absolute; background: rgba(255, 255, 255, .08); color: var(--tinta); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.visor button:hover { background: var(--oro); color: var(--noche); }
.visor__cerrar { top: 1rem; right: 1rem; }
.visor__ant { left: 1rem; top: 50%; translate: 0 -50%; }
.visor__sig { right: 1rem; top: 50%; translate: 0 -50%; }

/* redes */
.redes-sec { background: radial-gradient(900px 500px at 10% 100%, rgba(212, 85, 58, .2), transparent 60%), radial-gradient(900px 500px at 90% 0%, rgba(120, 70, 200, .3), transparent 60%), var(--noche-2); }
.redes-sec__rejilla { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; align-items: stretch; }
.insta { display: flex; flex-direction: column; text-decoration: none; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%); padding: 3px; box-shadow: var(--sombra); transition: transform .3s; }
.insta:hover { transform: translateY(-4px); }
.insta__mosaico { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 15px 15px 0 0; overflow: hidden; }
.insta__mosaico img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.insta__pie { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--noche); border-radius: 0 0 15px 15px; color: var(--tinta); line-height: 1.35; }
.insta__pie > span { flex: 1; color: var(--tinta-suave); }
.insta__pie b { color: var(--tinta); font-size: 1.15rem; }
.insta__ico { width: 40px; height: 40px; fill: #fff; padding: 8px; border-radius: 12px; background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.redes-tarjetas { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; align-content: stretch; }
.red { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1rem 1.25rem; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); text-decoration: none; line-height: 1.35; color: var(--tinta-suave); transition: background .2s, border-color .2s, transform .2s; }
.red > span { flex: 1; }
.red b { color: var(--tinta); }
.red:hover { background: rgba(255, 255, 255, .09); border-color: var(--oro); transform: translateX(4px); }
.red__ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; fill: #fff; flex: none; }
.red--facebook .red__ico { background: #1877f2; }
.red--youtube .red__ico { background: #e62117; }
.red--linkedin .red__ico { background: #0a66c2; }
.red--x .red__ico { background: #000; border: 1px solid #444; }
.red > .ico:last-child, .insta__pie > .ico:last-child { fill: var(--oro); }
.insta-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
[data-cargar-insta] { margin-top: 1.5rem; }
@media (max-width: 860px) { .redes-sec__rejilla { grid-template-columns: 1fr; } }

/* contacto */
.contacto__rejilla { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contacto__info > p { color: var(--texto-suave); }
.contacto__mail a { display: inline-flex; align-items: center; gap: .6rem; font: 700 clamp(1.1rem, 2.4vw, 1.35rem) var(--sans); color: var(--texto); text-decoration: none; border-bottom: 2px solid var(--oro); padding-bottom: .2rem; word-break: break-all; }
.contacto__mail .ico { fill: var(--brasa); }
.contacto__foto { margin-top: 2rem; border-radius: var(--radio); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--sombra); }
.formu { background: #fff; padding: clamp(1.25rem, 4vw, 2.25rem); border-radius: 20px; box-shadow: 0 1px 0 var(--linea-clara), var(--sombra); display: grid; gap: 1rem; }
.formu__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.formu__fila--3 { grid-template-columns: 1fr 1.2fr 1fr; }
.formu label { display: grid; gap: .35rem; font-weight: 700; font-size: .9rem; color: var(--texto); }
.formu input:not([type='checkbox'], [type='radio']), .formu select, .formu textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid var(--linea-clara); border-radius: 10px; background: #fffdf9; font: 400 1rem var(--sans); color: var(--texto); transition: border-color .2s, box-shadow .2s; }
.formu textarea { resize: vertical; min-height: 110px; }
.formu input:focus, .formu select:focus, .formu textarea:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgba(233, 180, 76, .25); }
.formu [aria-invalid='true'] { border-color: var(--brasa) !important; }
.formu__formato { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center; }
.formu__formato legend { font-weight: 700; font-size: .9rem; float: left; margin-right: 1rem; padding: 0; }
.formu__formato label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; min-height: 44px; }
.formu input[type='radio'], .formu input[type='checkbox'] { width: 20px; height: 20px; accent-color: var(--brasa); flex: none; }
.formu__rgpd { background: var(--crema); border-radius: 12px; padding: 1rem 1.1rem; font-size: .82rem; line-height: 1.5; color: var(--texto-suave); }
.formu__rgpd p { margin-bottom: .75rem; }
.formu .check { display: flex; font-weight: 600; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--texto); }
.formu .check input { margin-top: .15rem; }
.formu__error { color: #9c2a14; font-weight: 700; background: #fde9e4; padding: .75rem 1rem; border-radius: 10px; margin: 0; }
.formu .boton { justify-self: start; }
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) { .contacto__rejilla { grid-template-columns: 1fr; } .contacto__foto { display: none; } }
@media (max-width: 560px) { .formu__fila, .formu__fila--3 { grid-template-columns: 1fr; } .formu .boton { justify-self: stretch; } }

/* ---------- página de espectáculo ---------- */
.cabshow { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0 clamp(3rem, 7vw, 5rem); min-height: 62vh; display: flex; align-items: flex-end; }
.cabshow__fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--noche) 0%, rgba(14, 11, 22, .78) 45%, rgba(14, 11, 22, .45) 100%); }
.cabshow__fondo img { object-position: center 35%; }
.cabshow h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; max-width: 16ch; }
.cabshow__res { font-size: 1.2rem; max-width: 40rem; color: var(--tinta-suave); }
.datos--grandes { border: 0; color: var(--tinta); font-size: .95rem; padding-top: .5rem; }
.datos--grandes .ico { fill: var(--oro); }
.migas { font-size: .88rem; color: var(--tinta-suave); margin-bottom: 1.5rem; }
.migas a { color: var(--tinta-suave); }
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ficha__txt > p { color: var(--texto-suave); }
.ficha__txt > p.destacado { color: var(--texto); font-family: var(--serif); font-size: 1.4rem; line-height: 1.5; }
.ficha__txt h2 { font-size: 1.8rem; margin-top: 2rem; }
.ficha__publico { padding: 1rem 1.2rem; background: var(--crema-2); border-radius: 12px; }
.ficha__txt .video { margin-top: 2rem; }
.ficha__lateral { position: sticky; top: 96px; }
.tarjeta { background: var(--noche); color: var(--tinta); border-radius: 20px; padding: 1.75rem; box-shadow: var(--sombra); }
.tarjeta h2 { font-size: 1.6rem; color: var(--oro-claro); }
.tarjeta__nota { font-size: .85rem; color: var(--tinta-suave); margin: 1rem 0 .5rem; }
.tecnica { margin: 0; display: grid; gap: 0; }
.tecnica div { padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tecnica dt { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--oro); }
.tecnica dd { margin: .15rem 0 0; font-size: .97rem; }
.tecnica--texto div { border-color: var(--linea-clara); display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; }
.tecnica--texto dt { color: var(--brasa); }
.tecnica--texto dd { margin: 0; }
@media (max-width: 960px) { .ficha { grid-template-columns: 1fr; } .ficha__lateral { position: static; } }
@media (max-width: 560px) { .tecnica--texto div { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- páginas de texto ---------- */
.pag-texto .cab { background: rgba(14, 11, 22, .96); }
.legal { padding-top: 130px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--texto-suave); }
.legal .destacado { color: var(--texto); }
.legal .migas, .legal .migas a { color: var(--texto-suave); }
.tabla-legal { overflow-x: auto; margin: 1rem 0; border-radius: 12px; border: 1px solid var(--linea-clara); background: #fff; }
.tabla-legal table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .9rem; }
.tabla-legal th, .tabla-legal td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--crema-2); }
.tabla-legal th { background: var(--crema-2); font-weight: 800; }
.tabla-legal tr:last-child td { border-bottom: 0; }
code { background: var(--crema-2); padding: .1rem .35rem; border-radius: 5px; font-size: .9em; }

/* ---------- pie ---------- */
.pie { background: #08060d; color: var(--tinta-suave); padding: 4rem 0 1.5rem; font-size: .95rem; }
.pie__rejilla { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.logo--pie { margin-bottom: 1.2rem; }
.logo--pie img { width: 170px; height: auto; }
.pie__lema { font: italic 600 1.15rem var(--serif); color: var(--oro-claro); }
.pie__tit { font: 800 .78rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--tinta); margin-bottom: 1rem; }
.pie__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--oro-claro); }
.pie__mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--tinta); font-weight: 700; word-break: break-all; }
.redes { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.redes a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); transition: background .2s, border-color .2s; }
.redes a:hover { background: var(--oro); border-color: var(--oro); }
.redes .ico { width: 20px; height: 20px; fill: var(--tinta); }
.redes a:hover .ico { fill: var(--noche); }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .85rem; }
.pie__legal p { margin: 0; }
.pie__legal ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) { .pie__rejilla { grid-template-columns: 1fr; gap: 2rem; } }

/* aparición suave al hacer scroll */
.js .aparece { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .aparece.visto { opacity: 1; transform: none; }

/* =====================================================================
   EFECTOS MÁGICOS. Solo transform/opacity/filter; todo se apaga con
   «reducir movimiento» (regla global de arriba y comprobación en app.js).
   ===================================================================== */

/* Polvo dorado (canvas) sobre el hero y las cabeceras */
.polvo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; mix-blend-mode: screen; }
.hero__in, .cabshow__in { z-index: 1; }
[data-hero-fondo], [data-hero-txt] { will-change: transform; }
[data-hero-fondo] img { scale: 1.08; }

/* Apertura en iris: el telón de luz se abre al cargar (una vez por sesión) */
.js .intro .hero__fondo { animation: iris 1.6s cubic-bezier(.65, 0, .35, 1) both; }
.js .intro .hero__in > * { animation: surge 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.js .intro .hero__in > :nth-child(1) { animation-delay: .55s; }
.js .intro .hero__in > :nth-child(2) { animation-delay: .7s; }
.js .intro .hero__in > :nth-child(3) { animation-delay: .9s; }
.js .intro .hero__in > :nth-child(4) { animation-delay: 1.05s; }
.js .intro .hero__in > :nth-child(5) { animation-delay: 1.2s; }
.js .intro .hero__in > :nth-child(6) { animation-delay: 1.35s; }
@keyframes iris { from { clip-path: circle(0% at 72% 48%); filter: brightness(2.2) saturate(.6); } 60% { filter: brightness(1.2); } to { clip-path: circle(150% at 72% 48%); filter: none; } }
@keyframes surge { from { opacity: 0; filter: blur(14px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }

/* Brillo que recorre «Méndez» */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero__tit em {
    background: linear-gradient(105deg, var(--oro) 0%, var(--oro-claro) 35%, #fff8e1 48%, var(--oro-claro) 60%, var(--oro) 100%) 0 0 / 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
    filter: drop-shadow(0 0 28px rgba(233, 180, 76, .45));
    animation: brillo 7s ease-in-out 1.8s infinite; padding-right: .06em;
  }
}
@keyframes brillo { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: -50% 0; } }

/* Títulos que aparecen palabra a palabra, como saliendo del humo */
.js .magia-tit .palabra { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.35em) rotate(2deg); transition: opacity .9s ease, filter .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 90ms); }
.js .magia-tit.visto .palabra { opacity: 1; filter: blur(0); transform: none; }

/* La línea dorada que se dibuja junto al antetítulo */
.titular .antetitulo, .sobre__txt .antetitulo, .empresas__txt .antetitulo, .contacto__info .antetitulo { display: flex; align-items: center; gap: .8rem; }
.titular .antetitulo::after, .sobre__txt .antetitulo::after, .empresas__txt .antetitulo::after, .contacto__info .antetitulo::after {
  content: ''; height: 1px; width: 56px; background: linear-gradient(90deg, currentColor, transparent); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .3s;
}
.visto .antetitulo::after, .visto.antetitulo::after { transform: scaleX(1); }
.js :is(.titular, .sobre__txt, .empresas__txt, .contacto__info):not(.aparece) .antetitulo::after { transform: scaleX(1); }

/* Cielo estrellado con parallax y foco que sigue al ratón en las secciones oscuras */
.seccion--oscura, #galeria { overflow: hidden; isolation: isolate; }
.seccion--oscura::before, #galeria::before {
  content: ''; position: absolute; inset: -40% 0; z-index: -1; pointer-events: none; translate: 0 var(--py, 0);
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, rgba(255, 240, 210, .55), transparent),
    radial-gradient(1px 1px at 90px 120px, rgba(255, 255, 255, .4), transparent),
    radial-gradient(1.6px 1.6px at 160px 60px, rgba(246, 207, 122, .6), transparent),
    radial-gradient(1px 1px at 230px 180px, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.3px 1.3px at 290px 20px, rgba(255, 240, 210, .45), transparent);
  background-size: 320px 220px; opacity: .55; animation: titila 5s ease-in-out infinite alternate;
}
@keyframes titila { from { opacity: .35; } to { opacity: .7; } }
.seccion--oscura::after, #galeria::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(246, 207, 122, .09), transparent 70%);
}
.foco::after { opacity: 1; }

/* Naipes dibujados en oro */
.naipes { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.naipe { position: absolute; font-family: var(--serif); line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(233, 180, 76, .38); translate: 0 var(--py, 0); rotate: var(--giro); animation: flota 9s ease-in-out infinite alternate; }
.naipe:nth-child(2) { animation-duration: 11s; animation-delay: -3s; }
.naipe:nth-child(3) { animation-duration: 13s; animation-delay: -6s; }
.seccion:not(.seccion--oscura) .naipe { -webkit-text-stroke-color: rgba(212, 85, 58, .22); }
@keyframes flota { from { transform: translateY(-10px) rotate(-4deg); } to { transform: translateY(12px) rotate(5deg); } }
.seccion > .envoltura { position: relative; z-index: 1; }
@media (max-width: 760px) { .naipe { font-size: 3rem !important; opacity: .7; } }

/* Parallax de elementos sueltos (propiedad translate: no choca con los transform de hover) */
[data-par] { translate: 0 var(--py, 0); }
.galeria__item img, .ficha .galeria__item img { scale: 1.16; translate: 0 var(--py, 0); }

/* Tarjetas con inclinación 3D y reflejo de luz */
.show, .publico, .insta { --gx: 50%; --gy: 0%; transform-style: preserve-3d; }
.show::before, .publico::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255, 245, 220, .22), transparent 45%);
}
.publico { position: relative; }
.show.inclinada::before, .publico.inclinada::before { opacity: 1; }

/* Botones dorados: un destello cruza al pasar por encima; chispas al pulsar */
.boton--oro { position: relative; overflow: hidden; isolation: isolate; }
.boton--oro::after { content: ''; position: absolute; inset: -2px; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .65) 48%, transparent 66%); translate: -120% 0; transition: translate .8s ease; }
.boton--oro:hover::after { translate: 120% 0; }
.destello { position: fixed; z-index: 95; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none; background: var(--oro-claro); box-shadow: 0 0 10px 2px rgba(246, 207, 122, .9); animation: destello .75s cubic-bezier(.15, .6, .3, 1) forwards; }
@keyframes destello { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* El visor de fotos aparece entre humo */
.visor[open] { animation: humo .45s ease both; }
.visor[open] img { animation: humo-img .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes humo { from { opacity: 0; backdrop-filter: blur(0); } to { opacity: 1; } }
@keyframes humo-img { from { opacity: 0; filter: blur(16px); transform: scale(.94); } to { opacity: 1; filter: none; transform: none; } }

/* «Reducir movimiento» (en Windows: animaciones desactivadas). Se quita lo que DESPLAZA la página
   (parallax, naipes flotando, deslizamientos); se quedan los fundidos, brillos, el polvo dorado (más
   tranquilo, ver app.js), el foco y los destellos, que no producen sensación de movimiento. */
@media (prefers-reduced-motion: reduce) {
  [data-par], .naipe, .galeria__item img, .seccion--oscura::before, #galeria::before { translate: none !important; }
  .naipe { animation: none; }
  .js .aparece, .js .magia-tit .palabra, .js .intro .hero__in > * { transform: none !important; }
}

@media (max-width: 640px) {
  .filtros { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .4rem; scrollbar-width: none; }
  .filtros::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* Pantallas en vertical (móviles y tabletas): el mago, no las velas, en el centro del hero.
   Está hacia el 26 % del ancho de la foto; 15 % lo deja centrado entre 360 y 820 px de ancho. */
@media (orientation: portrait) {
  .hero__fondo img { object-position: 15% 30%; }
  .js .intro .hero__fondo { animation-name: iris-vertical; }
}
/* En móvil y tableta vertical la foto ocupa la parte de arriba (cara despejada) y el texto va debajo */
@media (orientation: portrait) and (max-width: 900px) {
  .hero { min-height: 0; padding-top: 46svh; }
  .hero__fondo { bottom: auto; height: 64svh; overflow: hidden; }
  .hero__fondo img { object-position: 12% 25%; }
  .hero__fondo::after { background: linear-gradient(0deg, var(--noche) 0%, rgba(14, 11, 22, .6) 30%, rgba(14, 11, 22, .05) 65%, rgba(14, 11, 22, .35) 100%); }
}
@keyframes iris-vertical { from { clip-path: circle(0% at 50% 30%); filter: brightness(2.2) saturate(.6); } 60% { filter: brightness(1.2); } to { clip-path: circle(150% at 50% 30%); filter: none; } }
