/* --- Estilos para el popup de descripción de la galería --- */
.info-btn {
	background: none;
	border: none;
	color: var(--primary-color);
	font-size: 1.2rem;
	margin-left: 0.5rem;
	cursor: pointer;
	transition: color 0.2s;
	vertical-align: middle;
}
.info-btn:hover {
	color: var(--accent-color);
}
.desc-modal-backdrop {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(30,41,59,0.25);
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.2s;
}
.desc-modal {
	background: white;
	border-radius: 18px;
	box-shadow: 0 8px 32px rgba(30,41,59,0.18);
	max-width: 350px;
	width: 90vw;
	padding: 2rem 1.2rem 1.2rem 1.2rem;
	position: relative;
	animation: popupIn 0.25s cubic-bezier(.4,2,.6,1);
}
.desc-close-btn {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: var(--text-light);
	cursor: pointer;
	transition: color 0.2s;
}
.desc-close-btn:hover {
	color: var(--primary-color);
}
.desc-modal-content {
	text-align: left;
}
.desc-modal-date {
	color: var(--accent-color);
	font-weight: 600;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}
.desc-modal-description {
	color: var(--text-dark);
	font-size: 1.08rem;
	line-height: 1.5;
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes popupIn {
	from { transform: scale(0.95) translateY(20px); opacity: 0; }
	to { transform: scale(1) translateY(0); opacity: 1; }
}
/* --- Custom styles moved from index.html --- */
:root {
	--primary-color: #2563eb;
	--secondary-color: #64748b;
	--accent-color: #f59e0b;
	--text-dark: #1e293b;
	--text-light: #64748b;
	--bg-light: #f8fafc;
	--border-color: #e2e8f0;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	line-height: 1.6;
	color: var(--text-dark);
	background: var(--bg-light);
}

.hero-section {
	background: linear-gradient(135deg, var(--primary-color), #3b82f6);
	color: white;
	padding: 1rem 0 0.5rem 0;
	text-align: center;
}

.hero-title {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 0.2rem;
	text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.hero-subtitle {
	font-size: 0.95rem;
	font-weight: 300;
	opacity: 0.85;
	margin-bottom: 0;
}

.intro-section {
	padding: 0.7rem 0 0.5rem 0;
	background: white;
}

.intro-text {
	font-size: 0.97rem;
	line-height: 1.45;
	color: var(--text-light);
	max-width: 600px;
	margin: 0 auto;
}

.intro-text p {
	margin-bottom: 0.5rem;
}

.gallery-section {
	padding: 4rem 0;
}

.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	padding: 0;
}

.photo-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	cursor: pointer;
}

.photo-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.photo-card img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.photo-card:hover img {
	transform: scale(1.05);
}

.photo-info {
	padding: 1.5rem;
}

.photo-date {
	color: var(--accent-color);
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.photo-description {
	color: var(--text-dark);
	font-weight: 500;
	line-height: 1.5;
}

/* Lightbox Modal */
.modal-dialog {
	max-width: 90vw;
	max-height: 90vh;
}

.modal-content {
	border: none;
	border-radius: 16px;
	overflow: hidden;
}

.modal-body {
	padding: 0;
	position: relative;
}

.modal-image {
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: contain;
}

.modal-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0,0,0,0.8));
	color: white;
	padding: 2rem;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.modal:hover .modal-info {
	transform: translateY(0);
}

.modal-date {
	color: var(--accent-color);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.modal-description {
	font-size: 1.1rem;
	line-height: 1.6;
}

/* Navigation buttons */
.nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.9);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: var(--text-dark);
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 1000;
}

.nav-btn:hover {
	background: white;
	transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev {
	left: 20px;
}

.nav-btn.next {
	right: 20px;
}

.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255,255,255,0.9);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	color: var(--text-dark);
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 1000;
}

.close-btn:hover {
	background: white;
	transform: scale(1.1);
}

.loading-indicator {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.hero-title {
		font-size: 2.5rem;
	}
	.photo-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 1rem;
	}
	.nav-btn {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}
	.nav-btn.prev {
		left: 10px;
	}
	.nav-btn.next {
		right: 10px;
	}
}

@media (max-width: 576px) {
	.photo-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	.hero-section {
		padding: 2rem 0;
	}
	.intro-section, .gallery-section {
		padding: 2rem 0;
	}
}

/* Filter and search */
.filter-section {
	background: white;
	padding: 2rem 0;
	border-bottom: 1px solid var(--border-color);
}

.search-input {
	max-width: 400px;
	margin: 0 auto;
}

.year-filters {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.year-btn {
	padding: 0.5rem 1rem;
	border: 2px solid var(--border-color);
	background: white;
	color: var(--text-dark);
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
}

.year-btn:hover,
.year-btn.active {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}
@import url('reset.css');
body{
	/*background:#f7f7f7 url(../images/paper_2.png) repeat top left;*/
	color:#000;
	font-family: "Candara", 'Trebuchet MS', serif;
	font-size:16px;
	overflow-y:scroll;
}
a{
	color:#000;
	text-decoration:none;
}
.clr{
	clear:both;
}
.title{
	padding-bottom: 10px;	
	font-family:"Candara";
	font-size:50px;
	text-align: center;
}


/* codrops-demos */
p.codrops-demos{
	text-align:center;
	display: block;
	padding: 14px;
}
p.codrops-demos a,
p.codrops-demos a.current-demo,
p.codrops-demos a.current-demo:hover{
	display: inline-block;
	border: 1px solid #ddd;
	border-color: #ddd #aaa #aaa #ddd;
	padding: 4px 10px 3px;
	font-size: 13px;
	line-height: 18px;
	margin: 0px 3px;
	font-weight: 800;
	-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
	-moz-box-shadow:0px 1px 1px rgba(0,0,0,0.1);
	box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
	color: rgba(27,54,81,0.8);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	background: #fff;
	text-shadow: 0px 1px 1px rgba(255,255,255,0.9);
	background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 47%, #ededed 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(47%,#f6f6f6), color-stop(100%,#ededed));
	background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%);
	background: -o-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%);
	background: -ms-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%);
	background: linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%);
}
p.codrops-demos a:hover{
	background: #fff;
	color: #008dc1;
}
p.codrops-demos a:active{
	background: #e5e5e5;
	background: -moz-linear-gradient(top, #e5e5e5 0%, #ffffff 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(100%,#ffffff));
	background: -webkit-linear-gradient(top, #e5e5e5 0%,#ffffff 100%);
	background: -o-linear-gradient(top, #e5e5e5 0%,#ffffff 100%);
	background: -ms-linear-gradient(top, #e5e5e5 0%,#ffffff 100%);
	background: linear-gradient(top, #e5e5e5 0%,#ffffff 100%);
	-webkit-box-shadow: 0px 1px 1px rgba(255,255,255,0.9);
	-moz-box-shadow:0px 1px 1px rgba(255,255,255,0.9);
	box-shadow: 0px 1px 1px rgba(255,255,255,0.9);
}
p.codrops-demos a.current-demo,
p.codrops-demos a.current-demo:hover{
	color: #fff;
	background: #008dc1;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}