/*
 * Eurotax legado: estilos del contenido importado de la web antigua (tema CoWorker).
 * Colores y tipografía, del tema activo (var(--wp--preset--…)). Se quita con el plugin.
 */

/* Columnas: anchos y separación del tema viejo (margin-right 4%, 0 en la última). */
.eurotax-col {
	position: relative;
	float: left;
	margin-right: 4%;
	margin-bottom: 30px;
	box-sizing: border-box;
}
.eurotax-col--half { width: 48%; }
.eurotax-col--one_third { width: 30.63%; }
.eurotax-col--two_third { width: 65.33%; }
.eurotax-col--one_fourth { width: 22%; }
.eurotax-col--three_fourth { width: 74%; }
.eurotax-col--one_fifth { width: 16.8%; }
.eurotax-col--two_fifth { width: 37.6%; }
.eurotax-col--three_fifth { width: 58.4%; }
.eurotax-col--four_fifth { width: 79.2%; }
.eurotax-col.eurotax-col--last {
	margin-right: 0;
	clear: right;
}
.eurotax-col > :first-child { margin-top: 0; }
.eurotax-col img {
	max-width: 100%;
	height: auto;
}
.eurotax-clear,
.finflotar { clear: both; }

@media (max-width: 781px) {
	.eurotax-col,
	.eurotax-col.eurotax-col--last {
		float: none;
		width: 100%;
		margin-right: 0;
	}
}

/* Rejilla de miniaturas: contenedores con hijos .equipo (Inicio, Equipo, Servicios). */
:where(.entry-content, .wp-block-post-content) :has(> .equipo) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--wp--preset--spacing--30, 1rem);
}
:where(.entry-content, .wp-block-post-content) :has(> .equipo) > :not(.equipo):not(:has(img)) {
	grid-column: 1 / -1;
}
:where(.entry-content, .wp-block-post-content) :has(> .equipo) > :empty { display: none; }
.equipo {
	float: none;
	margin: 0;
}
.equipo img {
	display: block;
	max-width: 100%;
	height: auto;
}
@media (max-width: 781px) {
	:where(.entry-content, .wp-block-post-content) :has(> .equipo) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Acordeones ([accordions]/[accordion] → <details>). */
.eurotax-acordeones { margin-block: var(--wp--preset--spacing--40, 1.5rem); }
.eurotax-acordeon {
	border-bottom: 1px solid var(--wp--preset--color--accent-6, currentColor);
}
/* Borde superior en el primero de cada serie (hay [accordions] sin cierre, sin envoltorio). */
.eurotax-acordeon:first-child,
:not(.eurotax-acordeon) + .eurotax-acordeon {
	border-top: 1px solid var(--wp--preset--color--accent-6, currentColor);
}
.eurotax-acordeon > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: var(--wp--preset--spacing--20, 0.75rem) 0;
	cursor: pointer;
	list-style: none;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	font-weight: 600;
	color: var(--wp--preset--color--contrast, inherit);
}
.eurotax-acordeon > summary::-webkit-details-marker { display: none; }
.eurotax-acordeon > summary::after {
	content: "+";
	flex: none;
	font-weight: 400;
	color: var(--wp--preset--color--accent-4, inherit);
}
.eurotax-acordeon[open] > summary::after { content: "−"; }
.eurotax-acordeon > summary:hover,
.eurotax-acordeon > summary:focus-visible {
	color: var(--wp--preset--color--accent-4, inherit);
}
.eurotax-acordeon__contenido {
	padding-bottom: var(--wp--preset--spacing--30, 1rem);
}
.eurotax-acordeon__contenido::after {
	content: "";
	display: block;
	clear: both;
}

/* Botones ([button] → botón del tema activo). */
.eurotax-boton { margin-block: 1em; }

/* Sedes. */
.direccionmapa { margin: 0.25em 0; }
:where(.entry-content, .wp-block-post-content) iframe { max-width: 100%; }

/* Imágenes del editor clásico (Twenty Twenty-Five solo las alinea si son hijas directas del contenido). */
:where(.entry-content, .wp-block-post-content) img {
	max-width: 100%;
	height: auto;
}
:where(.entry-content, .wp-block-post-content) .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}
:where(.entry-content, .wp-block-post-content) .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}
:where(.entry-content, .wp-block-post-content) img.aligncenter,
:where(.entry-content, .wp-block-post-content) .wp-caption.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.wp-caption {
	max-width: 100%;
	margin-bottom: 1em;
}
.wp-caption img { display: block; }
.wp-caption-text {
	margin: 0.5em 0 0;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	color: var(--wp--preset--color--accent-4, inherit);
	text-align: center;
}
.wp-block-post-content::after {
	content: "";
	display: block;
	clear: both;
}
