/* ============ 07b · Productos de la tienda ============
   Sección oscura (fondo alternativo), justo después de Servicios:
   «lo hacemos a medida… o llévate algo ya hecho». Hasta tres tarjetas
   con imagen, precio y dos acciones. Los datos vienen de /tienda/.
   ============================================================ */

.productos-tienda__lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

/* Con uno o dos productos, las tarjetas no se estiran a todo el ancho */
.productos-tienda__lista:has(> :only-child) { grid-template-columns: minmax(0, 560px); }
.productos-tienda__lista:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 560px)); }

.producto-tienda {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 29, 66, .7) 0%, rgba(10, 22, 52, .5) 100%);
    transition: transform .2s ease, border-color .2s ease;
}

.producto-tienda:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.producto-tienda__imagen { display: block; overflow: hidden; background: var(--surface-2); }

.producto-tienda__imagen img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .5s ease;
}

.producto-tienda:hover .producto-tienda__imagen img { transform: scale(1.04); }

.producto-tienda__vacia {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    color: var(--blue-soft);
    background: radial-gradient(circle at 50% 40%, rgba(31, 111, 255, .3) 0%, transparent 65%);
}

.producto-tienda__cuerpo {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.producto-tienda__tipo {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(61, 139, 255, .14);
    color: var(--blue-soft);
    font-size: .74rem;
    font-weight: 700;
}

.producto-tienda h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.producto-tienda h3 a:hover { color: var(--blue-soft); }
.producto-tienda__cuerpo > p { color: var(--text-muted); font-size: .94rem; }

.producto-tienda__precio {
    margin-top: auto;
    padding-top: 6px;
    color: var(--text-muted);
    font-size: .9rem;
}

.producto-tienda__precio b {
    color: var(--text);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.producto-tienda__precio small { display: block; font-size: .78rem; font-weight: 600; }

.producto-tienda__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.producto-tienda__acciones .boton { flex: 1 1 auto; padding-inline: 20px; }

@media (max-width: 760px) {
    .productos-tienda__lista,
    .productos-tienda__lista:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
}
