/* Estilos para la ficha técnica */
.detail-item {
	padding: 15px 10px;
	border-radius: 8px;
	background: #f8f9fa !important;
	border: 1px solid #e9ecef;
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 120px;
}

.detail-item:hover {
	background: #e9ecef !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin: 0 auto;
}

.detail-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	text-align: center;
}

.detail-value {
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
	word-break: break-word;
}

.text-purple {
	color: #6f42c1 !important;
}

/* Estilos del carrusel estilo Amazon */
.detail-carousel-container {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	width: 100%;
	max-width: 100%;
	padding: 0 35px;

	background: #fff;
}

.detail-carousel-wrapper {
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

.detail-carousel {
	display: flex;
	transition: transform 0.3s ease;
	gap: 1px;
	width: max-content;
	/*background: #f8f9fa;
	border: 1px solid #e0e0e0;*/
	border-radius: 8px;
}

.detail-slide {
	flex: 0 0 auto;
	width: 140px;
	min-width: 140px;
	/*border-right: 1px solid #e0e0e0;*/
}

.detail-slide:last-child {
	border-right: none;
}

.detail-item {
	padding: 12px 8px;
	background: transparent !important;
	border: none;
	transition: none;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 80px;
	text-align: center;
}

.detail-item:hover {
	background: transparent !important;
	transform: none;
	box-shadow: none;
}

.detail-icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	margin: 0 auto 8px auto;
}

.detail-label {
	font-size: 12px;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	text-align: center;
	color: #565959;
	margin-bottom: 4px;
	line-height: 1.2;
}

.detail-value {
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
	word-break: break-word;
	font-weight: 400;
	color: #0F1111;
}

.detail-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid #d5d5d5;
	border-radius: 4px;
	width: 30px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.detail-carousel-btn:hover {
	background: #f0f0f0;
	border-color: #888;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.detail-carousel-prev {
	left: 5px;
}

.detail-carousel-next {
	right: 5px;
}

.detail-carousel-btn i {
	color: #555;
	font-size: 12px;
}

.detail-carousel-btn:hover i {
	color: #000;
}

/* Layout principal estilo Amazon */
.libroscc-layout-container {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.libroscc-image-section {
	flex: 0 0 350px;
	max-width: 350px;
}

.libroscc-info-section {
	flex: 1;
	min-width: 0;
}

.libroscc-buy-section {
	flex: 0 0 300px;
	max-width: 300px;
}

.libroscc-buy-box {
	border: 1px solid #D5D9DD;
	border-radius: 8px;
	padding: 20px;
	background: #fff;
}

.libroscc-price {
	font-size: 28px;
	font-weight: 400;
	color: #B12704;
	line-height: 1.3;
}

.libroscc-price-small {
	font-size: 13px;
	color: #565959;
}

.libroscc-delivery {
	background: #F7F8F8;
	border: 1px solid #D5D9DD;
	border-radius: 8px;
	padding: 14px;
	margin: 16px 0;
}

.libroscc-delivery-title {
	font-weight: 700;
	color: #0F1111;
	font-size: 14px;
	margin-bottom: 4px;
}

.libroscc-delivery-date {
	color: #0F1111;
	font-size: 14px;
	font-weight: 700;
}

.libroscc-delivery-location {
	color: #007185;
	font-size: 14px;
	text-decoration: none;
}

.libroscc-stock {
	color: #007600;
	font-size: 18px;
	font-weight: 400;
	margin: 16px 0;
}

.libroscc-quantity-section {
	margin: 16px 0;
}

.libroscc-quantity-label {
	font-size: 14px;
	font-weight: 700;
	color: #0F1111;
	margin-bottom: 8px;
}

.libroscc-quantity-select {
	background: #F0F2F2;
	border: 1px solid #D5D9DD;
	border-radius: 8px;
	padding: 8px 32px 8px 12px;
	font-size: 14px;
	min-width: 80px;
}

.libroscc-add-cart {
	background: #F39200;
	border: 1px solid #F39200;
	border-radius: 20px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 400;
	color: #fff;
	width: 100%;
	margin: 10px 0;
	cursor: pointer;
	transition: all 0.2s ease;
}

.libroscc-add-cart:hover {
	background: #F7CA00;
	border-color: #F2C200;
	color: #0F1111;
}

.libroscc-buy-now {
	background: #FF9900;
	border: 1px solid #FF9900;
	border-radius: 20px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 400;
	color: #0F1111;
	width: 100%;
	margin: 10px 0;
	cursor: pointer;
	transition: all 0.2s ease;
}

.libroscc-buy-now:hover {
	background: #FA8900;
	border-color: #FA8900;
	color: #0F1111;
}

.libroscc-details-link {
	color: #007185;
	font-size: 14px;
	text-decoration: none;
	margin-top: 12px;
	display: inline-block;
}

.libroscc-details-link:hover {
	color: #C7511F;
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.libroscc-layout-container {
		flex-direction: column;
		gap: 20px;
	}

	.libroscc-image-section,
	.libroscc-buy-section {
		flex: none;
		max-width: 100%;
	}

	.libroscc-image-section {
		order: 1;
		text-align: center;
	}

	.libroscc-info-section {
		order: 2;
	}

	.libroscc-buy-section {
		order: 3;
	}
}

@media (max-width: 768px) {
	.detail-carousel-container {
		padding: 0 30px;
		margin-top: 0px;
	}

	.detail-slide {
		width: 110px;
		min-width: 110px;
	}

	.detail-item {
		padding: 10px 6px;
		min-height: 70px;
	}

	.detail-carousel-btn {
		width: 25px;
		height: 35px;
	}

	.detail-carousel-btn i {
		font-size: 10px;
	}

	.detail-carousel-prev {
		left: 3px;
	}

	.detail-carousel-next {
		right: 3px;
	}
}

@media (max-width: 480px) {
	.detail-carousel-container {
		padding: 0 25px;
		margin-top: 0px;
	}

	.detail-slide {
		width: 100px;
		min-width: 100px;
	}

	.detail-item {
		padding: 8px 5px;
		min-height: 60px;
	}

	.detail-label {
		font-size: 10px;
	}

	.detail-value {
		font-size: 12px;
	}
}

.image-container {
	position: relative;

}

.comprados-juntos {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comprados-juntos h4 {
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 20px;
	font-size: 1.35rem;
}

.productos-bundle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.producto-bundle {
	position: relative;
	flex: 0 0 auto;
	text-align: center;
	max-width: 140px;
	background: #f8f9fa;
	border-radius: 12px;
	padding: 15px;
	border: 1px solid #e9ecef;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	min-height: 200px;
}

.producto-bundle:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-color: #28a745;
}

.producto-bundle .product-image-container {
	position: relative;
	margin-bottom: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.producto-bundle img {
	width: 80px;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease;
}

.producto-bundle img:hover {
	transform: scale(1.05);
}

.producto-bundle .badge-descuento {
	position: absolute;

	left: 20%;
	transform: translate(-50%, -50%);
	background: #dc3545;
	color: white;
	padding: 3px 6px;
	font-size: 10px;
	font-weight: bold;
	border-radius: 4px;
	z-index: 2;
}

.producto-bundle .product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
}

.producto-bundle .product-title {
	font-size: 12px;
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 8px;
	line-height: 1.3;
	height: 32px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.producto-bundle .product-pricing {
	margin-top: auto;
}

.producto-bundle .product-price-original {
	font-size: 11px;
	color: #6c757d;
	text-decoration: line-through;
	margin-bottom: 2px;
}

.producto-bundle .product-price-final {
	font-size: 14px;
	color: #28a745;
	font-weight: 700;
}

.bundle-separator {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: #28a745;
	font-weight: bold;
	margin: 0 8px;
	background: white;
	border: 2px solid #28a745;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
	flex-shrink: 0;
	align-self: center;
}

.bundle-equals {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #28a745;
	font-weight: bold;
	margin: 0 12px;
	background: white;
	border: 2px solid #28a745;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
	flex-shrink: 0;
	align-self: center;
}

.bundle-total {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px;
	background: white;
	border-radius: 12px;
	border: 2px solid #28a745;
	min-width: 180px;
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.bundle-pricing {
	text-align: center;
}

.bundle-price-original {
	color: #6c757d;
	text-decoration: line-through;
	font-size: 14px;
	margin-bottom: 4px;
}

.bundle-price-final {
	color: #28a745;
	font-weight: bold;
	font-size: 20px;
	margin-bottom: 8px;
}

.bundle-savings {
	background: #d4edda;
	color: #155724;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 12px;
}

.bundle-button {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	border: none;
	color: white;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
	width: 100%;
}

.bundle-button:hover {
	background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.bundle-button i {
	margin-right: 6px;
}

/* Responsive */
@media (max-width: 768px) {
	.productos-bundle {
		flex-direction: column;
		gap: 10px;
	}

	.bundle-separator,
	.bundle-equals {
		transform: rotate(90deg);
		margin: 5px 0;
	}

	.bundle-total {
		min-width: 200px;
		margin-top: 10px;
	}

	.producto-bundle {
		max-width: 200px;
	}

	.producto-bundle img {
		width: 80px;
	}
}

@media (max-width: 480px) {
	.comprados-juntos {
		padding: 15px;
	}

	.productos-bundle {
		gap: 8px;
	}

	.producto-bundle {
		max-width: 200px;
	}

	.producto-bundle img {
		width: 70px;
	}

	.bundle-total {
		min-width: 180px;
		padding: 12px;
	}
}

.image-container img {

	border-radius: 5px;
}

.badge-descuento {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #d9534f;
	color: white;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 5px;
}

.precio {
	display: block;
	font-size: 1em;
	margin: 8px 0;
}

.total-compra {
	font-size: 1.2em;
}


.preventa {
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: #f1416c;
	color: #fff;
	padding: 5px 10px;
	font-size: 14px;
}

.kt-badge.kt-badge--rounded {
	border-radius: 4px;
}

.kt-badge.kt-badge--pill {
	border-radius: 2rem;
}

.kt-badge.kt-badge--inline {
	height: auto;
	width: auto;
	padding: 0.15rem 0.75rem;
	border-radius: 2px;
}

.kt-badge.kt-badge--warning {
	color: #111;
	background: #ffb822;
}

/* Estilos para bookPriceContainer */
#bookPriceContainer {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	border: 1px solid #e9ecef;
	margin-bottom: 20px;
}

.format-btn {
	border-radius: 12px;
	padding: 12px 16px;
	font-weight: 500;
	font-size: 13px;
	transition: all 0.3s ease;
	border: 1px solid #e9ecef;
	background: white;
	color: #495057;
	min-height: 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.format-btn i {
	font-size: 18px;
	margin-bottom: 4px;
	color: #6c757d;
}

.format-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-color: #ff6b35;
}

.format-btn.active {
	background: white;
	color: #495057;
	border: 2px solid #ff6b35 !important;
	box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.format-btn.active i {
	color: #ff6b35;
}

.format-btn.active:hover {
	background: white;
	color: #495057;
	border: 2px solid #ff6b35 !important;
	box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.quantity-section {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.quantity-input-container {
	display: flex;
	align-items: center;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	overflow: hidden;
	background: white;
	width: fit-content;
	margin-left: auto;
}

.quantity-btn {
	background: #f8f9fa;
	border: none;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #6c757d;
	flex-shrink: 0;
}

.quantity-btn:hover {
	background: #ff6b35;
	color: white;
}

.quantity-btn:active {
	transform: scale(0.95);
}

/* Forzar estilos específicos para el input de cantidad */
input#inputQuantity {
	border: none !important;
	outline: none !important;
	text-align: center !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	width: 60px !important;
	height: 40px !important;
	background: white !important;
	color: #495057 !important;
	line-height: 1.5 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	font-family: inherit !important;
}

input#inputQuantity:focus {
	outline: none !important;
	box-shadow: none !important;
	background: white !important;
	color: #495057 !important;
	border: none !important;
}

input#inputQuantity::-webkit-outer-spin-button,
input#inputQuantity::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
	display: none !important;
}

input#inputQuantity[type=text] {
	-moz-appearance: textfield !important;
}

.quantity-input-container .quantity-input {
	border: none !important;
	outline: none !important;
	text-align: center !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	width: 60px !important;
	height: 40px !important;
	background: white !important;
	color: #495057 !important;
	flex-shrink: 0;
	line-height: 1.5 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
}

.quantity-input-container .quantity-input:focus {
	outline: none !important;
	box-shadow: none !important;
	background: white !important;
	color: #495057 !important;
	border: none !important;
}

.quantity-input-container .quantity-input::-webkit-outer-spin-button,
.quantity-input-container .quantity-input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
	display: none !important;
}

.quantity-input-container .quantity-input[type=text] {
	-moz-appearance: textfield !important;
}

.quantity-input-container .quantity-input::placeholder {
	color: #6c757d !important;
	opacity: 0.7 !important;
}

.availability-section {
	background: #e8f5e8;
	padding: 12px;
	border-radius: 8px;
	border-left: 4px solid #28a745;
}



.price-display {
	font-size: 2rem;
	font-weight: 700;
	color: #dc3545;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.original-price {
	font-size: 1.2rem;
	text-decoration: line-through;
	color: #6c757d;
	margin-right: 10px;
}

/* Estilos para la sinopsis expandible */
#bookSinopsisContainer {
	position: relative;
}

.sinopsis-content {
	transition: all 0.3s ease;
	overflow: hidden;
}

.sinopsis-content.collapsed {
	max-height: 250px;
	position: relative;
}

.sinopsis-content.collapsed::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40px;
	background: linear-gradient(transparent, white);
	pointer-events: none;
}

.sinopsis-content.expanded {
	max-height: none;
}

.sinopsis-toggle {
	background: none;
	border: none;
	color: #007185;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 0;
	margin-top: 8px;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.sinopsis-toggle:hover {
	color: #C7511F;
	text-decoration: underline;
}

.sinopsis-toggle i {
	font-size: 12px;
	transition: transform 0.3s ease;
}

.sinopsis-toggle.expanded i {
	transform: rotate(180deg);
}

/* Estilos para bookInfoContainer */
#bookInfoContainer {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	border: 1px solid #e9ecef;
	padding: 20px;
}


#bookDetails {
	padding: 0;
}

#bookDetails .row {
	margin: 0;
}

.detail-row {
	display: flex;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.3s ease;
	border-radius: 8px;
	margin-bottom: 2px;
}

.detail-row:hover {
	background: rgba(255, 107, 53, 0.05);
	transform: translateX(5px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-row:last-child {
	border-bottom: none;
}

.detail-label-modern {
	font-weight: 600;
	color: #495057;
	font-size: 14px;
	min-width: 150px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.detail-label-modern i {
	color: #ff6b35;
	font-size: 16px;
	width: 20px;
	text-align: center;
}

.detail-value-modern {
	color: #212529;
	font-size: 14px;
	font-weight: 500;
	flex: 1;
	padding-left: 15px;
}

.detail-separator {
	width: 2px;
	height: 20px;
	background: linear-gradient(to bottom, #ff6b35, #f39200);
	margin: 0 15px;
	border-radius: 1px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
	#bookInfoContainer {
		margin: 0 -15px;
		border-radius: 12px;
	}

	#bookInfoContainer h3 {
		font-size: 1.1rem;
		padding: 15px;
		margin: 0 -15px 15px -15px;
	}

	.detail-row {
		flex-direction: column;
		align-items: flex-start;
		padding: 15px;
		background: white;
		border-radius: 12px;
		margin-bottom: 8px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
		border: 1px solid #f0f0f0;
	}

	.detail-row:hover {
		transform: none;
		background: white;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	}

	.detail-label-modern {
		min-width: 100%;
		font-size: 13px;
		color: #6c757d;
		margin-bottom: 8px;
		font-weight: 500;
	}

	.detail-value-modern {
		padding-left: 0;
		font-size: 15px;
		font-weight: 600;
		color: #212529;
		width: 100%;
	}

	.detail-separator {
		display: none;
	}
}

@media (max-width: 480px) {
	#bookInfoContainer {
		margin: 0 -10px;
	}

	.detail-row {
		padding: 12px;
		margin-bottom: 6px;
	}

	.detail-label-modern {
		font-size: 12px;
		margin-bottom: 6px;
	}

	.detail-value-modern {
		font-size: 14px;
	}
}

.tab-pane {
	border: none !important;
}

/* Estilos para libros relacionados */
.libros-relacionados {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.libros-relacionados h3 {
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 20px;
	font-size: 1.35rem;

}

.libros-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 20px;
	justify-content: center;
	max-width: 100%;
}

/* Ajuste especial para pocos elementos */
.libros-grid:has(.libro-relacionado:nth-child(1):nth-last-child(1)) {
	/* Solo 1 elemento */
	grid-template-columns: minmax(200px, 300px);
	justify-content: center;
}

.libros-grid:has(.libro-relacionado:nth-child(2):nth-last-child(1)) {
	/* Solo 2 elementos */
	grid-template-columns: repeat(2, minmax(200px, 300px));
	justify-content: center;
}

.libros-grid:has(.libro-relacionado:nth-child(3):nth-last-child(1)) {
	/* Solo 3 elementos */
	grid-template-columns: repeat(3, minmax(200px, 280px));
	justify-content: center;
}

/* Fallback para navegadores que no soportan :has() */
@supports not (selector(:has(*))) {
	.libros-grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
		justify-content: center;
	}
}

.libro-relacionado {
	background: white;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 15px;
	text-align: center;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.libro-relacionado:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	border-color: #ff6b35;
}

.libro-relacionado .book-image {
	margin-bottom: 15px;
	flex-shrink: 0;
}

.libro-relacionado img {
	width: 120px;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.libro-relacionado img:hover {
	transform: scale(1.05);
}

.libro-relacionado .book-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.libro-relacionado .book-title {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 10px;
	line-height: 1.3;
	min-height: 36px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.libro-relacionado .book-price {
	font-size: 16px;
	font-weight: 700;
	color: #28a745;
	margin-top: -20px;
	margin-bottom: 10px;
}

.libro-relacionado .book-price-label {
	font-size: 12px;
	color: #6c757d;
	font-weight: normal;
}

.libro-relacionado .book-button {
	background: linear-gradient(135deg, #ff6b35 0%, #f39200 100%);
	border: none;
	color: white;
	padding: 10px 15px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);

}

.libro-relacionado .book-button:hover {
	background: linear-gradient(135deg, #e55a2b 0%, #e8850a 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
}

.libro-relacionado .book-button i {
	margin-right: 5px;
}

.no-related-books {
	text-align: center;
	padding: 40px 20px;
	color: #6c757d;
	font-style: italic;
}

/* Responsive para libros relacionados */
@media (max-width: 768px) {
	.libros-relacionados {
		padding: 15px;
		margin: 15px 0;
	}

	.libros-relacionados h3 {
		font-size: 1.35rem;
		margin-bottom: 15px;
	}

	.libros-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: 15px;
		max-width: 100%;
		justify-content: center;
	}

	.libro-relacionado {
		padding: 15px;
		max-width: none;
	}

	.libro-relacionado img {
		width: 140px;
		height: auto;
	}

	.libro-relacionado .book-title {
		font-size: 14px;
		min-height: 35px;
		margin-bottom: 12px;
	}

	.libro-relacionado .book-price {
		font-size: 15px;
		margin: 12px 0;
	}

	.libro-relacionado .book-button {
		padding: 10px 15px;
		font-size: 12px;
		margin-top: 12px;
	}
}

@media (max-width: 480px) {
	.libros-relacionados {
		padding: 12px;
		margin: 12px 0;
	}

	.libros-relacionados h3 {
		font-size: 1.35rem;
		margin-bottom: 12px;
	}

	.libros-grid {
		grid-template-columns: 1fr;
		gap: 15px;
		max-width: 320px;
		margin: 20px auto;
		justify-content: center;
	}

	.libro-relacionado {
		padding: 20px;
		text-align: center;
		max-width: 100%;
		margin: 0 auto;
	}

	.libro-relacionado img {
		width: 160px;
		height: auto;
		margin: 0 auto;
	}

	.libro-relacionado .book-title {
		font-size: 15px;
		min-height: 40px;
		margin: 15px 0 12px 0;
		line-height: 1.4;
	}

	.libro-relacionado .book-price {
		font-size: 16px;
		margin: 12px 0;
	}

	.libro-relacionado .book-button {
		padding: 12px 20px;
		font-size: 13px;
		margin-top: 15px;
		width: 100%;
	}
}

/* Ajuste específico para móviles muy pequeños */
@media (max-width: 360px) {
	.libros-grid {
		max-width: 280px;
	}

	.libro-relacionado {
		padding: 15px;
	}

	.libro-relacionado img {
		width: 140px;
	}
}

/* Estilos para datos del autor */
.datos-autor {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.datos-autor h3 {
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 20px;
	font-size: 1.35rem;

}

.author-card {
	background: white;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.author-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
	border-color: #ff6b35;
}

.author-card:last-child {
	margin-bottom: 0;
}

.author-info {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.author-image {
	flex-shrink: 0;
	position: relative;
}

.author-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #f8f9fa;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.author-card:hover .author-avatar {
	transform: scale(1.05);
}

.author-details {
	flex: 1;
	min-width: 0;
}

.author-name {
	font-size: 1.25rem;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 5px;
	text-decoration: none;
	transition: color 0.3s ease;
}

.author-name:hover {
	color: #ff6b35;
	text-decoration: none;
}

.author-role {
	display: inline-block;
	background: linear-gradient(135deg, #ff6b35 0%, #f39200 100%);
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 15px;
}

.author-bio {
	color: #6c757d;
	line-height: 1.6;
	font-size: 14px;
}

.author-bio p {
	margin-bottom: 12px;
}

.author-bio p:last-child {
	margin-bottom: 0;
}

/* Layout alternado para múltiples autores */
.author-card.reverse .author-info {
	flex-direction: row-reverse;
}

/* Responsive para datos del autor */
@media (max-width: 768px) {
	.datos-autor {
		padding: 15px;
		margin: 15px 0;
	}

	.author-card {
		padding: 15px;
		margin-bottom: 15px;
	}

	.author-info {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}

	.author-card.reverse .author-info {
		flex-direction: column;
	}

	.author-image {
		align-self: center;
	}

	.author-avatar {
		width: 80px;
		height: 80px;
	}

	.author-name {
		font-size: 1.1rem;
	}

	.author-details {
		text-align: center;
	}

	.author-bio {
		text-align: left;
	}
}

/* Estilos para menciones de prensa */
.menciones-prensa {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.menciones-prensa h3 {
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 20px;
	font-size: 1.35rem;

}

.menciones-accordion {
	border: none;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: none;
}

.menciones-accordion .accordion-item {
	background: white;
	border: 1px solid #e9ecef;
	border-radius: 12px !important;
	margin-bottom: 15px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.menciones-accordion .accordion-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	border-color: #ff6b35;
}

.menciones-accordion .accordion-item:last-child {
	margin-bottom: 0;
}

.menciones-accordion .accordion-header {
	border: none;
	margin-bottom: 0;
}

.menciones-accordion .accordion-button {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border: 2px solid #e9ecef;
	border-radius: 12px !important;
	padding: 20px;
	font-size: 1.1rem;
	font-weight: 600;
	color: #2c3e50;
	box-shadow: none;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.menciones-accordion .accordion-button:not(.collapsed) {
	background: transparent;
	color: #ff6b35;
	border: 2px solid #ff6b35;
	box-shadow: none;
}

.menciones-accordion .accordion-button:focus {
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25);
	border: 2px solid #ff6b35;
}

.menciones-accordion .accordion-button:hover {
	background: rgba(255, 107, 53, 0.05);
	color: #ff6b35;
	border: 2px solid #ff6b35;
}

.menciones-accordion .accordion-button::after {
	background-image: none;
	content: '\f067';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	color: inherit;
	font-size: 14px;
	transition: all 0.3s ease;
}

.menciones-accordion .accordion-button:not(.collapsed)::after {
	content: '\f068';
	transform: rotate(0deg);
}

.menciones-accordion .accordion-collapse {
	border: none;
}

.menciones-accordion .accordion-body {
	padding: 20px;
	background: #fafbfc;
	border-top: 1px solid rgba(255, 107, 53, 0.1);
	font-size: 14px;
	line-height: 1.6;
}

.menciones-accordion .accordion-body ul {
	margin: 0;
	padding-left: 20px;
}

.menciones-accordion .accordion-body li {
	margin-bottom: 12px;
	padding-left: 5px;
}

.menciones-accordion .accordion-body li:last-child {
	margin-bottom: 0;
}

.menciones-accordion .accordion-body a {
	color: #ff6b35;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	border-bottom: 1px solid transparent;
}

.menciones-accordion .accordion-body a:hover {
	color: #e55a2b;
	border-bottom-color: #e55a2b;
	text-decoration: none;
}

.menciones-accordion .accordion-body .no-content {
	color: #6c757d;
	font-style: italic;
	text-align: center;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px dashed #dee2e6;
}

/* Iconos para cada sección del accordion */
.menciones-accordion .accordion-button.enlaces-interes::before {
	content: '\f0c1';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	margin-right: 10px;
	color: inherit;
}

.menciones-accordion .accordion-button.booktrailer::before {
	content: '\f03d';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	margin-right: 10px;
	color: inherit;
}

.menciones-accordion .accordion-button.menciones::before {
	content: '\f1ea';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	margin-right: 10px;
	color: inherit;
}

/* Responsive para menciones de prensa */
@media (max-width: 768px) {
	.menciones-prensa {
		padding: 15px;
		margin: 15px 0;
	}

	.menciones-prensa h3 {
		font-size: 1.35rem;
		margin-bottom: 15px;
	}

	.menciones-accordion .accordion-item {
		margin-bottom: 12px;
	}

	.menciones-accordion .accordion-button {
		padding: 15px;
		font-size: 1rem;
	}

	.menciones-accordion .accordion-body {
		padding: 15px;
		font-size: 13px;
	}
}

/* Estilos para reseñas */
.reviews-section {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.reviews-section h3 {
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 20px;
	font-size: 1.35rem;

}

.reviews-container {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.reviews-form-section {
	flex: 0 0 350px;
	max-width: 350px;
	background: #f8f9fa;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #e9ecef;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.reviews-list-section {
	flex: 1;
	min-width: 0;
}

.reviews-summary {
	background: white;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.reviews-summary .rating-display {
	font-size: 2.5rem;
	font-weight: 700;
	color: #ff6b35;
	margin-bottom: 10px;
}

.reviews-summary .stars-large {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

.reviews-summary .reviews-count {
	color: #6c757d;
	font-size: 14px;
	margin-bottom: 15px;
}

.rating-bars {
	max-width: 300px;
	margin: 0 auto;
}

.rating-bar {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
	font-size: 12px;
}

.rating-bar-label {
	min-width: 60px;
	text-align: left;
	color: #007185;
	font-weight: 500;
}

.rating-bar-progress {
	flex: 1;
	height: 8px;
	background: #e9ecef;
	border-radius: 4px;
	margin: 0 10px;
	overflow: hidden;
}

.rating-bar-fill {
	height: 100%;
	background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.rating-bar-percentage {
	min-width: 35px;
	text-align: right;
	color: #6c757d;
	font-weight: 500;
}

.review-form-title {
	color: #2c3e50;
	font-weight: 600;
	font-size: 1.1rem;
	margin-bottom: 15px;
	text-align: center;
}

.review-form-subtitle {
	color: #6c757d;
	font-size: 13px;
	margin-bottom: 20px;
	text-align: center;
	line-height: 1.4;
}

.review-form {
	background: white;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #e9ecef;
}

.stars-input {
	text-align: center;
	margin-bottom: 20px;
}

.stars-input .estrella-vacia {
	font-size: 2rem;
	color: #dee2e6;
	cursor: pointer;
	transition: all 0.3s ease;
	margin: 0 2px;
}

.stars-input .estrella-vacia:hover,
.stars-input .estrella-vacia.text-warning {
	color: #ffc107;
	transform: scale(1.1);
}

.review-textarea {
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 15px;
	font-size: 14px;
	line-height: 1.5;
	resize: vertical;
	min-height: 120px;
	transition: all 0.3s ease;
}

.review-textarea:focus {
	border-color: #ff6b35;
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
	outline: none;
}

.review-submit-btn {
	background: linear-gradient(135deg, #ff6b35 0%, #f39200 100%);
	border: none;
	color: white;
	padding: 12px 30px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.review-submit-btn:hover {
	background: linear-gradient(135deg, #e55a2b 0%, #e8850a 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.review-alert {
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	border: 1px solid;
}

.review-alert.alert-info {
	background: #e8f4fd;
	border-color: #bee5eb;
	color: #0c5460;
}

.review-alert.alert-warning {
	background: #fff3cd;
	border-color: #ffeaa7;
	color: #856404;
}

.review-alert.alert-success {
	background: #d4edda;
	border-color: #c3e6cb;
	color: #155724;
}

.review-alert.alert-danger {
	background: #f8d7da;
	border-color: #f5c6cb;
	color: #721c24;
}

.reviews-list {
	background: white;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.reviews-list h5 {
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 20px;
	font-size: 1.1rem;
}

.review-item {
	background: #fafbfc;
	border: 1px solid #f0f0f0;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 15px;
	transition: all 0.3s ease;
}

.review-item:hover {
	background: white;
	border-color: #ff6b35;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.review-item:last-child {
	margin-bottom: 0;
}

.review-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.review-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.review-avatar {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff6b35 0%, #f39200 100%);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 16px;
	flex-shrink: 0;
}

.review-author-info {
	flex: 1;
}

.review-author-name {
	font-weight: 600;
	color: #2c3e50;
	font-size: 14px;
	margin-bottom: 2px;
}

.review-date {
	color: #6c757d;
	font-size: 12px;
}

.review-stars {
	font-size: 16px;
}

.review-text {
	color: #495057;
	line-height: 1.6;
	font-size: 14px;
}

.review-toggle {
	color: #007185;
	font-weight: 500;
	cursor: pointer;
	font-size: 13px;
	border: none;
	background: none;
	padding: 0;
	margin-left: 5px;
	text-decoration: none;
}

.review-toggle:hover {
	color: #ff6b35;
	text-decoration: underline;
}

.no-reviews {
	text-align: center;
	padding: 40px 20px;
	color: #6c757d;
	font-style: italic;
	background: #f8f9fa;
	border-radius: 12px;
}

/* Responsive para reseñas */
@media (max-width: 768px) {
	.reviews-section {
		padding: 15px;
		margin: 15px 0;
	}

	.reviews-section h3 {
		font-size: 1.35rem;
		margin-bottom: 15px;
	}

	.reviews-container {
		flex-direction: column;
		gap: 20px;
	}

	.reviews-form-section {
		flex: none;
		max-width: 100%;
		order: 2;
	}

	.reviews-list-section {
		order: 1;
	}

	.reviews-summary {
		padding: 15px;
		margin-bottom: 15px;
	}

	.reviews-summary .rating-display {
		font-size: 2rem;
	}

	.reviews-summary .stars-large {
		font-size: 1.2rem;
	}

	.review-form {
		padding: 15px;
	}

	.stars-input .estrella-vacia {
		font-size: 1.5rem;
	}

	.reviews-list {
		padding: 15px;
	}

	.review-item {
		padding: 15px;
	}

	.review-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.review-stars {
		align-self: flex-end;
	}
}

@media (max-width: 480px) {
	.reviews-section {
		padding: 12px;
		margin: 12px 0;
	}

	.reviews-form-section {
		padding: 15px;
	}

	.review-form {
		padding: 12px;
	}

	.reviews-list {
		padding: 12px;
	}

	.review-item {
		padding: 12px;
	}

	.review-avatar {
		width: 40px;
		height: 40px;
		font-size: 14px;
	}

	.rating-bars {
		max-width: 100%;
	}
}

/* Botón flotante móvil para añadir al carrito */
.mobile-cart-floating {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: white;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
	border-top: 1px solid #e9ecef;
	padding: 12px 16px;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.mobile-cart-floating.show {
	transform: translateY(0);
}

.mobile-cart-content {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
}

.mobile-book-info {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mobile-book-cover {
	width: 40px;
	height: auto;
	border-radius: 4px;
	flex-shrink: 0;
}

.mobile-book-details {
	flex: 1;
	min-width: 0;
}

.mobile-book-title {
	font-size: 12px;
	font-weight: 600;
	color: #2c3e50;
	line-height: 1.2;
	margin-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mobile-book-price {
	font-size: 14px;
	font-weight: 700;
	color: #B12704;
}

.mobile-cart-button {
	background: linear-gradient(135deg, #F39200 0%, #FF9900 100%);
	border: none;
	color: white;
	padding: 12px 20px;
	border-radius: 25px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(243, 146, 0, 0.3);
	flex-shrink: 0;
	white-space: nowrap;
}

.mobile-cart-button:hover {
	background: linear-gradient(135deg, #E8850A 0%, #FA8900 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(243, 146, 0, 0.4);
}

.mobile-cart-button:active {
	transform: translateY(0);
}

.mobile-cart-button i {
	margin-right: 6px;
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
	.mobile-cart-floating {
		display: block;
	}

	/* Añadir padding bottom al body para evitar que el contenido quede oculto */
	body {
		padding-bottom: 80px;
	}
}

@media (max-width: 480px) {
	.mobile-cart-content {
		gap: 10px;
	}

	.mobile-book-cover {
		width: 35px;
	}

	.mobile-book-title {
		font-size: 11px;
	}

	.mobile-book-price {
		font-size: 13px;
	}

	.mobile-cart-button {
		padding: 10px 16px;
		font-size: 12px;
	}
}