body {
    background: #f8fafb;
}
.contenedor {
    max-width: 1220px;
    margin: 100px auto 40px auto;
    padding: 0 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 14px rgba(34,34,34,0.06);
}

.titulo {
    color: #1976d2;
    text-align: center;
    font-size: 2rem;
    margin-top: 10px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.bienvenida {
    text-align: center;
    font-size: 1.05rem;
    color: #222;
    margin-bottom: 13px;
}
.bienvenida a {
    color: #1976d2;
    text-decoration: underline;
    font-weight: 600;
}

.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: #f3f6fa;
    border-radius: 14px;
    padding: 16px 13px 10px 13px;
    margin-bottom: 18px;
    justify-content: center;
}
.filtros select,
.filtros input[type="text"],
.filtros input[type="number"] {
    padding: 8px 13px;
    border-radius: 7px;
    border: 1.3px solid #d0d7df;
    background: #f7fafd;
    font-size: 1rem;
    min-width: 120px;
    outline: none;
    color: #222;
    margin-bottom: 6px;
}
.filtros select:focus,
.filtros input[type="text"]:focus,
.filtros input[type="number"]:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px #1976d233;
}
.btn-filtrar, .btn.limpiar {
    background: #1976d2;
    color: #fff;
    border-radius: 7px;
    border: none;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 6px;
    transition: background 0.17s;
    cursor: pointer;
}
.btn.limpiar {
    background: #e53935;
    margin-right: 0;
}
.btn-filtrar:hover {
    background: #155a9a;
}
.btn.limpiar:hover {
    background: #b71c1c;
}

.subtitulo {
    color: #1976d2;
    font-weight: 700;
    font-size: 1.17rem;
    margin-bottom: 17px;
    margin-top: 16px;
    letter-spacing: 1px;
    text-align: left;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}
.producto-card {
    background: #f7fafd;
    border-radius: 17px;
    box-shadow: 0 1.5px 8px rgba(34,34,34,0.06);
    display: flex;
    flex-direction: column;
    padding: 13px 12px 13px 12px;
    min-height: 335px;
    justify-content: flex-start;
    border: 1.7px solid #eaf3fb;
    position: relative;
    transition: box-shadow 0.17s, border 0.17s;
}
.producto-card:hover {
    box-shadow: 0 6px 24px rgba(34,34,34,0.12);
    border-color: #1976d2;
}
.producto-imagen {
    width: 100%;
    height: 130px;
    background: #f3f6fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}
.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sin-imagen {
    color: #c3c3c3;
    font-size: 0.98rem;
    text-align: center;
}
.producto-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nombre-producto {
    font-size: 1.12rem;
    color: #1976d2;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 0;
    text-align: center;
}
.producto-tags {
    margin-bottom: 6px;
    text-align: center;
}
.tag {
    display: inline-block;
    background: #1976d2;
    color: #fff;
    font-size: 0.85rem;
    padding: 3.5px 11px;
    border-radius: 11px;
    margin: 2px 3px 2px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.tag-color {
    background: #222;
    color: #fff;
}
.producto-desc {
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 7px;
    min-height: 25px;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.precios-centro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    margin-bottom: 6px;
    gap: 1px;
}
.precio-normal {
    color: #e53935;
    font-size: 1.14rem;
    font-weight: 700;
    text-align: center;
}
.precio-tachado {
    color: #bbb;
    font-size: 1.03rem;
    text-decoration: line-through;
    margin-bottom: 2px;
}
.precio-descuento {
    color: #e53935;
    font-size: 1.23rem;
    font-weight: bold;
    margin-top: 2px;
    text-align: center;
}

.producto-acciones.cuadrado {
    display: flex;
    gap: 9px;
    margin-top: 14px;
    justify-content: center;
    width: 100%;
    align-items: center;
}
.producto-acciones.cuadrado form {
    width: 48%;
    margin: 0;
    display: flex;
    justify-content: center;
}
.btn-cuadrado {
    width: 100%;
    border-radius: 9px;
    border: none;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 9px 0;
    text-align: center;
    cursor: pointer;
    transition: background 0.17s, color 0.17s, border 0.17s;
    letter-spacing: 0.5px;
    box-shadow: 0 0.7px 5px rgba(34,34,34,0.04);
    margin: 0;
    background: #fff;
    color: #1976d2;
    border: 2.1px solid #1976d2;
    display: inline-block;
    outline: none;
    min-width: 86px;
    max-width: 140px;
}
.btn-cuadrado.btn-carrito {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}
.btn-cuadrado.btn-carrito:hover {
    background: #155a9a;
    border-color: #155a9a;
    color: #fff;
}
.btn-cuadrado.btn-comprar {
    background: #fff;
    color: #1976d2;
    border: 2.1px solid #1976d2;
}
.btn-cuadrado.btn-comprar:hover {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

.descuento-label {
    position: absolute;
    top: 13px;
    right: 13px;
    background: #e53935;
    color: #fff;
    font-size: 0.98rem;
    font-weight: bold;
    padding: 5px 17px;
    border-radius: 15px;
    box-shadow: 0 1px 5px rgba(34,34,34,0.07);
    letter-spacing: 1px;
    z-index: 5;
    text-align: center;
}

.sin-resultados {
    text-align: center;
    color: #c32d2d;
    font-size: 1.09rem;
    margin: 25px 0 35px 0;
}

.modal-compra {
    display: none;
    position: fixed;
    z-index: 1200;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.20);
    justify-content: center;
    align-items: center;
}
.modal-compra-contenido {
    background: #fff;
    border-radius: 16px;
    padding: 36px 27px 24px 27px;
    max-width: 340px;
    width: 95vw;
    box-shadow: 0 4px 32px rgba(34,34,34,0.13);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.15s;
}
.modal-cerrar:hover {
    color: #e53935;
}
#formComprar label {
    margin-top: 6px;
    font-weight: 600;
    font-size: 1.04rem;
    color: #1976d2;
}
#formComprar input,
#formComprar select,
#formComprar textarea {
    width: 100%;
    padding: 8px;
    border-radius: 7px;
    border: 1.3px solid #d0d7df;
    background: #f7fafd;
    font-size: 1rem;
    margin-bottom: 7px;
}
.btn-modal-ubi {
    background: #1976d2;
    color: #fff;
    border-radius: 7px;
    border: none;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 1rem;
    margin: 10px 0 3px 0;
    cursor: pointer;
    transition: background 0.16s;
}
.btn-modal-ubi:hover {
    background: #155a9a;
}
.btn-modal-confirmar {
    width: 100%;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.16s;
}
.btn-modal-confirmar:hover {
    background: #a92417;
}
.ubicacion-resultado {
    font-size: 0.95rem;
    color: #1976d2;
    margin-top: 3px;
    margin-bottom: 7px;
}
@media (max-width: 700px) {
    .contenedor {
        padding: 8px 2vw 10px 2vw;
        margin-top: 85px;
    }
    .titulo {
        font-size: 1.13rem;
    }
    .filtros {
        padding: 12px 4px 8px 4px;
        gap: 7px;
    }
    .productos-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }
    .producto-card {
        padding: 8px 4px 7px 4px;
        min-height: 210px;
    }
    .producto-acciones.cuadrado {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin-top: 14px;
    }
    .producto-acciones.cuadrado form {
        width: 98%;
        justify-content: center;
    }
    .btn-cuadrado {
        min-width: 110px;
        max-width: 260px;
        font-size: 1rem;
        padding: 12px 0;
    }
    .modal-compra {
    display: none;
    position: fixed;
    z-index: 1200;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.20);
    justify-content: center;
    align-items: center;
}

}
.modal-compra {
    display: none;
    position: fixed;
    z-index: 1200;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.2);
    justify-content: center;
    align-items: center;
}

.modal-compra-contenido {
    background: #fff;
    border-radius: 16px;
    padding: 36px 27px 24px 27px;
    max-width: 340px;
    width: 95vw;
    box-shadow: 0 4px 32px rgba(34,34,34,0.13);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.15s;
}

.modal-cerrar:hover {
    color: #e53935;
}

#formComprar label {
    margin-top: 6px;
    font-weight: 600;
    font-size: 1.04rem;
    color: #1976d2;
}

#formComprar input,
#formComprar select,
#formComprar textarea {
    width: 100%;
    padding: 8px;
    border-radius: 7px;
    border: 1.3px solid #d0d7df;
    background: #f7fafd;
    font-size: 1rem;
    margin-bottom: 7px;
}

.btn-modal-confirmar {
    width: 100%;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s;
}

.btn-modal-confirmar:hover {
    background: #a92417;
}

#formComprar button[type="button"] {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.16s;
}

#formComprar button[type="button"]:hover {
    background: #155a9a;
}

#ubicacionResultado {
    font-size: 0.95rem;
    color: #1976d2;
    margin-top: 3px;
    margin-bottom: 7px;
}
/* Carrito flotante centrado en móvil */
#boton-carrito-flotante {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1171c6;
    color: #fff;
    padding: 13px 26px;
    border-radius: 28px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 3px 14px rgba(0,0,0,0.15);
    display: none;
    text-decoration: none;
    z-index: 2001;
}
@media (max-width: 600px) {
    #boton-carrito-flotante {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}
.titulo-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    flex-wrap: wrap;
}
.btn-ver-todos-pc {
    background: #1976d2;
    color: #fff;
    padding: 12px 25px;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: background .13s;
    margin-left: 14px;
}
.btn-ver-todos-pc:hover { background: #13508a; }
@media (max-width: 700px) {
    .titulo-barra { flex-direction: column; align-items: flex-start; }
    .btn-ver-todos-pc { display: none !important; }
}
.btn-ver-todos-mob {
    display: none;
    width: 100%;
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 1.07rem;
    padding: 13px 0;
    font-weight: 700;
    margin: 16px 0 0 0;
    text-align: center;
    text-decoration: none;
}
@media (max-width: 700px) {
    .btn-ver-todos-mob { display: block !important; }
}
.categoria-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 12px;
}
.btn-ver-todos-pc {
    background: #1976d2;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.99rem;
    transition: background .13s;
    margin-left: 14px;
    display: inline-block;
}
.btn-ver-todos-pc:hover { background: #13508a; }
@media (max-width: 700px) {
    .categoria-header { flex-direction: column; align-items: flex-start; gap: 2px;}
    .btn-ver-todos-pc { display: none !important; }
}
.btn-ver-todos-mob {
    display: none;
    width: 100%;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    padding: 13px 0;
    font-weight: 700;
    margin: 16px 0 0 0;
    text-align: center;
    text-decoration: none;
}
@media (max-width: 700px) {
    .btn-ver-todos-mob { display: block !important; }
}
.producto-card {
    transition: box-shadow 0.18s, transform 0.16s;
}
.producto-card:hover {
    box-shadow: 0 8px 28px rgba(34,34,34,0.18);
    transform: translateY(-5px) scale(1.03);
    z-index: 2;
}
.detalles-tienda {
    background: #fff;
    border-radius: 17px;
    box-shadow: 0 6px 28px rgba(34,34,34,0.07);
    margin: 38px auto 30px auto;
    max-width: 650px;
    padding: 36px 30px 28px 30px;
    position: relative;
    animation: aparecerTienda 0.9s cubic-bezier(.42,0,.52,1.04);
}

@keyframes aparecerTienda {
    0% { opacity:0; transform:translateY(60px);}
    100%{ opacity:1; transform:translateY(0);}
}

.tienda-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 7px;
    color: #1976d2;
    gap: 12px;
}

.tienda-redes {
    display: flex;
    gap: 7px;
    animation: moverRedes 1.9s infinite alternate cubic-bezier(.64,-0.15,.42,1.15);
}
@keyframes moverRedes {
    0% { transform: translateY(0);}
    100%{ transform: translateY(-8px);}
}
.red-icon {
    width: 37px; height: 37px;
    background: #f2f2f2;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.38rem;
    color: #1976d2;
    box-shadow: 0 2px 12px #e5e5e5;
    transition: background .18s, color .16s, transform .17s;
    margin-right: 3px;
    text-decoration: none;
}
.red-icon.whatsapp { color: #25D366; }
.red-icon.facebook { color: #1877f3; }
.red-icon.instagram { color: #f04a7a; }
.red-icon:hover {
    background: #1976d2;
    color: #fff;
    transform: scale(1.13) rotate(-5deg);
}

.tienda-direccion {
    margin: 8px 0 18px 0;
    font-size: 1.08rem;
    color: #222;
}

.btn-mapa-mejorado {
    display: inline-block;
    background: #1171c6;
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 9px;
    font-weight: 700;
    margin-bottom: 19px;
    font-size: 1.07rem;
    box-shadow: 0 2px 10px #f6b48a4b;
    text-decoration: none;
    transition: background .14s, box-shadow .15s;
}
.btn-mapa-mejorado:hover {
    background: #d84d00;
    box-shadow: 0 5px 24px #ff66005b;
}

.mapa-embed {
    margin-top: 16px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px #e8e8e8;
}
@media (max-width:700px) {
    .detalles-tienda {
        max-width: 98vw;
        padding: 18px 4vw 18px 4vw;
    }
    .tienda-titulo { font-size: 1.18rem;}
    .tienda-redes .red-icon { width:30px; height:30px; font-size:1rem;}
}
