/*
Theme Name: Base
Theme URI: https://www.invbit.com
Author: Base
Author URI: https://www.invbit.com
Description: Base para Betheme
Template: betheme
Version: 1.6.2
*/


/*********************************\
              GENERAL
\*********************************/
@keyframes aparecerIzquierda {
    from {left: -100%;}
    to {left: 0;}
}

.validate_email_against_bot {
    display: none
}

:root{
    --azul: #76aadc;
    --azulOscuro: #5c8ab6;
    --azulClaro: #f1f6fb;

	--white: #fff;

    --gradient: linear-gradient(90deg, #1f75c7, #76aadc);
    --gradientExtend: linear-gradient(90deg, #1f75c7 25%, #76aadc 75%);
}

a:hover {
    text-decoration: none;
}

.form-legal {
    font-size: 0.7em;
    line-height: 1.5em;
    opacity: .7;
    padding: 10px;
}

input[name="politica"] + span {
    font-weight: 500;
}

#cmplz-document {
    max-width: 100%;
    padding: 40px 0;
}

.button-custom .button {
    background: var(--gradientExtend);
    background-size: 200% 100%;
    background-position: center center;
    transition: .5s ease-in-out;
    text-transform: uppercase;
}

.button-custom .button:hover {
    background-position: left center;
}

.backVectorRight:before {
    content: "";
    background: url(/wp-content/themes/base/imagenes/vector.svg) no-repeat;
    position: absolute;
    width: 400px;
    height: 500px;
    background-position: center center;
    top: -200px;
    right: -150px;
}

/*********************************\
               MENÚ
\*********************************/
#Top_bar.is-sticky .logo-sticky {
    margin-top: -1px;
}

#Top_bar .wpml-languages.horizontal {
    border: 0;
}

#Top_bar .wpml-languages.horizontal ul li a {
    vertical-align: middle;
}

#Subheader {
    background-color: rgba(118,170,220,.1);
}

body:not(.template-slider) #Header_wrapper {
    background-image: none;
}


/*********************************\
              FOOTER
\*********************************/
#Footer .widgets_wrapper {
    background: var(--gradient);
    padding: 20px 0;
    position: relative;
}

#Footer .widgets_wrapper:after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    background: url(/wp-content/themes/base/imagenes/AIEG.svg) 99% center no-repeat;
    background-size: auto 96%;
}

#Footer .widgets_wrapper .container {
    display: flex;
    align-items: center;
}

#Footer .widgets_wrapper .container .widget {
    margin-top: 15px;
    z-index: 1;
}

#Footer .widgets_wrapper .container > div:first-child .widget p {
    font-size: 29px;
    font-weight: 600;
    line-height: 33px;
    width: 75%;
}

#Footer .widgets_wrapper .container > div:last-child .widget {
    text-align: right;
}

#Footer .widget .correo {
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

#Footer .widget .correo a:hover {
    color: var(--white);
    opacity: .5;
}

#Footer .widget .direccion {
    font-size: 18px;
    font-weight: 500;
    margin-left: 60%;
}

#Footer .copyright {
    font-size: 12px;
    line-height: 12px;
}

@media only screen and (min-width: 960px) and (max-width: 1239px) {
    #Footer .widgets_wrapper .container > div:first-child .widget p {
        width: 90%;
    }

    #Footer .widget .direccion {
        margin-left: 50%;
    }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    #Footer .widgets_wrapper .container>div:first-child .widget p {
        font-size: 22px;
        line-height: 28px;
        width: 90%;
    }

    #Footer .widget .correo {
        font-size: 20px;
        line-height: 26px;
    }

    #Footer .widget .direccion {
        font-size: 15px;
        margin-left: 40%;
    }
}

@media only screen and (max-width: 767px) {
    #Footer .widgets_wrapper:after{
        background-size: 98% auto;
        background-position: 1% 99%;
    }

    #Footer .widgets_wrapper .container {
        display: block;
    }

    #Footer .widgets_wrapper .container>div:first-child .widget p {
        width: 100%;
    }

    #Footer .widget .direccion {
        margin-left: 0;
    }

    #Footer .widgets_wrapper .container .widget {
        text-align: center!important;
    }
}

@media only screen and (max-width: 400px) {
    #Footer .widgets_wrapper .container>div:first-child .widget p {
        font-size: 20px;
        line-height: 25px;
    }

    #Footer .widget .correo {
        font-size: 16px;
        line-height: 20px;
    }

    #Footer .widget .direccion {
        font-size: 12px;
    }

    #Footer .copyright {
        font-size: 9px;
        line-height: 9px;
    }

    #Footer .copyright p {
        margin: 0 0 5px;
    }
}


/*********************************\
              PORTADA
\*********************************/
#destacadas {
    left: -100%;
    animation: aparecerIzquierda 2s ease-in-out forwards;
    animation-delay: 3s;
}

#destacadas .column_visual {
    margin-bottom: 10px;
}

#destacadas .column_visual h2 {
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    margin: 0 2%;
}

#destacadas .column_blog .entry-title,
.blog_slider .blog_slider_ul li .item_wrapper .desc h3 {
    font-size: 19px;
    line-height: 23px;
    font-weight: 500;
    margin-bottom: 0;
}

#destacadas .column_blog .entry-title a,
.blog_slider .blog_slider_ul li .item_wrapper .desc h3 a {
    color: #4f4f4f;
}

#destacadas .column_blog .post-item .entry-title a,
.blog_slider .blog_slider_ul li .item_wrapper .desc h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#destacadas .column_blog .post-item.no-img .entry-title a {
    display: -webkit-box;
    -webkit-line-clamp: 15;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#destacadas .column_blog .entry-title a:hover,
.blog_slider .blog_slider_ul li .item_wrapper .desc h3 a:hover {
    color: var(--azul);
}

#destacadas .column_blog .post-item,
.blog_slider .blog_slider_ul li .item_wrapper {
    box-shadow: rgb(0,0,0,.06) 0 0 14px;
    border-radius: 8px;
}

#destacadas .column_blog .post-item .image_wrapper,
.blog_slider .blog_slider_ul li .item_wrapper .image_frame .image_wrapper {
    border-radius: 8px 8px 0 0;
    background: var(--white);
}

#destacadas .column_blog .post-item .image_wrapper a,
.blog_slider .blog_slider_ul li .item_wrapper .image_frame .image_wrapper a {
    transition: .5s ease-in-out;
}

#destacadas .column_blog .post-item .image_wrapper a:hover,
.blog_slider .blog_slider_ul li .item_wrapper .image_frame .image_wrapper a:hover {
    transform: scale(1.1);
}

#destacadas .column_blog .post-item .post-desc-wrapper,
.blog_slider .blog_slider_ul li .item_wrapper .desc {
    border-radius: 0 0 8px 8px;
    height: 180px;
    padding: 25px 35px;
    background: var(--white);
}

#destacadas .column_blog .post-item.no-img .post-desc-wrapper {
    height: 391px;
    border-radius: 8px;
}

#destacadas .column_blog .post-item .post-desc-wrapper .post-footer {
    margin: 0;
    padding: 0;
    border: 0;
}

#destacadas .column_blog .post-item .post-desc-wrapper .date {
    font-size: 12px;
    color: #828282;
    font-weight: 500;
}

#destacadas .column_blog .post-item .post-desc-wrapper .date i {
    display: none;
}

#aieg-desde .column_image {
    display: flex;
    align-items: center;
}

#aieg-desde .image_frame {
    height: 100%;
}

#aieg-desde .image_wrapper {
    left: -200px;
    overflow: initial;
    height: 100%;
}

#aieg-desde .image_wrapper:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--azul);
    top: 15px;
    left: 15px;
    border-radius: 8px;
    opacity: .08;
}

#aieg-desde .image_wrapper img {
    border-radius: 8px;
    height: 100%;
    object-fit: cover;
}

#aieg-desde .column_column {
    width: 40%;
    position: absolute;
    right: 0px;
}

#aieg-desde .column_column h2 {
    font-weight: 600;
    font-size: 24px;
    line-height: 35px;
}

#aieg-desde .column_column h2:first-line {
    font-size: 37px;
}

.blog_slider .blog_slider_header .title {
    text-align: center;
    font-size: 27px;
    font-weight: 700;
    float: none;
    width: 100%;
    margin-bottom: 30px;
}

.blog_slider .blog_slider_ul li .item_wrapper .image_frame {
    margin: 0;
}

.blog_slider .blog_slider_ul li:not(.has-post-thumbnail) .item_wrapper .image_frame {
    display: none;
}

.blog_slider .blog_slider_ul li:not(.has-post-thumbnail) .item_wrapper .desc {
    height: 337px;
    border-radius: 8px;
}

.blog_slider .blog_slider_ul li:not(.has-post-thumbnail) .item_wrapper .desc h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 11;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog_slider .blog_slider_ul li .item_wrapper .desc .date {
    font-size: 12px;
    color: #828282;
    font-weight: 500;
}

.wrap.twitter h3 {
    margin-top: 5px;
    font-size: 22px;
    font-weight: 500;
}

.column_column.twitter-timeline {
    max-height: 400px;
    overflow-y: scroll;
    border-radius: 8px;
    box-shadow: rgb(0 0 0 / 6%) 0 0 14px;
    background: var(--white);
}

#colab .mcb-wrap-inner {
    display: flex;
    align-items: center;
}

#colab .image_frame {
    max-width: 90%;
    margin: 0 auto;
}

#colab .image_frame .image_wrapper {
    overflow: initial;
}

#colab .image_frame .image_wrapper a {
    transition: .5s ease-in-out;
}

#colab .image_frame .image_wrapper a:hover {
    transform: scale(1.1);
}

@media only screen and (min-width: 960px) and (max-width: 1239px) {
    #destacadas .column_blog .post-item.no-img .post-desc-wrapper,
    .blog_slider .blog_slider_ul li:not(.has-post-thumbnail) .item_wrapper .desc {
        height: 342px;
    }

    #destacadas .column_blog .post-item.no-img .entry-title a,
    .blog_slider .blog_slider_ul li:not(.has-post-thumbnail) .item_wrapper .desc h3 a {
        -webkit-line-clamp: 10;
    }

    #aieg-desde .image_frame {
        height: 80%;
        left: -150px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    #destacadas .column_blog .post-item.no-img .post-desc-wrapper {
        height: 302px;
    }

    .blog_slider .blog_slider_ul li:not(.has-post-thumbnail) .item_wrapper .desc {
        height: 364px;
    }

    #destacadas .column_blog .post-item.no-img .entry-title a {
        -webkit-line-clamp: 10;
    }

    .blog_slider .blog_slider_ul li:not(.has-post-thumbnail) .item_wrapper .desc h3 a {
        -webkit-line-clamp: 11;
    }

    .wrap.twitter h3 {
        font-size: 16px;
    }

    #aieg-desde .image_frame {
        height: 50%;
        left: -150px;
    }
}

@media only screen and (max-width: 767px) {
    #aieg-desde {
        padding-bottom: 0!important;
    }

    #aieg-desde .image_wrapper {
        left: 0;
    }

    #aieg-desde .column_column {
        position: relative;
    }
    
    .wrap.twitter h3 {
        margin-top: 40px;
    }

    #colab .mcb-wrap-inner {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #colab .image_frame {
        max-width: 80%;
    }
}

@media only screen and (min-width:401px) and (max-width: 767px) {
    #colab .column_image {
        width: 50%!important;
    }
}

@media only screen and (max-width: 400px) {
    #colab .column_image {
        margin-bottom: 40px;
    }
}


/*********************************\
         PÁGINAS INTERNAS
\*********************************/
/* Asociación */
.gallery.fancy .gallery-item .image_wrapper {
    box-shadow: rgb(0,0,0,.25) 0 0 15px;
}

.gallery.fancy .gallery-item .image_wrapper a {
    transition: .5s;
}

.gallery.fancy .gallery-item .image_wrapper a:hover {
    transform: scale(1.1);
}

.column_image_gallery {
    margin-top: -40px;
}

.gallery-title {
    font-size: 11px;
    opacity: .7;
    font-style: italic;
    text-align: right;
    margin: 0;
}

.tabs_vertical.ui-tabs .ui-tabs-nav li:not(.ui-state-active) a {
    background: #fff;
}

.tabs_vertical.ui-tabs .ui-tabs-nav li.ui-state-active a,
.tabs_vertical.ui-tabs .ui-tabs-nav li.ui-state-active:after,
.tabs_vertical.ui-tabs .ui-tabs-panel {
    background: var(--azulClaro);
}

.tabs_vertical.ui-tabs .ui-tabs-panel {
    padding: 60px 40px;
}

@media only screen and (min-width: 768px){
    .column_tabs:before {
        content: "";
        width: 400px;
        height: 400px;
        position: absolute;
        display: block;
        left: -80px;
        top: 300px;
        background: url(/wp-content/themes/base/imagenes/vector.svg) no-repeat;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
    .gallery.fancy .gallery-item {
        width: 33.33%!important;
        clear: none!important;
    }

    .gallery.fancy .gallery-item .image_wrapper {
        box-shadow: rgb(0,0,0,.25) 0 0 5px;
    }
}

/* Normativa */
.post-type-archive-normativa #Content {
    padding: 60px 0;
}
.post-type-archive-normativa .normativa-letter {
    background: var(--azul);
    margin-bottom: 0;
}

.post-type-archive-normativa .normativa-letter p {
    margin: 0;
    color: var(--white);
    font-size: 26px;
    line-height: 30px;
    font-weight: 500;
    padding: 5px 20px;
}

.post-type-archive-normativa .normativa-single {
    position: relative;
    margin: 0;
    padding: 0 1%;
}

.post-type-archive-normativa .normativa-single p {
    font-size: 16px;
    line-height: 22px;
    margin: 0;
    padding: 10px;
}

.post-type-archive-normativa .separador {
    margin: 0;
    width: 100%;
}

.post-type-archive-normativa .separador hr {
    display: none;
}

@media only screen and (min-width: 768px) {
    .post-type-archive-normativa #Content .section_wrapper,
    .post-type-archive-normativa .normativa-wrapper {
        display: flex;
        flex-direction: column;
    }

    .post-type-archive-normativa .normativa-row {
        display: flex;
        align-items: stretch;
    }

    .post-type-archive-normativa .normativa-single.with-border:after {
        content: "";
        position: absolute;
        display: block;
        height: 100%;
        width: 1px;
        right: 0;
        background: var(--azul);
        top: 0;
    }
}

@media only screen and (max-width: 767px) {
    .post-type-archive-normativa .normativa-single:not(.no-content):after {
        content: "";
        position: absolute;
        display: block;
        height: 1px;
        width: 98%;
        left: 0;
        background: var(--azul);
        top: 0;
    }
}

/* Normativa Single */
.single-normativa #Content .section {
    padding: 40px 0;
}

.single-normativa .column_column {
    border-radius: 8px;
    border: solid 1px var(--azulOscuro);
    background-color: var(--azulClaro);
    padding: 20px;
}

.single-normativa .column_column h2 {
    font-size: 22px;
    line-height: 26px;
}

.single-normativa .column_column a {
    background: var(--azul);
    color: var(--white);
    padding: 0 3px;
}

.single-normativa .column_column a:hover {
    background: transparent;
    color: var(--azul);
}

@media only screen and (min-width: 768px) {
    .single-normativa .column_column {
        width: 76%;
        margin: 0 12% 40px;
    }
}

/* Actualidad */
.blog #Content {
    background: url(/wp-content/themes/base/imagenes/vector.svg) no-repeat;
    background-size: 500px 500px;
    background-position: right center;
}

.blog .post-item {
    box-shadow: rgb(0,0,0,.06) 0 0 14px;
    border-radius: 8px;
}

.blog .post-item .image_wrapper {
    border-radius: 8px 8px 0 0;
}

.blog .post-item .image_wrapper a {
    transition: .5s;
}

.blog .post-item .image_wrapper a:hover {
    transform: scale(1.1);
}

.blog .post-item .post-desc {
    padding: 30px;
}

.blog .post-item .post-desc .entry-title {
    font-size: 24px;
    line-height: 27px;
    font-weight: 600;
}

.blog .post-item .post-desc .post-footer {
    display: none;
}

.blog .post-item .post-desc .post-excerpt .big,
.blog .post-item .post-desc .post-excerpt {
    font-size: 14px;
    line-height: 18px;
}

.blog .post.no-img .post-photo-wrapper {
    display: block;
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    .blog .post-item .post-desc .post-excerpt .big,
    .blog .post-item .post-desc .post-excerpt {
        font-size: 13px;
        line-height: 21px;
    }
}

@media only screen and (max-width: 767px) {
    .blog .post-item .post-desc .post-excerpt .big,
    .blog .post-item .post-desc .post-excerpt {
        font-size: 13px;
        line-height: 19px;
    }
}

/* Contacto */
.wpcf7 {
    max-width: 90%;
    margin: 10px auto;
    box-shadow: rgb(0 0 0 / 6%) 0 0 14px;
    border-radius: 8px;
    padding: 30px;
    background-color: var(--white);
}

#formulario h3 {
    margin-top: 40px;
    color: #000;
    font-weight: 600;
    position: relative;
}

#formulario h3:before {
    content: "";
    display: block;
    position: absolute;
    width: 40%;
    height: 2px;
    background-color: black;
    opacity: .1;
    top: -15px;
}

@media only screen and (min-width: 768px){
    #formulario:before {
        content: "";
        width: 400px;
        height: 400px;
        position: absolute;
        display: block;
        left: 100px;
        bottom: 100px;
        background: url(/wp-content/themes/base/imagenes/vector.svg) no-repeat;
        transform: rotate(45deg);
    }

    #formulario h3 {
        margin-top: 80px;
    }
}

/* Single post */
.post-nav.minimal a {
    background-color: var(--azul);
    border-radius: 4px;
    padding: 4px 10px;
    opacity: 1;
    color: var(--white);
}

.post-nav.minimal a i {
    color: var(--white);
    vertical-align: middle;
}

.post-nav.minimal a:hover {
    background-color: #1f75c7;
}

.post-nav.minimal a.home {
    display: none;
}

.section-post-related .format-standard.no-img .image_frame:after {
    content: "";
    background: url(https://aiegalicia.es/wp-content/uploads/2021/04/default-2021-04-22.jpg) center center no-repeat;
    background-size: cover;
}

.single-post #Content .section-post-header .single-photo-wrapper img[src*="default"] {
    display: none;
}

@media only screen and (min-width: 420px) {
    .post-nav.minimal a.prev:after,
    .post-nav.minimal a.next:before {
        vertical-align: middle;
    }

    html[lang='gl-ES'] .post-nav.minimal a.prev:after {
        content: "Nova anterior";
    }
    
    html[lang='es-ES'] .post-nav.minimal a.prev:after {
        content: "Noticia anterior";
    }
    
    html[lang='gl-ES'] .post-nav.minimal a.next:before {
        content: "Seguinte nova";
    }
    
    html[lang='es-ES'] .post-nav.minimal a.next:before {
        content: "Siguiente noticia";
    }
}

.author-date {
    color: var(--azul);
    opacity: .7;
}

.author-date i {
    display: none;
}

.section-post-related {
    background: var(--azulClaro);
    margin-top: 60px;
}

.section-post-related .section-related-adjustment {
    border-top: 0;
}

.section-post-related .section-related-adjustment > h4 {
    text-align: center;
    padding: 30px 0;
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 30px;
}

.section-post-related .post-related {
    box-shadow: rgb(0,0,0,.06) 0 0 14px;
    border-radius: 8px;
    background-color: var(--white);
}

.section-post-related .post-related .image_wrapper {
    border-radius: 8px 8px 0 0;
}

.section-post-related .post-related .date_label {
    padding-left: 20px!important;
}

.section-post-related .post-related .desc {
    padding: 0 20px 30px;
}

.section-post-related .post-related .desc a.button {
    display: none;
}

@media only screen and (min-width: 768px) {
    .single .post-header {
        position: absolute;
        bottom: -40px;
        width: 23%;
        margin: 0;
    }

    .single .the_content_wrapper {
        max-width: 75%;
        margin-left: 25%;
        border-left: solid 2px var(--azul);
        padding-left: 25px;
    }

    .single .post-header .author-date {
        font-size: 20px;
        text-align: right;
        float: none;
    }
}

@media only screen and (max-width: 767px) {
    .single .post-header {
        display: none;
    }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    .single .post-header .author-date {
        font-size: 16px;
    }
}

