


.menuGaleriaSelect { display: none;}

.menuGaleriaP { width: 90%; max-width: 1800px; margin: auto auto 30px auto; }
.menuGaleriaP .menuCont { width: 100%; display: flex;}
.menuGaleriaP .menuCont div { height: 300px; flex-grow: 1; border: 1px solid white;}
.menuGaleriaP .menuCont div figure { width: 100%; height: 80%;}
.menuGaleriaP .menuCont div figure img { width: 100%; height: 100%; object-fit: cover;}
.menuGaleriaP .menuCont div a { display: flex; place-items: center; justify-content: center; width: 100%; height: 20%; background-color: rgba(0,0,0,0.7); color: white; text-align: center; text-decoration: none; transition: 0.3s; }
.menuGaleriaP .menuCont div a:hover { background-color: rgba(0,0,0,0.8); color: yellow;}

@media (min-width:768px) and (max-width:1024px) {
	.menuGaleriaP .menuCont { flex-direction: column;}
}
@media (min-width:100px) and (max-width:767px) {
	.menuGaleriaP .menuCont { flex-direction: column;}
}


.menuGaleria { width: 90%; max-width: 1800px; margin: auto auto 30px auto; }
.menuGaleria .menuCont { width: 100%; display: flex;}
.menuGaleria .menuCont div { height: 40px; flex-grow: 1; border: 1px solid white;}
/* .menuGaleria .menuCont div a { display: flex; place-items: center; justify-content: center; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); color: white; text-align: center; text-decoration: none; transition: 0.3s; } */
.menuGaleria .menuCont div a { 
	display: flex; 
	place-items: center; 
	justify-content: center; 
	width: 100%; 
	height: 100%; 
	background-color: #f3f3f3; 
	color: black; 
	text-align: center; 
	text-decoration: none; 
	transition: 0.3s; 
	border-left: 1px solid gray; 
	border-right: 1px solid gray; 
}
.menuGaleria .menuCont div a:hover { background-color: rgba(0,0,0,0.8); color: white;}

/* .menuGaleria .menuActivo { background-color: rgba(0,0,0,0.9); color: yellow; display: grid; place-content: center;} */
.menuGaleria .menuActivo { background-color: #005085; color: white; display: grid; place-content: center; border-left: 1px solid gray; border-right: 1px solid gray;}



@media (max-width:820px) {

	.menuGaleria { display: none;}

	.menuGaleriaSelect { display: block; width: 90%; margin: auto auto 30px auto; overflow-y: auto; background-color: rgba(0,0,0,0.7); }

	.menuGaleriaSelect h3 { width: 100%; background-color: white; text-align: center; padding: 10px 0; box-sizing: border-box;}

	.menuGaleriaSelect__list { list-style: none; }

	.menuGaleriaSelect__link {
    	color: yellow;
    	padding: 10px;
    	box-sizing: border-box;
    	text-decoration: none;

    	display: flex;
    	align-items: center;
    	gap: 10px;

    	position: relative;
    	background-color: var(--bg, transparent);
	}

	.menuGaleriaSelect__list:has( :checked ){
    	--rows: 1fr;
    	--rotate: rotate(180deg);

    	/* --bg: gray; */
    	--bg: #005085;
	}

	.menuGaleriaSelect__check {
    	position: absolute;
    	width: 100%;
    	height: 100%;
    	opacity: 0;
    	cursor: pointer;
    	margin-left: -10px;
	}

	.menuGaleriaSelect__arrow {
    	margin-left: auto;
    	transform: var(--rotate, 0);
    	transition: 0.2s transform;
	}

	.menuGaleriaSelect__cont {
    	display: grid;
    	grid-template-rows: var(--rows, 0fr);
    	transition: .3s grid-template-rows;
	}

	.menuGaleriaSelect__sub {
    	overflow: hidden;
	}

	.menuGaleriaSelect__li {
    	width: 90%;
    	list-style: none;
    	margin-left: auto;  
	}

	.menuGaleriaSelect__anchor {
    	padding: 10px 0;
    	box-sizing: border-box;
    	display: block;
    	color: white;
    	text-decoration: none; 
	}

	/* .menuGaleriaSelect .menuActivoCelular { height: 60px; background-color: rgba(0,0,0,0.9); color: yellow; display: grid; place-content: center;} */
	.menuGaleriaSelect .menuActivoCelular { height: 60px; background-color: #005085; color: yellow; display: grid; place-content: center;}

}


/* galeria */

.galeriaVdos {
	width: 90%; max-width: 1800px; margin: 0 auto 30px auto;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}

.tarjeta-imagen {
	position: relative;
    background-color: white;
    /* border-radius: 8px; */
	border: 1px solid lightgray;
    overflow: hidden;
    /* box-shadow: 0 4px 6px rgba(0,0,0,0.1); */
    transition: transform 0.3s ease;
	transition: 0.5s;
}

/* .tarjeta-imagen:hover {
    transform: translateY(-15px);
	cursor: pointer;
	background-color: lightgray;
	filter: grayscale(0.9);
} */

.tarjeta-imagen img {
    width: 100%;
    height: 200px;
    object-fit: cover;
	/* cursor: pointer; */
}

.info-imagen {
    padding: 15px;
}

.info-imagen h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.info-imagen p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}


@media (min-width:100px) and (max-width:767px) {
	.galeriaVdos { grid-template-columns: 1fr;}
}


@media (min-width:768px) and (max-width:1024px) {
	.galeriaVdos { grid-template-columns: repeat(3, 1fr);}
}


/* modal */
/* El contenedor principal (Modal) */
#modalGaleria {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
	z-index: 13;
}

#modalGaleria.activo {
    opacity: 1;
    pointer-events: auto;
}

/* Oculta todos los contenedores de imagenes por defecto */
.galeriaSlider {
    display: none;
    max-width: 80%;
    max-height: 80vh;
    animation: fadeSlide 0.4s ease; /* Efecto suave al cambiar de imagen */
}

/* Solo muestra la imagen que tenga la clase activo */
.galeriaSlider.slide-activo {
    display: block;
}

.galeriaSlider img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

/* Estilos para las flechas de navegacion */
.btn-nav-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
    transition: background 0.3s;
}

.btn-nav-slider:hover {
    background: rgba(255, 255, 255, 0.4);
}

.btn-prev { left: 30px; }
.btn-next { right: 30px; }


.btnModal {  
	position: absolute; top: 0; right: 0;
	width: 100%; height: 200px;
	font-size: 40px; text-align: right; padding: 5px 10px; box-sizing: border-box; text-shadow: 0px 0px 6px black;
	color: yellow; background-color: rgba(0, 0, 0, 0.0); cursor: pointer;
	transition: 0.5s;
}
.btnModal:hover { background-color: rgba(0, 0, 0, 0.5); color: #EC812C;  }

/* Boton de cerrar */
.btnMclose {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    cursor: pointer;
    background: #ff3333;
    padding: 10px 20px;
    border-radius: 5px;
}


/* Animacion opcional para el cambio de slide */
@keyframes fadeSlide {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}














