/*Generales todas las paginas*/
.lazy-placeholder .filler {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    content: '';
    min-height: 3em;
    background: linear-gradient(270deg, #FFF, #4F799F);
    background-size: 400% 400%;
    -webkit-animation: degAnim 6s ease infinite;
    -moz-animation: degAnim 6s ease infinite;
    animation: degAnim 6s ease infinite;
    border-radius: 10px;
}

.lazy-placeholder .row>div {
    margin: 5px 0;
}

body {
    background-color: #DCDCDC !important;
}



@media (max-width: 280px) {
    html {
        font-size: 9pt;
    }

    button#accesibilidad {
        left: -150vw !important;
    }

    button#accesibilidad:focus {
        left: 0 !important;
        left: 0 !important;
    }
}

/* Barra de accesibilidad*/
button#accesibilidad:focus {
    font-size: 1rem !important;
    z-index: 999 !important;
    left: 0 !important;
}

#accessibility nav.menu-container ul li .icons,
#accessibility .accesibility .icon-box-simple-reset,
#accessibility .accesibility .icon-box-simple {
    background-color: #4F799F !important;
}

#accessibility .accesibility li span {
    color: #4F799F !important;
}

#accessibility .accesibility .icon-box-simple-reset span {
    color: #FFF !important;
}

#accessibility .accesibility li i:before {
    display: block;
    margin-top: 5px;
}

.texto_cont h1,
.texto_cont h2,
.texto_cont h3,
.texto_cont h4,
.texto_cont h5 {
    color: #4F799F;
    -webkit-font-smoothing: antialiased;
}

.texto_cont h1 {
    color: #4F799F;
    font-size: 2rem;
    font-weight: 700;
}

.texto_cont h2 {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0.5em 0;
}

.texto_cont h2.titulo {
    color: #4F799F;
    font-size: 1.4em !important;
}

.texto_cont h3 {
    font-size: 1.2em !important;
}

.texto_cont h4,
.texto_cont h5 {
    font-size: 1.1em !important;
}

.texto_cont,
.texto_cont p,
.texto_cont a,
.texto_cont span,
.texto_cont li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    font-weight: 400;
}

.texto_cont th span,
.texto_cont th p,
.texto_cont th a {
    color: #FFF !important;
}

.texto_cont a {
    color: #4F799F;
    font-weight: 500;
    text-decoration: none;
}

.texto_cont a.btn {
    color: #FFF;

}

.texto_cont a:hover {
    text-decoration: underline;

}

.breadcrumb {
    background-color: #fff !important;
    font-size: 12px !important;
    padding: 0.5em 2rem !important;
    border-radius: 1em !important;
}

.breadcrumb a {
    color: #4F799F;
    text-decoration: none;
}

.breadcrumb-item.active {
    font-weight: 700;
}



#content {
    padding: 1em 0;
}

#content .texto_cont {
    background-color: #FFF;
    padding: 3rem 4rem;
    border-radius: 5px;
    text-align: justify;
}

@media (max-width: 767px) {
    #content .texto_cont {
        padding: 1em 2em;
    }
}

#content .texto_cont>.fecha {
    display: block;
    font-size: 0.8rem;
    text-align: right;
    margin-bottom: 1em;
    color: #333;
}

#content .texto_cont .ImgDestacada {
    height: 300px;
    overflow: hidden;
    position: relative;
    padding: 0;
}

#content .texto_cont .ImgDestacada img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

#content .texto_cont .destacado {
    background-color: #4F799F;
    color: #FFF;
    padding: 1em 2em;
    max-width: 100%;
    margin-bottom: 1em;
    flex: none;
}

#content .texto_cont .col-md-9 .destacado {
    background-color: #4F799F;
    padding: 1em;
    position: static;
    width: 100%;
}

#content .texto_cont .destacado p {
    color: #FFF;
}

#content .texto_cont .overflow {
    width: 100vw;
    position: relative;
    left: calc(((100vw - 100%) / 2) * -1);
}

#content .texto_cont .destacado h1,
#content .texto_cont .destacado h2,
#content .texto_cont .destacado h3,
#content .texto_cont .destacado h4 {
    color: #FFF;
}

.texto_cont ul {
    list-style-position: inside;
}

/*Footer*/
#pageFooter {
    clear: both;
    width: 100%;
    background-color: #FFF;
}

#pageFooter .mega-footer {
    background-color: #4F799F;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

#pageFooter .mega-footer>.container {
    padding: 0.5rem 3rem;
}

#pageFooter .mega-footer ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

#pageFooter .mega-footer ul li a {
    color: #FFF;
    text-decoration: none;
    display: inline-block;
    padding: 8px 12px;
}

#pageFooter .copyright {
    color: #4F799F;
    padding: 1em 3rem;
}

#pageFooter .copyright div {
    font-size: 0.9rem;
    font-weight: 300;
}

#pageFooter .copyright div p {
    font-size: 0.9em;
}

#pageFooter .copyright .phone-link {
    color: #4F799F;
}

#pageFooter .bannersTransp {
    display: flex;
    justify-content: center;
}

#pageFooter .disclaimer {
    background-color: #DCDCDC;
    color: #4F799F;
    padding: 1rem 0;
    text-align: center;
}

.bannersTransp img {
    max-width: 100%;
}


#layerFooter {
    background-color: #FFF;
}

#layerFooter .disclaimer,
#layerFooter p,
#layerFooter i {
    color: #4F799F;
}

#layerFooter .disclaimer {
    background-color: #D7D8DB;
    padding: 0.5em;
}

#layerFooter .mega-footer {
    background-color: #4F799F;
    color: #FFF;
    padding: 1em 0;
}

#layerFooter .mega-footer ul {
    list-style: none;
    padding: 0;

}

#layerFooter .mega-footer ul a {
    color: #FFF;
}

#layerFooter .bannersTransp {
    display: flex;
}

#layerFooter .bannersTransp a {
    flex: 1 1 50%;
}

#BtnRedes {
    width: 100%;
    height: 1em;
    margin-top: 3rem;
    margin-bottom: -1rem;
}

#BtnRedes button {
    float: right;
}

#BtnRedes button span {
    font-weight: 900;
    font-size: 14px;
}

@media screen and (max-width: 767px) {
    #BtnRedes {
        margin-bottom: 1rem;
    }
}

/* Formatea páginas con cÃ³digo anterior*/

.texto_cont .subtitulo {
    color: #4F799F;
    font-size: 1.2em;
    -webkit-font-smoothing: antialiased;
    font-weight: 800;
}

.subtitulo strong {
    -webkit-font-smoothing: antialiased;
    font-weight: 800;
}

.titulo {
    -webkit-font-smoothing: antialiased;
    font-weight: 800;
    color: #4F799F;
}


.texto_cont img {
    /*Imagenes responsivas*/
    width: 100%;
    display: block;
    margin: 0 auto;

}

/* Tablas Páginas Secuendarias */

.texto_cont table {
    border-collapse: collapse;
    border: 1px grey solid;
    margin: 0px;
}

.texto_cont td,
.texto_cont th {
    border-bottom: 1px solid grey;
    padding: 5px;
    text-align: left;
}

.texto_cont table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.texto_cont th {
    background-color: #4F799F;
    color: #FFF;
}

.sr-only {
    padding: 0;
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 767px) {
    #pageFooter .disclaimer {
        padding: 0.5rem;
    }
}

@-webkit-keyframes degAnim {
    0% {
        background-position: 0% 50%;

    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%;

    }
}

@-moz-keyframes degAnim {
    0% {
        background-position: 0% 50%;

    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%;

    }
}

@keyframes degAnim {
    0% {
        background-position: 0% 50%;

    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%;

    }
}

/*Corrige error en oficinas FIRA en resoluciones pequeñas*/

@media only screen and (max-width: 600px) {
    div#fancybox-wrap {
        min-width: 80% !important;
        left: unset !important;
    }

    div#fancybox-inner {
        width: 100% !important;
    }
}

/*Impreso*/

@media print {
    @page {
        margin: 15mm;
    }

    html,
    body {
        font-size: 12px;
        background: #FFF;
        overflow: visible;
    }

    a {
        text-decoration: underline;
    }

    a[href]:after {
        display: none;
    }

    #navPrincipal,
    #navPrincipal.scrolled {
        background-color: transparent !important;
    }

    #navPrincipal {
        position: absolute !important;

        padding: 1rem;
    }

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: unset;
    }

    .texto_cont .fullWidth img {
        left: unset !important;
    }

    #navPrincipal .logo-img svg path {
        fill: #4F799F;
    }

    body #navPrincipal .menuBtn,
    #navPrincipal div.navbar-nav,
    #BtnRedes,
    .bannersTransp,
    #navPrincipal form.navbar-nav,
    .mega-footer,
    #accessibility {
        display: none !important;
    }

    #layerFooter .disclaimer {
        background-color: transparent;
    }
}

/*Bug fix IE*/
html[data-useragent='11.0'] .texto_cont p,
html[data-useragent='11.0'] .texto_cont a,
html[data-useragent='11.0'] .texto_cont li,
html[data-useragent='11.0'] .texto_cont span,
html[data-useragent='11.0'] .texto_cont strong {
    font-size: 14px !important;
}

/* Modo Oscuro */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #515151 !important;
        color: #FFF !important;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        background-color: #FFF !important;
    }

    #content .texto_cont {
        background-color: #333 !important;
        color: #FFF !important;
    }

    .breadcrumb a,
    .breadcrumb-item+.breadcrumb-item::before {
        color: #97c6ff;
    }

    .breadcrumb-item.active {
        color: #97c6ff !important;
    }

    .texto_cont,
    .texto_cont p,
    .texto_cont span,
    .texto_cont li,
    .texto_cont h1,
    .texto_cont h2,
    .texto_cont h3,
    .texto_cont h4,
    .texto_cont h5 {
        color: #FFF;
    }

    .texto_cont a {
        color: #97c6ff;
        font-weight: bolder;
    }

    #iframe .UIDesplegable .nav li {
        background-color: #444 !important;
    }

    .breadcrumb,
    .tab-pane,
    .tab-content,
    #menuPrincipal .navbar-nav .nav-link:focus-visible,
    #menuPrincipal .navbar-nav .nav-link:hover,
    #pageFooter .copyright div,
    #pageFooter {
        background-color: #333 !important;
        color: #FFF !important;
    }

    .tab-content li a,
    .tab-content li p,
    .tab-content li strong,
    #pageFooter a {
        color: #FFF !important;
    }

    .texto_cont table tr:nth-child(even) {
        background-color: #444 !important;
    }

    .texto_cont .alert-info {
        background-color: #444 !important;
    }

    /* Acerca de */
    #acerca_de .mapa-cont {
        background-color: #FFF;
    }

    #acerca_de #otras-list {
        background-color: #666
    }

    /*Estructuras*/
    #estructuras img {
        background-color: #FFF;
        border-radius: 10px;
        padding: 1em;
    }

    #estructuras .vinetasOficinas li {
        background-color: #333;
    }

    /*Lineas y Acciones*/
    #Div_ProgInst div {
        background-color: #333 !important;
    }

    .estrategiasSVG p {
        background-color: #333 !important
    }

    /*Registro IF*/
    #registro_if svg {
        background-color: #FFF;
        padding: 1em;
    }

    /*Apoyos Fomento*/
    #apoyos_fomento .ulsins {
        background-color: #000;
    }

    /*Otras*/
    .modal-content,
    .modal-header,
    .modal-body,
    .modal-footer {
        background-color: #333;
    }

    .modal-footer .btn {
        background-color: #ddd;
    }
}

/* Forced Colors */
@media (forced-colors: active) {

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        background-color: #000 !important;
        border: solid 1.5px #000 !important;
    }

    .logo-img svg path,
    #loginBtn svg path,
    #buscarBtn svg path {

        fill: #0a009f !important;
    }

    #BtnRedes button {
        background-color: #000 !important;
    }
}

@media (prefers-reduced-motion) {
    * {
        transition: none !important;
        animation-duration: 5s !important;
    }
}

body.accesible * {
    transition: none !important;
    animation-duration: 5s !important;
}
