/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ESTILOS GENERALES */

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f7f5f0;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* HEADER */

header {
    background-color: #ffffff;
    padding: 1.2rem 5%;
    border-bottom: 1px solid #e5e5e5;
}

nav {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.6rem;
    color: #3d3025;
}

.nav-links {
    list-style: none;

    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #8a6845;
}

/* HERO */

.hero {
    min-height: 70vh;

    display: flex;
    align-items: center;

    padding: 4rem 5%;

    background-image: linear-gradient(
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.35)
    ),
    url("img/hero.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 600px;
    color: white;

    animation: aparecer 1s ease-out;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* BOTONES */

.btn {
    display: inline-block;

    padding: 0.8rem 1.5rem;

    background-color: #8a6845;
    color: white;

    border-radius: 5px;

    font-weight: bold;

    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #6d5035;
}

/* SECCIONES */

section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.3rem;
    color: #3d3025;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: #666;
}

/* CATEGORÍAS */

.categorias {
    background-color: #ffffff;
}

.categorias-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.categoria {
    padding: 2rem;

    background-color: #f7f5f0;

    border-radius: 10px;

    text-align: center;

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.categoria h3 {
    color: #3d3025;
    margin-bottom: 0.8rem;
}

.categoria p {
    color: #666;
    font-size: 0.95rem;
}

.categoria:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* PRODUCTOS */

.productos {
    background-color: #f7f5f0;
}

.productos-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.producto {
    background-color: #ffffff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.producto:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);

    transform: scale(1.05);
}

.producto .btn {
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
}

.producto .btn:hover {
    transform: translateY(-2px);
}

.producto img {
    width: 100%;
    height: 250px;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.producto-info {
    padding: 1.5rem;
}

.producto-info h3 {
    color: #3d3025;
    margin-bottom: 0.5rem;
}

.producto-info p {
    color: #666;
    margin-bottom: 1rem;
}

.precio {
    display: block;

    font-size: 1.3rem;
    font-weight: bold;

    color: #8a6845;

    margin-bottom: 1.2rem;
}

/* SOBRE NOSOTROS */

.nosotros {
    background-color: #ffffff;
}

.nosotros-content {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;

    align-items: center;
}

.nosotros-text h2 {
    font-size: 2.3rem;
    color: #3d3025;
    margin-bottom: 1.5rem;
}

.nosotros-text p {
    color: #666;
    margin-bottom: 1rem;
}

.nosotros-image img {
    width: 100%;
    height: 400px;

    object-fit: cover;

    border-radius: 10px;
}

/* CONTACTO */

.contacto {
    background-color: #3d3025;
    color: white;
    text-align: center;
}

.contacto .section-header h2 {
    color: white;
}

.contacto .section-header p {
    color: #e0e0e0;
}

.contacto-info {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contacto-info p {
    margin-bottom: 0.7rem;
}

.contacto-info strong {
    color: #d8b98c;
}

/* FOOTER */

footer {
    background-color: #29231e;
    color: white;

    padding: 3rem 5% 1.5rem;

    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content h2 {
    margin-bottom: 0.5rem;
}

.footer-content p {
    color: #bdbdbd;
}

.social-links {
    margin-top: 1.5rem;

    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: #d8b98c;

    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.copyright {
    margin-top: 2rem;

    padding-top: 1.5rem;

    border-top: 1px solid #49413a;

    font-size: 0.85rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    /* HEADER */

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }


    /* HERO */

    .hero {
    min-height: 70vh;

    display: flex;
    align-items: center;

    padding: 4rem 5%;

    background-image: linear-gradient(
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.35)
    ),
    url("img/hero.jpg");

    background-size: cover;
    background-position: center;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }


    /* CATEGORÍAS */

    .categorias-container {
        grid-template-columns: repeat(2, 1fr);
    }


    /* PRODUCTOS */

    .productos-container {
        grid-template-columns: 1fr;
    }


    /* NOSOTROS */

    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nosotros-image img {
        height: 300px;
    }

}

/* CELULARES PEQUEÑOS */

@media (max-width: 480px) {

    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .categorias-container {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 6%;
    }

    .whatsapp-float {
    width: 55px;
    height: 55px;

    right: 18px;
    bottom: 18px;

    font-size: 1.6rem;
    }

}

/* WHATSAPP FLOTANTE */

.whatsapp-float {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 60px;
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #25D366;
    color: white;

    border-radius: 50%;

    font-size: 1.8rem;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    z-index: 1000;

    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.logo img {
    width: 300px;
    height: auto;
}

/* FILTROS */

.filtros {
    max-width: 1200px;
    margin: 0 auto 2.5rem;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filtro {
    padding: 0.7rem 1.3rem;

    border: 1px solid #8a6845;
    border-radius: 5px;

    background-color: transparent;
    color: #8a6845;

    font-family: inherit;
    font-size: 0.95rem;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease;
}

.filtro:hover {
    background-color: #8a6845;
    color: white;

    transform: translateY(-2px);
}

.filtro.activo {
    background-color: #8a6845;
    color: white;
}

/* BUSCADOR */

.buscador {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.buscador input {
    width: 100%;
    padding: 0.9rem 1.2rem;

    border: 1px solid #ddd;
    border-radius: 6px;

    font-family: inherit;
    font-size: 1rem;

    outline: none;

    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.buscador input:focus {
    border-color: #8a6845;
    box-shadow: 0 0 0 3px rgba(138, 104, 69, 0.1);
}

.sin-resultados {
    display: none;

    text-align: center;
    margin: 2rem 0;

    color: #777;
}

/* MODAL DE PRODUCTOS */

.modal {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.85);

    display: none;

    justify-content: center;
    align-items: center;

    padding: 1.5rem;

    z-index: 2000;
}

.modal.activo {
    display: flex;
}


/* CONTENIDO */

.modal-contenido {
    position: relative;

    width: 100%;
    max-width: 850px;

    max-height: 90vh;

    background-color: white;

    border-radius: 15px;

    overflow: hidden;

    display: flex;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}


/* IMAGEN */

.modal-imagen {
    width: 55%;

    max-height: 90vh;

    object-fit: cover;
}


/* INFORMACIÓN */

.modal-info {
    width: 45%;

    padding: 3rem 2.5rem;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.modal-info h2 {
    font-size: 2rem;

    margin-bottom: 1rem;
}

.modal-info p {
    color: #666;

    line-height: 1.6;

    margin-bottom: 1.5rem;
}

.modal-precio {
    font-size: 1.7rem;

    font-weight: bold;

    margin-bottom: 2rem;
}


/* BOTÓN WHATSAPP */

.modal-whatsapp {
    text-align: center;

    text-decoration: none;
}

.modal-whatsapp i {
    margin-right: 8px;
}


/* BOTÓN CERRAR */

.modal-cerrar {
    position: absolute;

    top: 15px;
    right: 20px;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background-color: rgba(0, 0, 0, 0.6);

    color: white;

    font-size: 1.8rem;

    cursor: pointer;

    z-index: 10;
}

.modal-cerrar:hover {
    transform: scale(1.1);
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .modal-contenido {
        flex-direction: column;

        max-height: 90vh;

        overflow-y: auto;
    }

    .modal-imagen {
        width: 100%;

        height: 300px;
    }

    .modal-info {
        width: 100%;

        padding: 1.5rem;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    .modal-precio {
        font-size: 1.4rem;
    }

}