@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700;800&display=swap');

/* =============================================
   EDITORIAL APOSTOLADO MARIANO — SISTEMA CSS
   =============================================
   ÍNDICE:
   1. VARIABLES (Custom Properties)
   2. RESET Y BASE
   3. CABECERA (Header)
   4. BOTÓN VOLVER
   5. TÍTULOS DE SECCIÓN
   6. FICHAS DE LIBROS
   7. ENLACES PDF
   8. CONTENIDO DE PÁGINAS (Normas, Cookies)
   9. COLECCIONES (Index — tarjetas)
   10. COOKIE BANNER (Index)
   11. RESPONSIVE
   ============================================= */


/* =============================================
   1. VARIABLES
   ============================================= */

:root {
	/* — Colores principales — */
	--color-azul-oscuro: #0a1628;
	--color-azul-medio: #1a2744;
	--color-azul-claro: #1e3a5f;
	--color-dorado: #daa520;
	--color-dorado-claro: #f0c75e;
	--color-dorado-oscuro: #b8860b;

	/* — Colores de texto — */
	--color-texto: #000;
	--color-titulo: #00F;
	--color-blanco: #ffffff;

	/* — Colores de fondo — */
	--color-fondo-body: #c7cecb;
	--color-fondo-ficha: #ebecc7f1;
	--color-fondo-contenido: #d4d7d4;

	/* — Tipografía — */
	--font-serif: "Times New Roman", Times, serif;
	--font-sans: 'Inter', Arial, sans-serif;
	--font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

	/* — Sombras — */
	--sombra-header: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
	--sombra-boton: 0px 4px 6px rgba(0, 0, 0, 0.2);
	--sombra-tarjeta: 0 2px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
	--sombra-tarjeta-hover: 0 12px 32px rgba(10, 22, 40, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(218, 165, 32, 0.2);

	/* — Espaciado — */
	--espaciado-sm: 5px;
	--espaciado-md: 15px;
	--espaciado-lg: 20px;

	/* — Transiciones — */
	--transicion-rapida: 0.25s ease;
	--transicion-normal: 0.3s ease;
	--transicion-suave: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* =============================================
   2. RESET Y BASE
   ============================================= */

body {
	background-color: var(--color-fondo-body);
	font-family: var(--font-serif);
	font-size: 16px;
	text-align: justify;
}


/* =============================================
   3. CABECERA (Header)
   ============================================= */

.header {
	background: linear-gradient(135deg, var(--color-azul-oscuro) 0%, var(--color-azul-medio) 40%, var(--color-azul-claro) 100%);
	padding: 0;
	border-bottom: none;
	margin-bottom: 0;
	box-shadow: var(--sombra-header);
	position: relative;
	overflow: hidden;
}

/* Línea decorativa dorada superior */
.header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--color-dorado-oscuro), var(--color-dorado), var(--color-dorado-claro), var(--color-dorado), var(--color-dorado-oscuro));
	z-index: 2;
}

/* Resplandor radial sutil detrás del logo */
.header::after {
	content: '';
	position: absolute;
	top: -30%;
	right: -5%;
	width: 300px;
	height: 200%;
	background: radial-gradient(ellipse, rgba(218, 165, 32, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 32px 18px;
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
}

.header-brand {
	display: flex;
	align-items: center;
	gap: 20px;
}

.header-logo {
	width: 72px;
	height: auto;
	filter: drop-shadow(0 2px 8px rgba(218, 165, 32, 0.3));
	transition: transform var(--transicion-normal), filter var(--transicion-normal);
}

.header-logo:hover {
	transform: scale(1.05);
	filter: drop-shadow(0 4px 16px rgba(218, 165, 32, 0.5));
}

.header-title-group {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.header p {
	margin: 0;
}

.header-title {
	font-family: var(--font-display);
	font-size: 1.85em;
	font-weight: 800;
	color: var(--color-blanco);
	letter-spacing: 1.5px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	line-height: 1.15;
}

.header-subtitle {
	font-family: var(--font-sans);
	font-size: 0.72em;
	font-weight: 500;
	color: var(--color-dorado);
	letter-spacing: 4px;
	text-transform: uppercase;
	margin-top: 4px;
}

/* — Barra de contacto — */
.header-contact {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
	border-top: 1px solid rgba(218, 165, 32, 0.2);
	padding: 10px 32px;
	position: relative;
	z-index: 1;
}

.header-contact-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
}

.header-info {
	font-family: var(--font-sans);
	font-size: 0.82em;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.75);
	letter-spacing: 0.3px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.header-info-icon {
	font-size: 1em;
	opacity: 0.9;
}

.header-info-sep {
	color: rgba(218, 165, 32, 0.35);
	font-size: 1.2em;
	user-select: none;
}

.header-info a {
	color: var(--color-dorado);
	text-decoration: none;
	font-weight: 500;
	transition: color var(--transicion-rapida), text-shadow var(--transicion-rapida);
}

.header-info a:hover {
	color: var(--color-dorado-claro);
	text-shadow: 0 0 12px rgba(240, 199, 94, 0.3);
}

/* No flotar imágenes dentro del header */
.header img {
	float: none;
}

.main-content {
	background-color: var(--color-fondo-contenido);
	padding: var(--espaciado-lg);
	min-height: calc(100vh - 160px);
}


/* =============================================
   4. BOTÓN VOLVER
   ============================================= */

.cartel-volver {
	position: fixed;
	top: 20px;
	left: 20px;
	background-color: #007bff;
	color: white;
	padding: 12px 20px;
	border-radius: 25px;
	text-decoration: none;
	font-weight: bold;
	box-shadow: var(--sombra-boton);
	z-index: 9999;
	transition: background-color var(--transicion-normal);
}

.cartel-volver:hover {
	background-color: #0056b3;
}


/* =============================================
   5. TÍTULOS DE SECCIÓN
   ============================================= */

.cabeza {
	color: var(--color-titulo);
	font-family: var(--font-serif);
	font-weight: bold;
	font-size: 30px;
	text-align: center;
	display: block;
}


/* =============================================
   6. FICHAS DE LIBROS
   ============================================= */

/* Marco contenedor de cada ficha */
.ficha-marco {
	width: auto;
	margin-top: var(--espaciado-sm);
	background-color: var(--color-fondo-ficha);
	border: double;
	height: auto;
	overflow: hidden;
}

/* Título de la ficha (etiquetas: TITULO, REF, ISBN, etc.) */
.ficha-titu {
	color: var(--color-titulo);
	font-family: var(--font-serif);
	font-size: 20px;
	font-weight: bold;
	text-align: left;
}

/* Datos de la ficha (valores de TITULO, REF, ISBN, etc.) */
.ficha-dato {
	color: var(--color-texto);
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: bold;
	text-align: left;
}

/* Notas descriptivas de la ficha */
.ficha-nota {
	color: var(--color-texto);
	font-family: var(--font-serif);
	font-size: 18px;
	text-align: left;
}

/* Contenedor de la foto del libro */
.ficha-foto {
	width: 115px;
	float: left;
	margin: 5px 2px 5px 15px;
	background-color: var(--color-fondo-ficha);
	overflow: visible;
}

/* Contenedor del icono PDF */
.ficha-pdf {
	width: 60px;
	float: left;
	margin: 5px 2px 5px 5px;
	background-color: var(--color-fondo-ficha);
	overflow: visible;
}

/* Zona de contenido del libro (texto, botón comprar) */
.ficha-libro {
	width: auto;
	font-size: 20px;
	float: inherit;
	margin: 5px 5px 5px 5px;
	text-align: left;
	overflow: visible;
}


/* =============================================
   7. ENLACES PDF
   ============================================= */

/* Reemplazo de <FONT SIZE=5> para los enlaces a PDFs adicionales */
.ficha-pdf-links {
	font-size: 2em;
	font-weight: bold;
}

.ficha-pdf-links a {
	color: var(--color-titulo);
	text-decoration: none;
	padding: 2px 4px;
}

.ficha-pdf-links a:hover {
	text-decoration: underline;
}


/* =============================================
   8. CONTENIDO DE PÁGINAS (Normas, Cookies)
   ============================================= */

/* Reemplazo de las clases genéricas .style2 a .style9 
solo se usa style2
   usadas en cookies.htm y normas_de_venta.htm */

.style2 {
	font-size: x-large;
}

.style3 {
	font-size: x-large;
	font-weight: bold;
}

.style4 {
	vertical-align: baseline;
}

.style5 {
	font-size: large;
	font-weight: bold;
}

.style6 {
	font-size: large;
	text-align: center;
}

.style7 {
	font-size: large;
	font-weight: bold;
	width: 24%;
	text-align: center;
}

.style8 {
	text-align: center;
}

.style9 {
	width: 38%;
}


/* =============================================
   9. COLECCIONES (Index — tarjetas)
   ============================================= */

/* Grid de colecciones */
.colecciones-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 28px 22px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 10px 20px 40px;
}

/* Fila especial de 3 columnas (destacados) */
.colecciones-grid.grid-3 {
	grid-template-columns: repeat(3, 1fr);
	max-width: 700px;
}

/* Separador decorativo entre grupos */
.colecciones-separador {
	max-width: 1100px;
	margin: 10px auto 24px;
	border: none;
	height: 1px;
	background: linear-gradient(90deg, transparent, #c9b97a 30%, var(--color-dorado) 50%, #c9b97a 70%, transparent);
	opacity: 0.5;
}

/* — Tarjeta de colección — */
.col-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	background: linear-gradient(165deg, #ffffff 0%, #f8f7f2 60%, #f0ede4 100%);
	border: 1px solid rgba(201, 185, 122, 0.35);
	border-radius: 12px;
	padding: 16px 10px 14px;
	position: relative;
	overflow: hidden;
	box-shadow: var(--sombra-tarjeta);
	transition: transform var(--transicion-suave),
		box-shadow 0.4s ease,
		border-color 0.4s ease;
	cursor: pointer;
}

/* Acento superior dorado */
.col-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 20%;
	right: 20%;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--color-dorado), var(--color-dorado-claro), var(--color-dorado), transparent);
	border-radius: 0 0 4px 4px;
	opacity: 0;
	transition: opacity 0.4s ease, left 0.4s ease, right 0.4s ease;
}

.col-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--sombra-tarjeta-hover);
	border-color: rgba(218, 165, 32, 0.5);
}

.col-card:hover::before {
	opacity: 1;
	left: 10%;
	right: 10%;
}

/* Contenedor de la imagen */
.col-card-img {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
	line-height: 0;
	transition: box-shadow 0.4s ease;
}

.col-card:hover .col-card-img {
	box-shadow: 0 6px 20px rgba(0, 51, 102, 0.2);
}

/* Tamaño de las imágenes */
.col-card-img img {
	display: block;
	width: 104px;
	height: 148px;
	object-fit: cover;
	border-radius: 6px;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		filter 0.4s ease;
}

.col-card:hover .col-card-img img {
	transform: scale(1.05);
	filter: brightness(1.06) contrast(1.02);
}

/* Título de la colección */
.col-card-title {
	margin-top: 12px;
	font-family: var(--font-sans);
	font-size: 0.72em;
	font-weight: 600;
	color: var(--color-azul-medio);
	text-align: center;
	letter-spacing: 0.4px;
	line-height: 1.3;
	text-transform: uppercase;
	transition: color var(--transicion-normal);
	max-width: 130px;
}

.col-card:hover .col-card-title {
	color: var(--color-dorado-oscuro);
}

/* Animación de entrada */
.col-card {
	opacity: 0;
	transform: translateY(30px);
}

.col-card.visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		box-shadow 0.4s ease,
		border-color 0.4s ease;
}

/* Título de sección principal */
.colecciones-titulo {
	text-align: center;
	font-family: var(--font-display);
	font-size: 2.6em;
	font-weight: 800;
	color: var(--color-azul-medio);
	letter-spacing: 2px;
	margin: 10px 0 6px;
	position: relative;
}

.colecciones-titulo::after {
	content: '';
	display: block;
	width: 80px;
	height: 3px;
	background: linear-gradient(90deg, var(--color-dorado-oscuro), var(--color-dorado-claro), var(--color-dorado-oscuro));
	margin: 12px auto 0;
	border-radius: 2px;
}

/* Enlace al listado completo */
.listado-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1e5631;
	font-family: var(--font-sans);
	font-size: 1.15em;
	font-weight: 600;
	text-decoration: none;
	padding: 10px 28px;
	border: 2px solid rgba(30, 86, 49, 0.2);
	border-radius: 8px;
	background: rgba(30, 86, 49, 0.04);
	transition: all var(--transicion-normal);
	margin: 8px 0 20px;
}

.listado-link:hover {
	background: rgba(30, 86, 49, 0.1);
	border-color: rgba(30, 86, 49, 0.4);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(30, 86, 49, 0.12);
}

/* Subtítulos de grupo */
.grupo-titulo {
	text-align: center;
	font-family: var(--font-sans);
	font-size: 0.85em;
	font-weight: 500;
	color: #8a7a5a;
	text-transform: uppercase;
	letter-spacing: 3px;
	margin: 0 0 18px;
}


/* =============================================
   10. COOKIE BANNER (Index)
   ============================================= */

#cookie-banner {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #003366;
	color: var(--color-blanco);
	font-family: var(--font-serif);
	font-size: 14px;
	padding: 14px 20px;
	box-sizing: border-box;
	z-index: 9999;
	border-top: 3px solid #00cccc;
	box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.4);
}

#cookie-banner .cookie-inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

#cookie-banner p {
	margin: 0;
	flex: 1 1 300px;
	line-height: 1.5;
}

#cookie-banner a {
	color: #00ffff;
}

#cookie-banner .cookie-btns {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

#cookie-aceptar {
	background-color: #00cc66;
	color: var(--color-blanco);
	border: none;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	border-radius: 4px;
}

#cookie-aceptar:hover {
	background-color: #009944;
}

#cookie-rechazar {
	background-color: transparent;
	color: #aaddff;
	border: 1px solid #aaddff;
	padding: 8px 18px;
	font-size: 14px;
	cursor: pointer;
	border-radius: 4px;
}

#cookie-rechazar:hover {
	background-color: rgba(255, 255, 255, 0.1);
}


/* =============================================
   11. RESPONSIVE
   ============================================= */

/* — Header responsive — */
@media (max-width: 768px) {
	.header-top {
		flex-direction: column;
		text-align: center;
		padding: 18px 16px 14px;
		gap: 12px;
	}

	.header-brand {
		flex-direction: column;
		gap: 12px;
	}

	.header-title {
		font-size: 1.4em;
	}

	.header-subtitle {
		letter-spacing: 2px;
		font-size: 0.65em;
	}

	.header-contact {
		padding: 8px 16px;
	}

	.header-contact-inner {
		flex-direction: column;
		gap: 6px;
	}

	.header-info-sep {
		display: none;
	}
}

/* — Colecciones responsive — */
@media (max-width: 900px) {
	.colecciones-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px 16px;
	}

	.colecciones-grid.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.colecciones-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px 12px;
	}

	.colecciones-grid.grid-3 {
		grid-template-columns: repeat(2, 1fr);
		max-width: 100%;
	}

	.colecciones-titulo {
		font-size: 1.8em;
	}
}