/* ============================================================
   FICHERO A EDITAR: /var/www/Belnou/public/tema/teasers.css
   Reemplazar TODO el contenido por lo siguiente.
   Tarjetas de producto (teasers) - modernizado, granate, tokens.
   Adaptado a las clases REALES de public/mod/teasers/teaser.tpl.php:
     .teaser > #idPrecio2{ref}>.dtopor , .contenedorimg>.divetiqueta>(.etiqueta/.etiqueta2)+img.img ,
     span.tit2 (FAM=' ') , span.tit , (.precio comentado en tpl) , button.vermas>span
   ============================================================ */

/* -------- Contenedor de la rejilla (se conserva inline-block; filtros.js
   fuerza display:inline-block en .teaser, no usar CSS grid aqui) -------- */
.listadoteasers{
    width: 100%;
    padding: 0;
    margin: 0;
    margin-top: 32px;
    text-align: center;
    overflow: hidden;
    font-family: var(--font-main);
}

/* -------- Tarjeta -------- */
.teaser{
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 291px;
    max-width: 100%;
    margin: 0 7px 26px 7px;
    text-align: left;
    text-decoration: none !important;
    background: var(--color-white) !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1),
                box-shadow .3s cubic-bezier(.4,0,.2,1),
                border-color .3s ease;
}
.teaser:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-principal-20);
}

/* -------- Imagen -------- */
.teaser .contenedorimg{
    position: relative;
    width: 100%;
    height: 230px;
    margin: 0;
    overflow: hidden;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.teaser .img{
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.teaser:hover .img{ transform: scale(1.05); }

/* -------- Familia (FAM = ' ' en public: actua como espaciador) -------- */
.teaser .tit2{
    display: block;
    margin: 0;
    padding: 12px 14px 0 14px;
    color: var(--color-text-light);
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
}

/* -------- Titulo (recorte a 2 lineas) -------- */
.teaser .tit{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
    margin: 4px 14px 8px 14px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -.1px;
    text-decoration: none;
}

/* -------- Boton Ver mas (pill granate outline -> fill) -------- */
.teaser .vermas{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-width: 130px;
    height: 38px;
    margin: 6px 14px 16px 14px;
    padding: 0 18px;
    background: transparent;
    border: 1.5px solid var(--color-principal);
    border-radius: 50px;
    color: var(--color-principal);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.teaser .vermas:hover{
    background: var(--color-principal);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}
.teaser .vermas span{
    color: var(--color-principal);
    font-size: 14px;
    padding-left: 4px;
    transition: color .25s ease, transform .25s ease;
}
.teaser .vermas:hover span{
    color: var(--color-white);
    transform: translateX(2px);
}

/* -------- Contenedor de badges (arriba-izquierda, apilados) -------- */
.teaser .divetiqueta{
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: auto;
    pointer-events: none;
}

/* -------- Badges pill (resetea float/circulo antiguos) -------- */
.teaser .etiqueta,
.teaser .etiqueta2{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 5px 10px;
    background: var(--color-principal);
    color: var(--color-white);
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Colores por tipo (todos granate; agotado neutro por semantica) */
.teaser .agotado     { background: var(--color-complementary); }
.teaser .oferta      { display: none; }               /* oculto (comportamiento actual) */
.teaser .campanya    { background: var(--color-principal); }
.teaser .liquidacion { background: var(--color-principal); }
.teaser .new         { background: var(--color-principal); }
.teaser .destacado   { background: var(--color-principal); }
.teaser .masvendido  { background: var(--color-principal); }
.teaser .outlet      { background: var(--color-principal); }

/* Textos de los badges (se conservan) */
.teaser .agotado::after     { content: "SIN STOCK"; }
.teaser .oferta::after      { content: "OFERTA"; }
.teaser .liquidacion::after { content: "LIQUIDACIÓN"; }
.teaser .new::after         { content: "NUEVO"; }
.teaser .destacado::after   { content: "DESTACADO"; }
.teaser .masvendido::after  { content: "MÁS VENDIDO"; }
.teaser .outlet::after      { content: "OUTLET"; }

/* -------- % descuento (JS lo inyecta en #idPrecio2 > .dtopor) -------- */
.teaser .dtopor{
    display: none;                 /* lo activa teasers.js */
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 5px 10px;
    background: var(--color-principal);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .3px;
    white-space: nowrap;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transform: none;               /* elimina el "lazo" rotado antiguo */
}
.teaser .dtopor span{
    font-size: 12px;
    font-weight: 800;
}

/* -------- Precio (comentado en la plantilla; listo si se activa) -------- */
.teaser .precio{
    display: none;                 /* lo controla teasers.js */
    margin: 0;
    padding: 0 14px 4px 14px;
    color: var(--color-text);
    text-decoration: none;
}
.teaser .precio .pvp{
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-principal);
    letter-spacing: -.3px;
    vertical-align: middle;
}
.teaser .precio span{
    display: inline-block;
    color: var(--color-principal);
    font-size: 15px;
}
.teaser .precio .descuento{
    display: none;                 /* JS lo pone inline-block si hay descuento */
    margin-left: 8px;
    font-size: 13px;
    vertical-align: middle;
}
.teaser .precio .descuento .pvpant{
    text-decoration: line-through;
    color: var(--color-text-light);
    opacity: .7;
    font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media all and (max-width:1185px){
    /* Layout fluido; sin cambios forzados de ancho */
}

@media all and (max-width:650px){ /* Movil: 2 columnas */
    .teaser{
        width: calc(50% - 10px);
        margin: 0 4px 18px 4px;
    }
    .teaser .contenedorimg{
        height: auto;
        min-height: 150px;
        aspect-ratio: 1 / 1;
    }
    .teaser .tit{ font-size: 14px; }
    .teaser .vermas{
        min-width: 0;
        width: calc(100% - 24px);
        margin: 6px 12px 14px 12px;
    }
    .teaser .divetiqueta{ top: 8px; left: 8px; gap: 5px; }
    .teaser .dtopor{ top: 8px; right: 8px; }
    .teaser .precio .pvp{ font-size: 19px; }
}

@media all and (max-width:380px){ /* Moviles muy estrechos */
    .teaser .etiqueta,
    .teaser .etiqueta2,
    .teaser .dtopor{ font-size: 9px; padding: 4px 8px; }
    .teaser .tit{ font-size: 13px; }
    .teaser .precio .pvp{ font-size: 17px; }
}