/* Reset */

html {
    font-size: 0.95rem;
}

body {
    position: relative;
    margin-top: 5.125rem;
}

nav {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);
}

section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

footer {
    margin-top: 2rem;
    border-bottom: .5rem solid #151515;
    background-color: #0E58D0;
    color: #FFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 1rem;
}

h3 {
    padding-bottom: 5px;
    border-bottom: 2px solid #F1F1F1;
}

p, ul, li {
    font-family: 'Roboto', sans-serif;
}

ul {
    padding-left: 1.25rem;
}

button:hover {
    cursor: pointer;
}

table {
    overflow: scroll;
    width: 900px;
}

iframe {
    width: 100%;
    height: 14rem;
    border: 0;
    margin-bottom: 1rem;
}

/* Navbar */

.bg-light {
    background-color: rgba(255, 255, 255, .9) !important;
}

.navbar-brand>img {
    height: 4.5rem;
}

.navbar-collapse .navbar-nav .nav-item {
    padding: .1rem .05rem;
}

.navbar-collapse .navbar-nav .nav-link {
    padding: 1.75rem 1.25rem;
    font-size: .9em;
}

.active {
    font-weight: bold;
    color: #4286f4 !important;
}

.navbar-collapse .navbar-nav .nav-link:hover {
    background-color: #F0F0F0;
    -webkit-transition: all 300ms ease-in-out;
       -moz-transition: all 300ms ease-in-out;
        -ms-transition: all 300ms ease-in-out;
         -o-transition: all 300ms ease-in-out;
            transition: all 300ms ease-in-out;
}

/* Menu Sociales */

.social-bar {
    position: fixed;
    top: 45%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 100;
}

.social-bar span {
    display: none;
    color: #FFF;
    font-size: 1rem;
}

.icon {
    display: flex;
    padding: 0;
    font-size: 1.5rem;
    color: #FFF;
}

.icon a {
    width: 4rem;
    padding: .5rem 1.5rem;
    color: #FFF;
    text-decoration: none;
}

.icon-facebook {
    background: #2E406E;
    border-top-right-radius: .5rem;
}

.icon-phone {
    background: #04b702;
}

.icon-mail {
    background: #02a7ce;
    border-bottom-right-radius: .5rem;
}

.icon:hover a {
    border-radius: .5rem 0 0 .5rem;
    cursor: pointer;
    box-shadow: 0 0 .5rem rgba(0, 0, 0, .42);
}

.icon:first-child:hover a {
    padding-right: 3.5rem;
}

.icon:nth-child(2):hover a, .icon:last-child:hover a {
    width: auto;
}

.icon:hover a span {
    display: inline-block;
} 

/* Sections */

/* General */

.projecti, .projectS, .projectPP, .projectE, .projectD, .projectC {
    opacity: 0;
    -webkit-transition: all 1s ease-out;
       -moz-transition: all 1s ease-out;
        -ms-transition: all 1s ease-out;
         -o-transition: all 1s ease-out;
            transition: all 1s ease-out;
}

.projecti, .projectS.fade-in, .projectPP.fade-in, .projectE.fade-in, .projectD.fade-in, .projectC.fade-in {
    opacity: 1;
}

#inicio, #servicios, #procesosProcedimientos, #eventos, #documentacion, #contacto {
    -webkit-transform: translateY(-7.125rem);
       -moz-transform: translateY(-7.125rem);
        -ms-transform: translateY(-7.125rem);
         -o-transform: translateY(-7.125rem);
            transform: translateY(-7.125rem);
} 

section>.row, footer>.row:first-child {
    padding: .75rem 0;
}

.row > div > h3 > span {
    padding-bottom: 1px;
    border-bottom: 2px solid #4286f4;
}

/* Inicio */

.section-portada {
    background-image: url(../../img/portada.jpg);
    /* background-size: cover;
    background-position: center; */
    background-repeat: no-repeat; 
    background-attachment: fixed;
}

.section-portada .row .col-md-6 {
    padding: 1.5rem 2rem 1.5rem 8rem;
}

.modal-portada-black h2, .modal-portada-black p {
    color: #FFF;
}

.modal-portada-white h2 {
    color: #4286f4;
}

.modal-portada-white p {
    color: #555;
}


/* Section One */


.another-primary { 
    font-weight: 300;
    color: rgba(0, 92, 251, 1);
   
}

.cover-subtittle {
    font-style: italic;
     color: rgba(0,0,0,.5);
}

.aside {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0rem;
    background-color: rgba(200,200,200,.1);
}


/* Servicios */

.card:nth-child(2) {
    border-left: none;
    border-right: none;
}

.row:last-child >.card:first-child {
    border-top: none;
}

section .row .card {
    margin: 0;
    padding: 1.5rem;
    background: rgba(200, 200, 200, .1);
    border-radius: 0;
}

section .row .card .circle {
    width: 5rem;
    height: 5rem;
    padding: 10px;
    margin-bottom: .5rem;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    color: #FFF;
    background: #4286f4;
    border-radius: 50%;
}

section .row .card h3 span {
    border-bottom: 2px solid #4286f4;
}

.especialHeader {
    line-height: 1.4;
}

/* Eventos */ 

#blog .row div {
    padding: 1rem;
    border-right: 1px solid rgba(220, 220, 220, .5);
    border-radius: 5px;
}

#blog .row div:last-child {
    border: none;
}

#blog button:first-child {
    padding: 0;
    border: none;
    background: none;
    color: #4286f4;
    text-decoration: none;
}

#blog button:first-child:hover {
    text-decoration: underline;
}

.modal-content p, .modal-content h2, .modal-content h3, .modal-content img {
    padding: .5rem 2rem;
}

/* Documentación */

th {
    background-color: rgba(50, 125, 255, 1);
    color: #FFF;
}

th:first-child {
    border-top-left-radius: 6px;
}

th:last-child {
    border-top-right-radius: 6px;
}

td {
    border-collapse: separate;
}

th, td {
    padding: .5rem 1rem;
    border: 1px solid rgba(51, 51, 51, .09);
}

tr>td:first-child, tr>td:last-child {
    text-align: center;
}

table img {
    max-height: 3rem;
}

/* Contacto */

form i {
    color: #FFF;
}

/* Media-Screen */

@media (max-width: 767px) {

    section {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }

    .projectD .row:last-child>div {
        overflow: scroll;
    }

    .navbar-collapse .navbar-nav .nav-link {
        padding: 1.25rem 1.25rem;
    }

    .section-portada .row .col-md-6 {
        padding-left: 6rem;
        padding-right: 3rem;
    }

    .social-bar {
        display: none;
    }

    .card:nth-child(2) {
        border-top: none;
        border-bottom: none;
        border-left: 1px solid rgba(0, 0, 0, 0.125);
        border-right: 1px solid rgba(0, 0, 0, 0.125);
    }

    #blog .col-md-4 {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(220, 220, 220, .5);
    }

    .modal-portada-black {
        background-color: #666;
        background: -webkit-linear-gradient(right, transparent 0%, rgba(0,0,0,.7) 50%);
        background: -o-linear-gradient(right, transparent 0%, rgba(0,0,0,.7) 50%);
        background: linear-gradient(to left, transparent 0%, rgba(0,0,0,.7) 50%);
    }

    .modal-portada-white {
        background-color: #FFF;
        background: -webkit-linear-gradient(right, transparent 0%, rgba(255,255,255,.8) 50%);
        background: -o-linear-gradient(right, transparent 0%, rgba(255,255,255,.8) 50%);
        background: linear-gradient(to left, transparent 0%, rgba(255,255,255,.8) 50%);
    }

}

@media (min-width: 768px) {

    .modal-portada-black {
        background-color: #666;
        background: -webkit-linear-gradient(right, transparent 20%, rgba(0,0,0,.7) 50%);
        background: -o-linear-gradient(right, transparent 20%, rgba(0,0,0,.7) 50%);
        background: linear-gradient(to left, transparent 20%, rgba(0,0,0,.7) 50%);
    }

    .modal-portada-white {
        background-color: #FFF;
        background: -webkit-linear-gradient(right, transparent 20%, rgba(255,255,255,.8) 50%);
        background: -o-linear-gradient(right, transparent 20%, rgba(255,255,255,.8) 50%);
        background: linear-gradient(to left, transparent 20%, rgba(255,255,255,.8) 50%);
    }

}

@media (min-width: 1200px) {

    .modal-portada-black {
        background-color: #666;
        background: -webkit-linear-gradient(right, transparent 50%, rgba(0,0,0,.7) 50%);
        background: -o-linear-gradient(right, transparent 50%, rgba(0,0,0,.7) 50%);
        background: linear-gradient(to left, transparent 50%, rgba(0,0,0,.7) 50%);
    }

    .modal-portada-white {
        background-color: #FFF;
        background: -webkit-linear-gradient(right, transparent 50%, rgba(255,255,255,.8) 50%);
        background: -o-linear-gradient(right, transparent 50%, rgba(255,255,255,.8) 50%);
        background: linear-gradient(to left, transparent 50%, rgba(255,255,255,.8) 50%);
    }    

}

