.tienda-contenedor {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Montserrat', sans-serif;
    color: #000;
}

.fit-title {
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    text-align: left;
    color: #d4a158;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.contenedor-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.producto {
    aspect-ratio: 3/5;
    width: 100%;
    max-width: 290px;
    margin: 1rem;
    padding: 1rem;
    background-size: cover;
    background-position: center;
    color: #f2d28b;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    transition: transform .3s ease;
}

.producto:hover {
    transform: scale(1.05);
}

.producto::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .2));
    z-index: 0;
}

.producto .contenido {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, .5);
    padding: 1rem;
    border-radius: 8px;
    font-size: .9rem;
}

.producto h3 {
    margin: .5rem 0;
    font-size: 1.5rem;
    color: #f2d28b;
}

.producto p {
    margin: .2rem 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal.hidden {
    display: none;
}

.modal h3 {
    margin-top: 0;
    color: #f2d28b;
    text-align: center;
}

.modal-contenido {
    background-color: #827270;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    font-weight: 700;
    width: 90%;
    position: relative;
    box-sizing: border-box;
}

#modal-cerrar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

#form-contacto input,
#form-contacto textarea {
    width: 100%;
    margin: .5rem 0;
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#form-contacto button {
    background-color: #c1916b;
    color: #fff;
    padding: .7rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ===============================
   MEDIA QUERIES
=============================== */

@media (max-width: 992px) {
    .contenedor-productos {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    .producto {
        height: 420px;
        margin: .5rem auto;
    }

    .producto h3,
    .producto h4 {
        font-size: 1.1rem;
    }

    .producto .contenido {
        font-size: .85rem;
        padding: .8rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .contenedor-productos {
        grid-template-columns: 1fr 1fr;
    }

    .producto {
        aspect-ratio: 2/3;
    }

    .producto h3,
    .producto h4 {
        font-size: 1rem;
    }

    .producto .contenido {
        font-size: .8rem;
    }

    .modal-contenido {
        max-width: 95%;
        padding: 1.5rem;
        font-size: .95rem;
    }

    #form-contacto input,
    #form-contacto textarea {
        font-size: .9rem;
    }
}

@media (max-width: 480px) {
    .contenedor-productos {
        grid-template-columns: 1fr;
    }

    .producto {
        height: auto;
        min-height: 320px;
    }

    .producto h3,
    .producto h4 {
        font-size: .95rem;
    }

    .producto p {
        font-size: .8rem;
    }

    .modal {
        align-items: flex-end;
    }

    .modal-contenido {
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 1rem;
        font-size: .9rem;
    }

    #modal-cerrar {
        top: .8rem;
        right: .8rem;
        font-size: 1.3rem;
    }

    #form-contacto button {
        width: 100%;
        padding: .9rem;
    }
}

@media (max-width: 360px) {
    .tienda-contenedor {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }

    .contenedor-productos {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .producto {
        max-width: 100%;
        margin: 0.5rem;
        padding: 0.5rem;
    }
}