/* public/css/tienda/portada.css — estilos de la página (home/index) */
/* Solo lo específico del home. Todo lo de cards, grillas y encabezados
   vive ahora en public/css/components.css — sin duplicar. */

.home-wrap { max-width: 1160px; margin: 0 auto; padding: 44px 32px 72px; }

/* Filtros por ocasión */
.occ-strip {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.occ-pill {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 16px; border-radius: 40px;
    border: 1.5px solid var(--gray-200); background: #fff;
    font-size: .8rem; font-weight: 500; color: var(--gray-700);
    white-space: nowrap; transition: var(--t); text-decoration: none;
}
.occ-pill:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-light); }

/* Fichas con foto por ocasión (desliza de lado en el teléfono; centradas en computadora) */
.occ-tiles { display:flex; gap:12px; overflow-x:auto; -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory;
             padding:4px 2px 12px; margin:0 0 26px; }
.occ-tile { position:relative; flex:0 0 140px; height:160px; border-radius:18px; overflow:hidden; scroll-snap-align:start;
            background:linear-gradient(135deg,#fdf2f8,#fce7f3); display:flex; align-items:flex-end; text-decoration:none;
            box-shadow:0 4px 14px rgba(0,0,0,.06); transition:transform .2s, box-shadow .2s; }
.occ-tile:hover { transform:translateY(-3px); box-shadow:0 10px 24px rgba(233,30,140,.18); }
.occ-tile__img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:var(--pink-pale, #fff8fd); }
.occ-tile__ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:2.6rem; }
.occ-tile__veil { position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 58%); }
.occ-tile__body { position:relative; padding:10px 11px; display:flex; flex-direction:column; gap:1px; }
.occ-tile__name { color:#fff; font-weight:700; font-size:.86rem; line-height:1.2; text-shadow:0 1px 3px rgba(0,0,0,.35); }
.occ-tile__count { color:rgba(255,255,255,.85); font-size:.7rem; font-weight:600; }
@media (min-width: 900px) {
    .occ-tiles:not(.is-carousel) { justify-content:center; flex-wrap:wrap; overflow:visible; }
    .occ-tile { flex-basis:150px; height:170px; }
}
/* Carrusel: una sola fila; se oculta la barra de desplazamiento */
.occ-tiles.is-carousel { scrollbar-width:none; }
.occ-tiles.is-carousel::-webkit-scrollbar { display:none; }

/* ══ Carrusel de ocasiones · modo centrado ══════════════════════════════ */
.occ-carousel { position:relative; margin:6px auto 34px; max-width:1120px; outline:none; }
.occ-carousel:focus-visible { box-shadow:0 0 0 3px rgba(233,30,140,.25); border-radius:24px; }
.occ-track {
    display:flex; align-items:center; gap:18px;
    overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-behavior:smooth;
    padding:22px calc(50% - 100px) 30px;           /* permite centrar la primera y la última */
    scrollbar-width:none; -webkit-overflow-scrolling:touch;
    /* bordes difuminados a los lados */
    -webkit-mask-image:linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image:linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.occ-track::-webkit-scrollbar { display:none; }
.occ-carousel .occ-tile {
    --s:.84; --o:.6;
    position:relative; flex:0 0 200px; height:250px; border-radius:24px; overflow:hidden;
    scroll-snap-align:center; display:flex; align-items:flex-end; text-decoration:none;
    background:linear-gradient(140deg,#fdf2f8,#fbcfe8);
    transform:scale(var(--s)); opacity:var(--o);
    transition:transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease, box-shadow .35s ease, filter .35s ease;
    box-shadow:0 8px 20px rgba(0,0,0,.08); will-change:transform; user-select:none; -webkit-user-drag:none;
}
.occ-carousel .occ-tile:not(.is-center) { filter:saturate(.85); }
/* LCP: la primera ficha (la del centro al abrir) se dibuja a tamaño completo antes de que cargue el JS;
   si no, al arrancar el carrusel las vecinas se agrandan y Google cuenta la imagen principal 2 s después (PageSpeed 01/12/2026) */
.occ-carousel .occ-tile[data-idx="0"]:not(.is-clone):not([style*="--s"]) { --s:1; --o:1; }
.occ-carousel .occ-tile.is-center { box-shadow:0 22px 44px rgba(233,30,140,.30), 0 6px 14px rgba(0,0,0,.10); }
.occ-carousel .occ-tile__img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:var(--pink-pale, #fff8fd); }
.occ-carousel .occ-tile__ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:3rem; }
.occ-carousel .occ-tile__veil { position:absolute; inset:0; background:linear-gradient(to top, rgba(17,0,10,.72) 0%, rgba(17,0,10,.25) 38%, rgba(0,0,0,0) 62%); }
.occ-carousel .occ-tile__body { position:relative; padding:14px 15px 15px; display:flex; flex-direction:column; gap:3px; width:100%; }
.occ-carousel .occ-tile__name { color:#fff; font-weight:800; font-size:1rem; line-height:1.2; text-shadow:0 2px 6px rgba(0,0,0,.35); }
.occ-carousel .occ-tile__count { color:rgba(255,255,255,.88); font-size:.74rem; font-weight:600; }
.occ-carousel .occ-tile__cta {
    align-self:flex-start; margin-top:7px; padding:6px 12px; border-radius:999px; background:#fff; color:var(--pink);
    font-size:.74rem; font-weight:800; box-shadow:0 4px 12px rgba(0,0,0,.18);
    opacity:0; transform:translateY(8px); transition:opacity .3s ease .05s, transform .3s ease .05s;
}
.occ-carousel .occ-tile.is-center .occ-tile__cta { opacity:1; transform:none; }

/* Flechas */
.occ-nav {
    position:absolute; top:calc(50% - 14px); transform:translateY(-50%); z-index:5;
    width:46px; height:46px; border-radius:50%; border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,.96); color:var(--gray-900);
    box-shadow:0 8px 22px rgba(0,0,0,.16); transition:transform .2s ease, background .2s ease, color .2s ease;
}
.occ-nav svg { width:20px; height:20px; }
.occ-nav:hover { background:var(--pink); color:#fff; transform:translateY(-50%) scale(1.08); }
.occ-nav:active { transform:translateY(-50%) scale(.96); }
.occ-nav:focus-visible { outline:3px solid rgba(233,30,140,.4); outline-offset:2px; }
.occ-prev { left:4px; } .occ-next { right:4px; }

/* Indicador de posición */
/* Más aire: ~34 px desde la tarjeta (fuera de su sombra) y espacio por debajo; zona táctil más grande sin cambiar el dibujo */
.occ-dots { display:flex; justify-content:center; gap:0; margin-top:0; padding-bottom:2px; }
.occ-dot { box-sizing:content-box; width:8px; height:8px; padding:9px 3.5px; background:none; border:none; cursor:pointer;
           transition:width .3s ease; }   /* el botón es solo la zona táctil (invisible) */
.occ-dot::before { content:''; display:block; width:100%; height:100%; border-radius:999px; background:#f5c2dc;
                   transition:background .3s ease; }   /* el puntito, redondo, dibujado adentro */
.occ-dot.active { width:26px; }
.occ-dot.active::before { background:var(--pink); }
.occ-dot:focus-visible { outline:2px solid var(--pink); outline-offset:3px; }

@media (max-width: 640px) {
    .occ-track { gap:12px; padding:18px calc(50% - 78px) 26px;
        -webkit-mask-image:linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
                mask-image:linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); }
    .occ-carousel .occ-tile { flex-basis:156px; height:200px; border-radius:20px; }
    .occ-carousel .occ-tile__name { font-size:.88rem; }
    .occ-nav { width:38px; height:38px; } .occ-nav svg { width:17px; height:17px; }
}
@media (prefers-reduced-motion: reduce) {
    .occ-track { scroll-behavior:auto; }
    .occ-carousel .occ-tile, .occ-carousel .occ-tile__cta, .occ-carousel .occ-tile__img { transition:none; }
}


/* ── Boton "ver todo el catalogo" ── */
.see-all { display: flex; justify-content: center; margin-top: 40px; }
.see-all__btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px 14px 28px;
    background: var(--pink);
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
    font-family: var(--sans);
    box-shadow: 0 4px 16px rgba(233,30,140,.28);
    transition: var(--t);
}
.see-all__btn:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(233,30,140,.36);
}
.see-all__txt {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    font-size: .95rem;
    font-weight: 700;
}
.see-all__txt em {
    font-style: normal;
    font-size: .72rem;
    font-weight: 400;
    opacity: .8;
    margin-top: 2px;
}
.see-all__arrow {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--t);
}
.see-all__btn:hover .see-all__arrow { background: rgba(255,255,255,.32); }
.see-all__arrow svg { width: 17px; height: 17px; }

@media (max-width: 640px) {
    .see-all { margin-top: 28px; }
    .see-all__btn { width: 100%; justify-content: space-between; padding: 13px 16px 13px 22px; }
}

/* ── Categorías con foto ──
   Antes eran una caja blanca con un emoji. Ahora usan image_url
   de web_categories, que ya existia en la tabla pero nadie usaba.
   Si la categoria no tiene foto, cae al emoji sobre fondo rosado. */
.categories-section { margin-top: 72px; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.cat-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    background: var(--gray-100);
    transition: transform .3s cubic-bezier(.2,.8,.3,1),
                box-shadow .3s cubic-bezier(.2,.8,.3,1);
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.cat-card__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background: var(--pink-pale, #fff8fd);
    /* Foto completa (sin zoom: recortaba los bordes) */
    transition: transform .55s cubic-bezier(.2,.8,.3,1);
}

/* Sin foto: emoji grande centrado */
.cat-card__ph {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem;
    background: linear-gradient(140deg, var(--pink-pale), var(--pink-light));
    transition: transform .55s cubic-bezier(.2,.8,.3,1);
}
.cat-card:hover .cat-card__ph { transform: scale(1.09); }

/* Degradado para que el texto se lea sobre cualquier foto */
.cat-card__veil {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.68) 0%, rgba(0,0,0,.15) 45%, transparent 70%);
    transition: background .3s;
}
.cat-card:hover .cat-card__veil {
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.05) 100%);
}

.cat-card__body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 12px 14px;
    display: flex; align-items: center; gap: 7px;
}
.cat-card__icon { font-size: 1rem; flex-shrink: 0; }
.cat-card__name {
    font-size: .88rem; font-weight: 700; color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    line-height: 1.25;
}
/* Flecha que asoma al pasar el mouse */
.cat-card__arrow {
    margin-left: auto; flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    opacity: 0; transform: translateX(-6px);
    transition: opacity .3s, transform .3s;
}
.cat-card:hover .cat-card__arrow { opacity: 1; transform: translateX(0); }
.cat-card__arrow svg { width: 13px; height: 13px; }

@media (max-width: 640px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-card { aspect-ratio: 1; }
}

/* Por qué elegirnos */
.why-section { margin-top: 72px; }
.why-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: var(--graphite, #2E2A2C); border-radius: 16px; overflow: hidden; margin-top: 16px;
}
.why-item { padding: 24px 20px; border-left: 1px solid rgba(255,255,255,.08); }
.why-item:first-child { border-left: none; }
.why-num { font-size: .62rem; font-weight: 700; color: var(--pink-mid); letter-spacing: .1em; margin-bottom: 8px; }
.why-icon { font-size: 1.3rem; margin-bottom: 7px; }
.why-title { font-family: var(--serif); font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.why-desc { font-size: .75rem; color: var(--graphite-text, #B4ADB1); line-height: 1.6; }

/* CTA final */
.cta-strip {
    margin-top: 72px; background: var(--pink-pale);
    border: 1px solid #f5c2df; border-radius: 16px;
    padding: 36px 32px; text-align: center;
}
.cta-strip h2 {
    font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700; color: var(--black); margin-bottom: 8px; letter-spacing: -.02em;
}
.cta-strip p { font-size: .87rem; color: var(--gray-500); margin-bottom: 20px; }
.cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.link-more { font-size: .82rem; font-weight: 600; color: var(--pink); text-decoration: none; }
.link-more:hover { text-decoration: underline; }

@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .why-item { border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 640px) {
    .home-wrap { padding: 20px 16px 48px; }
    .why-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-strip { padding: 28px 20px; }
}


/* ── Antes estilos sueltos en las plantillas (style="…") ── */
.hm-best-title{display:flex;align-items:center;justify-content:center;gap:8px;margin:4px 0 16px;font-weight:700;color:var(--pink);font-size:.95rem}
