/*
==================================================================
Theme Name: Imaqua
Version: 1.0
Author: Neobrand®
Author URI: https://neobrand.com
==================================================================
*/

:root {
    --primary: var(--wp--preset--color--primary);
    --secondary: var(--wp--preset--color--secondary);
    --dark: var(--wp--preset--color--dark);
    --black: var(--wp--preset--color--black);
    --white: var(--wp--preset--color--white);
    --font: var(--wp--preset--font-family--be-vietnam-pro);
}

::selection {
    background-color: var(--primary);
    text-shadow: none;
    color: white;
}
::placeholder {
    color: white;
}
body, p, li, span, h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    hyphens: auto !important;
    overflow-wrap: unset !important;
}
:root :where(.is-layout-flow) > h1,
:root :where(.is-layout-flow) > h2,
:root :where(.is-layout-flow) > h3,
:root :where(.is-layout-flow) > h4,
:root :where(.is-layout-flow) > h5,
:root :where(.is-layout-flow) > h6 {
    font-family: var(--font);
    margin-block-end: 3.5rem;
}
body {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.3;
    background-color: white;
    color: var(--dark);
}
img{
    max-width: 100%;
}

/*.post-template-default {
    margin-top: 150px;
}*/
.titlecontacto{
    font-size: 30px !important;
    font-weight: 200 !important;
    margin-bottom: 50px !important;
}

.wp-site-blocks {
    width: 100%;
    overflow-x: hidden;
}

.wp-site-blocks, .alignfull > *{
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
}

:root :where(.is-layout-constrained) > * {
    margin-block-start: 80px;
    margin-block-end: 0;
}

.wp-block-group,
.wp-block-columns {
    padding-top: 4vw;
    padding-bottom: 4vw;
}

.wp-block-post-content  > :where(.wp-block-group):first-of-type,
.wp-block-post-content  > :where(.wp-block-columns):first-of-type,
.wp-site-blocks > :where(.wp-block-group):first-of-type,
.wp-site-blocks > :where(.wp-block-columns):first-of-type {
    padding-top: 0;
}


.wp-site-blocks > :where(:not(.alignwide):not(.alignfull)) {
    width: 100% !important;
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.alignwide {
    width: 100%;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    position: relative;
}

.block-editor-block-list__layout.is-root-container > .alignfull{
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

h1{
    font-size: 60px !important;
    line-height: 1.2em;
}

p {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.5em;
}

.wp-block-latest-posts__featured-image{
    margin-bottom: 1em;
}

/* Botones */

.wp-block-button__link,
.wpcf7 input[type="submit"] {
    font-family: var(--font);
    background-color: var(--primary);
    color: white;
    padding: 1rem 4.25rem;
    border: 2px solid var(--primary);
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0.04em;
    transition: all 250ms ease;
}

.wp-block-button__link:hover{
    background-color: white;
    color: var(--primary) !important;
    cursor: pointer;
}

.wpcf7 input[type="submit"]{
    background-color: white !important;
    color: var(--primary);
}

.has-primary-color.has-white-background-color:hover,
.wpcf7 input[type="submit"]:hover{
    border-color: white;
    color: white !important;
    background-color: var(--primary) !important;
    cursor: pointer;
}


/* Enlaces */

a {
    color: currentColor;
    text-decoration: none;
    transition: all 250ms ease;
}
a:hover {
    text-decoration: none;
}
p a:hover, form a:hover{
    color: var(--primary);
}

.overflow-hidden{
    overflow: hidden;
}

/*Header*/

#mobile-menu {
    display: none;
}

#header {
    width: 980px;
    height: 80px;
    border-radius: 0px 50px 50px 50px;
    overflow: hidden;
    transition: width 560ms ease;
    background: linear-gradient(90deg,rgba(49, 165, 200, 1) 0%, rgba(0, 83, 122, 1) 100%);
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

#header.nav-up {
    width: 80px !important;
}

#header #logo { 
    width: 150px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -5px;
}

#header #logo img {
    width: 100%;
}

#header div[class|="menu-main"] ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

#header div[class|="menu-main"] ul li a {
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    color: #fff;
    white-space: nowrap;
}

#header div[class|="menu-main"] ul li a:hover,
#header div[class|="menu-main"] ul li.current-menu-item a {
    color: var(--secondary);
}

#header #mobile {
    display: none;
}


/*ELEMENTOS EXTRA*/

.services-home{
    position: relative;
}

.services-home .wp-block-column .wp-block-group{
    position: relative;
    overflow: hidden;
}

.services-home .wp-block-column .wp-block-cover{
    position: absolute;
    left: 0;
    bottom: 0;
    transition: all 450ms ease;
    filter: contrast(1);
    width: 100%;
}

.services-home .wp-block-column:hover .wp-block-cover{
    bottom: -100%;
}

.listaCorporativa {
    padding-left: 20px !important;
}

.listaCorporativa li{
    position: relative;
    list-style: none;
}
.listaCorporativa *::first-line {
    color: var(--primary) !important; /* Color para la primera línea */
    font-weight: bold;
}

.listaCorporativa li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 15px;
    background-image: url("/wp-content/uploads/2025/05/icon-gota.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}


/*Formulario de Contacto*/
.wpcf7{
  max-width: 100%;
  width: 100%;
  position: relative;
}

.wpcf7 input:not(.wpcf7-submit),.wpcf7 textarea {
  background-color: transparent;
  border: 1px solid white;
  width: 100%;
  font-size: 15px;
  font-weight: 300;
  color: #ffffff;
  padding: 10px;
  margin-bottom: 15px;
}

.wpcf7 .last{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.wpcf7 textarea{
  max-height: 150px;
  max-width: 100%;
}

.wpcf7 .last > p{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.wpcf7 .wpcf7-form-control-wrap{
  width: 100%;
}

.wpcf7 .wpcf7-acceptance > span{
  margin-left: 0;
}

.wpcf7 .wpcf7-acceptance > span label {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

[type="checkbox"], [type="radio"], legend {
  box-sizing: border-box;
  padding: 0;
  margin-top: 15px;
}
.wpcf7 .wpcf7-acceptance > span,
.wpcf7 .wpcf7-acceptance > span label a{
  font-style: regular;
  color: white;
}

.wpcf7 input[type="checkbox"]{
  width: 20px !important;
  height: 20px !important;
}

.wpcf7 input[type="submit"]:disabled{
  pointer-events: none;
  opacity: 0.5;
}

.wpcf7 .submitting > p{
  opacity: 0.2;
}

.wpcf7 .wpcf7-spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  margin: 0;
}

.wpcf7 .wpcf7-response-output {
  background-color: white;
  color: white;
  margin: 25px 0 0 0;
  border: none;
  padding: 15px 20px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

.wpcf7 .sent .wpcf7-response-output {
    background-color: green;
    border-color: green !important;
    margin: 0;
    padding: 15px;
    border-radius: 5px;
}

.wpcf7 .invalid .wpcf7-response-output {
    background-color: #d34c4c;
    border-color: #d34c4c !important;
    margin: 0;
    padding: 15px;
    border-radius: 5px;
}

.wpcf7 .wpcf7-not-valid{
  border-color: #d34c4c !important;
}

.wpcf7 .wpcf7-not-valid-tip{
  display: none !important;
}
.mapa iframe{
    height: 80vh;
}

#footer{
    display: flex;
}
#footer .icon-call{
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 99;
    transition: all 250ms ease;
}
#footer .icon-call:hover{
    transform: scale(1.2);
    cursor: pointer;
}

/*404*/

.error-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 150px;
    padding: 0 var(--padding-lateral);
}