html {
    scroll-behavior: smooth;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(rgb(234, 143, 59), rgba(241, 99, 33, 0.269));
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.grid-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/*Estilos del header*/

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 20px;

    width: 100%;
    background-color: rgba(228, 88, 23, 0.845);

}

header ul {
    display: flex;
    gap: 10px;


}

header li {
    list-style: none;

}

header a {
    text-decoration: none;
    color: rgb(121, 32, 5);
    font-style: normal;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
}

header nav {
    padding-top: 65px;
    width: 100%;

}

header menu {
    width: 100%;

}

.menu {
    flex: 1;
}

.lista-nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-nav li :hover {
    background-color: #f8440884;
    transform: scale(1.05);

}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(228, 88, 23, 0.845);
}

#logo-container {
    display: flex;
    justify-content: flex-start;
}

#titulo {
    text-align: center;
}

.menu {
    display: flex;
    justify-content: flex-end;
}
#titulo {
    font-size: 2rem;
    margin: 0 auto;
    font-family: "Bagel Fat One", system-ui;
    color: rgb(255, 68, 0);
    text-align: center;
    padding-top: 30px;
}
#logo-container {
    padding-right: 80px;
    padding-top: 30px;
    padding-left: 5px;
    flex: 1;
}

/*Estilos de sobre nosotros*/
#nosotros {
    display: flex;


}

#nosotrostext {
    display: flex;
    padding-right: 20%;
    padding-left: 20%;


}

#nosotrostext p {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: rgb(121, 100, 69);
    text-align: center;
    font-size: 20px;
}

#video {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

.video-wrapper {
    width: 100%;
    max-width: 50%;
    aspect-ratio: 1 / 1;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain; }
/*estilos de los productos*/
.product-card:hover {
    transform: scale(1.02);
}

#products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 0;
    justify-items: center;
    align-items: center;
    gap: 10px;


}

.product-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.products-section {
    margin-bottom: 40px;
    text-align: center;
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product h3 {
    margin-top: 0;
}

.products-section h1 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: #ec5509;
}

.shop-container {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}


h4 {
    display: block;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #de6007f8;
    font-size: 20px;
}

/*estilo del contactanos*/
form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contacto {
    display: block;
    justify-items: center;
}


#contacto h4 {
    color: rgb(228, 95, 12);

}


#contacto h5 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

form label {
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    font-family: sans-serif;
    color: #333;
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: sans-serif;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    transition: border 0.3s;
}

form input:focus,
form textarea:focus {

    outline: none;
}

form button {
    background-color: #e44d0c;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: sans-serif;
}

form button:hover {
    background-color: #0a0abf;
}

/*ESTILOS DE seccion reseñas*/
#reseñas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    transform: translateY(-5px);
}

h3 {
    text-align: center;
    margin-top: 40px;
    font-family: sans-serif;
}


.card {

    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(207, 0, 0, 0.091);
    padding: 20px;
    font-family: sans-serif;
    transition: transform 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.card:hover {
    transform: scale(1.02);
}

.card h4 {
    margin: 0 0 10px 0;
    color: #ce4f1d;

}

.card b {
    color: #0d0a0aa3;
    margin-top: 2px;
    font-weight: normal;
    font-size: 14px;
}

.card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.cart-card h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #bf310a;
}
button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

button:hover {
    background-color: #218838;
}
#visitanos {
    padding: 60px 20px;
    text-align: center;
    font-family: sans-serif;
}

#visitanos h1 {
    color: #e65c00;
    font-size: 32px;
    margin-bottom: 30px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.map-container {
    width: 100%;
    max-width: 600px;    
    height: 300px;       
    margin: 0 auto;      
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


h1 {
    text-align: center;

}

h3 {
    color: #bf310a;
}

footer {
    background-color: rgba(235, 86, 12, 0.422);
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-family: sans-serif;
}
#footermenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#footermenu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 10px 0;
    list-style: none;
}

#footermenu p {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
    max-width: 90%;
}
footer h3 {
    margin-bottom: 10px;
    text-align: center;
}

footer .socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    list-style: none;
    margin-top: 10px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffe3c3;
}

footer p {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.socials li i {
    margin-right: 8px;
    font-size: 18px;
}



/* Card del carrito */
.cart-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

#cart {
    list-style-type: none;
    padding: 0;
    text-align: left;
    margin-bottom: 15px;
}

#cart li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.trash-icon {
    color: red;
    cursor: pointer;
    font-size: 14px;
}

#total {
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0;
}

#btn-comprar {
    background-color: #ff5100;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

#btn-comprar:hover {
    background-color: #b34800;
}

@media screen and (max-width: 768px) {
    header {
        display: flex;               /* para tener control */
        flex-direction: column;      /* poner todo en columna: logo - titulo - menu */
        align-items: center;
        text-align: center;
        padding: 20px 10px; 
    }

    #logo-container {
        order: 1;                   /* opcional, para asegurarte orden */
        margin-bottom: 10px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    #titulo {
        order: 2;                   /* aparece debajo del logo */
        margin: 10px 0;
        font-size: 2rem;
        width: 100%;
    }

    .menu {
        order: 3;                   /* debajo del titulo */
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 10px;          /* un poco de espacio */
    }

    .lista-nav {
        display: flex;
        flex-direction: row;       /* horizontal menu debajo del título */
        justify-content: center;
        gap: 15px;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .lista-nav li {
        width: auto;
        text-align: center;
    }

    .lista-nav a {
        display: block;
        padding: 10px 15px;
        width: auto;
    }
}