/* ═══════════════════════════════════════════════════════════════
   DLP Catalog — Estilos del catálogo público [dlp_catalogo]
   v2.30.3 — rediseño: fotos completas (sin recorte), grid de 2
   columnas en celular, ficha de producto tipo hoja con barra fija
   de pedido, galería deslizable.
   ═══════════════════════════════════════════════════════════════ */

/* ── Ocultar header del tema en la página del catálogo ──────── */
.dlp-page-catalogo header,
.dlp-page-catalogo nav,
.dlp-page-catalogo .site-header,
.dlp-page-catalogo #masthead,
.dlp-page-catalogo header.site-header,
.dlp-page-catalogo .main-navigation,
.dlp-page-catalogo #site-navigation,
.dlp-page-catalogo .site-branding,
.dlp-page-catalogo #site-header,
.dlp-page-catalogo #header,
.dlp-page-catalogo .header,
.dlp-page-catalogo .header-area,
.dlp-page-catalogo .header-main,
.dlp-page-catalogo .header-wrap,
.dlp-page-catalogo .header-container,
.dlp-page-catalogo nav.navbar,
.dlp-page-catalogo .navbar,
.dlp-page-catalogo .top-header,
.dlp-page-catalogo .header-inner,
.dlp-page-catalogo .ast-site-header-wrap,
.dlp-page-catalogo #ast-fixed-header,
.dlp-page-catalogo .elementor-location-header,
.dlp-page-catalogo .fl-builder-header,
.dlp-page-catalogo .divi-header,
.dlp-page-catalogo #et-main-nav { display: none !important; }

/* El catálogo nunca debe provocar desplazamiento horizontal */
.dlp-page-catalogo { overflow-x: hidden; }

/* ── Variables ───────────────────────────────────────────────── */
#dlp-catalogo {
    --dlp-bg:      #f3f4f6;
    --dlp-card:    #ffffff;
    --dlp-ink:     #131a26;
    --dlp-muted:   #6b7280;
    --dlp-line:    #e5e7eb;
    --dlp-navy:    #0d1b2e;
    --dlp-wa:      #25d366;
    --dlp-wa-dark: #1ebe5b;
    --dlp-warn:    #b91c1c;
    --dlp-radius:  14px;
    --dlp-cols:    var(--dlp-cols-desktop, 4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--dlp-ink);
    background: var(--dlp-bg);
    padding: 16px 20px 40px;
    border-radius: 18px;
    min-height: 300px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
}
#dlp-catalogo *, #dlp-catalogo *::before, #dlp-catalogo *::after { box-sizing: border-box; }
#dlp-catalogo img { max-width: 100%; }
#dlp-catalogo button { font-family: inherit; }

/* ── Encabezado ──────────────────────────────────────────────── */
.dlp-cat-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0 16px;
}
.dlp-cat-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin: 0;
    color: var(--dlp-navy);
}
.dlp-cat-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--dlp-muted);
}
.dlp-cat-head-wa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--dlp-line);
    color: var(--dlp-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.dlp-cat-head-wa svg { width: 18px; height: 18px; fill: var(--dlp-wa); }
.dlp-cat-head-wa:hover { border-color: var(--dlp-wa); text-decoration: none; color: var(--dlp-ink); }

/* ── Toolbar ─────────────────────────────────────────────────── */
.dlp-cat-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--dlp-bg);
    padding: 8px 0 10px;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dlp-page-catalogo.admin-bar .dlp-cat-toolbar { top: 32px; }

.dlp-cat-search {
    position: relative;
}
.dlp-cat-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--dlp-muted);
    stroke-width: 2;
    pointer-events: none;
}
#dlp-search {
    width: 100%;
    height: 46px;
    padding: 0 40px 0 42px;
    border: 1px solid var(--dlp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--dlp-ink);
    font-size: 16px; /* 16px evita el zoom automático de iOS al enfocar */
    font-family: inherit;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
}
#dlp-search:focus {
    border-color: var(--dlp-navy);
    box-shadow: 0 0 0 3px rgba(13,27,46,.12);
}
#dlp-search::placeholder { color: #9aa3ae; }
#dlp-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.dlp-cat-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--dlp-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: none;
}
.dlp-cat-search.has-text .dlp-cat-search-clear { display: block; }
.dlp-cat-search-clear:hover { background: var(--dlp-line); }

/* Filtros: fila deslizable, sin brincos de línea en celular */
.dlp-cat-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
    margin: 0 -2px;
}
.dlp-cat-filters::-webkit-scrollbar { display: none; }
.dlp-cat-filter {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid var(--dlp-line);
    border-radius: 999px;
    background: #fff !important;
    color: var(--dlp-ink) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.dlp-cat-filter:hover { border-color: var(--dlp-navy); }
.dlp-cat-filter.active {
    background: var(--dlp-navy) !important;
    border-color: var(--dlp-navy);
    color: #fff !important;
}
.dlp-cat-filter:focus-visible,
.dlp-cat-btn-pedido:focus-visible,
.dlp-cat-btn-share:focus-visible,
.dlp-modal-close:focus-visible,
.dlp-modal-btn-wa:focus-visible,
.dlp-modal-btn-share:focus-visible {
    outline: 3px solid rgba(13,27,46,.35);
    outline-offset: 2px;
}

.dlp-cat-count {
    font-size: 13px;
    color: var(--dlp-muted);
    margin: 0 0 12px;
}

/* ── Grid ────────────────────────────────────────────────────── */
.dlp-cat-grid {
    display: grid;
    grid-template-columns: repeat(var(--dlp-cols), minmax(0, 1fr));
    gap: 16px;
}

/* ── Tarjeta ─────────────────────────────────────────────────── */
.dlp-cat-card {
    position: relative;
    background: var(--dlp-card);
    border: 1px solid var(--dlp-line);
    border-radius: var(--dlp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-width: 0;
    transition: border-color .15s, box-shadow .15s;
}
.dlp-cat-card:hover {
    border-color: #cfd5dd;
    box-shadow: 0 6px 24px rgba(13,27,46,.10);
}
.dlp-cat-card.is-agotado-temporal { cursor: default; }
.dlp-cat-card.is-agotado-temporal .dlp-cat-gallery img { filter: grayscale(1); opacity: .55; }
.dlp-cat-card.is-agotado-temporal:hover { border-color: var(--dlp-line); box-shadow: none; }

.dlp-cat-badge-agotado {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: var(--dlp-warn);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    max-width: 88%;
    line-height: 1.3;
}

/* Galería de la tarjeta — la foto se muestra COMPLETA, nunca recortada */
.dlp-cat-gallery {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
    border-bottom: 1px solid var(--dlp-line);
    touch-action: pan-y;
}
.dlp-cat-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    display: block;
    opacity: 0;
    transition: opacity .2s;
    -webkit-user-drag: none;
    user-select: none;
}
.dlp-cat-gallery img.active { opacity: 1; z-index: 1; }

/* Flechas (solo escritorio; en celular se desliza con el dedo) */
.dlp-gal-prev, .dlp-gal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.92);
    border: 1px solid var(--dlp-line);
    color: var(--dlp-ink);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity .15s, background .15s;
    padding: 0 0 2px;
}
.dlp-cat-card:hover .dlp-gal-prev,
.dlp-cat-card:hover .dlp-gal-next { opacity: 1; }
.dlp-gal-prev:hover, .dlp-gal-next:hover { background: #fff; border-color: var(--dlp-navy); }
.dlp-gal-prev { left: 8px; }
.dlp-gal-next { right: 8px; }

/* Puntos */
.dlp-gal-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
    padding: 4px 6px;
    background: rgba(255,255,255,.85);
    border-radius: 999px;
}
.dlp-gal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c7ced8;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.dlp-gal-dot.active { background: var(--dlp-navy); transform: scale(1.25); }

/* Badge categoría */
.dlp-cat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(13,27,46,.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 999px;
    z-index: 3;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Acciones arriba a la derecha (video + compartir) */
.dlp-cat-top-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dlp-cat-badge-video { width: 28px; height: 28px; }
.dlp-cat-badge-video svg { width: 100%; height: 100%; display: block; }
.dlp-cat-btn-share {
    width: 32px;
    height: 32px;
    border: 1px solid var(--dlp-line);
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: var(--dlp-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: border-color .15s;
}
.dlp-cat-btn-share:hover { border-color: var(--dlp-navy); }
.dlp-cat-btn-share svg { width: 15px; height: 15px; fill: var(--dlp-ink); }

/* Cuerpo tarjeta */
.dlp-cat-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.dlp-cat-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dlp-ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(14px * 1.35 * 2);
}
.dlp-cat-price {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--dlp-navy);
    font-variant-numeric: tabular-nums;
}
.dlp-cat-btn-pedido {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 8px;
    background: var(--dlp-wa);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background .15s;
}
.dlp-cat-btn-pedido svg { width: 17px; height: 17px; fill: #fff; flex-shrink: 0; }
.dlp-cat-btn-pedido:hover { background: var(--dlp-wa-dark); }
.dlp-cat-btn-pedido:disabled,
.dlp-cat-btn-pedido:disabled:hover {
    background: #eef0f3;
    color: #8b93a0;
    cursor: not-allowed;
}

/* ── Loading / vacío ─────────────────────────────────────────── */
.dlp-cat-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--dlp-muted);
    font-size: 15px;
}
.dlp-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--dlp-line);
    border-top-color: var(--dlp-navy);
    border-radius: 50%;
    animation: dlp-spin .8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes dlp-spin { to { transform: rotate(360deg); } }
#dlp-no-results {
    text-align: center;
    padding: 48px 16px;
    color: var(--dlp-muted);
    font-size: 15px;
}
#dlp-no-results strong { color: var(--dlp-ink); display: block; font-size: 17px; margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════════════
   FICHA DE PRODUCTO (modal)
   ═══════════════════════════════════════════════════════════════ */
.dlp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,27,46,.72);
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 16px;
    box-sizing: border-box;
    justify-content: center;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
}
.dlp-modal-overlay.open { display: flex; }
.dlp-modal-overlay *, .dlp-modal-overlay *::before, .dlp-modal-overlay *::after { box-sizing: border-box; }
.dlp-modal-overlay button { font-family: inherit; }

.dlp-modal {
    background: #fff;
    color: #131a26;
    border-radius: 18px;
    width: 100%;
    max-width: 960px;
    margin: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    animation: dlp-modal-in .18s ease-out;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
        "media info"
        "media actions";
    grid-template-rows: 1fr auto;
    min-width: 0;
}
@keyframes dlp-modal-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .dlp-modal { animation: none; }
    .dlp-cat-gallery img, .dlp-gal-dot, .dlp-cat-card { transition: none; }
}

.dlp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,.95);
    border: 1px solid #e5e7eb;
    color: #131a26;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    transition: border-color .15s;
}
.dlp-modal-close:hover { border-color: #0d1b2e; }

/* Media (galería + miniaturas) */
.dlp-modal-media {
    grid-area: media;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.dlp-modal-gallery {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
    touch-action: pan-y;
    flex-shrink: 0;
}
.dlp-modal-gallery img,
.dlp-modal-gallery video,
.dlp-modal-gallery iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    border: 0;
    background: #fff;
    -webkit-user-drag: none;
    user-select: none;
}
.dlp-modal-gallery img { padding: 12px; }
.dlp-modal-gallery video,
.dlp-modal-gallery iframe { background: #000; }
.dlp-modal-gallery .dlp-modal-slide.active { display: block; }

.dlp-modal-counter {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 5;
    background: rgba(13,27,46,.8);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.dlp-modal-counter:empty { display: none; }

.dlp-modal-prev, .dlp-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.95);
    border: 1px solid #e5e7eb;
    color: #131a26;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px;
    transition: border-color .15s;
}
.dlp-modal-prev:hover, .dlp-modal-next:hover { border-color: #0d1b2e; }
.dlp-modal-prev { left: 12px; }
.dlp-modal-next { right: 12px; }

/* Miniaturas */
.dlp-modal-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 14px 14px;
    background: #fff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid #f0f2f5;
}
.dlp-modal-thumbs::-webkit-scrollbar { display: none; }
.dlp-modal-thumb {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    padding: 2px;
    flex-shrink: 0;
    transition: border-color .15s;
}
.dlp-modal-thumb.active { border-color: #0d1b2e; }
.dlp-modal-thumb-video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.dlp-modal-thumb-video .dlp-play-icon { width: 26px; height: 26px; }

/* Info del producto */
.dlp-modal-info {
    grid-area: info;
    padding: 28px 28px 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.dlp-modal-badge {
    display: inline-block;
    background: #eef1f5;
    color: #0d1b2e;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.dlp-modal-name {
    font-size: 21px;
    font-weight: 700;
    color: #131a26;
    line-height: 1.3;
    letter-spacing: -.01em;
    margin: 0 0 10px;
}
.dlp-modal-price {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0d1b2e;
    margin: 0 0 4px;
    font-variant-numeric: tabular-nums;
}
.dlp-modal-price small {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 6px;
    letter-spacing: 0;
}
.dlp-modal-sku {
    font-size: 12px;
    color: #9aa3ae;
    margin: 0 0 16px;
}
.dlp-modal-desc {
    font-size: 15px;
    color: #3f4652;
    line-height: 1.6;
    margin: 0 0 16px;
    white-space: pre-line;
}
.dlp-modal-agotado {
    display: none;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px;
}

/* Acciones (WhatsApp + compartir) */
.dlp-modal-actions {
    grid-area: actions;
    padding: 12px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}
.dlp-modal-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 16px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.dlp-modal-btn-wa:hover {
    background: #1ebe5b;
    color: #fff;
    text-decoration: none;
}
.dlp-modal-btn-wa svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
.dlp-modal-btn-wa.dlp-modal-btn-disabled,
.dlp-modal-btn-wa.dlp-modal-btn-disabled:hover {
    background: #eef0f3;
    color: #8b93a0;
    cursor: not-allowed;
    pointer-events: none;
}
.dlp-modal-btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    color: #131a26;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s;
}
.dlp-modal-btn-share:hover { border-color: #0d1b2e; }
.dlp-modal-btn-share svg { width: 18px; height: 18px; fill: currentColor; }

/* Toast (link copiado) */
.dlp-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    background: #131a26;
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 999999;
}
.dlp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    #dlp-catalogo { --dlp-cols: 3; }
}
@media (max-width: 800px) {
    #dlp-catalogo { --dlp-cols: 2; padding: 12px 12px 32px; border-radius: 0; }
    .dlp-cat-grid { gap: 10px; }
    .dlp-cat-card { border-radius: 12px; }
    .dlp-cat-title { font-size: 21px; }
    .dlp-cat-head-wa span { display: none; }
    .dlp-cat-head-wa { padding: 9px; }
    .dlp-gal-prev, .dlp-gal-next { display: none; }
    .dlp-cat-badge { display: none; }
    .dlp-cat-body { padding: 8px 10px 10px; }
    .dlp-cat-name { font-size: 13px; }
    .dlp-cat-price { font-size: 18px; }
    .dlp-cat-btn-pedido { font-size: 12px; padding: 9px 6px; }

    /* Ficha a pantalla completa, tipo hoja, con barra de pedido fija */
    .dlp-modal-overlay { padding: 0; background: #fff; }
    .dlp-modal {
        max-width: none;
        min-height: 100%;
        border-radius: 0;
        box-shadow: none;
        animation: none;
        display: flex;
        flex-direction: column;
    }
    .dlp-modal-media { border-right: 0; }
    .dlp-modal-gallery { border-bottom: 1px solid #f0f2f5; }
    .dlp-modal-prev, .dlp-modal-next { display: none; }
    .dlp-modal-info { padding: 18px 16px 8px; }
    .dlp-modal-name { font-size: 18px; }
    .dlp-modal-price { font-size: 28px; }
    .dlp-modal-desc { font-size: 14px; }
    .dlp-modal-actions {
        position: sticky;
        bottom: 0;
        margin-top: auto;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid #e5e7eb;
        flex-direction: row;
        gap: 8px;
        box-shadow: 0 -8px 24px rgba(13,27,46,.08);
    }
    .dlp-modal-btn-wa { flex: 1; padding: 14px 12px; font-size: 15px; }
    .dlp-modal-btn-share { width: 50px; flex-shrink: 0; padding: 12px 0; }
    .dlp-modal-btn-share span { display: none; }
    .dlp-modal-btn-share svg { margin: 0; }
    .dlp-modal-close { top: 10px; right: 10px; }
}
@media (max-width: 360px) {
    #dlp-catalogo { --dlp-cols: 2; padding: 10px 8px 28px; }
    .dlp-cat-grid { gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   OFERTONES (v2.32.0) — promociones por tiempo limitado
   Paleta de los carteles del dino: amarillo #facc15, rojo #dc2626,
   naranja #f97316, negro. Solo aquí se usan colores fuertes.
   ═══════════════════════════════════════════════════════════════ */

/* ── Banner en el catálogo ───────────────────────────────────── */
.dlp-of-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px;
    align-items: center;
    margin: 0 0 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(115deg, #b91c1c 0%, #dc2626 45%, #f97316 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(220,38,38,.25);
}
.dlp-of-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(250,204,21,.35), transparent 38%),
        radial-gradient(circle at 80% 90%, rgba(255,255,255,.14), transparent 40%);
    pointer-events: none;
}
.dlp-of-banner > * { position: relative; }
.dlp-of-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    background: #facc15;
    color: #111;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.dlp-of-banner-title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 0 0 6px;
    text-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.dlp-of-banner-sub {
    font-size: 14px;
    font-weight: 600;
    opacity: .95;
    margin: 0 0 14px;
}
.dlp-of-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #facc15;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .15s;
}
.dlp-of-banner-btn:hover { transform: translateY(-1px); color: #facc15; text-decoration: none; }
.dlp-of-banner-btn::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 40%;
    left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    animation: dlp-of-shine 3.2s ease-in-out infinite;
}
.dlp-of-banner-img {
    width: 150px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 10px 24px rgba(0,0,0,.3);
    transform: rotate(3deg);
    animation: dlp-of-float 4s ease-in-out infinite;
    background: #fff;
}
@keyframes dlp-of-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes dlp-of-float { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-5px); } }
@keyframes dlp-of-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes dlp-of-bounce { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes dlp-of-flame { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.18) rotate(4deg); } }
@keyframes dlp-of-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Chip de filtro ──────────────────────────────────────────── */
.dlp-cat-filter.dlp-cat-filter-oferton {
    background: #facc15 !important;
    border-color: #facc15;
    color: #111 !important;
}
.dlp-cat-filter.dlp-cat-filter-oferton.active {
    background: #dc2626 !important;
    border-color: #dc2626;
    color: #fff !important;
}

/* ── Tarjeta en ofertón ──────────────────────────────────────── */
.dlp-cat-card.is-oferton {
    border-color: #f97316;
    box-shadow: 0 0 0 1px #f97316, 0 8px 24px rgba(249,115,22,.16);
}
.dlp-cat-card.is-oferton:hover { border-color: #dc2626; box-shadow: 0 0 0 1px #dc2626, 0 10px 28px rgba(220,38,38,.22); }
.dlp-of-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    padding: 5px 9px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(220,38,38,.35);
    animation: dlp-of-bounce 1.6s ease-in-out infinite;
    white-space: nowrap;
}
.dlp-of-badge .dlp-of-fire { display: inline-block; animation: dlp-of-flame 1.2s ease-in-out infinite; }
.dlp-of-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 8px;
}
.dlp-cat-price-old {
    font-size: 13px;
    color: #9aa3ae;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.dlp-cat-price.is-oferta {
    color: #dc2626;
    font-size: 24px;
    display: inline-block;
    animation: dlp-of-pulse 1.8s ease-in-out infinite;
    transform-origin: left center;
}
.dlp-of-pct {
    display: inline-block;
    background: #facc15;
    color: #111;
    font-size: 12px;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 6px;
    line-height: 1.2;
}
.dlp-of-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 6px 8px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
}
.dlp-of-countdown b { font-weight: 800; color: #9a3412; letter-spacing: .02em; }
.dlp-of-countdown.is-urgente { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.dlp-of-countdown.is-urgente b { color: #dc2626; }

/* Contador grande por bloques (ficha y página de producto) */
.dlp-of-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    flex-wrap: wrap;
}
.dlp-of-timer-label { font-size: 13px; font-weight: 700; color: #9a3412; margin-right: 6px; }
.dlp-of-timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
    background: #111;
    color: #facc15;
    border-radius: 8px;
    padding: 6px 6px 4px;
    font-variant-numeric: tabular-nums;
}
.dlp-of-timer-box b { font-size: 20px; font-weight: 900; line-height: 1; }
.dlp-of-timer-box span { font-size: 9px; letter-spacing: .06em; opacity: .8; margin-top: 3px; }
.dlp-of-timer-sep { font-size: 20px; font-weight: 900; color: #dc2626; line-height: 1; padding-bottom: 12px; }
.dlp-of-timer.is-urgente .dlp-of-timer-box { background: #dc2626; color: #fff; }

/* Ficha (modal) y página de producto */
.dlp-modal-of-head, .dlp-pp-of-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}
.dlp-modal-of-head img, .dlp-pp-of-head img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    object-position: center 32%;
    border-radius: 10px;
    border: 2px solid #facc15;
    flex-shrink: 0;
}
.dlp-of-badge.is-static { position: static; display: inline-block; font-size: 12px; }
.dlp-modal-price.is-oferta { color: #dc2626; display: inline-block; animation: dlp-of-pulse 1.8s ease-in-out infinite; transform-origin: left center; }
.dlp-modal-price-old { font-size: 16px; color: #9aa3ae; text-decoration: line-through; margin: 0 0 2px; font-variant-numeric: tabular-nums; }

/* ── Página /ofertones/ ──────────────────────────────────────── */
.dlp-of-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 300px);
    gap: 24px;
    align-items: center;
    padding: 28px 28px 24px;
    margin: 0 0 18px;
    border-radius: 22px;
    background: #111;
    color: #fff;
    position: relative;
    overflow: hidden;
    animation: dlp-of-in .35s ease-out;
}
.dlp-of-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(250,204,21,.28), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(220,38,38,.35), transparent 45%);
    pointer-events: none;
}
.dlp-of-hero > * { position: relative; }
.dlp-of-hero-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.03em;
    margin: 0 0 10px;
    color: #facc15;
}
.dlp-of-hero-sub { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.dlp-of-hero-urg { font-size: 14px; font-weight: 600; color: #fecaca; margin: 0 0 18px; }
.dlp-of-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dlp-of-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    background: #facc15;
    color: #111;
}
.dlp-of-hero-btn.is-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.dlp-of-hero-btn:hover { text-decoration: none; filter: brightness(1.05); }
.dlp-of-hero-img {
    width: 240px;
    height: auto;
    max-width: 100%;
    justify-self: center;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    transform: rotate(-2deg);
    animation: dlp-of-float 4s ease-in-out infinite;
    background: #fff;
}
.dlp-of-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    margin: 0 0 14px;
    background: #fff;
    border: 1px solid var(--dlp-line, #e5e7eb);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #131a26;
}
.dlp-of-strip img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; object-position: center 15%; flex-shrink: 0; }
.dlp-of-strip small { display: block; font-weight: 500; color: #6b7280; font-size: 12px; }
.dlp-of-empty {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--dlp-line, #e5e7eb);
    border-radius: 18px;
    margin: 0 0 16px;
}
.dlp-of-empty img { width: 160px; aspect-ratio: 2/3; object-fit: cover; object-position: center top; border-radius: 12px; }
.dlp-of-empty h2 { font-size: 20px; margin: 0 0 6px; color: #131a26; }
.dlp-of-empty p { margin: 0 0 14px; color: #6b7280; font-size: 14px; }
.dlp-of-foot {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    margin: 24px 0 0;
    background: #fff;
    border: 1px solid var(--dlp-line, #e5e7eb);
    border-radius: 18px;
}
.dlp-of-foot img { width: 120px; aspect-ratio: 2/3; object-fit: cover; object-position: center top; border-radius: 12px; }
.dlp-of-foot h3 { margin: 0 0 4px; font-size: 18px; color: #131a26; }
.dlp-of-foot p { margin: 0; font-size: 14px; color: #6b7280; }
.dlp-of-foot .dlp-cat-head-wa { padding: 12px 18px; font-size: 14px; }
.dlp-of-foot .dlp-cat-head-wa span { display: inline; }

@media (prefers-reduced-motion: reduce) {
    .dlp-of-banner-btn::after, .dlp-of-banner-img, .dlp-of-badge, .dlp-of-badge .dlp-of-fire,
    .dlp-cat-price.is-oferta, .dlp-modal-price.is-oferta, .dlp-of-hero-img, .dlp-of-hero { animation: none; }
}
@media (max-width: 800px) {
    .dlp-of-banner { grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; padding: 14px 14px; border-radius: 14px; }
    .dlp-of-banner-title { font-size: 21px; }
    .dlp-of-banner-sub { font-size: 13px; margin-bottom: 10px; }
    .dlp-of-banner-btn { font-size: 13px; padding: 10px 14px; }
    .dlp-of-banner-img { width: 104px; }
    .dlp-of-badge { font-size: 10px; padding: 4px 7px; }
    .dlp-cat-price.is-oferta { font-size: 21px; }
    .dlp-of-countdown { font-size: 11px; padding: 5px 7px; gap: 4px; }
    .dlp-of-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 16px; border-radius: 16px; text-align: center; }
    .dlp-of-hero-title { font-size: 30px; }
    .dlp-of-hero-sub { font-size: 16px; }
    .dlp-of-hero-actions { justify-content: center; }
    .dlp-of-hero-img { width: 200px; margin: 0 auto; transform: rotate(0); }
    .dlp-of-empty { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .dlp-of-empty img { margin: 0 auto; }
    .dlp-of-foot { grid-template-columns: 90px minmax(0, 1fr); }
    .dlp-of-foot img { width: 90px; }
    .dlp-of-foot .dlp-cat-head-wa { grid-column: 1 / -1; justify-content: center; }
    .dlp-of-timer { gap: 4px; padding: 10px 12px; }
    .dlp-of-timer-label { flex-basis: 100%; margin: 0 0 6px; }
    .dlp-of-timer-box { min-width: 40px; padding: 5px 4px 3px; }
    .dlp-of-timer-box b { font-size: 18px; }
    .dlp-of-timer-sep { font-size: 18px; padding-bottom: 12px; }
    .dlp-of-cd-label { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   TEMPORADA DEL MES (v2.59.0)
   El dinosaurio de "Está chido Saltillo" y los colores cambian solos
   cada mes. Variables que pone el servidor (y el JS si cambia el mes):
   --t1 --t2 --t3 (degradado del encabezado), --tac (acento), --tsu (fondo suave)
   ═══════════════════════════════════════════════════════════════ */

/* El título del tema y su espacio sobran: el encabezado de marca ya lo dice */
.dlp-page-catalogo .hostinger-ai-page-title,
.dlp-page-catalogo h1.wp-block-post-title,
.dlp-page-catalogo .entry-title,
.dlp-page-catalogo .page-title { display: none !important; }
.dlp-page-catalogo .entry-content,
.dlp-page-catalogo .wp-site-blocks > main { margin-top: 0 !important; padding-top: 0 !important; }
.dlp-page-catalogo .wp-site-blocks > footer { margin-top: 0 !important; }

#dlp-catalogo.dlp-tema {
    --t1: #0b1d4d; --t2: #23408e; --t3: #3b82f6; --tac: #facc15; --tsu: #eef2fb;
    --dlp-bg: var(--tsu);
    position: relative;
    background: var(--tsu);
    padding: 0 0 48px;
    border-radius: 0;
    overflow: hidden;            /* que nada animado provoque desplazamiento a los lados */
    overflow: clip;
    transition: background-color .6s;
}
/* Ocupa todo el ancho de la pantalla aunque el tema lo meta en una columna angosta */
#dlp-catalogo.dlp-full {
    width: 100vw;
    max-width: 100vw !important;
    margin: 0 calc(50% - 50vw) !important;
}

/* Fondo animado: un lienzo pegado a la pantalla mientras se recorre el catálogo */
.dlp-fondo {
    position: sticky;
    top: 0;
    display: block;
    width: 100%;
    height: 100vh;
    margin-bottom: -100vh;
    z-index: 0;
    pointer-events: none;
}
.dlp-cat-inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Encabezado de marca ─────────────────────────────────────── */
.dlp-hero {
    background:
        radial-gradient(1200px 500px at 85% 10%, rgba(255,255,255,.16), transparent 60%),
        linear-gradient(155deg, var(--t1) 0%, var(--t2) 55%, var(--t3) 100%);
    background-size: 100% 100%, 220% 220%;
    animation: dlp-hero-luz 18s ease-in-out infinite alternate;
    color: #fff;
}
@keyframes dlp-hero-luz { from { background-position: 0 0, 0% 30%; } to { background-position: 0 0, 100% 70%; } }
.dlp-hero-in {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 20px 4px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 18px;
    align-items: end;
}
.dlp-hero-texto { padding-bottom: 34px; }
.dlp-hero-ola { display: block; width: 100%; height: 46px; margin-top: -1px; }
.dlp-hero-ola path { fill: var(--tsu); transition: fill .6s; }

.dlp-hero-marca { display: flex; align-items: center; gap: 16px; }
.dlp-hero-logo {
    width: 96px; height: 96px; flex: 0 0 auto;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 14px 30px rgba(0,0,0,.35);
    animation: dlp-logo-entra .9s cubic-bezier(.2,1.5,.4,1) both, dlp-logo-mece 6s ease-in-out 1s infinite;
}
@keyframes dlp-logo-entra { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes dlp-logo-mece { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg) scale(1.03); } }
.dlp-hero-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    padding: 4px 10px;
    border-radius: 999px;
}
#dlp-catalogo .dlp-hero-nombre {
    margin: 8px 0 0;
    font-size: clamp(32px, 4.6vw, 54px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.03em;
    color: #fff;
    text-shadow: 0 3px 0 rgba(0,0,0,.18), 0 10px 28px rgba(0,0,0,.25);
}
.dlp-hero-nombre span { color: var(--tac); display: inline-block; }
.dlp-hero-tema {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,.24);
    font-size: 16px;
    font-weight: 800;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: dlp-sube .7s .25s both;
}
.dlp-hero-frase {
    margin: 0 0 18px;
    max-width: 470px;
    font-size: 16px;
    line-height: 1.45;
    opacity: .96;
    animation: dlp-sube .7s .35s both;
}
.dlp-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; animation: dlp-sube .7s .45s both; }
.dlp-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
    transition: transform .15s, box-shadow .15s;
}
.dlp-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.28); }
.dlp-hero-btn:active { transform: translateY(0) scale(.97); }
.dlp-hero-btn svg { width: 18px; height: 18px; fill: currentColor; }
.dlp-hero-btn.is-main { background: var(--tac); color: #111 !important; }
.dlp-hero-btn.is-wa   { background: #25d366; color: #fff !important; }
.dlp-hero-btn.is-of   { background: #111; color: #facc15 !important; animation: dlp-of-pulse 1.6s ease-in-out infinite; }
.dlp-hero-btn[hidden] { display: none; }
.dlp-hero-perks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 18px 0 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    opacity: .95;
    animation: dlp-sube .7s .55s both;
}
@keyframes dlp-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Los 4 dinosaurios del mes */
.dlp-hero-dinos { position: relative; height: 360px; }
.dlp-dino {
    position: absolute;
    bottom: 14px;
    width: 31%;
    padding: 0;
    margin: 0;
    border: 0;
    background: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transform-origin: 50% 100%;
    -webkit-tap-highlight-color: transparent;
    animation: dlp-dino-entra .8s cubic-bezier(.2,1.4,.4,1) both;
}
.dlp-dino img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 16px 14px rgba(0,0,0,.33));
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    animation: dlp-dino-flota 4.2s ease-in-out infinite;
    transition: opacity .35s;
}
.dlp-dino.d1 { left: 0;   z-index: 3; animation-delay: .15s; }
.dlp-dino.d2 { left: 22%; z-index: 1; bottom: 46px; width: 28%; animation-delay: .3s; }
.dlp-dino.d3 { left: 48%; z-index: 2; bottom: 46px; width: 28%; animation-delay: .45s; }
.dlp-dino.d4 { left: 69%; z-index: 4; animation-delay: .6s; }
.dlp-dino.d2 img { animation-delay: -1.1s; }
.dlp-dino.d3 img { animation-delay: -2.3s; }
.dlp-dino.d4 img { animation-delay: -3.1s; }
.dlp-dino:focus-visible { outline: 3px solid rgba(255,255,255,.8); outline-offset: 4px; border-radius: 16px; }
.dlp-dino.salta { animation: dlp-dino-salta .75s cubic-bezier(.3,1.6,.5,1); }
@keyframes dlp-dino-entra { from { opacity: 0; transform: translateY(70px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes dlp-dino-flota { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
@keyframes dlp-dino-salta {
    0% { transform: scale(1, 1); }
    20% { transform: scale(1.12, .86); }
    50% { transform: translateY(-46px) scale(.94, 1.08) rotate(-4deg); }
    80% { transform: translateY(0) scale(1.06, .94); }
    100% { transform: scale(1, 1); }
}
.dlp-dino-globo {
    position: absolute;
    bottom: 96%;
    left: 50%;
    z-index: 5;
    width: max-content;
    max-width: 170px;
    padding: 8px 11px;
    border-radius: 14px;
    background: #fff;
    color: #111;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) scale(.4);
    transform-origin: 50% 100%;
    transition: opacity .2s, transform .3s cubic-bezier(.2,1.6,.4,1);
}
.dlp-dino-globo::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -7px;
    border: 7px solid transparent;
    border-top-color: #fff;
}
.dlp-dino.d1 .dlp-dino-globo { left: 8%; transform: scale(.4); transform-origin: 20% 100%; }
.dlp-dino.d1 .dlp-dino-globo::after { left: 30%; }
.dlp-dino.d4 .dlp-dino-globo { left: auto; right: 8%; transform: scale(.4); transform-origin: 80% 100%; }
.dlp-dino.d4 .dlp-dino-globo::after { left: 70%; }
.dlp-dino.habla { z-index: 6; }
.dlp-dino.habla .dlp-dino-globo { opacity: 1; transform: translateX(-50%) scale(1); }
.dlp-dino.d1.habla .dlp-dino-globo,
.dlp-dino.d4.habla .dlp-dino-globo { transform: scale(1); }
.dlp-hero-piso {
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 0;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0,0,0,.30), transparent);
}

/* ── Lista de productos sobre el fondo del mes ───────────────── */
#dlp-catalogo.dlp-tema .dlp-cat-head {
    margin: 4px 0 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(13,27,46,.07);
    align-items: center;
    scroll-margin-top: 12px;
}
#dlp-catalogo.dlp-tema .dlp-cat-toolbar {
    background: rgba(255,255,255,.0);
    margin-left: -20px;
    margin-right: -20px;
    padding: 10px 20px 10px;
    transition: background .2s, box-shadow .2s;
}
#dlp-catalogo.dlp-tema .dlp-cat-toolbar.is-pegada {
    background: rgba(255,255,255,.93);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(13,27,46,.10);
}
#dlp-catalogo.dlp-tema .dlp-cat-filter.active { background: var(--t2) !important; border-color: var(--t2); }
#dlp-catalogo.dlp-tema .dlp-cat-count {
    display: inline-block;
    background: rgba(255,255,255,.8);
    color: #374151;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}
#dlp-catalogo.dlp-tema .dlp-cat-card { box-shadow: 0 4px 14px rgba(13,27,46,.06); }
#dlp-catalogo.dlp-tema .dlp-cat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13,27,46,.14); }
#dlp-catalogo.dlp-tema .dlp-cat-card { transition: border-color .15s, box-shadow .2s, transform .2s; }
#dlp-catalogo.dlp-tema .dlp-cat-card.is-agotado-temporal:hover { transform: none; }
#dlp-catalogo.dlp-tema .dlp-cat-loading,
#dlp-catalogo.dlp-tema #dlp-no-results { background: rgba(255,255,255,.88); border-radius: 18px; }
#dlp-no-results img { display: block; width: 120px; height: auto; margin: 0 auto 10px; animation: dlp-dino-flota 4s ease-in-out infinite; }

/* Tarjetas que aparecen al bajar */
.dlp-aparece { opacity: 0; transform: translateY(18px) scale(.98); }
.dlp-aparece.is-in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s cubic-bezier(.2,1.2,.4,1); transition-delay: var(--d, 0s); }

/* ── Dinos dentro de la lista (tarjetas del dino del mes) ─────── */
.dlp-cat-card.dlp-dino-tile {
    cursor: default;
    border: 0;
    background: linear-gradient(160deg, var(--t1), var(--t2) 60%, var(--t3));
    color: #fff;
    text-decoration: none;
}
.dlp-dino-tile-foto {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.dlp-dino-tile-foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    transition: transform .6s ease;
}
.dlp-dino-tile:hover .dlp-dino-tile-foto img { transform: scale(1.06); }
.dlp-dino-tile-nombre {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 1;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.dlp-dino-tile-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dlp-dino-tile-txt { font-size: 15px; font-weight: 800; line-height: 1.25; }
.dlp-dino-tile-txt small { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; opacity: .9; }
.dlp-dino-tile-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 8px;
    border-radius: 10px;
    background: var(--tac);
    color: #111 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    text-align: center;
}
.dlp-dino-tile-btn.is-wa { background: #25d366; color: #fff !important; }
.dlp-dino-tile-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* Dino del mes asomándose en las tarjetas de ofertón */
.dlp-cat-card.is-oferton .dlp-cat-body { position: relative; }
.dlp-of-dino {
    position: absolute;
    right: 6px;
    bottom: 100%;
    z-index: 5;
    width: 26%;
    max-width: 74px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
    animation: dlp-dino-asoma 3.2s ease-in-out infinite;
    transform-origin: 50% 100%;
    pointer-events: none;
}
@keyframes dlp-dino-asoma { 0%, 100% { transform: translateY(8%) rotate(-3deg); } 50% { transform: translateY(0) rotate(3deg); } }

/* Banner de ofertones con el dino del mes recortado */
.dlp-of-banner-img.is-recorte {
    aspect-ratio: auto;
    height: auto;
    max-height: 210px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    background: none;
    filter: drop-shadow(0 12px 14px rgba(0,0,0,.35));
}
.dlp-modal-of-head img.is-recorte { object-fit: contain; background: none; border: 0; border-radius: 0; }

/* ── "El dino dice" en la ficha del producto ─────────────────── */
.dlp-dino-dice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 4px;
}
.dlp-dino-dice img {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--t2, #2563eb), 0 6px 14px rgba(0,0,0,.15);
    animation: dlp-dino-asoma 3.4s ease-in-out infinite;
}
.dlp-dino-dice span {
    position: relative;
    background: var(--tsu, #eef2fb);
    border: 1px solid rgba(13,27,46,.08);
    color: #1f2937;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    padding: 9px 12px;
    border-radius: 14px;
}
.dlp-dino-dice span::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    margin-top: -6px;
    border: 6px solid transparent;
    border-left: 0;
    border-right-color: var(--tsu, #eef2fb);
}

/* ── Botón para subir con el dino ────────────────────────────── */
.dlp-subir {
    position: fixed;
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 9990;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tac, #facc15);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px) scale(.6);
    pointer-events: none;
    transition: opacity .25s, transform .35s cubic-bezier(.2,1.6,.4,1);
}
.dlp-subir.ver { opacity: 1; transform: none; pointer-events: auto; }
.dlp-subir img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.dlp-subir span {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: center;
    padding: 2px 0 4px;
}
.dlp-modal-overlay.open ~ .dlp-subir { display: none; }

/* ── Bienvenida animada (una vez por visita) ─────────────────── */
.dlp-intro {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    background: linear-gradient(155deg, var(--t1), var(--t2) 55%, var(--t3));
    color: #fff;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: opacity .5s ease, transform .5s ease;
}
.dlp-intro.sale { opacity: 0; transform: scale(1.06); pointer-events: none; }
.dlp-intro-logo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px #fff, 0 20px 40px rgba(0,0,0,.35);
    animation: dlp-logo-entra .8s cubic-bezier(.2,1.5,.4,1) both;
}
.dlp-intro-dino {
    height: 200px;
    width: auto;
    max-width: 70vw;
    margin-top: 6px;
    filter: drop-shadow(0 16px 14px rgba(0,0,0,.35));
    animation: dlp-intro-brinca 1s .35s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes dlp-intro-brinca {
    0% { opacity: 0; transform: translateY(120px) scale(.5); }
    60% { opacity: 1; transform: translateY(-18px) scale(1.05); }
    100% { opacity: 1; transform: none; }
}
.dlp-intro-hola { font-size: 15px; font-weight: 700; opacity: .9; animation: dlp-sube .6s .6s both; }
.dlp-intro-nombre { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1; animation: dlp-sube .6s .75s both; }
.dlp-intro-nombre span { color: var(--tac); }
.dlp-intro-tema { font-size: 15px; font-weight: 800; background: rgba(0,0,0,.25); padding: 6px 14px; border-radius: 999px; animation: dlp-sube .6s .9s both; }

/* ── Celular y tableta ───────────────────────────────────────── */
@media (max-width: 800px) {
    #dlp-catalogo.dlp-tema { padding: 0 0 32px; }
    .dlp-cat-inner { padding: 0 12px; }
    #dlp-catalogo.dlp-tema .dlp-cat-toolbar { margin-left: -12px; margin-right: -12px; padding: 8px 12px; }
    .dlp-hero-in { grid-template-columns: 1fr; gap: 0; padding: 22px 16px 0; }
    .dlp-hero-texto { padding-bottom: 6px; }
    .dlp-hero-logo { width: 74px; height: 74px; }
    #dlp-catalogo .dlp-hero-nombre { font-size: 34px; }
    .dlp-hero-tema { margin-top: 16px; font-size: 14.5px; }
    .dlp-hero-frase { font-size: 15px; margin-bottom: 14px; }
    .dlp-hero-btn { padding: 12px 14px; font-size: 14px; flex: 1 1 auto; justify-content: center; }
    .dlp-hero-perks { font-size: 12px; gap: 4px 12px; margin-top: 14px; }
    .dlp-hero-dinos { height: 230px; margin-top: 8px; }
    .dlp-dino img { max-height: 200px; }
    .dlp-dino.d2, .dlp-dino.d3 { bottom: 30px; }
    .dlp-dino-globo { font-size: 11.5px; max-width: 140px; padding: 7px 9px; }
    .dlp-hero-ola { height: 30px; }
    #dlp-catalogo.dlp-tema .dlp-cat-head { padding: 12px; border-radius: 14px; }
    .dlp-dino-tile-txt { font-size: 13.5px; }
    .dlp-dino-tile-body { padding: 10px; gap: 8px; }
    .dlp-dino-tile-btn { font-size: 12px; padding: 9px 6px; }
    .dlp-subir { width: 54px; height: 54px; right: 12px; }
}
@media (max-width: 360px) {
    #dlp-catalogo .dlp-hero-nombre { font-size: 29px; }
    .dlp-hero-dinos { height: 200px; }
}

/* Sin animaciones para quien lo pide en su teléfono */
@media (prefers-reduced-motion: reduce) {
    .dlp-hero, .dlp-hero-logo, .dlp-dino, .dlp-dino img, .dlp-of-dino, .dlp-dino-dice img,
    .dlp-hero-tema, .dlp-hero-frase, .dlp-hero-ctas, .dlp-hero-perks, #dlp-no-results img { animation: none !important; }
    .dlp-aparece { opacity: 1; transform: none; }
}

/* Página /ofertones/ con el dino del mes */
.dlp-of-hero-img.is-recorte { width: 260px; background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)); }
body.dlp-of-tema { background: var(--tsu, #f3f4f6); }
body.dlp-of-tema .dlp-fondo { position: fixed; inset: 0; width: 100vw; height: 100vh; margin: 0; z-index: 0; }
body.dlp-of-tema .dlp-of-wrap, body.dlp-of-tema .dlp-of-top { position: relative; z-index: 1; }
body.dlp-of-tema .dlp-of-top { position: sticky; z-index: 20; }
/* Mientras está la bienvenida, el encabezado espera para hacer su entrada después */
.dlp-intro-activa .dlp-hero,
.dlp-intro-activa .dlp-hero * { animation-play-state: paused !important; }
@media (max-width: 800px) {
    .dlp-of-hero-img.is-recorte { width: 170px; }
}
