/* VARIABLES DE CSS */

/* COLORES (de más oscuro a más claro)*/

:root {
    --color-black: rgb(17, 12, 13);
    --color-yellow: rgb(234, 177, 20);
    --color-beige: rgb(241, 240, 233);
}

/* FONT WEIGHT*/

:root {
    --light: 300;
    --regular: 400;
    --medium: 500;
    --semibold: 600;
}

/* MAIN */

* {
    margin: 0;
    box-sizing: border-box;
    font-family: 'Dosis', sans-serif;
    scroll-behavior: smooth;
}

body{
    background-color: var(--color-beige);
    background-image: url(../media/main/flores-islas-san-pedro.png);
    background-size: 100% auto;
    background-repeat: repeat;
    background-position: center;
}

img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

section {
    margin: 0 auto;
    margin-top: 2rem;
    padding: 3rem;
}

a {
    text-decoration: none;
}

p {
    font-size: 1.2rem;
}

ul {
    list-style: none;
    padding: 0;
}

/* MENU */

#menu {
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    background-color: var(--color-beige);
    box-shadow: 0 8px 8px -11px rgba(0, 0, 0, 0.5);
}

#bars, #close {
    display: none;
}

#menu > a  {
    width: auto;
    height: 80%;
}

#menu > a > img  {
    width: auto;
    height: 100%;
}

#menu > ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

#menu > ul > li{
    margin: 1rem;
}

#menu > ul > li > a {
    text-align: center;
    color: var(--color-black);
    font-weight: var(--medium);
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

#menu > ul > li > a:hover {
    color: var(--color-yellow);
}

/* HEADER */

header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#header-container {
    margin: 1rem 0 3rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#header-container figure {
    width: 40%;
    display: flex;
    justify-content: flex-end;
}

#header-content {
    margin-top: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    width:50%;
}

#header-content > img {
    width: 70%;
}

#header-content > h1 {
    font-weight: var(--regular);
    font-size: 2.1rem;
    width: 80%;
    margin-top: 1rem;
}

/* MAIN */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container:not(:nth-child(2)) {
    padding: 3rem 0 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container:nth-child(2) {
    padding: 3rem 4rem 3rem 0;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
}

.container > figure {
    width: 40%;
}

.container:not(:nth-child(2)) > figure > img {
    width: 100%;
    height: auto;
    border-top-left-radius: 50px;
}

.container:nth-child(2) > figure > img {
    width: 100%;
    height: auto;
    border-top-right-radius: 50px;
}

.container > p {
    width: 37%;
    margin-top: 0.6rem;
    font-size: 1.3rem;
}

.content {
    width: 37%;
}

.content > p {
    margin-top: 0.6rem;
    font-size: 1.3rem;
}

.text__2 {
    text-align: center;
    font-weight: var(--semibold);
    font-size: 1.5rem;
    padding: 7rem 0;
    width: 70%;
}

/* FOOTER */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-black);
}

footer > figure {
    width: 15%;
    margin: 2rem;
}

#menu-footer {
    width: 60%;
    margin-bottom: 2rem;
}

#menu-footer ul {
    display: flex;
    justify-content: space-around;
}

#menu-footer ul li {
    margin: 0.5rem;
    display: flex;
    align-items: center;
}

#menu-footer ul li a {
    color: var(--color-yellow);
    font-size: 1.2rem;
    transition: 0.3s ease-in-out;
    text-align: center;
}

#menu-footer ul li:hover a {
    color: var(--color-beige);
}

@media only screen and (max-width: 1000px){
    #menu > ul > li{
        margin: 0.3rem;
    }
    
    #menu > ul > li > a {
        font-size: 1rem;
        padding: 0.3rem;
    }

    header {
        height: auto;
    }

    #header-container {
        margin-top: 1rem;
    }

    #header-container figure {
        width: auto;
        height: 100%;
        display: flex;
        justify-content: flex-end;
    }

    #header-content {
        padding: 0;
        margin-left: 3rem;
        width: 100%;
    }

    #header-content > h1 {
        font-size: 1.6rem;
        width: 100%;
    }

    #header-content > img {
        width: 80%;
    }

    .container:not(:nth-child(2)),
    .container:nth-child(2) {
        padding: 0;
        display: flex;
        justify-content: space-between;
        background-position: center;
        flex-direction: column-reverse;
    }

    .container > figure {
        width: 100%;
    }

    .container > p {
        margin: 8rem 0;
        font-size: 1.3rem;
        width: 80%;
    }

    .content {
        margin: 8rem 0;
        width: 80%;
    }

    .content > p {
        font-size: 1.3rem;
    }

    .text__2 {
        padding: 0 0 7rem 0;
    }
}

@media only screen and (max-width: 600px){
    header {
        background-image: url(../media/header/miel_flor.png);
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        height: 100vh;
    }

    #header-container {
        justify-content: center;
    }

    #header-content {
        margin-left: 0;
        width: 70%;
    }
    
    #header-container > figure {
        display: none;
    }

    #header-content > img {
        width: 100%;
    }

    #header-content > h1 {
        text-align: center;
    }

    #bars, #close {
        display: block;
        cursor: pointer;
        color: var(--color-black);
    }

    #menu {
        background-color: var(--color-yellow);
    }

    #menu > ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        padding: 4rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.1);
        background-color: var(--color-yellow);
        transition-duration: 0.5s;
    }

    #menu > ul > li > a {
        font-size: 1.3rem;
    }

    #menu > ul > li > a:hover {
        color: var(--color-beige);
    }

    #menu > div > ul > li {
        margin: 2.5rem;
    }

    #menu > div > ul > li:last-child {
        display: block;
    }
    
    .content {
        margin: 3rem 0;
        width: 80%;
    }

    .container > p {
        margin: 3rem 0;
        font-size: 1.3rem;
        width: 80%;
    }

    footer > figure {
        width: 60%;
        margin: 1.5rem;
    }

    #menu-footer ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}