/* Comparar Hojas de Cálculo – Footer  (prefijo .chcf para no chocar con el tema) */
.chcf {
	--chcf-fondo: #0F1B3D;
	--chcf-fondo-2: #16254D;
	--chcf-texto: #B4BFD3;
	--chcf-titulo: #FFFFFF;
	--chcf-menta: #2EC4A6;
	--chcf-linea: rgba(255, 255, 255, .10);
	width: 100%;
	background: var(--chcf-fondo);
	color: var(--chcf-texto);
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	box-sizing: border-box;
}
.chcf *, .chcf *::before, .chcf *::after { box-sizing: border-box; }
.chcf a { color: inherit; text-decoration: none; transition: color .15s; }
.chcf a:hover { color: var(--chcf-menta); }
.chcf a:focus-visible, .chcf button:focus-visible, .chcf summary:focus-visible { outline: 2px solid var(--chcf-menta); outline-offset: 3px; border-radius: 6px; }
.chcf ul { list-style: none; margin: 0; padding: 0; }
.chcf p { margin: 0; }
.chcf button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; }

.chcf__inner { max-width: 1240px; margin: 0 auto; padding: 64px 24px 28px; }

/* Parte superior */
.chcf__top { display: grid; grid-template-columns: minmax(260px, 1.15fr) 3fr; gap: 56px; padding-bottom: 44px; border-bottom: 1px solid var(--chcf-linea); }

.chcf__logo { display: inline-block; }
.chcf__logo svg, .chcf__logo img { display: block; height: 46px; width: auto; }
.chcf__desc { margin-top: 18px; max-width: 340px; font-size: 14.5px; }
.chcf__email { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14.5px; color: var(--chcf-titulo); }
.chcf__email svg { width: 18px; height: 18px; color: var(--chcf-menta); }

.chcf__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chcf__social a {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 12px;
	background: var(--chcf-fondo-2); color: var(--chcf-titulo);
	transition: background .15s, color .15s, transform .15s;
}
.chcf__social a:hover { background: var(--chcf-menta); color: var(--chcf-fondo); transform: translateY(-2px); }
.chcf__social svg { width: 19px; height: 19px; }

/* Columnas */
.chcf__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.chcf__col-title {
	display: flex; align-items: center; justify-content: space-between;
	list-style: none; cursor: default;
	color: var(--chcf-titulo); font-size: 15px; font-weight: 600;
	margin-bottom: 16px;
}
.chcf__col-title::-webkit-details-marker { display: none; }
.chcf__col-title::marker { content: ''; }
.chcf__chev { width: 12px; height: 12px; transition: transform .2s; }
.chcf__col-title .chcf__chev { display: none; }
.chcf__links { display: flex; flex-direction: column; gap: 10px; }
.chcf__links a { font-size: 14.5px; }

/* Parte inferior */
.chcf__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; }
.chcf__copy { font-size: 13.5px; }

.chcf__lang { position: relative; }
.chcf__lang-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 14px; border-radius: 10px;
	border: 1px solid var(--chcf-linea) !important;
	color: var(--chcf-titulo) !important; font-size: 14px; font-weight: 500;
	transition: border-color .15s, background .15s;
}
.chcf__lang-btn:hover, .chcf__lang-btn[aria-expanded="true"] { background: var(--chcf-fondo-2) !important; border-color: rgba(255, 255, 255, .22) !important; }
.chcf__globe { width: 17px; height: 17px; }
.chcf__lang-btn[aria-expanded="true"] .chcf__chev { transform: rotate(180deg); }
.chcf__lang-panel {
	position: absolute; right: 0; bottom: calc(100% + 8px);
	min-width: 190px; padding: 6px;
	background: #fff; color: #0F1B3D;
	border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
	z-index: 20;
}
.chcf__lang-btn[aria-expanded="true"] + .chcf__lang-panel { opacity: 1; visibility: visible; transform: none; }
.chcf__lang-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: #0F1B3D; }
.chcf__lang-panel a:hover { background: #EEF3FF; color: #2156D9; }
.chcf__lang-panel a.is-current { color: #2156D9; }
.chcf__lang-code {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px;
	background: #EEF3FF; color: #2156D9; font-size: 11.5px; font-weight: 600;
}

.chcf__notice { margin-top: 18px !important; font-size: 12px; line-height: 1.55; color: rgba(180, 191, 211, .7); max-width: 900px; }

/* ---------- Tableta ---------- */
@media (max-width: 1024px) {
	.chcf__inner { padding: 56px 24px 28px; }
	.chcf__top { grid-template-columns: 1fr; gap: 40px; }
	.chcf__desc { max-width: 520px; }
	.chcf__cols { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
}

/* ---------- Móvil: columnas en acordeón ---------- */
@media (max-width: 640px) {
	.chcf__inner { padding: 44px 20px 24px; }
	.chcf__top { gap: 28px; padding-bottom: 0; border-bottom: 0; }
	.chcf__cols { grid-template-columns: 1fr; gap: 0; }
	.chcf__col { border-top: 1px solid var(--chcf-linea); }
	.chcf__col:last-child { border-bottom: 1px solid var(--chcf-linea); }
	.chcf__col-title { cursor: pointer; margin: 0; padding: 16px 2px; }
	.chcf__col-title .chcf__chev { display: block; }
	.chcf__col[open] .chcf__col-title .chcf__chev { transform: rotate(180deg); }
	.chcf__links { padding: 0 2px 18px; gap: 12px; }
	.chcf__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 16px; padding-top: 20px; border-top: 0; }
	.chcf__lang-panel { right: auto; left: 0; }
}

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