@font-face{
	font-family:'bauhaus';
	src:url('/assets/fonts/bauhaus_bugler.woff2') format('woff2');
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100%;
}

:root {
	--tam-fuente: 16px;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: var(--tam-fuente);
	background: #f5f5f5;
	color: #222;
}

button,
input,
textarea,
select {
	font: inherit;
}

.cabecera-vista {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

button {
	cursor: pointer;
}

.boton-peligro {
	padding: 10px 18px;

	border: 0;
	border-radius: 5px;

	background: #b00020;
	color: #fff;
}

.boton-peligro:hover {
	background: #8f001a;
}

.boton-peligro:disabled {
	opacity: 0.6;
	cursor: default;
}

/* --------------------------------
   Aplicación
   -------------------------------- */

#app {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}


/* --------------------------------
   Cabecera
   -------------------------------- */

#cabecera {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 2px solid #3f3fff;
}

#cabecera-principal {
	height: 56px;

	display: flex;
	align-items: center;
	justify-content: space-between;

	padding: 0 15px;
}

#marca {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: bold;
}

#marca img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

#marca h1 {
	margin: 0;
	font-family: 'Bauhaus', sans-serif;
	font-size: inherit;
	font-weight: inherit;
	font-size: 35px;
}

#marca .marca-qui { color: #3f3fff; }
#marca .marca-c { color: #4f4f4f; }
#marca .marca-uan { color: #3f3fff; }

#btn-menu {
	border: 0;
	background: transparent;

	font-size: 28px;
	line-height: 1;

	padding: 5px 8px;
}

/* --------------------------------
   Pestañas de la peña
   -------------------------------- */

#pestanas-pena {
	display: flex;
	border-top: 1px solid #eee;
	background: #fff;
}
#pestanas-pena[hidden] {
	display: none !important;
}

#pestanas-pena button {
	flex: 1;
	padding: 11px 10px;
	border: 0;
	background: transparent;
	border-bottom: 3px solid transparent;
}

#pestanas-pena button.activa {
	border-bottom-color: #222;
	font-weight: bold;
}

#pestanas-pena .volver-penas {
	flex: 0 0 auto;
	font-size: 24px;
	font-weight: normal;
	border-bottom: 0;
	border-right: 1px solid #eee;
}
.pena-fotomini {
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	text-align: center;
}
#pena-foto img {
	width: 192px;
	height: 192px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
/* --------------------------------
   Contenido
   -------------------------------- */

#contenido {
	flex: 1;

	width: 100%;
	max-width: 900px;

	margin: 0 auto;
	padding: 20px;
}


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

input,
textarea,
select {
	width: 100%;

	padding: 10px;

	border: 1px solid #ccc;
	border-radius: 5px;

	background: #fff;
}

textarea {
	min-height: 100px;
	resize: vertical;
}

button[type="submit"],
.boton-principal {
	padding: 10px 18px;

	border: 0;
	border-radius: 5px;

	background: #33a;
	color: #fff;
}


/* --------------------------------
   Errores
   -------------------------------- */

.error {
	color: #b00020;
}


/* --------------------------------
   Eventos
   -------------------------------- */

.evento {
	margin-bottom: 12px;
	padding: 15px;

	background: #fff;

	border: 1px solid #ddd;
	border-radius: 8px;

	cursor: pointer;
}

.evento:hover {
	background: #fafafa;
}

.evento h2 {
	margin-top: 0;
}


/* --------------------------------
   Lista de inscritos
   -------------------------------- */

.lista-inscritos {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lista-inscritos li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.lista-inscritos li.inscrito-pulsable {
	cursor: pointer;
}

.lista-inscritos li.inscrito-pulsable:hover {
	background: #fafafa;
}

.invitado-por {
	color: #666;
	font-size: 0.9em;
}
.totinscritos {
	color: blue;
	font-size: 0.6em;
}

/* --------------------------------
   Perfil
   -------------------------------- */

#perfil-foto img {
	width: 192px;
	height: 192px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

/* --------------------------------
   Miembros
   -------------------------------- */

#lista-miembros {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
}

.miembro {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid #e5e5e5;
}

.miembro-foto {
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.miembro-foto.sin-foto {
	background: #e0e0e0;
}

.miembro-datos {
	min-width: 0;
}

.miembro-alias {
	font-weight: 600;
	font-size: 1em;
	line-height: 1.3;
}

.miembro-nombre {
	margin-top: 2px;
	color: #666;
	font-size: 0.875em;
	line-height: 1.3;
}

/* --------------------------------
   Modal
   -------------------------------- */

.modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.5);
}

.modal[hidden] {
	display: none !important;
}

.modal-contenido {
	width: 100%;
	max-width: 450px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.modal-contenido h2 {
	margin-top: 0;
}

#modal-cuerpo {
	margin-bottom: 20px;
}

#modal-acciones {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}

#modal-acciones button {
	width: 100%;
}

.modal-contenido {
	position: relative;
	width: 100%;
	max-width: 450px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.modal-cerrar {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 50%;
	background: #fff;
	color: #666;
	font-size: 24px;
	line-height: 28px;
	font-weight: normal;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-cerrar:hover {
	background: #f5f5f5;
	color: #222;
	border-color: #aaa;
}

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

@media (max-width: 600px) {

	#contenido {
		padding: 15px;
	}

}

/* --------------------------------
   Cronología de eventos
   -------------------------------- */

.eventos-separador {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	margin: 22px 0;
	padding: 12px 10px;
	border-top: 2px solid #279b64;
	border-bottom: 2px solid #279b64;
	background: #eaf6ef;
	color: #176b43;
	text-align: center;
	font-weight: 700;
}

.eventos-separador small {
	color: #47745d;
	font-size: 0.8em;
	font-weight: 400;
}

.eventos-cargando {
	padding: 12px;
	color: #666;
	text-align: center;
	font-size: 14px;
}

#eventos-sentinel-anteriores {
	height: 1px;
}

/* --------------------------------
   Edición del perfil
   -------------------------------- */

.form-perfil {
	width: 100%;
	max-width: 520px;
	margin: 10px auto;
	padding: 25px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.perfil-encabezado {
	margin-bottom: 25px;
	text-align: center;
}

.perfil-encabezado h2 {
	margin: 0 0 6px;
	font-size: 1.4em;
}

.perfil-encabezado p {
	margin: 0;
	color: #777;
	font-size: 0.9em;
}

.perfil-foto-seccion {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 10px 0 25px;
	border-bottom: 1px solid #eee;
}

#perfil-foto img {
	width: 112px;
	height: 112px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #eee;
}

.perfil-seccion {
	padding: 22px 0;
	border-bottom: 1px solid #eee;
}

.perfil-seccion h3 {
	margin: 0 0 18px;
	font-size: 1.05em;
}

.perfil-campo {
	margin-bottom: 16px;
}

.perfil-campo:last-child {
	margin-bottom: 0;
}

.perfil-campo label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
	font-size: 0.92em;
}

.perfil-campo input,
.perfil-campo select {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 7px;
	background: #fff;
}

.perfil-campo input:focus,
.perfil-campo select:focus {
	outline: none;
	border-color: #3f3fff;
	box-shadow: 0 0 0 2px rgba(51, 51, 153, 0.12);
}

.perfil-acciones {
	display: flex;
	gap: 12px;
	margin-top: 22px;
}

.perfil-acciones button {
	flex: 1;
	min-height: 44px;
}

.perfil-acciones .perfil-boton-cancelar {
	padding: 10px 18px;
	border: 0;
	border-radius: 5px;
	background: #888;
	color: #fff;
}

.perfil-boton-cancelar:hover {
	background: #666;
}

@media (max-width: 600px) {
	.form-perfil {
		margin: 0 auto;
		padding: 20px 16px;
		border-radius: 10px;
	}
}


/* --------------------------------
   Menú principal
   -------------------------------- */

#menu-principal {
	border-top: 1px solid #dce2f0;
	border-bottom: 2px solid #3f3fff;
	padding: 6px 10px 10px;
	background: #f5f7fc;
}

#menu-principal button {
	display: block;
	width: 100%;
	padding: 14px 16px;
	margin: 5px 0;

	border: 1px solid #e1e6f0;
	border-radius: 7px;

	background: linear-gradient(
		110deg,
		#ffffff 0%,
		#f0f3fa 100%
	);

	color: #252b45;
	text-align: left;
	font-weight: 500;

	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);

	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

#menu-principal button:hover {
	background: linear-gradient(
		110deg,
		#e9eefb 0%,
		#dfe7f8 100%
	);

	border-color: #c4d0ed;
	box-shadow: 0 2px 5px rgba(40, 55, 100, 0.10);
}

#menu-principal button:active {
	background: #e0e7f7;
}

/* deslizador */
.perfil-tamfuente-control {
	display: flex;
	align-items: center;
	gap: 15px;
}

.perfil-tamfuente-control input[type="range"] {
	flex: 1;
	width: 100%;
	padding: 0;
	cursor: pointer;
}

.perfil-tamfuente-control output {
	min-width: 55px;
	font-weight: bold;
	text-align: right;
}