@font-face {
    font-family: "OpenSans-Bold";
    src: url("../css/fonts/OpenSans-Bold.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-BoldItalic";
    src: url("../css/fonts/OpenSans-BoldItalic.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-ExtraBold";
    src: url("../css/fonts/OpenSans-ExtraBold.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-ExtraBoldItalic";
    src: url("../css/fonts/OpenSans-ExtraBoldItalic.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-Italic";
    src: url("../css/fonts/OpenSans-Italic.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-Light";
    src: url("../css/fonts/OpenSans-Light.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-LightItalic";
    src: url("../css/fonts/OpenSans-LightItalic.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-Medium";
    src: url("../css/fonts/OpenSans-Medium.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-MediumItalic";
    src: url("../css/fonts/OpenSans-MediumItalic.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-Regular";
    src: url("../css/fonts/OpenSans-Regular.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-SemiBold";
    src: url("../css/fonts/OpenSans-SemiBold.woff") format("woff")
}

@font-face {
    font-family: "OpenSans-SemiBoldItalic";
    src: url("../css/fonts/OpenSans-SemiboldItalic.woff") format("woff")
}


/* Tipografía original del menú */
.navbar a,
.nav-link a {
    font-family: OpenSans-SemiBold !important;
    color: #004a98;
    font-size: 20px !important;
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
}

* {
    margin: 0;
    padding: 0
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    background-color: rgba(239, 239, 239, .4392156863)
}

.container {
    padding-top: 0
}

.clear {
    clear: both
}

.headdiv {
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 10;
    background: #fff
}

header {
    width: auto;
    height: 120px;
    text-align: left;
    background-color: #004a98;
    transition: height .8s;
    border-bottom: solid 10px #00b2e3;
    display: flex;
    justify-content: center
}

header>div {
    max-width: 1320px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center
}

header img {
    height: 65px;
    padding: 5px 15px
}

header a {
    font-size: 16px;
    color: #fff;
    text-decoration: none
}

header a:hover {
    text-decoration: underline;
    color: #fff !important
}

.logos>span {
    border-right: solid 2px #fff;
    height: 60px;
    position: absolute
}

.linksheader{
    margin-right: 20px;
}

.linksheader a {
    font-weight: 400;
    display: inline-block;
    margin: 11px 2px 0;
    font-size: 14px;
}

.linksheader>span {
    display: inline;
    border-right: solid 2px #fff;
    height: 80px
}

#pull {
    display: none
}

.header-gris {
    width: auto;
    background-color: #d8d8d8 !important;
    min-height: 25px;
    padding-right: 80px !important;
}

.header-gris a {
    text-decoration: none
}





nav {
    width: 100%;
    background-color: #fff;
    min-height: 55px
}

nav>ul {
    display: block;
    margin: 0 auto;
    max-width: 1320px;
    width: 80%;
    padding-top: 15px
}

nav>ul li {
    display: inline-block
}

nav>ul li a {
    color: #004a98;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
    padding: 10px 1px
}

nav>ul li a:hover {
    color: #fff;
    background-color: #004a98;
    border-radius: 5px
}

.dropdown-menu>.nav-item a {
    display: block;
    width: 100%;
    padding: .25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #004a98;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0);
    border: 0
}

main {
    max-width: 1320px;
    width: 85%;
    background-color: #fff;
    margin: 0 auto
}

main h1,
main .h1,
main h3,
main .h3 {
    color: #004a98
}

main h2,
main .h2 {
    padding-bottom: .3em;
    padding-top: .7em
}

main h3,
main .h3 {
    padding-bottom: 5px
}

main p {
    color: #4d4d4d;
    font-size: 18px
}

main>div {
    padding: 1em 1em 5em 2em
}

main ul,
main ol {
    list-style-position: inside
}

main table {
    width: 75%
}

main table th {
    background-color: #777;
    color: #fff;
    text-align: left;
    padding: 4px
}

main table td {
    border-bottom: 1px solid #e0e0e0;
    padding: 2px 4px
}

.titleone {
    font-family: "Open Sans", sans-serif;
    color: #00b2e3;
    font-size: 42px;
    font-weight: 800;
    display: block;
    text-align: center
}

.num {
    color: #969696;
    font-family: "Open Sans", sans-serif;
    font-size: 100px;
    font-weight: 800
}

.carreras {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 50px
}

.mainelemento {
    height: 400px;
    background-position: inherit;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    background-image: url("../images/FacultadCiencias.jpg");
    font-weight: bold;
    border-bottom: solid 10px #004a98
}

.mainelemento h2,
.mainelemento .h2 {
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px #777;
    font-size: 35px
}

.avisos>div {
    background-color: #e7ecf1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center
}

.derecha {
    text-align: right;
    font-size: 14px
}

.dirizq {
    float: left;
    width: 20%
}

.dirizq img {
    width: 100%
}

.dirizq2 {
    float: left;
    width: 35%;
    margin-left: 1em
}

.imagenal90 {
    width: 90%
}

.mainimg {
    margin-top: 1em;
    margin-bottom: .5em
}

.vinc {
    font-size: 1.3em
}

.vdo {
    display: inline-block;
    width: 40%
}

.calendar {
    display: block;
    width: 200px;
    height: 28px;
    padding: 25px 20px;
    background-color: #00b2e3;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    margin-top: 30px;
    text-align: center
}

.conocemas {
    display: block;
    width: 13%;
    margin: 0 auto;
    text-align: center;
    background-color: #2080cb;
    color: #fff;
    padding: 5px 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    border-radius: 20px;
    text-decoration: none
}

.final {
    border-top: 3px solid #e7ecf1;
    border-bottom: 3px solid #e7ecf1;
    padding: 10px 0;
    margin-top: 2em
}

.final img {
    max-width: 8%;
    margin-left: 1em;
    height: 30px
}

.boton,
.tmp-listas {
    display: flex;
    width: 95%;
    height: 80px;
    justify-content: center;
    align-items: center;
    background-color: #00b2e3;
    text-decoration: none;
    color: #fff;
    margin: 5px;
    text-align: center
}

.boton:hover {
    text-decoration: underline
}

.oculta {
    display: block;
    margin-bottom: 15px
}

.oculta:hover {
    color: #444;
    cursor: pointer
}

.ocultadiv {
    display: none;
    margin-bottom: 15px;
    border-bottom: groove 3px #ddd;
    border-right: groove 3px #ddd;
    background-color: #ededed
}

.ocultadiv ol {
    list-style-position: inside
}

.gridtemplate,
.grid4,
.grid8,
.gridbotones {
    display: grid;
    gap: 10px
}

.gridtemplate {
    grid-template-columns: 1fr 1fr
}

.grid4 {
    grid-template-columns: repeat(4, 1fr)
}

.grid8 {
    grid-template-columns: repeat(6, 1fr)
}

.gridbotones {
    grid-template-columns: repeat(4, 1fr)
}

.gridtemplate img,
.grid4 img,
.grid8 img {
    width: 100%
}

footer {
    width: auto;
    height: 280px;
    background-color: #004a98;
    padding: 25px 50px 30px;
    border-top: solid 10px #00b2e3;
    display: flex;
    justify-content: center
}

footer>div {
    max-width: 1320px;
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #fff;
    line-height: 1.5em;
    font-weight: 300
}

footer ul {
    list-style-type: none
}

footer div a {
    color: #fff;
    text-decoration: none;
    font-weight: 600
}

footer div a:hover {
    text-decoration: underline
}

.blog-items {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin-right: -0.5em;
    margin-bottom: 1em;
    margin-left: -0.5em
}

@media(min-width: 992px) {
    .blog-items.columns-2>div {
        width: 50%
    }

    .blog-items.columns-3>div {
        width: 33.33333%
    }

    .blog-items.columns-4>div {
        width: 25%
    }
}

.blog-item {
    display: flex;
    flex-direction: column;
    padding: 0 .5em 1em;
    overflow: hidden
}

.blog-item img {
    height: auto;
    max-width: 100%
}

.boxed .blog-item {
    background-color: #fff;
    box-shadow: 0 0 2px rgba(51, 57, 66, .1), 0 2px 5px rgba(51, 57, 66, .08), 0 5px 15px rgba(51, 57, 66, .08), inset 0 3px 0 var(--cassiopeia-color-primary)
}

.boxed .blog-item .item-content {
    padding: 25px
}

.blog-item .item-image {
    margin-top: 3px;
    margin-bottom: 15px;
    overflow: hidden
}

.boxed .blog-item .item-image {
    margin-bottom: 0
}


/* =========================================================
   BLOG / CONTENIDO
   ========================================================= */

@media (min-width: 992px) {

    .image-right .blog-item .item-image {
        order: 1;
    }

    .image-left .blog-item,
    .image-right .blog-item {
        flex-direction: row;
    }

    .image-left .blog-item .item-image,
    .image-right .blog-item .item-image {
        flex: 1 0 40%;
    }

    .image-left .blog-item .item-content,
    .image-right .blog-item .item-content {
        flex: 1 0 60%;
    }
}

.image-bottom .blog-item .item-image {
    margin-top: -15px;
    order: 1;
}

.image-left .blog-item .item-content {
    padding-left: 25px;
}

.image-right .blog-item .item-content {
    padding-right: 25px;
}

.image-left .blog-item,
.image-right .blog-item {
    flex-direction: column;
}

.article-info dd {
    padding: 0;
}


/* =========================================================
   BLOG CON GRID
   ========================================================= */

@supports (display: grid) {

    .blog-items {
        display: grid;
        margin: 0 0 1em;
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .blog-items .blog-item {
        padding: 0;
    }

    .blog-items[class^="columns-"] > div,
    .blog-items[class*=" columns-"] > div {
        flex: 0 1 auto;
        width: auto;
        max-width: none;
    }

    @media (min-width: 992px) {

        .blog-items.columns-2 {
            grid-template-columns: repeat(2, 1fr);
        }

        .blog-items.columns-3 {
            grid-template-columns: repeat(3, 1fr);
        }

        .blog-items.columns-4 {
            grid-template-columns: repeat(4, 1fr);
        }
    }
}


/* =========================================================
   MASONRY
   ========================================================= */

.blog-items[class^="masonry-"],
.blog-items[class*=" masonry-"] {
    display: block;
    column-gap: 1em;
}

.blog-items[class^="masonry-"] .blog-item,
.blog-items[class*=" masonry-"] .blog-item {
    display: inline-flex;
    margin-bottom: 1em;
    page-break-inside: avoid;
    break-inside: avoid;
}

@media (min-width: 992px) {

    .blog-items.masonry-2 {
        column-count: 2;
    }

    .blog-items.masonry-3 {
        column-count: 3;
    }

    .blog-items.masonry-4 {
        column-count: 4;
    }
}


/* =========================================================
   IMÁGENES ALTERNADAS
   ========================================================= */

.image-alternate .blog-item:nth-of-type(2n/**/+1) .item-image {
    order: 0;
}

.image-alternate.image-left .blog-item:nth-of-type(2n/**/+1) .item-image {
    margin-right: 0;
    margin-left: 25px;
    order: 1;
}

.image-alternate.image-top .blog-item:nth-of-type(2n/**/+1) .item-image {
    order: 1;
}


/* =========================================================
   OTROS ELEMENTOS
   ========================================================= */

.item-content .article-info {
    display: none;
}

.page-header h2,
.page-header .h2 {
    font-size: 20px;
}

.banneritem {
    float: left;
    padding: 10px 20px 0 0;
}

img.banner_rsp {
    width: 100%;
    height: auto;
}

figure.left.item-image img {
    height: auto;
}

img.logos_index {
    margin-right: 12px;
    height: 100px;
    width: auto;
}

.com-contact__thumbnail.thumbnail img {
    width: 30%;
    height: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.headdiv .linksheader a,
.headdiv .header-gris a {
    transition: font-size 0.3s ease;
}

.headdiv header {
    height: 120px;
    overflow: hidden;
}

.headdiv header .logos span {
    height: 60px;
}

.headdiv header,
.headdiv header .logos span,
.headdiv #navbarSupportedContent {
    transition: height 0.3s ease;
}


/* =========================================================
   HEADER SCROLLED — ESCRITORIO
   ========================================================= */

@media (min-width: 768px) {

    .headdiv.scrolled header {
        height: 70px;
    }

    .headdiv.scrolled header > div {
        height: 100%;
    }

    .headdiv.scrolled header .logos span {
        height: 35px;
        margin-top: 17px;
    }

    .headdiv.scrolled .navbar {
        min-height: 30px;
        max-height: 35px;
    }

    .headdiv.scrolled #navbarSupportedContent {
        /* height: 25px; */
        height: auto;
        align-items: center;
        /* line-height: 15px; */
        line-height: 1.4;
    }

    .headdiv.scrolled #navbarSupportedContent .nav-link {
        /* padding-block: 0; */
        padding-block: .35rem;
    }

    .headdiv.scrolled .linksheader a,
    .headdiv.scrolled .header-gris a {
        font-size: 14px !important;
    }
}


/* =========================================================
   TABLET / MÓVIL
   ========================================================= */

@media (max-width: 1024px) {

    header > div {
        width: 100%;
        flex-direction: column;
    }

    .linksheader a {
        margin-left: 10px;
        margin-top: 0;
        font-size: 16px;
    }

    .logos > span {
        height: 70px;
    }

    header img {
        height: 60px;
        padding-top: 10px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 988px) and (max-width: 1024px) {

    main {
        width: 95%;
    }

    main > div {
        padding: 4em;
    }

    nav ul li a {
        font-size: 0.8em;
    }

    .gridbotones {
        grid-template-columns: repeat(3, 1fr);
    }

    header img {
        padding-bottom: 10px;
    }
}


/* =========================================================
   MÓVIL / TABLET PEQUEÑA
   ========================================================= */
@media (max-width: 1240px) {
    .linksheader {
        display: none !important;
    }
}

@media (max-width: 987px) {

    main {
        width: 100%;
    }

    main table {
        width: 100%;
    }

    header {
        height: auto;
    }

    .gridbotones {
        grid-template-columns: repeat(2, 1fr);
    }

    nav > ul {
        display: none;
        width: 100%;
        background-color: #fff;
    }

    nav ul li {
        width: 100%;
        background-color: #fff;
        line-height: 2.5em;
    }

    .dirizq {
        width: 30%;
    }

    .dirizq2 {
        width: 55%;
        margin-left: 1em;
    }

    #pull {
        display: block;
        width: 100%;
        height: 30px;
        padding-top: 5px;
        padding-left: 5px;
        text-decoration: none;
        font-size: 17px;
    }

    #pull:after {
        content: "";
        background: url("../images/nav-icon.png") no-repeat;
        width: 30px;
        height: 30px;
        display: inline-block;
        position: absolute;
        right: 15px;
        margin-top: 5px;
    }

    main > div {
        padding: 1em 3em 3em 3.3em;
    }

    main h1,
    main .h1 {
        font-size: 1.8em;
    }

    main h2,
    main .h2 {
        font-size: 1.3em;
        padding-top: 0.3em;
    }

    .mainimg {
        display: block;
        width: 100%;
    }

    .conocemas {
        width: 21%;
        font-size: 0.8em;
        height: 20px;
    }

    .conocemas:hover {
        text-decoration: underline;
    }

    .boton {
        font-size: 0.8em;
        width: 100%;
    }

    .logos {
        text-align: center;
    }

    .vdo {
        display: block;
        width: 90%;
    }
    
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 580px) {

    .navbar a, .nav-link a {
        font-size: 15px !important;
        height: 40px;
        line-height: 1em;
    }

    .logos {
        width: 100%;
    }

    .logos img {
        height: 60px;
    }

    .logos span {
        display: none;
    }

    main {
        font-size: 16px;
    }

    main > div {
        padding: 1em;
    }

    main table {
        font-size: 0.6em;
    }

    .carreras {
        height: auto;
    }

    .avisos > div {
        flex-direction: column;
    }

    .com-contact__thumbnail.thumbnail img {
        width: 90%;
    }

}


/* =========================================================
   CELULAR PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    header > div {
        flex-direction: row;
    }

    .headdiv header {
        max-height: 70px !important;
        overflow: visible !important;
    }

    .titleone {
        font-size: 2rem;
    }

    .carreras {
        flex-direction: column;
    }

    .conocemas {
        width: 30%;
    }

    footer {
        padding: 0;
        height: auto;
    }

    footer > div {
        width: 100%;
        font-size: 16px;
        line-height: 1.6em;
    }

    footer li a {
        line-height: 2em;
    }

    .text-end,
    .header-gris a {
        font-size: 11px !important;
    }

    .logos {
        text-align: left;
    }

    .logos span {
        position: relative;
        height: 22px !important;
        margin-top: 17px;
        display: inline;
        margin: 0 10px;
    }
}


/* =========================================================
   HEADER EN CELULAR (sticky, sin tapar el contenido)
   ========================================================= */

@media (max-width: 767.98px) {

    .headdiv header {
        position: relative !important;
        top: 0 !important;
        transform: none !important;

        width: 100% !important;
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;

        margin: 0 !important;
        overflow: visible !important;
    }

    .headdiv header > div {
        width: 100% !important;
        height: 70px !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    .headdiv .logos {
        width: 100% !important;
        height: 70px !important;

        display: flex !important;
        align-items: center !important;
    }

    .headdiv .logos img {
        height: 45px !important;
        width: auto !important;
        padding: 0 15px !important;
    }

    .headdiv .linksheader {
        display: none !important;
    }
}



/* Menú principal: azul solo al pasar el mouse o con el desplegable abierto */
.navbar .navbar-nav > .nav-item > .nav-link:hover,
.navbar .navbar-nav > .nav-item > .nav-link:focus,
.navbar .navbar-nav > .nav-item > .nav-link.show {
    color: #fff !important;
    background-color: #004a98;
    border-radius: 5px;
}

/* Sección actual: se ve igual que los demás elementos */
.navbar .navbar-nav > .nav-item > .nav-link.active {
    color: #004a98;
    background-color: transparent;
}

/* Submenús: azul solo al pasar el mouse */
.navbar .dropdown-menu > .nav-item > a:hover {
    color: #fff;
    background-color: #004a98;
}

/* Submenús: sin desplazamiento y con esquinas redondeadas */
.navbar .dropdown-menu {
    padding: .35rem;
}

.navbar .dropdown-menu > .nav-item > a {
    margin-left: 0;
    border-radius: 5px;
    box-sizing: border-box;
}



/* Pruebas */



