/* UTC Socios · Modal dinámico de Experiencias (para el Loop Grid de Elementor) */

/* Botón "Ver experiencias": oculto por defecto; el JS revela solo los que tienen media. */
.utc-exp-open { display: none !important; }
.utc-exp-open.utc-exp-ready { display: block !important; }

/* Overlay + modal */
.utc-expm-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.72); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.utc-expm-overlay.active { opacity: 1; visibility: visible; }
.utc-expm-modal { position: relative; width: 100%; max-width: 900px; max-height: 90vh; overflow: auto; background: #4B4B45; color: #fff; border-radius: 18px; padding: 30px 32px 34px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: scale(.92); opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s ease; font-family: inherit; }
.utc-expm-overlay.active .utc-expm-modal { transform: scale(1); opacity: 1; }
.utc-expm-modal::-webkit-scrollbar { width: 8px; }
.utc-expm-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 8px; }

.utc-expm-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: none; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease; }
.utc-expm-close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }
.utc-expm-title { margin: 0 44px 18px 0; font-size: 24px; font-weight: 700; color: #fff; line-height: 1.2; }
.utc-expm-body { min-height: 120px; }

/* Media */
.utc-expm-single, .utc-expm-video { width: 100%; border-radius: 12px; display: block; }
.utc-expm-video { background: #000; max-height: 70vh; }

/* Galería masonry (CSS columns → soporta distintos tamaños sin librería) */
.utc-expm-galeria { column-count: 3; column-gap: 12px; }
.utc-expm-gitem { display: block; margin: 0 0 12px; break-inside: avoid; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.utc-expm-gitem img { width: 100%; display: block; transition: transform .25s ease; }
.utc-expm-gitem:hover img { transform: scale(1.05); }

/* Loading + estados */
.utc-expm-loading { display: flex; align-items: center; justify-content: center; padding: 44px 0; }
.utc-expm-spin { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.22); border-top-color: #D4A843; border-radius: 50%; animation: utc-expm-rot .8s linear infinite; }
@keyframes utc-expm-rot { to { transform: rotate(360deg); } }
.utc-expm-empty { text-align: center; padding: 30px 0; color: rgba(255,255,255,.75); font-size: 14px; }
.utc-expm-retry { margin-left: 8px; background: #D4A843; color: #1A1A1A; border: none; border-radius: 8px; padding: 6px 12px; font-weight: 600; cursor: pointer; }

/* Lightbox simple para la galería */
.utc-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.utc-lb.active { display: flex; }
.utc-lb img { max-width: 100%; max-height: 92vh; border-radius: 8px; }
.utc-lb-close { position: absolute; top: 16px; right: 22px; background: none; border: none; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; }

@media (max-width: 640px) {
	.utc-expm-modal { padding: 24px 20px 26px; border-radius: 14px; }
	.utc-expm-title { font-size: 20px; margin-right: 40px; }
	.utc-expm-galeria { column-count: 2; }
}
