/* ==========================================================================
   Expo Baby Fest – Registro QR: secciones dinámicas de la web
   Paleta: marino #0D1636 · rosa #FD4C8D · naranja #FE8536 · violeta #A151F0 · amarillo #FEDB43
   ========================================================================== */

:root {
	--ebfx-marino: var(--wp--preset--color--marino, #0D1636);
	--ebfx-rosa: var(--wp--preset--color--rosa, #FD4C8D);
	--ebfx-naranja: var(--wp--preset--color--naranja, #FE8536);
	--ebfx-violeta: var(--wp--preset--color--violeta, #A151F0);
	--ebfx-amarillo: var(--wp--preset--color--amarillo, #FEDB43);
	--ebfx-borde: #ECEEF3;
}

/* Secciones sin contenido (cintillo sin logos, galería oculta, sin sedes confirmadas) */
.ebf-dyn-empty { display: none !important; }
.ebf-section:has(> .ebf-dyn-empty),
.ebf-section:has(> .wp-block-group > .ebf-dyn-empty),
.ebf-section:has(> .ebf-dyn-wrap > .ebf-dyn-empty) { display: none !important; }

/* Chips y botones generados */
.ebf-section .ebf-dyn-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ebf-section .ebf-dyn-chip { display: flex; flex-wrap: nowrap; align-items: center; }
.ebf-dyn-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.ebf-dyn-buttons.ebf-center { justify-content: center; }

/* Cuenta regresiva */
.ebf-dyn-countdown .ebf-countdown__units { display: flex; flex-wrap: nowrap; gap: 10px; }
.ebf-countdown--msg { max-width: 300px; }
.ebf-countdown--msg .ebf-countdown__msg {
	margin: 0;
	font-weight: 800;
	font-size: clamp(1.25rem, 2.2vw, 1.625rem);
	line-height: 1.15;
	color: var(--ebfx-marino);
}
.ebf-countdown--msg .ebf-countdown__msg::after {
	content: "";
	display: block;
	width: 64px;
	height: 8px;
	margin-top: 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ebfx-rosa), var(--ebfx-naranja), var(--ebfx-amarillo), var(--ebfx-violeta));
}

/* Ubicación: una sede o carrusel */
.ebf-venues { position: relative; }
.ebf-venue {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 56px);
	align-items: center;
}
.ebf-venue[hidden] { display: none; }
.ebf-venue.is-in { animation: ebfx-in .45s ease both; }
.ebf-venue__info > * { margin-top: 0; }
.ebf-venue .ebf-info-list { display: grid; gap: 18px; margin-top: 28px; }
.ebf-dyn-info-item { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 14px; }
.ebf-dyn-info-item .ebf-icon-tile .ebf-icon { margin: 0; }
.ebf-venue .ebf-dyn-buttons { margin-top: 32px; }
.ebf-venues__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ebf-venues__nav .ebf-eyebrow { margin: 0; }
.ebf-venues__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ebf-venues__tab,
.ebf-gallery__tab {
	font-family: inherit;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	color: var(--ebfx-marino);
	background: #fff;
	border: 2px solid var(--ebfx-marino);
	border-radius: 999px;
	padding: 10px 18px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, translate .2s ease;
}
.ebf-venues__tab:hover,
.ebf-gallery__tab:hover { translate: 0 -2px; }
.ebf-venues__tab.is-active,
.ebf-gallery__tab.is-active { background: var(--ebfx-marino); color: #fff; }
.ebf-venues__arrows { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.ebf-venues__arrows button {
	width: 48px; height: 48px; border-radius: 50%;
	border: 2px solid var(--ebfx-marino); background: #fff; color: var(--ebfx-marino);
	font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.ebf-venues__arrows button:hover { background: #FFF1F6; }

/* Próximas ediciones (tarjetas generadas) */
.ebf-section .ebf-dyn-editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: 16px; }
a.ebf-edition { display: block; color: inherit; text-decoration: none; }
a.ebf-edition:hover .ebf-edition__city { text-decoration: underline; text-decoration-color: var(--ebfx-marino); }

/* Cintillos de logos */
.ebf-dyn-marquee .ebf-marquee__track { display: flex; flex-wrap: nowrap; }
.ebf-dyn-marquee .ebf-marquee__group { display: flex; flex-wrap: nowrap; }
.ebf-marquee--static { -webkit-mask-image: none !important; mask-image: none !important; }
.ebf-marquee--static .ebf-marquee__track { animation: none !important; width: auto !important; justify-content: center; }
.ebf-marquee--static .ebf-marquee__group { flex-wrap: wrap; justify-content: center; padding-right: 0 !important; }

/* Contacto del footer */
.ebf-dyn-contact { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
.ebf-dyn-contact p { margin: 0; }

/* Galería */
.ebf-gallery__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.ebf-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.ebf-gallery__item { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 1; background: #F4F5F8; }
.ebf-gallery__item[hidden] { display: none; }
.ebf-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ebf-gallery__item:hover img { transform: scale(1.05); }
.ebf-gallery__tag {
	position: absolute; left: 12px; bottom: 12px;
	background: rgba(255, 255, 255, .92); color: var(--ebfx-marino);
	border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .8125rem;
}
.ebf-gallery__more {
	display: block; margin: 28px auto 0;
	font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
	background: var(--ebfx-marino); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; cursor: pointer;
}
.ebf-gallery__more[hidden] { display: none; }
.ebf-lightbox {
	position: fixed; inset: 0; z-index: 9999;
	background: rgba(13, 22, 54, .92);
	display: flex; align-items: center; justify-content: center; padding: 24px;
}
.ebf-lightbox[hidden] { display: none; }
.ebf-lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 18px; }
.ebf-lightbox button {
	position: absolute; width: 48px; height: 48px; border-radius: 50%;
	border: 0; background: #fff; color: var(--ebfx-marino); font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.ebf-lightbox__close { top: 18px; right: 18px; }
.ebf-lightbox__prev { left: 18px; top: 50%; translate: 0 -50%; }
.ebf-lightbox__next { right: 18px; top: 50%; translate: 0 -50%; }
.ebf-noscroll, .ebf-noscroll body { overflow: hidden; }

@keyframes ebfx-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 781px) {
	.ebf-venue { grid-template-columns: 1fr; }
	.ebf-venues__nav { flex-direction: column; align-items: flex-start; }
	.ebf-lightbox__prev, .ebf-lightbox__next { top: auto; bottom: 18px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ebf-venue.is-in { animation: none; }
	.ebf-gallery__item img { transition: none; }
}
.ebf-dyn-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* Dentro de la sección de registro del tema, el texto introductorio ya está a la izquierda */
.ebf-registro .ebf-wl-standalone .ebf-waitlist__intro { display: none; }
