﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #FFF3E0 !important;
}

.secGaleria {
    margin-top: 5vw;
    margin-top: 5vw;
}

.gallery {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #333;
}

.section-galeria {
    margin-bottom: 40px;
}

h2 {
    color: #814b08;
    border-bottom: 2px solid #ddb27c70;
    padding-bottom: 10px;
}

.photos {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.photo {
    width: calc(33.33% - 10px);
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo:hover {
    transform: scale(1.05);
}

    .photo img {
        width: 100%;
        display: block;
        max-height: 270px;
    }

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .photos {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .photos {
        grid-template-columns: 1fr;
    }
}


/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    width: 70% !important;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    margin-top: 10vh;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.gallery-title {
    text-align: center;
    margin-top: 20px;
    font-size: 2.5rem;
    font-weight: 600;
    color: #8b7355; /* Marrón pastel */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #d9bfa3, #f0e2d4, #d9bfa3); /* Tonos pastel */
    margin: 10px auto 0;
    border-radius: 2px;
}

.img-logo-mini {
    position: fixed;
    width: 30vh;
    left: 0;
    top: 0;
    z-index: 0;
}

.img-galeria {
    width: 100%;
    cursor: pointer;
}

.back-home {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    position: absolute;
    right: 5vw;
    top: 0px;
}

.img-flecha {
    width: 40px;
}

.text-back {
    font-family: system-ui;
    font-size: 2.5vh;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #4da10070;
    color: #39570c;
}

@media (max-width:992px) {
    .gallery-title {
        font-size: 4.5vh;
        margin-top: 100px;
        z-index: 2;
        position: static;
    }

    .gallery-title::after {
        width: 50%;
        height: 8px;
    }

    .img-logo-mini {
        width: 30vw;
    }

    h2 {
        font-size: 2.5vh;
        border-bottom: 4px solid #ddb27c70;
    }

    .photos {
        flex-direction: column;
        align-items: center;
    }

    .photo {
        width: 90%;
    }

    .back-home {
        top: -35px;
        right: 5vw;
        gap: 5px;
    }

    .img-flecha {
        width: 6vh;
    }

    .text-back {
        font-size: 3vh;
    }

    .photo img {
        max-height: 600px !important;
    }
}

/*Sección Construcción*/

.ttl-const {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #8b7355;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 4vw;
}

.section-proceso {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: 20px;
}

.etapa {
    flex-basis: calc(33.333% - 20px);
    min-width: 250px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.etapa:hover {
    transform: translateY(-5px);
}

.etapa img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.etapa-contenido {
    padding: 20px;
}

.etapa h2 {
    color: #2c3e50;
    margin-top: 0;
}

.etapa p {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .etapa {
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .etapa {
        flex-basis: 100%;
    }
}

@media (max-width:992px) {
    .ttl-const {        
        margin-top: 20vw;
    }
}

@media (max-width: 992px) {
    .section-proceso {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .etapa {
        flex: 0 0 90%;
        scroll-snap-align: start;
    }

    .carrusel-controles {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .carrusel-control {
        background-color: #2c3e50;
        color: white;
        border: none;
        padding: 10px 15px;
        margin: 0 5px;
        border-radius: 5px;
        cursor: pointer;
    }

    .etapa img {
        height: auto;
    }
}

.inv {
    visibility: hidden;
}