/* ===== Frontend: tarjetas de animales (shortcodes) ===== */
.animales-filtros {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 24px;
	padding: 16px;
	background: #f8f8f8;
	border-radius: 8px;
}

.animales-filtro-campo {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
}

.animales-filtro-campo label {
	font-weight: 600;
	color: #333;
}

.animales-filtro-campo input,
.animales-filtro-campo select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	min-width: 160px;
}

.animales-filtro-botones {
	display: flex;
	align-items: center;
	gap: 12px;
}

.animales-filtro-boton {
	padding: 9px 18px;
	border: none;
	border-radius: 6px;
	background: #2c5f2d;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.animales-filtro-boton:hover {
	background: #234b24;
}

.animales-filtro-quitar {
	font-size: 13px;
	color: #b32d2e;
	text-decoration: underline;
}

.animales-sin-resultados {
	color: #666;
}

.animales-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.animales-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.animales-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.animales-card-img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4f4f4;
}

.animales-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.animales-card-img-vacia {
	background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 10px, #ececec 10px, #ececec 20px);
}

.animales-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.animales-card-nombre {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.animales-card-meta {
	font-size: 13px;
	color: #666;
}

.animales-card-descripcion {
	margin: 0;
	font-size: 14px;
	color: #444;
	flex: 1;
}

.animales-card-fecha-adopcion {
	font-size: 13px;
	color: #666;
}

.animales-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.animales-badge-reservado {
	background: #fff3cd;
	color: #664d03;
}

/* ===== Frontend: ficha individual ===== */
.animales-ficha {
	max-width: 960px;
	margin: 0 auto;
}

.animales-ficha-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.animales-ficha-titulo {
	margin: 0;
}

.animales-ficha-id {
	font-size: 0.65em;
	font-weight: 400;
	color: #888;
	margin-left: 8px;
}

.animales-ficha-fecha-adopcion {
	font-size: 13px;
	color: #666;
}

.animales-ficha-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 720px) {
	.animales-ficha-grid {
		grid-template-columns: 1.3fr 1fr;
		align-items: start;
	}
}

.animales-ficha-imagen {
	position: relative;
	width: 100%;
	padding-top: 75%; /* hueco de proporción 4:3 fija, calculado solo a partir del ancho */
	background: #f4f4f4;
	border-radius: 8px;
	overflow: hidden;
}

.animales-ficha-imagen img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 8px;
	display: block;
}

.animales-ficha-galeria {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 8px;
	margin-top: 10px;
}

.animales-ficha-galeria-item {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: none;
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
}

.animales-ficha-galeria-item:hover {
	border-color: #ccc;
}

.animales-ficha-galeria-item.is-active {
	border-color: #2271b1;
}

.animales-ficha-galeria-item img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.animales-ficha-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #eee;
}

.animales-ficha-lista li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	font-size: 15px;
}

.animales-ficha-dato-label {
	color: #888;
	font-weight: 600;
}

.animales-ficha-descripcion,
.animales-ficha-historia,
.animales-ficha-caracteristicas {
	margin-top: 28px;
}

.animales-ficha-caracteristicas ul {
	margin: 0;
	padding-left: 20px;
}

/* Badges por estado (ficha) */
.animales-badge-disponible {
	background: #d1e7dd;
	color: #0a3622;
}

.animales-badge-adoptado {
	background: #cfe2ff;
	color: #084298;
}

/* ===== Frontend: "En su memoria" (homenajes) ===== */
.animales-homenaje-lista {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.animales-homenaje-tarjeta {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.animales-homenaje-img {
	flex: 0 0 260px;
	width: 260px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f4f4f4;
}

.animales-homenaje-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.animales-homenaje-img-vacia {
	background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 10px, #ececec 10px, #ececec 20px);
}

.animales-homenaje-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 24px 28px;
}

.animales-homenaje-nombre {
	margin: 0;
	font-size: 24px;
}

.animales-homenaje-texto {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #555;
	white-space: pre-line;
}

@media (max-width: 600px) {
	.animales-homenaje-tarjeta {
		flex-direction: column;
	}
	.animales-homenaje-img {
		flex: none;
		width: 100%;
		aspect-ratio: 4 / 3;
	}
	.animales-homenaje-body {
		padding: 18px 20px;
	}
}

/* ===== Frontend: Tienda ===== */
.animales-tienda-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.animales-tienda-tarjeta {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.animales-tienda-tarjeta:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.animales-tienda-img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4f4f4;
}

.animales-tienda-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.animales-tienda-img-vacia {
	background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 10px, #ececec 10px, #ececec 20px);
}

.animales-tienda-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.animales-tienda-nombre {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
}

.animales-tienda-precio {
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	color: #2c5f2d;
}

.animales-tienda-descripcion {
	margin: 0;
	font-size: 14px;
	color: #444;
	flex: 1;
}

.animales-tienda-boton {
	display: inline-block;
	margin-top: 6px;
	padding: 8px 16px;
	background: #2c5f2d;
	color: #fff;
	text-decoration: none;
	text-align: center;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
}

.animales-tienda-boton:hover {
	background: #234b24;
	color: #fff;
}
