/* Reset */


/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
  margin-block-start: 0;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10rem;
}

a {
  text-decoration-skip-ink:auto;
  color:currentColor;
  text-decoration-color: currentColor;
  text-decoration-thickness: .2ex;
  text-underline-offset: .2ex;
}

a:visited {
  opacity: 0.8;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  /* https://utopia.fyi/type/calculator/?c=320,16,1.125,1280,18,1.25,4,3,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
  --step--3: clamp(0.576rem, 0.7444rem + -0.2106vw, 0.7023rem);
  --step--2: clamp(0.72rem, 0.8135rem + -0.1169vw, 0.7901rem);
  --step--1: clamp(0.8889rem, 0.8852rem + 0.0185vw, 0.9rem);
  --step-0: clamp(1rem, 0.9583rem + 0.2083vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.0313rem + 0.4688vw, 1.4063rem);
  --step-2: clamp(1.2656rem, 1.1016rem + 0.8203vw, 1.7578rem);
  --step-3: clamp(1.4238rem, 1.166rem + 1.2891vw, 2.1973rem);
  --step-4: clamp(1.6018rem, 1.2202rem + 1.908vw, 2.7466rem);

  /* https://utopia.fyi/space/calculator?c=360,16,1.2,1280,18,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12  */
  --space-3xs: clamp(0.25rem, 0.2255rem + 0.1087vw, 0.3125rem);
  --space-2xs: clamp(0.5rem, 0.4755rem + 0.1087vw, 0.5625rem);
  --space-xs: clamp(0.75rem, 0.7011rem + 0.2174vw, 0.875rem);
  --space-s: clamp(1rem, 0.9511rem + 0.2174vw, 1.125rem);
  --space-m: clamp(1.5rem, 1.4266rem + 0.3261vw, 1.6875rem);
  --space-l: clamp(2rem, 1.9022rem + 0.4348vw, 2.25rem);
  --space-xl: clamp(3rem, 2.8533rem + 0.6522vw, 3.375rem);
  --space-2xl: clamp(4rem, 3.8043rem + 0.8696vw, 4.5rem);
  --space-3xl: clamp(6rem, 5.7065rem + 1.3043vw, 6.75rem);

  --site-max-width: 1280px;
  --radius-xl: 24px;
  --radius-l: 16px;
  --radius-m: 12px;
  --radius-s: 8px;
  --radius-xs: 4px;
  --radius-2xs: 2px;
}

.altcha {
  --altcha-z-index-popover: 90;
  --altcha-color-success: #B2B78A;
  --altcha-border-radius: 2px;
  --altcha-border-color: #d0d0d0;
  --altcha-color-border: #d0d0d0;
}

svg.altcha-spinner {
  color: var(--altcha-color-success);
}

[x-cloak] { display: none !important; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion) {
  html {
    scroll-behavior: auto;
  }
}

body.theme, .editor-styles-wrapper {
  font-family: var(--font-serif);
  font-size: var(--step-0);

  background-color: var(--colors-background-color, #FFF6F0);
  color: var(--colors-color, #404040);

  margin: 0;
  padding: 0;
  line-height: 1.5;
  box-sizing: border-box;
}

h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  color: var(--colors-display-color);
  font-weight: 500;
}

/* Utility */
.text-center {
  text-align: center;
}

/* Flow  */
.flow > *+* {
  margin-block-start: var(--flow-space, 1em);
}

/* Base styling */
.container {
  margin: 0 auto;
}

@media screen and (max-width: 767px) {  
  .container {
    padding-left: var(--space-m);
    padding-right: var(--space-m);
  }

  .padded-section {
    --flow-space: var(--space-m);

    &:not(:first-child) {
      padding: var(--padded-section-mobile, var(--space-m)) 0;
    }

    &:first-child {
      padding: var(--space-s) 0 var(--padded-section-mobile, var(--space-m));
    }
  }
}

@media screen and (min-width: 768px) {
  .padded-section {
    --flow-space: var(--space-l);
    padding: var(--padded-section-desktop, var(--space-xl)) 0 var(--space-m);
  }

  .container {
    padding-left: var(--space-m);
    padding-right: var(--space-m);
    max-width: var(--site-max-width);
  }
}

/* Common elements */

.button, .wpcf7-submit {
  display: block;
  text-decoration: none;
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-xs);
  border: 1px solid;
  line-height: 1;
  font-weight: 500;
  transition: 150ms ease-in-out;
  transition-property: rotate, background color;
  font-family: var(--font-display);
  outline: 0;

  &:hover, &:focus-visible {
    rotate: 1deg;
  }
}

.button--primary-inverted {
  border: 2px solid #C1C699;
  background: transparent;
  color: #C1C699;
  text-decoration: none;
}

.button--primary, .wpcf7-submit {
  background: #C1C699;
  border-bottom: 2px solid #B2B78A;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  color: #663931;

  &:hover, &:focus-visible {
    background: #DFE5B6;
  }
}

button.button, .wpcf7-submit {
  cursor: pointer;
}

.link-button {
  font-family: var(--font-display);
  color: currentColor;
  display: flex;
  gap: 2px;
  align-items: center;

  svg {
    fill: currentColor;
    height: 18px;
    transition: 150ms ease-in-out;
    transition-property: rotate, color;
  } 

  outline: 0;

  &:hover, &:focus-visible {
    color: #545454;
  }

  &:hover svg, &:focus-visible svg {
    rotate: -45deg;
  }
}

/* Header */
.header {
  background: var(--colors-header-color);
  padding: var(--header-padding, var(--space-xs)) 0;
  width: 100%;

  display: flex;
  flex-direction: column;
  
  &.header--fixed {
    z-index: 100;
    height: 100lvh;
    position: fixed;

  }
}

.header--centered {
  flex-direction: row;
  justify-content: center;
}

.header__wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.header a {
  text-decoration: none;
}

.header .menu li a {
  transition: 150ms ease-in-out;
  transition-property: color;
  outline: 0;
  &:hover,&:focus-visible {
    color: #545454;
  }
}

.header__menu-trigger button {
  cursor: pointer;
  border: 0;
  background: none;
}

.header__menu-trigger button svg {
  fill: #663931;
  height: 2em;
}

.header .menu li, .menu li a {
  font-weight: 500;
}

.header__title {
  transition: 150ms ease-in-out;
  transition-property: opacity, rotate;
  outline: 0;

  &:hover, &:focus-visible {
    rotate: -1deg;
    opacity: 0.8;
  }
}

.header__title img {
  height: 60px;
  width: auto;
}

.header__title, .header__ctas {
  flex-shrink: 0;
}

.header__ctas {
  padding: 0;
  margin: 0;
  list-style: none;
  display: none;
  align-items: center;
  gap: var(--space-s);
}

.header__ctas a:has(svg) {
  display: block;
  line-height: 0;
}

.header__ctas a {
  outline: 0;
}

.header__ctas a:has(svg):focus-visible svg,
.header__ctas a:has(svg):hover svg {
    opacity: 0.8;
}

.header__ctas svg {
  height: 2em;
  fill: #663931;
  transition: 150ms ease-in-out;
  transition-property: opacity;
}

.header__nav.header__nav--desktop {
  display: none;
}

.header .menu {
  display: flex;

  list-style: none;
  padding: 0;
  margin: 0;

  &:not(.menu--submenu) {
    justify-content: start;
    flex-direction: column;
    gap: 0;
    font-size: var(--step-2);
  }

  &.menu--submenu {
    flex-direction: column;
    justify-content: start;
    gap: 0;
  }
}

.header:has(.header__mobile.header__mobile--open) {
    padding: var(--space-xs) 0 0;
}

.header__mobile {
  overflow-y: auto;
  background: var(--colors-header-color);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.header__mobile.header__mobile--open {
  border-top: 1px solid #ddd;
  margin-top: var(--space-xs);
}

.header__mobile .menu:not(.menu--submenu) > li {
  border-bottom: 1px solid #ddd;
}

.header__mobile .menu--submenu .menu-item:not(:last-child) {
  border-bottom: 1px solid #b7b7b7;
}

.header__mobile .menu-item.menu__dropdown .menu__dropdown-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-s) var(--space-m);
  width: 100%;
  border: none;
  background: none;
  color: currentColor;
  font-weight: 600;
  line-height: 1.5;
}

.header__mobile .menu__dropdown-title svg {
  height: 24px;
  fill: currentColor;
}

.header__mobile .menu__dropdown .menu-item {
  background-color: #E4DEFF;
}

.header__mobile .menu li a {
  padding: var(--space-s) 0 var(--space-s) var(--space-m);
}

.header__mobile .menu li a {
  width: 100%;
  display: block;
}

.header__mobile .header__button {
  display: flex;
  justify-content: center;
  padding: 1rem;
  flex-shrink: 0;
}

.header__mobile .header__button .button {
  width: 100%;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .header {
    display: flex;
    flex-direction: row;
  }

  .header__nav {
    flex-grow: 1;
  }

  .header__nav.header__nav--desktop {
    display: block;
  }

  .header__nav > .menu > li:has(a:hover, a:focus-visible),
  .header__nav > .menu > li:hover,
  .header__nav > .menu > li:focus-within {
    outline: 0 ;
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    color: currentColor;
    text-decoration-color: #A9B3ED;
    text-decoration-thickness: .2ex;
    text-underline-offset: .4ex;
  }

  .header__mobile {
    display: none;
  }

  .header__wrapper {
    flex-shrink: unset;
  }

  .header__menu-trigger {
    display: none;
  } 

  .header__ctas {
    display: flex;
  }

  .header .menu {
      &:not(.menu--submenu) {
        font-size: var(--step-0);
        justify-content: center;
        flex-direction: row;
        gap: var(--space-s);
      }

      &.menu--submenu {
        flex-direction: column;
        justify-content: start;
        gap: 0;
      }
  }

  .header .menu  .menu__dropdown {
    position: relative;
    display: block;
    outline: 0;

    &:hover {
      cursor: pointer;
    }

    .menu__dropdown-wrapper {
      padding: var(--space-xs) var(--space-m);
      visibility: hidden;
      opacity: 0;
      position: absolute;
      transition: all 0.5s ease;
      left: -24px;
      display: none;
      z-index: 100;
    }

    .menu {
      background-color: #E4DEFF;
      border-radius: var(--radius-xs);
      border: 1px solid #A9B3ED;
    }

    &:hover > .menu__dropdown-wrapper,
    &:focus-within > .menu__dropdown-wrapper,
    & .menu__dropdown-wrapper:hover {
      visibility: visible;
      opacity: 1;
      display: flex;
    }

    .menu--submenu li.menu-item:not(:last-child) {
        border-bottom: 1px solid #A9B3ED;
    }

    .menu--submenu li.menu-item a {
      display: block;
      padding: var(--space-2xs) var(--space-xs);
      min-width: 18ch;

      &:hover,
      &:focus-within,
      &:focus-visible {
          text-decoration: underline;
          text-decoration-thickness: .2ex;
          text-underline-offset: .4ex;
      }
    }

    .menu__dropdown-wrapper li {
      clear: both;
      width: 100%;
    }
  }
}

/* Footer */
.footer {
  --altcha-color-base: transparent;
  --altcha-color-base-content: #FFF6F0;
  --flow-space: var(--space-xl);

  .footer__grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      grid-template-rows: repeat(1, 1fr);
      gap: var(--space-l);
      align-items: start;

      padding: var(--space-m);
      background-color: #663931;
      border-radius: var(--radius-l);
      color: #FFF6F0;

      border: 4px solid #C1C699;
      box-shadow: 0 0 0 4px #F6CCCD;
  }

  .footer__column {
    --flow-space: var(--space-s);

    h2 {
      color: currentColor;
    }
  }

  .footer__contact .footer__logo {
    padding-top: var(--space-m);
    svg {
      height: 75px;
      margin-left: 0;
      width: auto;
    }
  }

  .footer__contact ul {
      --flow-space: var(--space-2xs);
      list-style: none;
      padding: 0;
      margin-block-end: 0;
      margin-block-start: 0;
      font-size: var(--step-0);

      li a {
        outline: 0;
      }

      li {
        display: flex;
        gap: var(--space-2xs);
        align-items: center;
        transition: 150ms ease-in-out;
        transition-property: opacity, rotate;

        &:hover, &:has(a:focus-visible) {
          opacity: 0.8;
        }

        svg {
          fill: #F6CCCD;
          width: 1.25em;
          height: auto;
        }
      }
  }

  .footer__newsletter {
    p {
      max-width: 48ch;
    }

    form {
      --flow-space: var(--space-s);
    }
  }

  .footer__newsletter-fields {
    --flow-space: var(--space-s);
    display: flex;
    flex-direction: column;
    gap: var(--space-s);

    .footer__newsletter-field input {
      color: currentColor;
      max-width: 36ch;
      padding-bottom: var(--space-3xs);
      width: 100%;
      background-color: transparent;
      border-bottom: 2px solid currentColor;
      border-left: 0;
      border-right: 0;
      border-top: 0;
      transition: 250ms ease-in-out;
      outline: 0;

      &:focus-visible {
        transition-property: border-bottom;
        border-bottom: 2px solid rgba(255,255,255,0.5);
      }
    }

    input::placeholder { color: #F6CCCD; }

    label {
      font-weight: 600;
    }
  }

  .footer__attribution {
    text-align: center;
    font-size: var(--step--1);

    img {
      height: 50px;
      margin: 0 auto;
    }
  }
}

@media screen and (min-width: 768px) {
  .footer {
    .footer__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-s);
        padding: var(--space-xl);

        border: 8px solid #C1C699;
        box-shadow: 0 0 0 8px #F6CCCD;
    }
  }
}

/* List with image list style */
.image-list-type {
  margin-block-start: 0;
  padding: 0;
}

.image-list-type li {
  position: relative;
  list-style: none;
  padding-left: 2.5em; 
  min-height: 30px;
  display: flex;
  align-items: center;
}

.image-list-type li:not(:first-child) {
  margin-block-start: 1em;
}

.image-list-type li p {
  margin: 0;
}

.image-list-type li::before {
  content: '';
  /* 2. Position it absolutely to keep it on the same line */
  position: absolute;
  left: 0;
  top: 0;
  /*transform: translateY(-50%);*/
  
  /* 3. Fix the width to a small, absolute value */
  width: 30px;
  height: 30px;
  
  background-repeat: no-repeat;
  background-size: contain; 
}

.image-list-type li:nth-child(5n+1)::before {
  background-image: var(--img-petalos);
}
.image-list-type li:nth-child(5n+2)::before {
  background-image: var(--img-trebol);
}
.image-list-type li:nth-child(5n+3)::before {
  background-image: var(--img-flor);
}
.image-list-type li:nth-child(5n+4)::before {
  background-image: var(--img-asterisco);
}
.image-list-type li:nth-child(5n)::before {
  background-image: var(--img-estrella);
}

/* Blog post */

.blog-post {
  padding: var(--space-s) 0 0;
}

@media screen and (min-width: 768px) {  
  .blog-post {
    padding: var(--space-l) 0 0;
    max-width: 60ch;
    margin: 0 auto;
  }
}

.blog-post__header {
  margin-block-end: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  background: #FEE3EC;
  border-bottom: 4px solid #F6CCCD;
  padding: var(--space-s);
  border-top-left-radius: var(--radius-s);
  border-top-right-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-s);
  border-bottom-right-radius: var(--radius-s);
}
.blog-post__header p {
  margin-block-start: 0;
}

.blog-post__date {
  font-size: var(--step-1);
}

.blog-post__content {
  --flow-space: var(--space-s);
}

.blog-post__content .wp-block-quote {
  padding-inline-start: 1em;
  padding-block-start: 0.75em;
  padding-block-end: 0.75em;
  padding-inline-end: 1.25em;
  box-shadow: -4px 4px 0px 0px #F6CCCD;
  background-color: #FEE3EC;
  margin: 0;
  margin-block-start: var(--space-s);
  line-height: 1.75;
}

.blog-post__content .wp-block-quote p:not(:first-child) {
  margin-block-start: var(--space-s);
}

.blog-post__content .wp-block-separator {
  margin-block-start: var(--space-l);
  margin-block-end: var(--space-m);

  &:not(.has-background) {
    border-color: #F6CCCD;
    background-color: #F6CCCD;
  }
}

.blog-post__content .wp-block-quote p {
  margin-block-start: 0;
}

.blog-post__content .wp-block-list > *+* {
  margin-block-start: var(--space-xs);
}

.blog-post__content .wp-block-heading {
  margin-block-start: var(--space-l);
}

.blog-post .wp-block-list {
  padding-left: var(--space-s);
}

/* Blog index */
.blog-index.blog-index--grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-m);
}

.blog-index--grid .blog-index__item {
  border-radius: var(--radius-l);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.blog-index--grid .blog-index__item__meta a {
  font-size: var(--step-1);
  text-decoration: none;
  transition: 150ms ease-in-out;
  transition-property: text-decoration;
  outline: 0;

  &:hover, &:focus-visible {
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: .15ex;
    text-underline-offset: .2ex;
  }
}

.blog-index--grid .blog-index__item__meta {
  padding: var(--space-s);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.blog-index--grid .blog-index__item:has(img) .blog-index__item__meta {
  border-bottom-left-radius: var(--radius-s);
  border-bottom-right-radius: var(--radius-s);
}

.blog-index--grid .blog-index__item:not(:has(img)) .blog-index__item__meta {
  border-top-left-radius: var(--radius-s);
  border-top-right-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-s);
  border-bottom-right-radius: var(--radius-s);
}

.blog-index--grid .blog-index__item:nth-child(4n+1) .blog-index__item__meta {
  background: #FEE3EC;
}

.blog-index--grid .blog-index__item:nth-child(4n+2) .blog-index__item__meta {
  background: #E4DEFF;
}

.blog-index--grid .blog-index__item:nth-child(4n+3) .blog-index__item__meta {
  background: #E1F5FF;
}

.blog-index--grid .blog-index__item:nth-child(4n) .blog-index__item__meta {
  background: #F9D285;
}

.blog-index--grid .blog-index__item__meta p {
  margin-block-start: 0;
}

.blog-index--grid .blog-index__item img {
  border-top-left-radius: var(--radius-s);
  border-top-right-radius: var(--radius-xl);
  display: block;
  height: 200px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

@media screen and (min-width: 768px) {
  .blog-index.blog-index--grid ul {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.blog-index.blog-index--list ul {
  --flow-space: var(--space-m);
  list-style: none;
  padding: 0;
  margin: var(--space-m) auto 0;
  max-width: 60ch;
}

.blog-index--list .blog-index__item__meta {
  font-size: var(--step-0);
}

.blog-index--list .blog-index__item__meta p {
  margin-block-start: 0;
  text-align: left;
  flex-shrink: 0;
}

.blog-index--list .blog-index__item__meta a {
}

@media screen and (min-width: 768px) {
  .blog-index.blog-index--list ul {
    --flow-space: var(--space-s);
  }

  .blog-index--list .blog-index__item__meta {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: var(--space-s);
  }

  .blog-index--list .blog-index__item__meta p {
    text-align: right;
    width: 20ch;
  }

  .blog-index--list .blog-index__item__meta a {
    transition: 250ms ease-in;
    transition-property: opacity;
    outline: 0;

    &:hover, &:focus-visible {
      opacity: 0.8;
    }
  }

  .blog-index--list .blog-index__item__meta :is(a, p) {
    line-height: 1.5;
  }
}

/* 404 */

.error404 article p {
  font-size: var(--step-1);
}

/* Blocks overrides */

.wp-block-paragraph, .wp-block-heading {
  text-wrap: balance;
}

.wp-block-paragraph:first-child {
  margin-block-start: 0;
}

.wp-block-image img {
  border-radius: var(--radius-l);
}