/* Actividades — Futuro Bolivia (misma identidad que la portada y la sala) */

.fba {
	--fba-azul: #0d47a1;
	--fba-azul-2: #1565c0;
	--fba-noche: #071733;
	--fba-noche-2: #0a2350;
	--fba-dorado: #f9a825;
	--fba-dorado-2: #ffc94d;
	--fba-rojo: #e53935;
	--fba-verde: #15803d;
	--fba-tinta: #0f172a;
	--fba-texto: #334155;
	--fba-tenue: #64748b;
	--fba-borde: #e2e8f0;
	--fba-fondo: #f6f8fc;
	--fba-sombra: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 28px rgba(13, 71, 161, .09);
	--fba-sombra-2: 0 2px 6px rgba(15, 23, 42, .08), 0 22px 46px rgba(13, 71, 161, .17);
	--fba-titulos: 'Poppins', 'Inter', system-ui, sans-serif;
	--fba-cuerpo: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-family: var(--fba-cuerpo);
	color: var(--fba-texto);
	line-height: 1.6;
}

.fba *, .fba *::before, .fba *::after { box-sizing: border-box; }
.fba h1, .fba h2, .fba h3 { font-family: var(--fba-titulos); color: var(--fba-tinta); letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.fba p { margin: 0; }
.fba ol, .fba ul, .fba li { margin: 0; padding: 0; list-style: none; }
.fba li::marker { content: none; }
.fba [hidden] { display: none !important; }
.fba-sr, .fba-trampa { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* El listado ocupa el ancho útil aunque el tema use una columna angosta. */
.fba-lista, .fba-detalle {
	--fba-ancho: min(1180px, calc(100vw - 32px));
	width: var(--fba-ancho);
	max-width: none;
	margin: 0 0 4rem calc(50% - var(--fba-ancho) / 2);
}
.fba-detalle { --fba-ancho: min(960px, calc(100vw - 32px)); }

.fba-boton {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .8rem 1.35rem; border: 0; border-radius: 999px; cursor: pointer;
	background: linear-gradient(135deg, var(--fba-dorado), var(--fba-dorado-2));
	color: var(--fba-noche) !important; text-decoration: none !important;
	font: 600 .95rem/1 var(--fba-titulos); text-transform: none; letter-spacing: 0;
	box-shadow: 0 8px 20px rgba(249, 168, 37, .35);
	transition: transform .2s ease, box-shadow .2s ease;
}
.fba-boton:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(249, 168, 37, .45); }
.fba-boton:disabled { opacity: .65; cursor: progress; transform: none; }
.fba-boton--suave { background: #eaf1ff; color: var(--fba-azul) !important; box-shadow: none; }
.fba-boton--suave:hover { background: #dbe7ff; box-shadow: none; }

.fba-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--fba-azul); color: #fff !important; font: 600 .74rem/1.2 var(--fba-cuerpo); text-decoration: none !important; }
.fba-chip--claro { background: #eaf1ff; color: var(--fba-azul) !important; }
.fba-vacio { color: var(--fba-tenue); padding: 1.5rem 0; }
.fba-eyebrow { display: inline-block; font: 700 .78rem/1 var(--fba-cuerpo); letter-spacing: .16em; text-transform: uppercase; color: var(--fba-dorado); }

/* ---------- Encabezado y filtros ---------- */

.fba-hero {
	position: relative; overflow: hidden;
	margin: 1.5rem 0 1.5rem; padding: clamp(2rem, 5vw, 3.2rem);
	border-radius: 28px; color: #c9d8f5;
	background: radial-gradient(600px 300px at 90% 0%, rgba(249, 168, 37, .25), transparent 60%), radial-gradient(500px 360px at 0% 100%, rgba(66, 165, 245, .32), transparent 60%), linear-gradient(140deg, var(--fba-noche), var(--fba-azul) 75%);
	box-shadow: var(--fba-sombra-2);
}
.fba-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 80%); mask-image: linear-gradient(120deg, transparent 20%, #000 80%); pointer-events: none; }
.fba-hero > * { position: relative; }
.fba .fba-hero h1 { margin: .8rem 0 .8rem; color: #fff; font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
.fba-hero p { max-width: 62ch; font-size: 1.05rem; }

.fba-filtros { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: .7rem; margin-bottom: 1rem; padding: .8rem; border-radius: 18px; background: #fff; box-shadow: var(--fba-sombra); }
.fba-filtros input, .fba-filtros select { width: 100%; min-height: 46px; padding: .6rem .9rem; border: 1.5px solid var(--fba-borde); border-radius: 12px; background: var(--fba-fondo); font: 400 1rem var(--fba-cuerpo); color: var(--fba-tinta); }
.fba-filtros input:focus, .fba-filtros select:focus { outline: none; border-color: var(--fba-azul-2); background: #fff; box-shadow: 0 0 0 4px rgba(21, 101, 192, .12); }
.fba-total { margin: 0 0 1rem; color: var(--fba-tenue); font-size: .9rem; }
@media (max-width: 760px) { .fba-filtros { grid-template-columns: 1fr 1fr; } .fba-filtros input { grid-column: 1 / -1; } .fba-filtros .fba-boton { grid-column: 1 / -1; justify-content: center; } }

/* ---------- Tarjetas ---------- */

.fba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.fba-card__enlace { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: var(--fba-sombra); color: inherit !important; text-decoration: none !important; transition: transform .3s ease, box-shadow .3s ease; }
.fba-card__enlace:hover { transform: translateY(-5px); box-shadow: var(--fba-sombra-2); }
.fba-card__enlace:focus-visible { outline: 3px solid var(--fba-dorado); outline-offset: 2px; }
.fba-card__foto { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(140deg, var(--fba-noche-2), var(--fba-azul)); }
.fba-card__foto.is-sin-foto::after { content: 'FB'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 3rem var(--fba-titulos); color: rgba(255, 255, 255, .25); }
.fba-card__img, .fba-card__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: center / cover no-repeat; transition: transform .6s ease; }
.fba-card__enlace:hover .fba-card__img, .fba-card__enlace:hover .fba-card__fondo { transform: scale(1.05); }
.fba-card__foto .fba-chip { position: absolute; left: .8rem; top: .8rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.fba-card__fotos { position: absolute; right: .8rem; bottom: .8rem; padding: .2rem .55rem; border-radius: 999px; background: rgba(7, 23, 51, .7); color: #fff; font-size: .78rem; }
.fba-card__cuerpo { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.fba-card__meta { font: 600 .76rem var(--fba-cuerpo); letter-spacing: .04em; text-transform: uppercase; color: var(--fba-azul-2); }
.fba-card__cuerpo h3 { font-size: 1.1rem; }
.fba-card__texto { font-size: .93rem; color: var(--fba-texto); flex: 1; }
.fba-card__pie { display: flex; gap: 1rem; margin-top: .3rem; font-size: .85rem; color: var(--fba-tenue); }
.fba-mas { margin-top: 1.5rem; text-align: center; }
.fba-resumen__mas { margin-top: 1.4rem; }

/* ---------- Detalle ---------- */

.fba-detalle__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1.2rem; }
.fba-galeria { display: grid; gap: 6px; margin-bottom: 1.6rem; border-radius: 20px; overflow: hidden; position: relative; }
.fba-galeria__foto { position: relative; display: block; overflow: hidden; background: var(--fba-fondo); cursor: zoom-in; }
.fba-galeria__foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fba-galeria__foto:hover img { transform: scale(1.04); }
.fba-galeria__foto.is-oculta { display: none; }
.fba-galeria--1 { grid-template-columns: 1fr; }
.fba-galeria--1 .fba-galeria__foto { aspect-ratio: 16 / 9; }
.fba-galeria--2 { grid-template-columns: 1fr 1fr; }
.fba-galeria--2 .fba-galeria__foto { aspect-ratio: 4 / 3; }
.fba-galeria--3, .fba-galeria--4, .fba-galeria--5 { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 180px; }
.fba-galeria--3 .fba-galeria__foto:first-child, .fba-galeria--4 .fba-galeria__foto:first-child, .fba-galeria--5 .fba-galeria__foto:first-child { grid-row: span 2; }
.fba-galeria--3 { grid-template-columns: 2fr 1fr; }
.fba-galeria__mas { position: absolute; right: 0; bottom: 0; width: calc((100% - 12px) / 4); height: 180px; display: grid; place-items: center; background: rgba(7, 23, 51, .6); color: #fff; font: 700 1.6rem var(--fba-titulos); pointer-events: none; }
@media (max-width: 640px) {
	.fba-galeria--3, .fba-galeria--4, .fba-galeria--5 { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
	.fba-galeria--3 .fba-galeria__foto:first-child, .fba-galeria--4 .fba-galeria__foto:first-child, .fba-galeria--5 .fba-galeria__foto:first-child { grid-column: span 2; grid-row: span 2; }
	.fba-galeria__mas { width: calc((100% - 6px) / 2); height: 130px; }
}

.fba-video { margin: 0 0 1.6rem; border-radius: 20px; overflow: hidden; background: #071733; }
.fba-video video { display: block; width: 100%; max-height: 80vh; background: #071733; }

.fba-detalle__texto { font-size: 1.05rem; }
.fba-detalle__texto > * + * { margin-top: 1rem; }

.fba-reacciones { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 1rem; }
.fba-reaccion { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border: 1.5px solid var(--fba-borde); border-radius: 999px; background: #fff; color: var(--fba-tinta); font: 500 .92rem var(--fba-cuerpo); text-transform: none; letter-spacing: 0; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.fba-reaccion:hover { border-color: var(--fba-azul-2); }
.fba-reaccion.is-mia { border-color: var(--fba-azul); background: #eaf1ff; color: var(--fba-azul); }
.fba-reaccion.is-pulso { transform: scale(1.12); }
.fba-reaccion strong { font-variant-numeric: tabular-nums; }

.fba-compartir { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--fba-borde); }
.fba-compartir__titulo { margin-right: .3rem; font: 600 .85rem var(--fba-cuerpo); color: var(--fba-tenue); }
.fba-red { display: inline-flex; align-items: center; padding: .5rem .95rem; border: 0; border-radius: 999px; color: #fff !important; text-decoration: none !important; font: 600 .85rem var(--fba-cuerpo); text-transform: none; letter-spacing: 0; cursor: pointer; transition: filter .2s ease, transform .2s ease; }
.fba-red:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fba-red--facebook { background: #1877f2; }
.fba-red--whatsapp { background: #1fa855; }
.fba-red--x { background: #0f1419; }
.fba-red--telegram { background: #229ed9; }
.fba-red--nativo { background: linear-gradient(135deg, #25f4ee, #000 45%, #fe2c55); }
.fba-red--copiar { background: #eaf1ff; color: var(--fba-azul) !important; }
.fba-compartir__estado { flex-basis: 100%; font-size: .85rem; color: var(--fba-verde); }

.fba-comentarios { margin-top: 2rem; }
.fba-comentarios h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; margin-bottom: 1rem; }
.fba-contador { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .4rem; border-radius: 999px; background: var(--fba-azul); color: #fff; font: 700 .8rem var(--fba-cuerpo); }
.fba-form { padding: 1.2rem; border-radius: 18px; background: var(--fba-fondo); border: 1px solid var(--fba-borde); margin-bottom: 1.4rem; }
.fba-form label { display: block; margin-bottom: .3rem; font: 600 .86rem var(--fba-cuerpo); color: var(--fba-tinta); }
.fba-form input, .fba-form select, .fba-form textarea { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--fba-borde); border-radius: 12px; background: #fff; font: 400 1rem var(--fba-cuerpo); color: var(--fba-tinta); }
.fba-form input:focus, .fba-form select:focus, .fba-form textarea:focus { outline: none; border-color: var(--fba-azul-2); box-shadow: 0 0 0 4px rgba(21, 101, 192, .12); }
.fba-form > p, .fba-form__fila { margin-bottom: .8rem; }
.fba-form__fila { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; }
.fba-form__sesion { margin-bottom: .8rem; padding: .5rem .8rem; border-radius: 10px; background: #dcfce7; color: var(--fba-verde); font-weight: 600; font-size: .9rem; }
.fba-form__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.fba-form__nota { font-size: .8rem; color: var(--fba-tenue); }
.fba-estado { min-height: 1.2em; font-size: .9rem; }
.fba-estado.is-ok { color: var(--fba-verde); }
.fba-estado.is-error { color: #b91c1c; }
@media (max-width: 600px) { .fba-form__fila { grid-template-columns: 1fr; } }

.fba-hilo { display: grid; gap: .8rem; }
.fba-com { padding: 1rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid #edf1f7; }
.fba-com.is-nuevo { animation: fba-entra .6s ease both; }
@keyframes fba-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fba-com__cab { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.fba-com__cab strong { color: var(--fba-tinta); font-size: .93rem; }
.fba-com__cab time { margin-left: auto; font-size: .78rem; color: var(--fba-tenue); }
.fba-com__texto { margin: .55rem 0 0 2.75rem; overflow-wrap: anywhere; }
.fba-verificado { padding: .1rem .5rem; border-radius: 999px; background: #dcfce7; color: var(--fba-verde); font: 600 .72rem var(--fba-cuerpo); }
.fba-avatar { display: inline-grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: linear-gradient(135deg, var(--fba-azul), var(--fba-azul-2)); color: #fff; font: 700 .9rem var(--fba-titulos); }
@media (max-width: 600px) { .fba-com__texto { margin-left: 0; } }

.fba-relacionadas { margin-top: 3rem; }
.fba-relacionadas h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.fba-volver { margin-top: 2rem; }
.fba-volver a { color: var(--fba-azul-2); font-weight: 600; }

/* ---------- Lightbox (fuera de .fba: se agrega al body) ---------- */

.fba-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 3.5rem 1rem 1rem; background: rgba(4, 12, 28, .94); }
.fba-lightbox[hidden] { display: none; }
.fba-lightbox figure { margin: 0; display: grid; justify-items: center; gap: .6rem; min-width: 0; }
.fba-lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.fba-lightbox figcaption { color: #cbd5e1; font: 500 .9rem 'Inter', system-ui, sans-serif; }
.fba-lightbox button { border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font: 400 2rem/1 system-ui, sans-serif; width: 52px; height: 52px; }
.fba-lightbox button:hover { background: rgba(255, 255, 255, .22); }
.fba-lightbox__cerrar { position: absolute; top: .8rem; right: .8rem; width: 44px !important; height: 44px !important; font-size: 1.8rem !important; }
@media (max-width: 640px) { .fba-lightbox { grid-template-columns: 1fr; } .fba-lightbox__nav { display: none; } }

@media (prefers-reduced-motion: reduce) {
	.fba *, .fba-lightbox * { animation: none !important; transition: none !important; }
}
