/* ==========================================================================
   Boombastic · hoja de estilos del tema
   Réplica del diseño de la landing Asturias 2027 (boombastic-asturias,
   src/app/globals.css y componentes). Mismos tokens, tamaños y animaciones.
   ========================================================================== */

:root {
	--bg: #0b2d8f;
	--bg-deep: #061b5e;
	--navy: #1d254e;
	--primary: #ff4a84;
	--primary-hover: #ff5f95;
	--on-primary: #0a0a0a;
	--surface: rgba(6, 27, 94, .6);
	--surface-strong: rgba(6, 27, 94, .85);
	--line: rgba(255, 255, 255, .1);
	--sky: #a4e6fa;
	--azure: #36a9e1;
	--violet: #45319d;
	--lemon: #fdd80b;

	--font: 'Prenton RP Cond', 'Arial Narrow', system-ui, sans-serif;
	--radius-card: 1.25rem;
	--shadow-card: 0 20px 50px -20px rgba(0, 0, 0, .6);
	--shadow-glow: 0 8px 24px -8px rgba(255, 74, 132, .6);
	--ease: cubic-bezier(.16, 1, .3, 1);
	--section-title: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	color-scheme: dark;
	font-synthesis-weight: none;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--bg-deep);
	background-image:
		radial-gradient(120% 80% at 50% 0%, var(--bg) 0%, var(--bg-deep) 70%),
		linear-gradient(180deg, var(--bg-deep), var(--bg-deep));
	background-attachment: fixed;
	color: #fff;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.5;
	overflow-x: hidden;
}

.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.bb-main { flex: 1; margin: 0; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
::selection { background: var(--primary); color: var(--on-primary); }

.screen-reader-text, .sr-only {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; white-space: nowrap; word-wrap: normal !important;
}

.bb-skip {
	position: absolute; left: -9999px; top: 1rem; z-index: 60;
	padding: .5rem 1rem; border-radius: 999px; background: #fff; color: var(--navy);
}
.bb-skip:focus { left: 1rem; }

.bb-container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40rem) { .bb-container { padding-inline: 1.5rem; } }
@media (min-width: 64rem) { .bb-container { padding-inline: 2rem; } }
.bb-container--4xl { max-width: 56rem; }
.bb-container--3xl { max-width: 48rem; }

.bb-h2 { font-size: var(--section-title); text-wrap: balance; }
.bb-display { font-family: var(--font); font-weight: 900; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Botones y etiquetas
   ------------------------------------------------------------------------ */

.bb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	height: 2.75rem; padding: 0 1.5rem; border-radius: 999px;
	font-family: var(--font); font-weight: 900; font-size: .875rem; line-height: 1.25rem;
	text-transform: uppercase; letter-spacing: .025em; white-space: nowrap;
	background: var(--primary); color: var(--on-primary);
	transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
a.bb-btn:hover, button.bb-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); background: var(--primary-hover); }
a.bb-btn:active, button.bb-btn:active { transform: scale(.97); transition-duration: 120ms; }
.bb-btn--sm { height: 2.5rem; padding: 0 1rem; font-size: .75rem; line-height: 1rem; }
.bb-btn--lg { height: 3.5rem; padding: 0 2.25rem; font-size: 1rem; line-height: 1.5rem; }
.bb-btn--secondary { background: #fff; color: var(--navy); }
a.bb-btn--secondary:hover, button.bb-btn--secondary:hover { background: var(--sky); }
.bb-btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; }
a.bb-btn--ghost:hover, button.bb-btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.bb-btn--off { background: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .6); cursor: not-allowed; box-shadow: none; }
.bb-btn--off-light { background: rgba(29, 37, 78, .1); color: rgba(29, 37, 78, .6); cursor: not-allowed; }
.bb-btn--block { width: 100%; }
@media (min-width: 40rem) { .bb-btn--auto-sm { width: auto; } }

@keyframes bb-cta-pulse {
	0%, 30%, 100% { box-shadow: 0 0 0 0 rgba(255, 74, 132, 0); }
	15% { box-shadow: 0 0 0 8px rgba(255, 74, 132, .35); }
}
.bb-cta-pulse { animation: bb-cta-pulse 4s ease-in-out 1.5s 2; }

.bb-badge {
	display: inline-flex; align-items: center; padding: .25rem .75rem; border-radius: 999px;
	font-family: var(--font); font-weight: 900; font-size: 11px; line-height: 1rem;
	text-transform: uppercase; letter-spacing: .05em;
	background: rgba(255, 255, 255, .15); color: #fff;
}
.bb-badge--proximamente { background: var(--lemon); color: var(--on-primary); }
.bb-badge--agotado { background: #fff; color: var(--navy); }

/* --------------------------------------------------------------------------
   Luces de fondo (stage lights)
   ------------------------------------------------------------------------ */

.bb-lights { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bb-light { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
@keyframes bb-light-a { 0%, 100% { transform: translate3d(-8%, -6%, 0) scale(1); } 50% { transform: translate3d(10%, 8%, 0) scale(1.12); } }
@keyframes bb-light-b { 0%, 100% { transform: translate3d(6%, 4%, 0) scale(1.05); } 50% { transform: translate3d(-10%, -10%, 0) scale(.95); } }
@keyframes bb-light-c { 0%, 100% { transform: translate3d(0, 8%, 0) scale(1); } 50% { transform: translate3d(-6%, -8%, 0) scale(1.1); } }
@keyframes bb-light-sweep { 0% { transform: translate3d(-60vw, 60vh, 0) rotate(-35deg); } 100% { transform: translate3d(60vw, -60vh, 0) rotate(-35deg); } }
.bb-light--a { top: -30vmax; left: -25vmax; background: radial-gradient(circle, rgba(54, 169, 225, .36) 0%, rgba(54, 169, 225, 0) 62%); animation: bb-light-a 34s ease-in-out infinite; }
.bb-light--b { top: 10vmax; right: -35vmax; background: radial-gradient(circle, rgba(69, 49, 157, .43) 0%, rgba(69, 49, 157, 0) 62%); animation: bb-light-b 40s ease-in-out infinite; }
.bb-light--c { bottom: -35vmax; left: 15vmax; background: radial-gradient(circle, rgba(255, 74, 132, .38) 0%, rgba(255, 74, 132, 0) 62%); animation: bb-light-c 26s ease-in-out infinite; }
.bb-light--sweep { top: 20vh; left: 20vw; width: 120vmax; height: 18vmax; background: radial-gradient(ellipse at center, rgba(164, 230, 250, .22) 0%, rgba(164, 230, 250, 0) 60%); animation: bb-light-sweep 45s ease-in-out infinite alternate; }
@media (max-width: 48rem) {
	.bb-lights .bb-light { mix-blend-mode: normal; animation: none; will-change: auto; }
	.bb-light--sweep { display: none; }
}

/* --------------------------------------------------------------------------
   Cabecera
   ------------------------------------------------------------------------ */

.bb-header-part { position: fixed; inset: 0 0 auto 0; z-index: 50; pointer-events: none; }
.bb-header-row { padding: .75rem 1rem 0; }
@media (min-width: 40rem) { .bb-header-row { padding: 1rem 1.5rem 0; } }
.bb-header {
	position: relative; z-index: 50; max-width: 72rem; margin-inline: auto;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.bb-header__brand { pointer-events: auto; display: flex; flex-shrink: 0; align-items: center; transform-origin: left; transition: transform 200ms var(--ease); }
.bb-header__brand img { height: 34px; width: auto; }
@media (min-width: 48rem) { .bb-header__brand img { height: 40px; } }
.is-compact .bb-header__brand { transform: scale(.85); }

.bb-pill {
	pointer-events: auto; display: flex; align-items: center; gap: .25rem;
	border-radius: 999px; background: #fff; color: var(--navy);
	padding: .375rem .375rem .375rem .5rem;
	box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .5);
	transition: padding 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease), backdrop-filter 200ms var(--ease);
}
.is-compact .bb-pill {
	background: rgba(255, 255, 255, .85); padding-top: .25rem; padding-bottom: .25rem;
	box-shadow: 0 14px 44px -10px rgba(0, 0, 0, .65); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.bb-pill--desktop { display: none; }
@media (min-width: 48rem) { .bb-pill--desktop { display: flex; } .bb-pill--mobile { display: none; } }
.bb-pill--mobile { padding-left: .375rem; }

.bb-nav { position: relative; display: flex; align-items: center; }
.bb-nav__hl {
	position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: rgba(29, 37, 78, .06);
	opacity: 0; transition: transform 200ms var(--ease), width 200ms var(--ease), opacity 150ms ease-out;
}
.bb-nav__link {
	position: relative; z-index: 1; display: block; border-radius: 999px; padding: .5rem 1rem;
	font-weight: 900; font-size: .875rem; line-height: 1.25rem; text-transform: uppercase; letter-spacing: .025em; outline: none;
}
.bb-nav__dot { position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); transform: translateX(-50%); opacity: 0; transition: opacity 200ms; }
.bb-nav__link[aria-current] .bb-nav__dot { opacity: 1; animation: bb-breathe 2s ease-in-out infinite alternate; }
@keyframes bb-breathe { to { transform: translateX(-50%) scale(1.4); } }
.bb-pill__sep { width: 1px; height: 1.25rem; margin: 0 .75rem; background: rgba(29, 37, 78, .15); }

.bb-switch { display: flex; align-items: center; gap: .5rem; }
.bb-switch a { border-radius: 2px; padding: .25rem; font-size: .75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: rgba(29, 37, 78, .5); transition: color 150ms; }
.bb-switch a:hover { color: rgba(29, 37, 78, .8); }
.bb-switch a[aria-current] { font-weight: 900; color: var(--navy); }
.bb-pill .bb-btn { margin-left: .75rem; }
.bb-pill--mobile .bb-btn { margin-left: 0; }

.bb-menu-toggle { margin-left: .25rem; display: flex; width: 2.5rem; height: 2.5rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; color: var(--navy); transition: background-color 150ms; }
.bb-menu-toggle:hover { background: rgba(29, 37, 78, .05); }
.bb-burger { position: relative; display: block; width: 1.25rem; height: .75rem; }
.bb-burger span { position: absolute; left: 0; width: 1.25rem; height: 2px; border-radius: 2px; background: var(--navy); transition: transform 200ms, opacity 200ms; }
.bb-burger span:nth-child(1) { top: 0; }
.bb-burger span:nth-child(2) { top: 5px; }
.bb-burger span:nth-child(3) { top: 10px; }
.is-menu-open .bb-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-menu-open .bb-burger span:nth-child(2) { opacity: 0; }
.is-menu-open .bb-burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Menú de celular: se abre en círculo desde el botón. */
.bb-menu {
	--origin: calc(100% - 2.75rem) 2.5rem;
	position: fixed; inset: 0; z-index: 40; pointer-events: auto;
	display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
	background: var(--bg-deep); padding: 7rem 1.5rem max(2rem, env(safe-area-inset-bottom));
	clip-path: circle(0% at var(--origin)); visibility: hidden;
	transition: clip-path 300ms var(--ease), visibility 0s linear 300ms;
}
.has-announce .bb-menu { padding-top: 9.5rem; }
.is-menu-open .bb-menu { clip-path: circle(150% at var(--origin)); visibility: visible; transition: clip-path 550ms var(--ease), visibility 0s; }
@media (min-width: 48rem) { .bb-menu { display: none; } }
.bb-menu__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90% 55% at 100% 0%, rgba(255, 74, 132, .2), rgba(255, 74, 132, 0) 70%), radial-gradient(80% 45% at 0% 100%, rgba(164, 230, 250, .1), rgba(164, 230, 250, 0) 70%); }
.bb-menu__link {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.25rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
	font-weight: 900; font-size: clamp(2rem, 10.5vw, 3.5rem); line-height: .9; text-transform: uppercase;
	opacity: 0; transform: translateY(1.5rem); transition: opacity 150ms ease-out, transform 150ms var(--ease), color 150ms;
}
.bb-menu__link svg { width: 1.5rem; height: 1.5rem; color: rgba(255, 255, 255, .35); }
.bb-menu__link { outline: none; }
.bb-menu__link:focus-visible { color: var(--sky); }
.bb-menu__link:active { color: var(--primary); }
.bb-menu__foot { margin-top: auto; padding-top: 2.5rem; opacity: 0; transform: translateY(1.5rem); transition: opacity 150ms ease-out, transform 150ms var(--ease); }
.is-menu-open .bb-menu__link, .is-menu-open .bb-menu__foot { opacity: 1; transform: none; transition: opacity 400ms ease-out, transform 600ms var(--ease); }
.is-menu-open .bb-menu__link { transition-delay: calc(120ms + var(--i, 0) * 60ms); }
.is-menu-open .bb-menu__foot { transition-delay: 260ms; }
.bb-menu__logo { width: 8rem; margin-bottom: 1rem; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); }
.bb-menu__dates { font-weight: 900; font-size: 1.125rem; line-height: 1.75rem; text-transform: uppercase; letter-spacing: .025em; }
.bb-menu__loc { margin-top: .25rem; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--sky); }
.bb-menu__row { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bb-menu__row .bb-btn { flex: 1; }
.bb-menu .bb-switch { margin-left: -.625rem; gap: .25rem; }
.bb-menu .bb-switch a { padding: .75rem .625rem; font-size: .875rem; color: rgba(255, 255, 255, .45); }
.bb-menu .bb-switch a[aria-current] { color: #fff; }

/* Franja de aviso con marquesina */
.bb-announce {
	position: relative; pointer-events: auto; display: flex; align-items: center; height: 2rem; overflow: hidden;
	background: var(--primary); color: var(--on-primary);
	font-weight: 900; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
}
@media (min-width: 40rem) { .bb-announce { height: 2.25rem; font-size: .875rem; } }
.bb-announce__track { display: flex; width: max-content; animation: bb-marquee 40s linear infinite; will-change: transform; }
.bb-announce__half { display: flex; flex-shrink: 0; align-items: center; }
.bb-announce__item { display: flex; flex-shrink: 0; align-items: center; padding: 0 1.25rem; white-space: nowrap; }
@media (min-width: 40rem) { .bb-announce__item { padding: 0 1.75rem; } }
.bb-announce__spark { width: .75rem; height: .75rem; flex-shrink: 0; }
.bb-announce__static { display: none; width: 100%; justify-content: center; padding: 0 1rem; }
.bb-announce a { position: absolute; inset: 0; z-index: 1; }
@keyframes bb-marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (hover: hover) and (pointer: fine) { .bb-announce:hover .bb-announce__track { animation-play-state: paused; } }
.bb-announce::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%); animation: bb-shimmer 6s ease-in-out infinite; pointer-events: none; }
@keyframes bb-shimmer { 0%, 20% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }

/* Páginas sin portada: el contenido empieza debajo de la cabecera. */
body:not(.bb-has-hero) .bb-main { padding-top: 6rem; }
body.has-announce:not(.bb-has-hero) .bb-main { padding-top: 8.5rem; }

/* --------------------------------------------------------------------------
   Portada
   ------------------------------------------------------------------------ */

.bb-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center; min-height: 100svh;
	padding: 7rem 0 4rem;
}
@media (min-width: 40rem) { .bb-hero { padding-bottom: 6rem; } }
.has-announce .bb-hero { padding-top: 9.5rem; }
.bb-hero__media { position: absolute; inset: 0; z-index: -3; transform-origin: center; }
.bb-hero__media img, .bb-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bb-hero__video { opacity: 0; transition: opacity 600ms ease-out; pointer-events: none; }
.bb-hero__video.is-ready { opacity: 1; }
.bb-hero__video::-webkit-media-controls-start-playback-button, .bb-hero__video::-webkit-media-controls { display: none !important; -webkit-appearance: none; }
.bb-hero__shade { position: absolute; inset: 0; z-index: -2; background: var(--navy); opacity: 0; }
.bb-hero__fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(6, 27, 94, .5), rgba(6, 27, 94, .2), var(--bg-deep)); }
.bb-hero__land { position: absolute; inset: auto 0 0 0; z-index: -1; height: 12rem; background: linear-gradient(to top, var(--bg-deep), rgba(6, 27, 94, .7), transparent); }
@media (min-width: 40rem) { .bb-hero__land { height: 16rem; } }
.bb-hero--plain .bb-hero__media { background: radial-gradient(60% 50% at 20% 25%, rgba(255, 74, 132, .4), transparent 70%), radial-gradient(55% 45% at 80% 30%, rgba(54, 169, 225, .35), transparent 70%), var(--bg); }

.bb-hero__content { margin-inline: auto; display: flex; width: 100%; max-width: 56rem; flex-direction: column; align-items: center; padding-inline: 1rem; text-align: center; }
.bb-hero__logo { width: 100%; max-width: 320px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); animation: bb-hero-logo 700ms var(--ease) 100ms both; }
@media (min-width: 40rem) { .bb-hero__logo { max-width: 520px; } }
@media (min-width: 64rem) { .bb-hero__logo { max-width: 640px; } }
.bb-hero__name { font-weight: 900; font-size: clamp(3rem, 10vw, 7rem); line-height: .9; text-transform: uppercase; }
.bb-hero__dates {
	margin-top: 2rem; max-width: 100%; text-wrap: balance;
	font-weight: 900; font-size: 1.125rem; line-height: 1.75rem; text-transform: uppercase; letter-spacing: .15em;
}
@media (min-width: 40rem) { .bb-hero__dates { font-size: 1.5rem; line-height: 2rem; letter-spacing: .2em; } }
@media (min-width: 48rem) { .bb-hero__dates { font-size: 1.875rem; line-height: 2.25rem; } }
.bb-hero__loc {
	margin-top: .75rem; max-width: 100%; text-wrap: balance; color: var(--sky);
	font-weight: 900; font-size: 11px; line-height: 1rem; text-transform: uppercase; letter-spacing: .2em;
	animation: bb-rise 400ms var(--ease) 450ms both;
}
@media (min-width: 40rem) { .bb-hero__loc { font-size: .75rem; letter-spacing: .3em; } }
@media (min-width: 48rem) { .bb-hero__loc { font-size: .875rem; line-height: 1.25rem; } }
.bb-hero__cta { margin-top: 2.5rem; animation: bb-rise 400ms var(--ease) 500ms both; }
.bb-hero__extra { margin-top: 1.5rem; max-width: 36rem; color: rgba(255, 255, 255, .85); animation: bb-rise 400ms var(--ease) 550ms both; }

@keyframes bb-hero-logo { from { transform: scale(1.08); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)) blur(12px); } to { transform: scale(1); } }
@keyframes bb-hero-logo-scale { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (max-width: 48rem) { .bb-hero__logo { animation-name: bb-hero-logo-scale; } }
@keyframes bb-char { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: translateY(0); } }
@keyframes bb-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.bb-char { display: inline-block; animation: bb-char 400ms var(--ease) both; animation-delay: calc(300ms + var(--i) * min(25ms, 100ms / max(1, var(--n) - 1))); }
.bb-char--space { width: .35em; }

/* La portada se aleja al bajar: el video crece, se oscurece y el texto se va. */
@keyframes bb-media-recede { to { transform: scale(1.12); } }
@keyframes bb-shade-in { to { opacity: .25; } }
@keyframes bb-content-recede { to { transform: translateY(35vh); opacity: 0; } }
@supports (animation-timeline: view()) {
	.bb-hero { view-timeline-name: --bb-hero; }
	.bb-hero__media, .bb-hero__shade, .bb-hero__content { animation-timeline: --bb-hero; animation-range: exit 0% exit 100%; animation-fill-mode: both; animation-timing-function: linear; }
	.bb-hero__media { animation-name: bb-media-recede; }
	.bb-hero__shade { animation-name: bb-shade-in; }
	.bb-hero__content { animation-name: bb-content-recede; }
}
@supports not (animation-timeline: view()) {
	.bb-hero__media { transform: scale(calc(1 + .12 * var(--hero-p, 0))); }
	.bb-hero__shade { opacity: calc(.25 * var(--hero-p, 0)); }
	.bb-hero__content { transform: translateY(calc(35vh * var(--hero-p, 0))); opacity: calc(1 - var(--hero-p, 0)); }
}

/* --------------------------------------------------------------------------
   Secciones
   ------------------------------------------------------------------------ */

.bb-section { position: relative; padding: 5rem 0; scroll-margin-top: 6rem; }
@media (min-width: 40rem) { .bb-section { padding: 7rem 0; } }

/* Aparición de títulos y listas al entrar en pantalla (solo con JS). */
[data-reveal] { transition: opacity 500ms var(--ease), clip-path 500ms var(--ease); }
[data-reveal="paragraph"] { transition-delay: 80ms; }
.js [data-reveal]:not(.is-revealed) { opacity: 0; clip-path: inset(0 0 100% 0); }
[data-stagger] > * { transition: opacity 450ms var(--ease), transform 450ms var(--ease); transition-delay: min(calc(var(--i, 0) * 60ms), 360ms); }
.js [data-stagger]:not(.is-revealed) > * { opacity: 0; transform: translateY(24px); }

/* Tarjetas */
.bb-card {
	position: relative; display: flex; height: 100%; flex-direction: column; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card);
}
.bb-card.is-agotado { opacity: .7; }
.bb-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-deep); }
.bb-card__frame { position: absolute; inset: 0; overflow: hidden; transition: transform 500ms var(--ease); }
.bb-card:hover .bb-card__frame, .bb-card:focus-within .bb-card__frame { transform: scale(1.04); }
.bb-card__frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bb-card.is-agotado .bb-card__frame img { filter: grayscale(1); }
.bb-card__media .bb-badge { position: absolute; top: .75rem; right: .75rem; z-index: 3; }
.bb-card__body { display: flex; flex: 1; flex-direction: column; gap: .75rem; padding: 1.25rem; }
.bb-card__title { font-size: 1rem; line-height: 1.5rem; }
.bb-card__text { font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.bb-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; padding-top: .75rem; }
.bb-card__foot .bb-btn { position: relative; z-index: 3; width: 100%; }
@media (min-width: 40rem) { .bb-card__foot .bb-btn { width: auto; } }
.bb-card__price { font-weight: 900; font-size: 1.5rem; line-height: 2rem; }
.bb-card__price small { margin-left: .25rem; font-size: .75rem; font-weight: 700; color: rgba(255, 255, 255, .6); }

/* Ken Burns: zoom lento en las fotos mientras están en pantalla. */
@keyframes bb-ken-burns { to { transform: scale(1.08); } }
.bb-kb { animation: bb-ken-burns 18s ease-in-out infinite alternate; animation-play-state: paused; transform-origin: center; }
[data-onscreen] .bb-kb { animation-play-state: running; will-change: transform; }

/* Brillo que sigue al cursor (escritorio) o a la tarjeta centrada (celular). */
.bb-spot { --sx: 50%; --sy: 50%; }
.bb-spot::before, .bb-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
	.bb-spot::before, .bb-spot::after { transition: opacity 200ms ease-out; }
	.bb-spot::before { z-index: 1; background: radial-gradient(240px circle at var(--sx) var(--sy), rgba(255, 255, 255, .1), transparent 60%); }
	.bb-spot::after { z-index: 2; padding: 1px; background: radial-gradient(260px circle at var(--sx) var(--sy), rgba(255, 74, 132, .7), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
	.bb-spot:hover::before, .bb-spot:hover::after { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
	.bb-spot::before, .bb-spot::after { transition: opacity 500ms ease-out; }
	.bb-spot::before { z-index: 1; background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .09), transparent 65%); }
	.bb-spot::after { z-index: 2; padding: 1px; background: linear-gradient(160deg, rgba(255, 74, 132, .8), rgba(255, 74, 132, 0) 55%, rgba(164, 230, 250, .4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
	.bb-spot.is-lit::before, .bb-spot.is-lit::after { opacity: 1; }
}

/* Abonos y entradas */
.bb-passes {
	z-index: 10; margin-top: -2.5rem; padding: 6rem 0 4rem; border-radius: 2rem 2rem 0 0;
	background: linear-gradient(to bottom, var(--bg-deep) 0%, transparent 40%);
}
@media (min-width: 40rem) { .bb-passes { padding: 9rem 0 6rem; } }
.bb-passes__head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 40rem) { .bb-passes__head { flex-direction: row; align-items: center; justify-content: space-between; } }
.bb-tabs { position: relative; display: flex; width: fit-content; flex-shrink: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); padding: .25rem; }
.bb-tabs__ind { position: absolute; top: .25rem; bottom: .25rem; left: 0; border-radius: 999px; background: #fff; opacity: 0; transition: transform 250ms var(--ease), width 250ms var(--ease); }
.bb-tab { position: relative; z-index: 1; border-radius: 999px; padding: .5rem 1.25rem; font-weight: 900; font-size: .875rem; line-height: 1.25rem; text-transform: uppercase; letter-spacing: .025em; color: rgba(255, 255, 255, .8); transition: color 250ms; }
.bb-tab:hover { color: #fff; }
.bb-tab[aria-selected="true"] { color: var(--navy); }
.no-js .bb-tabs, .bb-tabs:not(.is-ready) .bb-tabs__ind { }
.bb-panels { margin-top: 2.5rem; display: grid; }
.bb-panel { grid-area: 1 / 1; transition: opacity 120ms ease-out; }
.bb-panel[hidden] { display: block; opacity: 0; pointer-events: none; visibility: hidden; }
.bb-panel:not([hidden]) { opacity: 1; transition: opacity 220ms ease-out 120ms; }
.bb-grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .bb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .bb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bb-empty { text-align: center; color: rgba(255, 255, 255, .7); }
.bb-passes__subtitle { margin: 2.5rem 0 1rem; font-size: 1.125rem; letter-spacing: .025em; color: var(--sky); }

/* Sección del festival y carrusel */
.bb-festival__grid { display: grid; align-items: center; gap: 2.5rem; }
@media (min-width: 64rem) { .bb-festival__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.bb-festival__body { margin-top: 1rem; display: grid; gap: 1rem; font-size: 1rem; line-height: 1.625; color: rgba(255, 255, 255, .8); }
@media (min-width: 40rem) { .bb-festival__body { font-size: 1.125rem; } }
.bb-festival__body .bb-btn { justify-self: start; margin-top: .5rem; }
.bb-parallax { will-change: auto; }

.bb-carousel { position: relative; }
.bb-carousel__track {
	display: flex; aspect-ratio: 4 / 5; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	border-radius: var(--radius-card); box-shadow: var(--shadow-card); scrollbar-width: none;
}
.bb-carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 40rem) { .bb-carousel__track { aspect-ratio: 4 / 3; } }
.bb-carousel__slide { position: relative; width: 100%; height: 100%; flex-shrink: 0; overflow: hidden; scroll-snap-align: start; }
.bb-carousel__slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bb-carousel__arrows { pointer-events: none; position: absolute; inset: 50% .75rem auto .75rem; display: flex; justify-content: space-between; transform: translateY(-50%); }
.bb-carousel__arrow { pointer-events: auto; display: flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); font-size: 1.125rem; line-height: 1; transition: transform 150ms, background-color 150ms; }
.bb-carousel__arrow:hover { background: #fff; }
.bb-carousel__arrow:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .bb-carousel__arrows { opacity: 0; transition: opacity 200ms ease-out; } .bb-carousel:hover .bb-carousel__arrows, .bb-carousel:focus-within .bb-carousel__arrows { opacity: 1; } }
.bb-dots { margin-top: 1rem; display: flex; justify-content: center; gap: .5rem; }
.bb-dot { width: .625rem; height: .625rem; border-radius: 999px; background: rgba(255, 255, 255, .4); transition: width 300ms var(--ease), background-color 300ms var(--ease); }
.bb-dot:hover { background: rgba(255, 255, 255, .7); }
.bb-dot[aria-current] { position: relative; overflow: hidden; width: 1.75rem; background: rgba(255, 255, 255, .3); }
.bb-dot[aria-current]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--primary); transform-origin: left; transform: scaleX(0); animation: bb-dot-fill var(--interval, 5s) linear forwards; }
.bb-dot.is-paused::after { animation-play-state: paused; }
.bb-dot.is-static::after { animation: none; transform: scaleX(1); }
@keyframes bb-dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Fila deslizable de complementos */
.bb-rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.bb-rail__head > div:first-child { min-width: 0; flex: 1; }
.bb-rail__intro { margin-top: .75rem; max-width: 42rem; color: rgba(255, 255, 255, .75); }
.bb-rail__arrows { display: none; flex-shrink: 0; gap: .5rem; }
@media (min-width: 40rem) { .bb-rail__arrows { display: flex; } }
.bb-rail__arrows.is-hidden, .bb-rail__progress.is-hidden { visibility: hidden; }
.bb-rail__arrow { display: flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: var(--navy); transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms; }
.bb-rail__arrow:hover { background: var(--sky); }
.bb-rail__arrow:active { transform: scale(.9); }
.bb-rail__arrow:disabled { cursor: not-allowed; background: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .4); transform: none; }
.bb-rail__track {
	--gutter: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
	margin-top: 2.5rem; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
	padding: 0 var(--gutter) 1rem; scroll-padding-inline: var(--gutter); scrollbar-width: none; outline-offset: -2px;
	--fade-start: 0px; --fade-end: 0px;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
	mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
}
@media (min-width: 40rem) { .bb-rail__track { --gutter: max(1.5rem, calc((100vw - 80rem) / 2 + 1.5rem)); } }
@media (min-width: 64rem) { .bb-rail__track { --gutter: max(2rem, calc((100vw - 80rem) / 2 + 2rem)); } }
.bb-rail__track::-webkit-scrollbar { display: none; }
.bb-rail__track[data-overflowing]:not([data-at-start]) { --fade-start: var(--gutter); }
.bb-rail__track[data-overflowing]:not([data-at-end]) { --fade-end: calc(var(--gutter) + 3rem); }
.bb-rail__progress { margin-top: 1rem; }
@media (min-width: 40rem) { .bb-rail__progress { display: none; } }
.bb-rail__bar { position: relative; height: .25rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .15); }
.bb-rail__thumb { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--primary); transition: width 200ms; }
.bb-tile { width: 78vw; max-width: 320px; flex-shrink: 0; scroll-snap-align: start; }
@media (min-width: 40rem) { .bb-tile { width: 300px; } }
.bb-tile .bb-card__media { background: linear-gradient(to bottom right, rgba(69, 49, 157, .6), var(--bg-deep)); }
.bb-tile.is-locked .bb-card__frame img { opacity: .55; filter: grayscale(1); }
.bb-lock { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: rgba(6, 27, 94, .35); }
.bb-lock span { display: flex; width: 3.5rem; height: 3.5rem; align-items: center; justify-content: center; border-radius: 999px; background: rgba(6, 27, 94, .7); color: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bb-lock svg { width: 1.5rem; height: 1.5rem; }
.bb-tile__initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 3rem; color: rgba(255, 255, 255, .15); }
.bb-tile .bb-btn { margin-top: auto; position: relative; z-index: 3; }

/* Cashless */
.bb-cashless { padding: 6rem 0; }
@media (min-width: 40rem) { .bb-cashless { padding: 8rem 0; } }
.bb-cashless__glow { position: absolute; inset: -40% 0; z-index: -1; pointer-events: none; background: radial-gradient(closest-side at 35% 50%, rgba(255, 74, 132, .18), rgba(255, 74, 132, 0) 70%); }
.bb-cashless__grid { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .bb-cashless__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 4rem; } .bb-cashless__main { grid-column: span 6; } .bb-cashless__refund { grid-column: 8 / span 5; } }
.bb-cashless__body { margin-top: 1.5rem; max-width: 34rem; display: grid; gap: 1rem; font-size: 1rem; line-height: 1.625; color: rgba(255, 255, 255, .85); }
@media (min-width: 40rem) { .bb-cashless__body { font-size: 1.125rem; } }
.bb-cashless__refund { border-top: 1px solid rgba(255, 255, 255, .2); border-bottom: 1px solid rgba(255, 255, 255, .2); padding: 2rem 0; }
.bb-cashless__lead { font-weight: 900; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.25; text-transform: uppercase; letter-spacing: -.025em; }
.bb-cashless__lead a, .bb-cashless__lead span { color: var(--primary); }
.bb-cashless__lead a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bb-cashless__deadline { margin-top: 1.25rem; line-height: 1.625; color: rgba(255, 255, 255, .85); }
.bb-cashless__warn { margin-top: .75rem; font-weight: 700; }

/* Lineup */
.bb-lineup .bb-h2 { text-align: center; }
.bb-lineup__poster { margin: 2.5rem auto 0; max-width: 45rem; border-radius: 1rem; overflow: hidden; background: var(--bg-deep); }
.bb-lineup__poster img { display: block; width: 100%; height: auto; }
.bb-artists { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.bb-artists--featured > li { flex: 0 1 22rem; max-width: 100%; }
.bb-artists--featured + .bb-artists--rest { margin-top: 1.25rem; }
.bb-artists--rest { gap: .75rem; }
.bb-artists--rest > li { flex: 0 1 calc(50% - .375rem); }
@media (min-width: 40rem) { .bb-artists--rest > li { flex-basis: 11rem; } }
@media (min-width: 64rem) { .bb-artists--rest > li { flex-basis: 12rem; } }
.bb-artists > li > .bb-card { height: 100%; }
.bb-artists--featured .bb-card__title { font-size: 1.5rem; line-height: 1.2; text-transform: uppercase; }
.bb-artist--small .bb-card__media { aspect-ratio: 1; }
.bb-artist--small .bb-card__body { gap: .25rem; padding: .875rem; text-align: center; }
.bb-artist--small .bb-card__title { font-size: .9375rem; line-height: 1.3; text-transform: uppercase; }
.bb-artist--small .bb-artist__links { justify-content: center; }
.bb-card__media.is-empty { display: grid; place-items: center; background: linear-gradient(160deg, rgba(255, 74, 132, .35), var(--bg-deep) 70%); }
.bb-artist__initial { font-weight: 900; font-size: clamp(2.5rem, 8vw, 4rem); letter-spacing: -.04em; color: rgba(255, 255, 255, .85); }
.bb-artist__links { display: flex; gap: .75rem; font-size: .875rem; color: rgba(255, 255, 255, .75); }
.bb-artist__links a:hover { color: #fff; text-decoration: underline; }
.bb-poster { margin: 1.75rem auto 0; max-width: 56rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.75rem); line-height: 1.1; text-transform: uppercase; text-align: center; }
.bb-poster li { display: inline-flex; align-items: center; gap: 1rem; }
.bb-poster li:not(:last-child)::after { content: ""; width: .25em; height: .25em; border-radius: 50%; background: var(--primary); }
/* visibility (no display): el separador conserva su caja y marcar el fin de línea nunca cambia los anchos. */
.bb-poster li.is-line-end::after { visibility: hidden; }
.bb-poster a:hover { color: var(--primary); }
.bb-lineup__note { margin-top: 2rem; text-align: center; color: rgba(255, 255, 255, .75); }

/* Preguntas frecuentes */
.bb-faq__title { text-align: center; }
.bb-faq__groups { margin-top: 3rem; display: grid; gap: 3rem; }
.bb-faq__cat { margin-bottom: 1rem; font-size: 1.125rem; line-height: 1.75rem; letter-spacing: .025em; color: var(--sky); }
.bb-faq__list { display: grid; gap: .75rem; }
.bb-acc { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); transition: border-color 200ms; }
.bb-acc[data-open] { border-color: rgba(255, 74, 132, .6); }
.bb-acc summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 700; }
.bb-acc summary::-webkit-details-marker { display: none; }
.bb-acc__icon { display: flex; width: 1.75rem; height: 1.75rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 1.125rem; transition: transform 250ms var(--ease); }
.bb-acc[data-open] .bb-acc__icon { transform: rotate(45deg); }
.bb-acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 250ms var(--ease); }
.bb-acc[data-open] .bb-acc__body { grid-template-rows: 1fr; }
.no-js .bb-acc[open] .bb-acc__body { grid-template-rows: 1fr; }
.bb-acc__body > div { overflow: hidden; }
.bb-acc__inner { padding: 0 1.25rem 1.25rem; font-size: .875rem; line-height: 1.625; color: rgba(255, 255, 255, .8); }
.bb-acc__inner p { margin-bottom: .75rem; }
.bb-acc__inner p:last-child { margin-bottom: 0; }
.bb-acc__inner ul { margin-bottom: .75rem; padding-left: 1.25rem; list-style: disc; }
.bb-acc__inner a { font-weight: 700; color: var(--primary); }
.bb-acc__inner a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Bloque de texto y llamado a la acción (landings) */
.bb-text__grid { display: grid; align-items: center; gap: 2.5rem; }
@media (min-width: 64rem) { .bb-text--media .bb-text__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.bb-text--center .bb-text__copy { margin-inline: auto; max-width: 48rem; text-align: center; }
.bb-text--center .bb-text__copy .bb-btn { margin-inline: auto; }
.bb-eyebrow { margin-bottom: .75rem; font-weight: 900; font-size: .875rem; text-transform: uppercase; letter-spacing: .2em; color: var(--sky); }
.bb-text__body { margin-top: 1rem; display: grid; gap: 1rem; line-height: 1.625; color: rgba(255, 255, 255, .8); }
@media (min-width: 40rem) { .bb-text__body { font-size: 1.125rem; } }
.bb-text__copy > .bb-btn { margin-top: 2rem; }
.bb-text__media img { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.bb-cta__box { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 3rem 1.5rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); text-align: center; box-shadow: var(--shadow-card); }
.bb-cta__text { color: rgba(255, 255, 255, .8); }

/* Cabecera de páginas interiores */
.bb-page-header { padding: 3.5rem 0 0; }
@media (min-width: 40rem) { .bb-page-header { padding-top: 5rem; } }
.bb-page-header h1 { font-weight: 900; font-size: 2.25rem; line-height: 2.5rem; text-transform: uppercase; letter-spacing: .025em; }
@media (min-width: 40rem) { .bb-page-header h1 { font-size: 3rem; line-height: 1; } }
.bb-page-header__intro { margin-top: 1rem; color: rgba(255, 255, 255, .8); }

/* Navegación entre páginas legales */
.bb-legal-nav { border-bottom: 1px solid var(--line); }
.bb-legal-nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 1rem 0; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .6); }
.bb-legal-nav a:hover, .bb-legal-nav a[aria-current] { color: #fff; }

/* --------------------------------------------------------------------------
   Contenido libre: páginas legales y de texto (estilo .legal-prose de la landing)
   ------------------------------------------------------------------------ */

.bb-main > .wp-block-post-content { margin: 0; }
.bb-main .wp-block-post-content > :where(:not(.alignfull):not(.bb-section):not(.bb-hero):not(.bb-page-header):not(.bb-legal-nav):not(.bb-jobs)) {
	width: min(48rem, 100% - 2rem); margin-inline: auto;
}
@media (min-width: 40rem) { .bb-main .wp-block-post-content > :where(:not(.alignfull):not(.bb-section):not(.bb-hero):not(.bb-page-header):not(.bb-legal-nav):not(.bb-jobs)) { width: min(48rem, 100% - 3rem); } }
.bb-main .wp-block-post-content > .bb-legal-nav + *, .bb-main .wp-block-post-content > h1:first-child { margin-top: 3.5rem; }
@media (min-width: 40rem) { .bb-main .wp-block-post-content > .bb-legal-nav + *, .bb-main .wp-block-post-content > h1:first-child { margin-top: 5rem; } }
.bb-main .wp-block-post-content > :last-child:not(.bb-section):not(.bb-hero) { margin-bottom: 3.5rem; }
@media (min-width: 40rem) { .bb-main .wp-block-post-content > :last-child:not(.bb-section):not(.bb-hero) { margin-bottom: 5rem; } }

.wp-block-post-content > h1 { font-weight: 900; font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); text-transform: uppercase; letter-spacing: .02em; }
.wp-block-post-content > h2 { margin-top: 2.25em; font-weight: 900; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.375rem); color: var(--sky); }
.wp-block-post-content > h1 + h2, .wp-block-post-content > h2:first-of-type { margin-top: 1.5em; }
.wp-block-post-content > h3 { margin-top: 1.75em; font-weight: 700; font-size: 1.0625rem; }
.wp-block-post-content > p { margin-top: 1.1em; line-height: 1.7; color: rgba(255, 255, 255, .85); }
.wp-block-post-content > ul, .wp-block-post-content > ol { margin-top: 1.1em; padding-left: 1.25em; color: rgba(255, 255, 255, .85); }
.wp-block-post-content > ul { list-style: disc; }
.wp-block-post-content > ol { list-style: decimal; }
.wp-block-post-content > ul li, .wp-block-post-content > ol li { margin-top: .5em; line-height: 1.6; }
.wp-block-post-content > :where(p, ul, ol, table, figure) a, .wp-block-post-content .wp-block-table a { color: var(--sky); text-decoration: underline; text-underline-offset: 2px; }
.wp-block-post-content > :where(p, ul, ol) a:hover { color: #fff; }
.wp-block-post-content strong { color: #fff; font-weight: 700; }
.wp-block-post-content :is(h1, h2, h3) strong { color: inherit; font-weight: inherit; }
.wp-block-post-content em { font-style: italic; }
.wp-block-post-content table { width: 100%; margin-top: 1.1em; border-collapse: collapse; font-size: .9375rem; color: rgba(255, 255, 255, .85); }
.wp-block-post-content th, .wp-block-post-content td { padding: .5em .75em; border: 1px solid rgba(255, 255, 255, .2); text-align: left; vertical-align: top; }
.wp-block-post-content > figure, .wp-block-post-content > .wp-block-table { margin-top: 1.5em; overflow-x: auto; }
.wp-block-post-content .wp-block-image img { border-radius: var(--radius-card); }
.wp-block-post-content .wp-block-buttons { margin-top: 1.5em; display: flex; flex-wrap: wrap; gap: .75rem; }
.wp-block-button__link { display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.5rem; border-radius: 999px; background: var(--primary); color: var(--on-primary) !important; text-decoration: none !important; font-weight: 900; font-size: .875rem; text-transform: uppercase; letter-spacing: .025em; }
.wp-block-separator { margin-top: 2em; border: 0; border-top: 1px solid var(--line); }
.wp-block-quote { margin-top: 1.5em; padding-left: 1.25rem; border-left: 3px solid var(--primary); }
.wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-card); }

/* --------------------------------------------------------------------------
   Formulario de empleo
   ------------------------------------------------------------------------ */

.bb-jobs { width: min(48rem, 100% - 2rem); margin: 2.5rem auto 0; }
@media (min-width: 40rem) { .bb-jobs { width: min(48rem, 100% - 3rem); } }
.bb-form { display: grid; gap: 1.5rem; }
.bb-form label.bb-form__label { display: block; font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .8); }
.bb-form__control {
	margin-top: .5rem; display: block; width: 100%; border: 1px solid rgba(255, 255, 255, .25); border-radius: .75rem;
	background: rgba(6, 27, 94, .6); padding: .75rem 1rem; font: inherit; font-size: 1rem; color: #fff;
}
.bb-form__control::placeholder { color: rgba(255, 255, 255, .4); }
.bb-form__control:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.bb-form__control[aria-invalid="true"] { border-color: var(--primary); }
select.bb-form__control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; padding-right: 2.75rem; }
select.bb-form__control option { color: var(--on-primary); }
textarea.bb-form__control { resize: vertical; }
.bb-form__error { margin-top: .5rem; font-weight: 700; font-size: .875rem; color: var(--primary); }
.bb-form__alert { border: 1px solid var(--primary); border-radius: 1rem; padding: 1rem; font-weight: 700; color: var(--primary); }
.bb-form__success { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); padding: 1.5rem; font-weight: 700; font-size: 1.125rem; }
.bb-form__clause { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); padding: 1.25rem; }
@media (min-width: 40rem) { .bb-form__clause { padding: 1.5rem; } }
.bb-form__clause h2 { font-weight: 900; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; }
.bb-form__clause div { margin-top: .75rem; display: grid; gap: .75rem; font-size: .875rem; line-height: 1.625; color: rgba(255, 255, 255, .8); }
.bb-form__clause a { text-decoration: underline; text-underline-offset: 2px; }
.bb-form__consent { display: flex; align-items: flex-start; gap: .75rem; }
.bb-form__consent input { margin-top: .25rem; width: 1.25rem; height: 1.25rem; flex-shrink: 0; accent-color: var(--primary); }
.bb-form__consent label { font-size: .875rem; line-height: 1.625; }
.bb-form__trap { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }
.bb-form .bb-btn { width: 100%; }
@media (min-width: 40rem) { .bb-form .bb-btn { width: auto; justify-self: start; } }

/* --------------------------------------------------------------------------
   Próximamente y 404
   ------------------------------------------------------------------------ */

.bb-soon__label { margin-top: 2rem; font-weight: 900; font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.bb-soon__text { margin-top: 1rem; max-width: 36rem; color: rgba(255, 255, 255, .85); }
.bb-soon__social { margin-top: 2.5rem; display: flex; gap: .5rem; justify-content: center; }
.bb-404 { display: flex; flex: 1; align-items: center; padding: 5rem 0; min-height: 80vh; }
.bb-404 .bb-container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bb-404__logo { display: block; width: 100%; max-width: 240px; }
@media (min-width: 40rem) { .bb-404__logo { max-width: 320px; } }
.bb-404__logo img { width: 100%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.bb-404__code { margin-top: 2.5rem; font-weight: 900; font-size: clamp(5rem, 22vw, 11rem); line-height: 1; letter-spacing: -.025em; color: var(--primary); font-variant-numeric: tabular-nums; }
.bb-404__nav { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* --------------------------------------------------------------------------
   Pie
   ------------------------------------------------------------------------ */

.bb-footer { display: flex; flex-direction: column; }
.bb-footer--finale { min-height: 100svh; }
.bb-finale { position: relative; isolation: isolate; display: flex; flex: 1; align-items: center; overflow: hidden; padding: min(4rem, 8svh) 0; }
.bb-finale__media { position: absolute; inset: 0; z-index: -3; transform-origin: center bottom; }
.bb-finale__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bb-finale__shade { position: absolute; inset: 0; z-index: -2; background: rgba(29, 37, 78, .6); }
.bb-finale__fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--bg-deep), rgba(6, 27, 94, .2), var(--bg-deep)); }
.bb-finale__land { position: absolute; inset: auto 0 0 0; z-index: -1; height: 50%; background: linear-gradient(to top, var(--bg-deep), rgba(6, 27, 94, .7), transparent); }
.bb-finale__content { margin-inline: auto; display: flex; width: 100%; max-width: 56rem; flex-direction: column; align-items: center; padding-inline: 1rem; text-align: center; }
.bb-finale__logo { width: 100%; max-width: 280px; max-height: 26svh; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
@media (min-width: 40rem) { .bb-finale__logo { max-width: 440px; } }
@media (min-width: 64rem) { .bb-finale__logo { max-width: 540px; } }
.bb-finale .bb-hero__dates { margin-top: min(2rem, 4svh); }
.bb-finale .bb-hero__loc, .bb-finale .bb-hero__cta { animation: none; }
.bb-finale .bb-hero__cta { margin-top: min(2.5rem, 5svh); }
@keyframes bb-finale-settle { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes bb-finale-rise { from { opacity: 0; transform: translateY(10vh); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
	.bb-finale { view-timeline-name: --bb-finale; }
	.bb-finale__media, .bb-finale__content { animation-timeline: --bb-finale; animation-fill-mode: both; animation-timing-function: linear; }
	.bb-finale__media { animation-name: bb-finale-settle; animation-range: entry 0% entry 100%; }
	.bb-finale__content { animation-name: bb-finale-rise; animation-range: entry 10% entry 70%; }
}

.bb-footbar { border-top: 1px solid var(--line); background: var(--bg-deep); }
.bb-footbar .bb-container { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; text-align: center; }
@media (min-width: 64rem) { .bb-footbar .bb-container { flex-direction: row; justify-content: space-between; gap: 1.5rem; padding-top: 2rem; padding-bottom: 2rem; text-align: left; } }
.bb-footbar__brand { display: flex; align-items: center; gap: .75rem; }
.bb-footbar__brand img { height: 2rem; width: auto; }
.bb-footbar__rights { font-size: .75rem; color: rgba(255, 255, 255, .6); }
.bb-footbar__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .6); }
.bb-footbar__links a, .bb-footbar__links button { transition: color 150ms; text-transform: inherit; letter-spacing: inherit; font-weight: inherit; }
.bb-footbar__links a:hover, .bb-footbar__links button:hover { color: #fff; }
.bb-social { display: flex; align-items: center; gap: .5rem; }
.bb-social a { display: flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, .1); transition: background-color 150ms, color 150ms; }
.bb-social a:hover { background: var(--primary); color: var(--on-primary); }
.bb-social svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Editor, accesibilidad y movimiento reducido
   ------------------------------------------------------------------------ */

.bb-editor-note {
	display: block; max-width: 48rem; margin: 1rem auto; padding: .75rem 1rem;
	border: 1px dashed rgba(255, 255, 255, .55); border-radius: .75rem;
	background: rgba(6, 27, 94, .85); color: #fff; font: 500 14px/1.45 system-ui, sans-serif; text-transform: none; text-align: left; letter-spacing: 0;
}
.bb-hero .bb-editor-note { position: absolute; bottom: 1rem; left: 50%; z-index: 2; width: calc(100% - 2rem); margin: 0; transform: translateX(-50%); }

[data-hidden] .bb-announce__track, [data-hidden] .bb-light, [data-hidden] .bb-kb, [data-hidden] .bb-nav__dot,
[data-hidden] .bb-cta-pulse, [data-hidden] .bb-announce::after, [data-hidden] .bb-dot::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bb-hero__logo { animation: none; }
	.bb-char { animation-name: fade-in; animation-delay: 150ms; }
	.bb-light, .bb-cta-pulse, .bb-kb, .bb-nav__dot, .bb-announce::after, .bb-finale__media, .bb-finale__content { animation: none; }
	.bb-announce__track { display: none; }
	.bb-announce__static { display: flex; }
	.bb-hero__media, .bb-hero__content { animation-name: none !important; transform: none !important; }
	.bb-hero__video { display: none; }
	.bb-parallax { transform: none !important; }
	[data-stagger] > * { transition-property: opacity; transition-delay: 0ms; }
	.js [data-stagger]:not(.is-revealed) > * { transform: none; }
	.js [data-reveal]:not(.is-revealed) { clip-path: none; }
	.bb-spot::before, .bb-spot::after { display: none; }
	.bb-dot::after { animation: none; transform: scaleX(1); }
	.bb-carousel__arrows { opacity: 1; }
	.bb-menu, .is-menu-open .bb-menu { clip-path: none; transition: opacity 150ms ease-out, visibility 0s linear 150ms; opacity: 0; }
	.is-menu-open .bb-menu { opacity: 1; transition: opacity 150ms ease-out; }
	.bb-menu__link, .bb-menu__foot { transform: none !important; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media print {
	.bb-header-part, .bb-lights, .bb-hero__media, .bb-cc, .bb-cc-dialog { display: none !important; }
	body { background: #fff; color: #000; }
}
