:root {
	--color-normal: #3F5592;
	--alto-seccion: 20em;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}



article.accordion {
	width: calc(36em + (2.5em * (var(--numSec) - 2)));
	background-color: #eee;
	overflow: hidden;
	box-shadow: 0 0 0 10px #fff, 0 15px 50px;
	width: 100%;
	max-width: 1000px;
	display: flex;
    align-content: center;
    	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: -moz-none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
}

article.accordion .inputs {
	display: none;
}

article.accordion .etiquetas {
	display: flex;
	flex-direction: row;
	flex-grow: 1;
}

article.accordion .etiquetas label {
	position: relative;
	width: 3em;
	height: var(--alto-seccion);
	border: 1px solid #fff;
	color: var(--color-normal);
	background-color: var(--color-normal);
	overflow: hidden;
	display: flex;
	justify-content: center;
	flex-grow: 1;
	background-color: #eee;
	-webkit-transition: flex-grow 0.75s linear;
	-moz-transition: flex-grow 0.75s linear;
	-ms-transition: flex-grow 0.75s linear;
	-o-transition: flex-grow 0.75s linear;
	transition: flex-grow 0.75s linear;
}

article.accordion .etiquetas label section {
	display: flex;
	justify-content: center;
}

article.accordion .etiquetas label img {
	filter: grayscale(100%);
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-transition: filter 0.75s linear;
	-moz-transition: filter 0.75s linear;
	-ms-transition: filter 0.75s linear;
	-o-transition: filter 0.75s linear;
	transition: filter 0.75s linear;
}
article.accordion .etiquetas label img:hover {
	filter: grayscale(0%);
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-transition: filter 0.75s linear;
	-moz-transition: filter 0.75s linear;
	-ms-transition: filter 0.75s linear;
	-o-transition: filter 0.75s linear;
	transition: filter 0.75s linear;
}

article.accordion .etiquetas label .titulo {
	color: #f9f9f9;
	background-color: var(--color-normal);
	cursor: pointer;
    padding: 0.5em;
	min-width: 100%;
	position: absolute;
	bottom: -3px;
	left: 0;
	font-size: 1em;
	font-weight: lighter;
	z-index: 100;
	white-space: nowrap;
	display: flex;
	justify-content: center;
	align-items: center;
	-webkit-transform: rotate(-90deg) translateX(-45px);
	transform: rotate(-90deg) translateX(-45px);
	-webkit-transform-origin: 0% 0%;
	transform-origin: 0% 0%;
	-webkit-transition: all 0.75s linear;
	-moz-transition: all 0.75s linear;
	-ms-transition: all 0.75s linear;
	-o-transition: all 0.75s linear;
	transition: all 0.75s linear;
	transition-property: transform, background-color;
}


article.accordion .etiquetas label .titulo .icon {
	display: none;
}

article.accordion .etiquetas label .info {
	display: none;
}

article.accordion .etiquetas label .info p {
	padding: 0 10px;
	visibility: hidden;
	opacity: 0;
	transition: all 0.75s linear;
    font-size: 0.9em;
}
article.accordion .etiquetas label .info span {
	display:block;
margin-left: 1em;
    margin-top: 15px;
    font-size: 90%;
    line-height: 1.5em;
}


article.accordion .etiquetas label .fondo {
	height: 100%;
}
article.accordion .etiquetas label .fondo p{
    font-size: 90%;
    height: 100%;
}

article.accordion .etiquetas label.seleccionado {
	display: flex;
	justify-content: center;
	color: #2b3035;
	background-color: #fff;
	flex-grow: calc(10 * var(--numSec));
}

article.accordion .etiquetas label.seleccionado img {
	filter: grayscale(0%);
	width: 100%;
	height: 100%;
	object-fit: cover;
    padding: 0;
}

article.accordion .etiquetas label.seleccionado img figcaption {
	font-size: 0.75rem;
	text-align: center;
    line-height: 0.5em;
	overflow-wrap: anywhere;
	color: #2b3035;
	background: rgba(255, 255, 255, 0.85);
    object-fit:cover;
}

article.accordion .etiquetas label.seleccionado .titulo {
	position: absolute;
	width: 100%;
	font-size: 1.2em;
    font-weight: lighter;
	text-indent: 0;
	text-align: left;
	padding: 0;
	margin-top: 0;
	bottom: 0;
    background-color: #2b3035;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
}

article.accordion .etiquetas label.seleccionado .info {
	position: absolute;
	color: #222;
	background: rgba(255, 255, 255, 0.85);
	width: 100%;
	margin-top: 10px;
	top: 0;
	display: flex;
}

article.accordion .etiquetas label.seleccionado .info p {
	visibility: visible;
	opacity: 1;
}

/* ##Device = Tablets, Ipads (landscape); Screen = B/w 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
	article.accordion .etiquetas {
		height: 90vh;
	}

	article.accordion .etiquetas label {
		height: 100%;
	}

	article.accordion .etiquetas .info {
		line-height: normal;
		font-size: 0.85em;
	}

	article.accordion .etiquetas label.seleccionado .info p {
		padding: 10px;
	}
}

/* ##Device = Low Resolution Tablets, Mobiles (Landscape); ##Screen = B/w 481px to 767px */
@media (min-width: 481px) and (max-width: 767px) and (orientation: landscape) {
	article.accordion .etiquetas {
		height: 90vh;
	}

	article.accordion .etiquetas .titulo {
		font-size: small;
		bottom: 5px;
	}

	article.accordion .etiquetas label {
		height: 100%;
	}

	article.accordion .etiquetas label.seleccionado .titulo {
		font-size: 1em;
        
        background-color: #2b3035;
	}

	article.accordion .etiquetas .info {
		line-height: normal;
		font-size: 0.7em;
	}

}

/* ##Device = Most of the Smartphones Mobiles (Portrait); Screen = B/w 320px to 479px */
@media (max-width: 480px) and (orientation: portrait) {
	article.accordion .etiquetas {
		width: 90%;
		max-width: 1000px;
		margin: 0 auto;
		flex-direction: column;
	}

	article.accordion .etiquetas label .titulo .icon {
		display: flex;
		transform: rotate(0deg);
		transition: transform 0.75s ease-in-out;
	}

	article.accordion .etiquetas label {
		width: 100%;
		max-height: 70px;
		-webkit-transition: max-height 0.75s linear;
		-moz-transition: max-height 0.75s linear;
		-ms-transition: max-height 0.75s linear;
		-o-transition: max-height 0.75s linear;
		transition: max-height 0.75s linear;
	}

	article.accordion .etiquetas label .titulo {
		transform: none;
		top: 0;
		height: fit-content;
		justify-content: space-between;
	}

	article.accordion .etiquetas label.seleccionado {
		max-height: 300px;
	}

	article.accordion .etiquetas label.seleccionado .titulo {
		font-size: 1em;
		padding: 0.3em 0.5em;
        background-color: #2b3035;
	}

	article.accordion .etiquetas label.seleccionado .titulo .icon {
		transform: rotate(180deg);
	}

	article.accordion .etiquetas label .fondo {
		position: absolute;
		width: 100%;
	}

	article.accordion .etiquetas label.seleccionado .info {
		top: 30px;
		display: block;
		height: 100%;
        padding: 0.5em 0.5em;
	}

	article.accordion .etiquetas label .info {
		line-height: normal;
		font-size: 0.75em;
        height: 100%;
	}
}
