/*
 Theme Name:  Asociación Victoria (Bricks Child)
 Description: Tema hijo de Bricks para asociacionvictoria.org. Aquí van los estilos y ajustes a medida.
 Author:      Asociación Victoria
 Template:    bricks
 Version:     1.0.0
 Text Domain: bricks-child
*/

/* Estilos personalizados */

/* ===== Historias: lista de videos clicable ===== */
.vs-lista > .vs-thumb { cursor: pointer; outline: none; }
.vs-lista > .vs-thumb .vs-thumb-img {
	position: absolute; inset: 0; z-index: 1;
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .35s ease, filter .35s ease;
}
.vs-lista > .vs-thumb::after {
	content: ""; position: absolute; z-index: 2; top: 50%; left: 50%;
	width: 2.6vw; height: 1.93vw; min-width: 34px; min-height: 25px;
	transform: translate(-50%, -50%);
	background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2050%2037%22%3E%3Crect%20width%3D%2250%22%20height%3D%2237%22%20rx%3D%229%22%20fill%3D%22%23FFB062%22/%3E%3Cpath%20d%3D%22M19%2010v17l15-8.5z%22%20fill%3D%22%23fff%22/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .25s ease;
	pointer-events: none;
}
.vs-lista > .vs-thumb:hover .vs-thumb-img,
.vs-lista > .vs-thumb:focus-visible .vs-thumb-img { transform: scale(1.06); filter: brightness(.85); }
.vs-lista > .vs-thumb:hover::after { transform: translate(-50%, -50%) scale(1.12); }
.vs-lista > .vs-thumb:focus-visible { box-shadow: 0 0 0 3px #FCA0C8; }
.vs-panel > .vs-video .vs-player { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; }

/* ===== Historias: descripción debajo del video principal ===== */
.vs-video .vs-desc { display: none !important; }
.vs-panel > .vs-caption {
	margin-top: calc(-3.8vw + 22px);
	color: #5A4570; font-size: clamp(14px, 0.94vw, 18px); line-height: 1.6;
	opacity: 0; transform: translateY(8px);
}
.vs-panel > .vs-caption.is-in { opacity: 1; transform: none; transition: opacity .4s ease .12s, transform .4s ease .12s; }
.vs-panel > .vs-caption p { margin: 0 0 .6em; }
.vs-panel > .vs-caption p:last-child { margin-bottom: 0; }
@media (max-width: 991px) { .vs-panel > .vs-caption { margin-top: -16px; } }

/* ===== Home: carrusel "¿Qué nos inspiró?" con altura según el texto ===== */
.vh-inspiro-slider.vh-autoheight { min-height: 0 !important; padding-bottom: calc(3.4vw + 12px); }
.vh-inspiro-slider.vh-autoheight .splide__list { align-items: flex-start; }
.vh-inspiro-slider.vh-autoheight .splide__track { transition: height .45s ease; }

/* ===== Home: biografías de miembros en ventana centrada ===== */
.vh-has-bio > .vh-bio { display: none !important; }
.vh-bio-lock, .vh-bio-lock body { overflow: hidden; }
.vh-bio-modal {
	position: fixed; inset: 0; z-index: 10000;
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.vh-bio-modal[hidden] { display: none; }
.vh-bio-modal__backdrop {
	position: absolute; inset: 0; background: rgba(45, 26, 74, .45);
	opacity: 0; transition: opacity .35s ease;
}
.vh-bio-modal.is-open .vh-bio-modal__backdrop { opacity: 1; }
.vh-bio-modal__box { position: relative; width: min(560px, 100%); }
.vh-bio-modal .vh-bio {
	position: relative !important; top: auto !important; left: auto !important; right: auto !important;
	min-width: 0 !important; width: 100% !important; max-height: calc(100vh - 32px); overflow: auto;
	visibility: visible; pointer-events: auto;
	opacity: 0; transform: translateY(10px) scale(.96) !important; transform-origin: center center !important;
	transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1.15) !important;
}
.vh-bio-modal.is-open .vh-bio { opacity: 1; transform: none !important; }
.vh-bio-modal .vh-bio-texto { opacity: 0; transform: translateY(8px); transition: opacity .4s ease .12s, transform .4s ease .12s; }
.vh-bio-modal.is-open .vh-bio-texto { opacity: 1; transform: none; }
.vh-bio-modal__close {
	position: absolute; top: 12px; right: 14px; z-index: 2;
	width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: #FCA0C8; font-size: 28px; line-height: 1; cursor: pointer;
	opacity: 0; transition: opacity .3s ease .15s;
}
.vh-bio-modal.is-open .vh-bio-modal__close { opacity: 1; }
.vh-bio-modal__close:focus-visible { outline: 2px solid #FCA0C8; outline-offset: 2px; }

/* ===== Popups de Bricks: misma animación que las biografías ===== */
.brx-popup:not(.hide) .brx-popup-content { animation: av-pop-in .45s cubic-bezier(.2,.8,.2,1.15) both; }
.brx-popup:not(.hide) .brx-popup-backdrop { animation: av-fade-in .35s ease both; }
@keyframes av-pop-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes av-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.vh-bio-modal *, .vs-caption, .brx-popup-content, .brx-popup-backdrop,
	.vh-inspiro-slider .splide__track { transition: none !important; animation: none !important; }
}

/* ===== Blog: popup de noticia solo con la X de cerrar ===== */
.vpn-boton { display: none !important; }

/* ===== Recursos: sección Alianzas ===== */
.vr-alianzas { background: linear-gradient(180deg, #FFFFFF 0%, #FBF7FB 45%, #F8F0FF 100%); overflow-x: clip; }
.vr-al-eyebrow { text-transform: uppercase; letter-spacing: 1.04px; }
.vr-al-card {
	box-shadow: 0 6px 24px rgba(45, 26, 74, .06);
	transition: transform .45s cubic-bezier(.2,.8,.2,1.15), box-shadow .35s ease;
}
.vr-al-card:hover, .vr-al-card:focus-within {
	transform: translateY(-6px);
	box-shadow: 14px 14px 0 #FCA0C8, 0 10px 30px rgba(131, 69, 186, .12);
}
.vr-al-card .vr-al-logo { max-width: 100%; }
@media (max-width: 991px) {
	.vr-alianzas { padding: 80px 20px 90px !important; }
	.vr-al-texto { max-width: 100% !important; margin-top: 14px !important; }
	.vr-al-logos { width: 100% !important; gap: 20px !important; margin-top: 36px !important; }
	.vr-al-card { width: calc(50% - 10px) !important; height: 34vw !important; padding: 18px !important; border-radius: 24px !important; }
	.vr-alianzas .vr-estrellas { width: 44px !important; height: 45px !important; top: 24px !important; left: 20px !important; }
	.vr-alianzas .vr-corazon { width: 50px !important; height: 46px !important; top: 40px !important; left: auto !important; right: 20px !important; }
}
@media (max-width: 560px) {
	.vr-al-logos { flex-direction: column !important; align-items: center !important; }
	.vr-al-card { width: 100% !important; max-width: 340px; height: 160px !important; }
}
@media (prefers-reduced-motion: reduce) { .vr-al-card { transition: none !important; } }

/* ===== Recursos: tarjetas de Alianzas más grandes en celular y decoraciones sin encimarse ===== */
@media (max-width: 991px) {
	.vr-alianzas { padding-top: 110px !important; padding-bottom: 120px !important; }
	.vr-al-logos { flex-direction: column !important; align-items: center !important; }
	.vr-al-card { width: 100% !important; max-width: 440px; height: 52vw !important; max-height: 230px; padding: 22px 28px !important; }
	.vr-alianzas .vr-estrellas { width: 46px !important; height: 47px !important; top: 34px !important; left: 22px !important; }
	.vr-alianzas .vr-corazon { width: 52px !important; height: 48px !important; top: 30px !important; left: auto !important; right: 22px !important; }
}

/* ===== Recursos: acordeón con deslizamiento ===== */
.vr-item.is-animating { overflow: hidden; }
