:root {
    --titulos: 'Montserrat', sans-serif;
    --texto: : 'Open Sans', sans-serif;
    --colorFondo: #FBFFF1;
    --colorTitulos: #2D3142;
    --colorBoton: #E2A021;
    --colorSeleccion: #c98a1d;
    --colorContenedores: #0F4C5C;

}

* {
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('../img/Fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -1;
}

body {
    background-color: #FBFFF1;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    flex-direction: column;
    height: 23vh;
    align-items: center;
}

header .volver-logo {
    background-color: rgba(15, 76, 92, 0.85);
    display: flex;
    align-items: center;
    width: 100%;
}

header img {
    height: 15vh;
    margin: 0 auto;
}

.btn-volver {
    position: absolute;
    left: 0.5rem;
    color: var(--colorFondo);
    font-family: var(--titulos);
    font-weight: 900;
    font-size: 1.2rem;
    background-color: transparent;
    text-decoration: none;
}

.btn-volver:hover {
    color: var(--colorBoton);
    transform: scale(1.1);
}

header .estado {
    width: 100%;
    display: flex;
    justify-content: center;
    color: var(--colorTitulos);
    font-family: var(--titulos);
    font-weight: lighter;
    font-size: 0.7rem;
    background: linear-gradient(to right, var(--colorContenedores), var(--colorFondo), var(--colorContenedores));
}

.menu-toggle {
    display: none;
}

.opciones {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    background-color: var(--colorContenedores);
}

.opciones .menu {
    display: flex;
    gap: 2.5rem;
}

.opciones .menu a {
    text-decoration: none;
    color: var(--colorFondo);
    font-family: var(--titulos);
    font-weight: lighter;
    font-size: 1.2rem;
}

.opciones .menu a:hover {
    color: var(--colorBoton);
    border-bottom: 0.5px solid var(--colorBoton);
    transform: scale(1.1);
}


.search {
    position: absolute;
    right: 0.5rem;
    color: var(--colorFondo);
    font-family: var(--titulos);
    font-weight: 900;
    font-size: 1.2rem;
    background-color: transparent;
    text-decoration: none;
}

.search {
    position: absolute;
    right: 0.5rem;

    display: flex;
    align-items: center;

    background-color: var(--colorFondo);
    border-radius: 25px;

    padding: 5px 15px;
    width: 13vw;
    border: solid var(--colorContenedores);
}

.search input {
    border: none;
    outline: none;
    background: transparent;

    font-family: var(--titulos);
    font-size: 1rem;
    color: var(--colorTitulos);

    width: 100%;
}

.search button {
    border: none;
    background: var(--colorBoton);
    color: var(--colorTitulos);

    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;

    transition: 0.3s;
}

.search button:hover {
    background: var(--colorSeleccion);
    transform: scale(1.1);
    color: var(--colorFondo);
}

main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
}

main .plato {
    all: unset;
    display: flex;
    position: relative;

    background-color: var(--colorContenedores);
    height: 18vh;

    border-radius: 12px;
    overflow: visible;

    cursor: pointer;
    border-radius: 20px;
}

main .plato img {
    width: 40%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

main .plato .info {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
    gap: 1rem;
}

main .plato h2 {
    margin: 0;
    font-family: var(--titulos);
    font-size: 1rem;
    color: var(--colorFondo);
}

main .plato p {
    margin: 0;

    color: var(--colorFondo);
    font-family: var(--texto);
    font-size: 1rem;

    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.btn-add {
    position: absolute;
    top: 0;
    right: 0;

    transform: translate(50%, -50%);

    width: 2rem;
    height: 2rem;

    border-radius: 50%;

    background: var(--colorBoton);
    color: var(--colorFondo);
    font-family: var(--titulos);
    font-size: 1rem;


    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
}

main .plato button:hover {
    color: var(--colorFondo);
    box-shadow: 0 0 20px rgba(119, 104, 255, 0.6);
    background-color: var(--colorSeleccion);

}

.plato:hover {
    color: var(--colorFondo);
    box-shadow: 0 0 20px rgba(119, 104, 255, 0.6);
    background-color: var(--colorSeleccion);
    scale: 1.05;
}
@media (max-width: 768px) {

    /* ===== GRID PRINCIPAL ===== */
    main {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    /* ===== HEADER ===== */
    header {
        height: auto;
    }

    header img {
        height: 10vh;
    }

    /* ===== CONTENEDOR OPCIONES ===== */
    .opciones {
        width: 100%;
        height: auto;

        display: flex;
        justify-content: space-between;
        align-items: center;

        background-color: var(--colorContenedores);
        padding: 0.5rem 1rem;

        position: relative;
    }

    /* ===== SEARCH (IZQUIERDA) ===== */
    .search {
        display: flex;
        align-items: center;

        background-color: var(--colorFondo);
        border-radius: 25px;

        padding: 5px 10px;
        width: 60%;

        border: solid var(--colorContenedores);
    }

    .search input {
        font-size: 0.8rem;
    }

    
    .opciones .menu {
        display: none;

        flex-direction: column;
        width: 100%;

        position: absolute;
        top: 100%;
        left: 0;

        background-color: var(--colorContenedores);
        padding: 1rem;
        gap: 1rem;

        text-align: center;
        z-index: 1000;
    }

    .opciones .menu.active {
        display: flex;
    }

    .opciones .menu a {
        font-size: 1rem;
    }

    /* ===== BOTÓN HAMBURGUESA ===== */
    .menu-toggle {
        display: block;

        font-size: 2rem;
        background: none;
        border: none;

        cursor: pointer;
        color: var(--colorFondo);
    }

    /* ===== PLATOS ===== */
    main .plato {
        height: 10rem;
    }

    main .plato h2 {
        font-size: 0.9rem;
    }

    main .plato p {
        font-size: 0.8rem;
        -webkit-line-clamp: 5;
    }

    .btn-add {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }
}