/* ══════════════════════════════════════════════════════════════════
   CECO — SITE.CSS · DIRECCION "EARTHWORK"
   Hoja de estilo del SITIO PUBLICO. Solo carga en la pagina que
   lleva [ceco_home]: la app no arrastra nada de esto.
   ──────────────────────────────────────────────────────────────────
   DE DONDE SALE ESTE DISENO
   No de una plantilla de internet. De tu oficio:

     • El COLOR es el de la obra — tierra, polvo de caliche y el
       naranja de seguridad que llevan los chalecos y la maquinaria.
       Nada de verde sobre azul marino: eso es una web de software.
     • La TIPOGRAFIA es la de las calcomanias del equipo y los
       letreros de carretera: condensada, pesada, que se lee de lejos.
     • La ESTRUCTURA es la de un plano de nivelacion: una linea de
       perfil recorre la pagina con marcas de estacion, y las rayas
       de peligro separan las zonas.

   ✏️ PARA CAMBIAR LOS COLORES: las variables de aqui abajo.
   ⚠️ Todo se ve SIN JavaScript. El movimiento es un extra.
   ══════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════
   0. PALETA Y TIPOS
   ══════════════════════════════════════════════════════════════════ */

.chome {
	/* ── Tierra ── */
	--dirt:    #13100c;   /* Fondo: tierra mojada, casi negro */
	--soil:    #1c1712;   /* Paneles */
	--loam:    #262019;   /* Tarjetas */
	--edge:    #3a2f24;   /* Bordes */

	/* ── Luz ── */
	--caliche: #f2ece0;   /* Polvo de piedra caliza: el blanco de aqui */
	--chalk:   #b3a894;   /* Texto secundario */
	--ash:     #a39887;   /* Texto apagado.
	                     ⚠️ Era #7d7364 y daba 3.46:1 de contraste: los
	                     rotulos pequeños no se leian. El minimo para
	                     texto normal es 4.5:1. Este da 5.68:1. */

	/* ── Acentos ── */
	--hivis:   #ff8c1a;   /* Naranja de seguridad. EL color. */
	--hivis-d: #d96f00;
	--rust:    #b04a2c;   /* Acero oxidado */
	--sky:     #6fa8c7;   /* Frio, solo para contrastar */

	--max:  1240px;
	--gut:  clamp(18px, 4vw, 40px);
	--band: clamp(64px, 9vw, 130px);

	background: var(--dirt);
	color: var(--chalk);
	font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.62;
	margin: 0;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.chome *, .chome *::before, .chome *::after { box-sizing: border-box; }

/* ⚠️ :where() no suma especificidad: cualquier clase de abajo gana
   sin pelear. Escritas como ".chome p" mataban los margin:auto. */
:where(.chome) a { text-decoration: none; color: inherit; }
:where(.chome) img { max-width: 100%; display: block; }
:where(.chome) p { margin: 0 0 12px; }

.chome h1, .chome h2, .chome h3 {
	font-family: 'Anton', 'Barlow Condensed', Impact, sans-serif;
	font-weight: 400;
	color: var(--caliche);
	margin: 0 0 14px;
	line-height: .96;
	letter-spacing: .005em;
	text-transform: uppercase;
	text-wrap: balance;
}

.chome :focus-visible {
	outline: 3px solid var(--hivis);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Etiqueta tecnica: la letra de las cotas de un plano. */
.ch-tag {
	font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--hivis);
}

/* Raya de peligro: el divisor de la casa. */
.ch-hazard {
	height: 7px;
	background: repeating-linear-gradient(
		-45deg,
		var(--hivis) 0 14px,
		var(--dirt) 14px 28px
	);
	opacity: .9;
}

/* ══════════════════════════════════════════════════════════════════
   1. BARRA
   ══════════════════════════════════════════════════════════════════ */

.ch-nav {
	position: sticky;
	top: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 14px var(--gut);
	background: rgba(19, 16, 12, .8);
	backdrop-filter: blur(16px) saturate(1.2);
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	border-bottom: 1px solid transparent;
	transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.ch-nav.stuck {
	background: rgba(19, 16, 12, .97);
	border-bottom-color: var(--edge);
	padding-block: 9px;
}

.ch-logo { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.ch-logo img { height: 42px; width: auto; max-width: 210px; object-fit: contain; }

/* Marca tipografica: un bloque naranja con las iniciales. */
.ch-logo .lg {
	width: 42px; height: 42px;
	display: grid; place-items: center;
	background: var(--hivis);
	color: var(--dirt);
	font-family: 'Anton', sans-serif;
	font-size: 19px;
	letter-spacing: -.03em;
	flex-shrink: 0;
	/* Esquina cortada: como una placa de maquina. */
	clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.ch-logo .nm {
	font-family: 'Anton', sans-serif;
	font-size: 21px;
	line-height: 1;
	color: var(--caliche);
	text-transform: uppercase;
	letter-spacing: .01em;
	white-space: nowrap;
}
.ch-logo .nm small {
	display: block;
	margin-top: 3px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: .3em;
	color: var(--hivis);
}

.ch-links { display: flex; align-items: center; gap: 2px; }
.ch-links > a {
	position: relative;
	padding: 10px 14px;
	font-family: 'Barlow Condensed', 'Barlow', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--chalk);
	transition: color .18s ease;
}
.ch-links > a::after {
	content: '';
	position: absolute;
	left: 14px; right: 14px; bottom: 5px;
	height: 2px;
	background: var(--hivis);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}
.ch-links > a:hover { color: var(--caliche); }
.ch-links > a:hover::after { transform: scaleX(1); }

.ch-lang { display: flex; gap: 1px; margin-left: 10px; border: 1px solid var(--edge); }
.ch-lang a {
	padding: 6px 10px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	font-weight: 600;
	color: var(--ash);
}
.ch-lang a.on { background: var(--hivis); color: var(--dirt); }

.ch-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 10px;
	padding: 12px 20px;
	background: var(--hivis);
	color: var(--dirt) !important;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: .05em;
	white-space: nowrap;
	clip-path: polygon(0 0, 100% 0, 100% 68%, 92% 100%, 0 100%);
	transition: background .18s ease;
}
.ch-cta:hover { background: var(--caliche); }

.ch-burger {
	display: none;
	width: 46px; height: 46px;
	background: transparent;
	border: 1px solid var(--edge);
	color: var(--caliche);
	font-size: 19px;
	cursor: pointer;
}

/* Barra de avance de lectura: la linea naranja de arriba. */
.ch-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0;
	background: var(--hivis);
	z-index: 400;
	transition: width .1s linear;
}

/* ══════════════════════════════════════════════════════════════════
   2. PORTADA
   ══════════════════════════════════════════════════════════════════ */

.ch-hero {
	position: relative;
	min-height: min(94vh, 880px);
	display: grid;
	align-content: center;
	padding: clamp(70px, 12vw, 130px) var(--gut) clamp(90px, 11vw, 140px);
	overflow: hidden;
	isolation: isolate;
}

.ch-hero-media { position: absolute; inset: 0; z-index: -3; }
.ch-hero-media video,
.ch-hero-media > img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: saturate(.78) contrast(1.12) brightness(.72);
}

/* Velo: el texto tiene que leerse sobre CUALQUIER toma de dron. */
.ch-hero::before {
	content: '';
	position: absolute; inset: 0; z-index: -2;
	background:
		linear-gradient(180deg, rgba(19,16,12,.88) 0%, rgba(19,16,12,.5) 38%, rgba(19,16,12,.82) 78%, var(--dirt) 100%),
		linear-gradient(95deg, rgba(19,16,12,.9) 0%, transparent 62%);
}

/* Retícula de plano. */
.ch-hero::after {
	content: '';
	position: absolute; inset: 0; z-index: -1;
	background-image:
		linear-gradient(rgba(242,236,224,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(242,236,224,.035) 1px, transparent 1px);
	background-size: 74px 74px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
	pointer-events: none;
}

.ch-hero-in { max-width: var(--max); margin: 0 auto; width: 100%; position: relative; }

/* Franja de estacion: el dato tecnico arriba del titulo. */
.ch-station {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
	padding-left: 20px;
	border-left: 3px solid var(--hivis);
}
.ch-station span { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--chalk); }
.ch-station .live { color: var(--hivis); display: inline-flex; align-items: center; gap: 7px; }
.ch-station .dot { width: 8px; height: 8px; background: var(--hivis); border-radius: 50%; }

.ch-hero h1 {
	font-size: clamp(46px, 11.5vw, 148px);
	line-height: .85;
	letter-spacing: -.012em;
	margin: 0 0 26px;
	max-width: 15ch;
}
/* La segunda linea, en hueco: solo contorno.
   ⚠️ Encima de una foto de obra el contorno solo NO se lee: donde
   la foto tiene un trozo claro, el naranja desaparece. La sombra
   oscura detras es lo que lo salva, y no se nota como sombra: se
   lee como profundidad. */
.ch-hero h1 .out {
	display: block;
	color: transparent;
	-webkit-text-stroke: 2.5px var(--hivis);
	paint-order: stroke fill;
	text-shadow:
		0 2px 18px rgba(12, 9, 7, .95),
		0 0 46px rgba(12, 9, 7, .8);
}

/* La linea solida tambien: va encima de la misma foto. */
.ch-hero h1 .fill {
	text-shadow: 0 2px 22px rgba(12, 9, 7, .85);
}

/* ⚠️ En pantalla chica el contorno se afina solo (la letra es mas
   pequeña) y se pierde del todo. Ahi se rellena un poco. */
@media (max-width: 720px) {
	.ch-hero h1 .out {
		-webkit-text-stroke-width: 1.8px;
		color: rgba(255, 140, 26, .16);
	}
}
.ch-hero h1 .fill { display: block; color: var(--caliche); }


.ch-lede {
	font-size: clamp(16.5px, 1.9vw, 21px);
	color: var(--caliche);
	max-width: 46ch;
	margin: 0 0 34px;
	opacity: .92;
}

.ch-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.ch-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 15px 30px;
	border: 2px solid var(--caliche);
	background: transparent;
	color: var(--caliche);
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	overflow: hidden;
	transition: color .22s ease, border-color .22s ease;
}
/* El relleno entra deslizando, no aparece de golpe. */
.ch-btn::before {
	content: '';
	position: absolute; inset: 0;
	background: var(--caliche);
	transform: translateY(101%);
	transition: transform .28s cubic-bezier(.2, .8, .3, 1);
	z-index: -1;
}
.ch-btn:hover { color: var(--dirt); }
.ch-btn:hover::before { transform: translateY(0); }

.ch-btn.primary {
	background: var(--hivis);
	border-color: var(--hivis);
	color: var(--dirt);
	clip-path: polygon(0 0, 100% 0, 100% 74%, 94% 100%, 0 100%);
}
.ch-btn.primary::before { background: var(--caliche); }
.ch-btn.primary:hover { color: var(--dirt); border-color: var(--caliche); }
.ch-btn.big { width: 100%; min-height: 62px; font-size: 20px; }

.ch-creds {
	margin-top: 26px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: .1em;
	color: var(--hivis);
	text-transform: uppercase;
}

/* Perfil del terreno al pie de la portada. */
.ch-profile { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; }
.ch-profile svg { width: 100%; height: clamp(80px, 12vw, 170px); display: block; }

/* ══════════════════════════════════════════════════════════════════
   3. CIFRAS — como estacas de topografia
   ══════════════════════════════════════════════════════════════════ */

.ch-proof {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	background: var(--soil);
	border-block: 1px solid var(--edge);
}

.ch-proof-item {
	padding: clamp(26px, 3.6vw, 42px) 20px;
	border-right: 1px solid var(--edge);
	position: relative;
}
.ch-proof-item:last-child { border-right: none; }

/* Marca de estaca arriba de cada cifra. */
.ch-proof-item::before {
	content: '';
	position: absolute;
	top: 0; left: 20px;
	width: 26px; height: 3px;
	background: var(--hivis);
}

.ch-proof-item b {
	display: block;
	font-family: 'Anton', sans-serif;
	font-size: clamp(38px, 5.6vw, 66px);
	line-height: .9;
	color: var(--caliche);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
}
.ch-proof-item span {
	display: block;
	margin-top: 12px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ash);
}

/* ══════════════════════════════════════════════════════════════════
   4. SECCIONES
   ══════════════════════════════════════════════════════════════════ */

.ch-section { padding: var(--band) var(--gut); position: relative; }
.ch-section.alt { background: var(--soil); }

.ch-in { max-width: var(--max); margin: 0 auto; }

/* Cabecera de seccion: numero de estacion + titulo enorme. */
.ch-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(18px, 3vw, 40px);
	align-items: start;
	margin-bottom: clamp(38px, 5vw, 64px);
	padding-bottom: 26px;
	border-bottom: 1px solid var(--edge);
}
.ch-head .no {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: .16em;
	color: var(--hivis);
	padding-top: 10px;
	white-space: nowrap;
}
.ch-head h2 {
	font-size: clamp(30px, 5.4vw, 62px);
	margin: 0 0 10px;
	max-width: 18ch;
}
.ch-head p { margin: 0; color: var(--chalk); max-width: 58ch; font-size: clamp(15.5px, 1.7vw, 18px); }

/* ══════════════════════════════════════════════════════════════════
   5. SERVICIOS
   ══════════════════════════════════════════════════════════════════ */

/* ⚠️ FLEX Y NO REJILLA, A PROPOSITO.
   Con rejilla de 3 columnas y 5 servicios quedaban 3 arriba, 2
   abajo y un AGUJERO NEGRO en la esquina. Con flex las dos de
   abajo crecen y se reparten el ancho: nunca queda hueco, tengas
   4, 5 o 7 servicios. */
.ch-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	background: var(--edge);
	border: 1px solid var(--edge);
}
.ch-grid > * { flex: 1 1 310px; min-width: 0; }

.ch-card {
	position: relative;
	background: var(--loam);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: background .25s ease;
}
.ch-card:hover { background: #2e261d; }

/* Barra naranja que crece al pasar por encima. */
.ch-card::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	height: 4px; width: 0;
	background: var(--hivis);
	transition: width .35s cubic-bezier(.2, .8, .3, 1);
	z-index: 3;
}
.ch-card:hover::after { width: 100%; }

.ch-card-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dirt); }
.ch-card-art img, .ch-card-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-card-art img { transition: transform .6s cubic-bezier(.2, .8, .3, 1); }
.ch-card:hover .ch-card-art img { transform: scale(1.07); }
.ch-card-art::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(19,16,12,.92) 100%);
}

.ch-no {
	position: absolute;
	top: 14px; left: 16px;
	z-index: 2;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: .14em;
	color: var(--hivis);
}
/* ⚠️ Ya no es un emoji, es un dibujo de linea (ver ceco_service_icon).
   Hereda el color del texto, asi que se le pone el naranja de la casa
   y asi se ve IGUAL en un iPhone, en un Android y en un PC. */
.ch-icon {
	position: absolute;
	right: 14px; bottom: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--hivis);
	background: rgba(19, 16, 12, .72);
	border: 1px solid rgba(255, 140, 26, .35);
	backdrop-filter: blur(4px);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ch-icon svg { width: 22px; height: 22px; display: block; }

/* Al pasar por la tarjeta, el icono se enciende. */
.ch-card:hover .ch-icon,
.ch-svc:hover .ch-icon {
	background: var(--hivis);
	border-color: var(--hivis);
	color: var(--dirt);
}

.ch-card-body { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ch-card h3 { font-size: 24px; margin: 0; color: var(--caliche); }
.ch-card p { margin: 0; font-size: 15px; color: var(--chalk); }

.ch-card ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.ch-card li {
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ash);
	border: 1px solid var(--edge);
	padding: 4px 9px;
}

/* ══════════════════════════════════════════════════════════════════
   6. ANTES Y DESPUES — el argumento de venta de un excavador
   ══════════════════════════════════════════════════════════════════ */

.ch-ba {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--edge);
	user-select: none;
	touch-action: pan-y;
	cursor: ew-resize;
	background: var(--soil);
}
.ch-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* La capa de "despues" se recorta con el deslizador. */
.ch-ba .after { clip-path: inset(0 0 0 var(--split, 50%)); }

.ch-ba-handle {
	position: absolute;
	top: 0; bottom: 0;
	left: var(--split, 50%);
	width: 3px;
	background: var(--hivis);
	pointer-events: none;
}
.ch-ba-handle::after {
	content: '↔';
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 46px; height: 46px;
	display: grid; place-items: center;
	background: var(--hivis);
	color: var(--dirt);
	border-radius: 50%;
	font-size: 19px;
	font-weight: 700;
}
.ch-ba-lab {
	position: absolute;
	top: 14px;
	padding: 5px 12px;
	background: rgba(19,16,12,.85);
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--caliche);
	pointer-events: none;
}
.ch-ba-lab.l { left: 14px; }
.ch-ba-lab.r { right: 14px; color: var(--hivis); }

/* ══════════════════════════════════════════════════════════════════
   7. GALERIA
   ══════════════════════════════════════════════════════════════════ */

.ch-filters { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 34px; border: 1px solid var(--edge); width: fit-content; }
.ch-filter {
	padding: 11px 20px;
	min-height: 44px;
	background: transparent;
	border: none;
	border-right: 1px solid var(--edge);
	color: var(--chalk);
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all .18s ease;
}
.ch-filter:last-child { border-right: none; }
.ch-filter:hover { color: var(--caliche); background: var(--loam); }
.ch-filter.on { background: var(--hivis); color: var(--dirt); }

.ch-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2px; background: var(--edge); border: 1px solid var(--edge); }

.ch-job {
	position: relative;
	background: var(--loam);
	overflow: hidden;
	cursor: pointer;
	transition: background .25s ease;
}
.ch-job:hover { background: #2e261d; }
.ch-job[hidden] { display: none; }

.ch-job-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dirt); }
.ch-job-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.ch-job:hover .ch-job-img img { transform: scale(1.07); }

/* Lupa que aparece al pasar por encima. */
.ch-job-img::after {
	content: '⤢';
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%) scale(.6);
	width: 58px; height: 58px;
	display: grid; place-items: center;
	background: var(--hivis);
	color: var(--dirt);
	font-size: 22px;
	opacity: 0;
	transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.3,1);
}
.ch-job:hover .ch-job-img::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.ch-job-count {
	position: absolute;
	right: 12px; bottom: 12px;
	z-index: 2;
	background: rgba(19,16,12,.88);
	border: 1px solid var(--edge);
	color: var(--caliche);
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	padding: 4px 9px;
}

.ch-job-body { padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.ch-job-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--hivis); }
.ch-job-body h3 { font-size: 21px; margin: 0; }
.ch-job-body p { margin: 0; font-size: 14.5px; color: var(--chalk); }
.ch-job-body small { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ash); letter-spacing: .06em; }

.ch-empty-work {
	padding: 54px 30px;
	border: 2px dashed var(--edge);
	text-align: center;
	color: var(--ash);
	font-size: 15px;
}
.ch-empty-work b { display: block; color: var(--caliche); font-family: 'Anton', sans-serif; font-size: 24px; text-transform: uppercase; margin-bottom: 10px; }

/* ── Visor ── */
/* Las reglas del visor viven ahora en el bloque 24. */
/* Los botones del visor se definen en el bloque 24. */

/* ══════════════════════════════════════════════════════════════════
   8. PROCESO — lista de estaciones
   ══════════════════════════════════════════════════════════════════ */

.ch-steps { list-style: none; counter-reset: paso; margin: 0; padding: 0; }
.ch-steps li {
	counter-increment: paso;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(18px, 3vw, 40px);
	align-items: baseline;
	padding: clamp(22px, 3vw, 34px) 0;
	border-bottom: 1px solid var(--edge);
	transition: padding-left .3s cubic-bezier(.2,.8,.3,1);
}
.ch-steps li:hover { padding-left: 14px; }
.ch-steps li::before {
	content: 'STA ' counter(paso, decimal-leading-zero);
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: .14em;
	color: var(--hivis);
	white-space: nowrap;
}
.ch-steps li b {
	display: block;
	font-family: 'Anton', sans-serif;
	font-weight: 400;
	font-size: clamp(21px, 2.8vw, 32px);
	text-transform: uppercase;
	color: var(--caliche);
	margin-bottom: 6px;
	line-height: 1.02;
}
.ch-steps li p { margin: 0; font-size: 15.5px; color: var(--chalk); max-width: 62ch; }

/* ══════════════════════════════════════════════════════════════════
   9. FLOTA
   ══════════════════════════════════════════════════════════════════ */

.ch-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 5vw, 60px); align-items: center; }
.ch-split h3 { font-size: clamp(26px, 3.8vw, 42px); }
.ch-split p { color: var(--chalk); font-size: 16.5px; }

.ch-fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--edge); border: 1px solid var(--edge); }
.ch-fleet-card { background: var(--loam); padding: 26px 14px; text-align: center; }
.ch-fleet-card span { font-size: 28px; display: block; }
.ch-fleet-card b {
	display: block;
	font-family: 'Anton', sans-serif;
	font-size: 38px;
	color: var(--hivis);
	line-height: 1;
	margin: 8px 0 6px;
	font-variant-numeric: tabular-nums;
}
.ch-fleet-card p { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }

/* ══════════════════════════════════════════════════════════════════
   10. ZONA
   ══════════════════════════════════════════════════════════════════ */

.ch-area { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--edge); }
.ch-city {
	flex: 1 1 auto;
	padding: 16px 22px;
	border-right: 1px solid var(--edge);
	border-bottom: 1px solid var(--edge);
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--chalk);
	text-align: center;
	transition: all .18s ease;
}
.ch-city:hover { background: var(--hivis); color: var(--dirt); }

/* ══════════════════════════════════════════════════════════════════
   11. PREGUNTAS
   ══════════════════════════════════════════════════════════════════ */

.ch-faq { max-width: 860px; }
.ch-faq details { border-bottom: 1px solid var(--edge); }
.ch-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 40px 22px 0;
	position: relative;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: clamp(18px, 2.2vw, 23px);
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--caliche);
}
.ch-faq summary::-webkit-details-marker { display: none; }
.ch-faq summary::after {
	content: '+';
	position: absolute;
	right: 4px; top: 50%;
	transform: translateY(-50%);
	font-family: 'JetBrains Mono', monospace;
	font-size: 26px;
	color: var(--hivis);
	transition: transform .25s ease;
}
.ch-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ch-faq details p { padding: 0 40px 24px 0; margin: 0; color: var(--chalk); font-size: 16px; }

/* ══════════════════════════════════════════════════════════════════
   12. FORMULARIO
   ══════════════════════════════════════════════════════════════════ */

.ch-quote { background: var(--soil); }

.ch-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	padding: clamp(26px, 4vw, 44px);
	background: var(--loam);
	border: 1px solid var(--edge);
	border-top: 4px solid var(--hivis);
}
.ch-form .ch-field.wide { grid-column: 1 / -1; }

.ch-field { display: flex; flex-direction: column; gap: 8px; }
.ch-field label {
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ash);
}

.ch-field input, .ch-field select, .ch-field textarea {
	width: 100%;
	min-height: 54px;
	padding: 14px 16px;
	background: var(--dirt);
	border: 1px solid var(--edge);
	color: var(--caliche);
	font-family: 'Barlow', sans-serif;
	font-size: 16px;   /* 16px: evita que el iPhone haga zoom al tocar */
	transition: border-color .18s ease;
}
.ch-field textarea { min-height: 128px; resize: vertical; }
.ch-field input:focus, .ch-field select:focus, .ch-field textarea:focus {
	outline: none;
	border-color: var(--hivis);
}
.ch-field input::placeholder, .ch-field textarea::placeholder { color: #5d5648; }

.ch-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ch-form-msg { margin: 14px 0 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; min-height: 18px; }
.ch-form-msg.bad { color: var(--rust); }

.ch-thanks {
	grid-column: 1 / -1;
	text-align: center;
	padding: 54px 24px;
	border: 2px solid var(--hivis);
}
.ch-thanks b { font-family: 'Anton', sans-serif; font-size: 26px; text-transform: uppercase; color: var(--hivis); }

.ch-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; background: var(--edge); border: 1px solid var(--edge); margin-top: 2px; }
.ch-contact-card { background: var(--loam); padding: 30px 22px; transition: background .2s ease; }
.ch-contact-card:hover { background: var(--hivis); }
.ch-contact-card:hover * { color: var(--dirt) !important; }
.ch-contact-card span { font-size: 26px; display: block; margin-bottom: 12px; }
.ch-contact-card b { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 600; color: var(--caliche); word-break: break-word; }
.ch-contact-card small { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }

/* ══════════════════════════════════════════════════════════════════
   13. PIE
   ══════════════════════════════════════════════════════════════════ */

.ch-foot { padding: clamp(40px, 6vw, 70px) var(--gut) 40px; border-top: 1px solid var(--edge); }
.ch-foot-in { max-width: var(--max); margin: 0 auto; }
.ch-foot-big {
	font-family: 'Anton', sans-serif;
	font-size: clamp(34px, 9vw, 110px);
	line-height: .9;
	text-transform: uppercase;
	color: var(--loam);
	margin: 0 0 30px;
	letter-spacing: -.01em;
	/* Marca de agua enorme: cierra la pagina con peso. */
}
.ch-foot p { color: var(--ash); font-size: 14px; margin: 0 0 6px; }
.ch-foot .mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; }
.ch-foot a { color: var(--hivis); }

.ch-callbar {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 300;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: rgba(19,16,12,.97);
	border-top: 2px solid var(--hivis);
	gap: 10px;
}
.ch-callbar .ch-btn { flex: 1; min-height: 54px; padding-inline: 12px; font-size: 17px; }

/* ══════════════════════════════════════════════════════════════════
   14. MOVIL
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
	.ch-burger { display: grid; place-items: center; }

	.ch-links {
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0;
		background: var(--dirt);
		border-bottom: 2px solid var(--hivis);
		display: none;
	}
	.ch-links.open { display: flex; }
	.ch-links > a { padding: 17px 22px; font-size: 19px; border-bottom: 1px solid var(--edge); }
	.ch-links > a::after { display: none; }
	.ch-cta { margin: 14px 22px 18px; justify-content: center; }
	.ch-lang { margin: 14px 22px 0; align-self: flex-start; }

	.ch-callbar { display: flex; }
	.ch-foot { padding-bottom: 100px; }

	.ch-head { grid-template-columns: 1fr; gap: 10px; }
	.ch-steps li { grid-template-columns: 1fr; gap: 8px; }
	.ch-fleet { grid-template-columns: 1fr; }
	.ch-city { flex: 1 1 45%; }
}

@media (max-width: 620px) {
	.ch-form { grid-template-columns: 1fr; }
	.ch-hero { min-height: auto; }
	.ch-hero h1 .out { -webkit-text-stroke-width: 1.5px; }
	.ch-proof-item { border-right: none; border-bottom: 1px solid var(--edge); }
}

/* ══════════════════════════════════════════════════════════════════
   15. MOVIMIENTO
   Solo con JavaScript (.js) y solo si no pidieron menos animacion.
   ══════════════════════════════════════════════════════════════════ */

.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.8,.3,1), transform .8s cubic-bezier(.2,.8,.3,1); }
.js .reveal.seen { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .09s; }
.js .reveal[data-d="2"] { transition-delay: .18s; }
.js .reveal[data-d="3"] { transition-delay: .27s; }
.js .reveal[data-d="4"] { transition-delay: .36s; }

/* Titulo de portada: entra por lineas, como un letrero armandose. */
.js .ch-hero h1 span { display: block; opacity: 0; transform: translateY(34px); animation: chRise .95s cubic-bezier(.2,.8,.3,1) forwards; }
.js .ch-hero h1 span:nth-child(1) { animation-delay: .12s; }
.js .ch-hero h1 span:nth-child(2) { animation-delay: .26s; }
@keyframes chRise { to { opacity: 1; transform: none; } }

.js .ch-station, .js .ch-lede, .js .ch-hero-btns {
	opacity: 0;
	animation: chRise .9s cubic-bezier(.2,.8,.3,1) forwards;
}
.js .ch-station { animation-delay: .04s; }
.js .ch-lede { animation-delay: .42s; }
.js .ch-hero-btns { animation-delay: .54s; }

@keyframes chPing {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255,140,26,.65); }
	55%      { box-shadow: 0 0 0 9px rgba(255,140,26,0); }
}
.js .ch-station .dot { animation: chPing 2.3s ease-in-out infinite; }

/* La linea del perfil se dibuja sola. */
.js .ch-profile path.draw {
	stroke-dasharray: 2600;
	stroke-dashoffset: 2600;
	animation: chDraw 3s ease-out .5s forwards;
}
@keyframes chDraw { to { stroke-dashoffset: 0; } }

/* ⚠️ Quien pidio menos movimiento, no lo recibe. */
@media (prefers-reduced-motion: reduce) {
	.chome *, .chome *::before, .chome *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.js .reveal { opacity: 1; transform: none; }
	.js .ch-hero h1 span, .js .ch-station, .js .ch-lede, .js .ch-hero-btns { opacity: 1; transform: none; }
	.js .ch-profile path.draw { stroke-dashoffset: 0; }
}

/* Impresion */
@media print {
	.ch-nav, .ch-callbar, .ch-hero-media, .ch-lb, .ch-progress, .ch-profile { display: none !important; }
	.chome { background: #fff; color: #000; }
	.chome h1, .chome h2, .chome h3 { color: #000; }
}

/* ══════════════════════════════════════════════════════════════════
   16. ESCENA DE PORTADA ANIMADA
   El "video" que se ve mientras no subas el tuyo. Son capas que se
   mueven a distinta velocidad: eso es lo que da la sensacion de que
   la camara vuela sobre el terreno.
   ══════════════════════════════════════════════════════════════════ */

.ch-scene { position: absolute; inset: 0; overflow: hidden; }
.ch-scene svg { width: 100%; height: 100%; display: block; }

/* Deriva lenta de la camara sobre toda la escena. */
@keyframes chFly {
	0%   { transform: scale(1.08) translate3d(0, 0, 0); }
	50%  { transform: scale(1.16) translate3d(-1.6%, -1.1%, 0); }
	100% { transform: scale(1.08) translate3d(0, 0, 0); }
}
.js .ch-scene svg { animation: chFly 34s ease-in-out infinite; transform-origin: 58% 72%; }

/* Paralaje: lo lejano se mueve poco, lo cercano mucho. Asi se lee
   la profundidad sin necesidad de video. */
@keyframes chDrift { to { transform: translateX(var(--to)); } }

.js .ch-scene .far  { --to: 22px;  animation: chDrift 40s ease-in-out infinite alternate; }
.js .ch-scene .mid  { --to: -34px; animation: chDrift 30s ease-in-out infinite alternate; }
.js .ch-scene .near { --to: 52px;  animation: chDrift 22s ease-in-out infinite alternate; }

/* Bruma que respira. */
@keyframes chHazeMove {
	0%, 100% { transform: translateX(-4%); opacity: .55; }
	50%      { transform: translateX(4%);  opacity: .95; }
}
.js .ch-scene .h1 { animation: chHazeMove 26s ease-in-out infinite; }
.js .ch-scene .h2 { animation: chHazeMove 19s ease-in-out infinite reverse; }

/* Polvo en suspension. */
@keyframes chDust {
	0%   { transform: translate(0, 0);        opacity: .15; }
	40%  { opacity: .55; }
	100% { transform: translate(60px, -46px); opacity: 0; }
}
.js .ch-scene .dust circle { animation: chDust 13s linear infinite; }
.js .ch-scene .dust circle:nth-child(2) { animation-duration: 17s; animation-delay: -4s; }
.js .ch-scene .dust circle:nth-child(3) { animation-duration: 11s; animation-delay: -7s; }
.js .ch-scene .dust circle:nth-child(4) { animation-duration: 15s; animation-delay: -2s; }
.js .ch-scene .dust circle:nth-child(5) { animation-duration: 19s; animation-delay: -9s; }
.js .ch-scene .dust circle:nth-child(6) { animation-duration: 12s; animation-delay: -5s; }

/* ⚠️ Quien pidio menos movimiento ve la escena quieta, no vacia. */
@media (prefers-reduced-motion: reduce) {
	.js .ch-scene svg,
	.js .ch-scene .far, .js .ch-scene .mid, .js .ch-scene .near,
	.js .ch-scene .haze, .js .ch-scene .dust circle {
		animation: none !important;
		transform: none !important;
		opacity: 1;
	}
}

/* ══════════════════════════════════════════════════════════════════
   17. ARREGLOS DE COMPOSICION  (v37)
   Cosas que solo se vieron cuando el sitio estuvo en vivo con fotos
   de verdad. En la maqueta no se notaban.
   ══════════════════════════════════════════════════════════════════ */

/* ── La galeria con POCOS trabajos dejaba huecos vacios ──
   Con 1 o 2 proyectos, la rejilla de 3 columnas se veia rota. Ahora
   se adapta: uno solo ocupa el ancho grande y luce. */
.ch-work[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.ch-work[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ch-work[data-n="1"] .ch-job { display: grid; grid-template-columns: 1.15fr 1fr; }
.ch-work[data-n="1"] .ch-job-img { aspect-ratio: auto; height: 100%; min-height: 340px; }
.ch-work[data-n="1"] .ch-job-body { justify-content: center; padding: clamp(24px, 4vw, 48px); }
.ch-work[data-n="1"] .ch-job-body h3 { font-size: clamp(24px, 3.4vw, 38px); }
.ch-work[data-n="1"] .ch-job-body p { font-size: 16px; }

@media (max-width: 760px) {
	.ch-work[data-n="1"] .ch-job,
	.ch-work[data-n="2"] { grid-template-columns: 1fr; }
	.ch-work[data-n="1"] .ch-job-img { min-height: 220px; }
}

/* ── Las ciudades dejaban huerfanas abajo ──
   Antes "New Braunfels" y "San Antonio" caian solas en una fila
   centrada y se veia descuidado. Rejilla: siempre cuadra. */
/* ⚠️ AQUI HABIA UNA SEGUNDA REGLA .ch-area QUE LO ROMPIA TODO.
   Ponia rejilla de 7 columnas, y como va despues de la buena,
   ganaba. Con 11 ciudades sobraban 3 casillas vacias al final.
   La buena esta mas arriba y usa flex: las ciudades se reparten
   el ancho y nunca queda un hueco, haya 7, 11 o 14. */
.ch-city { border-right: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }

/* ── El proceso se veia vacio a la derecha ──
   Numeros de estacion mucho mas grandes y texto con mas peso. */
.ch-steps li { grid-template-columns: minmax(130px, auto) minmax(0, 1fr); align-items: start; }
.ch-steps li::before {
	font-family: 'Anton', sans-serif;
	font-size: clamp(30px, 4vw, 52px);
	letter-spacing: -.02em;
	line-height: .85;
	opacity: .85;
}
.ch-steps li p { font-size: 16.5px; }

/* ── La flota quedaba apretada ── */
.ch-fleet-card { padding: 32px 16px; }
.ch-fleet-card b { font-size: clamp(38px, 5vw, 56px); }

/* ── Fotos con texto quemado dentro ──
   Varias de tus fotos ya traen rotulo encima. El degradado fuerte
   evita que ese texto choque con el titulo de la tarjeta. */
.ch-card-art::after { background: linear-gradient(180deg, rgba(19,16,12,.25) 0%, rgba(19,16,12,.1) 38%, rgba(19,16,12,.97) 100%); }
.ch-job-img::before {
	content: '';
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(19,16,12,.18) 0%, transparent 45%);
}

/* ══════════════════════════════════════════════════════════════════
   18. CINTA DESLIZANTE
   Una banda que corre sola con lo que haces. Da vida a la pagina sin
   estorbar, y de paso repite tus servicios (bueno para Google).
   ══════════════════════════════════════════════════════════════════ */

.ch-ticker {
	overflow: hidden;
	background: var(--hivis);
	border-block: 1px solid var(--dirt);
	padding: 13px 0;
	white-space: nowrap;
	/* Se difumina en los bordes: no se ve un corte seco. */
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ch-ticker-in { display: inline-flex; align-items: center; gap: 0; }
.ch-ticker span {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	padding: 0 22px;
	font-family: 'Anton', sans-serif;
	font-size: clamp(17px, 2.2vw, 26px);
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--dirt);
}
.ch-ticker span::after { content: '\25CF'; font-size: 9px; opacity: .55; }

@keyframes chRoll { to { transform: translateX(-50%); } }
.js .ch-ticker-in { animation: chRoll 38s linear infinite; }
.ch-ticker:hover .ch-ticker-in { animation-play-state: paused; }

.ch-ticker.dark { background: var(--dirt); border-block-color: var(--edge); }
.ch-ticker.dark span { color: var(--hivis); }

/* ══════════════════════════════════════════════════════════════════
   19. MOVIMIENTO AVANZADO  (v37)
   ══════════════════════════════════════════════════════════════════ */

/* La foto de portada se mueve mas lento que el texto: da profundidad. */
.js .ch-hero-media { will-change: transform; }

/* Los titulos se descubren como una persiana. */
.js .wipe { overflow: hidden; }
.js .wipe > span {
	display: block;
	transform: translateY(105%);
	transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}
.js .wipe.seen > span { transform: none; }

/* La raya de la cabecera de seccion se dibuja sola. */
.js .ch-head { position: relative; border-bottom-color: transparent; }
.js .ch-head::after {
	content: '';
	position: absolute;
	left: 0; bottom: -1px;
	height: 1px; width: 0;
	background: var(--edge);
	transition: width 1.1s cubic-bezier(.16, 1, .3, 1) .15s;
}
.js .ch-head.seen::after { width: 100%; }

/* El numero de estacion se queda pegado mientras lees la seccion. */
@media (min-width: 981px) {
	.ch-head .no { position: sticky; top: 100px; }
}

/* Las tarjetas entran con un giro minimo: se siente fisico. */
.js .ch-card.reveal, .js .ch-job.reveal { transform: translateY(34px) scale(.985); }

/* ⚠️ El giro 3D entra por una VARIABLE, no por un style directo.
   La animacion de entrada usa transform tambien; si el raton
   escribiera transform encima, la tarjeta pegaria un salto al
   aparecer. Asi cada uno manda en lo suyo. */
/* ⚠️ Una sola regla. Antes habia otra igual justo debajo con
   transform: none, y al ir despues ganaba y mataba el giro 3D.
   El var(--tilt, none) ya devuelve none cuando no hay giro. */
.js .ch-card.reveal.seen, .js .ch-job.reveal.seen { transform: var(--tilt, none); }

/* Las fotos se descubren de abajo a arriba. */
.js .ch-job-img img, .js .ch-card-art img {
	clip-path: inset(100% 0 0 0);
	transition: clip-path 1s cubic-bezier(.16, 1, .3, 1) .12s, transform .6s cubic-bezier(.2,.8,.3,1);
}
.js .seen .ch-job-img img, .js .seen .ch-card-art img { clip-path: inset(0 0 0 0); }

.js .ch-btn { transition: transform .18s cubic-bezier(.2,.8,.3,1), color .22s ease, border-color .22s ease; }

/* Las cifras marcan con una barra que crece. */
.ch-proof-item::before { transition: width .8s cubic-bezier(.16, 1, .3, 1); }
.js .ch-proof-item.reveal::before { width: 0; }
.js .ch-proof-item.reveal.seen::before { width: 26px; }

.js .ch-profile path.draw { transition: stroke-dashoffset .1s linear; }

/* ⚠️ Nada de esto se aplica a quien pidio menos movimiento. */
@media (prefers-reduced-motion: reduce) {
	.js .wipe > span { transform: none !important; }
	.js .ch-head::after { width: 100% !important; transition: none !important; }
	.js .ch-card.reveal, .js .ch-job.reveal { transform: none !important; }
	.js .ch-job-img img, .js .ch-card-art img { clip-path: none !important; }
	.js .ch-ticker-in { animation: none !important; }
	.js .ch-proof-item.reveal::before { width: 26px !important; }
	.js .ch-hero-media { transform: none !important; }
}

/* ══════════════════════════════════════════════════════════════════
   20. PROTECCION DE LAS FOTOS
   ⚠️ HONESTIDAD: esto frena al que copia por descuido, NO al que
   sabe hacer una captura de pantalla. Lo unico que protege de verdad
   es la marca de agua.
   ══════════════════════════════════════════════════════════════════ */

.ch-guard img,
.ch-guard video {
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	-webkit-touch-callout: none;   /* iPhone: sin menu al mantener pulsado */
	pointer-events: none;           /* No se arrastra fuera del navegador */
}
/* El contenedor SI recibe el clic, para que la galeria siga abriendo. */
.ch-guard { -webkit-touch-callout: none; }

/* ══════════════════════════════════════════════════════════════════
   21. PAGINAS INTERNAS  (v37)
   Servicio, proceso, zona y preguntas. Comparten la barra, el pie y
   el formulario con la portada.
   ══════════════════════════════════════════════════════════════════ */

/* La portada de una pagina interna es mas baja: aqui el visitante
   ya sabe a que vino, no hay que impresionarlo otra vez. */
.ch-hero-sm { min-height: min(62vh, 560px); }
.ch-hero-sm h1 { font-size: clamp(36px, 7.5vw, 86px); max-width: 18ch; }
.ch-hero-sm .ch-lede { max-width: 52ch; }

/* Migas de pan */
.ch-crumb {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 18px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ash);
}
.ch-crumb a { color: var(--hivis); }
.ch-crumb a:hover { text-decoration: underline; }

/* ── Lista de lo que entra en el trabajo ── */
.ch-check {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 2px;
	background: var(--edge);
	border: 1px solid var(--edge);
}
.ch-check li {
	position: relative;
	background: var(--loam);
	padding: 18px 20px 18px 52px;
	font-size: 16px;
	color: var(--caliche);
}
.ch-check li::before {
	content: '';
	position: absolute;
	left: 20px; top: 50%;
	width: 15px; height: 8px;
	margin-top: -6px;
	border-left: 3px solid var(--hivis);
	border-bottom: 3px solid var(--hivis);
	transform: rotate(-45deg);
}
/* Version compacta, dentro de un paso del proceso. */
.ch-check.tight { background: none; border: none; gap: 0; margin-top: 14px; grid-template-columns: 1fr; }
.ch-check.tight li { background: none; padding: 7px 0 7px 30px; font-size: 14.5px; color: var(--chalk); }
.ch-check.tight li::before { left: 2px; width: 12px; height: 6px; border-width: 2px; }

/* ── Barras de capacidad ── */
.ch-bars { display: grid; gap: 22px; max-width: 760px; }
.ch-bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 9px; }
.ch-bar-top span {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--caliche);
}
.ch-bar-top b {
	font-family: 'JetBrains Mono', monospace;
	font-size: 15px;
	color: var(--hivis);
	font-variant-numeric: tabular-nums;
}
.ch-bar-track { height: 10px; background: var(--loam); border: 1px solid var(--edge); overflow: hidden; }
.ch-bar-track i {
	display: block;
	height: 100%;
	width: 0;
	background: repeating-linear-gradient(-45deg, var(--hivis) 0 8px, var(--hivis-d) 8px 16px);
	transition: width 1.1s cubic-bezier(.16, 1, .3, 1);
}
/* Sin JavaScript, las barras salen llenas: el dato se ve igual. */
.no-js .ch-bar-track i, html:not(.js) .ch-bar-track i { width: var(--w); }

/* ── Equipo que usamos ── */
.ch-gear { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--edge); }
.ch-gear ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.ch-gear li {
	border: 1px solid var(--edge);
	padding: 9px 16px;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .03em;
	color: var(--chalk);
}

/* ── Video de la pagina de servicio ── */
.ch-video { border: 1px solid var(--edge); background: var(--dirt); max-width: 1000px; margin: 0 auto; }
.ch-video video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

/* Reproductor de YouTube o Vimeo. Mismo hueco que un video propio. */
.ch-video.is-embed { position: relative; aspect-ratio: 16 / 9; }
.ch-video.is-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ── Proceso largo ── */
.ch-flow { list-style: none; margin: 0; padding: 0; counter-reset: fl; }
.ch-flow li {
	display: grid;
	grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
	gap: clamp(20px, 4vw, 54px);
	padding: clamp(28px, 4vw, 48px) 0;
	border-bottom: 1px solid var(--edge);
}
.ch-flow-no {
	font-family: 'Anton', sans-serif;
	font-size: clamp(40px, 6vw, 76px);
	line-height: .82;
	color: transparent;
	-webkit-text-stroke: 2px var(--hivis);
}
.ch-flow-body h3 { font-size: clamp(22px, 3.2vw, 34px); margin-bottom: 10px; }
.ch-flow-body p { font-size: 16.5px; color: var(--chalk); max-width: 68ch; margin: 0; }

@media (max-width: 760px) {
	.ch-flow li { grid-template-columns: 1fr; gap: 10px; }
	.ch-flow-no { -webkit-text-stroke-width: 1.5px; }
}

/* ── Ciudades en la pagina de zona ── */
/* ⚠️ Flex, no rejilla. Con rejilla, cuando la ultima fila no se
   completaba quedaba un hueco negro enorme al lado de la ultima
   ciudad y se veia roto. Con flex, las de la ultima fila crecen y
   siempre llenan el ancho. */
.ch-citygrid {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	background: var(--edge);
	border: 1px solid var(--edge);
}
.ch-citycard { flex: 1 1 170px; }
.ch-citycard {
	position: relative;
	background: var(--loam);
	padding: 26px 18px 22px;
	transition: background .18s ease;
}
.ch-citycard:hover { background: var(--hivis); }
.ch-citycard:hover * { color: var(--dirt) !important; }
.ch-citycard-no {
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	letter-spacing: .14em;
	color: var(--hivis);
	display: block;
	margin-bottom: 8px;
}
.ch-citycard b {
	display: block;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--caliche);
	line-height: 1.05;
}
.ch-citycard small { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ash); }

/* ── Enlace "ver mas" dentro de una tarjeta ── */
.ch-more {
	margin-top: auto;
	padding-top: 10px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hivis);
}
.ch-card-link { display: flex; flex-direction: column; height: 100%; }
.ch-inline { color: var(--hivis); border-bottom: 1px solid currentColor; }

/* ══════════════════════════════════════════════════════════════════
   22. MENU DESPLEGABLE DE SERVICIOS
   ══════════════════════════════════════════════════════════════════ */

.ch-drop { position: relative; }
.ch-drop-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 14px;
	background: none;
	border: none;
	color: var(--chalk);
	font-family: 'Barlow Condensed', 'Barlow', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	cursor: pointer;
}
.ch-drop-btn:hover, .ch-drop.open .ch-drop-btn { color: var(--caliche); }

.ch-drop-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 290px;
	background: var(--soil);
	border: 1px solid var(--edge);
	border-top: 3px solid var(--hivis);
	padding: 6px;
	display: none;
	box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
	z-index: 220;
}
.ch-drop.open .ch-drop-menu { display: block; }
.ch-drop-menu a {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 12px 14px;
	font-family: 'Barlow', sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--chalk);
	transition: background .15s ease, color .15s ease;
}
.ch-drop-menu a:hover { background: var(--hivis); color: var(--dirt); }

@media (max-width: 980px) {
	/* En movil se abre en lista, sin flotante. */
	.ch-drop { width: 100%; }
	.ch-drop-btn { width: 100%; justify-content: space-between; padding: 17px 22px; font-size: 19px; border-bottom: 1px solid var(--edge); }
	.ch-drop-menu { position: static; min-width: 0; border: none; border-top: none; box-shadow: none; background: var(--loam); }
	.ch-drop-menu a { font-size: 16px; }
}

/* ══════════════════════════════════════════════════════════════════
   23. PIE CON COLUMNAS
   ══════════════════════════════════════════════════════════════════ */

.ch-foot-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 30px;
	padding: 34px 0;
	margin-bottom: 26px;
	border-block: 1px solid var(--edge);
}
.ch-foot-cols .ch-tag { margin-bottom: 14px; }
.ch-foot-cols a, .ch-foot-cols span {
	display: block;
	padding: 5px 0;
	font-size: 14.5px;
	color: var(--chalk);
	transition: color .15s ease;
}
.ch-foot-cols a:hover { color: var(--hivis); }

/* ══════════════════════════════════════════════════════════════════
   24. VISOR DE FOTOS — CARRUSEL  (v39)
   ──────────────────────────────────────────────────────────────────
   ⚠️ DOS COSAS QUE SE APRENDIERON EN VIVO:

   1. El fondo NO debe ser opaco. Cuando lo era, el visitante sentia
      que se habia salido de la web, no encontraba como volver y le
      daba al boton de atras del navegador (que lo saca del sitio).
      Ahora se ve la pagina detras, desenfocada: se entiende que
      sigue ahi.

   2. El boton de cerrar tiene que VERSE. Un aspa gris con borde fino
      sobre fondo negro es invisible en un telefono a pleno sol.
      Ahora es naranja, solido y lleva la palabra CERRAR.
   ══════════════════════════════════════════════════════════════════ */

.ch-lb {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: none;
	/* ⚠️ minmax(0, 1fr) en la columna: sin esto, la tira de
	   miniaturas estira la rejilla y el visor se sale de la
	   pantalla en el movil. */
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr) auto;
	overflow: hidden;
	gap: 12px;
	padding: 14px clamp(10px, 2vw, 26px) clamp(14px, 2vw, 22px);

	/* Se ve la web detras, desenfocada. */
	background: rgba(12, 9, 7, .82);
	backdrop-filter: blur(22px) saturate(.7);
	-webkit-backdrop-filter: blur(22px) saturate(.7);
}
.ch-lb.open { display: grid; }

/* ── Barra de arriba ── */
.ch-lb-bar {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	/* Se aparta de la barra del navegador y del notch del iPhone. */
	padding-top: env(safe-area-inset-top);
}

.ch-lb-count {
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .16em;
	color: var(--caliche);
	background: rgba(12, 9, 7, .8);
	padding: 9px 16px;
	border: 1px solid var(--edge);
}

.ch-lb-x {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	/* 52px de alto: se toca con el dedo sin fallar. */
	min-height: 52px;
	padding: 12px 22px;
	background: var(--hivis);
	border: none;
	color: var(--dirt);
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
	transition: background .16s ease, transform .16s ease;
}
.ch-lb-x:hover { background: var(--caliche); transform: translateY(-1px); }
.ch-lb-x .x { font-size: 20px; line-height: 1; }

/* ── Escenario ── */
.ch-lb-stage {
	min-width: 0;
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(8px, 2vw, 22px);
	min-height: 0;
}
.ch-lb-stage img {
	grid-column: 2;
	justify-self: center;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	object-fit: contain;
	border: 1px solid var(--edge);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
	transition: opacity .18s ease;
}

.ch-lb-prev, .ch-lb-next {
	width: 58px; height: 58px;
	display: grid; place-items: center;
	background: rgba(12, 9, 7, .85);
	border: 2px solid var(--hivis);
	color: var(--hivis);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: background .16s ease, color .16s ease;
	flex-shrink: 0;
}
.ch-lb-prev:hover, .ch-lb-next:hover { background: var(--hivis); color: var(--dirt); }

/* ── Pie del visor ── */
.ch-lb-foot { min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.ch-lb-cap {
	min-width: 0;
	margin: 0;
	text-align: center;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 17px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--caliche);
}

.ch-lb-thumbs {
	/* Se aprieta y se desplaza por dentro en vez de empujar. */
	min-width: 0;
	max-width: 100%;
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px;
	scrollbar-width: thin;
	scroll-behavior: smooth;
}
.ch-lb-thumbs::-webkit-scrollbar { height: 5px; }
.ch-lb-thumbs::-webkit-scrollbar-thumb { background: var(--edge); }

.ch-lb-th {
	flex: 0 0 auto;
	width: 92px; height: 64px;
	padding: 0;
	background: var(--soil);
	border: 2px solid transparent;
	cursor: pointer;
	overflow: hidden;
	opacity: .45;
	transition: opacity .18s ease, border-color .18s ease;
}
.ch-lb-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-lb-th:hover { opacity: .85; }
.ch-lb-th.on { opacity: 1; border-color: var(--hivis); }

.ch-lb-hint {
	min-width: 0;
	margin: 0;
	text-align: center;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ash);
	padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 720px) {
	.ch-lb { gap: 8px; padding: 10px 8px 12px; }
	.ch-lb-x { padding: 11px 16px; font-size: 16px; }
	.ch-lb-count { font-size: 12px; padding: 8px 12px; }
	.ch-lb-prev, .ch-lb-next { width: 46px; height: 46px; font-size: 24px; }
	.ch-lb-th { width: 62px; height: 46px; }
	.ch-lb-cap { font-size: 14px; }
	/* En movil la tira arranca a la izquierda: caben mas a la vista. */
	.ch-lb-thumbs { justify-content: flex-start; }
}

/* ══════════════════════════════════════════════════════════════════
   25. GALERIA DE UN SERVICIO  (v38)
   ══════════════════════════════════════════════════════════════════ */

.ch-gal {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 2px;
	background: var(--edge);
	border: 1px solid var(--edge);
}

.ch-gal-i {
	position: relative;
	padding: 0;
	border: none;
	background: var(--dirt);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	cursor: zoom-in;
	display: block;
}
.ch-gal-i img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2, .8, .3, 1), filter .3s ease;
}
.ch-gal-i:hover img { transform: scale(1.08); filter: brightness(.75); }

/* La lupa aparece al pasar por encima. */
.ch-gal-i::after {
	content: '⤢';
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%) scale(.55);
	width: 52px; height: 52px;
	display: grid; place-items: center;
	background: var(--hivis);
	color: var(--dirt);
	font-size: 21px;
	opacity: 0;
	transition: opacity .25s ease, transform .25s cubic-bezier(.2, .8, .3, 1);
}
.ch-gal-i:hover::after, .ch-gal-i:focus-visible::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.ch-gal-n {
	position: absolute;
	top: 10px; left: 12px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	letter-spacing: .12em;
	color: var(--caliche);
	text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
	z-index: 2;
}

/* ══════════════════════════════════════════════════════════════════
   26. VARIOS VIDEOS  (v38)
   ══════════════════════════════════════════════════════════════════ */

.ch-videos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
	gap: 18px;
}
/* Si solo hay uno, que se vea grande y centrado. */
.ch-videos:has(> .ch-video:only-child) { grid-template-columns: minmax(0, 1000px); justify-content: center; }

/* ══════════════════════════════════════════════════════════════════
   27. PAGINA NOSOTROS  (v38)
   ══════════════════════════════════════════════════════════════════ */

.ch-why {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2px;
	background: var(--edge);
	border: 1px solid var(--edge);
}
.ch-why-card {
	background: var(--loam);
	padding: 30px 26px 34px;
	transition: background .22s ease;
}
.ch-why-card:hover { background: #2e261d; }
.ch-why-i { font-size: 30px; display: block; margin-bottom: 14px; }
.ch-why-card h3 { font-size: 22px; margin-bottom: 10px; }
.ch-why-card p { margin: 0; font-size: 15px; color: var(--chalk); }

/* ══════════════════════════════════════════════════════════════════
   28. PAGINA CONTACTO  (v38)
   ══════════════════════════════════════════════════════════════════ */

.ch-hours { width: 100%; border-collapse: collapse; margin-top: 14px; }
.ch-hours th,
.ch-hours td {
	padding: 14px 4px;
	border-bottom: 1px solid var(--edge);
	text-align: left;
	font-weight: 500;
}
.ch-hours th {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 17px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--caliche);
}
.ch-hours td {
	font-family: 'JetBrains Mono', monospace;
	font-size: 13.5px;
	color: var(--hivis);
	text-align: right;
}

.ch-note {
	margin-top: 22px;
	padding: 16px 18px;
	border-left: 3px solid var(--hivis);
	background: rgba(255, 140, 26, .07);
	font-size: 14.5px;
	color: var(--caliche);
}

/* ══════════════════════════════════════════════════════════════════
   29. MAS MOVIMIENTO EN LAS IMAGENES  (v38)
   ══════════════════════════════════════════════════════════════════ */

/* Acercamiento lento y continuo en la foto del trabajo destacado.
   Da sensacion de camara viva sin ser un video. */
@keyframes chKen {
	0%   { transform: scale(1)    translate(0, 0); }
	50%  { transform: scale(1.07) translate(-1.2%, -1%); }
	100% { transform: scale(1)    translate(0, 0); }
}
.js .ch-work[data-n="1"] .ch-job-img img { animation: chKen 26s ease-in-out infinite; }
.js .ch-work[data-n="1"] .ch-job:hover .ch-job-img img { animation-play-state: paused; }

/* Brillo que cruza la foto al pasar por encima. */
.ch-job-img, .ch-gal-i, .ch-card-art { position: relative; }
.js .ch-job-img::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .13) 50%, transparent 62%);
	transform: translateX(-100%);
	transition: transform .8s cubic-bezier(.2, .8, .3, 1);
	pointer-events: none;
}
.js .ch-job:hover .ch-job-img::after { transform: translateX(100%); }

@media (prefers-reduced-motion: reduce) {
	.js .ch-work[data-n="1"] .ch-job-img img { animation: none !important; }
	.js .ch-job-img::after { display: none; }
	.ch-lb-thumbs { scroll-behavior: auto; }
}

/* ══════════════════════════════════════════════════════════════════
   30. PANTALLA DE CARGA 3D  (v39)
   ──────────────────────────────────────────────────────────────────
   Cubo de tierra girando con polvo. Todo con transformaciones CSS:
   las mueve la tarjeta grafica, no el procesador, asi que va suave
   hasta en un telefono de gama baja y no retrasa la pagina.
   ══════════════════════════════════════════════════════════════════ */

.ch-load {
	position: fixed;
	inset: 0;
	z-index: 9500;
	display: grid;
	place-items: center;
	background:
		radial-gradient(ellipse at 50% 42%, #2a2018 0%, #13100c 62%),
		#13100c;
	transition: opacity .55s ease, visibility .55s ease;
}
/* Al terminar se desvanece y deja de estorbar al ratón. */
.ch-load.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.ch-load-dust { position: absolute; inset: 0; width: 100%; height: 100%; }

.ch-load-in {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	padding: 20px;
}

/* ── El cubo ── */
.ch-cube-wrap { perspective: 620px; width: 104px; height: 104px; position: relative; }

.ch-cube {
	position: relative;
	width: 104px; height: 104px;
	transform-style: preserve-3d;
	animation: chTumble 4.2s cubic-bezier(.62, .02, .38, 1) infinite;
}

/* Las seis caras. El degradado hace que cada una coja la luz
   distinta y el cubo se lea como un volumen, no como un cuadrado. */
.ch-cube .f {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(255, 140, 26, .55);
	background:
		linear-gradient(135deg, rgba(255, 140, 26, .16), rgba(255, 140, 26, .02)),
		#1d1711;
	box-shadow: inset 0 0 26px rgba(255, 140, 26, .1);
}
/* Retícula dentro de cada cara: parece una malla topografica. */
.ch-cube .f::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 140, 26, .2) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 140, 26, .2) 1px, transparent 1px);
	background-size: 26px 26px;
	opacity: .5;
}

.ch-cube .ff { transform: translateZ(52px); }
.ch-cube .fk { transform: rotateY(180deg) translateZ(52px); }
.ch-cube .fr { transform: rotateY(90deg)  translateZ(52px); }
.ch-cube .fl { transform: rotateY(-90deg) translateZ(52px); }
.ch-cube .ft { transform: rotateX(90deg)  translateZ(52px); background: linear-gradient(135deg, rgba(255,140,26,.3), rgba(255,140,26,.06)), #241c14; }
.ch-cube .fb { transform: rotateX(-90deg) translateZ(52px); background: #0f0c09; }

@keyframes chTumble {
	0%   { transform: rotateX(-24deg) rotateY(0deg)   translateY(0); }
	25%  { transform: rotateX(-24deg) rotateY(90deg)  translateY(-14px); }
	50%  { transform: rotateX(-24deg) rotateY(180deg) translateY(0); }
	75%  { transform: rotateX(-24deg) rotateY(270deg) translateY(-14px); }
	100% { transform: rotateX(-24deg) rotateY(360deg) translateY(0); }
}

/* La sombra se encoge cuando el cubo sube: eso es lo que hace que
   parezca que de verdad esta en el aire. */
.ch-cube-shadow {
	position: absolute;
	left: 50%; bottom: -34px;
	width: 88px; height: 14px;
	margin-left: -44px;
	background: radial-gradient(ellipse, rgba(0, 0, 0, .6), transparent 70%);
	animation: chShadow 4.2s cubic-bezier(.62, .02, .38, 1) infinite;
}
@keyframes chShadow {
	0%, 50%, 100% { transform: scale(1);   opacity: .6; }
	25%, 75%      { transform: scale(.72); opacity: .3; }
}

/* ── Marca ── */
.ch-load-logo { max-width: 200px; max-height: 54px; object-fit: contain; }

.ch-load-name {
	margin: 0;
	font-family: 'Anton', 'Barlow Condensed', sans-serif;
	font-size: clamp(22px, 4.5vw, 34px);
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--caliche);
}

/* ── Barra de progreso ── */
.ch-load-bar {
	width: min(280px, 62vw);
	height: 4px;
	background: rgba(255, 140, 26, .16);
	overflow: hidden;
}
.ch-load-bar i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--hivis);
	transition: width .35s cubic-bezier(.2, .8, .3, 1);
}

.ch-load-txt {
	margin: 0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	letter-spacing: .22em;
	color: var(--ash);
}

/* ⚠️ Con movimiento reducido: cubo quieto, sin polvo. Se sigue
   viendo la marca y la barra, no una pantalla vacia. */
@media (prefers-reduced-motion: reduce) {
	.ch-cube { animation: none; transform: rotateX(-24deg) rotateY(38deg); }
	.ch-cube-shadow { animation: none; }
	.ch-load-dust { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   31. ENTRADA DE LA PAGINA
   Cuando el loader se va, la portada entra. Da continuidad en vez
   de un salto seco.
   ══════════════════════════════════════════════════════════════════ */

.js.ch-load-active .ch-hero-in > * { opacity: 0; }

/* El titulo tiene su propia animacion (sube linea a linea). Se
   congela mientras la pantalla de carga tapa y se suelta despues,
   asi el visitante la ve entera desde el principio. */
.js.ch-load-active .ch-hero h1 span { animation-play-state: paused; }
.js.ch-loaded .ch-hero h1 span { animation-play-state: running; }

/* Al titulo no se le pone la entrada general: ya tiene la suya y
   las dos juntas se ven como un temblor. */
.js.ch-loaded .ch-hero-in > h1 { animation: none; opacity: 1; }

@keyframes chPageIn {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}
.js.ch-loaded .ch-hero-in > * {
	animation: chPageIn .8s cubic-bezier(.16, 1, .3, 1) forwards;
}
.js.ch-loaded .ch-hero-in > *:nth-child(1) { animation-delay: .05s; }
.js.ch-loaded .ch-hero-in > *:nth-child(2) { animation-delay: .14s; }
.js.ch-loaded .ch-hero-in > *:nth-child(3) { animation-delay: .23s; }
.js.ch-loaded .ch-hero-in > *:nth-child(4) { animation-delay: .32s; }
.js.ch-loaded .ch-hero-in > *:nth-child(5) { animation-delay: .41s; }

@media (prefers-reduced-motion: reduce) {
	.js.ch-load-active .ch-hero-in > *,
	.js.ch-loaded .ch-hero-in > * { opacity: 1 !important; animation: none !important; transform: none !important; }
}

/* ══════════════════════════════════════════════════════════════════
   32. MAPA DE LA ZONA DE SERVICIO  (v41)
   ──────────────────────────────────────────────────────────────────
   Dibujo propio, sin Google y sin rastrear a nadie. Ver el porque
   en template-parts/site-map.php.
   ══════════════════════════════════════════════════════════════════ */

.ch-map { margin: 40px 0 0; }

.ch-map-box {
	position: relative;
	background:
		radial-gradient(ellipse at 55% 35%, #241d15 0%, var(--soil) 70%),
		var(--soil);
	border: 1px solid var(--edge);
	padding: 10px;
	overflow: hidden;
}

.ch-map-svg { display: block; width: 100%; height: auto; }

/* Retícula de plano. Muy floja: se intuye, no se mira. */
.ch-map-grid line { stroke: rgba(242, 236, 224, .05); stroke-width: 1; }

/* El borde del radio, con trazo discontinuo como en un plano. */
.ch-map-ring {
	fill: none;
	stroke: var(--hivis);
	stroke-width: 1.6;
	stroke-dasharray: 9 7;
	opacity: .42;
}

.ch-map-road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ch-map-road.hwy { stroke: var(--caliche); stroke-width: 3; opacity: .55; }
.ch-map-road.sec { stroke: var(--chalk); stroke-width: 2; opacity: .3; stroke-dasharray: 7 6; }

.ch-map-city .dot { fill: var(--chalk); }
.ch-map-city text {
	fill: var(--chalk);
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 19px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Las cabeceras de zona, mas marcadas. */
.ch-map-city.big .dot { fill: var(--caliche); r: 6; }
.ch-map-city.big text { fill: var(--caliche); font-size: 23px; font-weight: 600; }

/* Florence es la base: naranja y con halo que late. */
.ch-map-city.base .dot { fill: var(--hivis); }
.ch-map-city.base text { fill: var(--hivis); font-size: 26px; font-weight: 700; }
.ch-map-city.base .halo {
	fill: none;
	stroke: var(--hivis);
	stroke-width: 2;
	transform-box: fill-box;
	transform-origin: center;
	animation: chPulso 2.6s ease-out infinite;
}
@keyframes chPulso {
	0%   { transform: scale(.5); opacity: .9; }
	100% { transform: scale(1.9); opacity: 0; }
}

.ch-map-scale line { stroke: var(--ash); stroke-width: 1.5; }
.ch-map-scale text {
	fill: var(--ash);
	font-family: 'JetBrains Mono', monospace;
	font-size: 15px;
	letter-spacing: .1em;
}

/* ── Leyenda ── */
.ch-map-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 14px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ash);
}
.ch-map-legend b { font-weight: 400; margin-right: 6px; }
.ch-map-legend .k { width: 16px; height: 3px; flex: 0 0 auto; }
.ch-map-legend .k.base { width: 10px; height: 10px; border-radius: 50%; background: var(--hivis); }
.ch-map-legend .k.zone { background: rgba(255, 140, 26, .45); height: 10px; border: 1px dashed var(--hivis); }
.ch-map-legend .k.road { background: var(--caliche); opacity: .6; }

.ch-map-note {
	margin: 12px 0 0;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 17px;
	letter-spacing: .02em;
	color: var(--chalk);
}

/* En movil los nombres pequeños se amontonan: solo quedan las
   ciudades cabecera, que es lo que de verdad situa al cliente. */
@media (max-width: 720px) {
	.ch-map-box { padding: 6px; }
	.ch-map-city:not(.big):not(.base) text { display: none; }
	.ch-map-city.big text { font-size: 30px; }
	.ch-map-city.base text { font-size: 34px; }
	.ch-map-scale text { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.ch-map-city.base .halo { animation: none; opacity: .35; }
}

/* ══════════════════════════════════════════════════════════════════
   33. FICHA DE PROYECTO  (v43)
   ──────────────────────────────────────────────────────────────────
   La ventana que se abre al tocar un trabajo hecho. Es una hoja de
   obra: portada, los numeros del trabajo, lo que se hizo, el reto,
   como quedo, las fotos y el boton de llamar.
   ══════════════════════════════════════════════════════════════════ */

.ch-pj {
	position: fixed;
	inset: 0;
	z-index: 9200;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(10px, 3vh, 40px) clamp(10px, 3vw, 30px);
	overflow-y: auto;

	/* Se ve la web detras, desenfocada: la misma idea que el visor de
	   fotos. Asi se entiende que no te has ido del sitio. */
	background: rgba(12, 9, 7, .86);
	backdrop-filter: blur(20px) saturate(.7);
	-webkit-backdrop-filter: blur(20px) saturate(.7);
}
.ch-pj.open { display: flex; }

.ch-pj-card {
	position: relative;
	width: min(860px, 100%);
	background: var(--soil);
	border: 1px solid var(--edge);
	box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
}

/* ── Portada ── */
.ch-pj-top { position: relative; }
.ch-pj-top img {
	display: block;
	width: 100%;
	height: clamp(190px, 34vh, 330px);
	object-fit: cover;
}
.ch-pj-fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(19, 16, 12, .25) 0%, rgba(19, 16, 12, .35) 45%, var(--soil) 100%);
}

.ch-pj-x {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	/* 50 px de alto: se toca con el dedo sin fallar. */
	min-height: 50px;
	padding: 11px 20px;
	background: var(--hivis);
	border: none;
	color: var(--dirt);
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	clip-path: polygon(0 0, 100% 0, 100% 68%, 90% 100%, 0 100%);
	transition: background .16s ease;
}
.ch-pj-x:hover { background: var(--caliche); }
.ch-pj-x .x { font-size: 19px; line-height: 1; }

.ch-pj-head {
	position: absolute;
	left: clamp(16px, 3vw, 30px);
	right: clamp(16px, 3vw, 30px);
	bottom: 14px;
}
.ch-pj-tag {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 11px;
	background: var(--hivis);
	color: var(--dirt);
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.ch-pj-head h3 {
	margin: 0;
	font-family: 'Anton', sans-serif;
	font-size: clamp(22px, 4vw, 34px);
	line-height: 1.08;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--caliche);
}
.ch-pj-where {
	margin: 6px 0 0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--hivis);
}

/* ── Cuerpo ── */
.ch-pj-body { padding: clamp(16px, 3vw, 30px); }

/* Los numeros del trabajo. Es lo primero que mira quien contrata. */
.ch-pj-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	background: var(--edge);
	border: 1px solid var(--edge);
	margin-bottom: 22px;
}
.ch-pj-fact {
	background: var(--loam);
	padding: 13px 15px;
}
.ch-pj-fact .i { font-size: 15px; }
.ch-pj-fact .k {
	display: block;
	margin: 5px 0 3px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ash);
}
.ch-pj-fact b {
	display: block;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--caliche);
}

.ch-pj-text {
	margin: 0 0 22px;
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--chalk);
}
.ch-pj-text:empty { display: none; }

.ch-pj-block { margin-bottom: 22px; }
.ch-pj-block h4 {
	margin: 0 0 10px;
	padding-left: 11px;
	position: relative;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--caliche);
}
.ch-pj-block h4::before {
	content: '';
	position: absolute;
	left: 0;
	top: .2em;
	bottom: .2em;
	width: 3px;
	background: var(--hivis);
}
.ch-pj-block p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--chalk); }

/* El reto y el resultado, uno al lado del otro. */
.ch-pj-two {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px;
}
.ch-pj-two .ch-pj-block {
	background: var(--loam);
	border: 1px solid var(--edge);
	padding: 15px;
}
/* El resultado va en verde: es la buena noticia. */
.ch-pj-block.good h4::before { background: #9ec44f; }

/* Lo que se hizo, en palomitas. */
.ch-pj-scope {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 7px 20px;
}
.ch-pj-scope li {
	position: relative;
	padding-left: 24px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--chalk);
}
.ch-pj-scope li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--hivis);
	font-weight: 700;
}

/* Tira de fotos */
.ch-pj-shots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 8px;
}
.ch-pj-shot {
	padding: 0;
	border: 1px solid var(--edge);
	background: var(--loam);
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	transition: border-color .16s ease, transform .16s ease;
}
.ch-pj-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-pj-shot:hover { border-color: var(--hivis); transform: translateY(-2px); }

/* El cierre: el que llega hasta aqui es el que llama. */
.ch-pj-cta {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--edge);
	text-align: center;
}
.ch-pj-cta p {
	margin: 0 0 14px;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--caliche);
}
.ch-pj-cta-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

/* El aviso de que la tarjeta se puede abrir. Sin esto nadie lo sabe. */
.ch-job-more {
	display: block;
	margin: 10px 0 2px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--hivis);
}

@media (max-width: 720px) {
	.ch-pj { padding: 0; }
	.ch-pj-card { width: 100%; border: none; min-height: 100%; }
	.ch-pj-x { padding: 10px 15px; font-size: 15px; }
	.ch-pj-top { padding-top: env(safe-area-inset-top); }
	.ch-pj-body { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
	.ch-pj-cta-btns .ch-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.ch-pj-shot:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════════
   34. PROFUNDIDAD — parallax y volumen  (v44)
   ──────────────────────────────────────────────────────────────────
   Solo transform y opacity: lo mueve la tarjeta grafica y no
   obliga al navegador a rehacer la pagina. Ver site.js seccion 18.
   ══════════════════════════════════════════════════════════════════ */

/* La foto se pinta un poco mas grande de lo que se ve. Sin esto,
   al desplazarla asomaria el borde vacio por arriba o por abajo. */
.js [data-par] { will-change: transform; }
.js .ch-hero-media [data-par] { transform: scale(1.2); }
.js .ch-job-img [data-par] { transform: scale(1.14); }

/* ── Volumen en las tarjetas de trabajo ── */
.ch-work { perspective: 1400px; }

.ch-job {
	position: relative;
	transform-style: preserve-3d;
}
/* Mientras el raton esta encima, el giro responde al instante.
   Con los 0.8 s de la entrada se sentiria pegajoso. */
.js .ch-job.tilting { transition: transform .14s ease-out, box-shadow .25s ease; }
.js .ch-job.tilting { box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }

/* La foto y el texto se despegan un poco de la tarjeta: eso es lo
   que hace que se vea hueco de verdad y no una foto girada. */
.ch-job-img { transform: translateZ(26px); }
.ch-job-body { transform: translateZ(14px); }

/* ⚠️ AQUI HABIA UNA RETICULA QUE NO SE VEIA NUNCA.
   Usaba .ch-job-img::after, pero ese pseudo-elemento ya estaba
   cogido mas arriba por '.js .ch-job-img::after' (el brillo que
   cruza la foto), que tiene mas peso porque lleva .js delante.
   Resultado: codigo muerto. Quitado en la v48.
   Si algun dia quieres la retícula, hay que ponerla en otro
   elemento, no en ese ::after. */

/* El brillo que sigue al raton. Es lo que vende el volumen. */
.ch-job::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s ease;
	background: radial-gradient(
		340px circle at var(--mx, 50%) var(--my, 50%),
		rgba(255, 140, 26, .13),
		transparent 65%
	);
}
.ch-job.tilting::before { opacity: 1; }

/* ⚠️ Nada de esto en movil ni con movimiento reducido.
   En un telefono el parallax marea, gasta bateria y el dedo tapa
   justo lo que se mueve. */
@media (hover: none), (pointer: coarse), (max-width: 860px) {
	.ch-job-img, .ch-job-body { transform: none; }
	.ch-job::before { display: none; }
	.js .ch-hero-media [data-par], .js .ch-job-img [data-par] { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.js [data-par] { transform: none !important; will-change: auto; }
	.ch-job-img, .ch-job-body { transform: none; }
	.ch-job::before { display: none; }
	.js .ch-card.reveal.seen, .js .ch-job.reveal.seen { transform: none; }
}

/* Aviso de video en mal formato. Solo lo ve el administrador. */
.ch-video-warn {
	margin: 10px 0 0;
	padding: 12px 14px;
	background: rgba(232, 181, 60, .1);
	border-left: 3px solid #e8b53c;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--caliche);
}

/* ══════════════════════════════════════════════════════════════════
   35. VIDEO EN MODO ESCAPARATE  (v47)
   ══════════════════════════════════════════════════════════════════ */

.ch-video { position: relative; }

/* Los dos botones van encima del video, abajo a la derecha, y se
   quitan de en medio: discretos hasta que pasas el raton. */
.ch-video-btns {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: flex;
	gap: 7px;
	opacity: .55;
	transition: opacity .25s ease;
}
.ch-video:hover .ch-video-btns,
.ch-video-btns:focus-within { opacity: 1; }

.ch-vbtn {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	background: rgba(12, 9, 7, .78);
	border: 1px solid var(--edge);
	color: var(--caliche);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background .16s ease, border-color .16s ease;
}
.ch-vbtn:hover { background: var(--hivis); border-color: var(--hivis); color: var(--dirt); }

/* ⚠️ En el movil se quedan siempre visibles: no hay "pasar el
   raton" y si no se ven, no se pueden usar. */
@media (hover: none) {
	.ch-video-btns { opacity: 1; }
	.ch-vbtn { width: 44px; height: 44px; }
}

/* ══════════════════════════════════════════════════════════════════
   36. LOS DIBUJOS DE LOS SERVICIOS, EN MARCHA  (v47)
   ──────────────────────────────────────────────────────────────────
   Los dibujos ya existian; lo unico que se añade es movimiento.
   Cero bytes de descarga y lo mueve la tarjeta grafica.
   ══════════════════════════════════════════════════════════════════ */

/* El barrido del nivel laser cruzando el terreno. */
.ch-art-vida .barrido {
	animation: chBarrido 7s linear infinite;
}
@keyframes chBarrido {
	0%   { transform: translateX(0); opacity: 0; }
	12%  { opacity: .16; }
	88%  { opacity: .16; }
	100% { transform: translateX(520px); opacity: 0; }
}

/* Polvo levantandose. Dos granos, a distinto ritmo: si van a la
   vez se nota que es un bucle. */
.ch-art-vida .polvo { animation: chPolvoSube 5.5s ease-out infinite; }
.ch-art-vida .p2 { animation-duration: 7.5s; animation-delay: 1.8s; }
@keyframes chPolvoSube {
	0%   { transform: translate(0, 0); opacity: 0; }
	18%  { opacity: .55; }
	100% { transform: translate(14px, -92px); opacity: 0; }
}

/* La linea del plano dibujandose sola, como la cuchilla pasando. */
.ch-art-vida .traza {
	stroke-dasharray: 420;
	stroke-dashoffset: 420;
	animation: chTraza 6s cubic-bezier(.5, 0, .3, 1) infinite;
}
@keyframes chTraza {
	0%   { stroke-dashoffset: 420; opacity: 0; }
	15%  { opacity: .6; }
	65%  { stroke-dashoffset: 0; opacity: .6; }
	100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Al pasar el raton por la tarjeta, la obra se acelera. */
.ch-card:hover .ch-art-vida .barrido,
.ch-svc:hover .ch-art-vida .barrido { animation-duration: 3.4s; }

/* ⚠️ Quieto si el visitante pidio reducir movimiento. El dibujo
   se sigue viendo entero; solo deja de moverse. */
@media (prefers-reduced-motion: reduce) {
	.ch-art-vida .barrido,
	.ch-art-vida .polvo,
	.ch-art-vida .traza { animation: none; }
	.ch-art-vida .barrido { opacity: 0; }
	.ch-art-vida .traza { stroke-dashoffset: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   37. GALERIA EN EL TELEFONO  (v49)
   ──────────────────────────────────────────────────────────────────
   ⚠️ ESTE ERA EL FALLO DE "LAS FOTOS SALEN EN GRANDE".
   La regla general pide columnas de 230 px minimo. En un telefono
   de 375 px quedan ~340 utiles: no caben dos, asi que caia a UNA
   sola columna y cada foto ocupaba la pantalla entera. Con 5 fotos
   eran 1276 px de scroll y no se veia el conjunto.
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
	/* Dos columnas: se ven de dos en dos, como un contacto de fotos. */
	.ch-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* Un poco mas cuadradas: en vertical se aprovecha mejor. */
	.ch-gal-i { aspect-ratio: 1 / 1; }

	/* El numero, mas pequeño: en una foto de 165 px el de antes
	   tapaba media imagen. */
	.ch-gal-n { font-size: 9px; padding: 3px 6px; }
}

/* En pantallas muy estrechas (telefonos pequeños) siguen siendo dos:
   una sola vuelve a dejar la foto a pantalla completa. */
@media (max-width: 380px) {
	.ch-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ══════════════════════════════════════════════════════════════════
   38. PAGINA DE SERVICIO, MEJOR REPARTIDA  (v51)
   ──────────────────────────────────────────────────────────────────
   Dos arreglos de proporcion, los dos medidos en la web en vivo.
   ══════════════════════════════════════════════════════════════════ */

/* ── "CON QUE CONTAMOS": barras a la izquierda, equipo a la derecha ──
   ⚠️ ANTES: las barras tenian max-width 760 px dentro de un
   contenedor de 929, asi que quedaban 169 px de hueco muerto a la
   derecha, y el equipo colgaba debajo separado por una linea.
   En los servicios con solo 2 barras eran dos rayitas perdidas en
   una pantalla entera. */
.ch-cap {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 34px;
	align-items: start;
}

/* Ya no hace falta el ancho maximo: la columna manda. */
.ch-cap .ch-bars { max-width: none; }

/* ⚠️ SEGURO: si un servicio se queda sin lista de equipo, las barras
   se quedarian solas en la columna izquierda y volveria el hueco
   muerto de la derecha, que es justo lo que arregla esta seccion.
   Con esto, si solo hay una cosa, ocupa las dos columnas.
   Hoy los 6 servicios tienen equipo; esto es por si anades uno. */
.ch-cap > :only-child { grid-column: 1 / -1; }

/* El equipo deja de ser una nota al pie y pasa a ser un panel de
   ficha tecnica, que es lo que es. */
.ch-cap .ch-gear {
	margin-top: 0;
	padding: 22px 24px 26px;
	border-top: 0;
	border: 1px solid var(--edge);
	background: var(--soil);
	position: relative;
}

/* Filo naranja a la izquierda: lo ata al resto de la pagina. */
.ch-cap .ch-gear::before {
	content: '';
	position: absolute;
	left: -1px; top: -1px; bottom: -1px;
	width: 3px;
	background: var(--hivis);
}

/* En columna estrecha el equipo se lee mejor en lista que en
   pastillas sueltas. */
.ch-cap .ch-gear ul {
	display: block;
	margin-top: 12px;
}
.ch-cap .ch-gear li {
	display: block;
	padding: 9px 0 9px 20px;
	border-bottom: 1px solid var(--edge);
	position: relative;
	background: none;
	border-left: 0;
	border-right: 0;
	border-top: 0;
}
.ch-cap .ch-gear li:last-child { border-bottom: 0; padding-bottom: 0; }

/* La marca de cada linea: un guion naranja, como en un albaran. */
.ch-cap .ch-gear li::before {
	content: '';
	position: absolute;
	left: 0; top: 50%;
	width: 10px; height: 2px;
	background: var(--hivis);
}

/* ── "TAMBIEN HACEMOS" en compacto ──
   ⚠️ ANTES: tarjetas de 463x459 y la seccion entera 2001 px, la mas
   alta de la pagina... para lo MENOS importante que hay en ella.
   Ahora entran 4 por fila y la seccion baja a un tercio. */
.ch-grid.sm > * { flex: 1 1 215px; }

.ch-grid.sm .ch-card-art { aspect-ratio: 16 / 9; }
.ch-grid.sm .ch-card-body { padding: 15px 17px 19px; gap: 7px; }
.ch-grid.sm .ch-card h3 { font-size: 17px; line-height: 1.2; }

/* El texto del servicio sobra en una tarjeta pequena: con el titulo
   y el "ver mas" se entiende, y asi caben 4 en una fila sin que la
   altura se dispare. */
.ch-grid.sm .ch-card p { display: none; }
.ch-grid.sm .ch-more { font-size: 11px; }
.ch-grid.sm .ch-icon { width: 32px; height: 32px; }
.ch-grid.sm .ch-icon svg { width: 17px; height: 17px; }

@media (max-width: 900px) {
	/* Una sola columna: en tableta las barras y el equipo lado a lado
	   se quedan los dos estrechos y no se lee ni uno. */
	.ch-cap { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 560px) {
	/* Dos tarjetas por fila en el telefono. Una sola volveria a dar
	   el problema de la galeria: cada cosa ocupando la pantalla
	   entera y 2000 px de scroll. */
	.ch-grid.sm > * { flex: 1 1 calc(50% - 2px); }
	.ch-grid.sm .ch-card h3 { font-size: 14px; }
	.ch-grid.sm .ch-card-body { padding: 12px 13px 15px; }
}
