/*
Theme Name: Astra Child
Template: astra
*/

/* ===== ENLACES ===== */

/* Estilos generales para enlaces dentro del contenido */
#content a {
	color: #55595c;
	font-weight: bold;
	text-decoration: none;
	position: relative;
	transition: color 0.3s ease;
	background-image: linear-gradient(to right, #000 0%, #000 100%);
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: left bottom;
	transition: color 0.3s ease, background-size 0.3s ease;
	cursor: pointer !important;
}

/* Estado hover */
#content a:hover {
	color: #000;
	background-size: 100% 2px;
	transform: translateY(-1px);
}

/* Estado focus solo para navegación por teclado */
#content a:focus-visible {
	outline: 2px solid #55595c;
	outline-offset: 2px;
	color: #000;
	background-size: 100% 2px;
	box-shadow: 0 2px 8px rgba(85, 89, 92, 0.2);
}

/* Elimina el outline predeterminado para clics de ratón */
#content a:focus:not(:focus-visible) {
	outline: none;
}

.elementor-icon-list-text strong,
.elementor-icon-list-text a {
	display: inline !important;
}

.elementor-icon-list-text strong a {
	display: inline !important;
}

/* ===== GENERALES ===== */

.mbm-book-editions-toggle {
	display: none !important;
}

.mbm-book-editions {
	border: none !important;
}

#mbm-book-page .mbm-book-serieslist,
#mbm-book-page .mbm-book-editions,
#mbm-book-page .mbm-book-goodreads {
	border-top: none;
}

/* header */
.elementor-38 {
	margin-bottom: 8rem !important;
	animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* footer */
html,
body {
	height: 100%;
	margin: 0;
	scroll-behavior: smooth;
}

#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#content {
	flex: 1;
	animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#colophon {
	margin-top: auto;
	transition: all 0.3s ease;
}

/* desactivar link autor SOLO en el contexto específico */
h3[itemprop="narrator"] .mbm-book-cover-artist-link {
	pointer-events: none;
	text-decoration: none;
	color: inherit;
	cursor: default;
}

#content a:not(.mbm-book-cover-artist-link) {
	cursor: pointer;
	pointer-events: auto;
}

/* ===== PORTADA ===== */

#mbm-book-page .mbm-book-cover img {
	max-width: 10em;
	margin-bottom: 2em;
	transition: all 0.4s ease;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	cursor: default;
}

#mbm-book-page .mbm-book-cover img:hover {
	transform: scale(1.05) rotate(1deg);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ===== GRID ===== */
.mbm-book-editions-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-top: 1rem;
	padding: 1em 20em;
	position: relative;
	z-index: 1;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background-color: white;
	animation: slideInGrid 0.8s ease-out;
}

@keyframes slideInGrid {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mbm-book-editions-grid::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('/wp-content/uploads/2025/07/97163117-2648-4a87-9fb0-90eb41da189c-scaled.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	z-index: -1;
	background-attachment: fixed;
}

.mbm-edition-item {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 10px;
	padding: 1em;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
	font-size: 0.95rem;
	line-height: 1.4;
	transition: all 0.3s ease;
	cursor: pointer;
}

.mbm-edition-item:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
	cursor: default;
}

.mbm-edition-item strong {
	display: block;
	color: #333;
	margin-bottom: 0.25rem;
	font-weight: 600;
	font-size: 1.05em;
	letter-spacing: 0.3px;
}

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
	.mbm-book-editions-grid {
		grid-template-columns: repeat(2, 1fr);
		padding: 2em 8em;
	}
}

/* Móviles (≤768px) */
@media (max-width: 768px) {
	.mbm-book-editions-grid {
		grid-template-columns: 1fr;
		padding: 2em;
	}

	.mbm-edition-item:nth-child(1) {
		animation-delay: 0.1s;
	}

	.mbm-edition-item:nth-child(2) {
		animation-delay: 0.2s;
	}

	.mbm-edition-item:nth-child(3) {
		animation-delay: 0.3s;
	}

	.mbm-edition-item:nth-child(4) {
		animation-delay: 0.4s;
	}
}

/* ===== LISTA COLECCIÓN ===== */

@media (max-width: 1024px) {
	.mbm-book-serieslist {
		margin-bottom: 3em;
	}
}

.mbm-book-serieslist-listitem-number {
	width: 2em;
	font-weight: bold;
	color: #444;
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2em;
	margin-right: 0.5em;
	transition: all 0.3s ease;
}

.mbm-book-serieslist-listitem-number:hover {
	background: linear-gradient(135deg, #55595c, #444);
	color: white;
	transform: scale(1.1);
}

.mbm-book-serieslist-listitem {
	margin-bottom: 1px;
	font-size: small;
	padding: 0.5em 0;
	transition: all 0.3s ease;
	border-radius: 4px;
}

.mbm-book-serieslist-listitem:hover {
	background: rgba(85, 89, 92, 0.05);
	transform: translateX(5px);
}

/* ===== SEPARADORES ARRIBA/ABAJO ===== */

#mbm-third-column::before {
	content: '';
	display: block;
	height: 2em;
	margin: 1em 0;
}

.mbm-book-additional-info {
	margin-top: 0;
	margin-bottom: 2.5em;
}

/* ===== LABELS Y TEXTO ===== */

.mbm-book-published-label {
	color: #333;
	font-weight: 500;
	letter-spacing: 0.5px;
}

h1[itemprop="headline"] {
	font-size: 2.2rem;
	font-weight: 700;
	color: #111;
	margin-bottom: -0.3em;
	animation: titleFadeIn 1s ease-out;
	line-height: 1.2;
	letter-spacing: -0.5px;
}


@keyframes titleFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
		letter-spacing: 2px;
	}

	to {
		opacity: 1;
		transform: translateY(0);
		letter-spacing: -0.5px;
	}
}

h2[itemprop="series"] {
	font-size: 1.2rem;
	font-style: italic;
	font-weight: 500;
	color: #444;
	margin: 0.2em 0;
	transition: color 0.3s ease;
}

h2[itemprop="series"] .mbm-book-series-link {
	color: #444;
	text-decoration: none;
	position: relative;
	transition: all 0.3s ease;
}

h2[itemprop="series"] .mbm-book-series-link:hover {
	color: #000;
	transform: translateX(3px);
}

h2[itemprop="series"] .mbm-book-series-link:hover::after {
	width: 100%;
}

h2[itemprop="series"] .mbm-book-series-text+span {
	font-weight: 600;
	margin-left: 0.3em;
	background: rgba(85, 89, 92, 0.1);
	padding: 0.2em 0.6em;
	border-radius: 12px;
	font-size: 0.9em;
	transition: all 0.3s ease;
}

h2[itemprop="series"] .mbm-book-series-text+span:hover {
	background: rgba(85, 89, 92, 0.2);
	transform: scale(1.1);
}

h3[itemprop="narrator"] {
	font-size: 1rem;
	font-weight: 400;
	margin: 1em 0;
	color: #666;
	animation: fadeInUp 0.6s ease-out 0.4s both;
}

h3[itemprop="narrator"] .mbm-book-cover-artist-link {
	color: #666;
	text-decoration: none;
	padding: 0.2em 0;
	border-radius: 3px;
	pointer-events: none;
	cursor: default;
}

/* ===== GALERÍA COLECCIÓN ===== */

@media (min-width: 1024px) {

	/* Contenedor con efecto abanico */
	#album .gallery {
		display: flex;
		justify-content: center;
		align-items: flex-end;
		gap: 0;
		perspective: 1000px;
		padding: 2em 0;
		flex-wrap: nowrap;
		overflow-x: auto;
		animation: galleryFadeIn 1s ease-out;
	}

	@keyframes galleryFadeIn {
		from {
			opacity: 0;
			transform: perspective(1000px) rotateX(20deg);
		}

		to {
			opacity: 1;
			transform: perspective(1000px) rotateX(0deg);
		}
	}

	/* Cada portada */
	#album .gallery-item {
		flex: 0 0 auto;
		transform-origin: bottom center;
		transition: transform 0.3s ease, z-index 0.3s ease;
		margin: 0 -40px;
		position: relative;
		z-index: 1;
		animation: bookFadeIn 0.6s ease-out both;
	}

	@keyframes bookFadeIn {
		from {
			opacity: 0;
			transform: translateY(50px) scale(0.8) var(--fan-rotation, rotate(0deg));
		}

		to {
			opacity: 1;
			transform: translateY(0) scale(1) var(--fan-rotation, rotate(0deg));
		}
	}

	#album .gallery-item:nth-child(1) {
		animation-delay: 0.1s;
	}

	#album .gallery-item:nth-child(2) {
		animation-delay: 0.2s;
	}

	#album .gallery-item:nth-child(3) {
		animation-delay: 0.3s;
	}

	#album .gallery-item:nth-child(4) {
		animation-delay: 0.4s;
	}

	#album .gallery-item:nth-child(5) {
		animation-delay: 0.5s;
	}

	#album .gallery-item:nth-child(6) {
		animation-delay: 0.6s;
	}

	#album .gallery-item:nth-child(7) {
		animation-delay: 0.7s;
	}

	#album .gallery-item:nth-child(8) {
		animation-delay: 0.8s;
	}

	#album .gallery-item:nth-child(9) {
		animation-delay: 0.9s;
	}

	#album .gallery-item:nth-child(10) {
		animation-delay: 1s;
	}

	#album .gallery-item:nth-child(11) {
		animation-delay: 1.1s;
	}

	#album .gallery-item:nth-child(12) {
		animation-delay: 1.2s;
	}

	#album .gallery-item:nth-child(13) {
		animation-delay: 1.3s;
	}

	#album .gallery-item:nth-child(14) {
		animation-delay: 1.4s;
	}

	#album .gallery-item:nth-child(15) {
		animation-delay: 1.5s;
	}

	#album .gallery-item:nth-child(16) {
		animation-delay: 1.6s;
	}

	/* Igualar tamaños */
	#album .gallery-item img {
		aspect-ratio: 2 / 3;
		object-fit: cover;
	}

	/* ===== ABANICOS CUSTOM ===== */
	/* Posiciones en abanico 5 libros */
	.album-5 .gallery-item:nth-child(1) {
		transform: rotate(-15deg);
		--fan-rotation: rotate(-15deg);
	}

	.album-5 .gallery-item:nth-child(2) {
		transform: rotate(-7.5deg);
		--fan-rotation: rotate(-7.5deg);
	}

	.album-5 .gallery-item:nth-child(3) {
		transform: rotate(0deg);
		--fan-rotation: rotate(0deg);
	}

	.album-5 .gallery-item:nth-child(4) {
		transform: rotate(7.5deg);
		--fan-rotation: rotate(7.5deg);
	}

	.album-5 .gallery-item:nth-child(5) {
		transform: rotate(15deg);
		--fan-rotation: rotate(15deg);
	}

	/* Posiciones en abanico 6 libros */
	.album-6 .gallery-item:nth-child(1) {
	transform: rotate(-15deg);
	--fan-rotation: rotate(-15deg);
	}	

	.album-6 .gallery-item:nth-child(2) {
		transform: rotate(-9deg);
		--fan-rotation: rotate(-9deg);
	}

	.album-6 .gallery-item:nth-child(3) {
		transform: rotate(-3deg);
		--fan-rotation: rotate(-3deg);
	}

	.album-6 .gallery-item:nth-child(4) {
		transform: rotate(3deg);
		--fan-rotation: rotate(3deg);
	}

	.album-6 .gallery-item:nth-child(5) {
		transform: rotate(9deg);
		--fan-rotation: rotate(9deg);
	}

	.album-6 .gallery-item:nth-child(6) {
		transform: rotate(15deg);
		--fan-rotation: rotate(15deg);
	}


	/* Posiciones en abanico 8 libros */
	.album-8 .gallery-item:nth-child(1) {
		transform: rotate(-20deg);
		--fan-rotation: rotate(-20deg);
	}

	.album-8 .gallery-item:nth-child(2) {
		transform: rotate(-15deg);
		--fan-rotation: rotate(-15deg);
	}

	.album-8 .gallery-item:nth-child(3) {
		transform: rotate(-10deg);
		--fan-rotation: rotate(-10deg);
	}

	.album-8 .gallery-item:nth-child(4) {
		transform: rotate(-5deg);
		--fan-rotation: rotate(-5deg);
	}

	.album-8 .gallery-item:nth-child(5) {
		transform: rotate(5deg);
		--fan-rotation: rotate(5deg);
	}

	.album-8 .gallery-item:nth-child(6) {
		transform: rotate(10deg);
		--fan-rotation: rotate(10deg);
	}

	.album-8 .gallery-item:nth-child(7) {
		transform: rotate(15deg);
		--fan-rotation: rotate(15deg);
	}

	.album-8 .gallery-item:nth-child(8) {
		transform: rotate(20deg);
		--fan-rotation: rotate(20deg);
	}

	/* Posiciones en abanico 9 libros */
	.album-9 .gallery-item:nth-child(1) {
		transform: rotate(-20deg);
		--fan-rotation: rotate(-20deg);
	}

	.album-9 .gallery-item:nth-child(2) {
		transform: rotate(-15deg);
		--fan-rotation: rotate(-15deg);
	}

	.album-9 .gallery-item:nth-child(3) {
		transform: rotate(-10deg);
		--fan-rotation: rotate(-10deg);
	}

	.album-9 .gallery-item:nth-child(4) {
		transform: rotate(-5deg);
		--fan-rotation: rotate(-5deg);
	}

	.album-9 .gallery-item:nth-child(5) {
		transform: rotate(0deg);
		--fan-rotation: rotate(0deg);
	}

	.album-9 .gallery-item:nth-child(6) {
		transform: rotate(5deg);
		--fan-rotation: rotate(5deg);
	}

	.album-9 .gallery-item:nth-child(7) {
		transform: rotate(10deg);
		--fan-rotation: rotate(10deg);
	}

	.album-9 .gallery-item:nth-child(8) {
		transform: rotate(15deg);
		--fan-rotation: rotate(15deg);
	}

	.album-9 .gallery-item:nth-child(9) {
		transform: rotate(20deg);
		--fan-rotation: rotate(20deg);
	}

	/* Posiciones en abanico 10 libros */
	.album-10 .gallery-item:nth-child(1) {
		transform: rotate(-22.5deg);
		--fan-rotation: rotate(-22.5deg);
	}

	.album-10 .gallery-item:nth-child(2) {
		transform: rotate(-17.5deg);
		--fan-rotation: rotate(-17.5deg);
	}

	.album-10 .gallery-item:nth-child(3) {
		transform: rotate(-12.5deg);
		--fan-rotation: rotate(-12.5deg);
	}

	.album-10 .gallery-item:nth-child(4) {
		transform: rotate(-7.5deg);
		--fan-rotation: rotate(-7.5deg);
	}

	.album-10 .gallery-item:nth-child(5) {
		transform: rotate(-2.5deg);
		--fan-rotation: rotate(-2.5deg);
	}

	.album-10 .gallery-item:nth-child(6) {
		transform: rotate(2.5deg);
		--fan-rotation: rotate(2.5deg);
	}

	.album-10 .gallery-item:nth-child(7) {
		transform: rotate(7.5deg);
		--fan-rotation: rotate(7.5deg);
	}

	.album-10 .gallery-item:nth-child(8) {
		transform: rotate(12.5deg);
		--fan-rotation: rotate(12.5deg);
	}

	.album-10 .gallery-item:nth-child(9) {
		transform: rotate(17.5deg);
		--fan-rotation: rotate(17.5deg);
	}

	.album-10 .gallery-item:nth-child(10) {
		transform: rotate(22.5deg);
		--fan-rotation: rotate(22.5deg);
	}

	/* Posiciones en abanico 11 libros */
	.album-11 .gallery-item:nth-child(1) {
		transform: rotate(-25deg);
		--fan-rotation: rotate(-25deg);
	}

	.album-11 .gallery-item:nth-child(2) {
		transform: rotate(-20deg);
		--fan-rotation: rotate(-20deg);
	}

	.album-11 .gallery-item:nth-child(3) {
		transform: rotate(-15deg);
		--fan-rotation: rotate(-15deg);
	}

	.album-11 .gallery-item:nth-child(4) {
		transform: rotate(-10deg);
		--fan-rotation: rotate(-10deg);
	}

	.album-11 .gallery-item:nth-child(5) {
		transform: rotate(-5deg);
		--fan-rotation: rotate(-5deg);
	}

	.album-11 .gallery-item:nth-child(6) {
		transform: rotate(0deg);
		--fan-rotation: rotate(0deg);
	}

	.album-11 .gallery-item:nth-child(7) {
		transform: rotate(5deg);
		--fan-rotation: rotate(5deg);
	}

	.album-11 .gallery-item:nth-child(8) {
		transform: rotate(10deg);
		--fan-rotation: rotate(10deg);
	}

	.album-11 .gallery-item:nth-child(9) {
		transform: rotate(15deg);
		--fan-rotation: rotate(15deg);
	}

	.album-11 .gallery-item:nth-child(10) {
		transform: rotate(20deg);
		--fan-rotation: rotate(20deg);
	}

	.album-11 .gallery-item:nth-child(11) {
		transform: rotate(25deg);
		--fan-rotation: rotate(25deg);
	}

	/* Posiciones en abanico 12 libros */
	.album-12 .gallery-item:nth-child(1) {
		transform: rotate(-27.5deg);
		--fan-rotation: rotate(-27.5deg);
	}

	.album-12 .gallery-item:nth-child(2) {
		transform: rotate(-22.5deg);
		--fan-rotation: rotate(-22.5deg);
	}

	.album-12 .gallery-item:nth-child(3) {
		transform: rotate(-17.5deg);
		--fan-rotation: rotate(-17.5deg);
	}

	.album-12 .gallery-item:nth-child(4) {
		transform: rotate(-12.5deg);
		--fan-rotation: rotate(-12.5deg);
	}

	.album-12 .gallery-item:nth-child(5) {
		transform: rotate(-7.5deg);
		--fan-rotation: rotate(-7.5deg);
	}

	.album-12 .gallery-item:nth-child(6) {
		transform: rotate(-2.5deg);
		--fan-rotation: rotate(-2.5deg);
	}

	.album-12 .gallery-item:nth-child(7) {
		transform: rotate(2.5deg);
		--fan-rotation: rotate(2.5deg);
	}

	.album-12 .gallery-item:nth-child(8) {
		transform: rotate(7.5deg);
		--fan-rotation: rotate(7.5deg);
	}

	.album-12 .gallery-item:nth-child(9) {
		transform: rotate(12.5deg);
		--fan-rotation: rotate(12.5deg);
	}

	.album-12 .gallery-item:nth-child(10) {
		transform: rotate(17.5deg);
		--fan-rotation: rotate(17.5deg);
	}

	.album-12 .gallery-item:nth-child(11) {
		transform: rotate(22.5deg);
		--fan-rotation: rotate(22.5deg);
	}

	.album-12 .gallery-item:nth-child(12) {
		transform: rotate(27.5deg);
		--fan-rotation: rotate(27.5deg);
	}

	/* Posiciones en abanico 13 libros */
	.album-13 .gallery-item:nth-child(1) {
		transform: rotate(-30deg);
		--fan-rotation: rotate(-30deg);
	}

	.album-13 .gallery-item:nth-child(2) {
		transform: rotate(-25deg);
		--fan-rotation: rotate(-25deg);
	}

	.album-13 .gallery-item:nth-child(3) {
		transform: rotate(-20deg);
		--fan-rotation: rotate(-20deg);
	}

	.album-13 .gallery-item:nth-child(4) {
		transform: rotate(-15deg);
		--fan-rotation: rotate(-15deg);
	}

	.album-13 .gallery-item:nth-child(5) {
		transform: rotate(-10deg);
		--fan-rotation: rotate(-10deg);
	}

	.album-13 .gallery-item:nth-child(6) {
		transform: rotate(-5deg);
		--fan-rotation: rotate(-5deg);
	}

	.album-13 .gallery-item:nth-child(7) {
		transform: rotate(0deg);
		--fan-rotation: rotate(0deg);
	}

	.album-13 .gallery-item:nth-child(8) {
		transform: rotate(5deg);
		--fan-rotation: rotate(5deg);
	}

	.album-13 .gallery-item:nth-child(9) {
		transform: rotate(10deg);
		--fan-rotation: rotate(10deg);
	}

	.album-13 .gallery-item:nth-child(10) {
		transform: rotate(15deg);
		--fan-rotation: rotate(15deg);
	}

	.album-13 .gallery-item:nth-child(11) {
		transform: rotate(20deg);
		--fan-rotation: rotate(20deg);
	}

	.album-13 .gallery-item:nth-child(12) {
		transform: rotate(25deg);
		--fan-rotation: rotate(25deg);
	}

	.album-13 .gallery-item:nth-child(13) {
		transform: rotate(30deg);
		--fan-rotation: rotate(30deg);
	}

	/* Posiciones en abanico 14 libros */
	.album-14 .gallery-item:nth-child(1) {
		transform: rotate(-32.5deg);
		--fan-rotation: rotate(-32.5deg);
	}

	.album-14 .gallery-item:nth-child(2) {
		transform: rotate(-27.5deg);
		--fan-rotation: rotate(-27.5deg);
	}

	.album-14 .gallery-item:nth-child(3) {
		transform: rotate(-22.5deg);
		--fan-rotation: rotate(-22.5deg);
	}

	.album-14 .gallery-item:nth-child(4) {
		transform: rotate(-17.5deg);
		--fan-rotation: rotate(-17.5deg);
	}

	.album-14 .gallery-item:nth-child(5) {
		transform: rotate(-12.5deg);
		--fan-rotation: rotate(-12.5deg);
	}

	.album-14 .gallery-item:nth-child(6) {
		transform: rotate(-7.5deg);
		--fan-rotation: rotate(-7.5deg);
	}

	.album-14 .gallery-item:nth-child(7) {
		transform: rotate(-2.5deg);
		--fan-rotation: rotate(-2.5deg);
	}

	.album-14 .gallery-item:nth-child(8) {
		transform: rotate(2.5deg);
		--fan-rotation: rotate(2.5deg);
	}

	.album-14 .gallery-item:nth-child(9) {
		transform: rotate(7.5deg);
		--fan-rotation: rotate(7.5deg);
	}

	.album-14 .gallery-item:nth-child(10) {
		transform: rotate(12.5deg);
		--fan-rotation: rotate(12.5deg);
	}

	.album-14 .gallery-item:nth-child(11) {
		transform: rotate(17.5deg);
		--fan-rotation: rotate(17.5deg);
	}

	.album-14 .gallery-item:nth-child(12) {
		transform: rotate(22.5deg);
		--fan-rotation: rotate(22.5deg);
	}

	.album-14 .gallery-item:nth-child(13) {
		transform: rotate(27.5deg);
		--fan-rotation: rotate(27.5deg);
	}

	.album-14 .gallery-item:nth-child(14) {
		transform: rotate(32.5deg);
		--fan-rotation: rotate(32.5deg);
	}

	/* Posiciones en abanico 15 libros */
	.album-15 .gallery-item:nth-child(1) {
		transform: rotate(-35deg);
		--fan-rotation: rotate(-35deg);
	}

	.album-15 .gallery-item:nth-child(2) {
		transform: rotate(-30deg);
		--fan-rotation: rotate(-30deg);
	}

	.album-15 .gallery-item:nth-child(3) {
		transform: rotate(-25deg);
		--fan-rotation: rotate(-25deg);
	}

	.album-15 .gallery-item:nth-child(4) {
		transform: rotate(-20deg);
		--fan-rotation: rotate(-20deg);
	}

	.album-15 .gallery-item:nth-child(5) {
		transform: rotate(-15deg);
		--fan-rotation: rotate(-15deg);
	}

	.album-15 .gallery-item:nth-child(6) {
		transform: rotate(-10deg);
		--fan-rotation: rotate(-10deg);
	}

	.album-15 .gallery-item:nth-child(7) {
		transform: rotate(-5deg);
		--fan-rotation: rotate(-5deg);
	}

	.album-15 .gallery-item:nth-child(8) {
		transform: rotate(0deg);
		--fan-rotation: rotate(0deg);
	}

	.album-15 .gallery-item:nth-child(9) {
		transform: rotate(5deg);
		--fan-rotation: rotate(5deg);
	}

	.album-15 .gallery-item:nth-child(10) {
		transform: rotate(10deg);
		--fan-rotation: rotate(10deg);
	}

	.album-15 .gallery-item:nth-child(11) {
		transform: rotate(15deg);
		--fan-rotation: rotate(15deg);
	}

	.album-15 .gallery-item:nth-child(12) {
		transform: rotate(20deg);
		--fan-rotation: rotate(20deg);
	}

	.album-15 .gallery-item:nth-child(13) {
		transform: rotate(25deg);
		--fan-rotation: rotate(25deg);
	}

	.album-15 .gallery-item:nth-child(14) {
		transform: rotate(30deg);
		--fan-rotation: rotate(30deg);
	}

	.album-15 .gallery-item:nth-child(15) {
		transform: rotate(35deg);
		--fan-rotation: rotate(35deg);
	}

	/* Posiciones en abanico 16 libros */
	.album-16 .gallery-item:nth-child(1) {
		transform: rotate(-37.5deg);
		--fan-rotation: rotate(-37.5deg);
	}

	.album-16 .gallery-item:nth-child(2) {
		transform: rotate(-32.5deg);
		--fan-rotation: rotate(-32.5deg);
	}

	.album-16 .gallery-item:nth-child(3) {
		transform: rotate(-27.5deg);
		--fan-rotation: rotate(-27.5deg);
	}

	.album-16 .gallery-item:nth-child(4) {
		transform: rotate(-22.5deg);
		--fan-rotation: rotate(-22.5deg);
	}

	.album-16 .gallery-item:nth-child(5) {
		transform: rotate(-17.5deg);
		--fan-rotation: rotate(-17.5deg);
	}

	.album-16 .gallery-item:nth-child(6) {
		transform: rotate(-12.5deg);
		--fan-rotation: rotate(-12.5deg);
	}

	.album-16 .gallery-item:nth-child(7) {
		transform: rotate(-7.5deg);
		--fan-rotation: rotate(-7.5deg);
	}

	.album-16 .gallery-item:nth-child(8) {
		transform: rotate(-2.5deg);
		--fan-rotation: rotate(-2.5deg);
	}

	.album-16 .gallery-item:nth-child(9) {
		transform: rotate(2.5deg);
		--fan-rotation: rotate(2.5deg);
	}

	.album-16 .gallery-item:nth-child(10) {
		transform: rotate(7.5deg);
		--fan-rotation: rotate(7.5deg);
	}

	.album-16 .gallery-item:nth-child(11) {
		transform: rotate(12.5deg);
		--fan-rotation: rotate(12.5deg);
	}

	.album-16 .gallery-item:nth-child(12) {
		transform: rotate(17.5deg);
		--fan-rotation: rotate(17.5deg);
	}

	.album-16 .gallery-item:nth-child(13) {
		transform: rotate(22.5deg);
		--fan-rotation: rotate(22.5deg);
	}

	.album-16 .gallery-item:nth-child(14) {
		transform: rotate(27.5deg);
		--fan-rotation: rotate(27.5deg);
	}

	.album-16 .gallery-item:nth-child(15) {
		transform: rotate(32.5deg);
		--fan-rotation: rotate(32.5deg);
	}

	.album-16 .gallery-item:nth-child(16) {
		transform: rotate(37.5deg);
		--fan-rotation: rotate(37.5deg);
	}



	/* Hover: en primer plano */
	#album .gallery-item:hover {
		transform: scale(1.3) rotate(0deg) translateY(-15px) !important;
		z-index: 10;
		transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
	}

	#album .gallery-item:hover img {
		box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
	}

	/* Estilo de imagen */
	#album .gallery-icon img {
		box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
		border-radius: 8px;
		display: block;
		transition: all 0.3s ease;
	}

	#album,
	#album .elementor-widget-container,
	#album .gallery {
		overflow: visible !important;
	}
}

.gallery-item img {
	aspect-ratio: 3/4;
	object-fit: cover;
	width: 100%;
}

/* ===== HOME ===== */

/* Las imágenes de portada */
.mbdb_grid_image img,
.hfe-post-card {
	border-radius: 12px !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
	transition: all 0.3s ease !important;
}

/* Efecto hover en las portadas */
.mbdb_grid_image img:hover,
.hfe-post-card:hover {
	transform: translateY(-5px) scale(1.03) !important;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
}

/* grid novedades */
.mbdb_grid_title {
	font-size: 13px;
	line-height: 1.4;
	transition: all 0.3s ease;
}

.mbdb_grid_title a {
	color: black;
	transition: all 0.3s ease;
	text-decoration: none;
	position: relative;
}

.mbdb_grid_title a:hover {
	color: #55595c;
	transform: translateY(-1px);
}

.mbdb_grid_title a:hover::after {
	width: 100%;
}

/* ===== NOTICIAS ===== */

.elementor-widget-wp-widget-recent-posts h5 {
	font-size: 2.2rem;
	font-family: "EB Garamond", Sans-serif;
	animation: titleSlideIn 0.8s ease-out;
}

@keyframes titleSlideIn {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.post-date::before {
	content: "— ";
	color: #55595c;
	font-weight: 300;
}

.post-date {
	transition: color 0.3s ease;
	margin-left: 0.5em;
}

.post-date:hover {
	color: #333;
}

/* ===== WPR GRID → CARD LIMPIA Y RESPONSIVE ===== */


.wpr-grid-item {
	position: relative !important;
	height: auto !important;
	min-height: unset !important;
	display: flex;
	flex-direction: column;
	border-radius: 14px !important;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15) !important;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.wpr-grid-item-below-content {
	padding: 1em !important;
}

/* Hover */
.wpr-grid-item:hover {
	transform: translateY(-6px) scale(1.02) !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

/* Imagen */
.wpr-grid-media-wrap {
	position: relative;
}

.wpr-grid-image-wrap img {
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}

/* Desactivar overlays WPR */
.wpr-grid-media-hover,
.wpr-grid-media-hover-bg {
	display: none !important;
}

/* Contenido */
.wpr-grid-item-below-content {
	padding: 1.4rem 1.4rem 1.6rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}


/* Título */
.wpr-grid-item-title {
	margin: 0 0 0.5rem;
}

.wpr-grid-item-title a {
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	display: block;
}

/* Fecha */
.wpr-grid-item-date {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 1rem;
}

/* Leer más abajo del todo */
.wpr-grid-item-read-more {
	margin-top: auto;
}

.wpr-grid-item-read-more a {
	font-weight: 600;
	color: #000;
	text-decoration: none;
}

.wpr-grid-item-read-more a::after {
	content: " →";
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
	.wpr-grid-item-title a {
		font-size: 1.15rem;
	}
}

@media (max-width: 768px) {
	.wpr-grid-item {
		transform: none !important;
	}

	.wpr-grid-item-below-content {
		padding: 1.2rem;
	}

	.wpr-grid-item-title a {
		font-size: 1.05rem;
		line-height: 1.4;
	}
}


/* ===== PRESENTACIONES ===== */

/* contenedor */
.tribe-common-l-container.tribe-events-l-container {
	padding-top: 0 !important;
	animation: containerFadeIn 0.6s ease-out;
}

@keyframes containerFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* colores */
.tribe-common-c-btn.tribe-events-c-search__button,
.tribe-events .tribe-events-calendar-month__mobile-events-icon--event {
	background-color: #25272D !important;
	transition: all 0.3s ease !important;
	border-radius: 6px !important;
}

.tribe-common-c-btn.tribe-events-c-search__button:hover {
	background-color: #1a1c21 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 15px rgba(37, 39, 45, 0.3) !important;
}

.tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button {
	border: 1px solid #25272D !important;
	color: #25272D !important;
	transition: all 0.3s ease !important;
	border-radius: 6px !important;
}

.tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button:hover {
	background: #25272D !important;
	color: white !important;
	transform: translateY(-1px) !important;
}

/* fuentes */
.tribe-events-c-top-bar__datepicker-desktop.tribe-common-a11y-hidden {
	font-family: "EB Garamond", Sans-serif;
	font-size: 2.2rem;
	font-weight: 700;
	animation: datepickerFadeIn 0.6s ease-out 0.3s both;
}

@keyframes datepickerFadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* ===== DISTRIBUIDORAS ===== */
.elementor-widget-container {
	border-radius: 10px;
	transition: all 0.3s ease;
}

.elementor-icon-box-wrapper {
	padding: 15px;
	transition: all 0.3s ease;
}

.elementor-icon-box-wrapper:hover {
	transform: scale(1.02);
	background: rgba(85, 89, 92, 0.02);
	border-radius: 8px;
}

.elementor-icon-box-title {
	margin-top: -10px !important;
}

/* ===== COLECCIONES - ESTRUCTURA REAL ===== */



/* Cada widget Icon Box de colección */
.collections-section .elementor-widget-icon-box {
	height: 100%;
}

.collections-section .elementor-icon-box-wrapper {
	/* background: rgba(255, 255, 255, 0.9); */
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 15px;
	padding: 2rem !important;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
	transform: translateY(0);
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 0 !important;
}

/* Efecto hover en Icon Box */
.collections-section .elementor-icon-box-wrapper:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	background: rgba(255, 255, 255, 0.95);
}

/* Contenido del icon box */
.collections-section .elementor-icon-box-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.collections-section .elementor-icon-box-wrapper:hover .elementor-icon-box-content::before {
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 8px 30px rgba(85, 89, 92, 0.4);
}

/* Título de la colección */
.collections-section .elementor-icon-box-title {
	font-size: 1.4rem !important;
	font-weight: 700 !important;
	color: #111 !important;
	margin: 0 0 1rem 0 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.3px !important;
	transition: color 0.3s ease;
	flex-shrink: 0;
}

.collections-section .elementor-icon-box-title a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color 0.3s ease;
}

.collections-section .elementor-icon-box-wrapper:hover .elementor-icon-box-title,
.collections-section .elementor-icon-box-wrapper:hover .elementor-icon-box-title a {
	color: #55595c !important;
}

/* Descripción */
.collections-section .elementor-icon-box-description {
	font-size: 0.95rem !important;
	color: #666 !important;
	line-height: 1.6 !important;
	margin: 0 !important;
	transition: color 0.3s ease;
	flex-grow: 1;
	display: flex;
	align-items: center;
}

.collections-section .elementor-icon-box-wrapper:hover .elementor-icon-box-description {
	color: #333 !important;
}

/* Efecto de brillo al hover */
.collections-section .elementor-icon-box-wrapper::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transform: rotate(45deg);
	transition: all 0.6s ease;
	opacity: 0;
	pointer-events: none;
}

.collections-section .elementor-icon-box-wrapper:hover::after {
	animation: collectionsShine 0.6s ease-in-out;
}

/* Animaciones de entrada escalonada */
.collections-section .elementor-widget-icon-box:nth-child(1) {
	animation: collectionCardFadeIn 0.6s ease-out 0.1s both;
}

.collections-section .elementor-widget-icon-box:nth-child(2) {
	animation: collectionCardFadeIn 0.6s ease-out 0.2s both;
}

.collections-section .elementor-widget-icon-box:nth-child(3) {
	animation: collectionCardFadeIn 0.6s ease-out 0.3s both;
}

.collections-section .elementor-widget-icon-box:nth-child(4) {
	animation: collectionCardFadeIn 0.6s ease-out 0.4s both;
}

.collections-section .elementor-widget-icon-box:nth-child(5) {
	animation: collectionCardFadeIn 0.6s ease-out 0.5s both;
}


/* Responsive */
@media (max-width: 1024px) {
	.collections-section.e-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
		gap: 1.5rem !important;
	}
}

@media (max-width: 768px) {
	.collections-section {
		padding: 2rem 1rem !important;
	}

	.collections-section.e-grid {
		grid-template-columns: 1fr !important;
		gap: 1.5rem !important;
	}

	.collections-section .elementor-icon-box-wrapper {
		padding: 1.5rem !important;
	}

	.collections-section .elementor-icon-box-content::before {
		width: 60px;
		height: 60px;
		font-size: 1.5rem;
		margin-bottom: 1rem;
	}

	.collections-section .elementor-icon-box-title {
		font-size: 1.2rem !important;
	}

	.collections-section .elementor-icon-box-description {
		font-size: 0.9rem !important;
	}
}

/* Asegurar que el grid se comporte correctamente */
@media (min-width: 769px) {
	.collections-section.e-grid {
		align-items: stretch;
	}
}

/* ===== SECCIÓN MATERIALES - FICHAS DE LIBROS ===== */

/* Contenedor de materiales */
.materiales {
	border-radius: 12px;
	padding: 1.5rem 2rem 0 2rem;
	margin: 2rem 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.3s ease;
}

.materiales:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Enlaces */
.materiales a {
	color: #55595c !important;
	text-decoration: none !important;
	font-weight: 500 !important;
	transition: all 0.3s ease !important;
	display: inline-block;
	padding: 0.5rem 0;
}

.materiales a:hover {
	color: #000 !important;
	transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
	.materiales {
		padding: 1.5rem;
	}
}

/* ===== FORMULARIO DE CONTACTO ===== */

/* Contenedor del formulario */
.wpcf7-form {
	max-width: 600px;
	margin: 0 auto;
}

/* Ocultar labels */
.wpcf7-form label {
	display: block;
	margin-bottom: 1.5rem;
}

/* Inputs y textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%;
	padding: 1rem 1.2rem;
	background: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(85, 89, 92, 0.2);
	border-radius: 10px;
	font-size: 1rem;
	color: #333;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Placeholder */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
	color: #999;
	font-weight: 400;
}

/* Focus en inputs */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.5);
	border-color: #55595c;
	box-shadow: 0 4px 20px rgba(85, 89, 92, 0.15);
	transform: translateY(-2px);
}

/* Textarea específico */
.wpcf7-form textarea {
	min-height: 150px;
	resize: vertical;
}

/* Botón de envío */
.wpcf7-form input[type="submit"] {
	background: #000;
	color: white;
	padding: 1rem 2.5rem;
	border: none;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(85, 89, 92, 0.3);
	margin-top: 0.5rem;
	width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
	background: #000;
	transform: translateY(-3px);
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.wpcf7-form input[type="submit"]:active {
	transform: translateY(-1px);
}

/* Mensajes de validación */
.wpcf7-not-valid-tip {
	color: #d32f2f;
	font-size: 0.85rem;
	margin-top: 0.3rem;
}

.wpcf7-response-output {
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 8px;
	font-size: 0.95rem;
}

.wpcf7-mail-sent-ok {
	background: rgba(76, 175, 80, 0.1);
	border: 1px solid #4caf50;
	color: #2e7d32;
}

.wpcf7-validation-errors {
	background: rgba(244, 67, 54, 0.1);
	border: 1px solid #f44336;
	color: #c62828;
}

/* Responsive */
@media (max-width: 768px) {
	.wpcf7-form {
		padding: 0 1rem;
	}

	.wpcf7-form input[type="submit"] {
		width: 100%;
	}
}

/* ===== LOGO ANTIGUO EN HOVER ===== */

/* Contenedor del logo del footer */
.elementor-1499 .elementor-element-3902157 .elementor-widget-container {
	width: 160px;
	height: 90px;
	background-image: url("/wp-content/uploads/2025/05/logo.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* Ocultamos completamente la imagen real */
.elementor-1499 .elementor-element-3902157 img.wp-image-40 {
	display: none;
}

/* Hover */
.elementor-1499 .elementor-element-3902157 .elementor-widget-container:hover {
	background-image: url("/wp-content/uploads/2025/12/Logo-dado-inicial.png");
}

/* ===== BANNER INICIO ===== */

.hfe-post-card {
  background-image: url('/wp-content/uploads/2026/02/Correccio-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* texto y subrayado blanco */
.elementor-element-ad13398 .hfe-post-title a,
.elementor-element-ad13398 .hfe-post-meta,
.elementor-element-ad13398 .hfe-post-meta span,
.elementor-element-ad13398 .hfe-read-more {
  color: #fff !important;
}

.elementor-element-ad13398 a {
	background-image: linear-gradient(to right, #fff 0%, #fff 100%) !important;
}

.elementor-element-ad13398 a:hover {
	background-size: 100% 2px;
}

/* menor opacidad */
/* .hfe-post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
} */

.hfe-post-content {
  position: relative;
  z-index: 1;
}

/* ===== CARDS COLECCIONES ===== */

.collections-section .elementor-widget-icon-box:nth-child(1) .elementor-icon-box-wrapper {
	background: rgba(58, 178, 72, 0.2);
}

.collections-section .elementor-widget-icon-box:nth-child(2) .elementor-icon-box-wrapper {
	background: rgba(238, 98, 47, 0.2);
}

.collections-section .elementor-widget-icon-box:nth-child(3) .elementor-icon-box-wrapper {
	background: rgba(183, 59, 143, 0.2);
}

.collections-section .elementor-widget-icon-box:nth-child(4) .elementor-icon-box-wrapper {
	background: rgba(82, 98, 154, 0.2);
}

.collections-section .elementor-widget-icon-box:nth-child(5) .elementor-icon-box-wrapper {
	background: rgba(255, 28, 19, 0.2);
}

/* ===== CARDS COLECCIONES ===== */

.mbm-book-grid-div .mbdb_float_grid {
	width: 240px !important;
	height: auto !important;
}

.mbm-book-grid-div .mbdb_grid_image img {
	height: 260px !important;
	width: auto !important;
}

.mbm-book-grid-div .mbdb_grid_title {
	margin-top: 12px;
}

/* ===== CRÉDITOS ===== */

/* Grid: logo izquierda | iconos derecha | créditos abajo centrados */
.elementor-element-b816993 {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    position: relative !important;
    padding-bottom: 2rem !important;
}

/* Bloque de iconos: ocupa el espacio restante, alinea los iconos a la derecha */
.elementor-element-4ec61ae {
    position: static !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Romper cadena de posicionamiento para que .dado-credits se ancle a b816993 */
.elementor-element-17ebda3,
.elementor-element-17ebda3 > .elementor-widget-container {
    position: static !important;
}

.dado-credits {
    position: absolute;
    bottom: 0.6rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 0.3px;
}

.dado-credits a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dado-credits a:hover {
    color: #0a66c2;
}

.dado-credits svg {
    flex-shrink: 0;
    transition: color 0.3s ease;
}

/* ===== BUSCADOR ===== */

#dado-search-wrap {
	position: fixed;
	top: 34px;
	right: 28px;
	z-index: 9990;
	animation: fadeInDown 0.8s ease-out both;
}

#dado-search-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: #55595c;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
	width: 38px;
	height: 38px;
}

#dado-search-toggle:hover {
	color: #111;
	background: rgba(85, 89, 92, 0.1);
	transform: scale(1.1);
}

#dado-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 9991;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	padding-top: 15vh;
}

#dado-search-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

#dado-search-box {
	width: 100%;
	max-width: 620px;
	padding: 0 1.5rem;
}

#dado-search-inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-bottom: 2px solid #111;
	padding-bottom: 10px;
}

#dado-search-input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	color: #111;
	outline: none;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
}

#dado-search-input::placeholder {
	color: #bbb;
	font-weight: 300;
}

#dado-search-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}

#dado-search-close:hover {
	color: #111;
	transform: rotate(90deg);
}

#dado-search-results {
	margin-top: 1.5rem;
	max-height: 60vh;
	overflow-y: auto;
}

.dado-search-group {
	margin-bottom: 1rem;
}

.dado-search-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #aaa;
	font-weight: 600;
	margin: 0 0 0.5rem;
	padding: 0;
}

.dado-search-group ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dado-book-link {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.55rem 0.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	text-decoration: none !important;
	color: inherit;
	font-weight: normal !important;
	background: none !important;
	background-image: none !important;
	background-size: 0 0 !important;
	transition: transform 0.2s ease;
}

.dado-book-link:hover {
	transform: translateX(5px);
	background: none !important;
	background-image: none !important;
	background-size: 0 0 !important;
	color: inherit;
}

.dado-book-link img {
	width: 36px;
	height: 52px;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	flex-shrink: 0;
}

.dado-no-cover {
	display: block;
	width: 36px;
	height: 52px;
	background: #f0f0f0;
	border-radius: 3px;
	flex-shrink: 0;
}

.dado-book-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.dado-book-meta strong {
	font-size: 0.95rem;
	color: #111;
	font-weight: 600;
	line-height: 1.3;
}

.dado-book-meta span {
	font-size: 0.8rem;
	color: #777;
}

.dado-search-status {
	text-align: center;
	color: #aaa;
	font-size: 0.9rem;
	padding: 2.5rem 0;
	margin: 0;
}

/* Tablet: hamburguesa aparece en right: 0, ~40px ancho → lupa va a la izquierda */
@media (max-width: 1024px) {
	#dado-search-wrap {
		top: 20px;
		right: 60px;
	}
}

@media (max-width: 768px) {
	#dado-search-wrap {
		top: 18px;
		right: 60px;
	}

	#dado-search-overlay {
		padding-top: 10vh;
	}

	#dado-search-input {
		font-size: 1.2rem;
	}
}
