/* Contacto FarBioQ: personas, dirección y mapa.
   Usa las variables de color del tema hijo (con valores de reserva). */
.fb-contact {
	--fbc-primary: var(--fb-primary, #0a5a9a);
	--fbc-primary-dark: var(--fb-primary-dark, #08487b);
	--fbc-soft: var(--fb-primary-soft, #e8f1f8);
	--fbc-ink: var(--fb-ink, #132f4a);
	--fbc-text: var(--fb-text, #2a3a4a);
	--fbc-muted: var(--fb-muted, #5a6878);
	--fbc-line: var(--fb-line, #dde5ee);
	--fbc-surface: var(--fb-surface, #ffffff);
	--fbc-head: var(--fb-font-head, inherit);
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 40px);
	align-items: start;
	width: 100%;
}

.fb-contact .fb-contact__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	font-family: var(--fbc-head);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase !important;
	color: var(--fbc-muted);
}

.fb-contact .fb-contact__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--fbc-line);
}

/* Personas */
.fb-contact .fb-contact__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0 !important; /* el tema añade sangría a las listas */
	padding: 0 !important;
	list-style: none;
}

.fb-person {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--fbc-line);
	border-radius: 14px;
	background: var(--fbc-surface);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-person:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(19, 47, 74, 0.09);
}

.fb-person__photo {
	flex: none;
}

.fb-person__photo img,
.fb-person .fb-avatar {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px var(--fbc-soft);
}

.fb-person .fb-avatar {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--fbc-soft), #d6e9f4);
	font-family: var(--fbc-head);
	font-size: 22px;
	font-weight: 500;
	color: var(--fbc-primary);
}

.fb-person__text {
	min-width: 0;
}

.fb-contact .fb-person__name {
	margin: 0 0 2px;
	padding: 0;
	border: 0;
	font-family: var(--fbc-head);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
	color: var(--fbc-ink);
}

.fb-person p {
	margin: 0;
}

.fb-person__role {
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--fbc-muted);
}

.fb-person__mail {
	margin-top: 6px !important;
	font-size: 15px;
	overflow-wrap: anywhere;
}

.fb-person__mail a {
	font-weight: 500;
	text-decoration: none;
	color: var(--fbc-primary);
}

.fb-person__mail a:hover,
.fb-person__mail a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Dónde estamos */
.fb-contact__where {
	padding: 22px;
	border: 1px solid var(--fbc-line);
	border-radius: 18px;
	background: linear-gradient(135deg, var(--fbc-soft) 0%, #ffffff 75%);
}

.fb-sede + .fb-sede {
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid var(--fbc-line);
}

.fb-contact .fb-sede__name {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	font-family: var(--fbc-head);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
	color: var(--fbc-ink);
}

.fb-contact .fb-sede__address {
	display: grid;
	gap: 2px;
	margin: 0 0 14px;
	font-style: normal;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--fbc-text);
}

.fb-contact .fb-sede__map {
	display: block;
	width: 100%;
	height: 210px;
	margin: 0 0 12px;
	border: 1px solid var(--fbc-line);
	border-radius: 12px;
	background: #eef2f6;
}

.fb-contact .fb-sede__route {
	margin: 0;
}

.fb-contact .fb-contact__phone {
	margin: 20px 0 0;
	font-weight: 500;
	color: var(--fbc-text);
}

.fb-contact .fb-contact__btn {
	display: inline-flex;
	padding: 8px 16px;
	border: 1px solid var(--fbc-primary);
	border-radius: 999px;
	background: var(--fbc-primary);
	font-family: var(--fbc-head);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none !important;
	color: #ffffff !important;
	transition: background-color 0.2s ease;
}

.fb-contact .fb-contact__btn:hover {
	border-color: var(--fbc-primary-dark);
	background: var(--fbc-primary-dark);
}

@media (max-width: 960px) {
	.fb-contact {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.fb-contact .fb-contact__list {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fb-person {
		transition: none;
	}

	.fb-person:hover {
		transform: none;
	}
}

/* Únete al grupo */
.fb-contact__join {
	margin-top: 22px;
	padding: 22px 24px;
	border: 1px solid var(--fbc-line);
	border-radius: 16px;
	background: #ffffff;
}

.fb-contact .fb-contact__join-title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-family: var(--fbc-head);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
	color: var(--fbc-ink);
}

.fb-contact__join p {
	margin: 0 0 14px;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--fbc-text);
}

.fb-contact__join .fb-contact__join-btn {
	margin: 0;
}

@media (min-width: 700px) {
	.fb-contact__join p {
		text-align: justify;
		-webkit-hyphens: auto;
		hyphens: auto;
	}
}
