@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&family=Lilita+One&family=Spicy+Rice&display=swap');

body {
    margin: 0;
    background-image: url("../Img/fondo.JPG");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: bottom;
    color: black;
    font-family: "Comfortaa", sans-serif;
    font-weight: 700;
    box-sizing: border-box;
}

.container {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        "header"
        "main"
        "footer";
    height: 100vh;
    box-sizing: border-box;
}

header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    color: black;
}


.logo {
    flex: 1; 
    text-align: center; 
}

.logo img {
    height: 180px;
    margin-left: 12%;
}


.contact {
    display: flex;
    flex-direction: column; 
    align-items: flex-end; 
}

.contact div {
    display: flex;
    align-items: center;
    margin-bottom: 5px; 
}

.contact img {
    margin-right: 5px; 
    height: 30px; 
}


main {
    grid-area: main;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: end;
    gap: 40px;
    padding: 20px;
}


details{
    background-color: rgba(253 253 253 / 74%);
    width: 300px;
    height: 100px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 0px 4px #423b3b, 0px 0px 20px #191515;
    backdrop-filter: blur(3px) saturate(147%);
    border-radius: 12px;
}

details ul{
    margin: 15px 0 0 0;
}

details[open]{
    height: 100%;
}

details[open] summary{
    position: absolute;
    top: 5px;
}

details[open] .servicios{
    top: 0;
}

details:hover{
    cursor: pointer;
}

details summary::marker{
    content: " ✚ ";
    color: rgb(14, 1, 22);
    font-size: 1.5rem;
}

details[open] summary::marker{
    content: " ▬ ";
}

details p{
    padding: 20px;
    font-weight: 700;
    text-align: center;
}

.container-boton{
    display: flex;
    justify-content: center;
    height: 50px;
}

#boton{
    width: 90%;
    border-radius: 20px;
    font-size: 1em;
    background-color: white;
    cursor: pointer;
}

/* Modal para la visualización de imágenes */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

#cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.proyectos img {
    cursor: pointer;
    transition: transform 0.2s;
}

.proyectos img:hover {
    transform: scale(1.1);
}


li{
    font-weight: bolder;
}

li::marker{
    content: "✽";
}

summary{
    font-weight: bolder;
}

.logo-footer{
    grid-area: footer;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-footer>img{
    height: 80px;
}

.inicio{
    width: 50px;
}

.mainClose{
    visibility: hidden;
    display: none !important;
}


.galeriaOpen{
    grid-area: main;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    overflow: hidden;

}

.galeriaClose{
    display: none;
}

.modalBoton{
    margin: 5px 0;
}

#boton2{
    background: none;
    border: none;
}

#boton2:hover{
    transform: scale(50px);
    box-shadow: inset 0 5px 10px rgb(81, 99, 124);
    cursor: pointer;
    border-radius: 50%;
}

#boton2 img{
    box-shadow: 0px 0px 10px 0px #5a5a5a, 1px 1px 10px #0f0b0b;
    border-radius: 50%;
}

#imagenes{
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: hidden;
    position: relative;
    width: 100%;
    scroll-behavior: smooth;

}

.fotos{
    width: 500px;
    height: 95%;
    object-fit: cover;
    aspect-ratio: 1/1;
    display: block;
    border-radius: 8px;
    flex: 1 0;
    position: relative;
    box-shadow: 0px -1px 0px #585656,
                0px 0px 4px #ffffff;
}



#prev, #next {
    cursor: pointer;
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    padding: 10px;
    font-size: 50px;
    font-weight: bold;
    border: none;
    background: rgba(0 0 0 / 76%);
    color: white;
    z-index: 10;
    border-radius: 50px;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

#prev:disabled, #next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Media Queries */
@media (max-width: 768px) {
    body, html {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    

    header {
        flex-direction: column;
        text-align: center;
        padding: 20px 5px;
    }

    .container{
        box-sizing: border-box;
    }

    .logo img {
        height: 80px;
        margin-left: 0;
    }

    .contact {
        align-items: center;
    }

    main {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        font-size: 0.8rem;
    }

    details{
        border-bottom: 1px white solid;
        border-right: none;
    }

    details[open]{
        height: 320px;
    }

    details button {
        height: 35px;
        font-size: 0.8em;
        margin: 10px 0 20px 0;
    }

    .section:last-child{
        border-bottom: none;
    }

    #galeria{
        height: fit-content;
    }
    
.galeriaOpen{
    grid-area: main;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
}

.galeriaClose{
    display: none;
}

#imagenes{
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: scroll;
    position: relative;
    width: 100%;
    scroll-behavior: smooth;

}

#imagenes:hover{
    cursor: pointer;
}


.fotos{
    width: 500px;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    display: block;
    border-radius: 8px;
    flex: 1 0;
    position: relative;
    box-shadow:  5px 5px 19px #585656,
             -5px -5px 19px #ffffff;
}



#prev, #next {
    cursor: pointer;
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    padding: 10px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    background: rgba(0 0 0 / 76%);
    color: white;
    z-index: 10;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

#prev:disabled, #next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
}
