/* Home: franja de confianza, categorías, carriles de productos y tarjetas de Club / Personalizados / Gift Cards.
   core-style.css pone los <a> casi blancos y de 12px: acá todo link lleva color y tamaño propios. */

:root {
    --pb-verde: #00823F;
    --pb-verde-osc: #005f2e;
    --pb-tinta: #1d1d1b;
    --pb-gris: #6b6b66;
    --pb-borde: #e7e5df;
    --pb-crema: #f6f4ef;
}

.pb-home-bloque { padding: 40px 0 8px; }
.pb-home-bloque + .pb-home-bloque { padding-top: 32px; }

/* ===== Encabezados de sección ===== */
.pb-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pb-home-head h2 { font-size: 28px; line-height: 1.1; margin: 0; color: var(--pb-tinta); text-transform: none; letter-spacing: 0; }
.pb-home-head p { margin: 6px 0 0; font-size: 15px; color: var(--pb-gris); line-height: 1.4; }
.pb-home-head-acc { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pb-home-head a.pb-ver-todo, .pb-home-head a.pb-ver-todo:hover { color: var(--pb-verde); font-size: 15px; font-weight: 600; white-space: nowrap; margin-right: 6px; }
.pb-home-head a.pb-ver-todo::after { content: " →"; }
.pb-home-head a.pb-ver-todo:hover { color: var(--pb-verde-osc); text-decoration: underline; }
.pb-carril-flecha { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--pb-borde); background: #fff; color: var(--pb-tinta);
    font-size: 24px; line-height: 1; padding: 0 0 3px; cursor: pointer; transition: background .15s, border-color .15s; }
.pb-carril-flecha:hover:not(:disabled) { border-color: var(--pb-tinta); background: var(--pb-tinta); color: #fff; }
.pb-carril-flecha:disabled { opacity: .35; cursor: default; }
.pb-carril-flecha:focus-visible, .pb-carril:focus-visible { outline: 2px solid var(--pb-verde); outline-offset: 2px; }

/* ===== Franja de confianza ===== */
.pb-confianza { border-bottom: 1px solid var(--pb-borde); background: #fff; }
.pb-confianza-lista { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pb-confianza-lista li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pb-confianza-lista svg { width: 34px; height: 34px; flex-shrink: 0; padding: 7px; border-radius: 50%; background: #e8f4ed;
    fill: none; stroke: var(--pb-verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pb-confianza-lista span, .pb-confianza-lista a, .pb-confianza-lista a:hover { font-size: 13px; line-height: 1.3; color: var(--pb-gris); }
.pb-confianza-lista b { display: block; font-size: 14px; color: var(--pb-tinta); font-weight: 700; }
.pb-confianza-lista a:hover b { color: var(--pb-verde); }

/* ===== Comprar por categoría ===== */
.pb-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pb-cats a.pb-cat, .pb-cats a.pb-cat:hover { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--pb-tinta); font-size: 15px;
    background: var(--pb-crema); border-radius: 16px; padding: 16px 12px 18px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.pb-cats a.pb-cat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(29, 29, 27, .08); }
.pb-cat-foto { display: block; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 12px; }
.pb-cat-foto img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.pb-cats a.pb-cat:hover .pb-cat-foto img { transform: scale(1.05); }
.pb-cat-nombre { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; }
.pb-cat-precio { display: block; margin-top: 4px; font-size: 13px; color: var(--pb-gris); }

/* ===== Carriles de productos ===== */
.pb-carril { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 0;
    padding: 4px 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pb-carril::-webkit-scrollbar { display: none; }
.pb-carril > * { flex: 0 0 calc((100% - 3 * 20px) / 4.3); max-width: none; padding: 0; scroll-snap-align: start; }
.pb-carril .single-product-wrapper { margin-bottom: 0; height: 100%; }
.pb-carril .single-product-wrapper .product-img { border-radius: 12px; background: var(--pb-crema); }
/* igual que las tiles de formato: el blanco de la foto se funde con el crema (style.css le pone fondo blanco en celular) */
.pb-carril .single-product-wrapper .product-img img { aspect-ratio: 1 / 1; object-fit: contain; background: transparent; mix-blend-mode: multiply; }

/* ===== Club / Personalizados / Gift Cards ===== */
.pb-destacados { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pb-dest { position: relative; display: flex; flex-direction: column; border-radius: 20px; padding: 26px 24px 24px; overflow: hidden; min-height: 300px; }
.pb-dest[hidden] { display: none; }
.pb-dest-arte { height: 72px; margin-bottom: 18px; display: flex; align-items: center; }
.pb-dest-arte svg { height: 64px; width: auto; }
.pb-dest-txt { flex: 1; }
.pb-dest h2 { font-size: 24px; line-height: 1.15; margin: 0 0 8px; color: inherit; }
.pb-dest p { margin: 0; font-size: 15px; line-height: 1.5; color: inherit; opacity: .85; }
.pb-dest-tag { position: absolute; top: 24px; right: 24px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.pb-dest-acc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; }
.pb-dest a.pb-dest-btn, .pb-dest a.pb-dest-btn:hover { display: inline-block; font-size: 15px; font-weight: 700; padding: 12px 20px; border-radius: 10px; text-decoration: none;
    -webkit-user-select: none; user-select: none; caret-color: transparent; transition: transform .15s ease, filter .15s ease; }
.pb-dest a.pb-dest-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pb-dest a.pb-dest-link, .pb-dest a.pb-dest-link:hover { font-size: 14px; text-decoration: underline; color: inherit; }

.pb-dest--club { background: radial-gradient(circle at 100% 0, #0f9d52 0, transparent 55%), #00592b; color: #fff; }
.pb-dest--club .pb-dest-arte { color: #b8f0cf; }
.pb-dest--club .pb-dest-tag { background: #ffd23f; color: #3a2e00; }
.pb-dest--club a.pb-dest-btn, .pb-dest--club a.pb-dest-btn:hover { background: #fff; color: #00592b; }

.pb-dest--perso { background: radial-gradient(circle at 100% 0, #dcefe3 0, transparent 55%), var(--pb-crema); color: var(--pb-tinta); border: 1px solid var(--pb-borde); }
.pb-dest--perso .pb-dest-arte { color: var(--pb-verde); }
.pb-dest--perso a.pb-dest-btn, .pb-dest--perso a.pb-dest-btn:hover { background: var(--pb-tinta); color: #fff; }

.pb-dest--gc { background: radial-gradient(circle at 100% 0, #3a3a44 0, transparent 60%), #16161a; color: #f4f4f6; }
.pb-dest--gc a.pb-dest-btn, .pb-dest--gc a.pb-dest-btn:hover { background: linear-gradient(100deg, #c49a33, #fbe9a2 50%, #c49a33); color: #2e2206; }
.pb-dest-tarjeta { position: relative; width: 116px; height: 72px; border-radius: 10px; padding: 9px 11px; transform: rotate(-6deg);
    background: linear-gradient(125deg, #7a5a14, #fbe9a2 45%, #c49a33 70%, #7a5a14); color: #2e2206; box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
    font-family: "Russo One", sans-serif; transition: transform .3s ease; }
.pb-dest--gc:hover .pb-dest-tarjeta { transform: rotate(-2deg) translateY(-2px); }
.pb-dest-tarjeta span { display: block; font-size: 7px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.pb-dest-tarjeta b { display: block; font-weight: 400; font-size: 14px; margin-top: 2px; }
.pb-dest-tarjeta i { position: absolute; left: 11px; bottom: 10px; width: 18px; height: 13px; border-radius: 3px; background: linear-gradient(135deg, #f7e7a8, #b8912e); }

/* ===== Tablet ===== */
@media (max-width: 991px) {
    .pb-confianza-lista { grid-template-columns: repeat(2, 1fr); }
    .pb-cats { grid-template-columns: repeat(3, 1fr); }
    .pb-carril > * { flex-basis: calc((100% - 2 * 16px) / 3.2); }
    .pb-carril { gap: 16px; }
}

/* ===== Celular ===== */
@media (max-width: 767px) {
    .pb-home-bloque { padding-top: 28px; }
    .pb-home-bloque + .pb-home-bloque { padding-top: 24px; }
    .pb-home-head { margin-bottom: 14px; }
    .pb-home-head h2 { font-size: 22px; }
    .pb-home-head p { font-size: 14px; }
    .pb-carril-flecha { display: none; }

    /* la franja de confianza se desliza en una línea */
    .pb-confianza-lista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 14px 0; gap: 20px; }
    .pb-confianza-lista::-webkit-scrollbar { display: none; }
    .pb-confianza-lista li { flex: 0 0 auto; scroll-snap-align: start; }

    /* categorías: tira deslizable, asoma la siguiente */
    .pb-cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; margin: 0 -15px; padding: 0 15px 4px; scroll-padding-left: 15px; }
    .pb-cats::-webkit-scrollbar { display: none; }
    .pb-cats a.pb-cat { flex: 0 0 38%; scroll-snap-align: start; padding: 12px 8px 14px; border-radius: 14px; }
    .pb-cat-nombre { font-size: 14px; }

    /* productos: ~2,2 tarjetas, de borde a borde */
    .pb-carril { gap: 12px; margin: 0 -15px; padding-left: 15px; padding-right: 15px; scroll-padding-left: 15px; }
    .pb-carril > * { flex-basis: 44%; }

    .pb-dest { min-height: 0; padding: 22px 20px 20px; }
    .pb-dest-arte { height: 56px; margin-bottom: 12px; }
    .pb-dest-arte svg { height: 50px; }
    .pb-dest h2 { font-size: 21px; }
    .pb-dest a.pb-dest-btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .pb-cats a.pb-cat, .pb-cat-foto img, .pb-dest-tarjeta, .pb-dest a.pb-dest-btn { transition: none; }
    .pb-carril { scroll-behavior: auto; }
}
.pb-cats-area:not(:has(.pb-cat)) { display: none; }
