/*
Theme Name: Astra Child
Theme URI: https://www.totmedia.com
Description: Tema hijo de Astra para TotMedia. Cabecera, menú desplegable y pie propios y accesibles, sin Elementor Pro.
Author: TotMedia
Template: astra
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* ==========================================================================
   Tokens (design-system.md). Escala 4/8: 4, 8, 16, 24, 32, 48, 64 px, en rem.
   ========================================================================== */
:root {
	--tm-color-surface: #fff;
	--tm-color-ink: #2b2b2b;
	--tm-color-accent: #535aa8;
	--tm-color-line: #dcdcdc;

	--tm-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
	--tm-text-sm: 0.875rem;
	--tm-lead-sm: 1.25rem;
	--tm-text-md: 1rem;
	--tm-lead-md: 1.5rem;
	--tm-text-lg: 1.125rem;
	--tm-lead-lg: 1.75rem;

	--tm-s1: 0.25rem;
	--tm-s2: 0.5rem;
	--tm-s3: 1rem;
	--tm-s4: 1.5rem;
	--tm-s5: 2rem;
	--tm-s6: 3rem;

	--tm-container: 71.25rem;
	--tm-gutter: var(--tm-s5);
	--tm-header-h: 5rem;
	--tm-logo-h: 3.5rem;
	--tm-target: 2.75rem;
	--tm-target-lg: 3rem;
	--tm-radius: 0.25rem;
	--tm-border: 1px;
	--tm-underline: 1px;
	--tm-underline-strong: 2px;
	--tm-underline-offset: 0.5rem;
	--tm-focus-width: 2px;
	--tm-focus-offset: 2px;
	--tm-panel-min: 15rem;
	--tm-panel-max: 22.5rem;
	--tm-panel-col: 20rem;
	--tm-list-max: 35rem;
	--tm-chevron: 1rem;
	--tm-duration: 150ms;
	--tm-duration-panel: 200ms;
	--tm-z-header: 100;
	--tm-z-skip: 110;
	--tm-adminbar: 0px;
}

@media (max-width: 64em) {
	:root {
		--tm-header-h: 4rem;
		--tm-logo-h: 2.5rem;
		--tm-gutter: var(--tm-s4);
	}
}

@media (max-width: 767px) {
	:root {
		--tm-gutter: var(--tm-s3);
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--tm-duration: 0ms;
		--tm-duration-panel: 0ms;
	}
}

/* Barra de administración de WordPress (solo con sesión iniciada). */
body.admin-bar {
	--tm-adminbar: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--tm-adminbar: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar {
		--tm-adminbar: 0px;
	}
}

/* ==========================================================================
   Enlace de salto (el de Astra, con el estilo de design-system.md)
   ========================================================================== */
.skip-link.screen-reader-text:focus {
	position: fixed;
	top: var(--tm-s3);
	left: var(--tm-s3);
	z-index: var(--tm-z-skip);
	padding: var(--tm-s2) var(--tm-s3);
	background: var(--tm-color-ink);
	border-radius: var(--tm-radius);
	box-shadow: none;
	color: var(--tm-color-surface);
	font-family: var(--tm-font);
	font-size: var(--tm-text-sm);
	font-weight: 400;
	line-height: var(--tm-lead-sm);
	outline: var(--tm-focus-width) solid var(--tm-color-surface);
	outline-offset: calc(-1 * var(--tm-s1));
	text-decoration: none;
}

/* Destino del salto: recibe el foco por programa, sin anillo propio. */
#content:focus {
	outline: 0;
}

/* ==========================================================================
   Cabecera
   ========================================================================== */
.tm-header {
	position: relative;
	z-index: var(--tm-z-header);
	background: var(--tm-color-surface);
	border-bottom: var(--tm-border) solid var(--tm-color-line);
	color: var(--tm-color-ink);
	font-family: var(--tm-font);
	font-size: var(--tm-text-md);
	line-height: var(--tm-lead-md);
}

/* Fija solo con 500 px de alto o más (ux.md §4); scroll-padding = cabecera + 16 px. */
@media (min-height: 500px) {
	.tm-header {
		position: sticky;
		top: var(--tm-adminbar);
	}

	html {
		scroll-padding-top: calc(var(--tm-adminbar) + var(--tm-header-h) + var(--tm-s3));
	}
}

.tm-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--tm-s5);
	max-width: calc(var(--tm-container) + 2 * var(--tm-gutter));
	height: var(--tm-header-h);
	margin: 0 auto;
	padding: 0 var(--tm-gutter);
}

.tm-header ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-header li {
	margin: 0;
}

/* Foco: siempre :focus-visible. Sustituye al contorno de Astra. */
.tm-header :focus:not(:focus-visible),
.tm-footer :focus:not(:focus-visible) {
	outline: 0;
}

.tm-header :focus-visible,
.tm-footer :focus-visible {
	outline: var(--tm-focus-width) solid var(--tm-color-accent);
	outline-offset: var(--tm-focus-offset);
}

/* Feedback de estado: color y fondo en 150 ms (0 ms con movimiento reducido). */
.tm-header a,
.tm-header button,
.tm-footer a,
.tm-footer button {
	transition: color var(--tm-duration) ease-out, background-color var(--tm-duration) ease-out, border-color var(--tm-duration) ease-out;
}

/* Logo */
.tm-logo {
	display: inline-flex;
	align-items: center;
	flex: none;
	margin-right: auto;
	color: var(--tm-color-ink);
	text-decoration: none;
}

.tm-logo__img {
	display: block;
	width: auto;
	max-width: none;
	height: var(--tm-logo-h);
}

.tm-logo__text {
	font-size: var(--tm-text-lg);
	font-weight: 700;
}

/* Iconos */
.tm-icon {
	flex: none;
}

/* --- Menú: enlaces de primer nivel ------------------------------------- */
.tm-menu {
	display: flex;
	align-items: center;
}

.tm-menu__item {
	display: flex;
	align-items: center;
}

.tm-header .tm-menu__link,
.tm-header .tm-submenu__link,
.tm-header .tm-menu__toggle--label {
	color: var(--tm-color-ink);
	font-family: var(--tm-font);
	font-size: var(--tm-text-md);
	font-weight: 400;
	line-height: var(--tm-lead-md);
	text-decoration: none;
}

.tm-header .tm-menu__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--tm-target);
	padding: 0 var(--tm-s3);
}

/* Hover: subrayado fino. Página actual y ancestro: subrayado grueso en acento. */
.tm-header .tm-menu__link:hover,
.tm-header .tm-submenu__link:hover,
.tm-header .tm-menu__toggle--label:hover {
	text-decoration: underline;
	text-decoration-color: var(--tm-color-ink);
	text-decoration-thickness: var(--tm-underline);
	text-underline-offset: var(--tm-underline-offset);
}

.tm-header .tm-menu__link[aria-current="page"],
.tm-header .is-ancestor > .tm-menu__link,
.tm-header .is-ancestor > .tm-menu__toggle--label,
.tm-header .tm-menu__link[aria-current="page"]:hover,
.tm-header .is-ancestor > .tm-menu__link:hover,
.tm-header .is-ancestor > .tm-menu__toggle--label:hover {
	text-decoration: underline;
	text-decoration-color: var(--tm-color-accent);
	text-decoration-thickness: var(--tm-underline-strong);
	text-underline-offset: var(--tm-underline-offset);
}

.tm-header .tm-menu__link:active,
.tm-header .tm-submenu__link:active,
.tm-header .tm-menu__toggle--label:active {
	color: var(--tm-color-accent);
}

/* --- Botones de submenú ------------------------------------------------ */
.tm-header .tm-menu__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: var(--tm-s2);
	min-width: var(--tm-target);
	min-height: var(--tm-target);
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--tm-color-ink);
	cursor: pointer;
}

.tm-js .tm-menu__toggle {
	display: inline-flex;
}

/* El nombre de un padre sin URL se ve siempre; sin JS es texto sin chevron. */
.tm-header .tm-menu__toggle--label {
	display: inline-flex;
	padding: 0 var(--tm-s3);
}

html:not(.tm-js) .tm-menu__toggle--label .tm-icon {
	display: none;
}

/* En un padre con URL (split), el enlace deja 4 px de padding derecho para que el chevron quede pegado. */
.tm-header .has-children > .tm-menu__link {
	padding-right: var(--tm-s1);
}

.tm-header .tm-menu__toggle .tm-icon {
	width: var(--tm-chevron);
	height: var(--tm-chevron);
	transition: transform var(--tm-duration) ease-out;
}

.tm-header .tm-menu__toggle[aria-expanded="true"] .tm-icon {
	transform: rotate(180deg);
}

.tm-header .tm-menu__toggle:hover .tm-icon,
.tm-header .tm-menu__toggle:active {
	color: var(--tm-color-accent);
}

/* --- Panel del submenú (escritorio) ------------------------------------ */
.tm-header .tm-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: var(--tm-panel-min);
	max-width: var(--tm-panel-max);
	max-height: calc(100vh - var(--tm-adminbar) - var(--tm-header-h) - var(--tm-s3));
	padding: var(--tm-s2) 0;
	overflow-y: auto;
	background: var(--tm-color-surface);
	border: var(--tm-border) solid var(--tm-color-line);
	border-radius: var(--tm-radius);
}

.tm-header .tm-submenu__link {
	display: flex;
	align-items: center;
	min-height: var(--tm-target);
	padding: var(--tm-s2) var(--tm-s3);
}

.tm-header .tm-submenu__link[aria-current="page"],
.tm-header .tm-submenu__link[aria-current="page"]:hover {
	text-decoration: underline;
	text-decoration-color: var(--tm-color-accent);
	text-decoration-thickness: var(--tm-underline-strong);
	text-underline-offset: var(--tm-underline-offset);
}

.tm-header .tm-submenu a:focus-visible {
	outline-offset: calc(-1 * var(--tm-focus-offset));
}

/* --- CTA «Contacto» (clase de menú tm-nav-cta) -------------------------- */
.tm-header .tm-nav-cta > .tm-menu__link {
	min-height: var(--tm-target);
	margin-left: var(--tm-s3);
	padding: 0 var(--tm-s4);
	background: var(--tm-color-accent);
	border: var(--tm-border) solid var(--tm-color-accent);
	border-radius: var(--tm-radius);
	color: var(--tm-color-surface);
	font-weight: 700;
	text-decoration: none;
}

.tm-header .tm-nav-cta > .tm-menu__link:hover {
	background: var(--tm-color-surface);
	color: var(--tm-color-accent);
	text-decoration: none;
}

.tm-header .tm-nav-cta > .tm-menu__link:active {
	background: var(--tm-color-ink);
	border-color: var(--tm-color-ink);
	color: var(--tm-color-surface);
}

.tm-header .tm-nav-cta > .tm-menu__link[aria-current="page"],
.tm-header .tm-nav-cta > .tm-menu__link[aria-current="page"]:hover {
	background: var(--tm-color-accent);
	color: var(--tm-color-surface);
	text-decoration: none;
}

/* --- Teléfono ---------------------------------------------------------- */
.tm-header .tm-phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--tm-s2);
	min-width: var(--tm-target);
	min-height: var(--tm-target);
	color: var(--tm-color-ink);
	text-decoration: none;
}

.tm-header .tm-phone:hover,
.tm-header .tm-phone:active {
	color: var(--tm-color-accent);
}

.tm-phone__number {
	display: none;
}

.tm-header .tm-phone--bar {
	display: none;
}

/* --- Botón «Menú» (solo móvil) ------------------------------------------ */
.tm-header .tm-menu-button {
	display: none;
	align-items: center;
	gap: var(--tm-s2);
	min-height: var(--tm-target);
	margin: 0;
	padding: 0 var(--tm-s2);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--tm-color-ink);
	font-family: var(--tm-font);
	font-size: var(--tm-text-md);
	font-weight: 400;
	line-height: var(--tm-lead-md);
	cursor: pointer;
}

.tm-header .tm-menu-button:hover,
.tm-header .tm-menu-button:active {
	color: var(--tm-color-accent);
}

.tm-menu-button .tm-icon--x,
.tm-menu-button[aria-expanded="true"] .tm-icon--menu {
	display: none;
}

.tm-menu-button[aria-expanded="true"] .tm-icon--x {
	display: block;
}

/* Sin JavaScript no hay botones: la navegación baja bajo el logo y los submenús se muestran como lista. */
html:not(.tm-js) .tm-header__inner {
	flex-wrap: wrap;
	height: auto;
	padding-top: var(--tm-s3);
	padding-bottom: var(--tm-s3);
}

html:not(.tm-js) .tm-nav {
	flex-basis: 100%;
}

/* ==========================================================================
   Escritorio (≥ 1025 px; 64.0625em)
   ========================================================================== */
@media (min-width: 64.0625em) {
	/* Panel cerrado: fuera del árbol de foco (visibility) y con fundido de opacidad. */
	.tm-js .tm-submenu {
		visibility: hidden;
		opacity: 0;
		transition: opacity var(--tm-duration) ease-out, visibility 0s linear var(--tm-duration);
	}

	.tm-js .is-open > .tm-submenu {
		visibility: visible;
		opacity: 1;
		transition: opacity var(--tm-duration) ease-out;
	}

	.tm-header .tm-phone--desk {
		margin-left: calc(var(--tm-s3) - var(--tm-s5));
	}

	.tm-header .tm-submenu--cols {
		display: grid;
		grid-auto-flow: column;
		grid-template-columns: repeat(2, var(--tm-panel-col));
		grid-template-rows: repeat(var(--tm-rows), auto);
		max-width: none;
	}

	html:not(.tm-js) .tm-menu {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	html:not(.tm-js) .tm-menu__item {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	html:not(.tm-js) .tm-header .tm-submenu {
		position: static;
		flex-basis: 100%;
		max-width: none;
		max-height: none;
		border: 0;
	}

	html:not(.tm-js) .tm-header .tm-submenu--cols {
		display: block;
	}

	html:not(.tm-js) .tm-header .tm-menu__toggle--label {
		pointer-events: none;
	}
}

@media (min-width: 80em) {
	.tm-phone--desk .tm-phone__number {
		display: inline;
	}
}

/* ==========================================================================
   Móvil y tablet (≤ 1024 px; 64em)
   ========================================================================== */
@media (max-width: 64em) {
	.tm-header__inner {
		gap: var(--tm-s2);
	}

	.tm-header .tm-phone--bar {
		display: inline-flex;
	}

	.tm-header .tm-phone--desk {
		display: none;
	}

	.tm-js .tm-menu-button {
		display: inline-flex;
	}

	/* Panel: bajo la barra, todo el ancho y el alto restante. */
	.tm-nav {
		background: var(--tm-color-surface);
	}

	.tm-js .tm-nav {
		position: fixed;
		top: calc(var(--tm-adminbar) + var(--tm-header-h) + var(--tm-border));
		right: 0;
		bottom: 0;
		left: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: hidden;
		opacity: 0;
		transition: opacity var(--tm-duration-panel) ease-out, visibility 0s linear var(--tm-duration-panel);
	}

	.tm-js .is-menu-open .tm-nav {
		visibility: visible;
		opacity: 1;
		transition: opacity var(--tm-duration-panel) ease-out;
	}

	html.tm-menu-open {
		overflow: hidden;
	}

	.tm-nav .tm-menu {
		display: block;
		max-width: calc(var(--tm-list-max) + 2 * var(--tm-gutter));
		margin: 0 auto;
		padding: 0 var(--tm-gutter) var(--tm-s5);
	}

	.tm-menu__item {
		flex-wrap: wrap;
		border-bottom: var(--tm-border) solid var(--tm-color-line);
	}

	.tm-header .tm-menu__link {
		flex: 1;
		min-height: var(--tm-target-lg);
		padding: 0;
		font-size: var(--tm-text-lg);
		line-height: var(--tm-lead-lg);
	}

	.tm-header .has-children > .tm-menu__link {
		padding-right: 0;
	}

	.tm-header .tm-menu__toggle {
		min-width: var(--tm-target-lg);
		min-height: var(--tm-target-lg);
	}

	.tm-header .tm-menu__toggle--label {
		flex: 1;
		justify-content: space-between;
		padding: 0;
		font-size: var(--tm-text-lg);
		line-height: var(--tm-lead-lg);
		text-align: left;
	}

	/* Acordeón: un grupo cerrado no se pinta ni recibe foco. */
	.tm-header .tm-submenu {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		max-width: none;
		max-height: none;
		padding: 0 0 var(--tm-s2) var(--tm-s3);
		overflow: visible;
		border: 0;
		border-radius: 0;
	}

	.tm-header .is-open > .tm-submenu {
		display: block;
	}

	html:not(.tm-js) .tm-header .tm-submenu {
		display: block;
	}

	.tm-header .tm-nav-cta {
		margin-top: var(--tm-s4);
		border-bottom: 0;
	}

	.tm-header .tm-nav-cta > .tm-menu__link {
		flex: 1;
		justify-content: center;
		min-height: var(--tm-target-lg);
		margin-left: 0;
		padding: 0 var(--tm-s4);
		font-size: var(--tm-text-md);
		line-height: var(--tm-lead-md);
	}
}

/* ==========================================================================
   Pie
   ========================================================================== */
.tm-footer {
	background: var(--tm-color-surface);
	border-top: var(--tm-border) solid var(--tm-color-line);
	color: var(--tm-color-ink);
	font-family: var(--tm-font);
	font-size: var(--tm-text-md);
	line-height: var(--tm-lead-md);
}

.tm-footer__inner {
	display: flex;
	flex-direction: column;
	gap: var(--tm-s4);
	max-width: calc(var(--tm-container) + 2 * var(--tm-gutter));
	margin: 0 auto;
	padding: var(--tm-s5) var(--tm-gutter) var(--tm-s4);
}

.tm-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-footer p {
	margin: 0;
}

.tm-footer__contact {
	display: flex;
	flex-direction: column;
	font-style: normal;
}

.tm-footer a,
.tm-footer .tm-legal button {
	display: inline-flex;
	align-items: center;
	min-height: var(--tm-target);
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--tm-color-ink);
	font-family: var(--tm-font);
	font-size: var(--tm-text-md);
	font-weight: 400;
	line-height: var(--tm-lead-md);
	text-decoration: underline;
	text-decoration-thickness: var(--tm-underline);
	cursor: pointer;
}

.tm-footer a:hover,
.tm-footer a:active,
.tm-footer .tm-legal button:hover,
.tm-footer .tm-legal button:active {
	color: var(--tm-color-accent);
}

.tm-footer__copy {
	font-size: var(--tm-text-sm);
	line-height: var(--tm-lead-sm);
}

@media (min-width: 1025px) {
	.tm-footer__inner {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		column-gap: var(--tm-s5);
		row-gap: var(--tm-s4);
		padding: var(--tm-s6) var(--tm-gutter) var(--tm-s5);
	}

	.tm-footer__contact {
		grid-column: 1;
		grid-row: 1;
	}

	.tm-footer__nav {
		grid-column: 2;
		grid-row: 1;
	}

	.tm-footer__copy {
		grid-column: 1;
		grid-row: 2;
	}

	/* Sin datos de contacto: una sola fila, copyright a la izquierda y navegación a la derecha. */
	.tm-footer:not(.tm-footer--contact) .tm-footer__copy {
		grid-row: 1;
	}

	.tm-legal {
		display: flex;
		gap: var(--tm-s4);
	}
}

/* ==========================================================================
   Formulario de contacto (CF7). Componente «Formulario» de design-system.md (INC-026).
   ========================================================================== */
.wpcf7 form {
	max-width: var(--tm-list-max);
}

.wpcf7 form p {
	margin: 0 0 var(--tm-s4);
}

.wpcf7 .tm-form-note {
	color: var(--tm-color-ink);
	font-size: var(--tm-text-sm);
	line-height: var(--tm-lead-sm);
}

.wpcf7 label {
	display: block;
	color: var(--tm-color-ink);
	font-size: var(--tm-text-md);
	font-weight: 400;
	line-height: var(--tm-lead-md);
}

.wpcf7 .tm-req {
	margin-left: var(--tm-s1);
	color: var(--tm-color-ink);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: var(--tm-target);
	margin-top: var(--tm-s1);
	padding: var(--tm-s2) var(--tm-s3);
	background: var(--tm-color-surface);
	border: var(--tm-border) solid var(--tm-color-ink);
	border-radius: var(--tm-radius);
	color: var(--tm-color-ink);
	font-family: var(--tm-font);
	font-size: var(--tm-text-md);
	line-height: var(--tm-lead-md);
}

.wpcf7 textarea {
	min-height: 10rem;
	resize: vertical;
}

.wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: var(--tm-s2);
	min-height: var(--tm-target);
	padding: var(--tm-s2) 0;
}

.wpcf7-acceptance label a {
	text-decoration: underline;
}

.wpcf7 input[type="checkbox"] {
	flex-shrink: 0;
	width: var(--tm-s4);
	height: var(--tm-s4);
	margin: 0;
	accent-color: var(--tm-color-accent);
}

.wpcf7 :focus-visible {
	outline: var(--tm-focus-width) solid var(--tm-color-accent);
	outline-offset: var(--tm-focus-offset);
}

.wpcf7 .wpcf7-not-valid {
	border-width: var(--tm-underline-strong);
	border-color: var(--tm-color-ink);
}

.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: var(--tm-s1);
	color: var(--tm-color-ink);
	font-size: var(--tm-text-sm);
	font-weight: 700;
	line-height: var(--tm-lead-sm);
}

.wpcf7 input[type="submit"] {
	min-height: var(--tm-target);
	padding: 0 var(--tm-s4);
	background: var(--tm-color-accent);
	border: var(--tm-border) solid var(--tm-color-accent);
	border-radius: var(--tm-radius);
	box-shadow: none;
	color: var(--tm-color-surface);
	font: inherit;
	font-size: var(--tm-text-md);
	font-weight: 700;
	line-height: var(--tm-lead-md);
	cursor: pointer;
	transition: color var(--tm-duration), background-color var(--tm-duration), border-color var(--tm-duration);
}

.wpcf7 input[type="submit"]:hover {
	background: var(--tm-color-surface);
	color: var(--tm-color-accent);
}

/* Astra pinta un fondo propio en :focus; se mantienen los colores de reposo. */
.wpcf7 input[type="submit"]:focus,
.wpcf7 input[type="submit"]:focus-visible {
	background: var(--tm-color-accent);
	border-color: var(--tm-color-accent);
	color: var(--tm-color-surface);
}

.wpcf7 input[type="submit"]:hover:focus,
.wpcf7 input[type="submit"]:hover:focus-visible {
	background: var(--tm-color-surface);
	color: var(--tm-color-accent);
}

.wpcf7 input[type="submit"]:active,
.wpcf7 input[type="submit"]:active:focus {
	background: var(--tm-color-ink);
	border-color: var(--tm-color-ink);
	color: var(--tm-color-surface);
}

.wpcf7 form.submitting input[type="submit"] {
	cursor: progress;
}

.wpcf7 .wpcf7-spinner {
	margin: 0 var(--tm-s2);
	background-color: var(--tm-color-ink);
}

.wpcf7 form .wpcf7-response-output {
	margin: var(--tm-s4) 0 0;
	padding: var(--tm-s3);
	border: var(--tm-underline-strong) solid var(--tm-color-ink);
	border-radius: var(--tm-radius);
	color: var(--tm-color-ink);
	font-size: var(--tm-text-md);
	line-height: var(--tm-lead-md);
}

/* CF7 colorea el borde por estado con esta especificidad; se igualan para pisarlo. */
.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--tm-color-accent);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--tm-color-ink);
}

@media (max-width: 767px) {
	.wpcf7 input[type="submit"] {
		width: 100%;
		min-height: var(--tm-target-lg);
	}
}
