/* =========================================================
   MUSÉ TENTACIÓN · CATÁLOGO (listado de productos)
   Usa las variables de color definidas en style.css.
   Celular primero.
========================================================= */

/* ===========================
   CABECERA
=========================== */

.cabecera-listado {
    position: relative;

    min-height: 240px;
    padding: 56px 20px 70px;

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

    text-align: center;

    background:
        radial-gradient(circle at 85% 25%, rgba(239, 129, 153, 0.25) 0, rgba(239, 129, 153, 0) 40%),
        radial-gradient(circle at 10% 85%, rgba(251, 179, 193, 0.5) 0, rgba(251, 179, 193, 0) 40%),
        var(--rosa-niebla);
    color: var(--chocolate);
}

/* Onda crema al pie de la cabecera */
.cabecera-listado::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 36px;

    background: var(--onda-crema) center bottom / 100% 100% no-repeat;
}

.cabecera-listado p {
    margin-bottom: 6px;

    color: var(--frutilla-intensa);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 3px;
    text-transform: uppercase;
}

.cabecera-listado h1 {
    font-family: var(--fuente-titulos);
    font-size: clamp(42px, 11vw, 72px);
    font-weight: 400;
    line-height: 1.1;
}

.cabecera-listado span {
    margin-top: 10px;

    color: var(--chocolate-suave);

    font-size: 14px;
    font-weight: 600;
}

/* ===========================
   LISTADO
=========================== */

.listado-productos {
    min-height: 500px;

    padding: 36px 16px 80px;

    background: var(--crema);
    color: var(--chocolate);
}

.barra-listado {
    max-width: 1400px;

    margin: 0 auto 24px;

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

    gap: 12px;
}

.barra-listado p {
    color: var(--chocolate-suave);

    font-size: 14px;
    font-weight: 600;
}

.barra-listado select {
    min-width: 170px;
    height: 42px;

    padding: 0 40px 0 18px;

    color: var(--chocolate);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355241a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat,
        var(--blanco);

    border: 1.5px solid var(--rosa-claro);
    border-radius: var(--pildora);
    outline: none;

    font-size: 14px;
    font-weight: 700;

    -webkit-appearance: none;
    appearance: none;

    cursor: pointer;
}

.barra-listado select:focus {
    border-color: var(--frutilla);
    box-shadow: 0 0 0 4px rgba(239, 129, 153, 0.18);
}

.grilla-listado {
    max-width: 1400px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

/* ===========================
   TARJETA DE PRODUCTO
=========================== */

.producto-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 10px;

    background: var(--blanco);

    border-radius: var(--radio-grande);
    box-shadow: var(--sombra-suave);

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

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.producto-card-link {
    display: block;

    color: inherit;
    text-decoration: none;

    cursor: pointer;
}

.producto-card-imagen {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: var(--rosa-niebla);

    border-radius: calc(var(--radio-grande) - 8px);
}

.producto-card-imagen img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.producto-card:hover .producto-card-imagen img {
    transform: scale(1.06);
}

.producto-card-etiqueta {
    position: absolute;
    top: 12px;
    left: 12px;

    z-index: 2;

    padding: 6px 12px;

    color: var(--chocolate);
    background: var(--rosa-claro);

    border-radius: var(--pildora);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.producto-card-info {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 16px 10px 10px;

    text-align: center;
}

.producto-card-info h2 {
    margin-bottom: 4px;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.producto-titulo-link {
    color: inherit;
    text-decoration: none;

    transition: color 0.25s ease;
}

.producto-card:hover .producto-titulo-link {
    color: var(--frutilla-intensa);
}

.producto-card-material {
    margin-bottom: 6px;

    color: var(--chocolate-suave);

    font-size: 13px;
    font-weight: 600;

    text-transform: capitalize;
}

.producto-card-material:empty,
.producto-card-descripcion:empty {
    display: none;
}

.producto-card-descripcion {
    margin-bottom: 10px;

    color: var(--chocolate-suave);

    font-size: 14px;
    line-height: 1.55;
}

.producto-card-precio {
    display: block;

    margin: auto 0 10px;
    padding-top: 4px;

    color: var(--frutilla-intensa);

    font-size: 22px;
    font-weight: 800;
}

.producto-card-acciones {
    width: 100%;

    display: flex;
    justify-content: center;

    margin-top: 6px;
}

.producto-card-acciones a,
.producto-card-acciones button {
    width: 100%;
    max-width: 260px;
    min-height: 46px;

    padding: 0 18px;

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

    border: 2px solid var(--chocolate);
    border-radius: var(--pildora);

    font-family: var(--fuente-texto);
    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.3px;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

/* Botón principal de la tarjeta: rosa con texto chocolate */
.ver-detalle {
    background: var(--frutilla);
    color: var(--chocolate);

    border-color: var(--frutilla) !important;
}

.ver-detalle:hover {
    background: var(--chocolate);
    color: var(--crema);

    border-color: var(--chocolate) !important;
}

.ver-detalle.producto-agotado {
    background: transparent;
    color: var(--chocolate-suave);

    border-color: var(--borde-fuerte) !important;
}

.ver-detalle.producto-agotado:hover {
    background: var(--rosa-niebla);
    color: var(--chocolate);
}

.agregar-desde-listado {
    background: var(--chocolate);
    color: var(--crema);
}

.agregar-desde-listado:hover {
    background: var(--chocolate-hondo);
}

/* ===========================
   STOCK DEL PRODUCTO
=========================== */

.producto-stock {
    width: fit-content;

    margin: 0 auto 10px;
    padding: 5px 12px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--exito);
    background: rgba(63, 122, 82, 0.09);

    border-radius: var(--pildora);

    font-size: 12px;
    font-weight: 700;
}

.producto-stock::before {
    content: "";

    width: 7px;
    height: 7px;

    background: currentColor;
    border-radius: 50%;
}

.producto-stock.sin-stock {
    color: var(--error);
    background: rgba(163, 50, 79, 0.08);
}

/* ===========================
   CATÁLOGO VACÍO
=========================== */

.catalogo-vacio {
    grid-column: 1 / -1;

    width: 100%;
    min-height: 320px;

    padding: 40px 20px;

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

    text-align: center;

    color: var(--chocolate);
    background: var(--blanco);

    border: 2px dashed var(--rosa-claro);
    border-radius: var(--radio-grande);
}

.catalogo-vacio h2 {
    margin: 0 0 10px;

    color: var(--chocolate);

    font-family: var(--fuente-titulos);
    font-size: clamp(32px, 8vw, 46px);
    font-weight: 400;
    line-height: 1.15;
}

.catalogo-vacio p {
    max-width: 430px;

    margin: 0 0 22px;

    color: var(--chocolate-suave);

    font-size: 15px;
    line-height: 1.7;
}

.catalogo-vacio a {
    min-height: 46px;

    padding: 12px 26px;

    color: var(--crema);
    background: var(--chocolate);

    border-radius: var(--pildora);

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    transition: background 0.25s ease;
}

.catalogo-vacio a:hover {
    background: var(--frutilla);
    color: var(--chocolate);
}

/* ===========================
   BENEFICIOS
=========================== */

.beneficios-listado {
    padding: 36px 24px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;

    background: var(--rosa-niebla);
}

.beneficios-listado article {
    padding: 18px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: var(--blanco);

    border-radius: var(--radio);
    box-shadow: var(--sombra-suave);
}

.beneficios-listado strong {
    margin-bottom: 4px;

    color: var(--chocolate);

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.beneficios-listado strong::before {
    content: "♥ ";

    color: var(--frutilla);
}

.beneficios-listado span {
    color: var(--chocolate-suave);

    font-size: 14px;
}

/* =========================================================
   PANTALLAS MÁS GRANDES
========================================================= */

@media (min-width: 560px) {

    .grilla-listado {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

}

@media (min-width: 900px) {

    .cabecera-listado {
        min-height: 300px;
    }

    .listado-productos {
        padding: 50px 5% 100px;
    }

    .grilla-listado {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .beneficios-listado {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;

        padding: 44px 6%;
    }

}

@media (min-width: 1250px) {

    .grilla-listado {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

/* Promo de transferencia debajo del precio (promociones.js) */
.promo-transferencia {
    margin: -4px 0 10px;

    color: var(--chocolate-suave);

    font-size: 13px;
    line-height: 1.4;
}

.promo-transferencia strong {
    color: var(--chocolate);

    font-weight: 800;
}

.promo-transferencia-etiqueta {
    margin-left: 4px;
    padding: 1px 8px;

    display: inline-block;

    color: #fff;
    background: var(--frutilla-intensa);

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
