/* Comparar Hojas de Cálculo – Herramientas  (prefijo .chct) */
.chct {
	--chct-azul: #2156D9;
	--chct-azul-hover: #1A47B8;
	--chct-menta: #2EC4A6;
	--chct-menta-osc: #139A80;
	--chct-marino: #0F1B3D;
	--chct-pizarra: #5B6B82;
	--chct-azul-claro: #EEF3FF;
	--chct-menta-claro: #E7F8F3;
	--chct-borde: #E4E9F2;
	--chct-fondo: #F5F7FA;
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--chct-marino);
	line-height: 1.5;
	box-sizing: border-box;
	width: 100%;
}
.chct *, .chct *::before, .chct *::after { box-sizing: border-box; }
.chct ul, .chct ol { list-style: none; margin: 0; padding: 0; }
.chct p { margin: 0; }
.chct a { text-decoration: none; }
.chct button { font: inherit; cursor: pointer; }
.chct__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Portada ---------- */
.chct__hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 380px at 12% -10%, rgba(46, 196, 166, .18), transparent 60%),
		radial-gradient(900px 420px at 95% 0%, rgba(33, 86, 217, .16), transparent 60%),
		linear-gradient(180deg, #F7F9FF 0%, var(--chct-fondo) 100%);
	padding: 72px 24px 56px;
	text-align: center;
}
.chct__hero::before {
	/* cuadrícula sutil de hoja de cálculo */
	content: '';
	position: absolute; inset: 0;
	background-image: linear-gradient(rgba(33, 86, 217, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(33, 86, 217, .06) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
	mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
	pointer-events: none;
}
.chct__hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.chct__eyebrow {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	background: var(--chct-menta-claro); color: var(--chct-menta-osc);
	font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.chct .chct__title {
	margin: 18px 0 14px; padding: 0;
	font-family: inherit; font-size: clamp(30px, 5vw, 52px); line-height: 1.12; font-weight: 700;
	letter-spacing: -.02em; color: var(--chct-marino);
}
.chct__subtitle { font-size: clamp(16px, 2vw, 19px); color: var(--chct-pizarra); max-width: 680px; margin: 0 auto !important; }

.chct__search {
	position: relative; display: flex; align-items: center;
	max-width: 620px; margin: 30px auto 0;
	background: #fff; border: 1.5px solid var(--chct-borde); border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 27, 61, .08);
	transition: border-color .15s, box-shadow .15s;
}
.chct__search:focus-within { border-color: var(--chct-azul); box-shadow: 0 0 0 4px rgba(33, 86, 217, .12), 0 10px 30px rgba(15, 27, 61, .08); }
.chct__search > svg { position: absolute; left: 18px; width: 22px; height: 22px; color: var(--chct-pizarra); pointer-events: none; }
.chct .chct__search-input {
	width: 100%; height: 60px; margin: 0;
	padding: 0 52px 0 52px; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none;
	font: inherit; font-size: 16px; color: var(--chct-marino);
	-webkit-appearance: none; appearance: none;
}
.chct__search-input::placeholder { color: #8C98AB; }
.chct__kbd {
	position: absolute; right: 16px;
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 7px;
	border: 1px solid var(--chct-borde); background: var(--chct-fondo);
	font: 600 13px/1 inherit; color: var(--chct-pizarra);
}
.chct__search:focus-within .chct__kbd { display: none; }

.chct__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 26px !important; }
.chct__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--chct-marino); }
.chct__trust svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Cuerpo ---------- */
.chct__body { max-width: 1240px; margin: 0 auto; padding: 40px 24px 16px; }

.chct__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.chct__chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
.chct__toolbar > * { min-width: 0; }
.chct { overflow-x: clip; }
.chct .chct__chip {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0; padding: 9px 16px; border-radius: 999px;
	background: #fff; border: 1.5px solid var(--chct-borde); color: var(--chct-marino);
	font-size: 14.5px; font-weight: 500; line-height: 1.2;
	transition: background .15s, border-color .15s, color .15s;
}
.chct .chct__chip span {
	min-width: 22px; padding: 1px 7px; border-radius: 999px;
	background: var(--chct-azul-claro); color: var(--chct-azul); font-size: 12px; font-weight: 600;
}
.chct .chct__chip:hover { border-color: var(--chct-azul); color: var(--chct-azul); }
.chct .chct__chip.is-active { background: var(--chct-azul); border-color: var(--chct-azul); color: #fff; }
.chct .chct__chip.is-active span { background: rgba(255, 255, 255, .22); color: #fff; }
.chct__chip:focus-visible, .chct__card:focus-visible, .chct__reset:focus-visible { outline: 2px solid var(--chct-azul); outline-offset: 3px; }
.chct__search--small { margin: 0; max-width: 320px; flex: 1; box-shadow: none; border-radius: 12px; }
.chct__search--small .chct__search-input { height: 46px; padding-right: 16px; font-size: 15px; }
.chct__search--small > svg { left: 14px; width: 19px; height: 19px; }
.chct__search--small .chct__search-input { padding-left: 42px; }

/* Rejilla */
.chct__grid { display: grid; gap: 20px; }
.chct__grid--2 { grid-template-columns: repeat(2, 1fr); }
.chct__grid--3 { grid-template-columns: repeat(3, 1fr); }
.chct__grid--4 { grid-template-columns: repeat(4, 1fr); }
.chct__item[hidden] { display: none !important; }

.chct__card {
	position: relative; height: 100%;
	display: flex; flex-direction: column; gap: 10px;
	padding: 24px; border-radius: 20px;
	background: #fff; border: 1.5px solid var(--chct-borde);
	color: var(--chct-marino) !important;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.chct__card:hover { transform: translateY(-4px); border-color: rgba(33, 86, 217, .35); box-shadow: 0 18px 40px rgba(15, 27, 61, .10); }
.chct__card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.chct__icon {
	display: flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; border-radius: 16px;
	background: var(--chct-azul-claro);
	transition: transform .2s;
}
.chct__icon--convertir { background: var(--chct-menta-claro); }
.chct__icon--optimizar { background: #F1F4FA; }
.chct__card:hover .chct__icon { transform: scale(1.06) rotate(-3deg); }
.chct__icon svg { width: 46px; height: 46px; }
.chct__badge {
	padding: 4px 10px; border-radius: 999px;
	background: #FFF4DB; color: #9A6200;
	font-size: 12px; font-weight: 600;
}
.chct__badge--new { background: var(--chct-menta-claro); color: var(--chct-menta-osc); }
.chct__name { font-size: 18px; font-weight: 600; line-height: 1.3; }
.chct__desc { font-size: 14.5px; color: var(--chct-pizarra); line-height: 1.55; flex: 1; }
.chct__formats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.chct__fmt {
	padding: 3px 8px; border-radius: 6px;
	background: var(--chct-fondo); border: 1px solid var(--chct-borde);
	font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: var(--chct-pizarra);
}
.chct__fmt--out { background: var(--chct-menta-claro); border-color: transparent; color: var(--chct-menta-osc); }
.chct__fmt-arrow { width: 16px; height: 16px; color: var(--chct-menta-osc); }
.chct__cta {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--chct-azul);
}
.chct__cta svg { width: 16px; height: 16px; transition: transform .2s; }
.chct__card:hover .chct__cta svg { transform: translateX(4px); }

/* Sin resultados */
.chct__empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--chct-borde); border-radius: 20px; background: #fff; color: var(--chct-pizarra); }
.chct__empty strong { color: var(--chct-marino); font-size: 17px; }
.chct__empty p + p { margin-top: 6px; }
.chct .chct__reset {
	margin-top: 18px; padding: 11px 20px; border-radius: 12px; border: 0;
	background: var(--chct-azul); color: #fff; font-weight: 600; font-size: 15px;
}
.chct .chct__reset:hover { background: var(--chct-azul-hover); }

/* Cómo funciona */
.chct__steps { max-width: 1240px; margin: 0 auto; padding: 48px 24px 64px; }
.chct .chct__h2 { margin: 0 0 24px; padding: 0; text-align: center; font-family: inherit; font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--chct-marino); letter-spacing: -.01em; }
.chct__steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.chct__steps-list li {
	position: relative; padding: 26px 24px; border-radius: 20px;
	background: #fff; border: 1.5px solid var(--chct-borde);
}
.chct__step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
	background: var(--chct-azul); color: #fff; font-weight: 700; font-size: 17px;
}
.chct__steps-list li:nth-child(2) .chct__step-num { background: var(--chct-menta-osc); }
.chct__steps-list li:nth-child(3) .chct__step-num { background: var(--chct-marino); }
.chct__steps-list strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.chct__steps-list p { font-size: 14.5px; color: var(--chct-pizarra); }

/* ---------- Tableta ---------- */
@media (max-width: 1024px) {
	.chct__grid--3, .chct__grid--4 { grid-template-columns: repeat(2, 1fr); }
	.chct__hero { padding: 56px 24px 44px; }
}
@media (max-width: 820px) {
	.chct__toolbar { flex-direction: column; align-items: stretch; }
	.chct__search--small { max-width: none; }
	.chct__steps-list { grid-template-columns: 1fr; gap: 12px; }
	.chct__steps-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; padding: 20px; }
	.chct__step-num { grid-row: span 2; margin: 0; }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
	.chct__hero { padding: 44px 16px 36px; }
	.chct__search { margin-top: 24px; border-radius: 14px; }
	.chct .chct__search-input { height: 54px; font-size: 16px; padding-right: 16px; }
	.chct__kbd { display: none; }
	.chct__trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; max-width: 420px; margin-left: auto !important; margin-right: auto !important; }
	.chct__trust li { font-size: 13.5px; }
	.chct__body { padding: 28px 16px 8px; }
	/* chips desplazables en horizontal */
	.chct__toolbar { margin-bottom: 18px; }
	.chct__chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); max-width: none; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.chct__chips::-webkit-scrollbar { display: none; }
	.chct .chct__chip { flex-shrink: 0; }
	.chct__grid--2, .chct__grid--3, .chct__grid--4 { grid-template-columns: 1fr; gap: 12px; }
	/* tarjeta compacta horizontal */
	.chct__card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; padding: 18px; border-radius: 18px; }
	.chct__card:hover { transform: none; }
	.chct__card-top { grid-row: span 4; align-self: start; margin: 0; flex-direction: column; align-items: center; gap: 8px; }
	.chct__icon { width: 54px; height: 54px; border-radius: 14px; }
	.chct__icon svg { width: 40px; height: 40px; }
	.chct__badge { font-size: 11px; padding: 3px 8px; }
	.chct__name { font-size: 16.5px; }
	.chct__desc { font-size: 14px; }
	.chct__cta { display: none; }
	.chct__steps { padding: 36px 16px 48px; }
}

@media (prefers-reduced-motion: reduce) {
	.chct *, .chct *::before, .chct *::after { transition: none !important; }
}

/* ---------- Para qué sirve el sitio y últimos artículos (1.4.0) ---------- */
.chct__about { max-width: 860px; margin: 0 auto; padding: 8px 24px 56px; }
.chct__about-text p { font-size: 16.5px; line-height: 1.7; color: #3D4A63; margin: 0 0 16px !important; }
.chct__about-text p:last-child { margin-bottom: 0 !important; }
.chct__blog { max-width: 1240px; margin: 0 auto; padding: 0 24px 72px; }
.chct__blog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.chct .chct__blog-head .chct__h2 { margin: 0; text-align: left; }
.chct__blog-all { color: var(--chct-azul); font-weight: 600; text-decoration: none; }
.chct__blog-all:hover { text-decoration: underline; }
.chct__posts { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chct__post { margin: 0 !important; padding: 0 !important; }
.chct__post-link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--chct-borde); border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.chct__post-link:hover, .chct__post-link:focus-visible { border-color: var(--chct-azul); box-shadow: 0 12px 30px -12px rgba(33, 86, 217, .25); transform: translateY(-2px); }
.chct__post-img { display: block; aspect-ratio: 16 / 9; background: var(--chct-azul-claro); overflow: hidden; }
.chct__post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chct__post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.chct__post-cat { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--chct-menta-osc); background: var(--chct-menta-claro); padding: 3px 10px; border-radius: 999px; }
.chct__post-title { font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--chct-marino); }
.chct__post-date { font-size: 13px; color: var(--chct-pizarra); }
.chct__post-ex { font-size: 14.5px; line-height: 1.55; color: var(--chct-pizarra); }
.chct__post-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--chct-azul); }
@media (max-width: 1024px) { .chct__posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
	.chct__about { padding: 0 16px 40px; }
	.chct__about-text p { font-size: 16px; }
	.chct__blog { padding: 0 16px 48px; }
	.chct__posts { grid-template-columns: 1fr; }
}
