/* ==========================================================================
   SOLOS · index.css
   ========================================================================== */

:root {
    --solos-accent: #EE4D2D;
    --solos-accent-dark: #D8431F;
    --solos-accent-soft: #FFF1EC;

    --solos-lilac: #9B6ADE;
    --solos-lilac-dark: #7E4FC0;
    --solos-lilac-soft: #F3ECFC;

    --solos-text: #212529;
    --solos-muted: #757575;
    --solos-border: #F0F0F0;

    --solos-radius: 14px;
    --solos-radius-sm: 8px;
}


/* ==========================================================================
   UTILIDADES
   ========================================================================== */

.animate-pulse {
    animation: solos-pulse 1.8s ease-in-out infinite;
}

@keyframes solos-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .45;
    }
}

.hover-link {
    transition: opacity .2s ease;
}

.hover-link:hover {
    opacity: .75;
}


/* ==========================================================================
   INICIO: TÍTULO Y SUBTÍTULO COMPACTOS (el buscador queda más arriba)
   ========================================================================== */

.inicio-titulo {
    margin: 0 0 4px;
    font-size: clamp(1.35rem, 4.6vw, 2.1rem);
    line-height: 1.15;
}

.inicio-subtitulo {
    margin: 0 0 12px;
    font-size: 0.95rem;
}


/* ==========================================================================
   CATEGORÍAS — 2 FILAS
   ========================================================================== */

.categorias-scroll-wrapper {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    /* Menos padding arriba para pegarlo más al header */
    padding: 4px 0 10px;

    /* Snap scroll tipo Shopee/carrusel */
    scroll-snap-type: x proximity;
}

.categorias-scroll-wrapper::-webkit-scrollbar {
    display: none;
}


.categorias-grid {
    display: grid;

    grid-template-rows: repeat(2, auto);

    grid-auto-flow: column;

    /* Columnas más angostas */
    grid-auto-columns: 82px;

    /* Gap más ajustado, estilo grilla apretada */
    gap: 14px 10px;

    width: max-content;

    min-width: 100%;

    justify-content: center;

    padding: 2px 10px;
}


.categoria-item {
    width: 82px;
    min-width: 82px;

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

    text-align: center;

    color: var(--solos-text);

    transition: transform .15s ease;

    scroll-snap-align: start;
}


.categoria-circulo {
    /* Círculo más pequeño y compacto */
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    border-radius: 50%;

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

    color: #fff;

    font-size: 1.2rem;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, .08);

    transition:
        transform .15s ease,
        box-shadow .15s ease;

    overflow: hidden;
}


.categoria-circulo img {
    width: 60%;
    height: 60%;

    object-fit: contain;
}


.categoria-item:active .categoria-circulo {
    transform: scale(0.93);
}

.categoria-item:hover .categoria-circulo {
    transform: translateY(-2px);

    box-shadow:
        0 6px 14px rgba(0, 0, 0, .12);
}


.categoria-nombre {
    display: block;

    width: 100%;

    /* Menos separación entre círculo y texto */
    margin-top: 5px;

    padding: 0 2px;

    color: var(--solos-text);

    /* Texto un poco más chico para que combine con el círculo reducido */
    font-size: .68rem;

    font-weight: 600;

    line-height: 1.2;

    white-space: normal;

    overflow: visible;

    word-break: normal;

    overflow-wrap: break-word;

    /* Máximo 2 líneas, igual que hicimos con el nombre del producto */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================================
   CATEGORÍAS: FONDO SUAVE, APARICIÓN ESCALONADA Y EFECTO AL TOCAR
   ========================================================================== */

/* Navegadores viejos: fondo sólido y ícono blanco, como antes */
.categoria-circulo-suave {
    background: var(--cat);
    color: #fff;
}

/* Con color-mix: un tono claro del color de la categoría y el ícono en su color */
@supports (background: color-mix(in srgb, red 20%, white)) {

    .categoria-circulo-suave {
        border: 1px solid color-mix(in srgb, var(--cat) 30%, #fff);
        background: color-mix(in srgb, var(--cat) 15%, #fff);
        box-shadow: 0 4px 10px color-mix(in srgb, var(--cat) 20%, transparent);
        color: var(--cat);
    }
}

.categoria-item:hover .categoria-circulo {
    transform: translateY(-3px) scale(1.06);
}

.categoria-item:active .categoria-circulo {
    transform: scale(0.92);
}

@media (prefers-reduced-motion: no-preference) {

    /* Una tras otra al entrar (tope de 0,6 s aunque haya muchas) */
    .categoria-item {
        animation: categoriaAparecer 0.45s cubic-bezier(.2, .8, .3, 1) both;
        animation-delay: min(calc(var(--i, 0) * 45ms), 600ms);
    }
}

@media (prefers-reduced-motion: reduce) {

    .categoria-item,
    .categoria-circulo {
        transition: none;
    }
}

@keyframes categoriaAparecer {
    from { opacity: 0; transform: translateY(10px) scale(0.92); }
    to   { opacity: 1; transform: none; }
}


/* ==========================================================================
   BUSCADOR — LILA
   ========================================================================== */



.buscador-contenedor {
    position: relative;
}


.buscador-contenedor #search-form {
    border-radius: 999px;

    background: #fff;

    overflow: hidden;

    border: 1.5px solid rgba(155, 106, 222, .18);

    box-shadow:
        0 4px 16px rgba(155, 106, 222, .10) !important;

    transition:
        box-shadow .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.buscador-contenedor #search-form:focus-within {
    border-color: var(--solos-lilac);

    box-shadow:
        0 8px 24px rgba(155, 106, 222, .20) !important;

    transform: translateY(-1px);
}


.buscador-contenedor .input-group {
    position: relative;
}


.buscador-contenedor #search-input {
    border-radius: 999px !important;

    border: none !important;

    background: #fff;

    color: var(--solos-text);

    padding-left: 22px;
    padding-right: 8px;

    box-shadow: none !important;
}


.buscador-contenedor #search-input::placeholder {
    color: #999;
}


.buscador-contenedor #search-input:focus {
    border: none !important;

    box-shadow: none !important;

    outline: none;
}


.buscador-contenedor .btn-primary {
    background-color: var(--solos-lilac) !important;

    border: none !important;

    color: #fff;

    border-radius: 999px !important;

    margin: 4px 4px 4px 0;

    padding-left: 20px;
    padding-right: 20px;

    font-weight: 600;

    font-size: .92rem;

    letter-spacing: .01em;

    box-shadow: none !important;

    outline: none !important;

    transition:
        background-color .2s ease,
        transform .15s ease;
}


.buscador-contenedor .btn-primary:hover {
    background-color: var(--solos-lilac-dark) !important;

    box-shadow: none !important;
}


.buscador-contenedor .btn-primary:focus,
.buscador-contenedor .btn-primary:focus-visible {
    background-color: var(--solos-lilac-dark) !important;

    box-shadow: none !important;

    outline: none !important;
}


.buscador-contenedor .btn-primary:active {
    transform: scale(.96);

    box-shadow: none !important;
}


.buscador-contenedor .btn-primary i {
    font-size: .9rem;
}

/* ==========================================================================
   SUGERENCIAS
   ========================================================================== */

.items-buscador-flotante {
    top: calc(100% + 8px);

    left: 0;

    width: 100%;

    background: #fff;

    border: 1px solid var(--solos-lilac-soft);

    border-radius: 12px;

    overflow: hidden;

    z-index: 1050;

    text-align: left;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .12) !important;
}


.sugerencia-producto {
    display: flex;

    align-items: center;

    gap: 12px;

    border-left: none !important;
    border-right: none !important;

    border-color: #f1f1f1 !important;

    padding: 10px 12px;

    background: #fff;

    text-decoration: none;

    transition:
        background-color .15s ease;
}


.sugerencia-producto:hover {
    background-color: var(--solos-lilac-soft);
}


.sugerencia-producto-imagen,
.sugerencia-producto-sin-imagen {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 8px;

    object-fit: cover;

    background: #f5f5f5;
}


.sugerencia-producto-sin-imagen {
    display: flex;

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

    color: #aaa;

    font-size: 1.1rem;
}


.sugerencia-producto-info {
    min-width: 0;

    flex: 1;
}


.sugerencia-producto-nombre {
    color: var(--solos-text);

    font-size: .88rem;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.sugerencia-producto-precio {
    margin-top: 2px;

    color: var(--solos-accent);

    font-size: .82rem;

    font-weight: 400;
}


.sugerencia-producto-flecha {
    color: var(--solos-lilac);

    font-size: .9rem;
}


/* ==========================================================================
   TARJETAS DE PRODUCTOS
   ========================================================================== */

.tarjeta-producto-animada {
    border-radius: var(--solos-radius);

    overflow: hidden;

    background: #fff;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.tarjeta-producto-animada:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, .10) !important;
}


/* ==========================================================================
   IMAGEN
   ========================================================================== */

.contenedor-imagen-producto {
    display: block;

    aspect-ratio: 1 / 1;

    cursor: pointer;

    background: #f7f7f7;
}


.imagen-recortada {
    object-fit: cover;

    transition: transform .35s ease;
}


.tarjeta-producto-animada:hover .imagen-recortada {
    transform: scale(1.05);
}


/* ==========================================================================
   FOTOS EXTRA
   ========================================================================== */

.badge-fotos-extra {
    bottom: 8px;

    right: 8px;

    font-size: .65rem;

    border-radius: 999px;

    padding: .25rem .5rem;

    z-index: 5;
}


/* ==========================================================================
   DESTACADO
   ========================================================================== */

.badge-flotante-producto {
    position: absolute;

    top: 10px;
    left: 10px;

    z-index: 6;

    background: #fff;

    color: var(--solos-accent);

    font-size: .65rem;

    font-weight: 600;

    padding: .3rem .55rem;

    border-radius: 999px;

    letter-spacing: .01em;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, .08);
}


.badge-flotante-producto i {
    color: #FFC107;
}


/* ==========================================================================
   TIENDA — ahora es un <a> clickeable, necesita fondo y color propios
   ========================================================================== */

.etiqueta-tienda {
    display: inline-block;

    background-color: var(--solos-lilac-soft);

    color: var(--solos-lilac-dark);

    font-size: .65rem;

    font-weight: 600;

    border-radius: 999px;

    padding: .25rem .55rem;

    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    transition:
        background-color .15s ease,
        color .15s ease;
}


.etiqueta-tienda:hover {
    background-color: var(--solos-lilac);

    color: #fff;
}


/* ==========================================================================
   DESCRIPCIÓN
   ========================================================================== */

.descripcion-producto {
    min-height: 1.1em;
}


/* ==========================================================================
   PRECIO
   ========================================================================== */

/*
   "Desde" queda VERDE
*/

.etiqueta-precio-desde {
    font-size: 0.78rem;
    font-weight: 500;
    color: #16a34a; /* verde, como "Desde" */
}

.etiqueta-precio {
    font-size: 0.78rem;
    font-weight: 500;
    color: #16a34a;
}



/*
   Bs. queda en color normal.
*/

.precio-moneda {
    color: var(--solos-text);

    font-size: .85rem;

    font-weight: 400;
}


/*
   SOLO EL NÚMERO ES ROJO.
   NO está en negrita.
*/

.precio-destacado {
    color: #EE4D2D !important;

    font-size: .95rem;

    font-weight: 400 !important;

    line-height: 1.2;
}


/* ==========================================================================
   BOTÓN SUBIR ARRIBA — LILA
   ========================================================================== */

.btn-back-to-top {
    position: fixed;

    right: 20px;
    bottom: 24px;

    width: 46px;
    height: 46px;

    border: none;

    border-radius: 50%;

    background-color: var(--solos-lilac) !important;

    color: #fff;

    font-size: 1.15rem;

    display: flex;

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

    box-shadow:
        0 6px 18px rgba(155, 106, 222, .35);

    z-index: 1000;

    opacity: 0;

    visibility: hidden;

    transform: translateY(12px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease,
        background-color .2s ease;
}


.btn-back-to-top.mostrar {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.btn-back-to-top:hover {
    background-color: var(--solos-lilac-dark) !important;

    color: #fff;
}


.btn-back-to-top:focus {
    outline: none;

    box-shadow:
        0 0 0 4px var(--solos-lilac-soft),
        0 6px 18px rgba(155, 106, 222, .35);
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 991.98px) {

    .categorias-grid {
        grid-auto-columns: 115px;

        gap: 17px 14px;
    }


    .categoria-item {
        width: 115px;

        min-width: 115px;
    }

}


/* ==========================================================================
   CELULAR
   ========================================================================== */

@media (max-width: 767.98px) {

    .categorias-grid {
        grid-auto-columns: 76px;

        gap: 10px 8px;

        padding-left: 8px;
        padding-right: 8px;
        padding-top: 2px;

        justify-content: start;
    }


    .categoria-item {
        width: 76px;

        min-width: 76px;

        scroll-snap-align: start;
    }


    .categoria-circulo {
        width: 50px;
        height: 50px;

        font-size: 1.1rem;
    }


    .categoria-nombre {
        font-size: .64rem;

        line-height: 1.15;

        margin-top: 4px;

        padding: 0 2px;
    }


    /* BUSCADOR */

    .buscador-contenedor #search-input {
        padding-left: 15px;

        font-size: .95rem;
    }


    .buscador-contenedor .btn-primary {
        padding-left: 15px;

        padding-right: 15px;
    }


    .buscador-contenedor .btn-primary span {
        display: none;
    }


    /* PRODUCTOS */

    .card-body {
        padding: .7rem !important;
    }


    .card-title {
        font-size: .82rem;
    }


    .etiqueta-tienda {
        font-size: .6rem;
    }


    .descripcion-producto {
        font-size: .68rem !important;
    }


    .precio-moneda {
        font-size: .78rem;
    }


    .precio-destacado {
        font-size: .88rem;
    }


    .etiqueta-precio-desde {
        font-size: .62rem;
    }


    .badge-flotante-producto {
        font-size: .6rem;

        padding: .22rem .45rem;
    }


    /* BOTÓN SUBIR */

    .btn-back-to-top {
        right: 14px;

        bottom: 16px;

        width: 42px;
        height: 42px;
    }


    /* SUGERENCIAS */

    .sugerencia-producto {
        padding: 9px 10px;
    }


    .sugerencia-producto-imagen,
    .sugerencia-producto-sin-imagen {
        width: 44px;
        height: 44px;

        flex-basis: 44px;
    }


    .sugerencia-producto-nombre {
        font-size: .82rem;
    }


    .sugerencia-producto-precio {
        font-size: .78rem;
    }

}


/* ==========================================================================
   CELULARES MUY PEQUEÑOS
   ========================================================================== */

@media (max-width: 380px) {

    .categorias-grid {
        grid-auto-columns: 70px;

        gap: 8px 6px;

        padding-top: 0;
    }


    .categoria-item {
        width: 70px;

        min-width: 70px;
    }


    .categoria-circulo {
        width: 46px;
        height: 46px;
    }


    .categoria-nombre {
        font-size: .6rem;
    }


    .card-body {
        padding: .6rem !important;
    }


    .precio-moneda {
        font-size: .74rem;
    }


    .precio-destacado {
        font-size: .84rem;
    }

}
.badge-promo-producto {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: #ee4d2d;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    padding: 5px 10px;
    border-radius: 999px;
    line-height: 1;
}

/* ===== Filtro por ciudad ===== */
.ciudad-selector-wrapper {
    display: flex;
    justify-content: center;
    margin: 14px 0 4px;
}

.ciudad-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: .92rem;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
}
.ciudad-pill:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
    transform: translateY(-1px);
}
.ciudad-pill .bi-geo-alt-fill { color: #ef4444; }
.ciudad-pill-flecha { font-size: .75rem; color: #9ca3af; }

.ciudad-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ciudad-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: all .15s;
}
a.ciudad-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}
.ciudad-btn.activa {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.ciudad-btn.vacia {
    opacity: .45;
    cursor: not-allowed;
    background: #f9fafb;
}

/* Etapa 6D: "📍 Cerca de mí", arriba de la lista de ciudades, a todo el ancho */
.ciudad-btn-cerca {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
    cursor: pointer;
}
button.ciudad-btn-cerca:hover:not(.activa) {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}
.ciudad-btn-cerca:disabled { opacity: .7; cursor: wait; }
.cerca-mensaje {
    margin: -2px 0 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: .86rem;
    line-height: 1.35;
}


/* ==========================================================================
   INICIO: CARRUSEL DE PROMOCIONES A TODO EL ANCHO
   (el carrusel en sí está en core/css/carrusel_promos.css)
   ========================================================================== */

/* .promo-seccion.promo-inicio: carrusel_promos.css se carga después y define .promo-seccion */
.promo-seccion.promo-inicio {
    /* Todo el ancho: anula el padding del <main class="p-4"> de base.html (1,5 rem) */
    margin: 0 -1.5rem;
    padding: 14px 0 12px;
    background: linear-gradient(180deg, #f6f4ff 0%, #ffffff 100%);
}

@media (prefers-reduced-motion: no-preference) {

    .promo-inicio .promo-titulo {
        animation: promoEntrar 0.6s ease-out both;
    }
}

/* Acceso al panel en Inicio para el dueño o su equipo con sesión (la app abre aquí) */
.inicio-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5927ce, #7a58b1);
    box-shadow: 0 6px 16px rgba(89, 39, 206, .25);
    color: #fff;
    text-decoration: none;
}

.inicio-panel:hover,
.inicio-panel:focus {
    color: #fff;
    filter: brightness(1.06);
}

.inicio-panel span {
    overflow: hidden;
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inicio-panel strong {
    flex: 0 0 auto;
    font-size: .92rem;
}

/* =========================================================================
   MARCA DE AGUA en fotos de productos (solo tiendas con Store.marca_agua activo)
   Capa encima de la foto (core/partials/marca_agua.html): patrón repetido en diagonal con
   "<tienda> · SolOS", muy suave y sin estorbar al tocar (pointer-events: none). Las fotos
   guardadas no cambian. El contenedor .foto-protegida además impide guardar la foto al
   mantenerla presionada o arrastrarla (el clic derecho lo frena core/layouts/base.html).
   ========================================================================= */
.foto-protegida { position: relative; overflow: hidden; }
.foto-protegida img,
[data-foto-protegida] img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}
.marca-agua {
    position: absolute;
    inset: -50%;                 /* más grande que la foto: al girarla cubre las esquinas */
    transform: rotate(-30deg);
    background-repeat: repeat;
    opacity: .1;                 /* entre 0.08 y 0.12: se ve el producto sin problema */
    pointer-events: none;
}

/* ===== Promociones por rango de cliente (products/includes/promo_rango.html) ===== */
.promo-rango {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
    font-size: .75rem;
    line-height: 1.3;
}
.promo-rango-etiqueta {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3e8ff;          /* lila de la marca */
    color: #4c1d95;
    font-weight: 600;
}
.promo-rango-para-ti {
    display: flex;
    flex-wrap: wrap;               /* tarjetas angostas: el precio tachado y el "para ti" bajan de línea */
    gap: 0 4px;
    color: #15803d;
}
.promo-rango-para-ti s { color: #9ca3af; font-weight: 400; }
.promo-rango-para-ti strong { font-size: .85rem; }

/* "Hola, eres 🥈 Cliente Plata" arriba, en pequeño (core/partials/saludo_cliente.html) */
.saludo-cliente {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 4px 16px;
    background: #f5f3ff;
    color: #4c1d95;
    font-size: .8rem;
}
.saludo-cliente-no {
    border: 0;
    background: none;
    padding: 0;
    color: #6b7280;
    font-size: .78rem;
    text-decoration: underline;
    cursor: pointer;
}

/* ===== 🔥 Promoción con fecha de fin (products/includes/promo_tiempo.html) =====
   Etiqueta llamativa: degradado naranja-rojo, fueguito que titila y, en las últimas 24 horas,
   un brillo que late para dar urgencia. Solo visual. Nunca se sale de la tarjeta. */
.promo-tiempo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8a00 0%, #ee4d2d 100%);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .01em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 6px rgba(238, 77, 45, .35);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.promo-fuego {
    display: inline-block;
    font-size: .95em;
    transform-origin: 50% 80%;
    animation: promo-fuego 1.1s ease-in-out infinite alternate;
}
@keyframes promo-fuego {
    0%   { transform: scale(1) rotate(-6deg); filter: brightness(1); }
    50%  { transform: scale(1.18) rotate(4deg); filter: brightness(1.25); }
    100% { transform: scale(.95) rotate(-2deg); filter: brightness(1.05); }
}
/* Últimas 24 horas: late con un brillo rojo */
.promo-tiempo-urgente {
    background: linear-gradient(90deg, #ee4d2d 0%, #d0021b 100%);
    animation: promo-urgente 1.4s ease-in-out infinite;
}
@keyframes promo-urgente {
    0%, 100% { box-shadow: 0 2px 6px rgba(208, 2, 27, .35); }
    50%      { box-shadow: 0 0 0 4px rgba(238, 77, 45, .25), 0 2px 10px rgba(208, 2, 27, .55); }
}
.promo-tiempo-fin { background: #e5e7eb; color: #6b7280; box-shadow: none; animation: none; }
.promo-tiempo-fin .promo-fuego { animation: none; filter: grayscale(1); }
/* Ficha del producto: banner más grande, con título y la cuenta regresiva debajo */
.promo-tiempo-grande {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
    margin: 8px 0 4px;
    padding: 9px 16px 9px 12px;
    border-radius: 14px;
    font-size: 1rem;
    white-space: normal;
}
.promo-tiempo-grande .promo-fuego { grid-row: span 2; font-size: 1.8rem; }
.promo-tiempo-titulo { font-size: .78rem; font-weight: 700; opacity: .95; text-transform: uppercase; letter-spacing: .04em; }
.promo-tiempo-grande .promo-tiempo-texto { font-size: 1.15rem; }
@media (prefers-reduced-motion: reduce) {
    .promo-fuego, .promo-tiempo-urgente { animation: none; }
}
