/* =============================================================================
   XIII Festival Voces del Jazz y del Caribe — styles.css
   Paleta y estilo tomados del mockup. Mobile-first + breakpoints.
   ============================================================================= */

/* ---- Fuente local: SFC Signsmith -------------------------------------------
   Coloca los archivos de la fuente en assets/fonts/ (ver assets/fonts/LEEME.txt).
   Se aceptan .woff2 / .woff / .otf / .ttf. Descomenta/ajusta las que tengas.  */
@font-face {
    font-family: 'SFC Signsmith';
    src: url('../fonts/SFCSignsmith.woff2') format('woff2'),
         url('../fonts/SFCSignsmith.woff')  format('woff'),
         url('../fonts/SFCSignsmith.otf')   format('opentype'),
         url('../fonts/SFCSignsmith.ttf')   format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SFC Signsmith';
    src: url('../fonts/SFCSignsmith-Italic.woff2') format('woff2'),
         url('../fonts/SFCSignsmith-Italic.otf')   format('opentype'),
         url('../fonts/SFCSignsmith-Italic.ttf')   format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ---- Variables ------------------------------------------------------------- */
:root {
    /* Colores base */
    --bg:        #0c0b0a;
    --bg-2:      #121110;
    --bg-3:      #1a1817;
    --card:      #16110f;

    /* Acentos del mockup */
    --cream:     #f3e7c2;
    --cream-2:   #e7d69c;
    --gold:      #e7b52c;
    --green:     #3f9d55;
    --magenta:   #e6007e;
    --teal:      #1f8f8f;

    /* Texto */
    --text:      #d9d3c7;
    --muted:     #918a7d;
    --line:      rgba(255,255,255,.09);

    /* Tipografías */
    --font-display: 'SFC Signsmith', 'Oswald', system-ui, sans-serif;
    --font-script:  'Cedarville Cursive', cursive;
    --font-body:    'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Layout */
    --container: 1200px;
    --radius:    4px;
    --gutter:    clamp(1rem, 4vw, 2.5rem);
}

/* ---- Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3 { line-height: 1.02; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

/* ---- Utilidades ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section:nth-of-type(even) { background: var(--bg-2); }

.display { font-family: var(--font-display); letter-spacing: .01em; text-transform: uppercase; }

.section__title { font-size: clamp(2rem, 5.5vw, 3.9rem); color: var(--cream); line-height: .98; margin-bottom: 2rem; }
.section__title--sm { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section__head .section__title { margin-bottom: 0; }

.lead { font-size: 1.05rem; color: var(--text); max-width: 46ch; margin-bottom: 1.4rem; }

/* Eyebrow / etiqueta de sección */
.eyebrow {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    margin-bottom: .9rem;
    display: inline-block;
}
.eyebrow--magenta { color: var(--magenta); }
.eyebrow--green   { color: var(--green); }
.eyebrow--gold    { color: var(--gold); }

/* ---- Botones --------------------------------------------------------------- */
.btn {
    --btn-c: var(--cream);
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em;
    font-size: .95rem; padding: .8rem 1.5rem; border-radius: var(--radius);
    border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease;
    line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn::after { content: '\2192'; font-family: var(--font-body); }
.btn--sm  { font-size: .82rem; padding: .6rem 1.1rem; }
.btn--block { display: flex; justify-content: center; width: 100%; }

.btn--magenta { background: var(--magenta); color: #fff; }
.btn--magenta:hover { background: #ff1f95; }
.btn--gold    { background: var(--gold); color: #1a1200; }
.btn--green   { background: var(--green); color: #05170c; }
.btn--outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--outline:hover { background: var(--gold); color: #1a1200; }
.btn--ghost   { border-color: var(--green); color: var(--green); background: transparent; }
.btn--ghost:hover { background: var(--green); color: #05170c; }

/* Foco accesible */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* =============================================================================
   SISTEMA DE IMÁGENES + FILTROS DE COLOR (duotono automático)
   - Coloca la foto sin corrección de color; el filtro la adapta al estilo.
   - Si falta la imagen, se muestra un placeholder con etiqueta.
   ============================================================================= */
.media {
    position: relative;
    overflow: hidden;
    background: #17140f;
    isolation: isolate;
}
/* Placeholder (etiqueta + patrón) — visible sólo si no hay imagen */
.media::before {
    content: attr(data-ph);
    position: absolute; inset: 0; z-index: 0;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 1rem;
    font-family: var(--font-body); font-weight: 600; font-size: .74rem; letter-spacing: .06em;
    color: #6a635a;
    background:
        repeating-linear-gradient(45deg, #1b1815, #1b1815 12px, #1f1c18 12px, #1f1c18 24px);
    border: 1px dashed rgba(231,181,44,.25);
}
.media img {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%) contrast(1.06) brightness(.92);
    transition: transform .5s ease;
}
.media img.is-missing { opacity: 0; }

/* Capa de tinte (aplica hue del acento sobre foto en escala de grises) */
.media::after {
    content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    mix-blend-mode: color;
    opacity: .82;
    background: linear-gradient(160deg, var(--tint, transparent) 0%, var(--tint-2, transparent) 100%);
}
/* Sombra inferior para legibilidad de textos sobre foto */
.media--shade img { }
.media--shade::before { z-index: 0; }

/* Variantes de tinte */
.tint-warm    { --tint: #a86a2e; --tint-2: #3a1d0c; }
.tint-gold    { --tint: #e7b52c; --tint-2: #5a3d00; }
.tint-green   { --tint: #3f9d55; --tint-2: #0c3016; }
.tint-magenta { --tint: #e6007e; --tint-2: #4a0029; }
.tint-teal    { --tint: #1f8f8f; --tint-2: #06322f; }
.tint-bw      { --tint: transparent; --tint-2: transparent; }
.tint-bw::after { mix-blend-mode: normal; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); opacity: 1; }

/* Cuando falta la imagen: resalta la etiqueta y baja el tinte */
.media:has(img.is-missing)::before { z-index: 3; }
.media:has(img.is-missing)::after  { opacity: .12; }

/* Placeholder de logotipos (fondo transparente) */
.logo-ph {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 64px; padding: .8rem 1rem; border: 1px dashed rgba(255,255,255,.12);
    border-radius: var(--radius); background: rgba(255,255,255,.02);
}
.logo-ph::before {
    content: attr(data-ph);
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: .4rem; font-size: .7rem; color: #6a635a; letter-spacing: .04em;
}
.logo-ph img { position: relative; max-height: 46px; width: auto; object-fit: contain; filter: grayscale(100%) brightness(1.6) opacity(.85); }
.logo-ph img.is-missing { display: none; }
.logo-ph:hover img { filter: grayscale(0) brightness(1) opacity(1); }
.logo-ph--sm { min-height: 44px; }
.logo-ph--sm img { max-height: 30px; }

/* =============================================================================
   HEADER / NAV
   ============================================================================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12,11,10,.78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background .3s ease;
}
.site-header.is-scrolled { background: rgba(12,11,10,.96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 92px; }

.brand { display: flex; align-items: center; }
.brand__logo { height: 74px; width: auto; display: block; }
.brand__logo.is-missing { display: none; }
.brand__fallback { display: none; flex-direction: column; line-height: 1; }
.brand:has(.brand__logo.is-missing) .brand__fallback { display: flex; }
.brand__pre  { font-family: var(--font-body); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.brand__main { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; color: var(--cream); }
.brand__sub  { font-family: var(--font-script); font-size: .85rem; color: var(--gold); }

.nav__list { display: flex; align-items: center; gap: 1.4rem; }
.nav__link {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
    font-size: .92rem; color: var(--text); padding: .3rem 0; position: relative;
}
.nav__link::after {
    content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
    background: var(--gold); transition: width .25s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--cream); }
.nav__link.is-active::after { width: 100%; }
.nav__cta { padding: .55rem 1.1rem; font-size: .85rem; }
.nav__cta::after { content: ''; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav-toggle span { display: block; height: 2px; width: 26px; margin: 5px auto; background: var(--cream); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================================
   HERO
   ============================================================================= */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media::after { opacity: .55; }
.hero__media img { filter: grayscale(65%) contrast(1.1) brightness(.7) saturate(1.1); }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(12,11,10,.20) 0%, rgba(12,11,10,.48) 48%, rgba(12,11,10,.92) 100%);
}
.hero__inner {
    position: relative; z-index: 2; width: 100%; padding-block: 3rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: end;
}
.hero__info { grid-column: 2; align-self: center; }
.hero__vertical {
    position: absolute; left: .4rem; top: 50%; z-index: 2;
    transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
    font-family: var(--font-body); font-size: .62rem; letter-spacing: .35em; text-transform: uppercase;
    color: rgba(231,181,44,.55);
}

.hero__tape { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; align-self: end; margin-bottom: .8rem; }
.tape {
    display: inline-block; background: var(--cream); color: #17130a;
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
    font-size: clamp(1.1rem, 3.2vw, 1.9rem); padding: .35em .7em; line-height: 1;
    box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.tape:nth-child(1) { transform: rotate(-2deg); }
.tape:nth-child(2) { transform: rotate(1.2deg); margin-left: 1.3rem; }

.hero__dates {
    font-family: var(--font-display); color: var(--cream);
    font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: .92; text-transform: uppercase;
    text-shadow: 0 2px 24px rgba(0,0,0,.6);
}
.hero__city { font-family: var(--font-script); color: var(--cream-2); font-size: clamp(1.4rem, 4vw, 2.4rem); margin: .2rem 0 1.6rem; }

.hero__venues { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; margin-bottom: 1.8rem; }
.venue {
    display: inline-block; font-family: var(--font-display); text-transform: uppercase;
    letter-spacing: .05em; font-size: clamp(.95rem, 2.4vw, 1.35rem); padding: .35em .8em; color: #12100c;
    line-height: 1; border-radius: 2px;
}
.venue--green   { background: var(--green); color: #f3e7c2; }
.venue--gold    { background: var(--gold); color: #1a1200; }
.venue--magenta { background: var(--magenta); color: #fff; }

.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* =============================================================================
   EL HOMENAJE
   ============================================================================= */
.homenaje { overflow: hidden; }
.homenaje__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: stretch; }
.homenaje__text { align-self: center; }
.homenaje__title { font-size: clamp(2.6rem, 7vw, 5rem); color: var(--cream); margin: .3rem 0 1.4rem; }
.homenaje__text p { margin-bottom: 1rem; }
.homenaje__text .btn { margin-top: .8rem; }
.homenaje__media { min-height: clamp(420px, 52vw, 640px); height: 100%; border-radius: var(--radius); }
.homenaje__media img { object-position: center; }
.sax-watermark {
    position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
    width: 320px; height: 320px; opacity: .06; pointer-events: none;
    background: radial-gradient(circle at 60% 40%, var(--gold), transparent 62%);
    filter: blur(4px);
}

/* =============================================================================
   LOS 10 DEL JAZZ — CARRUSEL
   ============================================================================= */
.carousel { position: relative; display: flex; align-items: center; gap: .4rem; }
.carousel__track {
    display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: .5rem var(--gutter) 1rem; scroll-padding-left: var(--gutter);
    scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.music-card {
    flex: 0 0 clamp(210px, 60vw, 250px); scroll-snap-align: start;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.music-card__media { aspect-ratio: 3/4; }
.music-card__body { padding: 1rem 1.1rem 1.3rem; }
.music-card__name { font-size: 1.4rem; color: var(--cream); line-height: 1; }
.music-card__role { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--gold); margin: .35rem 0 .8rem; }
.link-arrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--green); display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; padding: 0; cursor: pointer; }
.link-arrow::after { content: '\2192'; }
.link-arrow:hover { color: var(--cream); }

.carousel__nav {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--cream);
    font-size: 1.2rem; display: grid; place-items: center; transition: background .2s ease;
}
.carousel__nav:hover { background: var(--gold); color: #1a1200; }
.carousel__dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; }
.carousel__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); padding: 0; }
.carousel__dots button.is-active { background: var(--gold); }

/* =============================================================================
   SEMILLEROS
   ============================================================================= */
.semilleros__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 2.2rem; }
.semillero { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; display: flex; flex-direction: column; }
.semillero__media { aspect-ratio: 16/10; }
.semillero__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.semillero__name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; color: var(--cream); margin-bottom: .4rem; letter-spacing: .02em; }
.semillero__desc { font-size: .86rem; color: var(--muted); }
.semillero .link-arrow { margin-top: auto; padding-top: .9rem; align-self: center; }

/* =============================================================================
   INVITADOS
   ============================================================================= */
.invitados__list { display: grid; gap: 1.4rem; }
.invitado { display: grid; grid-template-columns: 300px 1fr; gap: 1.6rem; align-items: stretch; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.invitado__media { min-height: 260px; height: 100%; }
.invitado__body { padding: 1.6rem 1.8rem; align-self: center; }
.invitado__origin { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--gold); margin-bottom: .3rem; }
.invitado__name { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--cream); margin-bottom: .7rem; }
.invitado__desc { color: var(--text); max-width: 52ch; margin-bottom: 1.1rem; }

/* =============================================================================
   PROGRAMACIÓN
   ============================================================================= */
.prog__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.prog__tab {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem;
    padding: .55rem 1.1rem; border-radius: 40px; border: 1px solid var(--line); background: transparent; color: var(--muted);
    transition: all .2s ease;
}
.prog__tab:hover { color: var(--cream); border-color: var(--gold); }
.prog__tab.is-active { background: var(--gold); color: #1a1200; border-color: var(--gold); }

.prog__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.prog-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: opacity .3s ease, transform .3s ease; }
.prog-card.is-hidden { display: none; }
.prog-card--green { border-top-color: var(--green); }
.prog-card--gold { border-top-color: var(--gold); }
.prog-card--magenta { border-top-color: var(--magenta); }
.prog-card__body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.prog-card__date { display: flex; align-items: baseline; gap: .4rem; }
.prog-card__day { font-size: 2.1rem; color: var(--cream); line-height: 1; }
.prog-card__month { font-family: var(--font-display); text-transform: uppercase; color: var(--gold); font-size: .95rem; }
.prog-card__time { font-family: var(--font-body); font-size: .82rem; color: var(--muted); }
.prog-card__artist { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; color: var(--cream); letter-spacing: .01em; }
.prog-card__note { font-size: .78rem; color: var(--green); }
.prog-card__venue { display: inline-block; align-self: flex-start; font-family: var(--font-body); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: .2em .6em; border-radius: 2px; margin: .2rem 0 .6rem; }
.prog-card__body .btn { margin-top: auto; }
.programacion__foot { margin-top: 2rem; }

/* =============================================================================
   AFICHE
   ============================================================================= */
.afiche__grid { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
/* El afiche es una pieza terminada: se muestra completo, sin recorte ni tinte */
.afiche__media { border-radius: var(--radius); background: #100e0c; }
.afiche__media img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; filter: none; }
.afiche__media::after { display: none; }
.afiche__media:has(img.is-missing) { min-height: 520px; }
.afiche__media:has(img.is-missing) img { height: 100%; }
.afiche__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; max-width: 320px; }
.afiche__actions .btn { width: 100%; justify-content: center; }
.afiche__credit { font-size: .78rem; color: var(--muted); margin-top: .6rem; }

/* =============================================================================
   PRENSA
   ============================================================================= */
.prensa__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 2rem; }
.prensa-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease; }
.prensa-card:hover { border-color: var(--magenta); transform: translateY(-3px); }
.prensa-card__icon { width: 34px; height: 34px; border-radius: 6px; background: rgba(230,0,126,.15); position: relative; }
.prensa-card__icon::before { content: ''; position: absolute; inset: 8px; border: 2px solid var(--magenta); border-radius: 2px; }
.prensa-card__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; color: var(--cream); }

/* =============================================================================
   JUNTA DIRECTIVA
   ============================================================================= */
.junta__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
.junta-card { text-align: center; }
.junta-card__media { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto .7rem; max-width: 120px; }
.junta-card__name { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: .9rem; color: var(--cream); }
.junta-card__role { display: block; font-size: .74rem; color: var(--gold); }

/* =============================================================================
   PATROCINADORES
   ============================================================================= */
.sponsor-row { display: grid; grid-template-columns: 160px 1fr; gap: 1.2rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.sponsor-row__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-size: .95rem; }
.sponsor-row__logos { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.sponsor-row__logos .logo-ph { flex: 1 1 130px; max-width: 180px; }
/* Logos reales: sin recuadro, sin texto, a color y con buen tamaño */
.sponsor-row__logos .sponsor-logo { flex: 0 1 200px; display: flex; align-items: center; justify-content: center; padding: .3rem .6rem; }
.sponsor-row__logos .sponsor-logo img { max-height: 90px; max-width: 100%; width: auto; object-fit: contain; }

/* =============================================================================
   GALERÍA
   ============================================================================= */
.galeria__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-bottom: 2rem; }
.galeria__item { aspect-ratio: 4/3; border-radius: var(--radius); }
.galeria__item:hover img { transform: scale(1.05); }

/* =============================================================================
   REDES
   ============================================================================= */
.redes__hashtag { font-family: var(--font-script); color: var(--gold); font-size: clamp(1.4rem, 4vw, 2.2rem); margin-bottom: 1.4rem; }
.redes__links { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.redes__link { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; padding: .6rem 1.2rem; border: 1px solid var(--line); border-radius: 40px; color: var(--cream); transition: all .2s ease; }
.redes__link:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.redes__feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 2rem; align-items: start; justify-items: center; }
.redes__feed .instagram-media,
.redes__feed .instagram-media-rendered { margin: 0 auto !important; min-width: 0 !important; width: 100% !important; max-width: 400px !important; }
.redes__post { aspect-ratio: 1; border-radius: var(--radius); }
.redes__post:hover img { transform: scale(1.06); }

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer { background: #080706; border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__logo { height: 56px; width: auto; margin-bottom: 1rem; }
.footer__logo.is-missing { display: none; }
.footer__tagline { color: var(--muted); font-size: .9rem; }
.footer__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-size: .95rem; margin-bottom: 1rem; }
.footer__nav a, .footer__contact a, .footer__contact li { color: var(--text); font-size: .9rem; line-height: 2; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__social { display: flex; gap: .6rem; margin-top: 1rem; }
.social-ico {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--cream);
    font-family: var(--font-display); font-size: 1rem; transition: all .2s ease;
}
.social-ico:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.footer__logos { display: flex; flex-wrap: wrap; gap: .8rem; }

.footer__credits { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 1.4rem 0; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.footer__credits strong { color: var(--text); font-weight: 600; }
.footer__bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.footer__bottom p { font-size: .8rem; color: var(--muted); text-align: center; }

/* Botón volver arriba */
.to-top {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold); color: #1a1200;
    font-size: 1.2rem; opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* =============================================================================
   MODAL / POPUP HISTORIA DEL ARTISTA
   ============================================================================= */
.modal[hidden] { display: none; }
.modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1rem, 4vw, 2.5rem);
}
.modal__overlay {
    position: absolute; inset: 0;
    background: rgba(6,5,4,.82); backdrop-filter: blur(6px);
    animation: modalFade .25s ease;
}
.modal__dialog {
    position: relative; z-index: 1; width: min(920px, 100%);
    max-height: min(88vh, 720px); overflow: hidden;
    background: var(--card); border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 30px 90px rgba(0,0,0,.6);
    animation: modalRise .3s cubic-bezier(.2,.7,.3,1);
}
.modal__close {
    position: absolute; top: .6rem; right: .8rem; z-index: 4;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(12,11,10,.55); color: var(--cream);
    font-size: 1.7rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, transform .2s ease;
}
.modal__close:hover { background: var(--magenta); transform: rotate(90deg); }
.modal__grid { display: grid; grid-template-columns: 42% 1fr; max-height: inherit; }
.modal__media { min-height: 100%; }
.modal__media img { filter: grayscale(85%) contrast(1.05) brightness(.95); }
/* Modo logo: logo centrado, sin tinte ni escala de grises */
.modal__media.is-logo { background: #14110e; }
.modal__media.is-logo::after { display: none; }
.modal__media.is-logo img { object-fit: contain; filter: none; padding: clamp(1.5rem, 4vw, 2.8rem); }
.modal__body {
    padding: clamp(1.5rem, 3vw, 2.6rem);
    overflow-y: auto; max-height: min(88vh, 720px);
}
.modal__name { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--cream); line-height: 1; margin: .2rem 0 1.1rem; }
.modal__text { color: var(--text); line-height: 1.7; margin-bottom: 1.5rem; }
.modal__body .eyebrow { margin-bottom: 0; }
body.modal-open { overflow: hidden; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
    .modal__dialog { max-height: 92vh; }
    .modal__grid { grid-template-columns: 1fr; }
    .modal__media { aspect-ratio: 16/10; min-height: 0; }
    .modal__body { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
    .modal__overlay, .modal__dialog { animation: none; }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1024px) {
    .prog__grid { grid-template-columns: repeat(2, 1fr); }
    .junta__grid { grid-template-columns: repeat(4, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .redes__feed { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; z-index: 120; }
    /* El backdrop-filter del header atrapa a los position:fixed hijos (el panel del
       menú). En móvil lo quitamos para que el panel ocupe toda la pantalla. */
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12,11,10,.97); }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); z-index: 110;
        background: var(--bg-2); border-left: 1px solid var(--line);
        transform: translateX(100%); transition: transform .3s ease; padding: 5rem 1.6rem 2rem;
        overflow-y: auto;
    }
    .nav.is-open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,.5); }
    .nav__list { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
    .nav__link { font-size: 1.1rem; }
    .nav__cta-item { margin-top: .5rem; }

    .hero__inner { grid-template-columns: 1fr; align-items: start; gap: 1.4rem; }
    .hero__info { grid-column: 1; align-self: start; }
    .hero__tape { align-self: start; margin-bottom: 1.2rem; }
    .hero::before { background: linear-gradient(180deg, rgba(12,11,10,.5) 0%, rgba(12,11,10,.86) 100%); }

    .homenaje__grid { grid-template-columns: 1fr; }
    .homenaje__media { min-height: 0; aspect-ratio: 4/5; max-height: 480px; }
    .invitado { grid-template-columns: 1fr; }
    .invitado__media { aspect-ratio: 16/9; height: auto; min-height: 0; }
    .invitado__body { padding: 0 1.4rem 1.6rem; align-self: start; }
    .semilleros__grid { grid-template-columns: repeat(2, 1fr); }
    .prensa__grid { grid-template-columns: repeat(2, 1fr); }
    .afiche__grid { grid-template-columns: 1fr; }
    .afiche__media { max-width: 360px; margin-inline: auto; }
    .afiche__actions { max-width: none; }
    .sponsor-row { grid-template-columns: 1fr; gap: .6rem; }
    .sponsor-row__logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
    .sponsor-row__logos .sponsor-logo { flex: none; padding: .2rem; }
    .sponsor-row__logos .sponsor-logo img { max-height: 52px; }
    .sponsor-row__logos .logo-ph { max-width: none; }
    .junta__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
    :root { --gutter: 1.1rem; }
    .prog__grid { grid-template-columns: 1fr; }
    .semilleros__grid { grid-template-columns: 1fr; }
    .prensa__grid { grid-template-columns: 1fr; }
    .galeria__grid { grid-template-columns: repeat(2, 1fr); }
    .junta__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr; }
    .redes__feed { grid-template-columns: 1fr; }
    .redes { overflow-x: hidden; }
    .redes__feed .instagram-media, .redes__feed .instagram-media-rendered { max-width: 100% !important; }
    .sponsor-row__logos { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
    .sponsor-row__logos .sponsor-logo img { max-height: 44px; }
    .hero__actions .btn { flex: 1; justify-content: center; }
    .section__head { flex-direction: column; align-items: flex-start; }
}

/* =============================================================================
   BOLETERÍA (boleteria.php · estado.php)
   ============================================================================= */
.page-boleteria { background: var(--bg); }

.bol-top { position: sticky; top: 0; z-index: 50; background: rgba(12,11,10,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bol-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.bol-top__back { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--cream); }
.bol-top__back:hover { color: var(--gold); }

.bol { padding: clamp(2rem, 6vw, 4.5rem) 0; }
.bol__grid { display: grid; grid-template-columns: 1fr 420px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.bol__intro .hero__tape { margin-bottom: 1.4rem; }
.bol__title { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--cream); line-height: .95; margin: .2rem 0 .6rem; }
.bol__dates { font-family: var(--font-script); font-size: 1.5rem; color: var(--cream-2); margin-bottom: 1.1rem; }
.bol__venues { margin-bottom: 1.8rem; }
.bol__afiche { max-width: 380px; border-radius: var(--radius); background: #100e0c; }
.bol__afiche img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; filter: none; }
.bol__afiche::after { display: none; }
.bol__afiche:has(img.is-missing) { min-height: 460px; }

/* Tarjeta de compra */
.bol__buy { position: sticky; top: 104px; }
.bol__card { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.4rem, 3vw, 2rem); }
.bol__stock { font-size: .82rem; color: var(--text); background: rgba(63,157,85,.14); border: 1px solid rgba(63,157,85,.4); border-radius: 100px; padding: .5rem .9rem; text-align: center; margin-bottom: 1.2rem; }
.bol__stock strong { color: var(--cream); }
.bol__stock.is-out { background: rgba(230,0,126,.14); border-color: rgba(230,0,126,.4); }

.bol__price { display: flex; flex-direction: column; margin-bottom: 1.4rem; }
.bol__price-value { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.bol__price-unit { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: .3rem; }

.bol__form { display: flex; flex-direction: column; gap: 1rem; }
.bol__field { display: flex; flex-direction: column; gap: .35rem; }
.bol__field > span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; color: var(--cream-2); }
.bol__field small { color: var(--muted); font-size: .74rem; }
.bol__field input, .bol__field select {
    width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text); font-family: var(--font-body); font-size: .95rem; padding: .7rem .85rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bol__field input:focus, .bol__field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231,181,44,.15); }
.bol__field input::placeholder { color: #6f685c; }

.bol__total { display: flex; align-items: baseline; justify-content: space-between; padding: .9rem 0 .2rem; border-top: 1px solid var(--line); margin-top: .3rem; }
.bol__cupon-row { display: flex; gap: .5rem; }
.bol__cupon-row input { flex: 1; }
.bol__cupon-row .btn { flex: 0 0 auto; white-space: nowrap; }
.bol__cupon-msg { margin-top: .1rem; }
.bol__cupon-msg.is-ok { color: var(--green); }
.bol__cupon-msg.is-bad { color: #ff8fb4; }
.bol__total-old { color: var(--muted); text-decoration: line-through; font-size: 1rem; font-weight: 400; margin-right: .35rem; }
.bol__total span { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); }
.bol__total strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--cream); }

.bol__error { color: #ff8fb4; font-size: .85rem; background: rgba(230,0,126,.1); border: 1px solid rgba(230,0,126,.35); border-radius: var(--radius); padding: .6rem .8rem; }
.bol__secure { font-size: .74rem; color: var(--muted); text-align: center; line-height: 1.5; }
.bol__secure strong { color: var(--cream-2); }

.bol-foot { border-top: 1px solid var(--line); padding: 1.6rem 0; text-align: center; }
.bol-foot p { font-size: .78rem; color: var(--muted); }

/* Página de estado */
.bol-status { min-height: 100vh; display: flex; align-items: center; text-align: center; padding: 2rem 0; }
.bol-status__inner { max-width: 620px; margin: auto; }
.brand--center { justify-content: center; margin-bottom: 1.6rem; }
.brand--center .brand__logo { height: 84px; }
.bol-badge { display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: .35rem .9rem; margin-bottom: 1rem; }
.bol-badge--ok { color: var(--green); border-color: rgba(63,157,85,.5); background: rgba(63,157,85,.12); }
.bol-badge--err { color: var(--magenta); border-color: rgba(230,0,126,.5); background: rgba(230,0,126,.12); }
.bol-status__title { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--cream); margin-bottom: 1rem; }
.bol-status__lead { color: var(--text); font-size: 1.05rem; margin-bottom: 1.2rem; }
.bol-ticket-number { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 1.2rem 0 1.6rem; }
.bol-ticket-number span { font-family: var(--font-display); font-size: 2rem; color: var(--gold); border: 1px dashed var(--gold); border-radius: var(--radius); padding: .5rem 1.2rem; }
.bol-status__note { color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.bol-status__back { display: inline-block; margin-top: 1rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--cream); }
.bol-status__back:hover { color: var(--gold); }

@media (max-width: 860px) {
    .bol__grid { grid-template-columns: 1fr; }
    .bol__buy { position: static; }
    .bol__afiche { max-width: 320px; margin-inline: auto; }
}
