﻿/*

    Esto NO ES codigo libre! DR 2015-2025 parte de lightspeed framework, autor Carlos Sierra Cebrian

*/

@import url('https://fonts.googleapis.com/css2?family=Gelasio:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;500;600&display=swap');

:root {

    --gutter-components: 0.5rem;

    /* ---------------------------------- 
    Tarjeta: color, margen, padding, bordes 
    -------------------------------------
    */
    --card-bk-color: #ffffff;

    --card-mrn: 0.325rem; /*card margin*/
    --card-pdn: 0.25rem; /*card padding*/

    --card-brd-s: thin solid #f6f6f6;
    --card-brd-w: 0 1px 1px 0;
    --card-brd-r: 0rem; 

    /* top, bottom boxes */
    --coinfos1-display: block;
    --coinfos2-display: block;    

      /* Texto: color, margen y padding */
    --txt-h-color: #2451b1   ; /* color del heading */
    --txt-p-color: #333333; /* color del texto */    
    --txt-pdn: 0.25rem;
    --txt-mrn: 0.25rem;
    
    /* Imagen: bordes */
    --img-brd-s: none; /*style*/
    --img-brd-r: 0rem; /*border radius */ 
    
    /* bloques vertical y horizontal: borde separador, margen y padding */
    --bvh-brd: 1px dotted #666666;
    --bvh-mrg: 0.5rem;

}


/* 
html, body {
    line-height: 1.3rem;
    font-size: 19px;
    margin: 0;
    font-family: 'Open Sans', Lato, sans-serif;
}

 */

h1, h2, h3, h4 {
    font-family: Gelasio, sans-serif;
}


div.wrap {
    box-sizing: border-box;
    display: block;
    clear: both;
    width: 100%;
    padding: 0.5rem;
    overflow: hidden;
}

div.wrap::after {
    display: block;
    clear: both;
    content:".";
    color: transparent;
    height: 0px;
}

  /* -------------- */
 /*   Componentes  */
/* -------------- */


a.ac,
a.ac:hover,
a.ac:active {
    display: block;
    text-decoration: none;
    border: 0px solid transparent !important;
}


div.slide__frame {
    box-sizing: border-box;
    display: block;
    clear: both;
    position: relative;
    /* ajuste del titulo h3 sobre el marco - ahora + */
    margin-top: calc( var(--gutter-components) + 1.5rem );
    padding: 2rem 0.5rem 0.5rem 0.5rem;
    border: solid gray;
    border-width: 1px 0 0 0;
}

div.slide__frame > h3 { 
    position: absolute;
    top: -0.5rem; /* match con slide__frame.padding */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    margin-top: 0;
    margin-bottom: var(--gutter-components);
    padding: 0 0.5rem 0 0.5rem;
    white-space: nowrap;
    background-color: white;
}

a.cards__ctrl {
    color: white;
    text-decoration: none;
    display: inline-block;
    width: 2rem;
    line-height: 3rem;
    text-align: center;
    vertical-align: middle;
    border: 1px solid transparent;
    background-color: rgba(0,0,0, 0.3);
    z-index: 1;
}

a.cards__ctrl:hover {
    text-decoration: none;
    font-weight: bolder;
    color: black;
    background-color: rgba(255,255,255, 0.4);
    transition-property: all;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;
    transition-delay: 0.25s;
}

a.cards__ctrl.left {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 0.5rem; /* match con slide__frame.padding */
    transform: translateY(-50%);
    border-top-right-radius: var(--card-brd-r);
    border-bottom-right-radius: var(--card-brd-r);
}

a.cards__ctrl.right {
    margin: 0;
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    border-top-left-radius: var(--card-brd-r);
    border-bottom-left-radius: var(--card-brd-r);    
}


/*      widget    */

div.widget.cards {
    box-sizing: border-box;
    display: block !important;
    clear: both !important;
    margin: 0;
    padding: 0;
}

div.widget.cards div.shim {
    width: 100%;
}

div.widget.cards div.card {
    width: 80% !important;
    max-width: 640px !important;
    margin: auto !important;
}


/* vertical block */

div.vb.cards {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 0 !important;
    grid-row-gap: 0 !important;
}

div.vb.cards .shim {
    box-sizing: border-box;
    border-bottom: var(--bvh-brd) !important;
}

div.vb.cards .shim:last-of-type {
    border-bottom: none !important;
}

div.vb.cards div.card {
    margin: var(--bvh-mrg);
}

div.hb.cards {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat( 3, 33.33% );
    grid-template-rows: repeat( 1, auto );
    grid-auto-columns: 33.33%;
    grid-auto-rows: 100%;
    grid-auto-flow: column; 
    overflow: hidden;
    gap: 0rem 0rem !important;
}

div.hb.cards .shim {
    border-right: var(--bvh-brd) !important;
} 

div.hb.cards div.card {
    margin: var(--bvh-mrg);
}

div.cards.hb .shim:last-of-type {
    border-right: none !important;
}

div.cards {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 0.5rem !important;
    grid-row-gap: 0.5rem !important;
    margin-bottom: var(--gutter-components);
}

div.cards.super {
    grid-template-columns: 1fr 1fr;
}

div.card {
    box-sizing: border-box;
    position: relative;
    width: auto;
    height: auto;
    border: var(--card-brd-s);
    border-width: var(--card-brd-w);
    margin: var(--card-mrn);
    padding: var(--card-pdn);
    border-radius: var(--card-brd-r);
    background-color: var(--card-bk-color);
    /* vamos a heredar clases de eye candy */
    box-shadow: 0px 1.6px 3.6px rgba(0,0,0,0.13), 0px 0px 2.9px rgba(0,0,0,0.11);
    overflow: hidden !important;
}

/* eye candies */
div.card:hover > div.card__core img {
    filter: brightness(80%);
    transition-property: all;
    transition-duration: 0.5s;
    transition-timing-function: ease-in-out;
    transition-delay: 0;    
}

/* Co Infos - virutitas =) */

div.card div.card__coinfos:first-child {
    display: none;
    flex-wrap: wrap;
    font-size: 100%;
    border-bottom: var(--card-brd-s);
    margin-bottom: var(--card-pdn);
    text-align: left;
}

div.card div.card__coinfos:first-child > * {
    float: left;
    margin: 0.5rem 0.33rem 0.33rem 0.5rem;
    padding: 0rem 0rem 0rem 0rem;
    white-space: nowrap;
    color: var(--txt-h-color);
}

div.card div.card__coinfos:last-child {
    display: none;
    font-size: 70%;
    margin: 0.33rem 0rem 0rem 0rem;
    padding: 0.33rem 0rem 0rem 0rem;
    border-top: var(--card-brd-s);
    text-align: right;
    overflow: hidden;
}

div.card div.card__coinfos:last-child > * {
    float: right;
    margin-bottom: auto; /* -0.165rem; */
    padding: 0rem 0rem 0rem 0rem;
    white-space: nowrap;
    color: var(--txt-h-color);
}

div.card__core {
    box-sizing: border-box;
    position: relative;
    display: flex;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    overflow: hidden !important;
}

img {
    box-sizing: border-box;
    display: flex;
    object-fit: cover !important;
    border: var(--img-brd-s);
    border-radius: var(--img-brd-r);
}

div.card__core__txt {
    box-sizing: border-box !important;
    margin: var(--txt-mrn);
    padding: var(--txt-pdn);
    color: var(--txt-p-color);
    text-align: left;
    overflow: hidden;
}

div.card__core__txt > h2,
div.card__core__txt > h3,
div.card__core__txt > h4 {
    /* display: inline-block; */
    margin: 0 0 0.33rem 0;
    padding: 0;
    color: var(--txt-h-color);
}

/* definir un line clamping para cada tamaño de tarjeta */
div.card__core__txt > p {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: inherit !important;
    overflow: hidden !important;
}

div.card__core__txt > p:after {
    position: absolute;
    z-index: 1;
    content: "...";
    text-align: right;
    bottom: 0;
    right: 0;
    width: 1.25rem;
    height: 1rem;
    /* cambiar este por un gradient lineal de alpha 0 a color*/
    background-color: var(--card-bk-color);
    /* background-image: linear-gradient(to right, rgba(255,255,255,0), var(--card-bk-color)); */
}

div.card__core__txt__ui {
    position: relative;
    display: none;
    justify-content: space-evenly;
    clear: both;
    padding: 0;
    margin: 0;
    min-height: 2.5rem;
    text-align: center;
    align-items: center;
}

div.card__core__txt__ui > * {
    margin: 0 !important;
    line-height: 1rem;
    font-size: 0.8rem;
    height: 1.5rem;
    white-space: nowrap;
    border-radius: var(--card-brd-r) !important;
}

  /* -------------- */
 /*   Overloaders  */
/* -------------- */

div.cards.featured {
    grid-template-columns: 1fr 1fr;
}

div.cards.featured > .shim:first-of-type {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
}

div.cards.cards__slide {
    box-sizing: border-box !important;
    display: grid;
    clear: both;
    width: auto;
    height: auto;
    grid-template-columns: repeat( 3, 31% );
    grid-template-rows: repeat( 1, auto );
    grid-auto-columns: 31%;
    grid-auto-rows: 100%;
    grid-auto-flow: column;
    gap: 0rem 0.5rem;
    overflow-x: scroll;
    overflow-y: hidden;
    /*hide that sucker*/
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    margin-bottom: var(--gutter-components);
    z-index:1;
}

.cards__slide::-webkit-scrollbar {
    /*height: 4px !important;*/
    background-color: transparent;
}

  /* -------------- */
 /*    Features    */
/* -------------- */

div.cards.uis div.card__core__txt__ui {
    display: flex;
}

div.cards.cia div.card__coinfos:first-child,
div.cards.cit div.card__coinfos:first-child {
    display: flex;
}

div.cards.cia div.card__coinfos:last-child,
div.cards.cib div.card__coinfos:last-child {
    display: block;
}

  /* -------------- */
 /*     Tamaños    */
/* -------------- */


/* extra grande y clamping */

div.cards.xl div.card__core {
    flex-wrap: wrap;
}

div.cards.xl div.card img {
    width: 100%;
    height: 12rem;
}

div.cards.xl div.card__core__txt > p {
    line-height: 1.2rem;
    max-height: 4.8rem;
}

/* extra grande horizontal y clamping */

div.cards.xlh div.card__core {
    flex-wrap: nowrap;
    min-height: 12rem !important;
}

div.cards.xlh div.card img {
    max-width: 35%;
    min-width: 35%;
    /*height: calc( var(--txt-pdn) + 9.4rem );*/
}

div.cards.xlh div.card__core__txt > p {
    line-height: 1.2rem;
    max-height: 9.6rem;
}

/* grande y clamping */

div.cards.l div.card__core {
    flex-wrap: wrap;
}

div.cards.l div.card img {
    width: 100%;
    height: 10.8rem;
}

div.cards.l div.card__core__txt > p {
    line-height: 1.2rem;
    max-height: 4.8rem;
}


  /* -----------------------------*/
 /* grande horizontal y clamping */
/* -----------------------------*/

div.cards.lh div.card__core {
    flex-wrap: nowrap;
    min-height: 13.8rem !important; /* experimento, son 10.8 */
}

/* experimento */
div.cards.lh div.card__coinfos:last-of-type { 
    position: absolute;
    left: var(--txt-mrn);
    bottom: 0;
    width: auto;
    padding-top: 0.2rem !important;
    z-index: 0;
}


div.cards.lh div.card img {
    max-width: 35%;
    min-width: 35%;
    /*height: calc( var(--txt-pdn) + 9.4rem );*/
    z-index: 1;
}

/* experimento */
div.cards.lh div.card__core__txt {
    padding-bottom: 1.5rem !important;
}

/* experimento */
div.cards.lh div.card__core__txt > h4 {
    font-size: 110%;
    line-height: 1.33rem;
    height: auto;
    max-height: 5.32rem !important;
    margin-bottom: 0.33rem;
    overflow: hidden;
}


div.cards.lh div.card__core__txt > p {
    line-height: 1.2rem;
    max-height: 6rem; /* cinco lineas */
}


/* mediana y clamping */
div.cards.m div.card__core {
    flex-wrap: nowrap;
    min-height: 4.8rem;
}

/* considerar un min height para las tarjetas por tamaño */
div.cards.m div.card img {
    max-width: 33%;
    min-width: 33%;
    max-height: calc( var(--txt-pdn) + 7.2rem );
}

div.cards.m div.card__core__txt > p {
    line-height: 1.1rem;
    max-height: 4.4rem;
}

/* pequeña y clamping */

div.cards.s div.card__core {
    flex-wrap: nowrap;
}

div.cards.s div.card img {
    max-width: 30%;
    min-width: 30%;
    /* tolerancias a txt.padding y txt.argin de 0.25 c/u */
    max-height: calc( var(--txt-pdn) + 5.75rem );
}

div.cards.s div.card__core__txt {
    box-sizing: border-box;
}

div.cards.s div.card__core__txt > p {
    line-height: 1.1rem;
    max-height: 3.2rem;
}


/* extra pequeña y clamping */
div.cards.xs div.card__core {
    flex-wrap: nowrap;
    font-size: 90%;
}

div.cards.xs div.card img {
    max-width: 27%;
    min-width: 27%;
    max-height: calc( var(--txt-pdn) + 4.6rem );
}

div.cards.xs div.card__core__txt {
    box-sizing: border-box;
}

div.cards.xs div.card__core__txt > p {
    line-height: 1.1rem;
    max-height: 2.2rem;
}

div.cards.m div.card__coinfos,
div.cards.s div.card__coinfos,
div.cards.xs div.card__coinfos {
    display: none !important;
}

/* elaborar */
div.cards.elastic img {
    width: auto;
    max-width: 30% !important;
    height: auto !important;
}



  /* -------------- */
 /*      Tipos     */
/* -------------- */


   /*left-sided*/

div.cards.ls div.card__core > img {
    float: left;
    order: 1;
}

div.cards.ls div.card__core > div.card__core__txt {
    float: right;
    clear: right;
    padding-left: 0.5rem;
    order: 2;
}


    /*right-sided*/
    
div.cards.rs div.card__core > img {
    float: right;
    order: 2;
}

div.cards.rs div.card__core > div.card__core__txt {
    clear: left;
    float: left;
    padding-right: 0.5rem;
    order: 1;
}


    /*top-sided*/
div.cards.ts div.card__core > img {
    top: 0;
    right: 0;
    left: 0;
    /* el mismo margen para h3, h4 */
    margin-bottom: 0.25rem;
    order: 1;
}

div.cards.ts div.card__core > div.card__core__txt {
    order: 2;
}

    /*bottom-sided*/

div.cards.bs div.card__core > img {
    right: 0;
    bottom: 0;
    left: 0;
    order: 2;
}

div.cards.bs div.card__core > div.card__core__txt {
    float: left;
    clear: both;
    width: 100%;
    order: 1;
    margin-bottom: 0.25rem;
}

/* div.cards.bs div.card__core > div.card__core__txt > * {
    display: block !important;
    clear: both;
} */


    /* text only */
div.cards.to div.card__core > img {
    display: none !important;
}

    /* img only */
div.cards.io div.card__core > div.card__core__txt {
    display: none !important;
}

div.cards.io.xl img  {
    width: auto;
    min-height: 12rem;
    max-height: 12rem;
}

div.cards.io.l img {
    width: auto;
    min-height: 9.6rem;
    max-height: 9.6rem;
}

div.cards.io.m img {
    width: 100% !important;
    min-height: 7.2rem;
    max-height: 7.2rem;
}

div.cards.io.s img {
    width: 100% !important;
    min-height: 4.8rem;
    max-height: 4.8rem;
}

div.cards.io.xs img {
    width: 100%;
    min-height: 2.4rem;
    max-height: 2.4rem;
}

    /* txt overlay */
div.cards.tol div.card__core {
    flex-wrap: nowrap !important;
    width: 100%;
    height: 100%;
}

div.cards.tol.xl div.card__core {
    min-height: 18rem !important;
}

div.cards.tol.l div.card__core {
    min-height: 16rem !important;
}

div.cards.tol.m div.card__core {
    min-height: 14rem !important;
}

div.cards.tol img {
    order: none !important;
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

div.cards.tol div.card__core__txt {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    height: auto !important;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

div.cards.tol div.card__core__txt > a,
div.cards.tol div.card__core__txt > h2,
div.cards.tol div.card__core__txt > h3,
div.cards.tol div.card__core__txt > h4,
div.cards.tol div.card__core__txt > p {
    color: #ffffff !important;
}

div.cards.tol div.card__core__txt:after {
    position: absolute;
    z-index: 1;
    content: "...";
    text-align: right;
    color: #ffffff;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 1.25rem;
    height: 1rem;
}

div.cards.tol.xl div.card__core__txt > p {
    margin-right: 1rem;
    line-height: 1.2rem !important;
    max-height: 3.6rem !important;
}

div.cards.tol.l div.card__core__txt > p {
    margin-right: 1rem;
    line-height: 1.2rem !important;
    max-height: 3.6rem !important;
}

div.cards.tol.m div.card__core__txt > p {
    margin-right: 1rem;
    line-height: 1.1rem !important;
    max-height: 2.2rem !important;
}

div.cards.tol div.card__core__txt > p:after {
    display: none;
}




@media (max-width: 1200px) {

/*     html, body {
        line-height: 1.2rem;
        font-size: 18px;
    } */

    div.cards {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-column-gap: initial;
        grid-row-gap: initial;
    }

   div.cards.super {
        grid-template-columns: 1fr 1fr;
    }

/*   extra grande y clamping */
    div.cards.xl div.card img {
        width: 100%;
        height: 14rem;
    }

    div.cards.xl div.card__core__txt > p {
        line-height: 1.2rem;
        max-height: 3.6rem;
    }

    /* grande y clamping */
    div.cards.l div.card img {
        width: 100%;
        height: 11rem;
    }

    div.cards.l div.card__core__txt > p {
        line-height: 1.2rem;
        max-height: 3.6rem;
    }

    div.cards.m div.card__core__txt > p {
        line-height: 1.2rem;
        max-height: 4.8rem;
    }

    div.cards.s div.card__core__txt > p {
        line-height: 1.1rem;
        max-height: 3.3rem;
    }

    /* extra pequeña y clamping */

    div.cards.xs div.card__core__txt > p {
        line-height: 1.1rem;
        max-height: 2.2rem;
    }

}

@media (max-width: 900px) {

 /*    html, body {
        line-height: 1.2rem;
        font-size: 18px;
    } */

    a.cards__ctrl {
        display: none;
    }

    div.cards.cards__slide,
    div.cards.hb {
        grid-template-columns: repeat( 2, 46% );
        grid-template-rows: repeat( 1, auto );
        grid-auto-columns: 46%;      
    }    

    div.cards,
    div.cards.super {
        display: grid;
        grid-template-columns: 1fr 1fr;

    }

}

@media (max-width: 600px) {

/*     html, body {
        line-height: 1.2rem;
        font-size: 16px;
    }
 */
    div.cards,
    div.cards.super {
        display: grid;
        grid-template-columns: 1fr;
    }

    div.cards.cards__slide,
    div.cards.hb {
        grid-template-columns: repeat( 1, 92% );
        grid-template-rows: repeat( 1, auto );
        grid-auto-columns: 92%;
    }

/* co infos */

div.card div.card__coinfos:last-child {
    font-size: 80%;    
}


/* extra grande y clamping */
    div.cards.xl div.card img {
        width: 100%;
        height: 10.8rem;
    }

    div.cards.xl div.card__core__txt > p {
        line-height: 1.2rem;
        max-height: 3.6rem;
    }

    /* grande y clamping */
    div.cards.l div.card img {
        width: 100%;
        height: 9.6rem;
    }

    div.cards.l div.card__core__txt > p {
        line-height: 1.2rem;
        max-height: 3.6rem;
    }

    /* mediana y clamping */

    div.cards.m div.card__core__txt > p {
        line-height: 1.1rem;
        max-height: 4.3rem;
    }

    /* pequeña y clamping */

    div.cards.s div.card__core__txt > p {
        line-height: 1.1rem;
        max-height: 3.27rem;
    }

    /* extra pequeña y clamping */
    div.cards.xs div.card__core__txt > p {
        line-height: 1.1rem;
        max-height: 2.2rem;
    }

}



