* {
	padding: 0;
	margin: 0;
	border: none;
	outline: none;
	font-family: Roboto, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.2rem;
	font-weight: normal;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}
html {
	background-color: #eee;
}
body {
	padding-top: 2.88rem;
}
body.oculto {
	display: none;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #aaa;
}
textarea {
	resize: none;
}
strong {
	font-weight: bold;
}
table {
	table-layout: fixed;
	border-spacing: 0;
	width: 100%;
}
#descargas {
	display: none;
}

#ajustes {
	display: none;
}
body.ajustes #ajustes {
	display: block;
}
#ajustes header {
	position: relative;
	font-weight: bold;
	padding: 1rem 2.8rem 1rem 1rem;
	background-color: #eee;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	border-bottom: solid 1px #888;
}
#ajustes header img {
	position: absolute;
	top: 0.9rem;
	right: 0.8rem;
	width: 1.6rem;
	opacity: 0.8;
}
#ajustes section.mostrar header img {
	transform: rotate(180deg);
}
#ajustes section:not(.mostrar) footer {
	display: none;
}
#ajustes footer {
	background-color: #ccc;
	padding: 1rem;
	border-bottom: solid 1px #888;
}
#ajustes footer input {
	color: #fff;
	background-color: #555;
	width: 100%;
	padding: 0.4rem 0.6rem;
	border-radius: 0.4rem;
	box-shadow: inset 0 0 0.5rem #000;
	box-sizing: border-box;
	margin-bottom: 1rem;
	-webkit-user-select: auto;
   -khtml-user-select: auto;
   -moz-user-select: auto;
   -ms-user-select: auto;
}
#ajustes footer input[type="submit"] {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0.1));
	background-color: #f59841;
	border: solid 1px #db883a;
	box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.7);
	font-weight: bold;
	text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
	text-align: center;
	margin-bottom: 0;
	color: #222;
}
#ajustes form.enviando input {
	color: #aaa;
}
#ajustes form.enviando input[type="submit"] {
	background-color: #ddd;
	border: solid 1px #bbb;
	text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
	color: #555;
}


body[data-sesion="cerrada"] #cerrar {
	display: none;
}


#condiciones footer {
	padding: 1rem;
}
#condiciones h1 {
	font-weight: bold;
	font-size: 1.4rem;
	line-height: 1.6rem;
	margin-bottom: 1rem;
}
#condiciones h1:nth-of-type(n+2) {
	margin-top: 1.5rem;
}
#condiciones p {
	margin-bottom: 1rem;
}
#condiciones a {
	font-weight: bold;
	text-decoration: underline;
}


#dialogo {
	display: none;
}
#dialogo.mostrar,
#dialogo.elegir {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 4;
}
#dialogo section {
	position: relative;
	width: 85%;
	max-width: 25rem;
	margin: 0 auto;
	box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
	background-color: #fff;
	border-radius: 0.4rem;
	padding: 1.5rem;
	box-sizing: border-box;
}
#dialogo h1 {
	font-weight: bold;
	color: #ff9e1b;
}
#dialogo p {
	color: #222;
	margin: 1.5rem 0;
}
#dialogo article {
	background-color: #ff9e1b;
	color: #fff;
	text-align: center;
	border-radius: 0.4rem;
	padding: 1rem 0;
	font-weight: bold;
}
#dialogo:not(.elegir) article:last-child {
	display: none;
}
#dialogo.elegir article {
	display: inline-block;
	width: calc(50% - 0.75rem);
}
#dialogo.elegir article:last-child {
	margin-left: 1.5rem;
}


#escaner {
	display: none;
}
body.escaner #escaner {
	display: block;
}
#escaner video {
	width: 0;
	height: 0;
	background-color: #000;
}
#escaner div {
	position: absolute;
	top: 0;
	left: 0;
	border-color: rgba(0, 0, 0, 0.5);
	border-style: solid;
	box-sizing: border-box;
}
#escaner span {
	display: block;
	position: absolute;
}
#escaner span:nth-of-type(1) {
	border-top: solid 6px #fff;
	border-left: solid 6px #fff;
}
#escaner span:nth-of-type(2) {
	border-top: solid 6px #fff;
	border-right: solid 6px #fff;
}
#escaner span:nth-of-type(3) {
	border-bottom: solid 6px #fff;
	border-left: solid 6px #fff;
}
#escaner span:nth-of-type(4) {
	border-bottom: solid 6px #fff;
	border-right: solid 6px #fff;
}


body[data-sesion="abierta"] #iniciar {
	display: none;
}


body.ocultar #menu {
	display: none;
}
#menu {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	box-shadow: 0 0 0.2rem #000;
	z-index: 1;
	background: linear-gradient(180deg, #888, #555);
	height: 2.88rem;
}
#menu table {
	width: 100%;
	height: 2.88rem;
}
#menu td:nth-child(1) {
	width: auto;
	color: #fff;
	font-size: 1.1rem;
	padding: 0 1rem;
}
#menu td:nth-child(n+2) {
	width: 3.4rem;
	border-left: solid 1px #999;
}
#menu td:nth-child(n+2) img {
	display: block;
	margin: 0 auto;
	width: 1.9rem;
	opacity: 0.8;
}


#notificacion {
	display: none;
}
#notificacion.notificar {
	display: block;
	position: fixed;
	bottom: 5%;
	left: 50%;
	white-space: nowrap;
	transform: translateX(-50%);
	z-index: 4;
	background-color: #333;
	color: #fff;
	padding: 0.6rem 1.2rem;
	box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
	border-radius: 0.8rem;
}


#producto {
	display: none;
}
body.producto #producto {
	display: block;
}
#producto article {
	position: relative;
	width: calc(100% - 40px);
	padding-bottom: calc(100% - 40px);
	margin: 20px;
}
#producto figure {
	position: absolute;
	background-color: white;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: solid 1px #888;
	padding: 20px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}
#producto figure img {
	display: block;
	max-width: 100%;
	max-height: 100%;
}
#producto h1 {
	font-size: 1.5rem;
	padding-bottom: 20px;
}
#producto h1,
#producto h2,
#producto h3,
#producto h4 {
	margin: 0 20px;
}
#producto h2 {
	font-weight: bold;
}
#producto section {
	display: block;
	margin: 10px 20px;
}
#producto section img {
	display: inline-block;
	width: 20%;
	height: calc(20vw - 8px);
}
#producto textarea {
	height: 200px;
}
#producto input,
#producto textarea {
	color: #fff;
	background-color: #555;
	width: calc(100% - 40px);
	padding: 0.4rem 0.6rem;
	border-radius: 0.4rem;
	box-shadow: inset 0 0 0.5rem #000;
	box-sizing: border-box;
	margin: 10px 20px;
	-webkit-user-select: auto;
   -khtml-user-select: auto;
   -moz-user-select: auto;
   -ms-user-select: auto;
}
#producto input[type="submit"] {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0.1));
	background-color: #f59841;
	border: solid 1px #db883a;
	box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.7);
	font-weight: bold;
	text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
	text-align: center;
	margin-bottom: 100px;
	color: #222;
}


body[data-sesion="abierta"] #registrar {
	display: none;
}


