/*
 * layout.css — Cabecera (con menú móvil) y pie de página. Para páginas de la web, no para dentro de un caso.
 */

/* ==========================================================================
   menu móvil
   ========================================================================== */

header .toggle {
    position: relative;
    top: 4px;
    z-index: 12;
    margin-left: 20px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

header .toggle p {
    display: inline-block;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: right;
    margin: 0px;
    margin-right: 15px;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

header .toggle .burger {
    display: inline-block;
}

header .toggle .burger span {
    display: block;
    position: relative;
    width: 30px;
    height: 2px;
    background: #495057;
    margin: 6px 0px;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

header nav {
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 100vh;
    top: -100vh;
    left: 0px;
    margin: 0px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: linear-gradient(247.71deg, #091326 -1.12%, #0D0E2F 100%);
    list-style: none;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

header nav ul {
    margin-bottom: 50px;
}

header nav ul li {
    padding: 20px;
    text-align: center;
}

header nav ul li a {
    font-size: 24px;
    padding: 0px;
    color: #495057;
}

header nav ul li a:hover {
    color: #000;
}

@media (min-width: 768px) {
    header .toggle {
        display: none;
    }
    header nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
    }
    header nav ul {
        margin: 0px;
    }
    header nav ul li {
        display: inline-block;
    }
    header nav ul li a {
        font-size: 18px;
    }
}

body.menu {
    overflow: hidden;
}

body.menu header .logo {
    opacity: 0;
}

body.menu header .toggle p {
    opacity: 0;
}

body.menu header .toggle span {
    background: #fff;
}

body.menu header .toggle span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 8px;
}

body.menu header .toggle span:nth-child(2) {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

body.menu header .toggle span:nth-child(3) {
    opacity: 0;
}

body.menu header nav {
    top: 0px;
}

/* ==========================================================================
   header
   ========================================================================== */

header {
    position: relative;
    z-index: 2;
}

header:before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 150%;
    top: 0px;
    left: 0px;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(7,12,29,0.5)), to(rgba(7,12,29,0)));
    background: linear-gradient(180deg, rgba(7,12,29,0.5) 0%, rgba(7,12,29,0) 100%);
}

header .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 20px 20px 0px;
}

header .logo {
    display: block;
    width: 30px;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

header .toggle p {
    font-family: "messiri";
    font-size: 18px;
    color: #fff;
}

header .toggle .burger span {
    background: #fff;
}

header nav ul li a {
    color: #fff;
}

header nav ul li a:hover {
    color: rgba(255,255,255,0.8);
}

header nav ul li a.active {
    position: relative;
}

header nav ul li a.active:after {
    content: '';
    position: absolute;
    left: 0px;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
    header nav ul li a {
        color: #fff;
        text-transform: uppercase;
        font-size: 17px;
    }
    header nav ul li a:hover {
        color: rgba(255,255,255,0.8);
    }
    header nav ul li a.active:hover {
        color: #fff;
    }
}

header.header-fixed {
    position: absolute;
    z-index: 5;
    top: 0px;
    left: 0px;
    width: 100%;
}

header.header-fixed+main .section-header {
    padding-top: 140px;
}

/* ==========================================================================
   footer
   ========================================================================== */

footer {
    text-align: center;
    padding: 50px 0px;
    background: rgba(7,12,29,0.95);
}

footer .logo {
    width: 160px;
    margin: 0 auto;
}

footer p {
    text-align: center;
    margin: 0px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 200;
    margin-top: 10px;
}

footer ul.social {
    margin: 20px 0px 0px;
}

@media (min-width: 992px) {
    footer ul.social {
        margin: 20px 0px;
    }
}

@media (min-width: 992px) {
    footer p {
        font-size: 15px;
    }
    footer .social {
        text-align: right;
    }
}

ul.social {
    margin: 0px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

ul.social li {
    display: inline-block;
    margin: 0px 5px;
}

ul.social li a {
    display: inline-block;
    text-align: center;
    width: 38px;
    height: 38px;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    line-height: 40px;
    background: rgba(255,255,255,0.15);
}

ul.social li a:hover {
    background: rgba(255,255,255,0.2);
}

@media (min-width: 992px) {
    ul.social {
        margin: 0px;
    }
    ul.social li {
        margin: 0px 8px 0px 0px;
    }
}

ul.rrss {
    margin: 0px;
}

ul.rrss li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 15px;
}

ul.rrss li:last-child {
    margin-bottom: 0px;
}

ul.rrss li img {
    width: 36px;
    margin-right: 20px;
}
