@import url(normalize.css);

:root {
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    /* Custom Colors */
    --color-white: #fff;
    --color-text: #686868;
    --color-text-dark: #000000;
    --color-primary: #ECB64B;
    --color-primary-dark: #C6890F;
    --color-grey-light:#eeeeee;
    --color-grey-dark: #3C3C3C;
    /* Breakpoints */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    /* Sizes */
    --size-width: calc(100% - 64px);
    --value-transition: all 0.3s ease;
}

body {
    font-family: "Roboto", sans-serif;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.46em;
    &:has(dialog[open]){
        overflow: hidden;
    }
}
*{
    box-sizing: border-box;
}
p{
    margin: 0;
    padding: 0 0 1em 0;
}
h1 {
    font-weight: 800;
    line-height: 1.2em;
}
h1, h2, h3{
    text-wrap: balance;
}
figure {
    margin: 0;
    line-height: 0;
}
img {
   max-width: 100%;
}
ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
a, button{
    cursor: pointer;
    text-decoration: none;
    transition: var(--value-transition);
}

.rrss{
    display: flex;
    a{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 40px;
        width: 40px;
        padding: 0!important;
        border: none!important;
        svg{
            width: 25px;
            height: 25px;
            path{
                fill: var(--color-text-dark);
                transition: var(--value-transition);
            }
        }
        &:hover{
            svg path{
                fill: var(--color-white);
            }
        }
    }
}
header{
    background-color: var(--color-primary);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 5;
    .nav-stripe{
        .logo{
            padding: 0;
            border: none;
            img{
                max-height: 80px;
            }
        }
        padding: 0 0 0 0;
        background-color: transparent;
        width: var(--size-width);
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        nav{
            max-width: 1100px;
            height: 50px;
            display: flex;
            align-items: center;
            gap: 24px;
            padding: 16px 0;
            text-transform: uppercase;
        }
        a{
            color: var(--color-text-dark);
            font-weight: 600;
            border-bottom: 1px solid transparent;
            padding: 8px 24px;
            &:hover, &.active{
                border-color: var(--color-text-dark);
            }
            &.reservar{
                background-color: var(--color-text-dark);
                color: var(--color-white);
                border: none;
                &:hover{
                    background-color: var(--color-grey-light);
                    color: var(--color-text-dark);
                }
            }
        }
    }

    &.sticky{
        position: sticky;
        &:after{
            height: 70px;
            background: #000;
        }
    }
}

[class*="btn-"]{
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 600;
    display: block;
    width: fit-content;
    &:hover{
        background: var(--color-blue);
    }
    &[class*="secondary"]{
        background: var(--color-grey-dark);
        color: var(--color-white);
        &:hover{
            background: var(--color-text-dark);
            color: var(--color-white);
            transform: scale(1.1);
        }
    }
}
.btn-contacto{
    background: var(--color-blue);
    color: var(--color-white)!important;
    &:hover{
        background: var(--color-orange);
        color: var(--color-white)!important;
    }
}
.actions{
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 16px 0 0 0;
}
.hero{
    z-index: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    .video-background {
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: -1;
        iframe {
        width: 100vw;
        height: auto;
        aspect-ratio: 16/9;
        transform: scale(1.1);
        pointer-events: none;
        }
    }
}


#sinuso{
.slick-slide{
    img{
        transform: scale(.75);
        transition: var(--value-transition);
    }
    &.slick-center{
        img{
            transform: scale(1);
        }
    }    
}
.slick-dots li button{
    width: 10px;
    height: 10px;
}
.slick-dots li button:before
{
    font-family: 'slick';
    font-size: 10px;
    line-height: 20px;

    position: absolute;
    top: 0;
    left: 0;

    width: 10px;
    height: 10px;

    text-align: center;

    opacity: .25;
    color: white;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.slick-dots li.slick-active button:before{
    opacity: .75;
    color: white;
}
[class*="fslightbox-slide-btn"]{
    background: transparent;
    &:hover{
        background: transparent;
    }
}

.slick-prev, .slick-next{
    font-size: 0;
    line-height: 0;
    position: absolute;
    bottom: -40px;
    top: auto;
    display: block;
    width: 30px;
    height: 30px;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
    z-index: 3;
    &::before{
        font-size: 30px;
    }
}
.slick-next {
    right: 30px;
}
.slick-prev {
    left: 30px;
}
.slick-dots{
    z-index: 0;
}
#tns1-mw {
    max-height: 700px;
    margin: 0 0 10px 0;
}

}
.tittle{
 font-family: "Vibur", cursive;
 font-weight: 600;
 font-size: clamp(1.75rem, 9.524vw - 1.821rem, 2.75rem);
 color: var(--color-text-dark);
 line-height: 1.2em;
}
.cont-txt{
    background-image: url(../img/fondo-tit.webp);
    background-size: contain;
    background-repeat: no-repeat;
    max-width: 500px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.wrap-5050{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    justify-content: center;
    align-items: center;
    @media screen and (width < 768px) {
        grid-template-columns: repeat(1, 1fr);
        .cont-txt{
            margin: 0 auto;
        }
    }
}
#tenemos{
    padding: 80px 0;
    .cta-verc{
        width: fit-content;
        position: relative;
        .btn-primary{
            background-color: var(--color-primary);
            color: var(--color-text-dark);
            text-align: center;
            width: 200px;
            height: 40ox;
            position: absolute;
            top: calc(50% - 20px);
            left: calc(50% - 100px);
            &:hover{
                background-color: var(--color-primary-dark);
                color: var(--color-white);
            }
        }
    }
}
#atractivos{
    background-color: var(--color-grey-light);
    .wrap-5050{
        gap: 0;
    }
    .wrap{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    figure{
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 350px;
    }
    .cont-txt{
        align-items: flex-start;
        padding: 16px;
        .tittle{
            width: 100%;
        }
        float: right;
        background-image: none;
        text-align: left;
    }
    @media screen and (width < 768px) {
        figure{
            order:2;
        }
        .cont-txt{
            order:1;
            text-align: center;
            align-items: center;
            min-height: auto;
            padding: 32px 16px;
        }
    }
}
#separador{
    width: 100%;
    background-color: var(--color-primary);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    align-items: center;
    .wrap{
        display: flex;
        justify-content: center;
        align-items: center;
        .cont-txt{
            max-width: 600px;
            background-image: none;
            color: var(--color-text-dark);
            padding: 16px;
            .tittle{
                font-size: 28px;
            }
        }
    }
    @media screen and (width < 768px) {
        grid-template-columns: repeat(1, 1fr);
        padding: 50px 16px;
        .wrap{
            .tittle{
                text-align: center;
                text-wrap: balance;
            }
            .cont-txt{
                height: fit-content;
                min-height: auto;
            }
        }
    }
}
#galeria{
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    a{
        height: 300px;
        overflow: hidden;
        img{
            object-fit: cover;
            min-height: 100%;
            transform: scale(1.05);
            transition: var(--value-transition);
        }
        &.width-1{
            width: 25%;
        }
        &.width-2{
            width: 50%;
        }
        &.width-4{
            width: 100%;
            height: 400px;
        }
        &:hover{
            img{
                transform: scale(1.1);
            }
        }
    }
    @media screen and (width < 1000px) {
        a{
            padding: 4px;
            border: 2px solid var(--color-white);
            &.width-1, &.width-2, &.width-4{
               height: 200px;
            }
        }
    }
    @media screen and (width < 600px) {
        a{
            &.width-1, &.width-2{
                width: 50%;
            }
             &.width-4{
               width: 50%;
            }
        }
    }
}
dialog {
    position: fixed;
    overflow: scroll;
    background-color: var(--color-primary);
    top: 0;
    left: 0;
    width: calc(100% - 32px);
    max-width: 1300px;
    height: 90dvh;
    padding: 20px 32px;
    z-index: 9999;
    &::backdrop{
        background-color: rgba(0, 0, 0, 0.8);
        overflow: hidden; 
        overscroll-behavior: contain;

    }
    h1{
        text-align: center;
    }
    .close{
        float: right;
        font-size: 30px;
        width: 50px;
        height: 50px;
        color: var(--color-white);
        background-color: var(--color-text);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        &:hover{
            background-color: var(--color-text-dark);
        }
    }
}
#tab-tarifas{
    font-size: 12px;
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    th, td{
        border: 1px solid var(--color-grey-light);
        padding: 8px 16px;
        text-align: center;
    }
    th{
        background-color: var(--color-primary);
        font-weight: 600;
    }
    tr{
        transition: var(--value-transition);
        &:hover{
            background-color: var(--color-grey-light);
        }
    }
    @media screen and (width < 800px) {
        thead{
            display: none;
        }
        tr{
            display: block;
            overflow: hidden;
            font-size: 16px;
            td{
                display: block;
                height: 0;
                padding: 0;
                overflow: hidden;
                border: none;
                text-align: left;
                transition: var(--value-transition);
                br{
                    display: none;
                }
            }
            td:nth-of-type(2){
                    background-color: var(--color-grey-dark);
                    color: var(--color-white);
                    height: auto;
                    padding: 8px 8px;
                    &:before{
                        content: "+";
                        margin: 0 8px 0 0;
                        float: left;
                        width: fit-content;
                    }
                }
                td:nth-of-type(1){
                    display: none;
                }
                td:before{
                    width: 100%;
                    float: none;
                    display: block;
                    font-weight: bold;
                }
                td:nth-of-type(3):before{
                    content: "Tarifa:";
                }
                td:nth-of-type(4):before{
                    content: "Capacidad Personas:";
                }
                td:nth-of-type(5):before{
                    content: "Número de Dormitorios:";
                }
                td:nth-of-type(6):before{
                    content: "Descripción:";
                }
                td:nth-of-type(7):before{
                    content: "Número de Camas y Medida:";
                }
                &.open{
                    td{
                        height: auto;
                        padding: 4px 8px;
                        &:nth-of-type(2):before{
                            content: "-";
                    }
                }
            }
        }
    }
}
footer{
    background-color: var(--color-primary);
    padding: 50px 0;
    h3, span{
        color: var(--color-white);
        padding: 8px;
        width: fit-content;
    }
    .wrap-content{
        width: var(--size-width);
        max-width: 1400px;
        margin: 0 auto;
        display: grid;
        gap: 32px;
        grid-template-columns: repeat(3, 1fr);
        align-items: flex-start;
        gap: 16px;
        .cont-info{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            justify-content: center;
            gap: 16px;
            .tit{
                font-size: clamp(1.5rem, 9.524vw - 2.071rem, 2.5rem);
                font-weight: 600;
                text-transform: uppercase;
            }
            .dato{
                display: flex;
                align-items: center;
                span:nth-of-type(1){
                    font-weight: bold;
                    width: 80px;
                }
            }
        }
        
    }
}

#wrap-contacto{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    flex-direction: column;
    padding: 10vh 0;
    position: relative;
    color: var(--color-blue);
    
    .cont-contacto{
        width: calc(100% - 32px);
        max-width: 1200px;
        z-index: 2;
        display: flex;
        gap: 32px;
    }
    form{
        width: 60%;
        padding: 0;
        margin: 32px auto;
    }
    .datos-contacto{
        width: 40%;
        .dato{
            padding: 0 0 16px 0;
        }
    }
}
#h-cabanas{
    padding: 100px 16px;
    .img-wrap{
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 50px;
        figure{
            width: fit-content;
            text-align: center;
            max-width: 600px;
            position: relative;
            img{
                position: relative;
            }
            &:after{
                position: absolute;
                top: 20px;
                left: -20px;
                content: "";
                display: block;
                width: calc(100% + 40px);
                height: calc(100% + 10px);
                background-color: var(--color-primary);
                z-index: -1;
            }
        }
    }
    .wrap{
        .cont-txt{
            background-image: url(../img/bg-h-cabanas.jpg);
            background-position: center;
            justify-content: flex-start;
            .tittle{
                font-size: 48px;
                margin-top: 50px;
            }
        }
    }
}
.item-cabana{
    background-color: var(--color-grey-light);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 0 32px 32px;
    margin-bottom: 32px;
    .wrap-img{
        figure{
            width: 80%;
        }
    }
    .wrap-txt{
        padding: 50px;
        position: relative;
        &:after{
            content: "";
            background-color: var(--color-primary);
            display: block;
            max-width: 80px;
            width: 10%;
            height: 300px;
            position: absolute;
            bottom: 0;
            right: 0;
        }   
    }
    
    .cont-info{
        max-width: 600px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        h2{
            font-size: clamp(2rem, 13.69vw - 3.134rem, 3.438rem);
            margin: .5em 0;
        }
        .separador{
            border-bottom: dotted 5px var(--color-primary);
        }
        .datos{
            display: flex;
            gap: 48px;
            justify-content: space-evenly;
            .dato{
                display: flex;
                flex-direction: column;
                align-items: center;
                img{
                    width: 80px;
                    height: 80px;
                    margin-bottom: 8px;
                }
            }
        }
        .actions{
            .btn-reservar{
                background-color: var(--color-text-dark);
                color: var(--color-white);
                border: none;
                &:hover{
                    background-color: var(--color-primary);
                    color: var(--color-text-dark);
                }
            }
        }
    }
    @media screen and (width < 900px) {
        display: flex;
        padding: 16px;
        flex-direction: column;
        .wrap-img{
            order:1;
            figure{
                width: 100%;
            }
        }
        .wrap-txt{
            order:2;
        }
    }
    @media screen and (width < 500px) {
        .wrap-txt{
            padding: 16px;
            &:after{
                display: none;
            }
        }
        .cont-info{
            .datos{
                .dato{
                    img{
                        width: 60px;
                        height: 60px;
                    }
                }
            }
        }
    }
}
.disfruta-en-familia{
    margin: 50px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contacto{
    .wrap-5050{
        justify-content: center;
        align-items: flex-start;
        gap: 32px;
        display: flex;
        padding: 16px;
        .cont-info{
            max-width: 500px;
            .tittle{
                margin: 0 0 16px 0;
                font-weight: 400;
            }
        }
    }
    .formasdepago{
        margin: 50px auto;
        display: block;
    }
    @media screen and (width < 1100px) {
        .wrap-5050{
            flex-direction: column;
            align-items: center;
            .cont-info{
                width: calc(100% - 32px);
                max-width: 500px;
            }
        }
    }
}
#h-contacto{
    background-image: url(../img/h-contacto.jpg);
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    span{
        font-family: "Vibur", cursive;
        z-index: 2;
        font-size: clamp(3.75rem, 23.81vw - 5.179rem, 6.25rem);
        color: var(--color-white);
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    }
}
#mapa{
    width: 100%;
    height: 500px;
    padding: 16px;
    border: none;
}
.contacto{
    .mensaje, .bajada{
        display: block;
        max-width: 1000px;
        padding: 16px;
        margin: 50px auto;
        text-align: center;
    }
    h2{
        font-family: "Vibur", cursive;
        font-size: 50px;
        text-align: center;
        font-weight: 400;
    }
}
form{
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    .form-group{
        position: relative;
        padding: 14px 0 16px 0;
        height: fit-content;
        label{
            position: absolute;
            pointer-events: none;
            top: 16px;
            left: 5px;
            padding: 0 4px;
            font-size: 0.875rem;
            color: var(--color-text-dark);
            transition: var(--value-transition);
        }
        input, textarea, select{
            width: 100%;
            background: var(--color-white);
            border: 1px solid var(--color-border-grey);
            padding: 8px 8px;
            border-radius: 8px;
            color: var(--color-text-dark);
            height: 45px;
        }
        textarea{
            resize: none;
            min-height: 100px;
        }
        input:focus-within, textarea:focus-within, select:focus-within{
            outline: none;
        }
        &:has(input:focus), &:has(input:not(:placeholder-shown)), &:has(textarea:focus), &:has(textarea:not(:placeholder-shown)){
            input, textarea{
                border-color: var(--color-text-dark);
            }
            label{
                top: -4px;
            }
        }
        &:has(select){
            label{
                top: -4px;
                background-color: var(--color-white);
            }
        }
        input[type="submit"]{
            display: block;
            background-color: var(--color-text-dark);
            color: var(--color-white);
            padding: 12px 40px;
            border-radius: 8px;
            font-weight: 600;
            width: calc(100% - 32px);
            max-width: 300px;
            margin: 0 auto;
            float: right;
            border: none;
            cursor: pointer;
            transition: var(--value-transition);
            &:hover{
                background-color: var(--color-grey-dark);
            }
        }
        &:has(input[required]), &:has(textarea[required]){
            label{
                &:before{
                    content: "*";
                    display: block;
                    float: right;
                    margin: 0 0 0 4px;
                    color: red;
                }
            }
        }
    }
}
span.output_message {
    white-space: pre-line;
    text-align: center;
    display: block;
}
.w-50{
    width: calc(50% - 8px);
}
.w-100{
    width: 100%;
}

#pull{
    display: none;
}
@media screen and (width < 650px) {
    .w-50{
        width: 100%;
    }
    #wrap-contacto .cont-contacto{
        width: 100%;
    }
}
@media only screen and (max-width: 1100px) {
    header{
        height: 50px;
        background-color: var(--color-primary);
        position: sticky;
        top: 0;
        z-index: 100;
        border-bottom: 1px solid var(--color-white);
        &:after{
            display: none;
        }
        .logo{
            max-width: auto;
            img{
                max-width: 100%;
                max-height: 100%;
                height: 40px;
            }
        }
        a:hover, a.active{
            border-bottom: none;
        }
        .nav-stripe{
            width: 100%;
            padding: 0 16px;
        }
        #pull{
            order:3;
        }
        .rrss{
            order:2;
        }
    }
    .hero{
        align-items: center;

        .hero-content{
            margin: auto;
            max-width: calc(100% - 32px);
        }
    }
    #wrap-contacto{
        overflow: hidden;
        padding: 32px 16px;
        .cont-contacto{
            flex-direction: column;
            gap: 16px;
            max-width: 600px;
            margin: 32px auto;
        }
        form{
            width: 100%;
            padding: 32px 16px;
        }
    }
    footer{
        .wrap-content{
            width: calc(100% - 32px);
            flex-direction: column;
            text-align: center;
            display: flex;
            align-items: center;
        }
    }
    #pull {
        display: block;
        top: 00px;
        width: 30px;
        height: 30px;
        position: relative;
        margin: 10px;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: 0.5s ease-in-out;
        -moz-transition: 0.5s ease-in-out;
        -o-transition: 0.5s ease-in-out;
        transition: 0.5s ease-in-out;
        cursor: pointer;
        float: right;
    }

    #pull span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--color-text-dark);
        border-radius: 9px;
        opacity: 1;
        left: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: 0.25s ease-in-out;
        -moz-transition: 0.25s ease-in-out;
        -o-transition: 0.25s ease-in-out;
        transition: 0.25s ease-in-out;
        top: 0;
    }

    #pull span:nth-child(1) {
        top: 5px;
    }

    #pull span:nth-child(2) {
        top: 15px;
    }

    #pull span:nth-child(3) {
        top: 25px;
    }

    #pull.open span:nth-child(1) {
        top: 13px;
        -webkit-transform: rotate(135deg);
        -moz-transform: rotate(135deg);
        -o-transform: rotate(135deg);
        transform: rotate(135deg);
    }

    #pull.open span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    #pull.open span:nth-child(3) {
        top: 13px;
        -webkit-transform: rotate(-135deg);
        -moz-transform: rotate(-135deg);
        -o-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }

    #cssmenu {
        width: 100%;
        background:var(--color-text-dark);
        position: absolute;
        top: 50px;
        display: none;
        padding: 0;
        height: auto;
        left: 0;
        margin: 0;
        z-index: 10;
    }

    #cssmenu a,
    #cssmenu a:hover,
    #cssmenu a:active {
        display: block;
        border-right: none;
        border-bottom: 1px solid #ccc;
        padding: 15px 10px;
        color: #fff;
        font-size: 16px;
        height: auto;
        line-height: 1.4em;
    }
    #cssmenu .btn-contacto{
        background-color: transparent;
    }
    #cssmenu a:last-child {
        border-bottom: none;
    }
}