/* =================== FUENTES =================== */
@font-face {
    font-family: 'Tallica';
    src: url("/fonts/Tallica-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

/* =================== RESET Y BASE =================== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Afacad', sans-serif;
}

body {
    background-image: url('images/fondo.png');
    overflow-x: hidden;
}

/* =================== NAVBAR =================== */
.main-nav {
    display: flex;
    justify-content: flex-end;
    background: #fff;
    height: 90px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.487);
    position: fixed;
    z-index: 200;
    width: 100%;
    padding-right: 16%;
}

.nav-logo {
    position: absolute;
    left: 30%;
    top: 0;
    transform: translateX(-50%) translateY(-30px);
    border-radius: 4px;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    display: block;
    max-width: 200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #696a6d;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    padding: 8px 0;
}

.nav-links li a:hover {
    color: #848f58;
}

.menu-toggle {
    display: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    color: #333;
}

/* Icono fuego arriba del texto en nav */
.nav-links a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -1.2em;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-image: url('images/fuego.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
}

.nav-links a:hover::before {
    opacity: 1;
    top: -0.7em;
}

/* =================== HEADER Y CAROUSEL =================== */
.header {
    min-height: auto;
    height: 800px;
    position: relative;
    overflow: hidden;
    display: block;
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slides {
    height: 100%;
    width: 100%;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-img.active {
    opacity: 1;
}

.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 50;
    padding: 20px 40px;
    border-radius: 5px;
}

.carousel-text h2 {
    font-size: 6rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(253, 253, 253, 0.26);
    color: gray;
    border: none;
    padding: 17px;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    transition: background 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-button {
    left: 0;
}

.next-button {
    right: 0;
}

/* =================== DIVISIONES =================== */
.division,
.divisionmenu {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.division img,
.divisionmenu img {
    width: 100%;
    height: auto;
    display: block;
}

/* =================== SECCIÓN ABOUT =================== */
.about {
    padding: 110px 0px;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* =================== TÍTULOS =================== */
.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title h2 {
    color: #848f58;
    font-size: 5rem;
    padding: 0 20px;
}

/* =================== CONTENIDO PRINCIPAL =================== */
.content {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.content p {
    text-align: left;
    padding: 2%;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #696a6d;
}

/* =================== MENÚ =================== */
.menu {
    background-image: url('images/menu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 3%;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 75px 0 30px 0;
    width: 100%;
}

.menu-header h2 {
    color: #f1ead2;
    font-size: 5rem;
    text-align: center;
    flex: 1;
}

.menu-content {
    display: flex;
    gap: 30px;
}

.menu-images {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 33%;
}

.menu-images img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

.menu-images img:nth-child(odd) {
    align-self: flex-start;
}

.menu-images img:nth-child(even) {
    align-self: flex-end;
}

.menu-items {
    flex: 1;
    padding: 0 40px;
    color: #f1ead2;
}

.menu-item {
    margin-bottom: 40px;
}

.menu-item h3 {
    color: #f5a623;
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-family: 'Tallica', sans-serif;
    font-weight: 500;
}

.menu-item h4 {
    margin: 10px 0;
    font-size: 1.9rem;
}

.menu-item ul {
    padding: 0;
    margin: 0 0 10px;
}

.menu-item ul li {
    margin: 5px 0;
    font-size: 1.4rem;
}

/* Salsas más pequeñas */
.menu-item ul.salsas li {
    font-size: 1rem;
}

.menu-item p {
    font-size: 1.3rem;
    margin-top: 10px;
    line-height: 1.4;
}

.menu-item span {
    font-size: 1rem;
    color: #f1ead2;
}

.postres {
    display: flex;
    gap: 40px;
}

/* =================== DELIVERY =================== */
.delivery {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15% 0;
    gap: 20%;
}

.delivery img {
    height: 100px;
    width: auto;
}

/* =================== UBICACIÓN =================== */
.location {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Señaladores */
.señalador-izquierdo,
.señalador-derecho {
    object-fit: contain;
}

/* =================== CONTACTO =================== */
.contact {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.linea-dorada {
    height: auto;
    display: block;
    width: 100%;
}

.contact h2,
h1 {
    color: #848f58;
    font-size: 5rem;
    padding: 20px 0px;
}

.titlecontact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    padding: 50px 0px 30px 0px;
}

.contact-info {
    display: flex;
    gap: 40px;
    align-items: center;
    padding-bottom: 20px;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fila {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fila img {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.fila p {
    margin: 0;
    font-size: 1.2rem;
    color: #696a6d;
}


.logo-contact {
    height: 200px;
    width: 200px;
}

span {
    text-align: center;
    color: #848f58;
    margin-top: 30px;
}

/* =================== WHATSAPP =================== */
.whatsapp img {
    position: fixed;
    height: 80px;
    width: 80px;
    margin-top: 10px;
    right: 25px;
    bottom: 25px;
    z-index: 250;
    cursor: pointer;
}

/* =================== FORMULARIO =================== */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin: 40px 0;
}

form input,
form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #d4a537;
    background: #f9f1d1;
    font-size: 1rem;
    color: #333;
    border-radius: 2px;
    outline: none;
    transition: all 0.3s ease;
}

/* Placeholder */
form input::placeholder,
form textarea::placeholder {
    color: #666;
    font-style: italic;
}

/* Efecto al enfocar */
form input:focus,
form textarea:focus {
    border-color: #b38722;
    background: #fff;
}

/* Botón */
form button {
    background: #d4a537;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

form button:hover {
    background: #b38722;
}

/* =================== FOOTER =================== */
footer {
    height: auto;
    background: #696a6d;
    color: #f1ead2;
    text-align: center;
    position: relative;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

footer a {
    color: #f1ead2;
    text-decoration: none;
}


/* =================== MEDIA QUERIES =================== */
/* ----- MOBILE ----- */
@media (max-width: 1050px) {
    .main-nav {
        height: 80px;
        padding: 0 20px;
    }

    .nav-logo {
        transform: none;
        padding: 0;
        left: 10%;
        top: 0;
    }

    .nav-logo img {
        max-width: 150px;
        top: 0;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 2.5rem;
        cursor: pointer;
        z-index: 250;
        color: #D49F0F;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        gap: 0;
        margin-left: 0;
        background: #fff;
        box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links li a {
        display: block;
        padding: 15px 20px;
    }

    .nav-links a::before {
        display: none;
    }

    .carousel-button {
        display: none;
    }

    .contact {
        padding: 0 10%;
        gap: 24px;
    }

    .content p {
        padding: 6%;
    }

    .logo-contact {
        display: none;
    }

    .title {
        justify-content: center;
    }

    .titlecontact {
        justify-content: center;
    }

    .titlecontact h2 {
        font-size: 4rem;
        padding: 0 20px;
        margin-top: 10px;
    }

    .title img,
    .titlecontact img {
        display: none;
    }

    .about {
        padding: 50px 0px 50px 0px;
    }


    .menu-header{
        margin: 110px 0 20px 0;
    }
    .menu-images,
    .menu-header img {
        display: none;
    }

    .menu-item h3 {
        font-size: 2rem;
    }

    footer {
        height: auto;
        flex-direction: column;
        gap: 20px;
        padding: 20px 0px;
    }

    .postres {
        flex-direction: column;
        gap: 0;
    }

    .whatsapp img {
        right: 10px;
        bottom: 10px;
    }

    section {
        position: relative;
        margin-top: 55px;
    }


}

/* ----- DESKTOP ----- */
@media (min-width: 1030px) {
    .delivery {
        height: 40vh;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20%;
    }

    .delivery img {
        height: 200px;
        width: auto;
        margin: 0 20px;
    }

    .content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 20px;
    }

    .content p {
        width: 25%;
        text-align: left;
    }
}