
.m3contacts_wrapper {
    margin-block-start: 0.3em;
}

.m3form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    font-size: 18px;
}

.m3form p {
    margin: 0;
}

.m3form input, .m3form textarea {
    background-color: transparent;
}

.m3form input[type="text"], .m3form input[type="email"], .m3form input[type="number"], .m3form textarea {
    padding: 0.7em 1em;
    outline: none;
    border-radius: 0;
}

form[name="nivel-superior"] input[type="text"], form[name="nivel-superior"] input[type="email"], form[name="nivel-superior"] input[type="number"], form[name="nivel-superior"] textarea {
    border: none;
    padding: 0.61em 0.8em;
}

p.submit-container.wp-block-button {
    text-align: center;
}

p.submit-container.wp-block-button button {
    width: 147px;
    color: var(--wp--preset--color--gray-900);
    background-color: var(--wp--preset--color--contrast);
    padding: 0.73em 1.2em;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
}

form[name="nivel-superior"] p.submit-container.wp-block-button button {
    color: #fff;
    background-color: var(--wp--preset--color--accent-1);
}



#form-newsletter {
    max-width: 800px;
    margin-bottom: 1.7em;
}

form[name="newsletter"].m3form {
    flex-direction: row;
    display: flex;
}

form[name="newsletter"].m3form > * {
    height: 48px;
    outline: none;
}

form[name="newsletter"].m3form input[type="text"], form[name="newsletter"].m3form input[type="email"], form[name="newsletter"].m3form input[type="number"], form[name="newsletter"].m3form textarea {
    padding: 0.65em 1em;
    border: 2px solid var(--wp--preset--color--gray-900);
    background-color: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

form[name="newsletter"].m3form *::placeholder {
    color: var(--wp--preset--color--gray-900);
}

@media screen and (min-width: 971px) {
body:not(.home) form[name="newsletter"].m3form input[type="text"], body:not(.home) form[name="newsletter"].m3form input[type="email"] {
    width: 250px
}
}

.home form[name="newsletter"].m3form input[type="text"], .home form[name="newsletter"].m3form input[type="email"] {
    width: calc((100% - 1em) / 2);
}

.home form[name="newsletter"].m3form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2em;
}




form[name="contacto"].m3form fieldset {
    padding: 0;
    border: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

form[name="contacto"].m3form fieldset > *, form[name="contacto"] textarea {
    color: #8A919B;
    background-color: #F4F5F7;
    border-color: #B8BDC6;
    font-size: 18px;
    font-weight: 500;
    width: 100%;
}

@media screen and (min-width: 971px) {
form[name="contacto"].m3form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto 1fr;
    grid-template-areas: 'campos mensaje' 'cta cta';
    column-gap: 18px;
    row-gap: 24px;
}
form[name="contacto"].m3form > fieldset {
    grid-area: campos;
}
form[name="contacto"].m3form > textarea {
    grid-area: mensaje;
}
form[name="contacto"].m3form .form-footer {
    grid-area: cta;
    display: flex;
    justify-content: space-between;
}
}

form[name="contacto"].m3form p.submit-container.wp-block-button button.wp-block-button__link.wp-element-button {
    background-color: #F05A00;
    font-weight: 800;
    padding: 0.9em 1.4em;
    width: fit-content;
}

.ff-policy {
    display: flex;
    gap: 12px;
    align-items: center;
}


@media screen and (max-width: 971px) {
.home form[name="newsletter"].m3form {
    row-gap: 1em;
}
.home form[name="newsletter"].m3form input[type="text"], .home form[name="newsletter"].m3form input[type="email"] {
    width: calc(100% - 30px);
}
form[name="newsletter"].m3form > * {
    height: 44px;
}
form[name="newsletter"].m3form p.submit-container.wp-block-button {
    margin-top: 12px;
}
.news-general {
    padding: 50px 25px !important;
}
.news-general form[name="newsletter"].m3form {
    flex-direction: column;
}
.ff-policy {
    line-height: 1.3;
    margin-bottom: 1em;
}
form[name="contacto"].m3form p.submit-container.wp-block-button button.wp-block-button__link.wp-element-button {
    width: 100%;
}
}




#m3f-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.75);
    z-index: 2;
    cursor: pointer;
}

#m3f-overlay div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    background: url(img/spinner.gif) no-repeat;
    background-size: 50px 50px;
    height: 50px;
    width: 50px;
}

#m3f-overlay-b {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.9);
    z-index: 2;
}

.m3f-success-msg {
    background-color: var(--wp--preset--color--contrast);
    color: #fff;
    font-weight: 500;
    font-size: 1.2em;
    padding: 1em 1.5em !important;
	max-width: 520px;
}




.fs-hidden {
    display: none;
}

.form-switch {
    margin-top: 0;
}



form[name="Newsletter"] {
    display: flex;
    gap: 10px;
    align-items: center;
	max-width: 600px;
    margin: auto;
}

form[name="Newsletter"] > * {
    display: flex;
}

form[name="Newsletter"] p {
    margin: 0;
}

form[name="Newsletter"] input {
    padding: 1.1em !important;
    margin: 0 !important;
    height: 3em;
    line-height: 1;
}

form[name="Newsletter"] input[type="submit"] {
    height: 3.25em;
    border-radius: 0.4em;
}

div#form-Newsletter .m3f-success-msg {
    margin: auto;
    text-align: center;
    background-color: var(--wp--preset--color--contrast);
    border-radius: 10px;
    font-size: 1.5em;
    line-height: 1.4;
}