/* Bloques de datos del consultorio (Medical Suite): solo maquetación.
 * El color y la tipografía los hereda el tema; si el tema trae las variables de
 * paleta (--wp--preset--color--borde, …) se usan, y si no, un gris neutro. */
.ms-consultorio {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1rem 1.5rem;
}
.ms-consultorio__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: min(100%, 12rem);
	max-height: 6rem;
}
.ms-consultorio__nombre {
	margin: 0 0 0.5rem;
	font-weight: 700;
}
.ms-datos,
.ms-contactos,
.ms-medicas__lista,
.ms-lugares {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ms-datos,
.ms-contactos {
	display: grid;
	gap: 0.5rem;
}
.ms-dato__etiqueta {
	display: block;
	font-size: 0.85em;
	/* Un color de la paleta (AA garantizado) en vez de opacity, que rebaja el contraste sin control. */
	color: var(--wp--preset--color--texto-suave, currentColor);
}
.ms-medicas__lista,
.ms-lugares {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
}
.ms-medica,
.ms-lugar {
	padding: 1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--borde, rgba(127, 127, 127, 0.35));
	border-radius: var(--ms-radio, 0.5rem);
	background: var(--wp--preset--color--superficie, transparent);
}
.ms-medica__nombre,
.ms-lugar__nombre {
	margin: 0;
	font-weight: 700;
}
.ms-medica__especialidad,
.ms-lugar__telefono,
.ms-lugar__mapa,
.ms-lugar__direccion {
	margin: 0.25rem 0 0;
	font-style: normal;
}
.ms-horarios__lugares,
.ms-horarios__atencion + .ms-horarios__lugares {
	margin-top: 1.5rem;
}
.ms-horarios__titulo {
	margin: 0 0 0.5rem;
	font-weight: 700;
}
.ms-horarios__texto {
	margin: 0;
}
.ms-respaldo__texto {
	margin: 0 0 0.5rem;
}
.ms-portal .wp-block-button {
	display: inline-block;
}

/* Redes sociales (0.2.5): íconos con enlace. Neutro: hereda el color del texto (currentColor).
 * Cada estilo del tema le da su forma (círculo, cuadrado redondeado…); aquí solo lo que no se puede olvidar:
 * objetivo táctil de 44 px como mínimo, foco visible y un hover que no cambia el tamaño. */
.ms-redes-bloque--centro { text-align: center; }
.ms-redes-bloque--centro .ms-redes { justify-content: center; }
.ms-redes-bloque--derecha { text-align: right; }
.ms-redes-bloque--derecha .ms-redes { justify-content: flex-end; }
.ms-redes__titulo {
	margin: 0 0 0.5rem;
	font-weight: 700;
}
.ms-redes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ms-redes__item { margin: 0; padding: 0; }
.ms-redes__enlace {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 2.75rem;
	height: 2.75rem;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ms-redes__enlace svg {
	display: block;
	width: 1.375rem;
	height: 1.375rem;
	flex: none;
}
.ms-redes__enlace:hover { background-color: rgba(127, 127, 127, 0.18); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.ms-redes__enlace:hover { background-color: color-mix(in srgb, currentColor 14%, transparent); }
}
.ms-redes__enlace:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	.ms-redes__enlace { transition: none; }
}

.ms-bloque-editor__aviso {
	margin: 0;
	padding: 1rem;
	border: 1px dashed currentColor;
	border-radius: 0.5rem;
	text-align: center;
}
