/*
 Theme Name:   Kaosystem
 Theme URI:    https://www.kaosystem.com/
 Description:  Tema hijo de GeneratePRess para Kaosystem
 Author:       Fede Gómez
 Author URI:   https://www.fedegomez.es
 Template:     generatepress
 Version:      0.1
*/

/* COLORES */
:root {
    --main-color: #00739f;
    --main-color-hover: rgba(0, 115, 159, 0.84);
    --accent-color: #b83a2c;
    --accent-color-hover: rgba(184, 58, 44, 0.84);
    --orange: #E87B40;
    --lighter-gray: #f0f0f0;
    --light-gray: #ccc;
    --medium-gray: #a0a0a0;
    --dark-gray: #666;
}

button:not(.rwmb-button),
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background),
.gb-button {
    padding: 10px 20px !important;
    border-radius: 5px !important;
    border: 0;
}

.one-container .site-content {
    margin-top: 100px;
    margin-bottom: 21px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 8%);
}

.nav-float-right .site-header {
    z-index: 1000;
    margin-top: 0px;
    position: fixed;
    top: 0px;
    width: 100%;
}

.header-shadow {
    -webkit-box-shadow: 0 1px 5px rgb(57 63 72 / 20%);
    box-shadow: 0 1px 5px rgb(57 63 72 / 20%);
}

.nav-float-right #site-navigation {
    margin-left: 10px;
    flex-grow: 1;
}


.main-navigation .inside-navigation {
    margin-left: 0;
    max-width: none;
}

.nav-float-right #site-navigation a {
    line-height: normal;
}

.nav-float-right .acceso {
    margin-left: auto;
}

.nav-float-right #primary-menu {
    flex-grow: 1;
}

.mobile-menu-control-wrapper .menu-toggle,
.has-inline-mobile-toggle #site-navigation.toggled {
    background-color: transparent;
}

.button-accent,
.acceso a {
    padding: 10px !important;
    background-color: var(--accent-color) !important;
    color: #fff !important;
    border-radius: 5px !important;
    ;
}

.button-accent:hover,
.button-accent:focus,
.button-accent:active,
.acceso a:hover,
.acceso a:focus,
.acceso a:active {
    background-color: var(--accent-color-hover) !important;
    cursor: pointer;
}

.menu-toggle {
    padding-right: 0;
}

.perfil-profesional .page-header .page-title {
    display: inline-block;
    margin-bottom: 0px;
}

.ficha-profesional .entry-content {
    display: flex;
    gap: 1em;
}

.nav-profesional {
    margin-bottom: 1em;
    border-bottom: 1px solid var(--lighter-gray);
}

.nav-profesional a {
    color: inherit;
    padding-bottom: 5px;
    margin-right: 20px;
    font-weight: bold;
}

.nav-profesional a:last-child {
    margin-right: 0;
}

.nav-profesional a:hover,
.nav-profesional a:focus,
.nav-profesional a:active {
    opacity: 0.9;
}

#resultados .profesional-wrap {
    border-bottom: 1px solid var(--lighter-gray);
}

.profesional-wrap {
    display: flex;
    padding: 1em;
}

.profesional-wrap .user-name {
    margin: 0;
}

.profesional-wrap .user-name a {
    color: inherit;
    line-height: 24px;
}

.titular {
    color: var(--dark-gray);
    font-size: 14px;
}

.logotipo {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.logotipo img,
.info>div img {
    max-width: none;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

.info>div>img {
    margin-right: 10px;
}

.info>div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.author .info>div:first-child {
    justify-content: space-between;
}

.info>div:first-child>div {
    display: flex;
    flex-direction: column;
}

.info p:last-child {
    margin-bottom: 0;
}

.labels {
    float: right;
    margin-left: auto;
}

.promo,
.premium,
.verificado {
    padding: 3px 7px;
    font-size: 0.8rem;
    color: #fff;
    border-radius: 3px;
    margin-right: 3px;
}

.promo {
    background-color: rgb(63, 153, 63);
}

.premium {
    background-color: var(--orange);
    margin-right: 0;
}

.verificado {
    background-color: var(--medium-gray);
    margin-right: 0;
    margin-left: 5px;
}

.secciones-profesional {
    width: 70%;
}

.secciones-profesional section {
    margin-bottom: 2em;
}

.contacto-profesional {
    width: 30%;
    display: flex;
}

.form-contacto {
    border: 1px solid var(--light-gray);
    border-radius: 3px;
    padding: 1em;
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    font-size: 15px;
}

.form-contacto h3 {
    font-weight: 600;
}

.form-contacto input[type=submit],
.form-contacto-movil input[type=submit] {
    width: 100%;
}

.ginput_container_consent {
    font-size: 15px;
}

.ginput_container_consent input {
    width: 0.79em;
    font-size: 15px;
}

.gfield_consent_description {
    border: 0 !important;
    overflow: auto !important;
}

.guardarMensaje .texto {
    top: 2px;
    position: relative;
}

/*.form-contacto .switch,
.form-contacto-movil .switch {*/
.form-contacto-profesional .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
}

/*.form-contacto .switch input,
.form-contacto-movil .switch input {*/
.form-contacto-profesional .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/*.form-contacto .slider,
.form-contacto-movil .slider {*/
.form-contacto-profesional .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-gray);
    -webkit-transition: .4s;
    transition: .4s;
}

/*.form-contacto .slider:before,
.form-contacto-movil .slider:before {*/
.form-contacto-profesional .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

/*.form-contacto input:checked+.slider,
.form-contacto-movil input:checked+.slider {*/
.form-contacto-profesional input:checked+.slider {
    background-color: var(--main-color);
}

/*.form-contacto input:focus+.slider,
.form-contacto-movil input:focus+.slider {*/
.form-contacto-profesional input:focus+.slider {
    box-shadow: 0 0 1px var(--main-color);
}

/*.form-contacto input:checked+.slider:before,
.form-contacto-movil input:checked+.slider:before {*/
.form-contacto-profesional input:checked+.slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

/* Rounded sliders */
/*.form-contacto .slider.round,
.form-contacto-movil .slider.round {*/
.form-contacto-profesional .slider.round {
    border-radius: 34px;
}

/*.form-contacto .slider.round:before,
.form-contacto-movil .slider.round:before {*/
.form-contacto-profesional .slider.round:before {
    border-radius: 50%;
}

.form-contacto-movil {
    display: none;
}

.detalles-contacto div {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--lighter-gray);
}

.detalles-contacto div img {
    margin-right: 10px;
}

.detalles-contacto a {
    color: inherit;
}

.ver-numero,
.enviar-whatsapp {
    cursor: pointer;
}

.detalles-contacto p {
    margin-top: 5px;
    margin-bottom: 0;
    color: var(--dark-gray);
    font-size: 0.89em;
}

@media (min-width:768px) {
    .form-movil h3 {
        font-size: 1em;
    }
}

@media (max-width:768px) {
    .secciones-profesional {
        width: 100%;
    }

    .contacto-profesional {
        width: 100%;
        bottom: 0;
        left: 0;
        position: fixed;

        /* Center the content */
        align-items: center;
        display: flex;
        justify-content: center;
    }

    .form-movil {
        border: 0;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100%;
        width: 100%;
        background-color: #fff;
        z-index: 99999999;
        overflow: auto;
        max-width: 100vw;
    }

    .form-movil h3 {
        margin-bottom: 0;
    }

    .form-movil textarea {
        height: 100px !important;
    }

    .form-movil .gform_wrapper.gravity-theme .ginput_complex span {
        margin-bottom: 0;
    }

    .contacto-profesional-content {
        /* Take available width */
        flex: 1;
    }

    .contacto-profesional .form-contacto {
        display: none;
    }

    .form-movil .modal-header {
        display: flex;
        justify-content: space-between;
    }

    .form-movil .modal-content {
        display: flex;
        align-items: center;
        height: 100vh;
        background-color: #fff;
        z-index: 99;
    }

    .x-cerrar {
        position: relative;
        width: 32px;
        height: 32px;
        opacity: 0.5;
    }

    .x-cerrar:hover {
        opacity: 1;
    }

    .x-cerrar:before,
    .x-cerrar:after {
        position: absolute;
        left: 15px;
        content: ' ';
        height: 33px;
        width: 2px;
        background-color: #333;
    }

    .x-cerrar:before {
        transform: rotate(45deg);
    }

    .x-cerrar:after {
        transform: rotate(-45deg);
    }

    .capa-movil {
        display: flex;
        align-items: center;
        gap: 0.3em;
        padding: 0.3em;
        background-color: var(--lighter-gray);
        max-width: 100vw;
    }

    .capa-movil .button {
        width: 33.3%;
        text-align: center;
        font-size: 13px;
        padding: 10px 0 !important;
    }

    .capa-movil .button img {
        filter: invert(1);
        vertical-align: middle;
    }
}

.rank-math-breadcrumb {
    font-size: 14px;
}

.rank-math-breadcrumb .last {
    font-weight: bold;
}

.resultados-trabajos {
    -moz-column-count: 4;
    column-count: 4;
    -moz-column-gap: 1rem;
    column-gap: 1rem;
    width: 100%;
    padding-top: 1rem;
}

.lista-trabajos {
    -moz-column-count: 3;
    column-count: 3;
    -moz-column-gap: 1rem;
    column-gap: 1rem;
    width: 100%;
}

.trabajo-realizado {
    -moz-column-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 1rem;
}

.resultados-trabajos a,
.lista-trabajos a {
    color: inherit;
}

.trabajo-grid-item img {
    border-radius: 16px;
    width: 100%;
}

.trabajo-realizado .entry-title {
    font-size: 18px;
}

.idiomas ul {
    list-style: none;
    display: flex;
    text-align: center;
    margin: 0;
}

.idiomas li {
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .nav-float-right #site-navigation a {
        line-height: 40px;
        display: inline;
    }

    .resultados-trabajos,
    .lista-trabajos {
        -moz-column-count: 2;
        column-count: 2;
    }

    .trabajo-realizado .entry-title {
        font-size: 16px;
    }
}

.generate-columns-container .generate-columns {
    padding-left: 0 !important;
}

.generate-columns-container .generate-columns .inside-article {
    padding: 0px 10px;
}

@media (max-width: 767px) {

    .generate-columns.mobile-grid-100,
    .grid-sizer.mobile-grid-100 {
        width: 50% !important;
    }
}

@media (max-width: 1400px) {
    .one-container .site-content {
        padding: 30px;
    }
}

#pagination {
    margin: 2em auto;
    font-size: 16px;
}

ul.page-numbers {
    list-style: none;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--lighter-gray);
    border-radius: 4px;
}

ul.page-numbers li:first-child span.current {
    border-radius: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

ul.page-numbers li:last-child span.current {
    border-radius: 4px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

ul.page-numbers a.page-numbers,
ul.page-numbers span.dots,
ul.page-numbers span.current {
    padding: 7px 10px;
    line-height: 16px;
    display: inline-block;
    color: #333;
}

ul.page-numbers span.dots {
    padding: 7px 0px;
    letter-spacing: -2px;
}

ul.page-numbers a:hover,
ul.page-numbers a:focus,
ul.page-numbers a:active {
    background-color: #eee;
}

ul.page-numbers span.current {
    background-color: var(--accent-color);
    color: #fff;
}

/* HOME */
body.home {
    background-color: #fff;
}

body.home .site-content {
    margin: 79px 0 0;
    box-shadow: none;
}

body.home .hero:before {
    transform: scaleX(-1);
}

.hero__izquierda {
    min-height: calc(100vh - 79px);
}

.trabajos-adyacentes {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 2em 0;
}

.trabajos-adyacentes img {
    width: 14px;
    vertical-align: text-top;

}