@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: white;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.container-all {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 60px;
    background: white;
}

.green,
.article,
.letrita,
.letri,
.centro {
    text-align: center;
}

.title {
    font-size: 30px;
    margin-bottom: 60px;
    color: #1a237e;
}

.sub-title {
    font-size: 18px;
    font-weight: 300;
}

.container-all img {
    width: 300px;
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.container-all p {
    font-size: 18px;
    font-weight: 300;
    margin-top: 5px;
}

p {
    text-align: left;
}

.caption h3,
h2,
h3,
h5 {
    text-shadow: 1px 1px 1px #000;
}

.tit {
    font-size: 2vw;
    text-shadow: none;
}

.video-youtube,
.map-responsive,
.street-responsive {
    border: 1px solid black;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    width: 70%;
    margin: auto;
    overflow: hidden;
}

.video-youtube iframe,
.map-responsive iframe,
.street-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.obra {
    font-size: 3vw;
    font-family: Arial, Helvetica, sans-serif;
}

.cursiva {
    font-style: italic;
}

.verde {
    color: green;
}

.justificado {
    text-align: justify;
}

.Alinear_Flex {
    display: flex;
    justify-content: center;
}

.grande {
    font-size: 30px;
}

.referencias {
    color: green;
}

.obras {
    color: rgb(28, 0, 128);
}

.font {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    color: #000;
}

/* GALERÍA LIGHTBOX INTEGRADA */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery__item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery__img:hover {
    transform: scale(1.05);
}

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.gallery-lightbox.hidden {
    display: none;
}

.gallery-lightbox__modal {
    max-width: 95%;
    max-height: 95%;
}

.gallery-lightbox__img-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__img {
    width: 100%;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: auto;
    border: 5px solid black;
    box-sizing: border-box;
    border-radius: 8px;
}

.gallery-lightbox__control {
    position: absolute;
    cursor: pointer;
    user-select: none;
    z-index: 1;
}

.icon-back,
.icon-next {
    color: white;
    font-size: 2rem;
    background: none;
    padding: 0;
    border: none;
    text-shadow: 0 0 4px black;
}

.icon-back {
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.icon-next {
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.icon-close--desktop {
    display: inline;
    font-size: 2rem;
    color: black;
    top: 10px;
    right: 20px;
}

.icon-close--mobile {
    display: none;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-lightbox__img {
        border: 5px solid white;
    }

    .icon-close--desktop {
        display: none;
    }

    .icon-close--mobile {
        display: inline;
        position: absolute;
        top: 0.5rem;
        right: 0.8rem;
        font-size: 1.5rem;
        color: black;
        background: transparent;
        border: none;
        z-index: 2;
    }

    .icon-back,
    .icon-next {
        font-size: 2rem;
        background: none;
        padding: 0;
        border: none;
        text-shadow: 0 0 4px black;
    }
}

.hover-card {
    background-color: #fafafa;
    border: 1px solid #ddd;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 transparent;
}

.hover-card:hover {
    background-color: #ffffff;
    border-color: #1976d2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

@media (hover: hover) and (pointer: fine) {
    .hover-card:hover {
        background-color: #ffffff;
        border-color: #1976d2;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
}

/* Transición suave al cargar la página */
body {
    opacity: 0;
    /* invisible al inicio */
    transition: opacity 0.5s ease-in;
    /* efecto de aparición */
}

body.loaded {
    opacity: 1;
    /* visible cuando se aplica la clase */
}