/* ==========================================================================
   Páginas construidas con bloques (todas menos la portada)
   ========================================================================== */

.b-section { position: relative; }
.b-box { position: relative; min-width: 0; }
.b-inner { width: 100%; margin-inline: auto; }
.b-box > .b-overlay { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.b-box > .b-overlay ~ * { position: relative; }
.b-media { overflow: hidden; }

.b-w { min-width: 0; }
.b-heading { margin: 0; line-height: 1; }
.b-heading a { color: inherit; }
.b-text p { margin: 0 0 var(--pm, .9rem); }
.b-text ul, .b-text ol { margin: 0; padding-left: 40px; list-style: revert; }
.b-text > :last-child { margin-bottom: var(--pmb, 0) !important; }
.b-text li { margin-bottom: 0; }
.b-text a { color: var(--c-red); text-decoration: underline; text-underline-offset: 2px; }
.b-text a:hover { color: #fff; }
.b-text h1, .b-text h2, .b-text h3, .b-text h4, .b-text h5, .b-text h6 { margin: 1.2em 0 .5em; line-height: 1.2; color: #fff; }
.b-text table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.b-text th, .b-text td { border: 1px solid #383838; padding: 8px 10px; text-align: left; vertical-align: top; }
.b-text strong, .b-text b { font-weight: 700; }

.b-figure { margin: 0; }
.b-figure img { display: inline-block; vertical-align: top; }
.b-figure figcaption { color: #aaa; font-size: 14px; margin-top: 8px; }
.b-zoom { display: inline-block; padding: 0; border: 0; background: none; cursor: zoom-in; }

.b-btn-wrap { display: block; }
.b-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; transition: filter .3s ease, transform .3s ease, background-color .3s ease;
}
.b-btn svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
.b-btn:hover { filter: brightness(1.18); transform: translateY(-1px); }
.b-btn--icon { aspect-ratio: 1; padding: 14px !important; }

.b-icon-list { display: flex; flex-direction: column; gap: 0; }
.b-icon-list.is-inline { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
.b-icon-list li, .b-icon-list li > a { display: flex; align-items: flex-start; gap: var(--il-gap, 8px); }
.b-icon-list .b-il-icon { display: inline-flex; padding-top: .3em; flex-shrink: 0; }
.b-icon-list a:hover { color: var(--c-red); }
.b-icon-list .b-il-text p { margin: 0; }

.b-iconbox { display: flex; flex-direction: column; gap: 13px; height: 100%; transition: transform .35s var(--ease), background-color .3s ease; }
.b-iconbox.b-ib-left { flex-direction: row; gap: 15px; }
.b-iconbox.b-ib-right { flex-direction: row-reverse; gap: 15px; }
.b-iconbox.is-center { align-items: center; }
.b-iconbox.is-exact { gap: 0; }
.b-iconbox.is-exact.b-ib-left, .b-iconbox.is-exact.b-ib-right { gap: 15px; }
a.b-iconbox:hover { transform: translateY(-3px); }
.b-ib-title { margin: 0 0 5px; }
.b-ib-text p { margin: 0; }
.b-ib-btn { margin-top: 14px; }
.b-ficon { font-size: 30px; color: var(--c-red); }

.b-carousel .slider-slide img { width: 100%; height: auto; display: block; border-radius: 6px; }
.b-carousel .slider-slide img[style*="height"] { border-radius: 0; }
.b-carousel .slider-slide { border: 0; padding: 0; background: none; }
.b-carousel.has-dots { padding-bottom: 30px; }
.b-carousel.has-dots .slider-dots { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; margin: 0; align-items: center; gap: 10px; }
.b-carousel .slider-dots button { width: 6px; height: 6px; }

.b-gallery { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; }
.b-gallery-item { display: block; padding: 0; border: 0; background: #111; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.b-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.b-gallery-item:hover img { transform: scale(1.05); filter: brightness(.85); }

.b-hover-card { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 1; }
.b-hover-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.b-hover-body {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 20px; text-align: center; background: rgba(0, 0, 0, .55); color: #fff; transition: background-color .4s ease;
}
.b-hover-title { font-size: 22px; font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.b-hover-text { font-size: 15px; text-transform: uppercase; }
.b-hover-more { margin-top: 8px; padding: 8px 20px; border: 1px solid #fff; border-radius: 3px; font-size: 14px; opacity: 0; transform: translateY(10px); transition: all .4s ease; }
.b-hover-card:hover img { transform: scale(1.06); }
.b-hover-card:hover .b-hover-body { background: rgba(233, 63, 52, .75); }
.b-hover-card:hover .b-hover-more { opacity: 1; transform: none; }

.b-tabs-nav { gap: 0; border-bottom: 0; margin-bottom: 20px; }
.b-tab-btn { flex: 1; }
.b-tab-btn.is-active { box-shadow: inset 0 -2px 0 var(--c-red); }
.b-tabs.is-exact .b-tab-btn.is-active { box-shadow: none; }
.b-tabs.is-exact .b-tab-btn::after { display: none; }

.b-acc-item { margin-bottom: 12px; }
.b-acc-item:last-child { margin-bottom: 0 !important; }
.b-acc-header { color: #fff; border-color: #555; font-size: 17px; font-weight: 600; padding: 18px 20px; }
.b-accordion.is-exact .b-acc-header { border-width: 0; transition: background-color .3s ease, color .3s ease; }
.b-acc-content { border: 0; padding: 14px 0 0; color: inherit; }

.b-form-label { display: block; color: #fff; font-size: 15px; margin-bottom: 6px; }

/* Bloques HTML propios: mismos márgenes base que tenía el tema de WordPress */
:where(.b-html) p { margin: 0 0 .9rem; }
:where(.b-html) :where(h1, h2, h3, h4, h5, h6) { margin: .5rem 0 1rem; line-height: 1.2; }

.b-video { position: relative; aspect-ratio: 16 / 9; }
.b-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* ---------- Ocultar por dispositivo (igual que en Elementor) ---------- */
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }

/* ---------- Responsivo ---------- */
/* Páginas con medidas exactas: el orden de las columnas cambia solo donde el original cambiaba */
@media (min-width: 768px) and (max-width: 1024px) {
    .tb-col > .b-box, .tb-col > .b-w { flex: 0 0 auto !important; width: 100%; }
    .tb-row > .b-box { flex: 1 1 0; }
}
@media (max-width: 767px) {
    .mo-col > .b-box, .mo-col > .b-w { flex: 0 0 auto !important; width: 100%; }
    .mo-row > .b-box { flex: 1 1 0; }
    .b-exact .b-inner { max-width: 100% !important; }
    .b-exact .b-row { flex-wrap: wrap; }
}

/* Páginas sin medidas exactas: reglas generales */
@media (max-width: 1024px) {
    .b-page:not(.b-exact) .b-row.b-many { flex-wrap: wrap; }
    .b-page:not(.b-exact) .b-row.b-many > .b-box { flex: 1 1 calc(50% - 20px) !important; width: auto !important; }
    .b-gallery { grid-template-columns: repeat(var(--cols-t, 2), 1fr); }
}

@media (max-width: 880px) {
    .b-page:not(.b-exact) .b-row { flex-direction: column !important; }
    .b-page:not(.b-exact) .b-row > .b-box, .b-page:not(.b-exact) .b-row > .b-w { flex: 0 0 auto !important; width: 100% !important; }
    .b-page:not(.b-exact) .b-col > .b-box { width: 100% !important; }
    .b-page:not(.b-exact) .b-row.b-many > .b-box { flex-basis: auto !important; }
    .b-page:not(.b-exact) .b-box.b-media { min-height: 300px !important; }
    .b-page:not(.b-exact) .b-inner { padding-left: 16px !important; padding-right: 16px !important; }
    .b-icon-list.is-inline { flex-direction: column; }
}

@media (max-width: 767px) {
    .b-gallery { grid-template-columns: repeat(var(--cols-m, 1), 1fr); }
    .b-page:not(.b-exact) .b-figure img { width: auto !important; max-width: 100%; height: auto !important; }
    .b-tab-btn { padding-inline: 10px !important; }
    .b-page:not(.b-exact) .b-text[style*="justify"] { text-align: left !important; }
}
/* Pestañas en celular: igual que Elementor, cada título queda encima de su contenido */
@media (max-width: 767px) {
    .b-tabs { display: flex; flex-direction: column; gap: 6px; }
    .b-tabs > .b-tabs-nav { display: contents; }
    .b-tabs .b-tab-btn { width: 100%; flex: 0 0 auto; }
    .b-tabs > .b-tab-panel { margin-top: 14px; }
    .b-tabs-nav > .b-tab-btn:nth-child(1) { order: 1; } .b-tabs > .b-tab-panel:nth-child(2) { order: 2; }
    .b-tabs-nav > .b-tab-btn:nth-child(2) { order: 3; } .b-tabs > .b-tab-panel:nth-child(3) { order: 4; }
    .b-tabs-nav > .b-tab-btn:nth-child(3) { order: 5; } .b-tabs > .b-tab-panel:nth-child(4) { order: 6; }
    .b-tabs-nav > .b-tab-btn:nth-child(4) { order: 7; } .b-tabs > .b-tab-panel:nth-child(5) { order: 8; }
    .b-tabs-nav > .b-tab-btn:nth-child(5) { order: 9; } .b-tabs > .b-tab-panel:nth-child(6) { order: 10; }
    .b-tabs-nav > .b-tab-btn:nth-child(6) { order: 11; } .b-tabs > .b-tab-panel:nth-child(7) { order: 12; }
    .b-tabs-nav > .b-tab-btn:nth-child(7) { order: 13; } .b-tabs > .b-tab-panel:nth-child(8) { order: 14; }
    .b-tabs-nav > .b-tab-btn:nth-child(8) { order: 15; } .b-tabs > .b-tab-panel:nth-child(9) { order: 16; }
    .b-tabs-nav > .b-tab-btn:nth-child(9) { order: 17; } .b-tabs > .b-tab-panel:nth-child(10) { order: 18; }
    .b-tabs-nav > .b-tab-btn:nth-child(10) { order: 19; } .b-tabs > .b-tab-panel:nth-child(11) { order: 20; }
    .b-tabs-nav > .b-tab-btn:nth-child(11) { order: 21; } .b-tabs > .b-tab-panel:nth-child(12) { order: 22; }
    .b-tabs-nav > .b-tab-btn:nth-child(12) { order: 23; } .b-tabs > .b-tab-panel:nth-child(13) { order: 24; }
}
/* ---------- Contador de recaudación (Contributions) ---------- */
.dm {
    position: relative; overflow: hidden; isolation: isolate;
    background: #0f0f0f; border-radius: 10px; padding: 50px 39px 39px; text-align: center; color: #fff;
}
.dm-glow {
    position: absolute; z-index: -1; left: 50%; top: -120px; width: 720px; height: 420px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(233, 63, 52, .28), rgba(233, 63, 52, 0)); pointer-events: none;
}
.dm-kicker {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
    color: var(--c-red); font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
}
.dm-live { width: 9px; height: 9px; border-radius: 50%; background: var(--c-red); box-shadow: 0 0 0 0 rgba(233, 63, 52, .7); animation: dm-pulse 1.8s infinite; }
@keyframes dm-pulse { 70% { box-shadow: 0 0 0 10px rgba(233, 63, 52, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 63, 52, 0); } }
.dm-title { margin: 0 auto 26px; max-width: 760px; font-size: 25px; font-weight: 700; line-height: 1.2; }
.dm-amount {
    display: inline-flex; align-items: baseline; gap: 10px; line-height: 1;
    font-size: clamp(56px, 9vw, 104px); font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums;
    text-shadow: 0 0 40px rgba(233, 63, 52, .35);
}
.dm-currency { font-size: .26em; font-weight: 600; letter-spacing: 1px; color: #c6c6c6; text-shadow: none; }
.dm-raised { margin: 10px 0 30px; color: #c6c6c6; font-size: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; }

.dm-progress { max-width: 980px; margin: 0 auto; }
.dm-track { position: relative; height: 34px; border-radius: 99px; background: #1c1c1c; border: 1px solid #383838; overflow: hidden; }
.dm-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .12); z-index: 1; }
.dm-fill {
    position: relative; z-index: 2; height: 100%; width: 0; min-width: 0; border-radius: inherit;
    background: linear-gradient(90deg, #a51f17 0%, #e93f34 65%, #ff6b5f 100%);
    box-shadow: 0 0 22px rgba(233, 63, 52, .55);
    transition: width 2.2s cubic-bezier(.22, 1, .36, 1);
    display: flex; align-items: center; justify-content: flex-end; overflow: hidden;
}
.dm-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .28) 45%, transparent 70%);
    transform: translateX(-100%); animation: dm-shine 2.8s ease-in-out infinite;
}
@keyframes dm-shine { 60%, 100% { transform: translateX(100%); } }
.dm-fill-pct { position: relative; z-index: 1; padding: 0 14px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.dm-scale { display: flex; justify-content: space-between; margin-top: 10px; color: #c6c6c6; font-size: 15px; }
.dm-scale strong { color: #fff; }

.dm-reached { display: inline-block; margin: 24px 0 0; padding: 8px 18px; border-radius: 99px; background: rgba(233, 63, 52, .15); border: 1px solid var(--c-red); font-weight: 600; }

.dm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; max-width: 980px; margin: 34px auto 0; }
.dm-stat { background: #1c1c1c; border-radius: 10px; padding: 22px 16px; }
.dm-stat-num { font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.dm-stat-label { margin-top: 8px; color: #c6c6c6; font-size: 15px; font-weight: 500; }
.dm-updated { margin: 24px 0 0; color: #8a8a8a; font-size: 14px; }

@media (max-width: 1024px) {
    .dm { padding: 40px 29px 29px; }
}
@media (max-width: 767px) {
    .dm { padding: 34px 20px 24px; }
    .dm-title { font-size: 22px; }
    .dm-raised { font-size: 15px; margin-bottom: 24px; }
    .dm-track { height: 28px; }
    .dm-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
    .dm-stat { padding: 16px 8px; }
    .dm-stat-num { font-size: 28px; }
    .dm-stat-label { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .dm-live, .dm-fill::after { animation: none; }
    .dm-fill { transition: none; }
}
/* ---------- Guest Artists: carga progresiva ---------- */
.tpp-team-card[hidden], .tpp-team3-card[hidden], .b-w[hidden] { display: none !important; }
.tpp-lazy-in { animation: tpp-lazy-in .6s ease both; }
@keyframes tpp-lazy-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tpp-lazy-sentinel { height: 1px; }