/* -------------------------------------------------------------------------

 Sistema de Diseño Ibero
 Repo: https://github.com/nowyouwerkn/ibero-system
 Author: Werkn S.A de C.V
 License: Closed

---------------------------------------------------------------------------- */

html{
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  margin: 0;
}

.section{
    max-width: 80em;
    margin: 0 auto;
    padding: 0 1em;
}


aside{
    position: sticky;
    top: 60px;
    max-height: 80vh;
    overflow-x:scroll;
    border:none;
    background-color: var(--uia-body);
    padding: 30px;
    border-radius: 15px;
    margin-right: 15px;
}

#aside-nav{
    position: relative;
}

aside h2{
    font-size: 10px;
}

aside h6{
    font-size: 13px;
    margin: 0;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

aside ul{
    padding: 0px;
    margin-bottom: 20px;
    list-style: none;
}

ul ul{
    padding-left: 16px;
}

aside ul li a{
    color: var(--uia-grey);
    text-decoration: none;
    padding: 4px 0px;
    display: block;
    text-transform: capitalize;
    font-size: 14px;
}

aside ul li a:hover{
    color: var(--uia-black);
    text-decoration: none;
}

.system-search{
    margin-bottom: 30px;
    width: 100%;
    padding: 15px 10px;
    border-radius: 10px;
}

.uia-subnav-parent .uia-title{
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 30px;
}

.uia-subnav-parent .uia-nav-group{
    border-left: 1px solid var(--uia-grey);

}

#aside-nav .uia-nav-group:first-child{
    border-left: transparent;
}

#top-nav{
    margin-bottom: 50px;;
}

#body{
    padding: 0px 20px;
}

.uia-section{
    position: relative;
}

.uia-title{
    text-transform: capitalize;
}

.section-h4{
    background-color: var(--uia-dark);
    padding: 80px 20px;
    color: var(--uia-white);
    margin-top: 80px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.section-h2{
    border-bottom: 2px solid var(--uia-grey-200);
    padding: 10px 0px;
    margin-bottom: 15px;
    font-size: 1.5625rem;
    letter-spacing: -2px;
    line-height: 1.3;
    margin-top: 30px;
}

.uia-markup-controls{
    margin-top: 20px;
}

.uia-docs-contrast{
    background-color: var(--uia-body);
    display: block;
    width: 100%;
    line-height: 200px;
    text-align: center;
    margin: 0px;
}

.demo{
    width: 100%;
    background: var(--uia-body);
    text-align: center;
    padding: 1rem;
    overflow: hidden;
}

.border-light{
    border: 1px solid var(--uia-grey);
}

.nav-list{
    margin-top: 20px;
}

.nav-list .nav-link{
    padding: 10px 15px;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.nav-list .nav-link.active{
    color: var(--uia-red);
}

.icons-sizer ion-icon{
    font-size: 1.8em;
}

.icons-sizer p{
    margin-top: 20px;
    margin-bottom: 5px;
}

.spinner-ibero{
    margin-right: 15px;
}

.btn .spinner-ibero{
    margin-right: 0px;
}

/* Colors
---------------------------------------------------------------------------- */
.uia-color {
margin-bottom: 1.5em;
}

.uia-color-swatch {
padding-top: 20%; /* Used to set height of color swatch */
}

.uia-color-name {
font-size: 1.2em; /* Test this with 1.1 em */
padding: .5em 0;
}

.uia-color-value {
font-size: 1.2em;  /* Test this with 1.1 em */
}

@media only screen and (min-width: 375px) {
    .uia-color-grid {
        margin: 0 -2.5%;
        overflow: hidden;
    }

    .uia-color {
        float: left;
        margin-left: 2.5%;
        margin-right: 2.5%;
        width: 45%;
    }

    .uia-color-swatch {
        padding-top: 60%; /* Used to set height of color swatch */
    }
}

@media only screen and (min-width: 760px) {
    .uia-color {
        margin-left: 1.5%;
        margin-right: 1.5%;
        width: 22%;
    }

    .uia-color-grid {
        margin: 0 -1.5%;
    }
}

/* Markup
---------------------------------------------------------------------------- */
.uia-doc {
    /*border-bottom: 1px solid #ddd;*/
    margin-bottom: 1em;
}

.uia-markup-controls {
    padding-top: 1.5em;
}

.uia-source {
    position: relative;
}

.uia-source pre {
    background: #333;
    border-radius: .5em;
    border: 1px solid #ddd;
    color: #fff;
    overflow-x: scroll;
    padding: .5em .3em;
}

.uia-source pre code {
    background: transparent;
    -webkit-font-smoothing: antialiased;
}

/* Hide source code blocks off-screen */
.uia-enhanced .uia-source {
    opacity: 0;
    position: absolute;
    top: -100%;
    width: 1px;
    -webkit-transition: opacity 0.6s ease-out;
    -moz-transition: opacity 0.6s ease-out;
    -ms-transition: opacity 0.6s ease-out;
    -o-transition: opacity 0.6s ease-out;
    transition: opacity 0.6s ease-out;
}

/* Show source code blocks when active or JS is not enabled */
.uia-enhanced .uia-source-active {
    opacity: 1;
    position: relative;
    width: 100%;
}

/* Buttons
---------------------------------------------------------------------------- */
.uia-btn {
    background: #cbcbcb;
    border: none;
    color: #222;
    float: left;
    font-size: 16px; /* For older browsers */
    font-size: 1rem;
    padding: .5em .9em;
    text-decoration: none;
}

.uia-btn--top {
    float: right;
}

.uia-btn--source,
.uia-btn--select {
    display: none;
}

/* Show specific buttons we cut the mustard */
.uia-enhanced .uia-btn--source {
    display: block;
}

@media screen and (min-width: 1025px) {
    .uia-enhanced .uia-btn--select {
        display: block;
    }
}

.uia-btn--select {
    border-radius: 0 0.2em;
    position: absolute;
    right: 1px;
    top: 1px;
    z-index: 1;
}

.uia-btn--select-active:hover:after{
    background: #111; /* For older browsers */
    background: rgba(0,0,0,.8);
    border-radius: 5px;
    color: #fff;
    content: "Código seleccionado listo para copiar";
    display: block;
    padding: 8px 16px; /* For older browsers */
    padding: 0.5rem 1rem;
    position: absolute;
    right: 8px; /* For older browsers */
    right: 0.5rem;
    top: 48px; /* For older browsers */
    top: 3rem;
    white-space: nowrap;
    z-index: 98;
}

.uia-btn--select-active:hover:before{
    border-color: transparent transparent #111 transparent;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    content: "";
    display: block;
    height: 0;
    left: 45%;
    position: absolute;
    top: 40px;
    top: 2.5rem;
    width: 0;
    z-index: 99;
}

.uia-example{
    border: 4px solid var(--uia-body);
    padding: 25px 30px;
    border-radius: 15px;
    overflow: scroll;
}

/* Pie de página */
footer{
    min-width: 100vw;
}

.post-footer{
    min-width: 100vw;
}

.main-nav{
    min-width: 100vw;
}
