/**
 * Gosy FAQ — preguntas en la web.
 *
 * Las filas copian el aspecto del patrón «Preguntas frecuentes» del tema
 * (assets/css/gosy-faq.css): línea fina, pregunta en negrita y flecha. Dentro del
 * patrón (.gosy-faq) manda el CSS del tema; aquí va lo mismo para la ficha y la
 * página, que no usan esa clase.
 */

/* ---- Filas ---- */
.gfaq-list {
	color: #2f3f5c;
}
.gfaq-item {
	margin: 0;
	padding: 0;
	border-top: 1px solid #e4ebf5;
}
.gfaq-item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 12px 0;
	list-style: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #1a2538;
	cursor: pointer;
}
.gfaq-item > summary::-webkit-details-marker {
	display: none;
}
.gfaq-item > summary::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin: 0 6px 4px 0;
	border-right: 2px solid #56688a;
	border-bottom: 2px solid #56688a;
	transform: rotate(45deg);
}
.gfaq-item[open] > summary::after {
	margin-bottom: -4px;
	transform: rotate(-135deg);
}
.gfaq-item > summary:focus-visible,
.gfaq-box__head:focus-visible {
	outline: 2px solid var(--theme-palette-color-1, #f15a24);
	outline-offset: 2px;
}
.gfaq-a {
	margin: 0 0 16px;
	padding-right: 24px;
	font-size: 15px;
	line-height: 1.55;
}
.gfaq-a > :first-child {
	margin-top: 0;
}
.gfaq-a > :last-child {
	margin-bottom: 0;
}
.gfaq-a p {
	margin: 0 0 0.6em;
}
/* Enlace «Editar» (solo administradores). */
.gfaq-a .gfaq-edit {
	margin: 8px 0 0;
	text-align: right;
	font-size: 13px;
	line-height: 1.4;
}
.gfaq-a .gfaq-edit__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #56688a;
	font-weight: 600;
	text-decoration: none;
}
.gfaq-a .gfaq-edit__link:hover,
.gfaq-a .gfaq-edit__link:focus-visible {
	color: #1a2538;
	text-decoration: underline;
}

.gfaq-list a:not(.gfaq-edit__link),
.gfaq-box a:not(.gfaq-btn):not(.gfaq-edit__link),
.gfaq-page a:not(.gfaq-btn):not(.gfaq-edit__link) {
	color: var(--theme-palette-color-2, #ce400d);
	font-weight: 600;
}

/* ---- Bloque del patrón (dentro de .gosy-faq manda el tema) ---- */
.gfaq-list--block > .gfaq-more {
	margin: 16px 0 0;
	font-size: 14px;
	color: #56688a;
}

/* ---- Botón de contorno ---- */
.gfaq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1.5px solid #d3def0;
	border-radius: 999px;
	background: #fff;
	color: #1a2538 !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: border-color 0.15s ease;
}
.gfaq-btn:hover,
.gfaq-btn:focus-visible {
	border-color: #1a2538;
}
.gfaq-btn--wa {
	border-color: var(--theme-palette-color-1, #f15a24);
	background: var(--theme-palette-color-1, #f15a24);
	color: #fff !important;
}
.gfaq-btn--wa:hover,
.gfaq-btn--wa:focus-visible {
	border-color: var(--theme-palette-color-2, #ce400d);
	background: var(--theme-palette-color-2, #ce400d);
}

/* ---- Tarjeta de la ficha del evento ---- */
.gfaq-box {
	/* Mismo ancho que las tarjetas del tema: .ep-box-row sale 0,75rem por cada lado
	   (media medianera de 1,5rem; la variable heredada aquí vale 3rem, no sirve). */
	margin: 0 -0.75rem 1.5rem;
	padding: 4px 18px;
	background: #fff;
	border: 1px solid var(--ep-border-color, #d3def0);
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(26, 37, 56, 0.06), 0 10px 28px rgba(26, 37, 56, 0.07);
}
@media (min-width: 1067px) {
	.gfaq-box {
		margin-top: 1.5rem;
	}
}
.gfaq-box__head {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 68px;
	padding: 14px 0;
	list-style: none;
	cursor: pointer;
}
.gfaq-box__head::-webkit-details-marker {
	display: none;
}
.gfaq-box__titles {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-left: 12px;
	border-left: 3px solid var(--theme-palette-color-1, #f15a24);
}
.gfaq-box .gfaq-box__title {
	margin: 0;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #1a2538;
}
.gfaq-box__sub {
	font-size: 13px;
	line-height: 1.4;
	color: #5a6880;
}
.gfaq-box__arrow {
	position: relative;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: #fdebe5;
}
.gfaq-box__arrow::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 13px;
	width: 9px;
	height: 9px;
	border-right: 2.5px solid #ad360b;
	border-bottom: 2.5px solid #ad360b;
	transform: rotate(45deg);
}
.gfaq-box[open] .gfaq-box__arrow::before {
	top: 15px;
	transform: rotate(-135deg);
}
.gfaq-box__body {
	padding-bottom: 14px;
}
.gfaq-box .gfaq-item > summary {
	font-size: 15px;
}
.gfaq-box .gfaq-a {
	font-size: 14.5px;
}
.gfaq-box__foot {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid #e4ebf5;
}
.gfaq-box__foot .gfaq-btn {
	width: 100%;
	box-sizing: border-box;
	font-size: 14px;
}
.gfaq-box__help {
	margin: 0;
	text-align: center;
	font-size: 13px;
	line-height: 1.6;
	color: #5a6880;
}

/* ---- Página con todas las preguntas ---- */
.gfaq-page {
	max-width: 1120px;
	margin: 0 auto;
}
.gfaq-page [hidden] {
	display: none !important;
}
.gfaq-page__eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--theme-palette-color-2, #ce400d);
}
.gfaq-page .gfaq-page__title {
	margin: 0 0 12px;
	font-size: clamp(30px, 5vw, 44px);
	line-height: 1.15;
	color: #1a2538;
}
.gfaq-page__intro {
	margin: 0 0 16px;
	font-size: 17px;
	line-height: 1.55;
	color: #3b4a62;
}
.gfaq-search {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 760px;
	height: 54px;
	box-sizing: border-box;
	padding: 0 16px;
	border: 1.5px solid #d3def0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(26, 37, 56, 0.06);
	color: #5a6880;
}
.gfaq-search:focus-within {
	border-color: var(--theme-palette-color-1, #f15a24);
}
.gfaq-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	font-size: 16px;
	color: #1a2538;
}
.gfaq-page__layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 32px;
	margin-top: 28px;
}

/* Escritorio: cabecera centrada y separada del contenido, como el tablero 4 del
   diseño. En móvil (tablero 3) va alineada a la izquierda. */
@media (min-width: 900px) {
	.gfaq-page__hero {
		display: flex;
		flex-direction: column;
		align-items: center;
		max-width: 760px;
		margin: 0 auto;
		padding: 16px 0 40px;
		text-align: center;
	}
	.gfaq-page__hero .gfaq-page__intro {
		margin-bottom: 0;
	}
	.gfaq-page__hero .gfaq-search {
		width: 100%;
		height: 56px;
		margin-top: 12px;
	}
	.gfaq-page__hero + .gfaq-page__layout {
		margin-top: 0;
		padding-top: 40px;
		border-top: 1px solid #e4ebf5;
	}
}
.gfaq-nav {
	flex: 1 1 220px;
	max-width: 280px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
	background: #fff;
	border: 1px solid #e4ebf5;
	border-radius: 14px;
}
.gfaq-page button.gfaq-nav__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
	color: #1a2538;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}
.gfaq-page button.gfaq-nav__btn:hover {
	background: #f3f6fb;
}
.gfaq-page button.gfaq-nav__btn.is-active {
	background: #fdebe5;
	color: #ad360b;
}
.gfaq-nav__count {
	margin-left: auto;
	font-size: 13px;
	opacity: 0.75;
}
.gfaq-page__content {
	flex: 999 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 36px;
}
.gfaq-section {
	display: flex;
	flex-direction: column;
	gap: 14px;
	scroll-margin-top: 110px;
}
.gfaq-section__head {
	display: flex;
	align-items: center;
	gap: 14px;
}
.gfaq-section__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #fdebe5;
	color: #ad360b;
}
.gfaq-page .gfaq-section__title {
	flex: 1;
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	color: #1a2538;
}
.gfaq-section__count {
	font-size: 14px;
	color: #5a6880;
}
.gfaq-card {
	padding: 0 24px;
	background: #fff;
	border: 1px solid #e4ebf5;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(26, 37, 56, 0.05), 0 6px 16px rgba(26, 37, 56, 0.06);
}
.gfaq-card .gfaq-item:first-child,
.gfaq-card .gfaq-item.is-first {
	border-top: 0;
}
.gfaq-empty {
	padding: 28px 24px;
	background: #fff;
	border: 1px solid #e4ebf5;
	border-radius: 14px;
	text-align: center;
}
.gfaq-empty p {
	margin: 0;
	color: #5a6880;
}
.gfaq-empty .gfaq-empty__title {
	margin-bottom: 6px;
	font-weight: 700;
	color: #1a2538;
}
.gfaq-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	padding: 28px;
	background: #fef5f2;
	border: 1px solid #fbcebd;
	border-radius: 14px;
}
.gfaq-contact__text {
	flex: 1 1 280px;
}
.gfaq-contact__text p {
	margin: 0;
	color: #3b4a62;
}
.gfaq-page .gfaq-contact__title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
	color: #1a2538;
}
.gfaq-contact__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Móvil: categorías en una fila de botones que se queda arriba al bajar. */
@media (max-width: 899px) {
	.gfaq-page__layout {
		gap: 20px;
		margin-top: 16px;
	}
	.gfaq-nav {
		position: sticky;
		top: 0;
		z-index: 5;
		flex-basis: 100%;
		max-width: none;
		flex-direction: row;
		gap: 8px;
		margin: 0 -16px;
		padding: 10px 16px 12px;
		overflow-x: auto;
		border: 0;
		border-bottom: 1px solid #e4ebf5;
		border-radius: 0;
		scrollbar-width: none;
	}
	.gfaq-nav::-webkit-scrollbar {
		display: none;
	}
	.gfaq-page button.gfaq-nav__btn {
		flex: none;
		width: auto;
		min-height: 40px;
		white-space: nowrap;
		border: 1.5px solid #d3def0;
		border-radius: 999px;
	}
	.gfaq-page button.gfaq-nav__btn.is-active {
		border-color: #1a2538;
		background: #1a2538;
		color: #fff;
	}
	.gfaq-nav__count {
		display: none;
	}
	.gfaq-page__content {
		gap: 28px;
	}
	.gfaq-card {
		padding: 0 18px;
	}
	.gfaq-page .gfaq-section__title {
		font-size: 18px;
	}
	.gfaq-section__icon {
		width: 38px;
		height: 38px;
	}
	.gfaq-contact {
		padding: 22px 18px;
	}
	.gfaq-contact__actions,
	.gfaq-contact__actions .gfaq-btn {
		width: 100%;
	}
}
