/* =========================================================
 * Foro de la comunidad y Reseñas
 * ========================================================= */

.comunidad-nota {
	font-size: 0.85em;
	opacity: 0.75;
	border-left: solid 3px rgba(255, 255, 255, 0.25);
	padding-left: 1em;
}

.comunidad-barra {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em;
	margin: 1.5em 0;
}

.comunidad-barra .comunidad-buscar {
	flex: 1 1 260px;
	width: auto;
}

.comunidad-barra .button {
	flex: 0 0 auto;
}

.comunidad-form {
	background: rgba(255, 255, 255, 0.05);
	border: solid 1px rgba(255, 255, 255, 0.15);
	border-radius: 0.5em;
	padding: 1.5em 1.5em 1.75em 1.5em;
	margin: 0 0 2em 0;
	overflow: hidden;
}

.comunidad-form h3,
.comunidad-form h4 {
	margin-bottom: 1em;
}

.comunidad-form .field {
	margin-bottom: 1.25em;
}

.comunidad-form .field.half {
	float: left;
	width: calc(50% - 0.75em);
}

.comunidad-form .field.half.first {
	margin-right: 1.5em;
}

.comunidad-form .field:not(.half) {
	clear: both;
}

.comunidad-form > .button,
.comunidad-form > .comunidad-mensaje {
	clear: both;
}

@media screen and (max-width: 736px) {
	.comunidad-form {
		padding: 1.25em 1em 1.5em 1em;
	}

	.comunidad-form .field.half,
	.comunidad-form .field.half.first {
		float: none;
		width: 100%;
		margin-right: 0;
	}
}

/* Campo trampa contra robots: invisible para las personas */
.comunidad-trampa {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.comunidad-mensaje {
	border-radius: 0.35em;
	padding: 0.75em 1em;
	margin: 0 0 1.25em 0;
	font-size: 0.9em;
}

.comunidad-mensaje.error {
	background: rgba(235, 87, 87, 0.15);
	border: solid 1px rgba(235, 87, 87, 0.6);
	color: #ffd6d6;
}

.comunidad-mensaje.ok {
	background: rgba(37, 211, 102, 0.12);
	border: solid 1px rgba(37, 211, 102, 0.55);
	color: #d4ffe4;
}

.comunidad .button.disabled {
	opacity: 0.5;
	pointer-events: none;
}

/* Lista de preguntas / reseñas */
.comunidad-lista {
	margin-top: 1em;
}

.comunidad-item {
	background: rgba(255, 255, 255, 0.04);
	border: solid 1px rgba(255, 255, 255, 0.12);
	border-radius: 0.5em;
	padding: 1.25em 1.5em;
	margin-bottom: 1em;
	transition: border-color 0.2s ease;
}

.comunidad-item:hover,
.comunidad-item.abierta {
	border-color: rgba(255, 255, 255, 0.3);
}

.comunidad-titulo {
	cursor: pointer;
	margin: 0 0 0.35em 0;
	font-size: 1.15em;
	line-height: 1.4;
}

.comunidad-titulo:hover {
	color: #ffffff;
	text-decoration: underline;
}

.comunidad-meta {
	font-size: 0.8em;
	opacity: 0.7;
	margin-bottom: 0.6em;
}

.comunidad-contador {
	white-space: nowrap;
}

.comunidad-texto {
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: break-word;
	font-size: 0.95em;
	line-height: 1.65;
}

.comunidad-texto.recortado {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 5em;
}

.comunidad-acciones {
	margin-top: 0.75em;
	font-size: 0.85em;
}

.comunidad-respuestas {
	margin-top: 1.25em;
	padding-top: 1em;
	border-top: solid 1px rgba(255, 255, 255, 0.12);
}

.comunidad-respuesta {
	border-left: solid 3px #5e42a6;
	padding: 0.25em 0 0.25em 1em;
	margin-bottom: 1.25em;
}

.comunidad-form-respuesta {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

.comunidad-vacio,
.comunidad-cargando {
	opacity: 0.7;
	font-size: 0.9em;
}

.comunidad-mas {
	text-align: center;
	margin-top: 1.5em;
}

/* Estrellas */
.estrellas-fijas {
	position: relative;
	display: inline-block;
	font-size: 1.1em;
	line-height: 1;
	letter-spacing: 0.1em;
	white-space: nowrap;
	vertical-align: middle;
}

.estrellas-fijas.grandes {
	font-size: 1.6em;
}

.estrellas-fijas .estrellas-base {
	color: rgba(255, 255, 255, 0.2);
}

.estrellas-fijas .estrellas-relleno {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #f5c518;
}

.estrellas-selector {
	font-size: 2em;
	line-height: 1;
	user-select: none;
}

.estrellas-selector span[role="button"] {
	cursor: pointer;
	color: rgba(255, 255, 255, 0.25);
	transition: color 0.15s ease, transform 0.15s ease;
	display: inline-block;
	padding: 0 0.05em;
}

.estrellas-selector span[role="button"].activa {
	color: #f5c518;
}

.estrellas-selector span[role="button"]:hover {
	transform: scale(1.15);
}

.estrellas-texto {
	font-size: 0.45em;
	margin-left: 0.75em;
	vertical-align: middle;
	opacity: 0.85;
}

/* Resumen de reseñas */
.resenas-resumen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2em;
	background: rgba(255, 255, 255, 0.05);
	border: solid 1px rgba(255, 255, 255, 0.15);
	border-radius: 0.5em;
	padding: 1.5em 2em;
	margin: 1.5em 0;
}

.resenas-promedio {
	text-align: center;
	min-width: 150px;
}

.resenas-numero {
	font-size: 3.25em;
	font-weight: bold;
	line-height: 1.1;
	color: #ffffff;
}

.resenas-total {
	font-size: 0.85em;
	opacity: 0.7;
	margin-top: 0.4em;
}

.resenas-barras {
	flex: 1 1 260px;
}

.resenas-barra {
	display: flex;
	align-items: center;
	gap: 0.75em;
	font-size: 0.85em;
	margin: 0.3em 0;
}

.resenas-barra-etiqueta {
	width: 2.5em;
	white-space: nowrap;
}

.resenas-barra-fondo {
	flex: 1;
	height: 0.6em;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 1em;
	overflow: hidden;
}

.resenas-barra-relleno {
	display: block;
	height: 100%;
	background: #f5c518;
	border-radius: 1em;
}

.resenas-barra-cantidad {
	width: 2.5em;
	text-align: right;
	opacity: 0.7;
}

.resena-cabecera {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em;
	margin-bottom: 0.5em;
}

.resena-cabecera .comunidad-meta {
	margin-bottom: 0;
}

@media screen and (max-width: 736px) {
	.resenas-resumen {
		padding: 1.25em;
		gap: 1.25em;
	}

	.resenas-promedio {
		width: 100%;
	}
}


/* =========================================================
 * Actualizaciones
 * ========================================================= */

.actualizaciones-lista {
	margin-top: 2em;
	border-left: solid 2px rgba(255, 255, 255, 0.15);
	padding-left: 1.75em;
}

.actualizacion {
	position: relative;
	background: rgba(255, 255, 255, 0.04);
	border: solid 1px rgba(255, 255, 255, 0.12);
	border-radius: 0.5em;
	padding: 1.25em 1.5em 0.5em 1.5em;
	margin-bottom: 1.5em;
}

.actualizacion:before {
	content: '';
	position: absolute;
	left: -2.3em;
	top: 1.6em;
	width: 0.9em;
	height: 0.9em;
	border-radius: 50%;
	background: #5e42a6;
	border: solid 2px #312450;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.actualizacion-fecha {
	font-size: 0.8em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.75;
	margin-bottom: 0.4em;
}

.actualizacion-nuevo {
	display: inline-block;
	margin-left: 0.75em;
	padding: 0.1em 0.7em;
	border-radius: 1em;
	background: #25d366;
	color: #1a1a1a;
	font-weight: bold;
	font-size: 0.85em;
	letter-spacing: 0.05em;
	vertical-align: middle;
}

.actualizacion-titulo {
	margin: 0 0 0.6em 0;
	font-size: 1.2em;
	line-height: 1.4;
}

.actualizacion-texto p {
	font-size: 0.95em;
	line-height: 1.65;
	margin-bottom: 0.9em;
}

@media screen and (max-width: 736px) {
	.actualizaciones-lista {
		padding-left: 1.1em;
	}

	.actualizacion {
		padding: 1em 1.1em 0.25em 1.1em;
	}

	.actualizacion:before {
		left: -1.65em;
	}
}
