/**************************
 * Developed by Gorka Hoz *
 * www.iraunsuge.com      *
 * © 2018                 *
 * All rights reserved    *
 **************************/
table.bookshelf {
	background-size: cover;
	width: 550px;
	/*height: 962px;*/
	margin: 0 auto;
	z-index: 50;
	border-collapse: collapse;
}

table.bookshelf tr {
	background-repeat: no-repeat;
	background-size: 100% 100%;
	margin: 0;
	padding: 0;
}

/* Baldas de madera */

table.bookshelf tr.madera:first-child {
	background-image: url('../img/bookshelf/balda_1.jpg');
}

table.bookshelf tr.madera:nth-child(2) {
	background-image: url('../img/bookshelf/balda_2.jpg');
}

table.bookshelf tr.madera:nth-child(3) {
	background-image: url('../img/bookshelf/balda_3.jpg');
}

table.bookshelf tr.madera:nth-child(4) {
	background-image: url('../img/bookshelf/balda_4.jpg');
}

table.bookshelf tr.madera:nth-child(n+4) {
	background-image: url('../img/bookshelf/balda_2.jpg');
}

table.bookshelf tr.madera:nth-last-child(2) {
	background-image: url('../img/bookshelf/balda_5.jpg');
}

table.bookshelf tr.madera:last-child {
	background-image: url('../img/bookshelf/base_3.jpg');
}

table.bookshelf tr.madera.solo {
	background-image: url('../img/bookshelf/balda_1.jpg');
}

table.bookshelf tr.madera:first-child div.books {
	margin: 48px auto 0 auto;
}

table.bookshelf tr.madera:first-child div.cds {
	margin: 100px auto 0 auto;
}

table.bookshelf tr.madera:first-child div.cds {
	margin: 92px auto 0 auto;
}

/* Baldas de ladrillo */

table.bookshelf tr.ladrillo:first-child {
	background-image: url('../img/bookshelf/baldas_o_1.jpg');
}

table.bookshelf tr.ladrillo:nth-child(2) {
	background-image: url('../img/bookshelf/baldas_o_2.jpg');
}

table.bookshelf tr.ladrillo:nth-child(3) {
	background-image: url('../img/bookshelf/baldas_o_3.jpg');
}

table.bookshelf tr.ladrillo:nth-child(4) {
	background-image: url('../img/bookshelf/baldas_o_4.jpg');
}

table.bookshelf tr.ladrillo:nth-child(n+4) {
	background-image: url('../img/bookshelf/baldas_o_2.jpg');
}

table.bookshelf tr.ladrillo:nth-last-child(2) {
	background-image: url('../img/bookshelf/baldas_o_4.jpg');
}

table.bookshelf tr.ladrillo:last-child {
	background-image: url('../img/bookshelf/base_o.jpg');
}

table.bookshelf tr.ladrillo.solo {
	background-image: url('../img/bookshelf/baldas_o_1.jpg');
}

table.bookshelf tr.ladrillo:first-child div.books {
	margin: 25px auto 0 auto;
}

table.bookshelf tr.ladrillo:first-child div.cds {
	margin: 48px auto 0 auto;
}

table.bookshelf tr.ladrillo:first-child div.formatos {
	margin: 44px auto 0 auto;
}

table.bookshelf tr.ladrillo:nth-child(2) div,
table.bookshelf tr.ladrillo:nth-child(3) div,
table.bookshelf tr.ladrillo:nth-child(4) div,
table.bookshelf tr.ladrillo:nth-child(n+4) div,
table.bookshelf tr.ladrillo:nth-last-child(2) div {
	margin-top: -23px;
}

/* Baldas Otros */

table.bookshelf tr.otros:first-child {
	background-image: url('../img/bookshelf/balda_otro_1.jpg');
}

table.bookshelf tr.otros:nth-child(2) {
	background-image: url('../img/bookshelf/balda_otro_2.jpg');
}

table.bookshelf tr.otros:nth-child(3) {
	background-image: url('../img/bookshelf/balda_otro_3.jpg');
}

table.bookshelf tr.otros:nth-child(4) {
	background-image: url('../img/bookshelf/balda_otro_4.jpg');
}

table.bookshelf tr.otros:nth-child(n+4) {
	background-image: url('../img/bookshelf/balda_otro_2.jpg');
}

table.bookshelf tr.otros:nth-last-child(2) {
	background-image: url('../img/bookshelf/balda_otro_5.jpg');
}

table.bookshelf tr.otros:last-child {
	background-image: url('../img/bookshelf/base_otro.jpg');
}

table.bookshelf tr.otros.solo {
	background-image: url('../img/bookshelf/balda_otro_1.jpg');
}

table.bookshelf tr.otros:first-child div.books {
	margin: 35px auto 0 auto;
}

table.bookshelf tr.otros:first-child div.cds {
	margin: 85px auto 0 auto;
}

table.bookshelf tr.otros:first-child div.formatos {
	margin: 60px auto 0 auto;
}

table.bookshelf tr.otros:nth-child(2) div.books,
table.bookshelf tr.otros:nth-child(3) div.books,
table.bookshelf tr.otros:nth-child(4) div.books,
table.bookshelf tr.otros:nth-child(n+4) div.books,
table.bookshelf tr.otros:nth-last-child(2) div.books {
	margin-top: -12px;
}

table.bookshelf tr.otros:nth-child(2) div.cds,
table.bookshelf tr.otros:nth-child(3) div.cds,
table.bookshelf tr.otros:nth-child(4) div.cds,
table.bookshelf tr.otros:nth-child(n+4) div.cds,
table.bookshelf tr.otros:nth-last-child(2) div.cds {
	margin-top: 40px;
}

table.bookshelf tr.otros:nth-child(2) div.formatos,
table.bookshelf tr.otros:nth-child(3) div.formatos,
table.bookshelf tr.otros:nth-child(4) div.formatos,
table.bookshelf tr.otros:nth-child(n+4) div.formatos,
table.bookshelf tr.otros:nth-last-child(2) div.formatos {
	margin-top: 12px;
}

/* fin baldas */

table.bookshelf td {
	width: 169px;
	text-align: center;
	height: 184px;
}

table.bookshelf td img.book {
	width: 87px;
	height: 134px;
	margin: 0;
	padding: 0;
}

table.bookshelf td img.cd {
	width: 94px;
	height: 83px;
	margin: 0;
	padding: 0;
}

table.bookshelf td img.formato {
	width: 105px;
	height: 106px;
	margin: 0;
	padding: 0;
}

table.bookshelf td:first-child img.book {
	margin: 0;
	padding: 0;
}

table.bookshelf tr:first-child td {
	height: 228px;
}

table.bookshelf tr:nth-child(2) td,
table.bookshelf tr:nth-child(3) td,
table.bookshelf tr:nth-child(4) td,
table.bookshelf tr:nth-child(n+4) td,
table.bookshelf tr:nth-last-child(2) td {
	height: 184px;
}

table.bookshelf tr:last-child td {
	height: 150px;
}

table.bookshelf div.books {
	background-image: url('../img/bookshelf/sombra.png');
	background-size: cover;
	padding: 6px 7px 9px 7px;
	margin: 7px auto 0 auto;
	width: 87px;
	height: 134px;
}

table.bookshelf div.cds {
	background-image: url('../img/bookshelf/sombra_cd.png');
	background-size: cover;
	padding: 6px 7px 9px 7px;
	margin: 58px auto 0 auto;
	width: 94px;
	height: 83px;
}

table.bookshelf div.formatos {
	background-image: url('../img/bookshelf/sombra_folleto.png');
	background-size: cover;
	padding: 6px 7px 9px 7px;
	margin: 70px auto 0 auto;
	width: 105px;
	height: 104px;
}

/* Sustitucion de "title" por alerta personalizada */

.custom {
	padding: 4px;
	font-size: 12px;
	z-index: 200;
}

.tooltip {
	color: #000000;
	outline: none;
	cursor: help;
	text-decoration: none;
	position: relative;
}
.tooltip span {
	margin-left: -16000px;
	position: absolute;
	text-align: left !important;
}

.tooltip:hover span {
	border-radius: 5px 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px; 
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
	-webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
	-moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
	font-family: "Arial";
	position: absolute;
	left: -20px;
	top: 32px;
	z-index: 199;
	margin-left: 0;
	width: 190px;
}

.tooltip:hover img.infoimg {
	border: 0;
	margin: -10px 0 0 -55px;
	float: left;
	position: absolute;
	height: 48px;
	width: 48px;
}

.tooltip:hover em {
	font-family: "Arial";
	font-size: 14px;
	font-weight: bold;
	display: block;
	padding: 3px 0 10px 0;
}

.infor {
	background: #c4c7bc;
	border: 2px solid #404f24;
}

.botonb {
	position: relative;
	width: 60px;
	height: 40px;
	overflow: hidden;
	transition: all 1s ease-in-out;
}

.botonb:hover {
	width: 142px;
}

div.botonfijo, div.botonext {
	position: absolute;
	top: 0;
	background-color: transparent;
	background-repeat: no-repeat;
	background-size: cover;
	height: 40px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	color: #ffffff;
	font-weight: 600;
	line-height: 39px;
}

div.botonfijo {
	left: 0;
	background-image: url('../img/bookshelf/boton.png');
	width: 40px;
	font-size: 26px;
	text-align: center;
	z-index: 100;
}

div.botonext {
	left: 20px;
	background-image: url('../img/bookshelf/botonext.png');
	background-position: right center;
	width: calc(100% - 40px);
	z-index: 90;
	overflow: hidden;
}

div.botonb p {
	margin: 0px 0px 0px 20px;
	padding: 0px;
	position: relative;
	font-size: 12px;
	text-align: left;
	left: 5px;
	line-height: 35px;
	width: 100%;
	z-index: 95;
	color: #ffffff;
}