/* VAUMA — estilos del tema hijo (hello-elementor-child-master) */

.google-sans-text {
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "GRAD" 0;
}

body {
	font-family: "Google Sans", sans-serif;
}

/* =============================================================
   ACCESIBILIDAD WCAG 2.1 AA — Kit Digital España (RD 1112/2018)
   ============================================================= */

/* 1. SKIP LINK — WCAG 2.4.1 Bypass Blocks */
.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 999999;
	padding: 0.75rem 1.25rem;
	background: #1a1a2e;
	color: #ffffff !important;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 6px 6px;
	transition: top 0.15s ease;
}
.skip-link:focus {
	top: 0;
	outline: 3px solid #ffd600;
	outline-offset: 2px;
}

/* 2. FOCO VISIBLE — WCAG 2.4.7 Focus Visible + WCAG 2.4.11 Focus Appearance */
*:focus {
	outline: 3px solid #ffd600;
	outline-offset: 2px;
}
*:focus:not(:focus-visible) {
	outline: none;
}
*:focus-visible {
	outline: 3px solid #ffd600;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Sobrescribir el outline:none del reset.css del tema padre */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
	outline: 3px solid #ffd600 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px rgba(255, 214, 0, 0.25) !important;
}

/* Restaurar foco en botones */
button:focus:not(:focus-visible),
[type="button"]:focus:not(:focus-visible),
[type="submit"]:focus:not(:focus-visible) {
	outline: none;
}

/* 3. CONTRASTE DE ENLACES — WCAG 1.4.3 Contrast (Minimum) */
.elementor-widget-text-editor a,
.entry-content a,
p a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 4. TEXTOS PARA LECTORES DE PANTALLA — WCAG 1.3.1 Info and Relationships */
.screen-reader-text,
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus,
.sr-only:focus {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

/* 5. MOVIMIENTO REDUCIDO — WCAG 2.3.3 Animation from Interactions */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* 6. MODO ALTO CONTRASTE — WCAG 1.4.11 Non-text Contrast */
@media (forced-colors: active) {
	a:focus-visible,
	button:focus-visible,
	input:focus-visible,
	select:focus-visible,
	textarea:focus-visible {
		outline: 3px solid ButtonText;
	}
}

/* 7. TAMAÑO MÍNIMO DE ÁREA TÁCTIL — WCAG 2.5.5 Target Size */
button,
[role="button"],
.elementor-button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	min-height: 44px;
	min-width: 44px;
}

/* 8. FORMULARIOS ACCESIBLES — WCAG 1.3.1 + 3.3.2 Labels */
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
	border: 2px solid #d32f2f !important;
	background-color: #fff8f8;
}
.form-error-msg {
	color: #d32f2f;
	font-size: 0.875rem;
	margin-top: 0.25rem;
	display: block;
}
.form-error-msg::before {
	content: "⚠ ";
}

/* 9. TABLAS ACCESIBLES — WCAG 1.3.1 */
table th {
	font-weight: 700;
}
table caption {
	font-weight: 600;
	text-align: left;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}

/* Menú sticky (headerfix) — enlaces blancos sobre fondo oscuro
   Causa: Hello Elementor reset.css define a{color:#c36} y gana
   al CSS de Elementor. !important necesario. */
.elementor-location-header .headerfix .elementor-nav-menu--main .elementor-item {
	color: #ffffff !important;
	fill: #ffffff !important;
}
.elementor-location-header .headerfix .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .headerfix .elementor-nav-menu--main .elementor-item-active {
	color: #cbcfc0 !important;
}

/* Selector de idioma: centrado vertical en la fila sticky */
.elementor-location-header .headerfix .elementor-widget-wpml-language-switcher {
	align-self: center;
}
