@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400..700;1,400..700&display=swap');

html, body {
    scroll-behavior: smooth;
}

/* Side padding shared by the header and the page content, so both line up */
:root {
    --gutter: 10%;
}

@media (max-width:1150px){
:root {
    --gutter: 6%;
}
}

@font-face {
  font-family: 'Calibri';
  src: url('/wp-content/fonts/Calibri-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Calibri';
  src: url('/wp-content/fonts/Calibri-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Calibri';
  src: url('/wp-content/fonts/Calibri-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Calibri';
  src: url('/wp-content/fonts/Calibri-Regular-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Calibri';
  src: url('/wp-content/fonts/Calibri-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Calibri';
  src: url('/wp-content/fonts/Calibri-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}



@keyframes glow {
  0%   { box-shadow: -30px 3px 18px rgba(202, 171, 119, 0.45); }
  20%  { box-shadow: -10px 4px 22px rgba(255, 225, 160, 0.7); }
  45%  { box-shadow: 15px 3px 16px rgba(202, 171, 119, 0.35); }
  70%  { box-shadow: 30px 4px 24px rgba(255, 225, 160, 0.65); }
  100% { box-shadow: 5px 3px 18px rgba(202, 171, 119, 0.5); }
}

@keyframes headerShadow{
    0%   { transform: scaleX(0); opacity: 0; }
    35%  { opacity: .6;}
    65%  { transform: scaleX(1); opacity: 1; box-shadow: 0 5px 10px rgba(202,171,119,.5); }
    82%  { box-shadow: 0 8px 22px rgba(202,171,119,.8); }
    100% { transform: scaleX(1); opacity: 1; box-shadow: 0 5px 10px rgba(202,171,119,.5); }
}

@keyframes headerPopUp{
    0%{
        transform: translateY(-200%);
    }
    100%{
        transform:translateY(0);
    }
}

textarea {
    resize: none !important;
}


/* ---------- Contact form card (Forminator form 155): home hero (.hiddenForm) and treatment pages (.treatmentForm) ---------- */

/* Filled by header.js; never shown */
.forminator-referrer,
.forminator-current-page {
    display: none !important;
}

.formCard {
    width: 440px;
    background-color: rgba(242, 242, 242, 0.95); /* #f2f2f2 at 95%: slightly see-through, the hero image shows behind it */
    border-radius: 16px;
    padding: 30px 50px 32px;
    box-sizing: border-box;
    scroll-margin-top: calc(10vh + 20px); /* when jumped to, it stops below the fixed header */
    outline: 3px solid transparent;
    transition: outline-color 0.3s ease-in-out;
}

/* "PIDE TU CITA" / "VALORACIÓN GRATUITA": the form gets a gold outline for 1s (header.js) */
.formCard.formCardHighlight {
    outline-color: #caab77;
}

.formCard h2 {
    font-family: 'Baskervville';
    font-weight: 600;
    color: black;
    font-size: 1.4em;
    line-height: 1.2;
    white-space: nowrap;
    text-wrap: nowrap;
    margin: 0 0 22px;
    padding-bottom: 12px;
    position: relative;
}

.formCard h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px;
    height: 2px;
    background-color: #caab77;
}

/* Forminator: its own rules are very specific (ids, [data-design] attributes...), so everything here is !important.
   155 = the form id in the [forminator_form] shortcode */
.formCard #forminator-module-155 .forminator-row {
    margin-bottom: 14px !important;
}

.formCard #forminator-module-155 .forminator-label,
.formCard #forminator-module-155 label.forminator-label {
    display: block !important;
    font-family: 'Calibri' !important;
    font-weight: 700 !important;
    font-size: 1.1em !important;
    line-height: 1.2 !important;
    color: #caab77 !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
}

.formCard #forminator-module-155 .forminator-input,
.formCard #forminator-module-155 .forminator-textarea {
    width: 100% !important;
    font-family: 'Calibri' !important;
    font-size: 1em !important;
    color: black !important;
    background-color: #cccccc !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 9px 12px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Fixed height: both heroes have a fixed height */
.formCard #forminator-module-155 .forminator-textarea {
    --forminator-textarea-min-height: 70px !important;
    min-height: 70px !important;
    height: 70px !important;
}

.formCard #forminator-module-155 .forminator-input:focus,
.formCard #forminator-module-155 .forminator-textarea:focus {
    outline: 2px solid #caab77 !important;
    outline-offset: 0 !important;
}

.formCard #forminator-module-155 .forminator-checkbox__wrapper {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.formCard #forminator-module-155 .forminator-checkbox-box {
    background-color: transparent !important;
    border: 2px solid black !important;
    border-radius: 3px !important;
}

.formCard #forminator-module-155 .forminator-checkbox input:checked + .forminator-checkbox-box {
    background-color: #caab77 !important;
    border-color: #caab77 !important;
    color: white !important;
}

.formCard #forminator-module-155 .forminator-checkbox__label,
.formCard #forminator-module-155 .forminator-checkbox__label p {
    font-family: 'Calibri' !important;
    font-size: 0.85em !important;
    line-height: 1.35 !important;
    color: black !important;
    margin: 0 !important;
}

.formCard #forminator-module-155 .forminator-checkbox__label p {
    font-size: 1em !important; /* the 0.85em is already on the wrapper */
}

.formCard #forminator-module-155 .forminator-checkbox__label a {
    color: #caab77 !important;
}

.formCard #forminator-module-155 .forminator-button-submit {
    width: 100% !important;
    font-family: 'Calibri' !important;
    font-weight: 700 !important;
    font-size: 1em !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: white !important;
    background-color: #caab77 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 10px 20px !important;
    margin-top: 10px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

.formCard #forminator-module-155 .forminator-button-submit:hover {
    background-color: black !important;
}

@media (max-width:1600px){

.formCard {
    width: 370px;
    padding: 24px 36px 26px;
}

.formCard h2 {
    font-size: 1.2em;
    margin-bottom: 18px;
}

.formCard #forminator-module-155 .forminator-row {
    margin-bottom: 10px !important;
}

}

@media (max-width:600px){

.formCard {
    padding: 22px 20px 25px;
    border-radius: 12px;
}

.formCard h2 {
    font-size: 1.05em;
}

}

/* Short desktop screens (laptops): the form tightens up to fit the fixed-height heroes */
@media (min-width:1151px) and (max-height:900px){

.formCard {
    padding: 18px 32px 20px;
}

.formCard h2 {
    font-size: 1.1em;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.formCard #forminator-module-155 .forminator-row {
    margin-bottom: 7px !important;
}

.formCard #forminator-module-155 .forminator-label,
.formCard #forminator-module-155 label.forminator-label {
    font-size: 0.95em !important;
    margin-bottom: 3px !important;
}

.formCard #forminator-module-155 .forminator-input,
.formCard #forminator-module-155 .forminator-textarea {
    padding: 6px 10px !important;
}

.formCard #forminator-module-155 .forminator-textarea {
    --forminator-textarea-min-height: 48px !important;
    min-height: 48px !important;
    height: 48px !important;
}

.formCard #forminator-module-155 .forminator-checkbox__label {
    font-size: 0.78em !important;
}

.formCard #forminator-module-155 .forminator-button-submit {
    padding: 7px 20px !important;
    margin-top: 4px !important;
}

}

span.recaptcha {
    font-family: 'Montserrat';
    color: grey;
    font-size: 0.7em;
    display: block;
    transform: translateY(50%);
}

/* Google's privacy / terms links in the notice: same look as its text, underlined (Forminator styles its own links, hence !important) */
span.recaptcha a {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

span.recaptcha a:hover {
    color: #caab77 !important;
}

/* Google's floating reCAPTCHA badge (bottom right). Hidden because the form shows the notice itself (span.recaptcha).
   visibility, not display: none, so reCAPTCHA keeps working. */
.grecaptcha-badge {
    visibility: hidden !important;
}

.hoverMoveArrow,
.hoverMoveArrow svg {
  transition: all .25s;
}

.hoverMoveArrow:hover svg {
  margin-left: 30px;
}

.headerSpacer {
    display: block;
    height: 10vh;
    width: 100%;
    background:black; 
}

.phoneBurger,.phoneNav{
    display:none
}

.header {
    display: flex;
    padding: 0 var(--gutter);
    align-items: center;
    justify-content: space-between;
    height: 10vh;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    top: 0;
}

.header>*{
    position: relative;
    z-index:1;
}

.headerShadow{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
}

.headerBlackBG{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:0;
    background-color:black;
}

.headerShadow { transform: scaleX(0); opacity: 0; }

.header.header-wipe { animation: headerPopUp .7s ease-out both; }
.headerShadow.shadow-grow { animation: headerShadow 1.4s cubic-bezier(.25,.8,.35,1) forwards; }

.header.header-ready { opacity: 1; }
.header.header-ready .headerShadow {
  transform: scaleX(1);
  opacity: 1;
  box-shadow: 0 5px 10px rgba(202,171,119,.5);
}

.headerStuck {
    position: fixed;
    animation: headerPopUp 0.5s ease-in-out forwards;
}




.headerLogo a {
    display: block;
    width: 100%;
    height: 100%;
}

.headerLogo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left;
}




.headerLogo {
    width: 140px;
    height: 65%;
}

.headerNav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60%;
    height: 100%;
}


.headerNav a {
    cursor: pointer;
    color: white;
    font-family: 'Calibri';
    font-weight: 200;
    font-size: 1em;
    letter-spacing: 1px;
    text-decoration: unset;
    position: relative;
}

.headerNav a::after {
    content: '';
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transition: all 0.2s ease-in-out;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    background: white;
    width: 90%;
    height: 1px;
    border-radius: 3px;
}

a.headerContact::after{
    content: unset!important;
}

a.headerContact,
a.headerContact svg path {
  transition: all .2s ease-in-out;
}

a.headerContact:hover {
  color: #fff;
  background-color: #caab77;
  border-color: #caab77;
}

a.headerContact:hover svg path {
  fill: #fff!important;
}

.headerNav a:hover::after{
    transform: translateX(-50%) scaleX(1);
}

a.headerContact svg, .headerContactPhone svg {
    width: 20px;
    height: 20px;
    margin-right: 13px;
}

a.headerContact, .headerContactPhone {
    display: flex;
    white-space: nowrap;
    text-wrap: nowrap;
    align-items: center;
    justify-content: center;
    color: #caab77;
    border: 2px solid #caab77;
    padding: 6px 20px;
    font-weight: 600;
    font-size: 1.1em;
}


header#header {
    position: relative;
    z-index: 9999;
}


@media (max-width:1150px){
    


.headerNav{
    display:none;
}

.phoneBurger,.phoneNav{
    display:flex;
}

.line {
        fill: none;
        stroke: #caab77;
        stroke-width: 6;
        transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    .line1 {
        stroke-dasharray: 60 207;
        stroke-width: 6;
    }
    .line2 {
        stroke-dasharray: 60 60;
        stroke-width: 6;
    }
    .line3 {
        stroke-dasharray: 60 207;
        stroke-width: 6;
    }
    .opened.line1 {
        stroke-dasharray: 90 207;
        stroke-dashoffset: -134;
        stroke-width: 6;
    }
    .opened.line2 {
        stroke-dasharray: 1 60;
        stroke-dashoffset: -30;
        stroke-width: 6;
    }
    .opened.line3 {
        stroke-dasharray: 90 207;
        stroke-dashoffset: -134;
        stroke-width: 6;
    }


.phoneBurger {
    height: 100%;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
}

.phoneBurger svg {
    width: 90%;
    height: 90%;
}

.headerLogo {
    width: 30%;
    height: 65%;
}

.phoneNav {
    position: fixed;
    top: 10vh;
    left: 100%;
    transform: translateX(50%);
    height: 90vh;
    background-color: black;
    flex-direction: column;
    width: 100%;
    transition: all 0.55s ease-in-out;
    align-items: center;
    padding-top: 15%;
    box-sizing: border-box;
    padding-bottom: 240px;
    justify-content: space-between;
    cursor: pointer;
}

.phoneNav.open{
    transform: translateX(-100%);
}

.phoneNav a {
    text-decoration: unset;
    font-family: 'Calibri';
    color: white;
    font-size: 1.2em;
    letter-spacing: 1px;
}

a.headerContactPhone {
    color: #caab77;
}


}

@media (max-width:600px){


.phoneBurger svg {
    width: 75%;
    height: 75%;
}

}


