* {
    margin: 0;
    padding: 0;
    /*font-weight: 400;*/
    font-style: normal;
    font-family: Montserrat;
    /*line-height: 54px;*/
    --header-height: 80px;

    --max-width: 1120px;
    --min-width: 1120px;

    --general-width: 100vw;
    --general-width: max(min(85vw, 1320px), 1122px);   
}

.visible {
    display: block;
}

.hidden {
    display: none;
}

h1 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.4em;
}

h2 {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4em;
}

h3 {
    /* titulos de articulos */
    /* 2do nivel de titulos*/
    font-size: 25px;
    font-weight: bold;
    line-height: 1.4em;
}

p {
    font-size: 18px;
    text-align: left;
    line-height: 1.5em;
}

strong {
    font-weight: bold;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    /*overflow-x: hidden;*/
}

body {
    /*line-height: 1.5;*/
    line-height: normal;
    margin: 0;
    width: 100%;
    height: 100%;
    /*overflow-x: hidden;*/
    /*justify-items: center;*/

    li {
        /*width: 90%;*/
        margin: 0 auto;
    }
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--header-height) auto 0 auto;
    @media only screen and (min-width:1120px) {
        width: var(--general-width);
    }

    @media only screen and (max-width:1120px) {
        width: var(--general-width-mob);
    }
}

a {
    text-decoration: none;
    color: black;
}

.mob {

    @media only screen and (min-width:1120px) {
        display: none;
    }

    @media only screen and (max-width:1120px) {
        display: block;
    }
}

.pc {
    @media only screen and (min-width:1120px) {
        display: block;
    }

    @media only screen and (max-width:1120px) {
        display: none;
    }
}



.shown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header */

    header {
        background-color: var(--header-bg);
        z-index: 10000;
        width: 100vw;
        height: var(--header-height);
        box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: center;

        line-height: 0;
    
        position: fixed;
        top: 0;
        left: 0;
        overflow: visible;
    }

    #header-wrapper {

        display: flex;
        align-items: center;
        flex-direction: row;
        
        @media only screen and (min-width:1120px) {
            width: var(--general-width);
            display: flex;
            align-items: center;
            flex-direction: row;


        }

        @media only screen and (max-width:1120px) {
            width: 100%;

            justify-content: space-between;      
            width: 100%;
            padding: 10px 20px;
        }


    }


/* top menu */

#logo-container {
    width: 25%;
}


#navmenu {
   
    width: 100%;
    line-height: var(--header-height);
    
}


#imagen-logo {
    max-height: var(--header-height);
    
    @media only screen and (max-width:1120px) {
        margin-left: var(--side-blank-mob);
    }
}

#social-networks {
    @media only screen and (min-width:1120px) {
        display: flex;
    }
    align-items: center;
    gap: 10px;
    background-color: #DDDDDD;
    padding: 3px 3px;
    
}

#social-networks.header {
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 5px 15px;
}

#social-networks.footer {

    width: fit-content;
    background-color: white;
}

.social-logo {
  height: 30px;
  width: auto;
  cursor: pointer;
  vertical-align: middle;
  display: inline-block;
}

.social-logo.footer {
    height: 30px;
    width: auto;
}

#header-cta-button {
    margin: 10px 20px;
    padding: 4px 25px;

}

#header-cta-button-text a{
    color: white;
}

#menu {

    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;

    @media only screen and (min-width:1120px) {
        display: flex;
        flex-direction: row;
        line-height: 44px;
        justify-content: space-evenly;
    }

    @media (max-width: 1120px) {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }
}

#menu li {
    @media (min-width: 768px) {
        margin-right: 20px;
    }
    @media (max-width: 768px) {
        padding: 10px 0;
        margin-left: 15px;
    }
}

  

nav ul {
    list-style-type: none;
}

nav ul li {
    @media only screen and (min-width:1120px) {
        display: inline;
        margin: 0 0 0 10px;
        font-size: 13px;
    }
}

nav ul li a {
    color: black;
    text-decoration: none;

    @media only screen and (max-width:1120px) {
        margin: 10px 0;
        font-size: 13px;
    }
}

#content-wrapper {
    display: flex;
    margin: 15px 0 0 0;

    @media only screen and (max-width:1120px) {
        padding: 0;
        flex-direction: column;
        width: auto;
    }
}

/* excerpt (distributor & article) */
/* excerpt */
.excerpt-wrapper {

    @media only screen and (min-width:1120px) {
        max-width: var(--general-width);
    }

    display: flex;
    margin: 0 auto 15px;
    color: black;

    flex-direction: column;
    min-width: 100%;
}

.main-title {
    font-size: 36px;
    font-weight: bold;
    /*margin-top: 15px;*/
    margin-bottom: 15px;
}

.excerpt-text {
    padding: 0 0 20px 0;

}

.excerpt {
    margin-bottom: 15px;
}

.share-icons-cont {
    margin-top: 20px;
}


/* article boxes */
    /* article-details */
        .article-details {
            display: flex;
            flex-direction: row;
            width: 100%;
            padding-bottom: 7px;
        }

        .article-details.main {
            text-align: center;
            justify-content: center;
        }

        .article-details-item {
            margin: 0 20px 0 0 ;
            font-size: 14px;
        }

    /* main-article-box */
    .main-article-box {
        background-color: #dddddd;
        padding: 15px; 

        @media only screen and (max-width:1120px) {
            width: 100%;
            padding: 15px 0;
        }

        a {
            text-decoration: none;
            color: black;
            font-weight: bold;
        } 

        h3 {
            padding: 0px 10px;
        }
    }

    .main-article-box.dist{
        width: 100%;
    }

    .main-article-box.home{
        @media only screen and (min-width:1120px) {
            width: 50%;
        }
    }

    .main-article-contents {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 90%;
        margin: 0 auto;
        @media only screen and (max-width:1120px) {
            padding-bottom: 20px;
        }
    }

    .main-article-title h3 {
        margin: 0.5em 0 0.5em 0;
        text-align: center;
        width: 100%;
    }

    .main-article-img-cont {
        margin: auto;

        img {
            object-fit: cover;
            height: auto;
            width: 100%
        }

        @media only screen and (max-width:1120px) {
            width: 90%;
            height: auto;
            text-align: center;
        }
    }

    /* article-box */
    .article-box {
        display: flex;
        flex-direction: column;

        a {
            text-decoration: none;
            color: black;
        }

        p {margin: 10px 0;}

        @media only screen and (min-width:1120px) {
            flex-basis: 100%;
        }
    }

    .article-contents {
        @media only screen and (max-width:1120px) {
            margin: 20px auto 10px auto;
            width: 90%;
        }
    }

    .article-title{
        h3 {
            font-weight: normal;
        }
    }

    .sub-articles {
        display: flex;
        justify-content: space-between;
        @media only screen and (min-width:1120px) {
            margin-top: 20px;
        }
        @media only screen and (max-width:1120px) {
          display: block;
        }
      }

    .sub-article {
        h2 {
            margin: 10px 0;
        }
        img {
            width: 100%;
            height: auto;
        }
    }

    .article-cta {
        font-size: 0.8rem;
        font-weight: bold;
        color: var(--excerpt-bg);
        a {
            text-decoration: none;  
        }
        :hover {
            color: var(--header-bg);
        }
    }


/* botón all articles*/
.home-all-articles-cont{
    width: 100%; 

    @media only screen and (min-width:1120px) {
        margin: 0;
    }       

    @media only screen and (max-width:1120px) {
        margin: 15px 5px;
    }       

}

/* footer */
footer {
    color: white; 
    background-color: var(--dark-bg);
    display:flex;
    flex-direction: column;
    align-items: center;

}

#footer-wrapper {
    width: 100%;
    background-color: white;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.15);
    display: block;
}

#footer-container {
    width: var(--general-width);

    @media only screen and (max-width:1120px) {
        width: var(--general-width-mob);
    }
    margin: auto;
    justify-content: space-between;
    padding: 15px 0;
    display: flex;
}

#footer-logo-container {

    display: flex;
    flex-direction: column;
    margin-left: auto;
    justify-content: space-between;
    align-items: center;
    width: fit-content
    
}

#footer-logo-container > a img#imagen-logo {
  height: 100px; 
  @media only screen and (max-width:1120px) {
    height: 40px;
  }
}

.risk-warning {
    width: var(--general-width);
    padding: 20px 0;
    p {font-size: 12px;}
}


/* provider banners */

.provider-banner {
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
}


/* decoradores */

.rec {
    width: 241px;
    height: 0px;
    position: relative;
    margin-top: 5px;
}

.excerpt-decorator::after {
  content: "";
  position: absolute;
  transform: translateX(0%);
  width: var(--general-width); 
  border-bottom: 1px solid #ccc; 
  z-index: -1;
  @media only screen and (min-width:1120px) {
    width: var(--general-width);
  }
  @media only screen and (max-width:1120px) {
    width: var(--general-width-mob);
  }
}

.excerpt-dec {
    border: 6px solid var(--excerpt-bg);
}

.excerpt-bg {
    background-color: var(--excerpt-bg);
}

.horizontal-dec {
    margin: 15px 0;
    left: 15;
    height: 15px;
}

.horizontal-dec-3 {
    margin: 15px 0;
    left: 15;
    height: 45px;
}

.platform-logo {
  height: auto;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
  border-radius: 13px;
}

.platform-logo.small{
  width: 60px;
  height: 60px;
}   

.cta-button {
  background-color: white;
  text-align: center;
  width: fit-content;
  border: none;
  padding: 8px 16px;
  border-color: var(--excerpt-bg);
  border-width: 1px;
  border-style: solid;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 25px 0 10px 0;
  display: block;
  cursor: pointer;
  transition: background-color 0.3s ease;

  a {
    color: var(--excerpt-bg);
    text-decoration: none;
  }

}

.cta-button-text {
  color: var(--excerpt-bg);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;

  a {
    text-decoration: none;
  }

}

.cta-button.fill {
  background: var(--excerpt-bg);
}

.cta-button-text.fill {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
  color: white;
  
  a {  
    text-decoration: none;
    color: white;
  }
}

.cta-button:hover {
  background-color: var(--dark-bg);
  a {
    text-decoration: none;
    color: white;
  }
}