/* Ronda 6 de la auditoría del sitio (S48–S55) — Luis autorizó estos puntos el 2026-11-19. Todo lo de este archivo es aditivo. */

/* ---------- S48 · Páginas de familia y subfamilia ---------- */
.tx-hub--familia .tx-hub__intro { margin: 6px 0 20px; font-size: 1.02rem; }
.tx-hub--familia .tx-card__title { line-height: 1.25; }
.tx-hub--familia .tx-card__desc { color: #4b5563; font-size: 0.875rem; line-height: 1.4; }
.tx-hub--familia .tx-card__photo .fa-image { font-size: 2.4rem; color: #b9b2a3; }

/* Tableta: 3 columnas */
@media (min-width: 600px) and (max-width: 899px) {
	.tx-hub--familia .tx-hub__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
/* Celular: 2 columnas, foto 4:3 completa, tarjeta compacta (≈230 px de alto) para ver 4–6 opciones por pantalla */
@media (max-width: 599px) {
	.tx-hub--familia .tx-hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tx-hub--familia .tx-card { padding: 8px; gap: 4px; }
	.tx-hub--familia .tx-card__photo { aspect-ratio: 4 / 3; border-radius: 8px; }
	.tx-hub--familia .tx-card__photo img { object-fit: contain; background: #fff; }
	.tx-hub--familia .tx-card__title { font-size: 0.96rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.tx-hub--familia .tx-card__desc { font-size: 0.875rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.tx-hub--familia .tx-card__meta { font-size: 0.8125rem; }
	.tx-hub--familia h1 { font-size: 1.6rem; line-height: 1.2; }
	.tx-hub--familia .tx-hub__intro { font-size: 0.98rem; margin-bottom: 14px; }
}

/* ---------- S51 · Contacto: tarjetas tocables ---------- */
a.event-card--link { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
a.event-card--link:hover { border-color: var(--mega-menu-accent, #0A4A95); box-shadow: 0 6px 18px rgba(10, 74, 149, .12); }
a.event-card--link:focus-visible { outline: 3px solid var(--mega-menu-accent, #0A4A95); outline-offset: 2px; }
.event-card__lnk { color: var(--mega-menu-accent, #0A4A95); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- S50 · Plantilla de documentos ---------- */
/* Índice «En esta página»: en pantallas grandes se ve igual que antes (abierto, sin flecha) */
@media (min-width: 600px) {
	.sp-doc__toc-d > summary { pointer-events: none; list-style: none; cursor: default; }
	.sp-doc__toc-d > summary::-webkit-details-marker { display: none; }
}
.sp-goform { margin: 18px 0 0; }
.sp-goform .product-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; text-decoration: none; }

@media (max-width: 599px) {
	/* 4 tarjetas de resumen en 2×2 compacta */
	.sp-docpage .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
	.sp-docpage .event-card { padding: 10px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
	.sp-docpage .event-card__icon { width: 32px; height: 32px; margin: 0; font-size: 0.95rem; }
	.sp-docpage .event-card__title { margin: 0; font-size: 0.92rem; line-height: 1.25; }
	.sp-docpage .event-card__text { display: none; }
	/* En Contacto las tarjetas llevan el dato (número, correo, dirección) y siguen siendo enlaces */
	.sp-docpage a.event-card--link .event-card__text { display: -webkit-box; font-size: 0.8125rem; line-height: 1.3; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	/* Índice plegado, con áreas táctiles grandes */
	.sp-doc__toc-d > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0; cursor: pointer; list-style: none; }
	.sp-doc__toc-d > summary::-webkit-details-marker { display: none; }
	.sp-doc__toc-d > summary::after { content: "▾"; font-size: 1rem; color: #5b6474; }
	.sp-doc__toc-d[open] > summary::after { content: "▴"; }
	.sp-doc__toc-d ol { margin-top: 4px; }
	.sp-doc__toc-d li { margin: 0; }
	.sp-doc__toc-d li a { display: block; min-height: 40px; padding: 10px 2px; line-height: 1.3; }
	.sp-docpage .sp-doc__toc { padding: 4px 16px; }
	.sp-goform .product-cta { width: 100%; }
}

/* ---------- S54 · Mi cuenta: para qué sirve crear una cuenta ---------- */
.acct__benefits { list-style: none; margin: 0 0 18px; padding: 14px 16px; background: #e9f0fb; border-radius: 12px; display: grid; gap: 8px; }
.acct__benefits li { position: relative; padding-left: 26px; font-size: 0.95rem; line-height: 1.45; color: #243247; }
.acct__benefits li::before { content: "✓"; position: absolute; left: 4px; top: 0; font-weight: 800; color: var(--mega-menu-accent, #0A4A95); }
