/*
 * TriGarden: estilos de la portada (solo se cargan en la portada).
 * Ritmo de bandas: foto (hero) → franja verde → blanco (servicios) → crema (proceso)
 * → verde profundo (trabajos) → crema (reseñas) → blanco (zonas) → crema (preguntas)
 * → blanco con tarjeta bosque (presupuesto) → pie verde profundo.
 * Solo se anima transform y opacity.
 */

:root {
	--tg-curva: cubic-bezier(0.2, 0.7, 0.2, 1);
	--tg-ancho: 1312px;
}

/* ---------- Marcadores de foto (hasta tener material real) ---------- */

.tg-foto {
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: 16px;
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(160deg, var(--wp--preset--color--salvia), var(--wp--preset--color--bosque) 60%, var(--wp--preset--color--profundo));
}

.tg-foto--b {
	background: linear-gradient(160deg, var(--wp--preset--color--bosque), var(--wp--preset--color--profundo));
}

.tg-foto--c {
	background: linear-gradient(160deg, var(--wp--preset--color--salvia), var(--wp--preset--color--bosque));
}

.tg-foto__etiqueta {
	position: relative;
	z-index: 1;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--wp--preset--color--crema);
	color: var(--wp--preset--color--profundo);
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: 0.04em;
}

/* ---------- Cabecera de sección (título + entradilla) ---------- */

.tg-cabecera-seccion {
	gap: 24px 64px;
}

.tg-cabecera-seccion h2 {
	max-width: 14em;
	margin: 0;
}

.tg-cabecera-seccion p {
	max-width: 26rem;
	margin: 0;
}

/* ---------- Hero: fotos reales que van cambiando, con el texto compacto ---------- */

.tg-hero {
	position: relative;
	background: var(--wp--preset--color--profundo);
}

.tg-hero__escenario {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: safe flex-end; /* Si no cabe, se alinea arriba en vez de cortarse por arriba. */
	min-height: min(calc(100svh - 120px), 900px);
	padding-top: clamp(96px, 14vh, 160px);
	padding-bottom: clamp(36px, 6vh, 64px);
	overflow: hidden;
	isolation: isolate;
}

.tg-hero__escenario > .tg-hero__fotos {
	position: absolute;
	inset: 0;
	z-index: -1;
	max-width: none;
	margin: 0;
}

/* Degradado solo detrás del texto (abajo a la izquierda): el resto de la foto se ve limpia. */
.tg-hero__fotos::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 68, 52, 0.7) 0%, rgba(7, 68, 52, 0.35) 38%, transparent 62%),
		linear-gradient(0deg, rgba(7, 68, 52, 0.6) 0%, transparent 42%);
}

.tg-hero__capa {
	position: absolute;
	inset: 0;
	animation: tg-asienta 9s ease-out both;
}

/*
 * Pase de fotos: portada.js cambia .es-activa cada pocos segundos. La nueva entra
 * con un fundido por encima de la anterior, que sigue visible hasta que se tapa.
 */
.tg-hero__foto {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.4s ease;
}

.tg-hero__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 55%;
}

.tg-hero__foto.es-activa {
	z-index: 1;
	opacity: 1;
}

.tg-hero__foto.es-anterior {
	opacity: 1;
}

/* El escenario es flex: sin esto el bloque de texto se encoge y se centra. */
.tg-hero__escenario > .tg-hero__texto {
	width: 100%;
}

/* Titular más contenido que en el resto de la web para que mande la foto. */
.tg-hero h1 {
	max-width: 11em;
	font-size: clamp(40px, 4.6vw, 64px);
	text-shadow: 0 2px 24px rgba(7, 68, 52, 0.35);
}

.tg-hero h1 em,
.tg-hero .tg-etiqueta {
	color: var(--wp--preset--color--crema);
}

.tg-hero .tg-etiqueta {
	text-shadow: 0 1px 12px rgba(7, 68, 52, 0.6);
}

.tg-hero__entradilla {
	max-width: 30rem;
	font-size: clamp(16px, 1.2vw, 17px);
}

.tg-hero__pie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 246, 231, 0.3);
}

.tg-valoracion {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--wp--preset--color--crema);
	text-decoration: none;
}

.tg-valoracion__nota {
	font-family: var(--wp--preset--font-family--chromate);
	font-size: 30px;
	line-height: 1;
}

.tg-valoracion__estrellas {
	font-size: 14px;
	letter-spacing: 0.12em;
}

.tg-valoracion__texto {
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tg-hero .tg-garantias {
	margin: 0;
	color: var(--wp--preset--color--crema);
	font-size: 14px;
}

/* Entrada en cascada del texto. El H1 no se anima: es el LCP. */
.tg-entra {
	animation: tg-sube 0.9s var(--tg-curva) both;
}

.tg-hero__entradilla.tg-entra {
	animation-delay: 0.3s;
}

.tg-hero .wp-block-buttons.tg-entra {
	animation-delay: 0.45s;
}

.tg-hero__pie.tg-entra {
	animation-delay: 0.6s;
}

/* ---------- Franja en movimiento ---------- */

.tg-franja {
	padding: 18px 0;
	overflow: hidden;
	background: var(--wp--preset--color--profundo);
	color: var(--wp--preset--color--crema);
}

.tg-franja__pista {
	display: flex;
	width: max-content;
	font-family: var(--wp--preset--font-family--chromate);
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.2;
	white-space: nowrap;
	animation: tg-desliza 38s linear infinite;
}

.tg-franja__pista span {
	padding-right: 0.6em;
}

/* ---------- Servicios: rejilla con tarjeta de foto y tarjetas de color ---------- */

.tg-servicios__rejilla {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

/* Tarjeta grande: foto de fondo con el texto encima. */
.tg-servicio-foto {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 520px;
	padding: clamp(24px, 3vw, 36px);
	overflow: hidden;
	isolation: isolate;
	border-radius: 24px;
	background: var(--wp--preset--color--profundo);
	color: var(--wp--preset--color--crema);
	text-decoration: none;
}

.tg-servicio-foto > img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--tg-curva);
}

.tg-servicio-foto::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(7, 68, 52, 0.92) 0%, rgba(7, 68, 52, 0.45) 55%, rgba(7, 68, 52, 0.1) 100%);
}

.tg-servicio-foto:hover > img {
	transform: scale(1.04);
}

.tg-servicio-foto__rotulo {
	align-self: flex-start;
	padding: 8px 14px;
	border: 1px solid rgba(255, 246, 231, 0.5);
	border-radius: 18px;
	font-size: var(--wp--preset--font-size--etiqueta);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tg-servicio-foto__texto {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tg-servicio-foto__titulo {
	margin: 0;
	color: var(--wp--preset--color--crema);
	font-size: clamp(40px, 4.4vw, 60px);
}

.tg-servicio-foto__descripcion {
	max-width: 26rem;
}

.tg-servicio-foto__enlace,
.tg-servicio-simple__enlace {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 44px;
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid currentColor;
	font-size: 15px;
}

.tg-servicio-foto__enlace span,
.tg-servicio-simple__enlace span {
	font-size: 24px;
	line-height: 1;
	transition: transform 0.25s ease;
}

.tg-servicio-foto:hover .tg-servicio-foto__enlace span,
.tg-servicio-simple:hover .tg-servicio-simple__enlace span {
	transform: rotate(90deg);
}

/* Tarjetas de color (comunidades y empresas). */
.tg-servicio-simple {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 270px;
	padding: clamp(24px, 3vw, 32px);
	border-radius: 24px;
	background: var(--wp--preset--color--crema);
	color: var(--wp--preset--color--profundo);
	text-decoration: none;
	transition: transform 0.25s ease;
}

.tg-servicio-simple:hover {
	transform: translateY(-4px);
}

.tg-servicio-simple__rotulo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--bosque);
	font-size: var(--wp--preset--font-size--etiqueta);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tg-servicio-simple__rotulo svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tg-servicio-simple__titulo {
	margin: 0;
	font-size: var(--wp--preset--font-size--titulo-3);
}

.tg-servicio-simple__descripcion {
	color: var(--wp--preset--color--bosque);
}

/* El enlace se queda abajo aunque el texto sea corto. */
.tg-servicio-simple__enlace {
	margin-top: auto;
}

/* Comunidades y empresas: tarjeta verde a todo el ancho, con los beneficios en fila. */
.tg-servicio-simple--destacado {
	grid-column: 1 / -1;
	min-height: 0;
	background: var(--wp--preset--color--profundo);
	color: var(--wp--preset--color--crema);
}

.tg-servicio-simple--destacado .tg-servicio-simple__rotulo,
.tg-servicio-simple--destacado .tg-servicio-simple__titulo {
	color: var(--wp--preset--color--crema);
}

.tg-servicio-simple__beneficios {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 8px 20px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.tg-servicio-simple__beneficios li {
	position: relative;
	padding-left: 24px;
}

.tg-servicio-simple__beneficios li::before {
	content: "✓";
	position: absolute;
	left: 0;
}

/* ---------- Así trabajamos ---------- */

.tg-proceso h2 {
	margin: 0;
}

.tg-pasos {
	gap: 28px;
}

.tg-paso {
	padding-top: 20px;
	border-top: 1.5px solid var(--wp--preset--color--salvia);
}

.tg-paso > * {
	margin: 0;
}

.tg-paso__numero {
	font-family: var(--wp--preset--font-family--chromate);
	font-size: 40px;
	line-height: 1;
	color: var(--wp--preset--color--salvia);
}

.tg-paso__titulo {
	font-size: 24px;
}

/* ---------- Trabajos reales: galería acordeón ---------- */

/*
 * El panel abierto crece (flex-grow) y su foto pasa de blanco y negro a color.
 * Los cerrados muestran solo el nombre en vertical. En móvil se apilan en columna.
 */
.tg-acordeon {
	display: flex;
	gap: 10px;
	height: clamp(440px, 62vh, 560px);
	/* Aire entre el titular de la sección y las fotos. */
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	list-style: none;
}

.tg-acordeon__panel {
	flex: 1 1 0;
	min-width: 0;
	min-height: 0;
	transition: flex-grow 0.6s var(--tg-curva);
}

.tg-acordeon__panel.es-abierto {
	flex-grow: 6.5;
}

.tg-acordeon__boton {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	overflow: hidden;
	isolation: isolate;
	border: 0;
	border-radius: 16px;
	background: var(--wp--preset--color--bosque);
	color: var(--wp--preset--color--crema);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.tg-acordeon__boton:focus-visible {
	outline: 2px solid var(--wp--preset--color--crema);
	outline-offset: 3px;
}

.tg-acordeon__boton img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transform: scale(1.08);
	transition: filter 0.6s ease, transform 0.9s var(--tg-curva);
}

.es-abierto .tg-acordeon__boton img {
	filter: none;
	transform: scale(1);
}

.tg-acordeon__boton::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(7, 68, 52, 0.88) 0%, rgba(7, 68, 52, 0.25) 50%, rgba(7, 68, 52, 0.1) 100%);
}

/* Nombre en vertical de los paneles cerrados. */
.tg-acordeon__nombre {
	position: absolute;
	bottom: 22px;
	left: 50%;
	font-size: var(--wp--preset--font-size--etiqueta);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	writing-mode: vertical-rl;
	transform: translateX(-50%) rotate(180deg);
	transition: opacity 0.3s ease;
}

.es-abierto .tg-acordeon__nombre {
	opacity: 0;
}

.tg-acordeon__texto {
	position: absolute;
	right: clamp(20px, 3vw, 32px);
	bottom: clamp(20px, 3vw, 32px);
	left: clamp(20px, 3vw, 32px);
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.3s ease, transform 0.5s var(--tg-curva);
}

.es-abierto .tg-acordeon__texto {
	opacity: 1;
	transform: none;
	transition-delay: 0.25s;
}

.tg-acordeon__tipo {
	font-size: var(--wp--preset--font-size--etiqueta);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tg-acordeon__titulo {
	font-family: var(--wp--preset--font-family--chromate);
	font-size: clamp(28px, 3.2vw, 46px);
	line-height: 1.05;
	letter-spacing: -0.015em;
	white-space: nowrap;
}

/* ---------- Carrusel (reseñas) ---------- */

.tg-carrusel__flechas {
	display: flex;
	gap: 12px;
}

.tg-carrusel__flecha {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1.5px solid var(--wp--preset--color--profundo);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--profundo);
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.tg-carrusel__flecha:hover {
	transform: translateY(-2px);
}

.tg-carrusel__flecha:active {
	transform: scale(0.95);
}

.tg-carrusel__flecha[disabled] {
	opacity: 0.35;
	cursor: default;
	transform: none;
}

.tg-carrusel__flecha svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Las tarjetas empiezan alineadas con el contenido y se deslizan hasta el borde. */
.tg-carrusel {
	--tg-margen: max(var(--wp--style--root--padding-left), calc((100% - var(--tg-ancho)) / 2));
	display: flex;
	gap: 20px;
	margin-block-end: 0;
	padding: 0 var(--tg-margen);
	overflow-x: auto;
	list-style: none;
	scroll-padding-inline: var(--tg-margen);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.tg-carrusel::-webkit-scrollbar {
	display: none;
}

.tg-carrusel:focus-visible {
	outline-color: var(--wp--preset--color--profundo);
}

/* ---------- Reseñas de Google ---------- */

.tg-resenas h2 {
	margin: 0;
}

.tg-nota-google {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 24px;
	border-radius: 24px;
	background: var(--wp--preset--color--blanco);
	color: var(--wp--preset--color--profundo);
	text-decoration: none;
	transition: transform 0.25s ease;
}

.tg-nota-google:hover {
	transform: translateY(-2px);
}

.tg-nota-google__nota {
	font-family: var(--wp--preset--font-family--chromate);
	font-size: 48px;
	line-height: 1;
}

.tg-nota-google__detalle {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
}

.tg-nota-google__estrellas,
.tg-resena__estrellas {
	color: var(--wp--preset--color--bosque);
	letter-spacing: 0.12em;
}

.tg-nota-google__enlace {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tg-resenas__controles {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.tg-resenas__nota {
	margin: 0;
	color: var(--wp--preset--color--bosque);
	font-size: 14px;
}

.tg-resenas .tg-carrusel {
	margin-block-start: 24px;
}

.tg-resenas .tg-carrusel__flecha {
	border-color: var(--wp--preset--color--profundo);
	color: var(--wp--preset--color--profundo);
}

.tg-resenas .tg-carrusel:focus-visible {
	outline-color: var(--wp--preset--color--profundo);
}

.tg-resena {
	display: flex;
	flex: 0 0 clamp(280px, 30vw, 400px);
	flex-direction: column;
	gap: 20px;
	padding: 32px;
	border-radius: 24px;
	background: var(--wp--preset--color--blanco);
	scroll-snap-align: start;
}

.tg-resena__texto {
	flex: 1;
	margin: 0;
}

.tg-resena__texto p {
	margin: 0;
	font-family: var(--wp--preset--font-family--chromate);
	font-size: 22px;
	line-height: 1.3;
}

.tg-resena__autor {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.tg-resena__autor strong {
	font-weight: 400;
}

.tg-resena__inicial {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--bosque);
	color: var(--wp--preset--color--crema);
	font-family: var(--wp--preset--font-family--chromate);
	font-size: 20px;
}

.tg-resena__fuente {
	display: block;
	color: var(--wp--preset--color--bosque);
	font-size: 13px;
}

/* ---------- Zonas ---------- */

.tg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tg-chips li {
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--wp--preset--color--profundo);
	color: var(--wp--preset--color--crema);
	line-height: 1.2;
}

.tg-chips .tg-chips__secundario {
	padding: 10.5px 20.5px;
	border: 1.5px solid var(--wp--preset--color--profundo);
	background: transparent;
	color: var(--wp--preset--color--profundo);
}

/* Mapa: solo se carga Google Maps cuando el visitante lo pide (cookies y peso). */
.tg-mapa {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	aspect-ratio: 4 / 3;
	padding: 24px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--salvia);
	border-radius: 24px;
	background: var(--wp--preset--color--crema);
	text-align: center;
}

.tg-mapa__icono {
	width: 44px;
	height: 44px;
	fill: none;
	stroke: var(--wp--preset--color--bosque);
	stroke-width: 1.6;
}

.tg-mapa__texto {
	margin: 0;
	color: var(--wp--preset--color--bosque);
}

.tg-mapa__texto small {
	font-size: 13px;
}

.tg-mapa__boton {
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--profundo);
	color: var(--wp--preset--color--crema);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.tg-mapa__boton:active {
	transform: scale(0.97);
}

.tg-mapa--cargado {
	padding: 0;
	border: 0;
}

.tg-mapa iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Preguntas frecuentes ---------- */

.tg-preguntas h2 {
	margin: 0;
}

/* Desplegables nativos (<details>): sin JS, con teclado, y el texto sigue en el HTML para Google. */
.tg-pregunta {
	border-top: 1px solid var(--wp--preset--color--salvia);
}

.tg-pregunta:last-child {
	border-bottom: 1px solid var(--wp--preset--color--salvia);
}

.tg-pregunta__resumen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 44px;
	padding-block: 24px;
	cursor: pointer;
	list-style: none;
}

.tg-pregunta__resumen::-webkit-details-marker {
	display: none;
}

.tg-pregunta__titulo {
	margin: 0;
	font-size: var(--wp--preset--font-size--titulo-3);
}

/* Signo + que gira a × al abrir. */
.tg-pregunta__icono {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--wp--preset--color--profundo);
	border-radius: 50%;
	transition: transform 0.3s var(--tg-curva);
}

.tg-pregunta__icono::before,
.tg-pregunta__icono::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 1.5px;
	margin: -0.75px 0 0 -8px;
	background: var(--wp--preset--color--profundo);
}

.tg-pregunta__icono::after {
	transform: rotate(90deg);
}

.tg-pregunta[open] .tg-pregunta__icono {
	transform: rotate(45deg);
}

.tg-pregunta__respuesta {
	max-width: 38rem;
	margin: 0;
	padding-bottom: 24px;
	color: var(--wp--preset--color--bosque);
}

.tg-pregunta[open] .tg-pregunta__respuesta {
	animation: tg-sube 0.4s var(--tg-curva) both;
}

@media (min-width: 782px) {
	.tg-preguntas__titulo > * {
		position: sticky;
		top: calc(var(--tg-alto-cabecera) + 24px);
	}
}

/* ---------- Presupuesto ---------- */

.tg-presupuesto__tarjeta {
	padding: clamp(28px, 5vw, 72px);
	border-radius: 32px;
}

.tg-presupuesto__texto p {
	max-width: 28rem;
}

.tg-boton-claro .wp-block-button__link {
	background: var(--wp--preset--color--crema);
	color: var(--wp--preset--color--profundo);
}

.tg-boton-claro .wp-block-button__link:hover {
	background: var(--wp--preset--color--blanco);
	color: var(--wp--preset--color--profundo);
}

.tg-boton-claro.is-style-outline .wp-block-button__link {
	border-color: var(--wp--preset--color--crema);
	background: transparent;
	color: var(--wp--preset--color--crema);
}

.tg-formulario {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(24px, 3vw, 36px);
	border-radius: 24px;
	background: var(--wp--preset--color--crema);
	color: var(--wp--preset--color--profundo);
}

.tg-formulario__aviso {
	margin: 0;
	padding: 8px 12px;
	border: 1px dashed var(--wp--preset--color--salvia);
	border-radius: 12px;
	background: var(--wp--preset--color--blanco);
	color: var(--wp--preset--color--bosque);
	font-size: 12px;
}

.tg-formulario__campo {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}

.tg-formulario :is(input:not([type="checkbox"]), select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--salvia);
	border-radius: 12px;
	background: var(--wp--preset--color--blanco);
	color: var(--wp--preset--color--profundo);
	font: inherit;
	font-size: 16px; /* 16 px o más: iOS no hace zoom al enfocar. */
}

.tg-formulario__fila {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.tg-formulario__privacidad {
	margin: 0;
	color: var(--wp--preset--color--bosque);
	font-size: 12px;
	line-height: 1.5;
}

.tg-formulario__opcional {
	color: var(--wp--preset--color--bosque);
}

.tg-formulario__enviar {
	min-height: 52px;
	padding: 16px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--profundo);
	color: var(--wp--preset--color--crema);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.tg-formulario__enviar[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ---------- Aparición al hacer scroll (solo navegadores compatibles) ---------- */

@supports (animation-timeline: view()) {
	.tg-aparece {
		animation: tg-sube linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 55%;
	}
}

/* ---------- Móvil ---------- */

@media (max-width: 781px) {
	/* Hero: ocupa la pantalla menos la cabecera y la barra fija de contacto. */
	.tg-hero__escenario {
		min-height: calc(100svh - var(--tg-alto-cabecera) - 73px);
		padding-top: 48px;
		padding-bottom: 28px;
	}

	/* Texto compacto: que la foto se vea por encima. */
	.tg-hero .tg-garantias {
		display: none;
	}

	.tg-hero__texto > * + * {
		margin-block-start: 16px !important;
	}

	.tg-hero h1 {
		font-size: clamp(36px, 10vw, 44px);
	}

	.tg-hero__entradilla {
		font-size: 15px;
	}

	.tg-hero .wp-block-buttons {
		flex-wrap: nowrap;
		gap: 10px;
	}

	.tg-hero .wp-block-button__link {
		padding: 14px;
		font-size: 14px;
		white-space: nowrap;
	}

	.tg-hero__pie {
		padding-top: 12px;
	}

	/* Móviles muy estrechos (320 px): los botones no caben en una fila. */
	@media (max-width: 359px) {
		.tg-hero .wp-block-buttons {
			flex-wrap: wrap;
		}
	}

	/* Degradado solo en la mitad de abajo, donde va el texto. */
	.tg-hero__fotos::after {
		background: linear-gradient(0deg, rgba(7, 68, 52, 0.92) 0%, rgba(7, 68, 52, 0.62) 42%, rgba(7, 68, 52, 0.3) 62%, transparent 82%);
	}

	.tg-franja {
		padding: 12px 0;
	}

	.tg-franja__pista {
		animation-duration: 30s;
	}

	.tg-carrusel__flechas {
		display: none;
	}

	/* Servicios: una columna, la foto primero. */
	.tg-servicios__rejilla {
		grid-template-columns: 1fr;
	}

	.tg-servicio-foto {
		grid-row: auto;
		min-height: 440px;
	}

	.tg-servicio-simple {
		min-height: 0;
	}


	/* Galería acordeón: paneles apilados; los cerrados miden más de 44 px de alto. */
	.tg-acordeon {
		flex-direction: column;
		gap: 8px;
		height: 660px;
	}

	.tg-acordeon__panel.es-abierto {
		flex-grow: 6;
	}

	.tg-acordeon__nombre {
		top: 50%;
		bottom: auto;
		left: 20px;
		writing-mode: horizontal-tb;
		transform: translateY(-50%);
	}

	.tg-acordeon__titulo {
		white-space: normal;
	}


	.tg-resena {
		flex-basis: 82vw;
		padding: 24px;
	}

	.tg-formulario__fila {
		grid-template-columns: 1fr;
	}

	/*
	 * Presupuesto: una sola tarjeta verde. El formulario pierde su caja crema y los
	 * campos van directamente sobre el verde, sin bordes.
	 */
	.tg-presupuesto__tarjeta {
		padding: 32px 20px;
		border-radius: 24px;
	}

	.tg-formulario {
		padding: 8px 0 0;
		border-radius: 0;
		background: none;
		color: var(--wp--preset--color--crema);
	}

	.tg-formulario :is(input:not([type="checkbox"]), select, textarea) {
		border-color: transparent;
	}

	.tg-formulario__opcional,
	.tg-formulario__privacidad {
		color: rgba(255, 246, 231, 0.75);
	}

	.tg-formulario__aviso {
		padding: 0;
		border: 0;
		background: none;
		color: rgba(255, 246, 231, 0.75);
	}

	.tg-formulario__enviar {
		background: var(--wp--preset--color--crema);
		color: var(--wp--preset--color--profundo);
	}
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
	.tg-hero__capa,
	.tg-hero__foto,
	.tg-acordeon__panel,
	.tg-acordeon__boton img,
	.tg-acordeon__texto,
	.tg-acordeon__nombre,
	.tg-entra,
	.tg-aparece,
	.tg-franja__pista {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Animaciones ---------- */

@keyframes tg-sube {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes tg-asienta {
	from {
		transform: scale(1.08);
	}

	to {
		transform: scale(1);
	}
}

@keyframes tg-desliza {
	to {
		transform: translateX(-50%);
	}
}
