/*
Theme Name: Opensalud
Author:
Author URI:
Theme URI: 
Tags: full-site-editing, block-patterns
Text Domain: opensalud
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 1.0.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Colors theme */
html:root {
    --wp--preset--color--black: #1D1D1E;
    --wp--preset--color--white: #FFFFFF;
    --wp--preset--color--grey-01: #FAFAFA;
    --wp--preset--color--grey-02: #F5F5F5;
    --wp--preset--color--grey-03: #EEEEEE;
    --wp--preset--color--grey-04: #E4E4E4;
    --wp--preset--color--grey-05: #C5C5C5;
    --wp--preset--color--grey-06: #8A8A8A;
    --wp--preset--color--error: #EC3333;
    --wp--preset--color--transparent: transparent;
    --wp--preset--color--main--blue: #3238C4;
    --wp--preset--color--hover--blue: #1A23F1;
    --wp--preset--color--electric--blue: #9CE9FA;
}
/* Gradients */
html:root {
    --wp--preset--gradient--primary-white: linear-gradient(0deg, rgba(255, 255, 255, 0.00) -27.39%, rgba(184, 233, 255, 0.34) 89.59%);
    --wp--preset--gradient--white-primary: linear-gradient(0deg, rgba(184, 233, 255, 0.34) -27.39%, rgba(255, 255, 255, 0.00) 89.59%);
}
/* Duotone */
html:root {
    --wp--preset--duotone--secondary-primary: #3238C4, #FFFFFF;
    --wp--preset--duotone--primary-contrast: #1A23F1, #FFFFFF;
}
/* Typo */
html:root {
    --wp--preset--font-family--system: "Space Grotesk", sans-serif;
    --wp--preset--font-family--serif: "Helvetica Neue", sans-serif;
    --wp--preset--font-family--monospace: "Helvetica Neue", sans-serif;
}

/* Fonts */
@font-face {
    font-display: swap;
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    src: url('./assets/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    src: url('./assets/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
}


html:root {
    --wp--preset--font-size--medium: 1.188rem;
    /* 19px */
    --wp--preset--font-size--small: 1rem !important;
    /* 16px */
    --wp--preset--font-size--extra--small: 0.75rem;
    /* 12px */
    --wp--preset--font-size--form-tag: 0.625rem;
    /* 10px */
    --wp--preset--font-size-h1: 2.813rem;
    /* 45px */
    --wp--preset--font-size-h2: 2.375rem;
    /* 38px */
    --wp--preset--font-size-h3: 2.063rem;
    /* 33px */
    --wp--preset--font-size-h4: 1.688rem;
    /* 27px */
    --wp--preset--font-size-h5: 1.5rem;
    /* 24px */
    --wp--preset--font-size-h6: 1.313rem;
}
html:root {
    --wp--preset--line-height--medium: 1.688rem;
    /* 27px */
    --wp--preset--line-height--small: 1.25rem;
    /* 20px */
    --wp--preset--line-height--extra--small: 0.75rem;
    /* 12px */
    --wp--preset--line-height--form-tag: 0.75rem;
    /* 12px */
    --wp--preset--line-height-h1: 2.813rem;
    /* 45px */
    --wp--preset--line-height-h2: 2.625rem;
    /* 42px */
    --wp--preset--line-height-h3: 2.25rem;
    /* 36px */
    --wp--preset--line-height-h4: 2rem;
    /* 32px */
    --wp--preset--line-height-h5: 2rem;
    /* 32px */
    --wp--preset--line-height-h6: 1.5rem;
    /* 24px */
}
html:root :where(.is-layout-flow) > * {
    margin-block-start: 0.5rem;
}
h1,
h2,
h3,
h4,
h5,
.has-serif-font-family{
    font-family: "Space Grotesk", sans-serif;
}
h1 span, h2 span, h3 span, h4 span, h5 span {
    color: var(--wp--preset--color--main--blue);
}
body h1,
.has-h-1-font-size{
    font-size: var(--wp--preset--font-size-h1)!important;
    line-height: var(--wp--preset--line-height-h1);
    font-weight: var(--wp--custom--weight-500);
}
body h2,
.has-h-2-font-size{
    font-size: var(--wp--preset--font-size-h2);
    line-height: var(--wp--preset--line-height-h2);
    font-weight: var(--wp--custom--weight-500);
}
body h3,
.has-h-3-font-size{
    font-size: var(--wp--preset--font-size-h3);
    line-height: var(--wp--preset--line-height-h3);
    font-weight: var(--wp--custom--weight-500);
}
body h4,
.has-h-4-font-size{
    font-size: var(--wp--preset--font-size-h4);
    line-height: var(--wp--preset--line-height-h4);
    font-weight: var(--wp--custom--weight-400);
}
body h5,
.has-h-5-font-size{
    font-size: var(--wp--preset--font-size-h5);
    line-height: var(--wp--preset--line-height-h5);
    font-weight: var(--wp--custom--weight-500);
}
body h6,
.has-h-6-font-size{
    font-size: var(--wp--preset--font-size-h6);
    line-height: var(--wp--preset--line-height-h6);
    font-weight: var(--wp--custom--weight-500);
}
body .has-m-font-size{
    font-size: var(--wp--preset--font-size--medium)!important;
    line-height: var(--wp--preset--line-height--medium);
    font-weight: var(--wp--custom--weight-400);
}
body .has-s-font-size{
    font-size: var(--wp--preset--font-size--small)!important;
    line-height: var(--wp--preset--line-height--small);
    font-weight: var(--wp--custom--weight-400);
}
body .has-xs-font-size{
    font-size: var(--wp--preset--font-size--extra--small);
    line-height: var(--wp--preset--line-height--extra--small);
    font-weight: var(--wp--custom--weight-400);
}
body .has-form-tag-font-size{
    font-size: var(--wp--preset--font-size--form-tag);
    line-height: var(--wp--preset--line-height--form-tag);
    font-weight: var(--wp--custom--weight-500);
}
body p {
    font-size: var(--wp--preset--font-size--medium);
    line-height: var(--wp--preset--line-height--medium);
    font-weight: var(--wp--custom--weight-400);
}
html:root {
    --wp--custom--weight-400: 400;
    --wp--custom--weight-500: 500;
    --wp--custom--weight-700: 700;
}
/* Design */
html:root {
    --wp--custom--layout--content-size: 1600px;
    --wp--custom--layout--wide-size: 1800px;
}
html:root :where(.wp-element-button, .wp-block-button__link) {
    border-width: 2px;
    box-shadow: none;
}
html:root :where(.wp-element-button, .wp-block-button__link):hover {

}
html:root :where(.wp-block-button.is-style-outline--2 .wp-block-button__link),
html:root :where(.wp-block-button.is-style-outline .wp-block-button__link){

}
html:root :where(.wp-block-button.is-style-outline--2 .wp-block-button__link):hover,
html:root :where(.wp-block-button.is-style-outline .wp-block-button__link):hover {

}
html:root :where(.wp-element-button:hover, .wp-block-button__link:hover) {

}
.alignfull {
    margin-left: calc(calc(50% + 8px) - 50vw);
    margin-right: calc(calc(50% + 8px) - 50vw);
    max-width: 100vw;
    width: auto;
}
section{
    margin: 0 !important;
    padding: 0;
    border: none;
}
.has-text-align-center{
    text-align: center;
}
.has-text-align-left{
    text-align: left;
}
.has-text-align-right{
    text-align: right;
}
.has-text-align-justify{}
/* Spacing */
html:root {
    --wp--preset--spacing--60: 3.75rem;
    --wp--preset--spacing--50: 3.125rem;
    --wp--preset--spacing--40: 2.5rem;
    --wp--preset--spacing--30: 1.875rem;
    --wp--preset--spacing--20: 1.125rem;
    --wp--preset--spacing--13: 0.813rem;
}
/* Light mode */
html::backdrop,
html:root {
    --sans-font:
            -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
            "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
            "Helvetica Neue", sans-serif;
    --mono-font:
            Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    --standard-border-radius: 30px;
    --standard-border-radius-button: 300px;
    --bg: var(--wp--preset--color--white);
    --accent-bg: var(--wp--preset--color--grey-04);
    --text: var(--wp--preset--color--black);
    --text-light: var(--wp--preset--color--main--blue);
    --border: var(--wp--preset--color--grey-06);
    --accent: var(--wp--preset--color--grey-06);
    --code: var(--wp--preset--color--grey-06);
    --preformatted: var(--wp--preset--color--grey-05);
    --marked: var(--wp--preset--color--grey-06);
    --disabled: #efefef;
    --wp--preset--color--base: var(--wp--preset--color--white);
}
/* End light mode */

/* Dark mode */
@media (prefers-color-scheme: dark) {
    html::backdrop,
    html:root {
        color-scheme: dark;
        --bg: var(--wp--preset--color--white);
    }
}
/* End dark mode */

/* Styles intended only for the front.*/
html {
    scroll-behavior: smooth;
}
@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
html body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    grid-template-columns:
        1fr min(var(--wp--custom--layout--content-size), calc(100% - 56px)) 1fr;
    color: var(--wp--preset--color--black);
    font-weight: var(--wp--custom--weight-400);
    overflow-x: hidden;
}
img,
video {
    opacity: 1;
}
article,
dialog,
fieldset {
    border: none;
}
body a:where(:not(.wp-element-button)),
body a:where(:not(.wp-element-button)):visited {
    color: var(--wp--preset--color--main--blue);
}
main {
    padding-top: 0;
    grid-column: 1 / -1;
}
body .wp-block-button__link, .wpcf7 input[type="submit"], body .is-style-mobilenav .wp-block-button__link{
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.513rem 1.2rem;
    border-radius: var(--standard-border-radius-button);
    background-color: var(--wp--preset--color--main--blue);
    border: 1px solid var(--wp--preset--color--main--blue);
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--small);
    font-weight: var(--wp--custom--weight-700);
    transition: all 200ms ease-out;
}
body .wp-block-button__link:hover{
    background-color: var(--wp--preset--color--hover--blue);

}
body .is-style-secondary .wp-block-button__link{
    background-color: var(--wp--preset--color--grey-03);
    color: var(--wp--preset--color--main--blue);
    box-shadow: 0 14px 25px 0 rgba(13, 39, 80, 0.25);
    border:none;
}
body .is-style-secondary .wp-block-button__link:hover{
    background-color: var(--wp--preset--color--grey-05);
    color: var(--wp--preset--color--main--blue);
}
body .is-style-secondary2 .wp-block-button__link{
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    border: 1px solid var(--wp--preset--color--white);
}
body .is-style-secondary2 .wp-block-button__link:hover{
    background-color: var(--wp--preset--color--grey-03);
}
body .is-style-tertiary .wp-block-button__link{
    background-color: transparent;
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--white);
}
body .is-style-tertiary .wp-block-button__link:hover{
    background: rgba(54, 54, 54, 0.11);
}
body .is-style-hyperlinkM .wp-block-button__link, body .is-style-hyperlinkS .wp-block-button__link{
    background-color: transparent;
    color: var(--wp--preset--color--main--blue);
    text-decoration: underline;
    border: none;
    text-underline-offset: 25%;
    text-decoration-thickness: 11.5%;
}
body .is-style-hyperlinkM .wp-block-button__link{
    font-size: var(--wp--preset--font-size--medium);
    font-weight: var(--wp--custom--weight-700);
}
body .is-style-hyperlinkS .wp-block-button__link{
    font-size: var(--wp--preset--font-size--small);
    font-weight: var(--wp--custom--weight-400);
}
body .is-style-hyperlinkM .wp-block-button__link:hover, body .is-style-hyperlinkS .wp-block-button__link:hover{
    color: var(--wp--preset--color--hover--blue);
}
body .is-style-mobilenav .wp-block-button__link:hover{
    background-color: var(--wp--preset--color--main--blue);
    border: 1px solid var(--wp--preset--color--main--blue);
}

body .is-layout-flex{
    align-items: start;
}
body .wp-block-button.is-style-outline .wp-block-button__link{
    border-color: var(--text);
    color: var(--text);
}
.wp-block-button .button-icon-text{
    font-size: 12px;
    line-height: 22px;
}
body .wp-block-button__link img{
    margin-right: 4px;
}
.button.button-secondary{
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    border: 2px solid var(--wp--preset--color--black);
    padding: 10px 16px;
}
.button.button-tab{
    color: var(--wp--preset--color--black);
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid var(--wp--preset--color--grey-med);
    background: var(--wp--preset--color--grey-light);
    box-shadow: 0 0 10px 0 rgba(52, 64, 84, 0.10);
}
.button.button-tab:hover,
.button.button-tab.active{
    background-color: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--grey-med);
}
.button.button-tab img{
    margin-right: 0.5rem;
}
body .wp-block-image.aligncenter{
    display: flex;
    justify-content: center;
}
body .wp-block-image.alignright{
    display: flex;
    justify-content: end;
}
.wp-block-columns:has(> .wp-block-column:only-child) {
    display: flex;
    justify-content: center;
}
body .wp-block-media-text>.wp-block-media-text__content{
    padding: 0;
}
body .wp-block-media-text>*:nth-child(1){
    padding-right: 3.75rem;
}
body .wp-block-media-text>*:nth-child(2){
    padding-left: 3.75rem;
}
.wp-block-gallery.has-nested-images:not(.is-cropped){
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    aspect-ratio: 3 / 2;
    max-width: 1200px;
    margin: auto;
}
.wp-block-gallery .wp-block-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
/* TOP BAR*/
.top-bar{
    height: 26px;
    background-color: var(--wp--preset--color--grey-03);
    grid-column: 1 / -1;
}
.list-lang-opensalud{
    margin: 0 auto;
    list-style: none;
    text-align: right;
    max-width: var(--wp--custom--layout--content-size);
    display: flex;
    justify-content: end;
    padding: 0;
    height: 26px;
    align-items: center;
    gap: 14px;

}
.list-lang-opensalud li {
    display: flex;
    column-gap: 14px;
}
.lang-item a {
    text-transform: uppercase;
    color: #6D6D7D;
    font-size: var(--wp--preset--font-size--extra--small);
    font-weight: var(--wp--custom--weight-700);
    line-height: var(--wp--preset--line-height--small);
    text-decoration: none;
}
.list-lang-opensalud .current-lang a {
    color: var(--wp--preset--color--main--blue);
}
.list-lang-opensalud a:hover {
    color: var(--wp--preset--color--white);
}
/* Header */
.header-general {
    display: grid;
    grid-template-columns: none;
    border: 0;
    padding: 0 20px;
}
.inner-header-general {
    display: flex;
    align-items: center;
    padding: 24px 0;
    max-width: var(--wp--custom--layout--content-size);
    margin: 0 auto;
    justify-content: space-between;
    width: 100%;
}

.menu ul.nav {
    display: flex;
    list-style: none;
    padding-inline-start: 0;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
}

.header-general .menu-main {
    display: flex;
    justify-content: flex-end;
    gap: 39px;
    flex: 1;
    align-items: center;
}

.header-general .logo-header {
    margin-right: 2.5rem;
}

.header-general .menu-second,
.header-general .menu-ctas {
    margin-left: 5px;
    margin-right: 5px;
}

.header-general .menu a {
    text-decoration: none;
}

.header-general .menu a:not(.cabecera-cta a) {
    color: var(--wp--preset--color--main--blue);
    font-size: var(--wp--preset--font-size--small);
    font-weight: var(--wp--custom--weight-700);
    line-height: var(--wp--preset--line-height--small); /* 125% */
    text-transform: uppercase;
}
.header-general .menu .nav .page_item:not(:last-child),
.header-general .menu .nav .menu-item:not(:last-child) {
    margin-right: 39px;
}

/* End Header */
/*Forms*/
.wpcf7 label {
    font-size: var(--wp--preset--font-size--form-tag);
    line-height: var(--wp--preset--font-size--form-tag);
    color: var(--wp--preset--color--grey-06);
}
.wpcf7  .form-label {
    margin-bottom: 4px;
    display: inline-block;
}
.wpcf7 input, .wpcf7 textarea, .wpcf7 select {
    font-size: var(--wp--preset--font-size--extra--small);
    padding: 10px 9px;
    background-color: var(--wp--preset--color--grey-01);
    border-radius: 4px;
    border: none;
    width: 100%;
}
.wpcf7 input[type="submit"]{
    background-color: var(--wp--preset--color--main--blue);
    border: none;
    color: var(--wp--preset--color--white);
    width: 100%;
    margin: 0;
}
.wpcf7 .wpcf7-submit::after{
    content: url("./assets/img/arrow.png");
    width: 11px;
    height: 9px;
}
.wpcf7 input[type="checkbox"]{
    width: 13px;
    height: 13px;
    background-color: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--grey-06);
    border-radius: 2.5px;
}
.wpcf7 input[type="checkbox"]:checked {
    background: url("./assets/img/checked.svg") no-repeat;
    background-size: cover;
    border: none;
}
.wpcf7  input[type=checkbox]:checked::after {
    display: none;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border: 1px solid var(--wp--preset--color--grey-06);
}
.wpcf7 input.wpcf7-not-valid {
    border: 1px solid var(--wp--preset--color--error);
}
.wpcf7 .wpcf7-not-valid-tip {
    color: var(--wp--preset--color--error);
    font-weight: 500;
}
form.wpcf7-form{
    display: flex;
    flex-direction: column;
    row-gap: 7px;
}
.wpcf7 form .wpcf7-response-output,.wpcf7 form.spam .wpcf7-response-output,.wpcf7 form.sent .wpcf7-response-output,.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output,.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border: 1px solid var(--wp--preset--color--grey-05);
    display: flex;
    padding: 8px 24px;
    align-items: center;
    gap: 12px;
}
.wpcf7 form.sent .wpcf7-response-output::before{
    content: url("./assets/img/check-circle.svg");
    height: 24px;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output{
    content: url("./assets/img/alert-triangle.svg");
    height: 24px;
}
.privacy-text{
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--black);
}
.wpcf7 label.privacy-accept span, .wpcf7 label.privacy-accept a {
    color: var(--wp--preset--color--black);
    font-size: var(--wp--preset--font-size--extra--small);
}
.wpcf7 label.privacy-accept a {
    text-decoration: none;
    font-weight: 700;
}
span.wpcf7-list-item {
    margin-left: 0;
}
/*Footer*/
.footer-general .inner-footer-general {
    max-width: var(--wp--custom--layout--content-size);
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 31px;
    align-self: stretch;
}
.footer-general{
    grid-column: 1 / -1;
    background-color: var(--wp--preset--color--black);
    border: none;
}
.footer-menu-top{
    display: flex;
    justify-content: space-between;
}
.footer-menu-top nav .navbar-nav{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 19px;
    padding: 40px 0;
    border-top: 1px solid var(--wp--preset--color--grey-03);
    margin: 0;
}
footer nav .navbar-nav li {
    text-transform: uppercase;
}
footer nav .navbar-nav li:hover {
    transform: translateX(3px);
    transition-duration: .5s;
}
footer nav .navbar-nav li a {
    text-decoration: none;
    font-size: var(--wp--preset--font-size--extra--small);
    line-height: var(--wp--preset--font-size--extra--small);
    color: var(--wp--preset--color--grey-03);
    font-weight: var(--wp--custom--weight-400);
    letter-spacing: 1.25px;
}
footer img {
    border-radius: 0;
}
.menu-footer{
    min-width: 324px;
}
.footer-bottom-copyright, .footer-bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom-copyright .menu-footer .navbar-nav{
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 26px;
    align-self: stretch;
    margin: 0;
}
.copyright {
    display: flex;
    align-items: center;
    gap: 17px;
    color: var(--wp--preset--color--grey-03);
    font-size: var(--wp--preset--font-size--form-tag);
    line-height: var(--wp--preset--font-size--form-tag);
}
.footer-bottom-copyright{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
}
.footer-general {
    padding: 62px 20px;
}
.footer-general .logos-list {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.footer-general .logos-list img {
    max-height: 56px;
    object-fit: contain;
    width: auto;
}
.footer-general ul {
    list-style-type: none;
    padding-left: 0;
}
.footer-general .list-rrss{
    display: flex;
    align-items: center;
    gap: 31px;
    padding: 0;
    margin: 0;
}
/*Menú*/
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    width: 25px;
    height: 25px;
    position: relative;
    padding: 0;
    margin: 0;
    align-self: self-start;
}
.menu-toggle .hamburger,
.menu-toggle.open .hamburger::before,
.menu-toggle.open .hamburger::after {
    position: absolute;
    width: 100%;
    height: 2.25px;
    background: var(--wp--preset--color--main--blue);
    transition: all 0.3s ease;
    align-self: self-start;
}
.menu-toggle .hamburger {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--wp--preset--color--main--blue);
    transition: all 0.3s ease;
    border-radius: 10px;
}
.menu-toggle .hamburger:nth-child(1) {
    top: 0;
}
.menu-toggle .hamburger:nth-child(2) {
    top: 10px;
}
.menu-toggle .hamburger:nth-child(3) {
    top: 20px;
}

.menu-toggle.open .hamburger:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.menu-toggle.open .hamburger:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .hamburger:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

.main-menu {
    display: none;
}
.main-menu.open {
    display: block;
}

.menu-item-has-children {
    position: relative;
}
.submenu-toggle {
    cursor: pointer;
    margin-left: 5px;
}
.menu-item-has-children ul {
    display: none;
    position: absolute;
    top: calc(100%);
    left: -100%;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(6.5px);
    list-style: none;
    padding: 40px 32px;
    margin: 0;
    z-index: 100;
}
.menu-item-has-children.submenu-open > ul {
    display: flex;
    row-gap: 16px !important;
    flex-direction: column;
    backdrop-filter: blur(6.5px);
}
.sub-menu .menu-item{
    min-width: 125px;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}
.arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.menu-item-has-children.open > .submenu-toggle .arrow-icon {
    transform: rotate(180deg);
}
/* Movimiento de item al hacer hover */
.menu-main .menu-item {
    transition: transform 0.2s ease;
}
.menu-main .menu-item:hover:not(.menu-item.menu-item-has-children:hover) {
    transform: translateX(3px);
    transition-duration: .5s;
}
@media(min-width: 1230px) {
    .menu-toggle {
        display: none;
    }
}
@media(min-width: 768px) {
    .menu-item-has-children:hover > ul {
        display: block;
        backdrop-filter: blur(6.5px);
    }
    .header-general {
        background-color: transparent;
        z-index: 2;
        position: absolute;
        top: 22px;
        width: 100%;
        transition: background-color 0.3s ease-in-out;
        box-shadow: none;
        padding: 0 60px;
    }

    .header-general.fixed {
        position: fixed;
        top: 0;
        z-index: 999;
        background: rgba(243, 243, 243, 0.78);
        backdrop-filter: blur(8.5px);
        transition: background-color 0.3s ease-in-out;

    }
}
.logo-header img {
    max-height: 33px;
}
.cabecera-cta {
    width: fit-content;
}
.contenedor-login-link {
    display: none;
}
/*404 pÃ¡gina*/
.contenedor-error404  {
    background-color: var(--wp--preset--color--grey-04);
    display: flex;
    padding: 110px 0px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.contenido-404{
    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 29px;
    max-width: 800px;
    margin: 0 auto;
}
.titulo-404 {
    font-size: 115px;
    font-style: normal;
    font-weight: var(--wp--custom--weight-700);
    text-align: center;
    margin-bottom: 15px;
    color: var(--wp--preset--color--black);

}
.texto-404{
    color: var(--wp--preset--color--main--blue);
}
.error404 .contenedor-cta {
    justify-content: center;
    display: flex;
}
.contenedor-error404 .contenido-404 .wp-block-button a {
    color: var(--wp--preset--color--white);
}
body>footer {
    margin-top: 0;
}
main .single-post, .privacy-policy .single-page, .single main .single-post p, .privacy-policy .single-page h2 {
    max-width: var(--wp--custom--layout--content-size);
    margin: 0 auto;
}
.header-single {
    background-repeat: no-repeat;
    background-position-x: center;
    width: max-content;
    max-width: var(--wp--custom--layout--content-size);
    margin: 0 auto;
}
.single main .single-post p {
    margin: 0 !important;
}
/* Por defecto oculto en pantallas grandes */
.switcher-lang-opensalud-mvl {
    display: none;
}
/* Responsive */

@media only screen and (min-width: 1231px) {
    .top-bar {
        padding: 0 60px;
    }
}

@media only screen and (max-width: 1230px) {
    html:root {
        --wp--preset--font-size--medium: 1.188rem;
        /* 19px */
        --wp--preset--font-size--small: 1rem;
        /* 16px */
        --wp--preset--font-size--extra--small: 0.75rem;
        /* 12px */
        --wp--preset--font-size-h1: 2rem;
        /* 32px */
        --wp--preset--font-size-h2: 1.75rem;
        /* 28px */
        --wp--preset--font-size-h3: 1.75rem;
        /* 28px */
        --wp--preset--font-size-h4: 1.688rem;
        /* 27px */
        --wp--preset--font-size-h5: 1.313rem;
        /* 21px */
    }
    html:root {
        --wp--preset--line-height--medium: 1.688rem;
        /* 27px */
        --wp--preset--line-height--small: 1.25rem;
        /* 20px */
        --wp--preset--line-height--extra--small: 0.75rem;
        /* 12px */
        --wp--preset--line-height-h1: 2.25rem;
        /* 36px */
        --wp--preset--line-height-h2: 2rem;
        /* 32px */
        --wp--preset--line-height-h3: 1.813rem;
        /* 29px */
        --wp--preset--line-height-h4: 1.688rem;
        /* 27px */
        --wp--preset--line-height-h5: 1.438rem;
        /* 23px */
        --wp--preset--line-height-h6: 1.438rem;
        /* 23px */
        --standard-border-radius: 15px;
    }
    .alignfull {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    p.has-m-font-size{
        font-size: var(--wp--preset--font-size--medium) !important;;
    }
    /*Buttons*/
    a.wp-block-button__link {
        justify-content: center;
    }
    .wp-block-buttons>.wp-block-button {
        width: 100%;
    }
    .menu ul.nav {
        align-items: flex-start;
        flex-direction: column;
    }
    .header-general .menu-main{
        display: none;
    }
    .menu-main.open {
        display: block;
        position: absolute;
        top: 116px;
        z-index: 100;
        background-color: var(--wp--preset--color--main--blue);
        left: 0;
        right: 0;
        gap: 40px;
        padding: 35px 20px;
    }
    .header-general .menu a:not(.cabecera-cta a):not(.sub-menu a) {
        color: var(--wp--preset--color--white);
        font-size: var(--wp--preset--font-size-h4);
        line-height: var(--wp--preset--line-height-h4);
        font-weight: var(--wp--custom--weight-400);
    }
    .header-general .menu .menu-item .sub-menu a {
        color: var(--wp--preset--color--white);
        font-size: var(--wp--preset--font-size--medium);
        line-height: var(--wp--preset--line-height--medium);
        font-weight: normal;
    }
    .header-general .menu-main {
        flex-direction: column;
    }
    .inner-header-general {
        justify-content: space-between;
        padding: 17px 0 11px 0;
    }
    .logo-header img {
        max-height: 25px;
    }
    .arrow-icon {
        filter: brightness(0) invert(1);
    }
    .menu ul.nav{
        padding-top: 38px;
        gap: 31px;
    }
    .menu-main .menu-item:not(.sub-menu .menu-item) {
        border-bottom: 1px solid #5B61DF;
        width: 100%;
        text-align: left;
        padding-bottom: 16px;
    }
    .menu-item-has-children {
        position: relative;
    }
    .menu-item-has-children ul {
        position: static;
        border-radius: 0;
        background: none;
        backdrop-filter: none;
        padding: 0;
    }
    .menu-item-has-children > .submenu-toggle .arrow-icon {
        position: absolute;
        top: 4px;
        right: 0;
        height: 10px;
        padding: 0 10px;
        width: 30px;
    }
    .menu-main.open {
        height: calc(100% - 49px);
        display: flex;
        justify-content: space-between;
        position: fixed;
        top:49px;
        bottom: 0;
        left: 0;
        right: 0;
        overflow-y: hidden;
        scrollbar-width: none;
    }
    .menu-main.open nav{
        width: 100%;
    }
    .menu-item-has-children.submenu-open > ul {
        margin-left: 11px;
        margin-bottom: 15px;
        margin-top: 31px;
    }
    .header-general{
        position: sticky;
        top: 0;
        z-index: 999;
        height: 49px;
    }
    body.menu-open {
        overflow: hidden;
    }
    .contenedor-login-hamburger {
        display: flex;
        gap: 24px;
    }
    .contenedor-cta-lang, .cabecera-cta{
        width: 100%;
    }
    .contenedor-cta-lang{
        display: flex;
        flex-direction: column;
        gap: 50px;
    }
    .cabecera-cta .wp-block-button__link{
        border-radius: 300px;
        background: var(--wp--preset--color--grey-03);
        box-shadow: 0px 14px 25px 0px rgba(13, 39, 80, 0.25);
        color: var(--wp--preset--color--main--blue);
    }
    .contenedor-login-link {
        display: block;
    }
    .contenedor-login-link img {
        border-radius: 0;
        max-height: 25px;
    }
    .top-bar{
        display: none;
    }
    .header-general .menu  .switcher-lang-opensalud-mvl ul a {
        font-size: var(--wp--preset--font-size-h6) !important;
        line-height: var(--wp--preset--line-height-h6) !important;
        font-weight: var(--wp--custom--weight-700) !important;
    }
    .current-lang, .switcher-lang-opensalud-mvl li a:hover {
        border-top: 2px solid var(--wp--preset--color--white);
    }
    .switcher-lang-opensalud-mvl{
        display: flex;
    }
    section .wp-block-buttons {
        row-gap: 12px;
    }
}
@media only screen and (max-width: 940px) {
    /*Footer*/
    .menu-footer{
        min-width: 100%;
    }
    .footer-menu-top {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 25px;
    }
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 43px;
        align-self: stretch;
    }
    .footer-bottom-copyright .menu-footer .navbar-nav {
        justify-content: center;
        align-items: flex-start;
        align-content: flex-start;
        gap: 7px 26px;
        align-self: stretch;
        flex-wrap: wrap;
    }
    .copyright {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 7px;
        align-self: stretch;
    }
}
