/*
Theme Name: Theme Hijo 2022
Version: 1.0
Description:  Theme Hijo 2022 es un tema original para montar tu web en muy pocos clics. Su gran ventaja es que incluye patrones personalizados para las secciones más habituales de cualquier web (clientes, colaboradores, horario, etc.). Gracias a los patrones, el diseño se hace mucho más intuitivo y ahorrarás mucho más tiempo. Es un tema perfecto para blogs, webs de emprendedores y pymes, agencias y pequeñas tiendas, ya que es compatible con WooCommerce. Su diseño limpio y moderno adapta perfectamente tu contenido a cualquier dispositivo.
Template: twentytwentytwo
*/

/*----------------- Cambios a partir de aquí -------------------------------*/
h1,
h2,
h3,
h4 {
    font-family: kepler-3-display-variable, sans-serif !important;
}

html::before {
    background: #000;
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 420ms ease, visibility 0s linear 420ms;
    visibility: hidden;
    z-index: 2147483647;
}

body {
    opacity: 1;
    transition: opacity 420ms ease;
}

.wp-site-blocks {
    opacity: 1;
    transition: opacity 420ms ease;
}

body::before {
    background: #000;
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 420ms ease, visibility 0s linear 420ms;
    visibility: hidden;
    z-index: 2147483647;
}

html.child-theme-transition-booting,
html.child-theme-transition-booting body,
html.child-theme-transition-active,
html.child-theme-transition-active body {
    background: #000;
}

html.child-theme-transition-booting::before,
html.child-theme-transition-active::before {
    opacity: 1;
    pointer-events: auto;
    transition: none;
    visibility: visible;
}

html.child-theme-transition-loaded::before {
    transition: opacity 420ms ease, visibility 0s linear 420ms;
}

html.child-theme-transition-booting body,
html.child-theme-transition-active body {
    opacity: 0 !important;
    transition: none;
}

html.child-theme-transition-loaded body {
    transition: opacity 420ms ease;
}

html.child-theme-transition-booting .wp-site-blocks,
html.child-theme-transition-active .wp-site-blocks {
    opacity: 0;
    pointer-events: none;
    transition: none;
}

html.child-theme-transition-loaded .wp-site-blocks {
    transition: opacity 420ms ease;
}

html.child-theme-transition-booting body::before,
html.child-theme-transition-active body::before {
    opacity: 1;
    pointer-events: auto;
    transition: none;
    visibility: visible;
}

html.child-theme-transition-loaded body::before {
    transition: opacity 420ms ease, visibility 0s linear 420ms;
}

.child-theme-page-transition {
    background: #000;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 380ms ease, visibility 0s linear 380ms;
    visibility: hidden;
    z-index: 2147483646;
}

html.child-theme-transition-booting .child-theme-page-transition,
html.child-theme-transition-active .child-theme-page-transition {
    opacity: 1;
    transition: none;
    visibility: visible;
}

html.child-theme-transition-loaded .child-theme-page-transition {
    transition: opacity 380ms ease, visibility 0s linear 380ms;
}

html.child-theme-transition-booting::before,
html.child-theme-transition-active::before,
html.child-theme-transition-booting body,
html.child-theme-transition-active body,
html.child-theme-transition-booting .wp-site-blocks,
html.child-theme-transition-active .wp-site-blocks,
html.child-theme-transition-booting body::before,
html.child-theme-transition-active body::before,
html.child-theme-transition-booting .child-theme-page-transition,
html.child-theme-transition-active .child-theme-page-transition {
    transition: none !important;
}

.child-theme-portfolio-single__work-done {
    margin: 0 0 1rem;
}

.child-theme-portfolio-single__work-done > :first-child {
    margin-top: 0;
}

.child-theme-portfolio-single__work-done > :last-child {
    margin-bottom: 0;
}

.child-theme-portfolio-single-hero {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 47vw);
    column-gap: clamp(48px, 8vw, 160px);
    align-items: start;
    min-height: 80vh;
    min-height: 80svh;
    padding: clamp(24px, 3vw, 52px) clamp(24px, 5vw, 96px) clamp(22px, 1.5vw, 36px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.child-theme-portfolio-single-hero__headline {
    max-width: 560px;
}

.child-theme-portfolio-single-hero__headline .child-theme-portfolio-single__work-done {
    margin: 0;
}

.child-theme-portfolio-single-hero__headline .child-theme-portfolio-single__work-done p {
    color: #232323;
    font-family: kepler-3-display-variable, sans-serif;
    font-size: clamp(3.25rem, 3.35vw, 5rem);
    font-weight: 400;
    line-height: 1.12;
    margin: 0;
}

.child-theme-portfolio-single-hero__headline .child-theme-portfolio-single__work-done strong {
    font-weight: 700;
}

.child-theme-portfolio-single-hero__details {
    align-self: end;
    color: #232323;
    max-width: 880px;
    padding-bottom: clamp(8px, 3vh, 34px);
}

.child-theme-portfolio-single-hero__field {
    margin: 0 0 2rem;
}

.child-theme-portfolio-single-hero__field p,
.child-theme-portfolio-single-hero__description p {
    font-size: 0.88rem;
    line-height: 1.6;
}

.child-theme-portfolio-single-hero__field p {
    margin: 0;
}

.child-theme-portfolio-single-hero__field:first-child p:not(.child-theme-portfolio-single-hero__label) {
    text-transform: uppercase;
}

.child-theme-portfolio-single-hero__field p:last-child {
    font-weight: 600;
}

.child-theme-portfolio-single-hero__label {
    font-size: 0.78rem;
    line-height: 1;
    margin: 0 0 0.85rem;
    text-transform: uppercase;
}

.child-theme-portfolio-single-hero__description {
    margin: 2.25rem 0 0;
}

.child-theme-portfolio-single-hero__description p {
    margin: 0;
    max-width: 860px;
}

.child-theme-portfolio-single-hero__description p + p {
    margin-top: 1rem;
}

.child-theme-portfolio-single-hero__terms {
    margin-top: 2.8rem;
}

.child-theme-portfolio-single-hero__terms .wp-block-post-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.child-theme-portfolio-single-hero__terms .wp-block-post-terms__separator {
    display: none;
}

.child-theme-portfolio-single-hero__terms a {
    border: 1px solid #232323;
    color: #232323;
    display: inline-flex;
    font-size: 12px !important;
    line-height: 1;
    padding: 0.58rem 0.75rem;
    text-decoration: none;
    text-transform: lowercase;
}

.child-theme-portfolio-single-content > .wp-block-post-content {
    margin-top: 0;
    max-width: none;
}

.div-colors-left {
    --portfolio-row-color: #F5EE7B;
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.div-colors-left::after {
    background: var(--portfolio-row-color);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(.22, 1, .36, 1);
    z-index: 0;
}

.div-colors-left:hover::after,
.div-colors-left:focus-within::after {
    transform: scaleX(1);
}

.div-colors-left > * {
    position: relative;
    z-index: 1;
}

.kometak-core-global-template-kometak_header .kmt-css-sticky,
.kmt-main-menu-sticky-ready .kmt-main-menu-sticky-target {
    opacity: 0;
    pointer-events: none;
    position: fixed !important;
    right: auto !important;
    top: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    transform: translate3d(-50%, 14px, 0);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    visibility: hidden;
    width: min(400px, calc(100vw - 24px)) !important;
    z-index: 9999;
}

.kmt-main-menu-sticky-active .kmt-main-menu-sticky-target {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0);
    visibility: visible;
}

body.kmt-main-menu-sticky-active .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target.elementor-hidden-tablet,
body.kmt-main-menu-sticky-active .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target.elementor-hidden-mobile {
    display: flex !important;
}

body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target,
body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target > .e-con-inner,
body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .elementor-element-972c0b9,
body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .elementor-element-972c0b9 > .e-con-inner,
.kmt-main-menu-sticky-fallback {
    max-width: none !important;
    min-height: 32px;
    padding: 0 !important;
    width: 100% !important;
}

body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .elementor-element-972c0b9,
.kmt-main-menu-sticky-fallback {
    background: #232323 !important;
    border-radius: 999px !important;
}

body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .elementor-widget-container,
body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .kmt-custom-menu,
.kmt-main-menu-sticky-fallback .elementor-widget-container,
.kmt-main-menu-sticky-fallback .kmt-custom-menu {
    width: 100%;
}

body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .kmt-custom-menu > ul,
.kmt-main-menu-sticky-fallback .kmt-custom-menu > ul {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(16px, 5vw, 34px);
    justify-content: center;
    margin: 0 !important;
    min-height: 32px;
    padding: 0 31px !important;
    width: 100%;
}

body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .kmt-custom-menu > ul > li,
.kmt-main-menu-sticky-fallback .kmt-custom-menu > ul > li {
    margin: 0 !important;
}

body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .kmt-custom-menu > ul > li > a,
.kmt-main-menu-sticky-fallback .kmt-custom-menu > ul > li > a {
    color: #ffffff !important;
    display: block;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px;
    line-height: 1;
    padding: 10px 0 9px !important;
    text-transform: uppercase;
    white-space: nowrap;
}

body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .kmt-custom-menu > ul > li > a:hover,
body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .kmt-custom-menu > ul > li > a:focus,
.kmt-main-menu-sticky-fallback .kmt-custom-menu > ul > li > a:hover,
.kmt-main-menu-sticky-fallback .kmt-custom-menu > ul > li > a:focus {
    color: #f5ee7b !important;
}

@media (max-width: 900px) {
    .child-theme-portfolio-single-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        row-gap: 3rem;
        padding-top: 2rem;
    }

    .child-theme-portfolio-single-hero__headline .child-theme-portfolio-single__work-done p {
        font-size: clamp(2.6rem, 12vw, 4.25rem);
    }

    .child-theme-portfolio-single-hero__details {
        max-width: none;
        padding-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wp-site-blocks,
    body::before,
    .child-theme-page-transition {
        transition-duration: 0.01ms;
    }
}

@media (max-width: 420px) {
    body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .kmt-custom-menu > ul,
    .kmt-main-menu-sticky-fallback .kmt-custom-menu > ul {
        gap: 14px;
        padding: 0 18px !important;
    }

    body .kometak-core-global-template-kometak_header .kmt-main-menu-sticky-target .kmt-custom-menu > ul > li > a,
    .kmt-main-menu-sticky-fallback .kmt-custom-menu > ul > li > a {
        font-size: 11px !important;
    }
}
