/*
 * Mejoras estéticas sobre el tema original.
 * Se carga la última en todas las páginas: cualquier ajuste visual nuevo, mejor aquí.
 */

:root {
	--texto: #555555;          /* texto general sobre fondo claro (antes #898989) */
	--texto-suave: #6b6b6b;    /* textos secundarios sobre fondo claro */
	--texto-oscuro-bg: #d4d4d4; /* texto sobre fondos oscuros */
	--rojo: #c12031;
	--fuente-titulos: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--fuente-texto: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- 3. Contraste del texto ---------- */
body,
.body {
	color: var(--texto);
}

/* Textos sobre fondos oscuros (testimonios, pie de página) */
.testimonial_module,
.testimonials_wrap,
.testimonial_module p,
.testimonials_wrap .testimonial-content {
	color: var(--texto-oscuro-bg);
}

/* Pie de página (fondo oscuro) */
#tatsu-footer-container {
	color: var(--texto-oscuro-bg);
}

#tatsu-footer-container a[style*="color"],
#tatsu-footer-container .tatsu-text-inner a {
	color: #f07a86 !important;
}

/* Blog: fechas, categorías, resúmenes y barra lateral */
.post-meta,
.post-meta a,
.recent-post-date {
	color: var(--texto-suave) !important;
}

.style5-blog .post-content p,
.blog-post .post-content p,
.sidebar-widgets .widget a {
	color: var(--texto) !important;
}

.recent-post-date {
	font-size: 12px !important;
}

/* ---------- 5. Menú principal más legible ---------- */
#navigation .menu > li > a {
	font-size: 13.5px;
	letter-spacing: 0.06em;
}

/* ---------- 7. Tipografías unificadas: Montserrat (títulos y botones) + Roboto (texto) ---------- */
.tatsu-button,
.be-button,
input[type="submit"],
.more-link,
.mgbutton,
button {
	font-family: var(--fuente-titulos) !important;
}

#moove_gdpr_cookie_info_bar,
#moove_gdpr_cookie_info_bar *,
#moove_gdpr_cookie_modal,
#moove_gdpr_cookie_modal * {
	font-family: var(--fuente-texto) !important;
}

#moove_gdpr_cookie_info_bar .mgbutton,
#moove_gdpr_cookie_modal .mgbutton,
#moove_gdpr_cookie_modal .tab-title,
#moove_gdpr_cookie_modal .gdpr-nav-tab-title {
	font-family: var(--fuente-titulos) !important;
}

/* ---------- 8. Animaciones de aparición: en móvil, el contenido se muestra directamente ---------- */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
	.tatsu-animate,
	.be-animate,
	[data-animation] {
		opacity: 1 !important;
		visibility: visible !important;
		animation: none !important;
		transform: none !important;
	}
}

/* Títulos grandes en móvil: tamaño más contenido y sin partir palabras ("aportamo-s") */
@media (max-width: 767px) {
	h1, h1 *,
	h2, h2 *,
	h3, h3 * {
		word-break: normal !important;
		overflow-wrap: normal !important;
	}

	h1, h1 * {
		font-size: 34px !important;
		line-height: 1.2 !important;
	}

	h2, h2 * {
		font-size: 28px !important;
		line-height: 1.25 !important;
	}
}

/* ---------- 4. Mapa de contacto a lo ancho ---------- */
.mapa-ancho {
	max-width: 1160px;
	margin: 0 auto 70px;
	padding: 0 20px;
	box-sizing: border-box;
}

.mapa-ancho .tatsu-gmap-wrapper {
	height: 420px !important;
	opacity: 1 !important;
	margin-top: 10px;
}

@media (max-width: 767px) {
	.mapa-ancho .tatsu-gmap-wrapper {
		height: 300px !important;
	}
}

/* ---------- 6. Tarjetas de casos de éxito con foto propia ---------- */
.caso-con-foto .flip-img-wrap {
	position: relative;
	overflow: hidden;
}

/* la foto rellena el hueco que el tema reserva para la imagen (proporción 16:10) */
.caso-con-foto .flip-img-wrap img {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	filter: grayscale(1) brightness(0.5);
	transition: filter 0.3s ease, transform 0.4s ease;
}

.caso-con-foto:hover .flip-img-wrap img {
	filter: grayscale(0.3) brightness(0.45);
}

/* ---------- 10. Enlace a "Quiénes somos" sin quedar tapado por la cabecera fija ---------- */
#quienes-somos {
	scroll-margin-top: 170px;
}

/* ---------- Sección de productos en la home (SGA y MES) ---------- */
.productos-home {
	background: #f5f5f5;
	padding: 100px 20px 90px;
}

.productos-home__contenido {
	max-width: 1160px;
	margin: 0 auto;
}

.productos-home__titulo {
	text-align: center;
	margin-bottom: 15px;
}

.productos-home__titulo span {
	color: var(--rojo);
}

.productos-home__intro {
	max-width: 720px;
	margin: 0 auto 50px;
	text-align: center;
	font-size: 17px;
}

.productos-home__rejilla {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

.producto-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 6px;
	padding: 40px 40px 36px;
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.producto-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

.producto-card__logo {
	width: auto;
	height: 70px;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
	margin-bottom: 24px;
}

.producto-card__para {
	font-family: var(--fuente-titulos);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.5;
	color: var(--rojo);
	margin-bottom: 10px;
}

.producto-card__texto {
	margin-bottom: 18px;
}

.producto-card__lista {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.producto-card__lista li {
	position: relative;
	padding: 7px 0 7px 26px;
	border-top: 1px solid #eee;
	line-height: 1.5;
}

.producto-card__lista li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 13px;
	width: 10px;
	height: 5px;
	border-left: 2px solid var(--rojo);
	border-bottom: 2px solid var(--rojo);
	transform: rotate(-45deg);
}

/* botones alineados abajo aunque las tarjetas tengan textos de distinta longitud */
.producto-card__acciones {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
}

/* mismo botón que "MÁS INFORMACIÓN" del tema, relleno en el rojo corporativo; enlaza a la web de cada producto */
.producto-card__boton {
	display: inline-block;
	font-family: var(--fuente-titulos);
	font-size: 11px;
	letter-spacing: 1px;
	line-height: 12px;
	text-transform: uppercase;
	padding: 12px 25px;
	border-radius: 50px;
	border: 1px solid var(--rojo);
	background: var(--rojo);
	color: #fff !important;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.producto-card__boton:hover,
.producto-card__boton:focus {
	background: transparent;
	color: var(--rojo) !important;
}

.productos-home__ventajas {
	list-style: none;
	margin: 45px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 40px;
	font-size: 14px;
	color: var(--texto-suave);
}

.productos-home__ventajas strong {
	color: #222;
	font-weight: 500;
}

@media (max-width: 900px) {
	.productos-home__rejilla {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.productos-home {
		padding: 70px 16px 60px;
	}

	.producto-card {
		padding: 28px 22px 26px;
	}

	.producto-card__logo {
		height: 54px;
	}

	.productos-home__ventajas {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 8px;
	}
}

/* ---------- Cabecera de Empresa: velo desenfocado como en Proyectos y Contacto ---------- */
/* (en esas páginas el desenfoque viene en la propia foto; aquí se aplica sobre la capa oscura,
   que es compatible con el efecto parallax de la imagen) */
.tatsu-fqovuj1c5i9pcvua > .tatsu-section-overlay {
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* ---------- SEO: un solo H1 por página sin cambiar el aspecto de los títulos ---------- */
/* seo.py convierte en H1 el título real de cada página y pasa a H2 los H1 sobrantes;
   estas clases conservan el tamaño que tenía cada encabezado */
.titulo-entrada { font-size: 35px !important; line-height: 40px !important; font-weight: 400; letter-spacing: normal; color: #000; margin-bottom: 12px; }
.titulo-seccion { font-size: 42px !important; line-height: 63px !important; font-weight: 700; letter-spacing: -1px; margin-bottom: 0; }
.titulo-proyecto { font-size: 26px !important; line-height: 42px !important; font-weight: 400; letter-spacing: normal; margin-bottom: 0; }
.titulo-legal { font-size: 35px !important; line-height: 70px !important; font-weight: 400; letter-spacing: 2px; margin-bottom: 10px; }
.como-h1 { font-size: 50px; line-height: 70px; font-weight: 700; letter-spacing: -1px; }
.post-content h2.como-h1 { font-size: 50px !important; line-height: 70px !important; margin-bottom: 20px; }

.solo-lectores {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 767px) {
	.titulo-entrada, .titulo-entrada * { font-size: 35px !important; line-height: 43.75px !important; }
	.titulo-seccion, .titulo-seccion * { font-size: 28px !important; line-height: 35px !important; }
	.titulo-proyecto, .titulo-proyecto * { font-size: 26px !important; line-height: 42px !important; }
	.titulo-legal, .titulo-legal * { font-size: 35px !important; line-height: 70px !important; }
	.como-h1, .como-h1 * { font-size: 34px !important; line-height: 40.8px !important; }
	.post-content h2.como-h1, .post-content h2.como-h1 * { font-size: 34px !important; line-height: 40.8px !important; }
}

/* ---------- Blog: aire entre el paginado y el pie (categorías y proyectos ya lo tienen) ---------- */
.pagination_parent:not(.style5-blog) {
	padding-bottom: 80px;
}

@media (max-width: 767px) {
	.pagination_parent:not(.style5-blog) {
		padding-bottom: 50px;
	}
}

/* ---------- Home: sin el título «Control Solutions» cuando aparece el menú hamburguesa (≤ 960 px) ---------- */
/* se oculta solo visualmente: sigue siendo el H1 de la página para buscadores y lectores de pantalla */
@media only screen and (max-width: 960px) {
	.tatsu-fqovuiiic6cu4xwq {
		position: absolute !important;
		width: 1px; height: 1px;
		margin: -1px; padding: 0; border: 0;
		overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}

	/* textos deslizantes del carrusel: espacio por arriba para que no queden pegados a la cabecera */
	.tatsu-fqovuiiia7efcc72 .tatsu-column-pad {
		padding-top: 100px;
	}
}
