@import url('https://fonts.googleapis.com/css2?family=Boldonse&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

body { font-family: "Plus Jakarta Sans", sans-serif; overflow-x: hidden; }

.modulo.fotogaleria.turismo h3 { color: #fff; display: inline-block; font-size: 18px; }
.modulo.fotogaleria.turismo h3::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background-color: #222;
    margin-top: 4px;
}

.modulo { display: block; margin: 0px; box-sizing: border-box; color: #fff; }

/* swiper */
.swiper { width: 100%; height: auto; }
.swiper-slide { display: flex; justify-content: center; align-items: center; aspect-ratio: 1 / 1; overflow: hidden; position: relative;}
.swiper-slide img { width: 100%; height: 100%; cursor: pointer; border-radius: 10px; transition: transform 0.3s ease; object-fit: cover; }
.swiper-slide img:hover { transform: scale(1.03); }
.swiper-button-next,.swiper-button-prev { color: #fff; }
.swiper-button-next, .swiper-button-prev { color: #fff; background-color: black; width: 40px; height: 40px; border-radius: 50px; border: 2px solid #fff; }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 20px; }
.desc-thumbs { position: absolute; background-color: rgba(34, 34, 34, 0.7); padding: 10px 16px; bottom: 0; border-radius: 5px; }

/* Modal base */
.modal { display: flex; position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.modal.active { opacity: 1; pointer-events: auto; }
.modal-content { position: relative; width: 70%; transform: scale(0.95); transition: transform 0.3s ease; background-color: transparent; }
.modal.active .modal-content { transform: scale(1); }
.modal img { width: auto; border-radius: 10px; opacity: 0; transition: opacity 0.5s ease; }
.modal.active img { opacity: 1; }
.modal-info { color: #fff; margin-top: 10px; text-align: center; transition: opacity 0.3s ease 0.2s; position: absolute; bottom: 0; background-color: hwb(0deg 0% 100% / 60%); padding: 10px; width: 100%; }
.modal.active .modal-info { opacity: 1; }
.modal-buttons { position: absolute; top: 10px; right: 10px; display: flex; gap: 10px; z-index: 1; }
.modal-buttons button { padding: 8px 12px; background: #ffffff44; border: none; border-radius: 5px; color: white; cursor: pointer; font-size: 16px; transition: background 0.3s ease; }
.modal-buttons button:hover { background: #ffffff88; }
.modal-nav { display: flex; justify-content: space-between; position: absolute; top: 50%; width: 100%; transform: translateY(-50%); padding: 0; }
.modal-nav button { background: none; border: 2px solid #fff; font-size: 30px; color: white; cursor: pointer; transition: opacity 0.3s ease; background-color: hwb(0deg 0% 100% / 41.96%); width: 40px; height: 40px; text-align: center; display: flex ; justify-content: center; align-items: center; border-radius: 50px; margin: 0 5px; }
.modal-nav button:hover { opacity: 1; }
.control-grup-btn { color: #fff; position: absolute; right: 4%;}
.btn-nav-gallery { width: 45px; height: 45px; border: 1px solid #fff; padding: 0; margin: 5px 0; border-radius: 50px; background-color: white; transition: 0.3s ease-in-out; transform: scale(0.9); }
.btn-nav-gallery:hover { transform: scale(1); }

.modal-info.hidden {
    display: none;
}

html:fullscreen,
body:fullscreen,
.modal-content:fullscreen {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content:fullscreen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#imageModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#imageModal.active {
    display: flex;
}

.modal-content {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#modalImg {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain; /* << Esta línea es clave */
    transition: opacity 0.4s ease;
}



/* Media Query */
@media only screen and (max-width: 500px) {
    .control-grup-btn { position: absolute; top: 5%; display: flex ; justify-content: center; align-items: center; left: 50%; transform: translate(-50%, -50%); z-index: 999; }
    .btn-nav-gallery { margin: 5px; }
    .modal-content { width: 100%; }
    .modal-info { bottom: 0%; }
    .modulo { margin: 0; }
}


