/* Mi espacio · área personal. Se apoya en los tokens de fab.css. */

.fab-espacio {
	--e-ink: var(--fa-ink, #15171a);
	--e-muted: var(--fa-muted, #687078);
	--e-line: var(--fa-line, #e2e5e8);
	--e-soft: var(--fa-soft, #f5f6f7);
	--e-panel: var(--fa-panel, #111315);
	--e-yellow: var(--fa-yellow, #ffc400);
	--e-yellow-dark: var(--fa-yellow-dark, #dca900);
	--e-yellow-ink: #8a6900;
	--e-yellow-soft: #fff8e0;
	--e-green: var(--fa-green, #2f8068);
	--e-green-soft: #eaf4f0;
	--e-red: #a8321f;
	--e-red-soft: #fbeeeb;
	--e-shadow: 0 14px 40px rgba(11, 14, 17, .08);
	padding-bottom: 96px;
}

.espacio-hero {
	padding-bottom: 26px;
}

.espacio-aviso-verde {
	background: var(--e-green-soft);
	color: #1f5a48;
	border-radius: 10px;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	margin: 14px 0 0;
	max-width: 42em;
}

/* ---------- Tarjetas ---------- */

.espacio-tarjeta {
	background: #fff;
	border: 1px solid var(--e-line);
	border-radius: 12px;
	padding: 22px 24px;
	margin: 0 0 18px;
	box-shadow: var(--e-shadow);
}

.espacio-tarjeta h2 {
	font-size: clamp(22px, 3.2vw, 28px);
	font-weight: 800;
	letter-spacing: -.02em;
	margin: 0 0 12px;
	color: var(--e-ink);
}

.espacio-tarjeta h3 {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--e-ink);
}

.espacio-tarjeta p {
	font-size: 16.5px;
	line-height: 1.68;
	color: #3d444a;
	margin: 0 0 14px;
}

.espacio-tarjeta--puerta {
	border-left: 4px solid var(--e-yellow-dark);
}

.espacio-tarjeta--envio {
	border-top: 3px solid var(--e-green);
}

.espacio-tarjeta--peligro {
	border-top: 3px solid var(--e-red);
}

/* ---------- Puerta ---------- */

.espacio-puerta {
	padding-top: 26px;
}

.espacio-estado {
	display: inline-block;
	border-radius: 999px;
	padding: 6px 15px;
	font-size: 13.5px;
	font-weight: 700;
	margin: 0 0 14px;
}

.espacio-estado--off {
	background: var(--e-soft);
	color: var(--e-muted);
}

.espacio-estado--on {
	background: var(--e-green-soft);
	color: #1f5a48;
}

.espacio-estado--malo {
	background: var(--e-red-soft);
	color: #7a2617;
}

.espacio-puntos {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	border-top: 1px solid var(--e-line);
}

.espacio-puntos li {
	position: relative;
	padding: 13px 0 13px 22px;
	border-bottom: 1px solid var(--e-line);
	font-size: 16px;
	line-height: 1.55;
	color: #3d444a;
}

.espacio-puntos li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 21px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--e-yellow-dark);
}

.espacio-nota {
	font-size: 15px;
	color: var(--e-muted);
	margin: 14px 0 0;
}

/* ---------- Botones ---------- */

.espacio-btn {
	cursor: pointer;
	border: none;
	border-radius: 9px;
	padding: 13px 22px;
	font: inherit;
	font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
	font-size: 16px;
	font-weight: 700;
	background: var(--e-yellow);
	color: #15171a;
	transition: background .15s, opacity .15s;
}

.espacio-btn:hover { background: var(--e-yellow-dark); }
.espacio-btn:disabled { opacity: .55; cursor: default; }

.espacio-btn--grande {
	width: 100%;
	padding: 16px 22px;
	font-size: 17px;
}

.espacio-btn--ghost {
	background: #fff;
	border: 1.5px solid var(--e-line);
	color: var(--e-ink);
}

.espacio-btn--ghost:hover { background: var(--e-soft); }

.espacio-btn--peligro {
	background: var(--e-red-soft);
	color: #7a2617;
	border: 1.5px solid #f0cfc8;
}

.espacio-btn--peligro:hover { background: #f7ded8; }

.espacio-acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.espacio-mini {
	cursor: pointer;
	background: #fff;
	border: 1px solid var(--e-line);
	border-radius: 7px;
	padding: 6px 12px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--e-muted);
}

.espacio-mini:hover { border-color: var(--e-yellow-dark); color: var(--e-ink); }
.espacio-mini--borrar:hover { border-color: #e0b3a8; color: #7a2617; }

/* ---------- Formularios ---------- */

.espacio-label {
	display: block;
	font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--e-muted);
	margin-bottom: 6px;
}

.espacio-input,
.espacio-textarea {
	width: 100%;
	padding: 13px 15px;
	font: inherit;
	font-size: 16.5px;
	color: var(--e-ink);
	background: #fff;
	border: 1.5px solid var(--e-line);
	border-radius: 9px;
}

.espacio-textarea { resize: vertical; line-height: 1.6; }

.espacio-input:focus,
.espacio-textarea:focus {
	outline: none;
	border-color: var(--e-yellow-dark);
	box-shadow: 0 0 0 3px rgba(255, 196, 0, .25);
}

.espacio-campos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.espacio-campo { margin-bottom: 14px; }
.espacio-campos .espacio-campo { margin-bottom: 0; }

.espacio-consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--e-soft);
	border-radius: 9px;
	padding: 14px 16px;
	margin: 4px 0 16px;
	font-size: 15px;
	line-height: 1.55;
	color: #3d444a;
	cursor: pointer;
}

.espacio-consent input {
	width: 19px;
	height: 19px;
	margin: 1px 0 0;
	accent-color: var(--e-yellow-dark);
	flex: none;
}

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

.espacio-feedback {
	font-size: 14.5px;
	margin: 12px 0 0;
	min-height: 20px;
}

.espacio-feedback.es-bueno { color: var(--e-green); }
.espacio-feedback.es-malo { color: #a8321f; }

/* ---------- Cabecera del app ---------- */

.espacio-barra {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0 6px;
}

.espacio-barra .espacio-estado { margin: 0; }

.espacio-sesion {
	margin: 0;
	font-size: 14px;
	color: var(--e-muted);
}

.espacio-panel { padding: 10px 0 30px; }

.espacio-h2 {
	font-size: clamp(23px, 3.4vw, 30px);
	font-weight: 800;
	letter-spacing: -.02em;
	margin: 18px 0 10px;
	color: var(--e-ink);
}

.espacio-intro {
	font-size: 16.5px;
	line-height: 1.68;
	color: var(--e-muted);
	margin: 0 0 18px;
	max-width: 44em;
}

.espacio-vacio {
	border: 1px dashed var(--e-line);
	border-radius: 11px;
	padding: 24px;
	text-align: center;
}

.espacio-vacio p {
	margin: 0;
	font-size: 16px;
	color: var(--e-muted);
	max-width: 34em;
	margin-inline: auto;
}

/* ---------- Primera vez ---------- */

.espacio-primera { border-top: 3px solid var(--e-yellow); }

.espacio-chip {
	display: inline-block;
	background: var(--e-yellow-soft);
	color: var(--e-yellow-ink);
	border-radius: 999px;
	padding: 5px 14px;
	font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.espacio-pasos { list-style: none; margin: 18px 0 0; padding: 0; }

.espacio-pasos li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 14px 0;
	border-top: 1px solid var(--e-line);
}

.espacio-pasos li span {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: var(--e-yellow-soft);
	color: var(--e-yellow-ink);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.espacio-pasos li p { margin: 4px 0 0; }

/* ---------- Notas ---------- */

.espacio-nota,
.espacio-sesion-card {
	background: #fff;
	border: 1px solid var(--e-line);
	border-radius: 11px;
	padding: 16px 18px;
	margin-bottom: 12px;
}

.espacio-nota--hecha { background: var(--e-soft); opacity: .8; }

.espacio-nota__fecha,
.espacio-sesion-card__fecha {
	margin: 0 0 6px;
	font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--e-yellow-ink);
}

.espacio-nota__texto {
	margin: 0 0 12px;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--e-ink);
}

.espacio-nota__pie { display: flex; flex-wrap: wrap; gap: 8px; }

.espacio-desplegable {
	border: 1px solid var(--e-line);
	border-radius: 11px;
	background: #fff;
	margin-top: 18px;
	padding: 0;
}

.espacio-desplegable summary {
	cursor: pointer;
	padding: 14px 18px;
	font-weight: 700;
	font-size: 16px;
	color: var(--e-muted);
}

.espacio-desplegable[open] summary { border-bottom: 1px solid var(--e-line); }
.espacio-desplegable > div { padding: 14px 18px 4px; }

/* ---------- Diario ---------- */

.espacio-mes {
	margin: 24px 0 10px;
	font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--e-muted);
}

.espacio-sesion-card__cab {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.espacio-sesion-card__que {
	margin: 0 0 8px;
	font-size: 17.5px;
	font-weight: 700;
	color: var(--e-ink);
	line-height: 1.35;
}

.espacio-sesion-card__texto {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.65;
	color: #3d444a;
}

.espacio-sesion-card__molestia {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #7a2617;
	background: var(--e-red-soft);
	border-radius: 8px;
	padding: 9px 13px;
}

/* ---------- Evolución ---------- */

.espacio-cifras {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.espacio-cifra {
	background: #fff;
	border: 1px solid var(--e-line);
	border-radius: 11px;
	padding: 18px;
	text-align: center;
}

.espacio-cifra strong {
	display: block;
	font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--e-ink);
	line-height: 1;
	margin-bottom: 7px;
}

.espacio-cifra span {
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--e-muted);
	display: block;
}

.espacio-barras {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	height: 150px;
	margin: 16px 0 12px;
}

.espacio-barra-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
}

.espacio-barra-n {
	font-size: 13px;
	font-weight: 700;
	color: var(--e-muted);
	height: 18px;
}

.espacio-barra-pista {
	flex: 1;
	width: 100%;
	display: flex;
	align-items: flex-end;
	background: var(--e-soft);
	border-radius: 6px;
	overflow: hidden;
}

.espacio-barra-valor {
	width: 100%;
	background: var(--e-yellow);
	border-radius: 6px 6px 0 0;
	min-height: 4px;
}

.espacio-barra-valor.es-cero { background: var(--e-line); }

.espacio-barra-w {
	font-size: 11.5px;
	color: var(--e-muted);
	margin-top: 7px;
	white-space: nowrap;
}

.espacio-pie-barras {
	font-size: 14px !important;
	color: var(--e-muted) !important;
	margin: 0 !important;
}

.espacio-frase {
	font-size: 17px !important;
	line-height: 1.7 !important;
	color: var(--e-ink) !important;
	margin: 0 !important;
}

/* ---------- Recursos ---------- */

.espacio-resumen {
	background: var(--e-soft);
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 14px;
}

.espacio-resumen p { margin: 0; font-size: 16px; color: #3d444a; }
.espacio-resumen strong { color: var(--e-ink); }

.espacio-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.espacio-filtro {
	cursor: pointer;
	background: #fff;
	border: 1.5px solid var(--e-line);
	border-radius: 999px;
	padding: 8px 16px;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--e-muted);
}

.espacio-filtro.is-on {
	border-color: var(--e-yellow-dark);
	background: var(--e-yellow-soft);
	color: var(--e-yellow-ink);
}

.espacio-bloque-t {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--e-muted);
	margin: 26px 0 10px;
}

.espacio-recursos {
	border: 1px solid var(--e-line);
	border-radius: 11px;
	overflow: hidden;
	background: #fff;
}

.espacio-recurso {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid var(--e-line);
}

.espacio-recurso:last-child { border-bottom: none; }
.espacio-recurso.es-hecho { background: var(--e-green-soft); }
.espacio-recurso.es-empezado { background: var(--e-yellow-soft); }

.espacio-recurso__txt { flex: 1 1 240px; min-width: 0; }

.espacio-recurso__nombre {
	margin: 0 0 3px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--e-muted);
}

.espacio-recurso__titulo {
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--e-ink);
	text-decoration: none;
}

.espacio-recurso__titulo:hover {
	text-decoration: underline;
	text-decoration-color: var(--e-yellow-dark);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.espacio-recurso__acc {
	display: flex;
	gap: 10px;
	align-items: center;
	flex: none;
}

.espacio-etiqueta {
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}

.espacio-etiqueta.es-hecho { background: #d4e9e1; color: #1f5a48; }
.espacio-etiqueta.es-empezado { background: #ffeeb3; color: var(--e-yellow-ink); }
.espacio-etiqueta.es-pendiente { background: var(--e-soft); color: var(--e-muted); }

/* ---------- Barra inferior ---------- */

.espacio-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	background: rgba(255, 255, 255, .97);
	backdrop-filter: saturate(160%) blur(8px);
	border-top: 1px solid var(--e-line);
	box-shadow: 0 -6px 24px rgba(11, 14, 17, .07);
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.espacio-nav__item {
	cursor: pointer;
	background: none;
	border: none;
	border-top: 3px solid transparent;
	padding: 9px 4px 10px;
	font: inherit;
	font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--e-muted);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	transition: color .15s, border-color .15s;
}

.espacio-nav__item:hover { color: var(--e-ink); }

.espacio-nav__item.is-on {
	color: var(--e-yellow-ink);
	border-top-color: var(--e-yellow);
}

.espacio-nav__icono { width: 23px; height: 23px; display: block; }
.espacio-nav__icono svg { width: 100%; height: 100%; display: block; }

/* ---------- Impresión ---------- */

#para-imprimir { display: none; }

@media print {
	.espacio-nav,
	.espacio-hero,
	.espacio-barra,
	.espacio-panel,
	.espacio-puerta,
	.fa-cta,
	header,
	footer,
	nav { display: none !important; }

	#para-imprimir {
		display: block !important;
		font-family: Georgia, "Times New Roman", serif;
	}

	#para-imprimir pre {
		white-space: pre-wrap;
		word-wrap: break-word;
		font-family: Georgia, "Times New Roman", serif;
		font-size: 11.5pt;
		line-height: 1.5;
	}
}

/* ---------- Móvil ---------- */

@media (max-width: 640px) {
	.espacio-tarjeta { padding: 18px; }
	.espacio-acciones .espacio-btn { width: 100%; }
	.espacio-barras { height: 120px; gap: 5px; }
	.espacio-barra-w { font-size: 10px; }
	.espacio-nav__item { font-size: 10.5px; }
	.espacio-recurso__acc { width: 100%; justify-content: space-between; }
}

/* ---------- Ocultar de verdad ----------
   El tema define reglas de display sobre las clases de contenedor, y eso anula el
   atributo hidden sin avisar. Todo lo que se oculta aquí usa esta clase. */

.fab-espacio .es-oculto,
.es-oculto {
	display: none !important;
}

.espacio-ancla {
	display: block;
	height: 0;
	scroll-margin-top: 90px;
}

/* ---------- Secciones del formulario ---------- */

.espacio-seccion {
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--e-yellow-ink) !important;
	margin: 30px 0 14px !important;
	padding-top: 20px;
	border-top: 1px solid var(--e-line);
}

.espacio-tarjeta .espacio-seccion:first-of-type {
	margin-top: 4px !important;
	padding-top: 0;
	border-top: none;
}

.espacio-ayuda {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--e-muted);
	margin: 0 0 10px;
}

.espacio-ayuda--bloque {
	background: var(--e-soft);
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 18px;
}

/* ---------- Escala 0-10 ---------- */

.espacio-escala { margin-bottom: 22px; }

.espacio-escala__fila {
	display: grid;
	grid-template-columns: repeat(11, 1fr);
	gap: 4px;
}

.espacio-escala__n {
	cursor: pointer;
	border: 1.5px solid var(--e-line);
	background: #fff;
	border-radius: 8px;
	padding: 11px 0;
	font: inherit;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--e-muted);
	transition: background .12s, border-color .12s, color .12s;
}

.espacio-escala__n:hover { border-color: var(--e-yellow-dark); color: var(--e-ink); }

.espacio-escala__n.is-on {
	background: var(--e-yellow);
	border-color: var(--e-yellow-dark);
	color: #15171a;
}

.espacio-escala__leyenda {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--e-muted);
	margin: 7px 0 0;
}

/* ---------- Opciones ---------- */

.espacio-opciones { margin-bottom: 20px; }

.espacio-opciones__fila { display: flex; flex-wrap: wrap; gap: 8px; }

.espacio-opcion {
	cursor: pointer;
	border: 1.5px solid var(--e-line);
	background: #fff;
	border-radius: 999px;
	padding: 10px 18px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--e-muted);
}

.espacio-opcion:hover { border-color: var(--e-yellow-dark); color: var(--e-ink); }

.espacio-opcion.is-on {
	background: var(--e-yellow-soft);
	border-color: var(--e-yellow-dark);
	color: var(--e-yellow-ink);
}

/* ---------- Tareas ---------- */

.espacio-tarea-alta { display: flex; gap: 8px; }
.espacio-tarea-alta .espacio-input { flex: 1; }
.espacio-tarea-alta .espacio-btn { flex: none; }

.espacio-tareas { list-style: none; margin: 12px 0 0; padding: 0; }

.espacio-tarea {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 12px;
	background: var(--e-soft);
	border-radius: 8px;
	margin-bottom: 7px;
	font-size: 15.5px;
}

.espacio-tarea span { flex: 1; }
.espacio-tarea.es-hecha span { text-decoration: line-through; color: var(--e-muted); }

.espacio-tarea__check {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	border: 1.5px solid var(--e-line);
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 800;
	color: var(--e-green);
	line-height: 1;
}

.espacio-tarea.es-hecha .espacio-tarea__check {
	background: var(--e-green-soft);
	border-color: #9fcfbf;
}

/* ---------- Edición ---------- */

.espacio-editando {
	background: var(--e-yellow-soft);
	border: 1px solid #ffe9a3;
	border-radius: 9px;
	padding: 14px 16px;
	margin-bottom: 18px;
}

.espacio-editando p {
	margin: 0 0 10px !important;
	font-size: 15px !important;
	color: var(--e-yellow-ink) !important;
}

.espacio-acciones--guardar {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--e-line);
}

/* ---------- Buscador ---------- */

.espacio-buscador { margin-bottom: 18px; }

/* ---------- Tarjeta de sesión ---------- */

.espacio-sesion-card { padding: 0; overflow: hidden; }

.espacio-sesion-card__cab {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	padding: 16px 44px 16px 18px;
	font: inherit;
	position: relative;
}

.espacio-sesion-card__cab:hover { background: var(--e-soft); }

.espacio-sesion-card__fecha {
	display: block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--e-yellow-ink);
	margin-bottom: 5px;
}

.espacio-sesion-card__que {
	display: block;
	font-size: 17.5px;
	font-weight: 700;
	color: var(--e-ink);
	line-height: 1.35;
	margin-bottom: 4px;
}

.espacio-sesion-card__avance {
	display: block;
	font-size: 15px;
	color: var(--e-muted);
	line-height: 1.5;
}

.espacio-sesion-card__flecha {
	position: absolute;
	right: 18px;
	top: 20px;
	font-size: 15px;
	color: var(--e-muted);
	transition: transform .15s;
}

.espacio-sesion-card__cab.is-abierto .espacio-sesion-card__flecha { transform: rotate(180deg); }

.espacio-sesion-card__cuerpo {
	padding: 4px 18px 16px;
	border-top: 1px solid var(--e-line);
}

.espacio-sesion-card__pie {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--e-line);
}

.espacio-mini--enviar {
	background: var(--e-green-soft);
	border-color: #9fcfbf;
	color: #1f5a48;
}

.espacio-mini--enviar:hover { background: #d9ede6; border-color: #7cbfa9; color: #1f5a48; }

/* ---------- Detalle ---------- */

.espacio-detalle { margin: 14px 0 0; }

.espacio-detalle__fila {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid var(--e-line);
}

.espacio-detalle__fila dt {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--e-muted);
	padding-top: 2px;
}

.espacio-detalle__fila dd {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #3d444a;
}

.espacio-detalle__fila.es-molestia dd { color: #7a2617; }

.espacio-detalle__fila.es-contar dd {
	background: var(--e-yellow-soft);
	border-radius: 7px;
	padding: 10px 13px;
	color: #5c4700;
}

.espacio-detalle__tareas { list-style: none; margin: 0; padding: 0; }
.espacio-detalle__tareas li { font-size: 15.5px; padding: 2px 0; }
.espacio-detalle__tareas li.es-hecha { color: var(--e-muted); text-decoration: line-through; }

.espacio-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 0; }

.espacio-chip-dato {
	background: var(--e-soft);
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 13.5px;
	color: #3d444a;
}

.espacio-chip-dato strong { color: var(--e-ink); }

/* ---------- Medias ---------- */

.espacio-media {
	display: grid;
	grid-template-columns: 120px 1fr 58px;
	gap: 12px;
	align-items: center;
	margin-bottom: 11px;
}

.espacio-media > span { font-size: 14.5px; color: var(--e-muted); }

.espacio-media__pista {
	height: 10px;
	background: var(--e-soft);
	border-radius: 999px;
	overflow: hidden;
}

.espacio-media__valor { height: 100%; background: var(--e-yellow); border-radius: 999px; }

.espacio-media strong {
	font-size: 14.5px;
	text-align: right;
	color: var(--e-ink);
	font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 640px) {
	.espacio-escala__n { padding: 9px 0; font-size: 13.5px; }
	.espacio-detalle__fila { grid-template-columns: 1fr; gap: 4px; }
	.espacio-media { grid-template-columns: 96px 1fr 50px; gap: 9px; }
	.espacio-media > span { font-size: 13px; }
	.espacio-tarea-alta { flex-direction: column; }
	.espacio-tarea-alta .espacio-btn { width: 100%; }
}
