* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "roboto", sans-serif;
}

:root {
    --logo: red;
    --priimari-color: #8c755a;
    --text-color: #ffa500;
}




body {
    min-height: 100vh;
    background-color: var(--text-color);
}

header {
    position: relative;
    width: 100%;
    height: 80px;
    background-color: var(--priimari-color);
    padding: 1rem 6rem;
    z-index: 2;
}

h1 {
    color: var(--logo);
}



.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50% -50%);
}

.logoh h1 {
    width: 240px;
}

nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav li a {
    position: relative;
    color: var(--text-color);
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

nav li a:hover::before {
    width: 100%;
}

.btn {
    position: absolute;
    top: 0;
    right: 0;
    height: 80px;
    width: 80px;
    background-color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.btn i {
    font-size: 1.5rem;
    transition: scale .2s ease;
}

.btn:hover i {
    scale: 1.1;
}

.menu_btn {
    display: none;
}

.hero {
    min-height: 90vh;
    width: 100%;
    background: linear-gradient(transparent, #081525);
    color: var(--priimari-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../Imagenes/Fotos/Fondoindex.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero .info {
    text-align: center;
}

.hero h3 {
    font-size: 5rem;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    background-color: var(--text-color);
    opacity: 0.8;
    padding: 0 1rem;
}


@media screen and (max-width: 768px) {
    nav {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        height: 0px;
        background-color: var(--priimari-color);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        z-index: 1;
        overflow: hidden;
        transition: height 0.5s ease-in-out;
    }

    .logo {
        left: 2rem;
        transform: translate(0, -50%);
    }

    .logo h1 {
        width: 180px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    nav li a {
        font-size: 1.2rem;
    }

    .menu_btn {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .menu_btn span {
        width: 30px;
        height: 2px;
        background-color: var(--priimari-color);
        transform-origin: left;
        transition: .5s ease;
    }

    .menu_btn input {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        cursor: pointer;
        appearance: none;
    }

    .menu_btn input:checked ~ .second_line {
        opacity: 0;
    }

    .menu_btn input:checked ~ .frist_line {
        transform: rotate(45deg);
    }

    .menu_btn input:checked ~ .third_line {
        transform: rotate(-45deg);
    }

    header:has(input:checked) > nav {
        height: calc(100vh - 80px);
    }

    .user_btn {
        display: none;
    }

    .foto {
        display: block;
        padding: 1rem;
    }

    .foto img {
        padding: 0.5rem 1rem;
        height: 80px;
        width: 80px;
        background: grey;
        border: none;
        outline: none;
        border-radius: 50%;
    }
}