/* =========================================================
   TICOJARRAS 2026
   TARJETAS DE PRODUCTOS - INDEX / RESULTADOS
   ========================================================= */


/* ---------------------------------------------------------
   CONTENEDOR DE LA IMAGEN
   --------------------------------------------------------- */

.img_resultsUNDER {
    position: relative;

    width: 100%;
    

    overflow: hidden;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    border-radius: 12px 12px 0 0;

    transition: transform .35s ease;
}


/* Imagen principal */

.img_results {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    transition:
        opacity .35s ease,
        transform .45s ease;
}


/*
   La imagen real sigue siendo necesaria
   porque contiene el enlace y ALT para SEO.
   Ocupa toda el área.
*/

.img_results .ciencien,
.img_resultsUNDER .ciencien {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover;

    transition:
        transform .45s ease,
        opacity .35s ease;
}


/* ---------------------------------------------------------
   HOVER DE LA IMAGEN
   --------------------------------------------------------- */

.img_resultsUNDER:hover .img_results {
    opacity: 0;
}


.img_resultsUNDER:hover .ciencien {
    transform: scale(1.035);
}


/* =========================================================
   INFORMACION DEL PRODUCTO
   ========================================================= */

.producticos_descripcion_index {
    position: relative;

    width: 100%;

    min-height: 92px;

    padding: 15px 16px 16px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-top: 0;

    border-radius: 0 0 12px 12px;

    box-sizing: border-box;

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


/* Quitamos estilos antiguos que puedan afectar */

.detals {
    width: 100%;

    margin: 0;
    padding: 0;

    text-align: left;
}


/* =========================================================
   NOMBRE
   ========================================================= */

.r_titulo_index {
    margin: 0 0 5px;

    color: #202020;

    font-family: 'Poppins', sans-serif;

    font-size: 15px;
    line-height: 1.35;

    font-weight: 500;

    text-align: left;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   CODIGO
   ========================================================= */

.r_codigo_index {
    margin: 0;

    color: #777777;

    font-family: 'Poppins', sans-serif;

    font-size: 11px;
    line-height: 1.4;

    font-weight: 400;

    text-align: left;
}


/* Le damos un pequeño detalle azul */

.r_codigo_index::before {
    content: "";

    display: inline-block;

    width: 5px;
    height: 5px;

    margin-right: 6px;

    vertical-align: middle;

    background: #1764a5;

    border-radius: 50%;
}


/* =========================================================
   PRECIO - SI ESTA ACTIVADO
   ========================================================= */

.preciorojo {
    margin-top: 8px;

    color: #d80000;

    font-family: 'Poppins', sans-serif;

    font-size: 16px;

    font-weight: 600;

    text-align: left;
}


.r_antes_index {
    display: block;

    margin-top: 7px;

    color: #666666;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    text-align: left;
}


.r_preciosin {
    color: #d80000;

    font-weight: 600;
}


/* =========================================================
   EFECTO VISUAL
   ========================================================= */

/*
   Como imagen y descripción son hermanos separados,
   hacemos que visualmente parezcan una sola tarjeta.
*/

.img_resultsUNDER {
    box-shadow:
        0 5px 18px rgba(0, 0, 0, .06);
}


.img_resultsUNDER:hover {
    transform: translateY(-4px);

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


/* =========================================================
   ENLACES
   ========================================================= */

.linkoscuro {
    display: block;

    width: 100%;
    height: 100%;

    color: inherit;

    text-decoration: none;
}


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

@media only screen and (max-width: 900px) {

    .producticos_descripcion_index {
        min-height: 82px;

        padding: 12px 13px 13px;
    }


    .r_titulo_index {
        font-size: 14px;
    }


    .r_codigo_index {
        font-size: 10px;
    }

}


/* =========================================================
   MOVIL
   ========================================================= */

@media only screen and (max-width: 600px) {

    .img_resultsUNDER {
        border-radius: 9px 9px 0 0;
    }


    /*
       En teléfonos no hay hover real.
       Siempre dejamos visible la imagen principal.
    */

    .img_resultsUNDER:hover .img_results {
        opacity: 1;
    }


    .img_resultsUNDER:hover {
        transform: none;
    }


    .producticos_descripcion_index {
        min-height: 75px;

        padding: 10px 10px 12px;

        border-radius: 0 0 9px 9px;
    }


    .r_titulo_index {
        margin-bottom: 3px;

        font-size: 12px;
    }


    .r_codigo_index {
        font-size: 9px;
    }


    .r_codigo_index::before {
        width: 4px;
        height: 4px;

        margin-right: 4px;
    }


    .preciorojo {
        margin-top: 5px;

        font-size: 14px;
    }

}

/* =========================================================
   GRID PRODUCTOS INDEX - CORRECCION
========================================================= */

.grillajust {
    width: 100%;
    gap: 20px;

    /* Cada producto conserva su altura natural */
    align-items: start !important;
}

.grillajust .producticos_index {
    width: 100% !important;
    min-width: 0;

    /* MUY IMPORTANTE */
    height: auto !important;
    align-self: start !important;
}

.grillajust .img_resultsUNDER,
.grillajust .img_results,
.grillajust .producticos_descripcion_index {
    width: 100% !important;
}

/* La descripción solamente ocupa lo necesario */
.grillajust .producticos_descripcion_index {
    height: auto !important;
}
