/* Homo Salus – Miembros: extracto de artículos restringidos, "Mi cuenta" y avisos. */

/* ===== Extracto de artículo para miembros ===== */
.hsc-teaser {
	position: relative;
	margin-bottom: 30px;
}
.hsc-teaser__extracto {
	max-height: 14em;
	overflow: hidden;
}
.hsc-teaser::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 5em;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

.hsc-cta {
	margin: 0 0 30px;
	clear: both;
}
/* Páginas solo para miembros (p. ej. Autoevaluación): el bloque sustituye a todo el contenido. */
.hsc-pagina-miembros {
	max-width: 800px;
	margin: 60px auto 80px;
	padding: 0 16px;
}
.hsc-cta--simple {
	padding: 28px 24px;
	text-align: center;
	background: #f3e5f5;
	border-radius: 10px;
}

/* ===== Botones ===== */
.hsc-boton,
.hsc-boton:visited {
	display: inline-block;
	margin: 4px 6px 4px 0;
	padding: 10px 24px;
	background: #ab47bc;
	border: 2px solid #ab47bc;
	border-radius: 30px;
	color: #fff !important;
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}
.hsc-boton:hover {
	background: rgba(171, 71, 188, .72);
	border-color: transparent;
}
.hsc-boton--secundario,
.hsc-boton--secundario:visited {
	background: transparent;
	color: #ab47bc !important;
}
.hsc-boton--secundario:hover {
	background: #ab47bc;
	color: #fff !important;
}

/* ===== Mi cuenta ===== */
.hsc-cuenta {
	max-width: 640px;
	margin: 0 auto;
	font-size: 16px;
}
.hsc-cuenta__email {
	color: #888;
	font-size: 14px;
}
.hsc-cuenta__datos {
	width: 100%;
	margin: 16px 0 20px;
	border-collapse: collapse;
}
.hsc-cuenta__datos th,
.hsc-cuenta__datos td {
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	text-align: left;
	vertical-align: top;
}
.hsc-cuenta__datos th {
	width: 45%;
	color: #777;
	font-weight: 400;
}
.hsc-cuenta__nota {
	color: #888;
	font-size: 14px;
}
.hsc-cuenta__salir {
	margin-top: 28px;
	font-size: 14px;
}

.hsc-estado {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
}
.hsc-estado--ok {
	background: #e8f5e9;
	color: #2e7d32;
}

.hsc-aviso {
	padding: 12px 16px;
	background: #faf5fb;
	border-left: 4px solid #ab47bc;
	border-radius: 4px;
}
.hsc-aviso--ok {
	background: #e8f5e9;
	border-color: #4caf50;
}
.hsc-aviso--error {
	background: #fdecea;
	border-color: #e53935;
}

/* Nota "35 € para miembros" junto al precio de la consulta */
.hsc-precio__nota {
	color: #777;
	font-size: .9em;
}

/* Lista de ventajas (página "Hazte miembro") */
ul.hsc-lista {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
ul.hsc-lista li {
	position: relative;
	margin: 0 !important;
	padding: 8px 0 8px 26px;
	border-bottom: 1px solid #f0f0f0;
	list-style: none !important;
}
ul.hsc-lista li::before {
	content: "✔";
	position: absolute;
	left: 2px;
	color: #ab47bc;
}

/* Botones en línea del bloque "Hazte miembro": misma separación inferior para que queden alineados */
.hsc-cta .elementor-widget-button.elementor-widget__width-auto {
	margin-bottom: 0 !important;
}

/* ===== Menú: icono "Acceder" ===== */
.hsc-menu-cuenta__icono {
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
	margin-top: -3px;
}
#navigation .hsc-menu-cuenta__texto {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
/* En el menú lateral del móvil, icono + texto */
#sidebar-nav .hsc-menu-cuenta__texto {
	margin-left: 8px;
	vertical-align: middle;
}

/* ===== Pie anclado abajo en páginas cortas ("Mi cuenta") ===== */
body.hsc-pie-abajo #soledad_wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
body.admin-bar.hsc-pie-abajo #soledad_wrapper {
	min-height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar.hsc-pie-abajo #soledad_wrapper {
		min-height: calc(100vh - 46px);
	}
}
body.hsc-pie-abajo #footer-section {
	margin-top: auto;
}
