/* Tipografías para encabezados exportadas desde Google || Tipografía Anton*/

@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* .anton-regular {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
} */

/* ------------------------------------------------------------------ */
/* Tipografías para encabezados secundarios y para parrafos/textos (formato .woff) || Tipografía Poppins: Black, ExtraBold y SemiBold */

@font-face {
    font-family: 'poppinsblack';
    src: url('../fonts/poppins-black/poppins-black-webfont.woff2') format('woff2'),
         url('../fonts/poppins-black/poppins-black-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'poppinsextrabold';
    src: url('../fonts/poppins-extrabold/poppins-extrabold-webfont.woff2') format('woff2'),
         url('../fonts/poppins-extrabold/poppins-extrabold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'poppinssemibold';
    src: url('../fonts/poppins-semibold/poppins-semibold-webfont.woff2') format('woff2'),
         url('../fonts/poppins-semibold/poppins-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Se define la tipografía por clases desde el inicio de este documento, los tamaños iran variando según las secciones y el requerimiento */

.encabezado {
    font-family: "Anton", sans-serif;
}
.textos-titulos {
    font-family: 'poppinssemibold';
}
.botones {
    font-family: 'poppinssemibold';
}

/* ------------------------------------------------------------------- */
/* ------------------------------------------------------------------- */
/* ------------------------------------------------------------------- */

body {
    height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url(../imagenes/fondo-kupula-2.png);
    background-repeat: repeat-y;
    background-size: cover;
    /* background-color: #0d1710; */
}


/* ////////////////// Estilos para barra de navegacón ///////////////// */

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: fixed;
    /* position: sticky; */
    top: 0;
    background-color: #0d1710;
    border-bottom: solid 3px white;
    box-sizing: border-box;
    z-index: 10;
}
nav a {
    text-decoration: none;
    color: white;
}
nav li a:hover {
    color: #fff137;
    text-decoration: underline;
}
#logo {
    font-size: 4vh;
}
.clase-conmutador {
    display: none;
    color: white;
}

nav ul {
    display: flex;
    gap: 60px;
}
li {
    list-style: none;
    font-family: "Anton", sans-serif;
    font-size: 3vh;
}

/* ////////////////////////////////////////////////////////////// */
/* ///////////////////////// HERO ////////////////////////////// */
/* //////////////////////////////////////////////////////////// */

header {
    height: 100vh;
    /* background-color: #0d1710; */
    background-image: url(../imagenes/hero-fondo-3.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    color: white;
    padding: 160px 50px;
    box-sizing: border-box;
}
#logo-kupula {
    width: 100px;
}
#kupula-h1 {
    font-size: 10vh;
    font-weight: 100;
}
#eslogan {
    padding-left: 18px;
    margin-bottom: 130px;
}
#hero {

    h2 {
        font-size: 5vh;
        margin: -25px 0px;
        letter-spacing: 2px;
        font-weight: 100;
    }

    h3 {
        font-size: 3vh;
        margin: 30px 0px;
    }
}

#boton-hero {
    color: white;
    text-decoration: none;
    font-size: 2.5vh;
    font-weight: 100;
    letter-spacing: 1px;
    border: solid 3px white;
    border-radius: 10px;
    padding: 10px 30px;
    margin-left: 15px;
}
#boton-hero:hover {
    color: black;
    border: none;
    background-color: white;
}

/* ///////////////////////////////////////////////////////////// */
/* ////////////////////// MAIN - Introducción ///////////////// */
/* /////////////////////////////////////////////////////////// */

main {
    /* border: solid 2px #fff137; */
    margin: auto;
    max-width: 1400px;
    /* height: 100vh; */
    padding: 100px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    gap: 60px;
    box-sizing: border-box;
}

main div {
    flex: 1 1 40%;

    h2 {
        color: #fff137;
        font-size: 4.5vh;
        font-weight: 100;
        border-bottom: solid 3px #fff137;
    }
    p {
        font-size: 1vw;
        color: white;
        text-align: justify;
        line-height: 20px;
    }
}

main img {
    width: 40%;
}

/* animación de entrada - estado inicial */

.animar-izq {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.8s ease-out, transform 1s ease-out;
}
.animar-der {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.8s ease-out, trasnform 1.8s ease-out;
}

/* animación de entrada - estado final (Se activara desde un script JS)*/

.animar-izq.visible, .animar-der.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ///////////////////////////////////////////////////////////// */
/* //////////////////// Sección platos //////////////////////// */
/* /////////////////////////////////////////////////////////// */

#contenedor-carrusel {
    margin: auto;
    max-width: 1400px;
    height: 100vh;
    padding: 100px 100px;
    position: relative;
    /* border: solid 2px #fff137; */
    box-sizing: border-box;
    overflow: hidden;
}
.carta-plato {
    position: absolute;
    left: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
    gap: 80px;
}
.carta-plato.activo {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
/* las siguientes clases se aplicaran a través de js para darle dinamismo a la sección */
.carta-plato.salir {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    animation: slideOut 1.2s ease-in-out forwards;
}
.carta-plato.entrar {
    opacity: 1;
    visibility: visible;
    z-index: 3;
    animation: slideIn 1.2s ease-in-out forwards;
}
/* Animaciones que daran movimiento */

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.carta-info {
    flex: 0 1 30%;

    h3 {
        margin-top: 0;
        color: #fff137;
        font-size: 4.5vh;
        font-weight: 100;
        text-align: right;
    }
    p {
        font-size: 1vw;
        color: white;
        text-align: justify;
        line-height: 20px;
    }
}
#contenedor-carrusel a {
    position: absolute;
    bottom: 120px;
    right: 180px;
    color: #fff137;
    text-decoration: none;
    border: solid 3px #fff137;
    border-radius: 10px;
    padding: 10px 30px;
    cursor: pointer;
    z-index: 4;
}
#contenedor-carrusel a:hover {
    color: #0d1710;
    border: none;
    background-color: #fff137;
}

.img-carrusel {
    object-fit: cover;
    width: 35%;
}

/* ////////////////////////////////////////////////////////////// */
/* ////////////////////////// Footer /////////////////////////// */
/* //////////////////////////////////////////////////////////// */

footer {
    display: flex;
    max-width: 1400px;
    margin: auto;
    /* height: 100vh; */
    /* border: solid 2px #fff137; */
    padding: 100px 100px;
    box-sizing: border-box;
    color: white;

    iframe {
        width: 70%;
    }
}
#info-footer {
    flex: 0 1 70%;
    display: flex;
    flex-direction: column;
    gap: 30%;
    /* border: solid 2px #fff137; */

    a {
        color: white;
        text-decoration: none;
    }
    span {
        color: #fff137;
    }
}
#info {
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#iconos {
    margin-top: 30px;
}
.iconos {
    width: 3vw;
}
#privacidad {
    border-bottom: solid 5px #fff137;
    a {
        display: block;
        color: #fff137;
    }
}


/* ------------------------------------------------------------ */
/* ------------------------------------------------------------ */
/* ------------------------------------------------------------ */

/* /////////////////// Mediaqueries para tablet //////////////////////// */

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    
    body {
        background-image: url(../imagenes/fondo-kupula-3.png);
        background-size: cover;
    }

    /* ////////////// Barra de navegación ///////////////////////// */

    nav {
        flex-direction: column;
        align-items: start;
    }
    nav ul {
        display: none;
    }
    nav li {
        display: block;
        font-size: 4vw;
    }
    #logo {
        font-size: 5vw;
    }
    #div-logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .clase-conmutador {
        /* font-size: 50px; */
        display: block;
        cursor: pointer;
    }
    .desplegado {
        display: block;
    }

    /* ////////////////////// Hero /////////////////////////////// */

    header {
        background-image: url(../imagenes/cabecera-telefono.png);
    }
    #kupula-h1 {
        font-size: 8vw;
    }
    #hero {
        margin-top: 50px;
        h2 {
            font-size: 4vw;
        }
        h3 {
            font-size: 3vw;
        }
    }
    #boton-hero {
        font-size: 2.5vw;
    }

    /* ///////////////////// Main /////////////////////////// */

    main {
        flex-direction: column;
        align-items: center;
        padding: 50px;
        /* height: 110vh; */
        /* border: solid 2px #fff137; */
        box-sizing: border-box;
    }
    main div {
        flex: 0 1 40%;
        padding: 0px 100px;
        

        h2 {
            font-size: 4vw;
        }
        p {
            font-size: 2.5vw;
            line-height: 25px;
        }
        
    }

    main img {
        flex: 0 1 60%;
        margin-top: 10px;
        width: 70%;
    }

    /* ////////////////// Sección de paltos /////////////////////////// */

    #contenedor-carrusel {
        padding: 50px;
        height: 120vh;
    }
    #contenedor-carrusel a {
        right: 20%;
        bottom: 5%;
    }
    .carta-plato {
        padding: 50px;
        flex-direction: column-reverse;
        align-items: center;
    }
    .carta-info {
        padding: 0px 100px;

        h3 {
            font-size: 4vw;
        }
        p {
            font-size: 2.5vw;
            line-height: 25px;
        }
    }
    .img-carrusel {
        width: 70%;
    }

    /* ///////////////////////// Footer ///////////////////////////// */

    footer {
        padding: 150px;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        
        iframe {
            width: 100%;
        }
    }
    .iconos {
        width: 8vw;
    }
    #info-footer {
        gap: 50px;
    }

}

@media screen and (min-width: 768px) and (max-width: 1367px) and (orientation: landscape) {

    body {
        background-image: url(../imagenes/fondo-kupula-3.png);
    }

    /* ///////////////////// Barra de navegaciòn /////////////////////// */

    header {
        background-position: left;
    }
    nav li {
        font-size: 2.2vw;
    }

    /* ////////////////////// Main //////////////////////////// */

    main {
        padding: 100px;
        flex-direction: column;
        align-items: center;
        gap: 30px;       
    }
    main div {
        padding: 70px;

        p {
            font-size: 1.5vw;
        }
    }
    main img {
        width: 70%;
    }

    /* ////////////////// Sección de platos ////////////////////// */

    #contenedor-carrusel {
        padding: 100px;
        /* border: solid 2px #fff137; */
        height: 150vh;
    }
    #contenedor-carrusel a {
        right: 20%;
        bottom: 2%;
    }
    .carta-plato {
        flex-direction: column-reverse;
        align-items: center;
    }
    .carta-info {
        padding: 0px 170px;

        p {
            font-size: 1.5vw;
        }
    }
    .img-carrusel {
        width: 60%;
    }

    /* ////////////////////// footer //////////////////////////// */
    #info-footer {
        gap: 25%;
    }
}

/* //////////////////////////////////////////////////////////////////// */
/* ////////////////// Mediaqueries para móvil //////////////////////// */

@media screen and (max-width: 767px) {

    body {
        background-image: none;
        background-color: #0d1710;
    }

    /* //////////////////// barra de navegación /////////////// */
    nav {
        flex-direction: column;
        align-items: start;
    }
    nav ul {
        display: none;
    }
    nav li {
        display: block;
        font-size: 4vw;
    }
    #logo {
        font-size: 5vw;
    }

    #div-logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .clase-conmutador {
        display: block;
        cursor: pointer;
    }

    .desplegado {
        display: block;
    }


    /* //////////////////// hero ////////////////////////////// */
    header {
        height: 100vh;
        background-image: url(../imagenes/cabecera-telefono.png);
    }
    #kupula-h1 {
        font-size: 10vw;
    }

    #hero {
        h2 {
            font-size: 5vw;
        }
        h3 {
            font-size: 3.5vw;
        }
    }

    #boton-hero {
        font-size: 3.5vw;
    }

    /* /////////////////////// MAIN /////////////////////////////// */
    main {
        display: block;
        padding: 50px;
        height: 100vh;
        box-sizing: border-box;
    }
    main div {
        h2 {
            font-size: 4.5vw;
        }
        p {
            font-size: 3vw;
        }
    }
    main img {
        margin-top: 30px;
        width: 100%;
    }

    /* /////////////////////// Sección de platos /////////////////// */
    #contenedor-carrusel {
        padding: 50px;
        height: 110vh;
    }
    #contenedor-carrusel a {
        right: 12%;
        bottom: 5%;
    }
    .carta-plato {
        flex-direction: column-reverse;
        align-items: center;
        padding: 50px;
    }
    .carta-info {
        margin-bottom: 60px;
        h3 {
            font-size: 4.5vw;
        }
        p {
            font-size: 3vw;
        }
    }
    .img-carrusel {
        width: 100%;
    }

    /* ////////////////////////// footer /////////////////////// */

    footer {
        height: 80vh;
        padding: 50px;
        flex-direction: column;
        gap: 50px;
        
        iframe {
            width: 100%;
            /* height: 100px; */
        }
    }
    .iconos {
        width: 9vw;
    }
    #info-footer {
        gap: 10%;
    }
}