/* RESET CSS BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


.content {
	padding: 1rem;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.progress {
	display: flex;
	flex-flow: row;
	margin: .5rem 0 1rem 0;
	border-radius: 5px;
	overflow: hidden;
}

.progress div {
	padding: 1rem;
	box-sizing: border-box;
}

.color {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	margin-right: .5rem;
	border-radius: 10px;
}

h1.hero {
	font-size: 50px;
	font-weight: bold;
	line-height: normal;
}

ul.menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.menu-list li {
	position: relative;
	display: flex;
	flex-flow: row;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
	border-bottom: 1px solid #eee;
}

ul.menu-list li:has(a) {
	padding-right: 2rem;
	background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+Cjxzdmcgd2lkdGg9IjgwMHB4IiBoZWlnaHQ9IjgwMHB4IiB2aWV3Qm94PSItMTkuMDQgMCA3NS44MDQgNzUuODA0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICA8ZyBpZD0iR3JvdXBfNjUiIGRhdGEtbmFtZT0iR3JvdXAgNjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC04MzEuNTY4IC0zODQuNDQ4KSI+DQogICAgPHBhdGggaWQ9IlBhdGhfNTciIGRhdGEtbmFtZT0iUGF0aCA1NyIgZD0iTTgzMy4wNjgsNDYwLjI1MmExLjUsMS41LDAsMCwxLTEuMDYxLTIuNTYxbDMzLjU1Ny0zMy41NmEyLjUzLDIuNTMsMCwwLDAsMC0zLjU2NGwtMzMuNTU3LTMzLjU1OGExLjUsMS41LDAsMCwxLDIuMTIyLTIuMTIxbDMzLjU1NiwzMy41NThhNS41Myw1LjUzLDAsMCwxLDAsNy44MDdsLTMzLjU1NywzMy41NkExLjUsMS41LDAsMCwxLDgzMy4wNjgsNDYwLjI1MloiIGZpbGw9IiMwYzJjNjciLz4NCiAgPC9nPg0KPC9zdmc+") center right no-repeat;
	background-size: 20px;
}

ul.menu-list li a::after {
	display: block;
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

ul.menu-list li:hover:has(a) {
	background-color: #eee;
}

ul.menu-list li.header {
	background: #efefef;
	font-size: .8rem;
	text-transform: uppercase;
	opacity: .75;
	padding: .5rem 1rem;
}

/* Botón base */
.btn {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  background-color: transparent; /* Sin color por defecto */
  color: inherit;               /* Hereda color del texto */
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:focus, .btn:active {
	outline: 1px dotted;
}

/* Botón primario azul */
.btn-primary {
  background-color: #007BFF;
  color: #ffffff;
  border-color: #007BFF;
}

.btn-primary:hover {
  background-color: #0056b3; /* Azul más oscuro al pasar el mouse */
  border-color: #0056b3;
}

/* Botón peligro */
.btn-danger {
	background-color: darkred;
	color: white;
	border-color: darkred;
}

/* Botón default */
.btn-default {
	background: #eee;	
}

/* Formularios */
.form-group {
	padding-bottom: .5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

input[type="text"], input[type="date"], input[type="email"],
input[type="password"], input[type="number"], select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	margin-bottom: 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
	background-color: #fff;
	color: #333;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.v-align-center {
	display: flex;
	align-items: center;
}

.text-center {
	text-align: center;
}

.text-muted {
	color: #555;
}

.topbar {
	display: flex;
	flex-flow: row;
	align-items: center;
	justify-content: space-between;
	margin: 10px 0 30px 0;
	border-bottom: 1px solid #eee;
}

.topbar > div {
	width: 50px;
}

.topbar h3 {
	font-size: 1.2rem;
	font-weight: bold;
}

.topbar .btn {
	font-size: 1.5rem;
	padding: 0px 4px;
	height: 50px;
	line-height: 50px;
}

.name {
	display: block;
	font-weight: bold;
	white-space: nowrap;
	width: 100%;
	text-overflow: ellipsis;
	overflow: hidden;
}

/* CARDS */
.card {
	padding: 1rem;
	margin-bottom: 2rem;
	border: 1px solid #ddd;
	border-radius: 10px;
}

/* PREGUNTAS */
.card .opciones {
	margin-top: .5rem;
}

.card .opciones li {
	display: flex;
	flex-flow: row;
	align-items: center;
	margin-left: 1rem;
	padding: .4rem;
	cursor: pointer;
}

.card .opciones li:hover {
	background-color: #efefef;	
}

.card .opciones li + li {
	border-top: 1px dashed #ddd;
}

.card .opciones li::before {
	content: '';
	display: block;
	flex: 1;
	width: 1rem;
	max-width: 1rem;
	min-width: 1rem;
	height: 1rem;
	background: rgba(0, 0, 0, .15);
	border-radius: 10px;
	margin-right: .5rem;
}

.card .opciones li.selected {
	color: red;
}

.card .opciones li.selected::before {
	background-color: red;
}

.card .opciones li.selected.ok {
	color: green;
}

.card .opciones li.selected.ok::before {
	background: green;
}

.card.sumario {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #fff;
	font-weight: bold;
}

.card.sumario > * {
	margin-left: .5rem;
}

.card.sumario .ok {
	color: green;
}

.card.sumario .err {
	color: red;	
}