﻿.downloads-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 25px;
	margin-top: 30px;
}

.download-card {
	background: white;
	border-radius: 16px;
	padding: 35px 25px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
	border: 1px solid transparent;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

	.download-card:hover {
		transform: translateY(-8px);
		border-color: rgba(26, 177, 146, 0.3);
		box-shadow: 0 15px 30px rgba(26, 177, 146, 0.15);
		background: linear-gradient(to bottom right, #ffffff, #f0fdfa);
	}

.icon-box {
	width: 80px;
	height: 80px;
	background: #f0fdfa;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

.download-card:hover .icon-box {
	background: #1ab192;
	transform: scale(1.1) rotate(-5deg);
}

	.download-card:hover .icon-box i {
		color: white;
	}

.icon-box i {
	font-size: 2.5em;
	color: #1ab192;
	transition: color 0.3s;
}

/* Título y Descripción */
.doc-title {
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 10px;
	font-size: 1.2em;
	line-height: 1.3;
}

.doc-desc {
	font-size: 0.95em;
	color: #718096;
	margin-bottom: 0;
	line-height: 1.5;
}

/* Modal visor */
.modal-visor {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 10000;
	display: flex;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.3s ease;
}

.visor-container {
	background: white;
	width: 90%;
	height: 90%;
	max-width: 1200px;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.visor-header {
	background: #1ab192;
	color: white;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
}

	.visor-header h3 {
		margin: 0;
		font-size: 1.2rem;
	}

.btn-cerrar-visor {
	background: transparent;
	border: none;
	color: white;
	font-size: 1.5rem;
	cursor: pointer;
	transition: transform 0.2s;
}

	.btn-cerrar-visor:hover {
		transform: scale(1.2);
	}

.visor-body {
	flex: 1;
	background: #f3f4f6;
	position: relative;
}

#visor-iframe {
	width: 100%;
	height: 100%;
	display: block;
	background: white;
}

.visor-footer {
	background: white;
	padding: 15px 20px;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
}

.btn-download-modal {
	background: #1ab192;
	color: white;
	padding: 10px 20px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

	.btn-download-modal:hover {
		background: #169c81;
		color: white;
	}

.btn-close-modal {
	background: #f3f4f6;
	color: #555;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

	.btn-close-modal:hover {
		background: #e5e7eb;
	}

/* Animaciones y Mensajes */
.loading-message, .empty-message {
	grid-column: 1 / -1;
	text-align: center;
	padding: 50px;
	color: #888;
	background: #f9fafb;
	border-radius: 16px;
	border: 2px dashed #e5e7eb;
}

	.loading-message i {
		font-size: 3em;
		color: #1ab192;
		margin-bottom: 20px;
		animation: spin 1s linear infinite;
	}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* Responsive */
@media (max-width: 768px) {
	.downloads-grid {
		grid-template-columns: 1fr;
	}

	.visor-container {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}

	.download-card {
		padding: 25px;
	}
}
