@font-face {
    font-family: 'signika';
    /* The name you will use in your CSS */
    src: url('../font/Signika-VariableFont_GRAD,wght.ttf') format('truetype-variations');
    /* The path to your variable font file */
    font-weight: 300 400 600 700;
    /* Define the range of weights available in the variable font file */
    font-style: normal;
    font-display: swap;
    /* Prevents text from being invisible while loading */
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: 'signika', sans-serif;
    /* Use the custom font */
    margin: 0;
    padding: 0;
    background-color: #E4E4E4;
    background-image: url('../img/bg.gif');
    /* background-size: cover; */
    /* Light background color for better contrast */
    color: #333;
    /* Dark text color for readability */
}

h1 {
    font-size: 1.2em;
    margin: 0.67em 0;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

#content {
    width: 100%;
    max-width: 800px;
    /* margin-top: 20px; */
    background-color: #eaeaea;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#content a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

#content .title {
    font-size: 1.1em;
    font-weight: 600;
    /* margin-bottom: 10px; */
    background-color: #464f63;
    color: #fff;
    padding: 10px 20px;
    text-align: right;
}

#top-img {
    display: block;
    width: 100%;
    max-width: 800px;
}

.top {
    background-color: #666;
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.top img {
    height: 40px;
    margin: -6px 0 -10px -6px;
    width: auto;
}

#menu>ul {
    background-color: #e5d9c3;
    list-style: none;
    display: flex;
    gap: 2px;
    padding: 1px 0 1px 0;
    margin: 0;
}

#menu>ul>li {
    width: 100%;
}

#menu>ul>li>a {
    display: block;
    padding: 1px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.8em;
}

#menu>ul>li>a>span {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

#menu>ul>li>a:hover,
#menu>ul>li>a.selected {
    /* filter: invert(1); */
    filter: saturate(3);
}

#menu>ul>li:nth-child(1)>a {
    background-color: #ae6d68;
}

#menu>ul>li:nth-child(2)>a {
    background-color: #b8995f;
}

#menu>ul>li:nth-child(3)>a {
    background-color: #ff9a33;
}

#menu>ul>li:nth-child(4)>a {
    background-color: #acc2ca;
}

#menu>ul>li:nth-child(5)>a {
    background-color: #826064;
}

#menu>ul>li:nth-child(6)>a {
    background-color: #c28152;
}

/* gallery */

#dir-select {
    /* margin: 20px 0; */
    width: 100%;
    padding: 10px;
    font-size: 1em;
    font-weight: 600;
    background-color: #e5d9c3;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-button-next,
.swiper-button-prev {
    color: #e5d9c3 !important;
}

/* content */

.contenido {
    display: flex;
    flex-direction: column;
}

.img-text {
    display: flex;
}

.img-text div {
    flex: 0 0 50%;
}

.img-text div:first-child {
    overflow: hidden;
}

.img-text div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    text-align: justify;
}

.img-text img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    align-self: flex-start;
    /* border-radius: 10px; */
    mask: linear-gradient(to right, black 0%, black 98%, transparent 100%);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

/* contacto */

#contacto-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    /* background: #e5d9c3 url('../img/contacto.jpg') 0 -190px / cover no-repeat; */
    background-color: #eaeaea;
}

#form-container {
    flex-grow: 3;
}

#form-container.hide {
    display: none;
}

.contacto_text {
    width: 30%;
    display: flex;
    flex-direction: column;

    img {
        width: 80%;
        height: auto;
    }
}

#response_format {
    display: none;
}

#response_format.show {
    display: block;
    flex-basis: 1px;
    flex-grow: 3;
    margin: 0 10px;
}

#retry {
    border: 0;
    border-radius: 4px;
    width: 100px;
    height: 30px;
    color: white;
    background-color: #666;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.contacto {
    gap: 30px;
}

.contacto p {
    /* font-size:0.9em; */
    margin-bottom: 5px;
}

/* #mail_result {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#mail_result>div {
    text-align: center;
} */

.contacto_text {
    display: flex;
    gap: 20px;
    align-items: center;
    text-align: center;
    justify-content: center;
}

#response {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-triad);
    font-weight: 700;
}

form {
    display: grid;
    grid-template-columns: 10em 1fr;
    gap: 10px;

    >label {
        grid-column: 1/2;
    }

    .captcha {
        grid-column: 2/3;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;

        input {
            margin: 0;
            height: 50px;
            border-radius: 4px;
            font-size: 2em;
            border: 1px solid #666;
        }
    }

    >input,
    >button,
    >div {
        grid-column: 2/3;
        font-family: 'Roboto', sans-serif;
    }

    >img {
        border: 1px solid black;
    }

    input#code {
        text-transform: uppercase;
    }

    img#refresh {
        cursor: pointer;
    }

    >textarea {
        height: 160px;
        resize: vertical;
        border-radius: 4px;
        border: 1px solid #666;
    }

    >input[type="text"] {
        height: 30px;
        border-radius: 4px;
        border: 1px solid #666;
    }

    >div>input[type="button"],
    >div>input[type="reset"] {
        border: 0;
        border-radius: 4px;
        width: 100px;
        height: 30px;
        color: white;
        background-color: #666;
        font-family: 'Roboto', sans-serif;
        font-weight: 700;
    }

    >div>input[type="button"]:hover,
    >div>input[type="reset"]:hover {
        background-color: #69f;
    }

}

@media (max-width: 799px) {
    .img-text {
        flex-direction: column;
        padding-right: 0;
    }

    .img-text img {
        width: 100%;
        height: auto;
        mask: none;
    }

    #form-container {
        width: 100%;
        margin: 0 10px;
    }

    form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;

        >label {
            grid-column: 1/1;
        }

        >input,
        >button,
        >div,
        >textarea {
            grid-column: 1/1;
            font-family: 'Roboto', sans-serif;
        }

        .captcha {
            grid-column: 1/1;
        }
    }
}

@media (max-width: 600px) {
    #menu>ul {
        flex-wrap: wrap;
    }

    #menu>ul>li {
        flex-basis: 33%;
    }

    #menu>ul>li>a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 3em;
    }
}

@media (max-width: 400px) {
    #menu>ul>li {
        flex-basis: 32.9%;
    }
}