* {
	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);
	user-select: none;
}
html {
	background-color: #eee;
}
input::-webkit-input-placeholder {
    color: #aaa;
}
body {
	padding-top: 2.88rem;
}
body.oculto {
	display: 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.7rem;
	border-radius: 0.6rem;
	box-shadow: inset 0 0 0.5rem #000;
	box-sizing: border-box;
	margin-bottom: 1rem;
	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;
}


#calendario {
	display: none;
}
body.calendario #calendario {
	display: block;
	margin-bottom: 5.5rem;
}
#calendario > header {
	position: relative;
	padding: 0.4rem 3rem 0.4rem 1rem;
	font-weight: bold;
	background-color: #666;
	color: #fff;
}
#calendario > header h1 {
	font-weight: bold;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;	
}
#calendario > header h3 {
	position: absolute;
	top: 1rem;
	right: 1rem;
	text-align: left;
	font-weight: bold;
}
#calendario article {
	position: relative;
	padding: 0.4rem 3rem 0.4rem 1rem;
	background-color: #eee;
}
#calendario article:nth-child(n+2) {
	border-top: solid 1px #888;
}
#calendario article h1 {
	font-weight: bold;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;	
}
#calendario article h3 {
	position: absolute;
	top: 1rem;
	right: 1rem;
	text-align: left;
	font-weight: bold;
}
#calendario > h1 {
	padding: 0.5rem 1rem;
	background-color: #666;
	color: #fff;
}
#calendario table {
	background-color: #eee;
	width: 100%;
}
#calendario th,
#calendario td {
	text-align: center;
	padding: 0.5rem 0;
}
#calendario thead th {
	font-weight: bold;
	color: #000;
}
#calendario thead tr:last-child th {
	border-top: solid 1px #888;
	background-color: #ccc;
}
#calendario thead tr:first-child th:first-child {
	text-align: left;
	padding-left: 1rem;
}
#calendario thead th img {
	display: block;
	margin: 0 auto;
	opacity: 0.7;
	width: 1.6rem;
}
#calendario td:nth-child(n+2) {
	border-left: solid 1px #888;
}
#calendario td {
	border-top: solid 1px #888;
}
#calendario td.distinto {
	color: #aaa;
}
#calendario tbody td.elegido {
	background-color: #ff8;
}
#calendario label {
	display: block;
	position: relative;
	padding: 1rem;
	background-color: #eee;
}
#calendario label:nth-child(n+2) {
	border-top: solid 1px #888;
}
#calendario label img {
	position: absolute;
	top: 0.9rem;
	right: 0.8rem;
	width: 1.6rem;
	opacity: 0.7;
}
#calendario input[type="radio"],
#calendario input:checked + img,
#calendario input:not(:checked) + img + img {
	display: none;
}
#calendario p {
	position: relative;
	padding: 1rem;
	font-weight: bold;
	background-color: #eee;
	border-bottom: solid 1px #888;
}
#calendario p h1 {
	font-weight: bold;
}
#calendario section footer {
	display: none;
}
#calendario section.mostrar footer {
	display: block;
}
#calendario section header {
	position: relative;
	padding: 1.1rem 1rem;
	border-bottom: solid 1px #999;
	font-weight: bold;
}
#calendario header img {
	position: absolute;
	top: 0.9rem;
	right: 0.8rem;
	width: 1.6rem;
	opacity: 0.7;
}
#calendario section.mostrar header img {
	transform: rotate(180deg);
}
#calendario section footer {
	position: relative;
	padding: 1.1rem 1rem 1.1rem 4.4rem;
	border-bottom: solid 1px #999;
	font-weight: bold;
	background-color: #ccc;
}
#calendario section footer img {
	position: absolute;
	top: 0.4rem;
	left: 0.9rem;
	width: 2.6rem;
}
#calendario section footer.activado {
	background-color: #ff8;
}


body[data-sesion="cerrada"] #cambiar {
	display: none;
}


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.correcto,
#dialogo.error,
#dialogo.clave,
#dialogo.informar,
#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 img {
	position: absolute;
	width: 3.5rem;
	top: -1.75rem;
	right: 1.5rem;
}
#dialogo h1 {
	font-weight: bold;
	color: #ff9e1b;
}
#dialogo.correcto h1 {
	color: #5dae19;
}
#dialogo.error h1 {
	color: #ff3e3e;
}
#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.correcto article {
	background-color: #5dae19;
}
#dialogo.error article {
	background-color: #ff3e3e;
}
#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;
}


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 {
	width: 3.2rem;
}
#menu img {
	display: block;
	margin: 0 auto;
	width: 1.9rem;
}
#menu td:nth-child(1) img {
	margin: 0 0 0 0.8rem;
}
#menu td:nth-child(2) {
	width: auto;
	color: #fff;
	font-size: 1.1rem;
}
#menu td:nth-child(n+3) {
	width: 3.4rem;
	border-left: solid 1px #999;
}
#menu td:nth-child(n+3) img {
	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;
}


#pedido {
	display: none;
}
body.pedido #pedido {
	display: block;
	margin-bottom: 5.5rem;
}
#pedido header {
	position: relative;
	padding: 0.4rem 3rem 0.4rem 1rem;
	font-weight: bold;
	background-color: #666;
	color: #fff;
}
#pedido header h1 {
	font-weight: bold;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;	
}
#pedido header h3 {
	position: absolute;
	top: 1rem;
	right: 1rem;
	text-align: left;
	font-weight: bold;
}
#pedido article {
	position: relative;
	padding: 0.4rem 3.5rem 0.4rem 5rem;
	background-color: #eee;
}
#pedido article:nth-child(n+2) {
	border-top: solid 1px #888;
}
#pedido article img {
	position: absolute;
	top: 0;
	left: 0;
	height: calc(100%);
	border-right: solid 1px #888;
}
#pedido article h1 {
	font-weight: bold;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;	
}
#pedido article h3 {
	position: absolute;
	top: 1rem;
	right: 1rem;
	text-align: left;
	font-weight: bold;
}
#pedido section {
	position: relative;
	background-color: #ccc;
	height: 3.2rem;
	border-top: solid 1px #888;
}
#pedido section span {
	display: block;
	position: relative;
	float: left;
	width: 3.2rem;
	height: 3.2rem;
	margin-left: calc(20% - 2.56rem);
}
#pedido section img {
	display: block;
	margin: 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.35rem;
	opacity: 0.6;
}
#pedido section span.activado:after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 50%;
	width: 3.2rem;
	height: 3.2rem;
	background-color: rgba(0, 0, 0, 0.1);
}
#pedido:not(.contenido) header,
#pedido:not(.contenido) > h1,
#pedido:not(.contenido) > p,
#pedido.contenido > h2 {
	display: none;
}
#pedido > h1 {
	padding: 0.5rem 1rem;
	background-color: #666;
	color: #fff;
}
#pedido > p {
	position: relative;
	padding: 1rem;
	font-weight: bold;
	background-color: #eee;
	border-bottom: solid 1px #888;
}
#pedido > p img {
	position: absolute;
	top: 0.9rem;
	right: 0.8rem;
	width: 1.6rem;
	opacity: 0.7;
}
#pedido > h2 {
	padding: 1rem;
	font-weight: bold;
}


#productos {
	display: none;
}
body.productos #productos {
	display: block;
	padding-bottom: 5.5rem;
	user-select: none;
}
#productos form {
	position: relative;
	padding: 1rem;
}
#productos form input {
	color: #fff;
	background-color: #555;
	width: 100%;
	padding: 0.4rem 0.7rem;
	border-radius: 0.6rem;
	box-shadow: inset 0 0 0.5rem #000;
	box-sizing: border-box;
}
#productos form img {
	position: absolute;
	top: 0.8rem;
	right: 1rem;
	width: 1.4rem;
	padding: 0.5rem;
	opacity: 0.4;	
}
#productos section {
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
	padding: 1rem 0 0 1rem;
}
#productos section:first-of-type {
	padding-top: 0;
}
#productos article {
	transition: background-color 0.15s, color 0.15s;
	position: relative;
	border-radius: 0.8rem;
	width: calc(50% - 1px - 0.5rem);
	padding: 0.8rem 1rem;
	margin: 1px 2px 1px 0;
	box-sizing: border-box;
	color: #fff;
}
#productos article.subfamilia,
#productos article.producto,
#productos article.ingrediente {
	width: calc(100% - 1rem);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#productos article h1,
#productos article h2,
#productos article h3 {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#productos article h3 {
	position: absolute;
	right: 1rem;
	bottom: 0.8rem;
}
#productos article span {
	position: absolute;
	top: 0;
	right: 0;
	padding: 0.8rem 1rem;
}
#productos section:nth-child(1) article {
	background-color: #18c;
}
#productos section:nth-child(2) article {
	background-color: #f55;
}
#productos section:nth-child(3) article {
	background-color: #7b2;
}
#productos section:nth-child(4) article,
#productos section.productos article {
	background-color: #f94;
}
#productos section article.elegido,
#productos section article.activado {
	background-color: #ff8;
	color: #000;
}
#productos article img {
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 0.8rem 0 0 0.8rem;
	height: 100%;
}
#productos article.producto {
	padding-left: 6rem;
	margin-bottom: 5px;
	box-shadow: 0 0 4px #bbb;
}


body[data-sesion="abierta"] #recuperar {
	display: none;
}


body[data-sesion="abierta"] #registrar {
	display: none;
}
#registrar input:nth-child(4),
#registrar input:nth-child(5),
#registrar input:nth-child(8),
#registrar input:nth-child(9) {
	width: calc(50% - 0.5rem);
}
#registrar input:nth-child(4),
#registrar input:nth-child(8) {
	margin-right: 1rem;
}


