/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

:root {
    --texto: #777777;
    --negro: #1b1b1b;
    --blanco: #ffffff;
    --gris-1: #f7f8f9;
    --gris-2: #a9a9ad;
    --azul-claro: #0d6ea3;
    --azul: #005a96;
}

body {
    font-family: "Lexend", serif;
    font-size: 62.5%;
}

p {
    font-size: 1.7em;
    line-height: 1.5em;
}

ul > li,
ol > li,
table {
    font-size: 1rem;
    line-height: 1.5em;
}


.vce-text-block>.vce-text-block-wrapper>p:last-child {
    margin-bottom: 0;
}

.vce-single-image-inner {
    padding-bottom: 0 !important;
}

img.vce-single-image {
    position: static !important;
}

.w-900 {
    max-width: 900px;
    margin: auto;
}

/* - - - - - - - - - ENCABEZADOS - - - - - - - - - */

h1.tit-h1 {
    font-family: "Lexend", serif;
    font-size: 4.2em;
    line-height: 1.3em;
    color: var(--azul);
}

h2.tit-h2 {
    font-family: "Lexend", serif;
    font-size: 4em;
    line-height: 1.3em;
    color: var(--azul);
}

h3.tit-h3 {
    font-size: 2.5em;
    line-height: 1.3em;
    color: var(--azul);
}

p.dest {
    font-family: "Lexend", serif;
    font-size: 2.8em;
    line-height: 1.3em;
}

span.dest {
    font-size: 2em;
    font-family: "Lexend", serif;
}

.circle-w .vce-text-block {
    background-color: var(--gris-1);
    height: 346px;
    max-width: 100%;
    width: 100%;
    padding: 20px;
    margin: auto;
    border-radius: 100%;
    display: flex;
    align-items: center;
}

.circle-w .vce-text-block h2 {
    color: var(--negro);
    margin-bottom: 0;
}

.a-center {
    align-items: center;
}

img {
    border-radius: 5px;
}

/* - - - - - - - - - BOTONES - - - - - - - - - */

.btn .vce-button {
    border: solid 3px var(--azul);
    border-radius: 50px;
    background: none;
    color: var(--azul) !important;
    transition: all 0.4s ease;
    text-transform: uppercase;
    padding: 20px 30px;
    font-weight: 500;
    box-shadow: inset 0 0 0 0 var(--gris-2);
    transition: all 0.4s ease;
}

.btn .vce-button:hover {
    background-color: var(--azul);
    color: var(--blanco) !important;
    border-radius: 0px;
    transition: all 0.4s ease;
    transform: translateY(-3px);
    box-shadow: 0 20px 20px rgb(0 0 0 / 15%);
    transition: all 0.4s ease;
}

/* - - - - - - - - - MENÚ - - - - - - - - - */

.menu li a {
    font-size: 1.6em;
    font-family: "Lexend", serif;
    color: var(--blanco);
    position: relative;
    line-height: 1em !important;
    transition: 0.3s;
    padding: 0 5px !important;
    margin: 0 20px;
}

.menu li a:hover {
    color: var(--negro);
}

.menu li a::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    display: inline-block;
    height: 1px;
    width: 0%;
    background-color: var(--negro);
    transition: 0.3s;
}

.menu li a:hover::after {
    background-color: var(--negro);
    width: 100%;
}

.menu li.current-menu-item a::after {
    width: 100%;
}

/* MEGAMENÚ */

a.principal {
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--azul);
  color: var(--negro);
  font-size: 18px;
}

.main-navigation ul ul a {
    font-weight: bold;
    font-size: 16px;
}

/* - - - - - - - - - BLOG INICIO - - - - - - - - - */

.wp-show-posts-columns:not(.wp-show-posts-masonry) {
  gap: 40px;
  justify-content: center;
  margin: auto !important;
}

.wp-show-posts-columns .wp-show-posts-single:not(.wp-show-posts-masonry-block) {
  padding: 30px;
  background: var(--blanco);
  border-radius: 10px;
}

.wp-show-posts-inner {
  margin: 0!important;
}

.wp-show-posts .wp-show-posts-entry-title {
  margin: 0;
  font-size: 2.4em;
  margin-top: 30px;
}

.wp-show-posts a {
    color: var(--azul);
}

.wp-show-posts a:hover {
    color: var(--azul-claro);
}

.wpsp-col-4 {
    width: 30%;
}

.single-post #content {
    margin-top: 140px;
    padding: 80px 20px;
}

.single-post .featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.single-post .entry-header {
    margin-bottom: 40px;
}

.single-post .entry-header .entry-meta {
    font-size: 0.85rem;
}

.single-post footer.entry-meta {
    margin-top: 40px;
}

.single-post footer.entry-meta nav {
    font-size: 0.85rem;
    display: flex;
    gap: 20px;
}

.quitar {
  display: none!important;
}

.category-actualidad .site, .error404 .site {
  margin-top: 140px;
  padding: 20px;
}

.category-actualidad h1, .category-actualidad h2 {
  margin: 20px 0 20px 0;
}

.category-actualidad article {
  padding: 20px;
  background: var(--blanco);
  border-radius: 10px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.nav-links {
  font-size: 18px;
}


/* - - - - - - - - - - - INICIO - - - - - - - - - - */

.site-header {
    margin-bottom: -140px;
    z-index: 1;
    position: relative;
}



/* - - - - - - - - - EQUIPO - - - - - - - - - */

/*.cab-equipo .vce-asset-color-gradient-container {
    background-image: linear-gradient(0deg, #f7f8f9 5%, rgba(247, 248, 249, 0) 100%) !important;
}*/

.cab-equipo .vce-asset-background-simple-item {
    background-position: 50% 30% !important;
}

.miembro h2.tit-h2 {
    font-size: 3em;
}

.miembro h3.tit-h3 {
    font-weight: 300;
    font-size: 2em;
}

.miembro.aux .vce-row-container>.vce-row {
    min-height: 178px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* - - - - - - - - - CONTACTO - - - - - - - - - */

form .contacto .datos-usuario input {
    border-radius: 16px;
    border: 1px solid var(--texto);
    background: #f7f8f9;
    border-bottom: 3px solid var(--texto);
}

form .contacto .datos-usuario {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

form .contacto .datos-usuario>div {
    max-width: 49%;
}

form .contacto .datos-usuario>div label {
    display: inline-block;
    margin-bottom: 10px;
}

form .contacto .datos-usuario>.datos {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-height: 346px;
    margin-bottom: 5px;
}

form .contacto .datos-usuario>.datos>.small p,
form .contacto .datos-usuario>.mensaje>p,
form .contacto .aceptar-rgpd p {
    margin-bottom: 0;
}

form .contacto .datos-usuario>.mensaje textarea {
    resize: none;
    border-radius: 16px;
    border: 1px solid var(--texto);
    background: #f7f8f9;
    border-bottom: 3px solid var(--texto);
    max-height: 268px;
}

form .contacto .aceptar-rgpd .wpcf7-list-item {
    margin: 0;
}

form .contacto .let-peq {
    font-size: 1em;
    margin-top: 15px;
    margin-bottom: 25px;
}

form .contacto input[type="submit"] {
    border: solid 3px var(--negro);
    border-radius: 0px;
    background: none;
    color: var(--negro) !important;
    transition: all 0.4s ease;
    text-transform: uppercase;
    padding: 20px 30px;
    font-weight: 500;
    box-shadow: inset 0 0 0 0 var(--gris-2);
    transition: all 0.4s ease;
}

form .contacto input[type="submit"]:hover {
    background-color: var(--negro);
    color: var(--blanco) !important;
    border-radius: 50px;
    transition: all 0.4s ease;
    transform: translateY(-3px);
    box-shadow: 0 20px 20px rgb(0 0 0 / 15%);
    transition: all 0.4s ease;
}

.iconos-contacto img {
  width: 64px!important;
  height: auto;
}

/* - - - - - - - - - - - CTA CONTACTO - - - - - - - - - - */

.cta .radius>.vce-col-inner {
    border-radius: 0 16px 0px 0px;
    margin: -40px 0 0;
}

.cta .radius>.vce-col-inner img {
    border-radius: 0 16px 16px 0px;
}


/* - - - - - - - - - FOOTER - - - - - - - - - */


#footer-widgets .inside-footer-widgets {
    justify-content: space-between;
    margin-left: 0;
}

#footer-widgets aside {
    padding: 0;
}

#footer-widgets .footer-widget-1 {
    flex: 0 0 33%;
}

#footer-widgets .footer-widget-2 p {
    margin-bottom: 15px;
}

#footer-widgets .footer-widget-2,
#footer-widgets .footer-widget-3 {
    flex: 0 0 33%;
}

#footer-widgets .footer-widget-2 a,
#footer-widgets .footer-widget-3 a {
    text-decoration: none;
    border-bottom: 1px solid;
}

#footer-widgets .footer-widget-1 img {
    max-width: 250px !important;
}

#footer-widgets .footer-widget-3 p {
    margin-bottom: 60px;
}

#footer-widgets .footer-widget-3 img {
    width: 250px;
}

.copyright-bar {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.copyright-bar>div p {
    font-size: 0.8em;
    text-align: left;
    margin-bottom: 0;
    line-height: 1.5em;
}

.logos-kit-digital {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.logos-kit-digital img {
    display: block;
    max-width: 240px;
    padding: 0 30px;
}

/* - - - - - - - - - INFORMACIÓN LEGAL - - - - - - - - - */

.info-legal {
    padding: 80px 20px;
    margin-top: 100px;
}

.info-legal h1 {
    font-family: "Lexend", serif;
    font-size: 5em;
    line-height: 1.3em;
    color: var(--negro);
}

.info-legal h2 {
    font-family: "Lexend", serif;
    font-size: 4em;
    line-height: 1.3em;
    color: var(--negro);
}

.info-legal h3 {
    font-size: 2.5em;
    line-height: 1.3em;
    color: var(--negro);
}

.info-legal>ul>li,
.info-legal>ol>li,
.info-legal table {
    font-size: 1.7em;
    line-height: 1.5em;
    margin-bottom: 15px;
}

/*paginación*/

.wpsp-load-more {
    text-align: center;
    font-size: 18px;
}

.page-numbers {
    background-color: #ffffff;
    color: var(--azul);
    padding: 5px 8px;
    border-bottom: 3px solid var(--azul);
    margin: 0 5px;
}

.page-numbers:hover {
    color: var(--azul-claro);
    border-color: var(--azul-claro);
}

.page-numbers.current {
    background-color: var(--azul) !important;
    color: #ffffff !important;
}

.page-numbers.current:hover {
    background-color: var(--azul) !important;
    border-color: var(--azul) !important;
}

.next.page-numbers,
.prev.page-numbers {
    background-color: transparent !important;
    border-color: transparent !important;
}

.wp-show-posts-entry-meta {
    font-size: 13px;
    margin: 20px 0 20px 0;
}

/* BLOG */

.sidebar .widget {
  padding: 20px;
  border-radius: 6px;
  background: var(--blanco)!important;
  margin: 20px;
}


@media screen and (max-width: 1200px) {
    /* - - - - - - - - - MENÚ - - - - - - - - - */

    #mobile-header {
        background-color: var(--azul-claro);
    }

    #mobile-header .icon-menu-bars svg {
        fill: var(--blanco);
    }

    #mobile-header .menu li a {
        padding: 15px 0 !important;
        text-align: center;
    }

    .menu li.current-menu-item a::after {
        content: none;
    }
}

@media screen and (max-width: 1024px) {

    /* - - - - - - - - - CONTACTO - - - - - - - - - */

    form .contacto .datos-usuario {
        display: block;
    }

    form .contacto .datos-usuario>div {
        max-width: 100%;
    }

    form .contacto .datos-usuario>.datos {
        max-height: 100%;
    }

    form .contacto .datos-usuario>.datos>.small p {
        margin-bottom: 1.5em;
    }

}

@media screen and (max-width: 820px) {

    /* - - - - - - - - - ENCABEZADOS - - - - - - - - - */

    h1.tit-h1 {
        font-size: 4em;
    }

    h2.tit-h2 {
        font-size: 3em;
    }

    .circle-w .vce-text-block {
        padding: 35px 35px 35px 20px;
        border-radius: 0 0 100%;
    }

    .circle-w .vce-text-block h2 {
        text-align: left !important;
    }

    .wp-show-posts-columns .wp-show-posts-single:not(.wp-show-posts-masonry-block) {

        margin: 20px;
    }

    .next.page-numbers, .prev.page-numbers {
      display: block;
      margin: 10px;
    }

    .wp-show-posts-columns:not(.wp-show-posts-masonry) {
      gap: 0;
    }

    .wp-show-posts-columns {
      margin-left:0!important;

    }

    .wpsp-col-4 {
        width: 45%;
    }


    /* - - - - - - - - - EQUIPO - - - - - - - - - */

    .miembro h2.tit-h2 {
        font-size: 2.5em;
    }

    .miembro h2.tit-h2 br {
        display: none;
    }

    .miembro.aux .vce-row-container>.vce-row {
        min-height: auto;
    }

    /* - - - - - - - - - CONTACTO - - - - - - - - - */

    form .contacto .datos-usuario {
        display: flex;
    }

    form .contacto .datos-usuario>div {
        max-width: 49%;
    }

    form .contacto .datos-usuario>.datos {
        max-height: 346px;
    }

    form .contacto .datos-usuario>.datos>.small p {
        margin-bottom: 0;
    }

    /* - - - - - - - - - FOOTER - - - - - - - - - */

    .inside-footer-widgets {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #footer-widgets .footer-widget-1 {
        flex: 100%;
    }

    #footer-widgets .footer-widget-1 aside,
    .copyright-bar>div p {
        text-align: center;
    }

    #footer-widgets .footer-widget-2,
    #footer-widgets .footer-widget-3,
    #footer-widgets .footer-widget-4 {
        flex: 0 0 33.33%;
        margin-bottom: 0;
    }

    .copyright-bar {
        flex-direction: column;
    }

    .copyright-bar>div:first-child {
        padding-right: 0;
        text-align-last: center;
    }

    .copyright-bar>div:nth-child(2) {
        text-align: center;
        margin-top: 10px;
    }

    .logos-kit-digital img {
        max-width: 210px;
    }

    /* - - - - - - - - - INFORMACIÓN LEGAL - - - - - - - - - */

    .info-legal {
        padding: 40px 20px;
        margin-top: 0px;
    }

    .info-legal h1 {
        font-size: 4em;
    }

    .info-legal h2 {
        font-size: 3em;
    }

    .info-legal h3 {
        font-size: 1.75em;
    }

    .salto-pc {
        display: none;
    }

}

@media screen and (max-width: 768px) {
    .inside-header {
        flex-direction: row;
    }

    .site-header .header-image {
        width: 230px;
    }

    body.single-post #content {
        padding: 40px 20px;
    }

    .single-post .featured-image img {
        height: 250px;
    }
}

@media screen and (max-width: 600px) {

  table {
      display: block;
      overflow-x: auto;
      white-space: nowrap; /* Evita que las celdas se ajusten y hace scroll horizontal */
      -webkit-overflow-scrolling: touch; /* Scroll suave en móviles iOS */
    }


    .circle-w .vce-text-block {
        height: 255px;
    }

    /* - - - - - - - - - ENCABEZADOS - - - - - - - - - */

    h1.tit-h1 {
        font-size: 3.5em;
    }

    h2.tit-h2 {
        font-size: 2.5em;
    }

    p.dest {
        font-size: 2.2em;
    }

    span.dest {
        font-size: 1.5em;
    }


    /* - - - - - - - - - CONTACTO - - - - - - - - - */

    form .contacto .datos-usuario {
        display: block;
    }

    form .contacto .datos-usuario>div {
        max-width: 100%;
    }

    form .contacto .datos-usuario>.datos {
        max-height: 100%;
    }

    form .contacto .datos-usuario>.datos>.small p {
        margin-bottom: 1.5em;
    }

    /* - - - - - - - - - FOOTER - - - - - - - - - */

    .inside-footer-widgets {
        display: block;
    }

    #footer-widgets .footer-widget-3 p {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    #footer-widgets .footer-widget-3 img {
        width: 200px;
    }

    #footer-widgets .footer-widget-2,
    #footer-widgets .footer-widget-3,
    .redes-sociales {
        text-align: center;
    }

    .redes-sociales {
        margin-top: 25px;
    }

    #llamanospie {
        width: 100%;
        position: fixed;
        margin: auto;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        z-index: 59999;
        height: 50px;
        line-height: 50px;
        display: block !important;
    }

    #llamanospie a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-right: 10px;
        padding-left: 10px;
        color: #fff !important;
        background: #428bcaef;
        width: 100%;
        text-decoration: none !important;
        font-family: var(--primary-font);
        font-size: 18px;
    }

    .class-mv-ico {
        max-width: 20px;
        border-radius: 0;
        margin-right: 10px;
    }

    .logos-kit-digital img {
        max-width: 165px;
        padding: 10px 5px;
    }

    /* - - - - - - - - - INFORMACIÓN LEGAL - - - - - - - - - */

    .info-legal {
        padding: 40px 20px;
        margin-top: 0px;
    }

    .info-legal h1 {
        font-size: 3.5em;
    }

    .info-legal h2 {
        font-size: 2.5em;
    }

    .info-legal h3 {
        font-size: 1.5em;
    }

    .info-legal table {
        display: block;
        overflow-x: auto;
    }
}

/* TABLA DE CONTENIDOS */

#toc_container {
  background: #f9f9f9;
    border: 1px solid #aaa;
    display: block;
    text-align: center;
    border-radius: 10px;
    width: calc(100% - 40px) !important;
    margin: 20px auto;
    padding:0;
}
#toc_container .toc_title {
  font-size: 1.2rem;
  padding: 10px 10px 5px!important;
  border-bottom: 1px solid #aaa;
}

#toc_container.contracted .toc_title {
  border-bottom: 1px solid transparent;
}

#toc_container .toc_list {
  padding: 0 20px 20px!important;

}
