/* ==========================================================================
   Components (patterns/*.php and block styles registered in functions.php)
   Reference values: docs/implementation-plan.md, "Measured reference values".
   ========================================================================== */

/* --- Icons drawn with CSS masks ------------------------------------------
   Font Awesome Free glyphs (CC BY 4.0, assets/icons/). A mask lets the
   icon take any colour through background-color. */

.ineuro-icon-mask {
	display: inline-block;
	background-color: currentColor;
	-webkit-mask: var(--ineuro-icon) no-repeat center / contain;
	mask: var(--ineuro-icon) no-repeat center / contain;
}

/* --- Heading block style: "Subrayado" ------------------------------------
   Short sage bar under the heading (35x6px). */

.is-style-ineuro-underline::after {
	content: "";
	display: block;
	width: 35px;
	height: 6px;
	margin-top: 11px;
	background-color: var(--wp--preset--color--sage);
}

.is-style-ineuro-underline.has-text-align-center::after {
	margin-right: auto;
	margin-left: auto;
}

/* Spacing per level, as in the original theme (padding-top / bar offset /
   bottom margin): h2 10/9, h3 17/11, h4 23/13, h5 28/16, h6 31/17, 23px. */
.wp-block-heading.is-style-ineuro-underline {
	margin-bottom: 23px;
}

h1.is-style-ineuro-underline::after { margin-top: 4px; }
h2.is-style-ineuro-underline { padding-top: 10px; }
h2.is-style-ineuro-underline::after { margin-top: 9px; }
h3.is-style-ineuro-underline { padding-top: 17px; }
h3.is-style-ineuro-underline::after { margin-top: 11px; }
h4.is-style-ineuro-underline { padding-top: 23px; }
h4.is-style-ineuro-underline::after { margin-top: 13px; }
h5.is-style-ineuro-underline { padding-top: 28px; }
h5.is-style-ineuro-underline::after { margin-top: 16px; }
h6.is-style-ineuro-underline { padding-top: 31px; }
h6.is-style-ineuro-underline::after { margin-top: 17px; }

/* --- Hexagon icon box (patterns/icon-boxes.php) -------------------------- */

.ineuro-icon-box.wp-block-group {
	align-items: flex-start;
	gap: 0;
	padding: 37px 20px;
}

.ineuro-icon-box__icon.wp-block-image {
	display: flex;
	flex: 0 0 64px;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 55px;
	margin: 0 14px 0 0;
	background: url("../images/hexagon.svg") no-repeat center / 64px 55px;
}

.ineuro-icon-box__icon img {
	width: 26px;
	height: 26px;
}

/* Hover, as the original's "hexagon animation" boxes: the hexagon moves down
   (20px padding above and below) and two sage bars grow out of it. Only the
   plain hexagon box has it; the circle and no-icon variants do not. */
.ineuro-icon-box:not(.ineuro-icon-box--circle, .ineuro-icon-box--no-icon) {
	transition: background-color 0.3s ease;
}

.ineuro-icon-box:not(.ineuro-icon-box--circle, .ineuro-icon-box--no-icon) .ineuro-icon-box__icon {
	position: relative;
	box-sizing: content-box;
	transition: all 0.3s ease;
}

.ineuro-icon-box:not(.ineuro-icon-box--circle, .ineuro-icon-box--no-icon) .ineuro-icon-box__icon::before,
.ineuro-icon-box:not(.ineuro-icon-box--circle, .ineuro-icon-box--no-icon) .ineuro-icon-box__icon::after {
	content: "";
	position: absolute;
	left: 29px;
	display: block;
	width: 6px;
	height: 0;
	background: var(--wp--preset--color--sage);
	transition: all 0.3s ease;
}

.ineuro-icon-box:not(.ineuro-icon-box--circle, .ineuro-icon-box--no-icon) .ineuro-icon-box__icon::before {
	top: -3px;
}

.ineuro-icon-box:not(.ineuro-icon-box--circle, .ineuro-icon-box--no-icon) .ineuro-icon-box__icon::after {
	bottom: -3px;
}

.ineuro-icon-box:not(.ineuro-icon-box--circle, .ineuro-icon-box--no-icon):hover {
	background-color: var(--wp--preset--color--base);
}

.ineuro-icon-box:not(.ineuro-icon-box--circle, .ineuro-icon-box--no-icon):hover .ineuro-icon-box__icon {
	padding: 20px 0;
}

.ineuro-icon-box:not(.ineuro-icon-box--circle, .ineuro-icon-box--no-icon):hover .ineuro-icon-box__icon::before,
.ineuro-icon-box:not(.ineuro-icon-box--circle, .ineuro-icon-box--no-icon):hover .ineuro-icon-box__icon::after {
	height: 15px;
}

@media (prefers-reduced-motion: reduce) {
	.ineuro-icon-box__icon,
	.ineuro-icon-box__icon::before,
	.ineuro-icon-box__icon::after {
		transition: none;
	}
}

.ineuro-icon-box__text > * {
	margin: 0;
}

.ineuro-icon-box__text h5,
.ineuro-icon-box__text .wp-block-heading {
	margin: 0 0 11px;
	font-size: 17px;
	line-height: 22px;
	color: var(--wp--preset--color--dark);
}

.ineuro-icon-box__text p {
	font-size: 13px;
	line-height: 18px;
}

/* --- Timeline (patterns/timeline.php) ------------------------------------
   Year | 80px gutter with a sage dot and a grey line | title and text. */

.ineuro-timeline__item.wp-block-group {
	align-items: flex-start;
	gap: 0;
	margin: 0;
}

.ineuro-timeline__year {
	flex: 0 0 48px;
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: -0.2px; /* was -0.8px for Poppins (D35) */
	color: var(--wp--preset--color--dark);
}

.ineuro-timeline__text.wp-block-group {
	position: relative;
	flex: 1;
	margin: 0 0 0 80px;
	padding-bottom: 50px;
}

.ineuro-timeline__text::before {
	content: "";
	position: absolute;
	top: 20px;
	left: -40px;
	width: 1px;
	height: calc(100% - 15px);
	background-color: #e6e6e6;
}

.ineuro-timeline__text::after {
	content: "";
	position: absolute;
	top: 8px;
	left: -44.5px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--sage);
}

.ineuro-timeline__text > * {
	margin: 0;
}

.ineuro-timeline__text .wp-block-heading {
	margin-bottom: 16px;
	font-size: 20px;
	line-height: 28px;
}

/* A second heading inside one entry (Historia 2026, D60) needs air above it. */
.ineuro-timeline__text p + .wp-block-heading {
	margin-top: 24px;
}

.ineuro-timeline__text p {
	font-size: 13px;
	line-height: 18px;
}

.ineuro-timeline__item:last-child .ineuro-timeline__text {
	padding-bottom: 0;
}

/* Below 768px the original stacks the year above the title and drops the
   dot and line. */
@media (max-width: 767px) {
	.ineuro-timeline__item.wp-block-group {
		flex-direction: column;
	}

	.ineuro-timeline__year {
		flex-basis: auto;
	}

	.ineuro-timeline__text.wp-block-group {
		margin-left: 0;
	}

	.ineuro-timeline__text::before,
	.ineuro-timeline__text::after {
		display: none;
	}
}

/* --- Navigation block style: "Menú lateral" ------------------------------ */

.wp-block-navigation.is-style-ineuro-sidebar,
.wp-block-navigation.is-style-ineuro-sidebar .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.wp-block-navigation.is-style-ineuro-sidebar .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--light);
}

.wp-block-navigation.is-style-ineuro-sidebar .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 23px 14px 18px;
	border-left: 5px solid transparent;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	color: var(--wp--preset--color--dark);
}

.wp-block-navigation.is-style-ineuro-sidebar .current-menu-item > .wp-block-navigation-item__content {
	border-left-color: var(--wp--preset--color--primary);
}

/* --- "necesita ayuda?" box (patterns/help-box.php) ----------------------- */

.ineuro-help-box.wp-block-group {
	margin-bottom: 30px;
	padding: 30px 30px 40px;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--sage);
}

.ineuro-help-box > * {
	margin: 0;
}

.ineuro-help-box__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 26px;
}

.ineuro-help-box__text {
	margin-top: 9px;
	font-size: 13px;
	line-height: 26px;
}

.ineuro-help-box .wp-block-buttons {
	margin-top: 17px;
}

/* --- Button block styles --------------------------------------------------
   "Blanco con teléfono" (help box) and "Oscuro con flecha" (CTA band). */

.wp-block-button.is-style-ineuro-phone .wp-block-button__link,
.wp-block-button.is-style-ineuro-arrow .wp-block-button__link {
	position: relative;
	border: 3px solid;
	border-radius: 3px;
	font-size: 14px;
	line-height: 23px;
}

.wp-block-button.is-style-ineuro-phone .wp-block-button__link {
	padding: 5px 18px 5px 41px;
	border-color: var(--wp--preset--color--base);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
}

/* D56: in the narrow help box at tablet widths the label used to be cut into
   "con/tac/to"; it stays whole and the button is as wide as its text needs. */
.wp-block-button.is-style-ineuro-phone .wp-block-button__link {
	white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 991px) {
	.ineuro-help-box.wp-block-group {
		padding-inline: 18px;
	}

	.wp-block-button.is-style-ineuro-phone .wp-block-button__link {
		padding: 5px 10px 5px 34px;
		font-size: 13px;
	}
}

.wp-block-button.is-style-ineuro-phone .wp-block-button__link::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 15px;
	width: 17px;
	height: 19px;
	margin-top: -9.5px;
	background-color: var(--wp--preset--color--dark);
	-webkit-mask: url("../icons/square-phone.svg") no-repeat center / contain;
	mask: url("../icons/square-phone.svg") no-repeat center / contain;
}

@media (min-width: 768px) and (max-width: 991px) {
	.wp-block-button.is-style-ineuro-phone .wp-block-button__link::before {
		left: 10px;
	}
}

.wp-block-button.is-style-ineuro-arrow .wp-block-button__link {
	padding: 8px 37px 8px 21px;
	border-color: var(--wp--preset--color--dark);
	font-weight: 700;
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--dark);
}

.wp-block-button.is-style-ineuro-arrow .wp-block-button__link::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 15px;
	width: 9px;
	height: 14px;
	margin-top: -7px;
	background-color: var(--wp--preset--color--sage);
	-webkit-mask: url("../icons/angle-right.svg") no-repeat center / contain;
	mask: url("../icons/angle-right.svg") no-repeat center / contain;
}

/* --- Testimonial (patterns/testimonial.php) ------------------------------ */

.ineuro-testimonial__quote.wp-block-group {
	position: relative;
	margin: 0 0 20px;
	padding: 21px 28px 32px;
	border: 3px solid var(--wp--preset--color--light);
}

.ineuro-testimonial__quote p {
	margin: 0;
	font-size: 14px;
	line-height: 26px;
}

/* Large sage quote mark, bottom right. */
.ineuro-testimonial__quote::after {
	content: "";
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 58px;
	height: 40px;
	background-color: var(--wp--preset--color--sage);
	-webkit-mask: url("../icons/quote-left.svg") no-repeat right bottom / contain;
	mask: url("../icons/quote-left.svg") no-repeat right bottom / contain;
}

/* Speech-bubble tail, bottom left. */
.ineuro-testimonial__quote::before {
	content: "";
	position: absolute;
	bottom: -14px;
	left: 62px;
	width: 22px;
	height: 22px;
	border-right: 3px solid var(--wp--preset--color--light);
	border-bottom: 3px solid var(--wp--preset--color--light);
	background-color: var(--wp--preset--color--base);
	transform: rotate(45deg);
}

.ineuro-testimonial__info.wp-block-group {
	align-items: center;
	gap: 15px;
	margin: 0;
}

.ineuro-testimonial__info img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
}

.ineuro-testimonial__info .wp-block-group > * {
	margin: 0;
	font-size: 13px;
	line-height: 20px;
}

.ineuro-testimonial__name {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.ineuro-testimonial__company {
	font-style: italic;
	color: #808080;
}

/* --- CTA band (patterns/cta-band.php) ------------------------------------ */

/* Vertical margins only: core stretches alignfull blocks with negative
   horizontal margins. */
.ineuro-cta-band.wp-block-group {
	margin-block: 0;
	padding: 17px 15px 15px;
	background-color: var(--wp--preset--color--deep);
}

/* min-height keeps the band's height when it has no button (D7). */
.ineuro-cta-band__inner.wp-block-group {
	align-items: center;
	gap: 30px;
	min-height: 45px;
}

.ineuro-cta-band__inner .wp-block-heading {
	margin: 0;
	font-size: 20px;
	line-height: 24px;
	color: var(--wp--preset--color--base);
}

/* The band is dark, so its button is white (the default arrow button is dark). */
.ineuro-cta-band .wp-block-button.is-style-ineuro-arrow .wp-block-button__link {
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--deep);
	background-color: var(--wp--preset--color--base);
}

.ineuro-cta-band__inner .wp-block-buttons {
	flex-shrink: 0;
	margin: 0;
}

/* Below 768px: sentence centred on top, button centred underneath. */
@media (max-width: 767px) {
	.ineuro-cta-band.wp-block-group {
		padding-top: 50px;
		padding-bottom: 50px;
	}

	.ineuro-cta-band__inner.wp-block-group {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.ineuro-cta-band__inner .wp-block-heading {
		text-align: center;
	}

	.ineuro-cta-band__inner .wp-block-buttons {
		justify-content: center;
	}
}

/* --- Quote (callout): grey box with a sage left border ------------------- */

.wp-block-quote,
.wp-block-quote.is-layout-flow {
	margin-right: 0;
	margin-left: 0;
	padding: 21px 30px 18px;
	border: 0;
	border-left: 5px solid var(--wp--preset--color--sage);
	font-size: 16px;
	font-style: normal;
	line-height: 26px;
	color: #212121;
	background-color: var(--wp--preset--color--light);
}

.wp-block-quote p {
	margin: 0;
	font-size: 14px;
	line-height: 26px;
	color: var(--wp--preset--color--contrast);
}

/* --- Accordion block style: "Paneles" (Escuela NEF) ---------------------- */

.wp-block-accordion.is-style-ineuro-panels {
	gap: 0;
}

.is-style-ineuro-panels .wp-block-accordion-item {
	gap: 0;
	margin: 0;
	border: 0;
}

.is-style-ineuro-panels .wp-block-accordion-item > * {
	margin-block: 0;
}

.is-style-ineuro-panels .wp-block-accordion-heading {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
}

.is-style-ineuro-panels .wp-block-accordion-heading__toggle {
	width: 100%;
	padding: 15px 30px;
	border: 0;
	font: inherit;
	text-align: left;
	color: var(--wp--preset--color--dark);
	background-color: #cacaca;
	cursor: pointer;
}

.is-style-ineuro-panels .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle {
	background-color: var(--wp--preset--color--light);
}

/* A 1px line separates two closed headings, as on the original (none below
   an open panel). */
.is-style-ineuro-panels .wp-block-accordion-item:not(.is-open) + .wp-block-accordion-item > .wp-block-accordion-heading {
	border-top: 1px solid #b6b6b6;
}

.is-style-ineuro-panels .wp-block-accordion-panel {
	padding: 3px 30px 18px;
	background-color: var(--wp--preset--color--light);
}

/* Open/close animation, as the original (height and padding over 0.2s, and
   the heading background). Core hides closed panels with display: none, so
   (hidden="until-found", i.e. content-visibility: hidden), so this needs
   interpolate-size, @starting-style and discrete transitions: browsers without them
   (Firefox, Safari today) open the panel at once. Enabled after load only
   (.ineuro-motion, set in functions.php), so open panels do not animate in. */
@media (prefers-reduced-motion: no-preference) {
	.ineuro-motion .is-style-ineuro-panels .wp-block-accordion-heading__toggle {
		transition: background-color 0.2s ease-in-out;
	}

	.ineuro-motion .is-style-ineuro-panels .wp-block-accordion-panel {
		overflow: hidden;
		interpolate-size: allow-keywords;
		transition:
			height 0.2s ease-in-out,
			padding 0.2s ease-in-out,
			display 0.2s allow-discrete,
			content-visibility 0.2s allow-discrete;
	}

	.ineuro-motion .is-style-ineuro-panels .wp-block-accordion-panel[hidden] {
		height: 0;
	}

	@starting-style {
		.ineuro-motion .is-style-ineuro-panels .wp-block-accordion-panel:not([hidden]) {
			height: 0;
			padding-block: 0;
		}
	}
}

.is-style-ineuro-panels .wp-block-accordion-panel > :last-child {
	margin-bottom: 0;
}

.is-style-ineuro-panels .wp-block-accordion-panel p {
	margin: 0 0 15px;
	font-size: 14px;
	line-height: 22px;
	color: var(--wp--preset--color--contrast);
}

/* --- Accordion block style: "Desplegables con +" (Atención Clínica) -------
   Circled plus on the left, sage bar under each title. */

.wp-block-accordion.is-style-ineuro-toggles {
	gap: 0;
}

.is-style-ineuro-toggles .wp-block-accordion-item {
	margin: 0 0 22px;
	border: 0;
}

.is-style-ineuro-toggles .wp-block-accordion-heading {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
}

.is-style-ineuro-toggles .wp-block-accordion-heading__toggle {
	position: relative;
	display: block;
	width: 100%;
	padding: 0 0 0 42px;
	border: 0;
	font: inherit;
	text-align: left;
	color: var(--wp--preset--color--contrast);
	background: none;
	cursor: pointer;
}

.is-style-ineuro-toggles .wp-block-accordion-heading__toggle-title::after {
	content: "";
	display: block;
	width: 35px;
	height: 6px;
	margin-top: 13px;
	background-color: var(--wp--preset--color--sage);
}

/* Replace core's "+" text with a 28px circle and drawn plus/minus. */
.is-style-ineuro-toggles .wp-block-accordion-heading__toggle-icon {
	position: absolute;
	top: 0;
	left: 0;
	width: 28px;
	height: 28px;
	margin: 0;
	border: 2px solid #2a2a2a;
	border-radius: 50%;
	font-size: 0;
	transform: none;
}

.is-style-ineuro-toggles .wp-block-accordion-heading__toggle-icon::before,
.is-style-ineuro-toggles .wp-block-accordion-heading__toggle-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background-color: #2a2a2a;
	transform: translate(-50%, -50%);
}

.is-style-ineuro-toggles .wp-block-accordion-heading__toggle-icon::before {
	width: 14px;
	height: 2px;
}

.is-style-ineuro-toggles .wp-block-accordion-heading__toggle-icon::after {
	width: 2px;
	height: 14px;
}

.is-style-ineuro-toggles .is-open .wp-block-accordion-heading__toggle-icon::after {
	display: none;
}

.is-style-ineuro-toggles .wp-block-accordion-panel {
	margin: 0;
	padding: 0 0 0 42px;
}

.is-style-ineuro-toggles .is-open > .wp-block-accordion-panel {
	margin-top: 14px;
}

/* --- Tabs (Centros oficiales) --------------------------------------------- */

.wp-block-tabs .wp-block-tab-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 0 0 0 1px;
	background-color: var(--wp--preset--color--sage);
}

.wp-block-tabs .wp-block-tab-list [role="tab"] {
	margin: 0;
	padding: 15px 30px;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 26px;
	letter-spacing: -0.56px;
	color: var(--wp--preset--color--dark);
	background-color: var(--wp--preset--color--sage);
	cursor: pointer;
}

.wp-block-tabs .wp-block-tab-list [role="tab"][aria-selected="true"] {
	color: var(--wp--preset--color--sage);
	background-color: var(--wp--preset--color--dark);
}

.wp-block-tabs .wp-block-tab-panel {
	padding: 30px 0;
	border: 0;
}

/* Below 768px the original turns the tabs into accordion headings (light
   grey, 44px). Core tabs cannot interleave headings and panels, so the
   buttons are stacked full width above the active panel instead (D16). */
@media (max-width: 767px) {
	.wp-block-tabs .wp-block-tab-list {
		flex-direction: column;
		padding: 0;
		background: none;
	}

	.wp-block-tabs .wp-block-tab-list [role="tab"],
	.wp-block-tabs .wp-block-tab-list [role="tab"][aria-selected="true"] {
		width: 100%;
		padding: 14px 20px;
		border: 1px solid #f0f0f0;
		font-size: 14px;
		font-weight: 500;
		line-height: 14px;
		letter-spacing: normal;
		text-align: left;
		color: #666;
		background-color: #f8f8f8;
	}

	.wp-block-tabs .wp-block-tab-list [role="tab"] + [role="tab"] {
		margin-top: -1px;
	}

	.wp-block-tabs .wp-block-tab-list [role="tab"][aria-selected="true"] {
		color: var(--wp--preset--color--dark);
	}

	.wp-block-tabs .wp-block-tab-panel {
		padding: 20px 0;
	}
}

/* --- Contact card (patterns/contact-card.php) ---------------------------- */

.ineuro-contact-card.wp-block-group {
	padding: 46px 50px 26px;
	letter-spacing: -0.4px;
	background-color: var(--wp--preset--color--light);
}

.ineuro-contact-card > * {
	margin: 0;
}

.ineuro-contact-card .wp-block-heading {
	margin-bottom: 23px;
	font-size: 20px;
	line-height: 28px;
	letter-spacing: normal;
}

.wp-block-list.is-style-ineuro-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-list.is-style-ineuro-contact li {
	position: relative;
	margin: 0 0 13px;
	padding: 1px 0 0 28px;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	color: var(--wp--preset--color--contrast);
}

.wp-block-list.is-style-ineuro-contact li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 16px;
	height: 18px;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: var(--ineuro-icon, none) no-repeat left center / contain;
	mask: var(--ineuro-icon, none) no-repeat left center / contain;
}

.wp-block-list.is-style-ineuro-contact li.is-icon-pin { --ineuro-icon: url("../icons/location-dot.svg"); }
.wp-block-list.is-style-ineuro-contact li.is-icon-phone { --ineuro-icon: url("../icons/phone.svg"); }
.wp-block-list.is-style-ineuro-contact li.is-icon-mail { --ineuro-icon: url("../icons/envelope.svg"); }
.wp-block-list.is-style-ineuro-contact li.is-icon-clock { --ineuro-icon: url("../icons/clock.svg"); }

.ineuro-contact-card .wp-block-social-links {
	gap: 8px;
	margin-top: 25px;
	margin-bottom: 33px;
}

/* Social links block style: "Gris" (contact card). */
.wp-block-social-links.is-style-ineuro-grey .wp-social-link {
	width: 32px;
	height: 32px;
	border-radius: 32px;
	color: var(--wp--preset--color--base);
	background-color: #bfbfbf;
}

.wp-block-social-links.is-style-ineuro-grey .wp-social-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
}

.wp-block-social-links.is-style-ineuro-grey .wp-social-link svg {
	width: 17px;
	height: 17px;
}

.wp-block-social-links.is-style-ineuro-grey .wp-social-link,
.wp-block-social-links.is-style-ineuro-grey .wp-social-link:hover {
	transform: none;
}

/* --- Info box (patterns/info-box.php) ------------------------------------ */

.ineuro-info-box.wp-block-group {
	padding: 37px 30px 20px;
	background-color: #ededed;
}

/* On Centros the box is 15px wider than the sidebar on each side. */
.ineuro-page-columns__sidebar .ineuro-info-box.wp-block-group {
	margin-right: -15px;
	margin-left: -15px;
	margin-bottom: 30px;
}

.ineuro-info-box > * {
	margin: 0;
}

.ineuro-info-box .wp-block-heading {
	margin-bottom: 15px;
	font-size: 17px;
	line-height: 22px;
	color: var(--wp--preset--color--dark);
}

.ineuro-info-box > p,
.ineuro-info-box > p:last-child {
	margin-bottom: 15px;
	font-size: 13px;
	line-height: 18px;
}

/* --- Author box (patterns/author-box.php) -------------------------------- */

.ineuro-author.wp-block-group {
	align-items: center;
	gap: 20px;
}

.ineuro-author img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.ineuro-author .wp-block-group > * {
	margin: 0;
	color: var(--wp--preset--color--dark);
}

.ineuro-author .wp-block-group > .ineuro-author__name {
	margin-bottom: 4px;
	font-size: 18px;
	line-height: 26px;
	letter-spacing: -0.4px;
}

.ineuro-author__role {
	font-size: 14px;
	font-style: italic;
	line-height: 26px;
}

/* --- Headings (D35) -------------------------------------------------------
   Headings use Quicksand 700 (theme.json). Quicksand has no heavier weight, so
   the same thin stroke as the hero adds a little body. */
:is(h1, h2, h3, h4, h5, h6) {
	-webkit-text-stroke: 0.02em currentColor;
}

/* Title-like texts that are paragraphs: the timeline years and the big label of the
   service heroes ("NeuroBase"). */
:is(.ineuro-timeline__year, .ineuro-service-hero__label) {
	font-family: var(--wp--preset--font-family--quicksand);
	-webkit-text-stroke: 0.02em currentColor;
}

/* --- Home hero (patterns/hero-home.php) ---------------------------------- */

/* The original is a Smart Slider with three device ranges (measured
   2026-11-05). Desktop (>=1200px): 1920x600 base scaled to the width, never
   below 480px. Tablet: 701-1199px portrait, 901-1199px landscape. Mobile:
   <=700px portrait, <=900px landscape; a 430px text block, centred. */
.ineuro-hero-home.wp-block-cover {
	min-height: max(480px, 31.25vw) !important;
	padding: 40px 70px;
	background: linear-gradient(135deg, var(--wp--preset--color--deep) 0%, var(--wp--preset--color--primary) 100%);
	text-align: center;
}

/* The cover has the same blue gradient as the brand slide (D41); the photo was dropped at Pablo's request. */
.ineuro-hero-home .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
}

.ineuro-hero-home .wp-block-cover__inner-container > * {
	margin: 0;
	font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 700;
	-webkit-text-stroke: 0.02em currentColor; /* Quicksand stops at 700; a thin stroke adds a little weight (D35) */
	color: var(--wp--preset--color--base);
}

/* Logos above the headline: NeuroGEN, ineuro, Viamed with the hospital name (D41). */
.ineuro-hero-home__logos.wp-block-group {
	gap: 56px;
	margin-bottom: 36px;
}

.ineuro-hero-home__logo.wp-block-image,
.ineuro-hero-home__logo.wp-block-group {
	margin: 0;
}

.ineuro-hero-home__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.ineuro-hero-home__logo.is-neurogen {
	width: 150px;
}

.ineuro-hero-home__logo.is-ineuro {
	width: 340px;
}

.ineuro-hero-home__logo.is-viamed {
	width: 130px;
}

.ineuro-hero-home .wp-block-cover__inner-container > .ineuro-hero-home__logos .ineuro-hero-home__affiliation {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 17px;
	text-align: center;
}

.ineuro-hero-home__title {
	font-size: 57px;
	line-height: 66px;
}

.ineuro-hero-home .wp-block-cover__inner-container > .ineuro-hero-home__subtitle {
	font-size: 46px;
	line-height: 54px;
}

@media (max-width: 1199px) {
	.ineuro-hero-home.wp-block-cover {
		padding: 40px;
	}

	.ineuro-hero-home__logos.wp-block-group {
		gap: 36px;
		margin-bottom: 28px;
	}

	.ineuro-hero-home__logo.is-neurogen {
		width: 110px;
	}

	.ineuro-hero-home__logo.is-ineuro {
		width: 250px;
	}

	.ineuro-hero-home__logo.is-viamed {
		width: 100px;
	}

	/* The tablet text block was 480px wide with 30px padding; wider now so the
	   larger subtitle keeps its first line whole (D34). */
	.ineuro-hero-home .wp-block-cover__inner-container {
		max-width: 640px;
	}

	.ineuro-hero-home__title {
		font-size: 32px;
		line-height: 36px;
	}

	.ineuro-hero-home .wp-block-cover__inner-container > .ineuro-hero-home__subtitle {
		margin-top: 38.6px;
		font-size: 26px;
		line-height: 31px;
	}
}

@media (max-width: 700px), (orientation: landscape) and (max-width: 900px) {
	.ineuro-hero-home.wp-block-cover {
		padding: 30px 25px;
	}

	.ineuro-hero-home .ineuro-hero-home__logos.wp-block-group.is-layout-flex {
		display: grid;
		grid-template-columns: 1fr 1fr;
		justify-items: center;
		align-items: center;
		gap: 22px 16px;
		max-width: 420px;
		margin: 0 auto 22px;
	}

	.ineuro-hero-home__logo.is-ineuro {
		grid-column: 1 / -1;
		order: -1;
		width: 200px;
	}

	.ineuro-hero-home__logo.is-neurogen {
		width: 100px;
	}

	.ineuro-hero-home__logo.is-viamed {
		width: 120px;
	}

	.ineuro-hero-home .wp-block-cover__inner-container > .ineuro-hero-home__logos .ineuro-hero-home__affiliation {
		font-size: 12px;
		line-height: 15px;
	}

	.ineuro-hero-home .wp-block-cover__inner-container {
		max-width: none;
	}

	.ineuro-hero-home__title {
		font-size: 20px;
		line-height: 24px;
	}

	.ineuro-hero-home .wp-block-cover__inner-container > .ineuro-hero-home__subtitle {
		margin-top: 0;
		font-size: min(16px, 4.2vw);
		line-height: 1.2;
	}
}

/* --- Home hero slider (D31) ------------------------------------------------
   Three slides alternate, 6 s each (an 18 s turn), with a 1 s cross-fade, using
   only CSS: 1 the renovation notice (patterns/hero-slide-notice.php, D53), 2 the
   cover, 3 the brand slide (patterns/hero-slide-brand.php). The cover sets the
   height; the other two are laid over it. Without the animation (reduced motion)
   only the cover shows. The checkbox in .ineuro-hero-slider__controls pauses
   the animation (WCAG 2.2.2). */

.ineuro-hero-slider.wp-block-group {
	position: relative;
	margin-block: 0;
	overflow: hidden;
}

.ineuro-hero-slider > .ineuro-hero-home.wp-block-cover {
	margin-block: 0; /* no longer the first child: the layout's block gap would push it down */
}

.ineuro-hero-slide.wp-block-group {
	position: absolute;
	inset: 0;
	margin: 0; /* the layout's block gap would push it 20px down */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	padding: 40px 25px;
	text-align: center;
	background: linear-gradient(135deg, var(--wp--preset--color--deep) 0%, var(--wp--preset--color--primary) 100%);
	opacity: 0;
	visibility: hidden;
}

.ineuro-hero-slide__logo.wp-block-image {
	margin: 0;
}

.ineuro-hero-slide__logo img {
	display: block;
	width: min(560px, 80vw);
	height: auto;
}

.ineuro-hero-slider .ineuro-hero-slide__text {
	max-width: 760px;
	margin: 0;
	font-family: var(--wp--preset--font-family--quicksand);
	font-size: 28px;
	font-weight: 700;
	-webkit-text-stroke: 0.02em currentColor;
	line-height: 36px;
	color: var(--wp--preset--color--base);
	/* D65: no soft hyphens here (D56), the whole word goes to the next line. */
	hyphens: none;
}

/* Hazard tape framing the notice slide (D53): four 12px strips over the gradient. */
.ineuro-hero-slide--notice.wp-block-group {
	--ineuro-tape: repeating-linear-gradient(-45deg, #e03a2f 0 12px, #f6c90e 12px 24px);
	background:
		var(--ineuro-tape) top / 100% 12px no-repeat,
		var(--ineuro-tape) bottom / 100% 12px no-repeat,
		var(--ineuro-tape) left / 12px 100% no-repeat,
		var(--ineuro-tape) right / 12px 100% no-repeat,
		linear-gradient(135deg, var(--wp--preset--color--deep) 0%, var(--wp--preset--color--primary) 100%);
}

.ineuro-hero-slider .ineuro-hero-slide__subtext {
	max-width: 620px;
	margin: -10px 0 0;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--wp--preset--color--base);
}

@keyframes ineuro-hero-fade {
	0%, 27.7% { opacity: 1; visibility: visible; }
	33.3%, 94.4% { opacity: 0; visibility: hidden; }
	100% { opacity: 1; visibility: visible; }
}

@media (prefers-reduced-motion: no-preference) {
	.ineuro-hero-slider > .ineuro-hero-home,
	.ineuro-hero-slide {
		animation: ineuro-hero-fade 18s linear infinite;
	}

	/* Order of the turn: notice (1), cover (2), brand (3). A negative delay puts a
	   slide that far into its own turn, so each one starts 6 s after the last. */
	.ineuro-hero-slider > .ineuro-hero-home {
		animation-delay: -12s;
	}

	.ineuro-hero-slide--brand {
		animation-delay: -6s;
	}

	.ineuro-hero-slider:has(.ineuro-hero-slider__pause:checked) :is(.ineuro-hero-home, .ineuro-hero-slide) {
		animation-play-state: paused;
	}

	/* Dots: each one is filled while its slide shows, on the same 18 s turn. */
	.ineuro-hero-slider__dot::before {
		animation: ineuro-hero-dot 18s linear infinite;
	}

	.ineuro-hero-slider__dot[data-slide="2"]::before {
		animation-delay: -12s;
	}

	.ineuro-hero-slider__dot[data-slide="3"]::before {
		animation-delay: -6s;
	}

	.ineuro-hero-slider:has(.ineuro-hero-slider__pause:checked) .ineuro-hero-slider__dot::before {
		animation-play-state: paused;
	}

	/* A dot was chosen (assets/js/hero-slider.js): the turn starts at that slide.
	   Slide k is (start - k) mod 3 slides into its turn: delay -6s times that. */
	.ineuro-hero-slider[data-start="1"] > .ineuro-hero-slide--notice,
	.ineuro-hero-slider[data-start="1"] .ineuro-hero-slider__dot[data-slide="1"]::before,
	.ineuro-hero-slider[data-start="2"] > .ineuro-hero-home,
	.ineuro-hero-slider[data-start="2"] .ineuro-hero-slider__dot[data-slide="2"]::before,
	.ineuro-hero-slider[data-start="3"] > .ineuro-hero-slide--brand,
	.ineuro-hero-slider[data-start="3"] .ineuro-hero-slider__dot[data-slide="3"]::before {
		animation-delay: 0s;
	}

	.ineuro-hero-slider[data-start="2"] > .ineuro-hero-slide--notice,
	.ineuro-hero-slider[data-start="2"] .ineuro-hero-slider__dot[data-slide="1"]::before,
	.ineuro-hero-slider[data-start="3"] > .ineuro-hero-home,
	.ineuro-hero-slider[data-start="3"] .ineuro-hero-slider__dot[data-slide="2"]::before,
	.ineuro-hero-slider[data-start="1"] > .ineuro-hero-slide--brand,
	.ineuro-hero-slider[data-start="1"] .ineuro-hero-slider__dot[data-slide="3"]::before {
		animation-delay: -6s;
	}

	.ineuro-hero-slider[data-start="3"] > .ineuro-hero-slide--notice,
	.ineuro-hero-slider[data-start="3"] .ineuro-hero-slider__dot[data-slide="1"]::before,
	.ineuro-hero-slider[data-start="1"] > .ineuro-hero-home,
	.ineuro-hero-slider[data-start="1"] .ineuro-hero-slider__dot[data-slide="2"]::before,
	.ineuro-hero-slider[data-start="2"] > .ineuro-hero-slide--brand,
	.ineuro-hero-slider[data-start="2"] .ineuro-hero-slider__dot[data-slide="3"]::before {
		animation-delay: -12s;
	}

	/* The script adds this class for one frame to restart every animation. */
	.ineuro-hero-slider.is-restarting :is(.ineuro-hero-home, .ineuro-hero-slide),
	.ineuro-hero-slider.is-restarting .ineuro-hero-slider__dot::before {
		animation: none;
	}
}

@keyframes ineuro-hero-dot {
	0%, 27.7% { background-color: #fff; }
	33.3%, 94.4% { background-color: transparent; }
	100% { background-color: #fff; }
}

.ineuro-hero-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 3;
	display: flex;
	transform: translateX(-50%);
}

.ineuro-hero-slider__dots[hidden] {
	display: none;
}

/* 24 px touch target (WCAG 2.2), 12 px dot. */
.ineuro-hero-slider__dot {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.ineuro-hero-slider__dot::before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	margin: auto;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 4px rgba(15, 46, 67, 0.6);
	box-sizing: border-box;
}

.ineuro-hero-slider__dot:focus:not(:focus-visible) {
	outline: none; /* theme.json draws a black square on any :focus */
}

.ineuro-hero-slider__dot:focus-visible {
	outline: 3px solid var(--wp--preset--color--base);
	outline-offset: 0;
	border-radius: 50%;
}

.ineuro-hero-slider__controls {
	position: absolute;
	right: 20px;
	bottom: 16px;
	z-index: 3;
}

/* Reduced motion: nothing moves, so there is nothing to pause. */
@media (prefers-reduced-motion: reduce) {
	.ineuro-hero-slider__controls,
	.ineuro-hero-slider__dots {
		display: none;
	}
}

/* The checkbox stays focusable but invisible; its label is the button. */
.ineuro-hero-slider__pause {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.ineuro-hero-slider__controls label {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 3px;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	color: var(--wp--preset--color--base);
	background: rgba(15, 46, 67, 0.75);
	cursor: pointer;
}

.ineuro-hero-slider__pause:focus-visible + label {
	outline: 3px solid var(--wp--preset--color--base);
	outline-offset: 2px;
}

.ineuro-hero-slider__label-play,
.ineuro-hero-slider__pause:checked + label .ineuro-hero-slider__label-pause {
	display: none;
}

.ineuro-hero-slider__pause:checked + label .ineuro-hero-slider__label-play {
	display: inline;
}

@media (max-width: 700px) {
	.ineuro-hero-slider .ineuro-hero-slide__text {
		font-size: 15px;
		line-height: 20px;
	}

	.ineuro-hero-slide.wp-block-group {
		gap: 18px;
	}

	.ineuro-hero-slider .ineuro-hero-slide__subtext {
		font-size: 13px;
		line-height: 19px;
	}
}

/* --- Service hero (patterns/service-hero.php) ---------------------------- */

.ineuro-service-hero.wp-block-cover {
	min-height: 407px;
	padding: 107px 74px 40px;
}

.ineuro-service-hero .wp-block-cover__inner-container > * {
	margin: 0;
	color: var(--wp--preset--color--contrast);
}

.ineuro-service-hero__title {
	max-width: 520px;
	font-size: 45px;
	line-height: 45px;
	letter-spacing: -0.02em; /* was -2.7px for Poppins; Quicksand is narrower (D35) */
}

.ineuro-service-hero .wp-block-cover__inner-container > .ineuro-service-hero__text {
	max-width: 470px;
	margin-top: 33px;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
}

/* Peritajes forenses (D54): the white text sits on busy parts of the photo (the blue
   shirt, the face). A soft dark shadow keeps it readable without a veil. */
.slug-peritajes-forenses .ineuro-service-hero .wp-block-cover__inner-container > * {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 0, 0, 0.5);
}

/* Formación (D58): the dark sentence runs over the white shirt and the book in
   the photo. A soft light halo (the counterpart of D54's dark shadow, since the
   text is dark here) keeps it readable. */
.slug-formacion .ineuro-service-hero .wp-block-cover__inner-container > .ineuro-service-hero__text {
	text-shadow: 0 0 3px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.85), 0 0 22px rgba(255, 255, 255, 0.75);
}

/* Atención clínica (D45): the new, longer headline runs over the people in the
   photo. A white veil as wide as the text (the text is at most ~590px wide, so the
   stops are in px) keeps it readable (AA, 4.5:1) and fades out after it. On narrow screens the text spans the whole
   width, so the veil covers it all. */
.slug-atencion-clinica .ineuro-service-hero .wp-block-cover__background.has-background-dim {
	opacity: 1; /* the block writes opacity 0 for dimRatio 0 */
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0, rgba(255, 255, 255, 0.8) 560px, rgba(255, 255, 255, 0) 720px);
}

@media (max-width: 767px) {
	.slug-atencion-clinica .ineuro-service-hero .wp-block-cover__background.has-background-dim {
		background: rgba(255, 255, 255, 0.72);
	}
}

/* From 1200px the text leaves the photo: text on the left over white, photo
   (unchanged) on the right, so no veil is needed (D45). Narrower screens keep
   the veil above. */
@media (min-width: 1200px) {
	.slug-atencion-clinica .ineuro-service-hero.wp-block-cover {
		align-items: center;
		padding: 40px 0 40px 74px;
	}

	.slug-atencion-clinica .ineuro-service-hero .wp-block-cover__background {
		display: none;
	}

	.slug-atencion-clinica .ineuro-service-hero .wp-block-cover__image-background {
		inset: 0 0 0 auto;
		width: 48%;
		height: 100%;
		object-position: 15% center;
	}

	.slug-atencion-clinica .ineuro-service-hero .wp-block-cover__inner-container {
		flex: none;
		width: calc(52% - 104px);
		max-width: calc(52% - 104px);
	}

	.slug-atencion-clinica .ineuro-service-hero__title {
		max-width: none;
		font-size: 34px;
		line-height: 38px;
	}

	/* The headline's line breaks were set for the text over the photo. */
	.slug-atencion-clinica .ineuro-service-hero__title br {
		display: none;
	}

	.slug-atencion-clinica .ineuro-service-hero .wp-block-cover__inner-container > .ineuro-service-hero__text {
		max-width: none;
		margin-top: 20px;
	}
}

/* Atención clínica without its photo (D51): the same headline and text on the
   white page, sized like the other service heroes. The photo rules above stay
   for when a picture comes back (a cover block with the old classes). */
.ineuro-service-hero--plain {
	padding: 10px 0 0;
}

.ineuro-service-hero--plain > * {
	margin: 0;
	color: var(--wp--preset--color--contrast);
}

.ineuro-service-hero--plain > .ineuro-service-hero__text {
	max-width: 470px;
	margin-top: 33px;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
}

/* Rows of icon boxes are 10px apart on the original. */
.ineuro-icon-box-row.wp-block-columns {
	margin-block: 0;
}

.ineuro-icon-box-row + .ineuro-icon-box-row.wp-block-columns {
	margin-top: 10px;
}

/* Heading with a subtitle (Escuela NEF): title, grey 16/34 subtitle, then
   the sage bar, as the original's "custom heading with subtitle". */
.wp-block-heading.ineuro-heading-with-subtitle {
	margin-bottom: 0;
	padding-top: 17px;
}

.ineuro-subtitle {
	margin-block: 0 23px;
	font-size: 16px;
	line-height: 34px;
	color: var(--wp--preset--color--muted);
}

.ineuro-subtitle::after {
	content: "";
	display: block;
	width: 35px;
	height: 6px;
	margin-top: 11px;
	background-color: var(--wp--preset--color--sage);
}

/* On Escuela NEF the next heading follows the author box directly. */
.ineuro-author.wp-block-group {
	margin-bottom: 0;
}

.ineuro-author + .wp-block-heading {
	margin-top: 0;
}

/* Lists inside "Paneles" accordions: small green diamond markers, as the
   original theme's accordion lists. */
.is-style-ineuro-panels .wp-block-accordion-panel ul {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.is-style-ineuro-panels .wp-block-accordion-panel li {
	position: relative;
	margin: 0 0 14px;
	padding-left: 26px;
	font-size: 13px;
	line-height: 18px;
	color: var(--wp--preset--color--contrast);
}

.is-style-ineuro-panels .wp-block-accordion-panel li::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 0;
	width: 4px;
	height: 4px;
	background-color: var(--wp--preset--color--primary);
	transform: rotate(45deg);
}

/* Below 768px the original stacks the author photo above the name. */
@media (max-width: 767px) {
	.ineuro-author.wp-block-group {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Generated pages carry each row's exact margins (often 0). */
.is-wpb .ineuro-icon-box-row + .ineuro-icon-box-row.wp-block-columns {
	margin-top: 0;
}

/* Service hero without a photo (Innovación / NeuroBase): light blue with a
   large yellow circle at the top left, as the original slider renders it.
   Measured on the original: circle centre (110px, 114px), radius 244px. */
.ineuro-service-hero--circle.wp-block-group {
	min-height: 407px;
	padding: 85px 40px 40px 65px;
	background:
		radial-gradient(circle 244px at 110px 114px, #ffdc00 99.5%, transparent 100%),
		#e2f4ff;
}

.ineuro-service-hero--circle > * {
	margin: 0;
	color: var(--wp--preset--color--contrast);
}

.ineuro-service-hero--circle .ineuro-service-hero__label {
	margin-left: 91px;
	font-size: 48px;
	font-weight: 700;
	line-height: 60px;
	color: #000;
}

.ineuro-service-hero--circle .ineuro-service-hero__title {
	max-width: 680px;
	margin-top: 34px;
	font-size: 45px;
	line-height: 45px;
	letter-spacing: -0.02em; /* was -2.7px for Poppins; Quicksand is narrower (D35) */
}

.ineuro-service-hero--circle .ineuro-service-hero__text {
	margin-top: 21px;
	font-size: 14px;
	line-height: 22px;
}

/* Icon box with a dark circle (Formación, Peritajes): 45px circle, sage
   icon, 65px icon column; title 17/22 with 20px below. */
.ineuro-icon-box--circle .ineuro-icon-box__icon.wp-block-image {
	flex: 0 0 45px;
	width: 45px;
	height: 45px;
	margin-right: 20px;
	border-radius: 50%;
	background: var(--wp--preset--color--dark);
}

.ineuro-icon-box--circle.wp-block-group,
.ineuro-icon-box--no-icon.wp-block-group {
	padding: 0;
}

.ineuro-icon-box--circle .ineuro-icon-box__text h5 {
	margin-bottom: 20px;
}

.ineuro-icon-box__text .is-style-ineuro-underline {
	padding-top: 0;
}

/* Box with its own background and padding (vc_custom rule). */
.ineuro-box-bg > .ineuro-icon-box.wp-block-group {
	padding: 0;
}

/* Theme info box: grey rounded card (Formación). */
.ineuro-card.wp-block-group {
	padding: 15px 25px 25px;
	border-radius: 10px;
	background-color: #ededed;
}

.ineuro-card > .wp-block-heading {
	margin: 0 0 13px;
	padding-top: 23px;
	font-size: 20px;
	line-height: 28px;
	color: var(--wp--preset--color--dark);
}

.ineuro-card > p {
	margin: 0 0 15px;
	font-size: 14px;
	line-height: 26px;
	color: var(--wp--preset--color--contrast);
}

.ineuro-card > p.ineuro-card__more {
	margin-bottom: 0;
	font-size: 13px;
	font-weight: 700;
	text-transform: lowercase;
}

.ineuro-card__more a {
	color: var(--wp--preset--color--contrast);
}

/* 1px rule (WPBakery separator). */
.wp-block-separator.ineuro-line {
	margin: 0;
	border: 0;
	border-top: 1px solid #ddd;
	opacity: 1;
}

/* Generic WPBakery inner rows. Stacked on mobile without a gap, as
   Bootstrap columns do. */
.ineuro-wpb-columns.wp-block-columns {
	margin-block: 0;
	row-gap: 0;
}

/* "Paneles" accordion with a "+" on the right (Investigación). */
.ineuro-panels--plus .wp-block-accordion-heading__toggle {
	position: relative;
	padding-right: 70px;
}

.ineuro-panels--plus .wp-block-accordion-heading__toggle-icon {
	position: absolute;
	top: 50%;
	right: 25px;
	width: 9px;
	height: 9px;
	margin: -4.5px 0 0;
	font-size: 0;
	transform: none;
}

.ineuro-panels--plus .wp-block-accordion-heading__toggle-icon::before,
.ineuro-panels--plus .wp-block-accordion-heading__toggle-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background-color: var(--wp--preset--color--dark);
	transform: translate(-50%, -50%);
}

.ineuro-panels--plus .wp-block-accordion-heading__toggle-icon::before {
	width: 9px;
	height: 2px;
}

.ineuro-panels--plus .wp-block-accordion-heading__toggle-icon::after {
	width: 2px;
	height: 9px;
}

.ineuro-panels--plus .is-open .wp-block-accordion-heading__toggle-icon::after {
	display: none;
}

/* Underlined box titles (NeuroBase, Peritajes): bar 13px below the title;
   the box text keeps its 15px bottom margin. */
.ineuro-icon-box__text h5.is-style-ineuro-underline::after {
	height: 5px;
	margin-top: 13px;
}

.ineuro-box-bg .ineuro-icon-box__text > p:last-child,
.ineuro-icon-box--circle .ineuro-icon-box__text > p:last-child,
.ineuro-icon-box--no-icon .ineuro-icon-box__text > p:last-child {
	margin-bottom: 15px;
}

.ineuro-icon-box__text > h5.is-style-ineuro-underline {
	margin-bottom: 20px;
}

/* Linked box titles (home page) keep the title colour. */
.ineuro-icon-box__text h5 a {
	color: inherit;
}

.ineuro-icon-box__text h5 a:hover {
	color: var(--wp--preset--color--primary);
}

/* --- Contact form (Contact Form 7, D44) ------------------------------------ */
.ineuro-contact .wpcf7 {
	max-width: 640px;
}

.ineuro-contact .wpcf7-form p {
	margin: 0 0 20px;
}

.ineuro-contact .wpcf7-form br {
	display: none; /* wpautop adds one after each label */
}

.ineuro-contact .wpcf7-form-control-wrap {
	display: block;
}

.ineuro-contact .hidden-fields-container {
	display: none;
}

/* Contact Form 7's own stylesheet is off (functions.php), so its visually
   hidden live region needs hiding here. */
.ineuro-contact .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.ineuro-contact label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.ineuro-contact input[type="text"],
.ineuro-contact input[type="email"],
.ineuro-contact textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #ddd;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
}

.ineuro-contact input:focus-visible,
.ineuro-contact textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
}

.ineuro-contact__consent label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	font-weight: 400;
}

.ineuro-contact__consent input {
	margin-top: 4px;
}

.ineuro-contact .wpcf7-submit {
	padding: 10px 28px;
	border: 0;
	font: inherit;
	font-weight: 700;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--dark);
	cursor: pointer;
}

.ineuro-contact .wpcf7-submit:hover,
.ineuro-contact .wpcf7-submit:focus-visible {
	background: var(--wp--preset--color--primary);
}

.ineuro-contact .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 14px;
	color: #b3261e;
}

.ineuro-contact .wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 12px 16px;
	border: 2px solid var(--wp--preset--color--primary);
}

/* Empty until the form is sent (the plugin's stylesheet, which hid it, is off). */
.ineuro-contact .wpcf7 form.init .wpcf7-response-output,
.ineuro-contact .wpcf7 form .wpcf7-response-output:empty {
	display: none;
}

.ineuro-contact .wpcf7 form.invalid .wpcf7-response-output,
.ineuro-contact .wpcf7 form.failed .wpcf7-response-output {
	border-color: #b3261e;
}
