/* -------------------------------------------------------------------------- */
/*                              CUSTOM PROPERTIES                             */
/* -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --primary-color: var(--ast-global-color-0);
  --secondary-color: var(--ast-global-color-1);
  --heading-color: var(--ast-global-color-2);
  --text-color: var(--ast-global-color-3);
}

/* -------------------------------------------------------------------------- */
/*                               UTILITY CLASSESS                             */
/* -------------------------------------------------------------------------- */
/* General */
.flex {
  display: flex;
  gap: var(--gap, 1rem);
}

.direction-column {
  flex-direction: column;
}

.grid {
  display: grid;
  gap: var(--gap, 1rem);
}

.flow > *:where(:not(:first-child)) {
  margin-top: var(--flow-gap, 1rem);
}

.container {
  padding-inline: 2em;
  margin-inline: auto;
  max-width: min(100% - 2rem, 83.75rem);
}

.blur-column {
  backdrop-filter: blur(8px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------- */
/*                                   GLOBAL                                   */
/* -------------------------------------------------------------------------- */
.icon__box .elementor-icon-box-icon .elementor-icon, .hero__card-title .elementor-icon-box-icon {
  background-color: #fff;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  display: grid !important;
  place-items: center;
}

.error404 {
  background-image: url("../img/404.jpg");
  background-color: transparent;
  background-size: cover;
  background-position: center center;
  height: 100vh;
  position: relative;
  z-index: 1;
}
.error404::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--secondary-color);
  opacity: 0.5;
  z-index: -1;
}
.error404 .ast-primary-header-bar,
.error404 .error-404.not-found {
  background-color: transparent !important;
}
.error404 .site {
  height: 100%;
}
.error404 .site-content {
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
}
@media (width > 768px) {
  .error404 .site-404-layout {
    padding-inline-end: 6.67em;
  }
}
.error404 .page-title,
.error404 .page-sub-title {
  color: #fff;
  font-weight: 600;
}
.error404 .page-sub-title {
  font-size: 1.625rem;
}
.error404 .page-button {
  margin-block-start: 1.875rem;
  display: inline-flex;
}

/* -------------------------------------------------------------------------- */
/*                                 COMPONENTS                                 */
/* -------------------------------------------------------------------------- */
/* --------------------------------- Header --------------------------------- */
header {
  position: sticky !important;
  top: 0;
}
header.header-is-fixed .main-header-bar {
  background-color: #fff !important;
}
header.header-is-fixed .main-header-bar .menu-item:not(.current_page_item) .menu-link {
  color: var(--secondary-color) !important;
}
header.header-is-fixed a.custom-logo-link {
  display: block;
  position: relative;
}
header.header-is-fixed a.custom-logo-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 36px;
  background-image: url(https://www.ortodonciaalejandraarroyo.cl/wp-content/uploads/2024/01/LogoDraArroyoShield.png);
  background-size: cover;
  background-repeat: no-repeat;
}
@media (width > 544px) {
  header.header-is-fixed a.custom-logo-link::after {
    width: 290px;
    height: 58px;
  }
}
header #ast-desktop-header,
header #ast-mobile-header {
  position: absolute;
  top: 0;
  width: 100%;
  transition: all 0.4s ease;
  transform: translate3d(0, 0, 0);
}
header.header-is-hide #ast-desktop-header,
header.header-is-hide #ast-mobile-header {
  transform: translate3d(0, -25px, 0);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

/* ----------------------------- Logo animation ----------------------------- */
.gradient__text--animation h2 {
  background: linear-gradient(to right, var(--secondary-color) 20%, var(--primary-color) 40%, var(--primary-color) 60%, var(--secondary-color) 80%);
  background-size: 200% auto;
  color: var(--secondary-color);
  background-clip: text;
  text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 13s linear infinite;
}

@keyframes gradient {
  to {
    background-position: 200% center;
  }
}
.logo__anim svg {
  overflow: visible;
}

.logo__anim path {
  color: var(--primary-color);
  transform-box: fill-box;
  transform-origin: center;
  fill: currentColor;
  stroke: currentColor;
  animation-name: shinning;
  animation-delay: calc(var(--transition) * 1.5 + var(--delay) * 1s);
  animation-duration: 2s;
  animation-iteration-count: infinite;
  transition: color var(--transition);
}
.logo__anim path:nth-of-type(2) {
  --scale: 0.5;
  --delay: 0.1;
  --base: 90%;
}
.logo__anim path:nth-of-type(3) {
  --scale: 1.5;
  --delay: 0.2;
  --base: 70%;
}
.logo__anim path:nth-of-type(4) {
  --scale: 2.5;
  --delay: 0.35;
  --base: 80%;
}

@keyframes shinning {
  35%, 65% {
    scale: var(--scale);
  }
}
/* -------------------------------- Hero card ------------------------------- */
.hero__card-wrapper {
  position: relative;
}
.hero__card-wrapper::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: var(--secondary-color);
  z-index: -1;
  filter: blur(30px);
  opacity: 0.3;
}

.hero__card-title .elementor-icon-box-wrapper {
  align-items: center;
}
.hero__card-title .elementor-icon-box-content > .elementor-icon-box-title {
  margin: 0;
}
.hero__card a:is(:hover, :focus) > span {
  color: var(--ast-global-color-1) !important;
}

/* -------------------------------- Icon box -------------------------------- */
.icon__box .elementor-icon-box-icon {
  display: inline-flex !important;
}
.icon__box a:is(:hover, :focus) + p {
  color: var(--secondary-color) !important;
}
.icon__box--full-link.elementor-widget-icon-box:is(:hover, :focus) .elementor-icon-box-description {
  color: var(--secondary-color);
}
.icon__box--full-link.elementor-widget-icon-box .elementor-icon-box-description {
  transition: color 400ms ease-in-out;
}
.icon__box--full-link.elementor-widget-icon-box a:after {
  content: "";
  display: block !important;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

/* ------------------------------ Flex Gallery ------------------------------ */
.flex__gallery-wrapper {
  overflow: hidden;
}

.flex__gallery {
  display: inline-flex;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  clear: both;
}
.flex__gallery li {
  padding-left: 0.3125rem;
  padding-right: 0.3125rem;
  box-sizing: border-box;
  margin: 0.625rem 0;
  list-style: none;
}
@media (min-width: 48rem) {
  .flex__gallery li {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }
}
.flex__gallery li:nth-child(4n+1) {
  width: 45vw;
}
@media (min-width: 48rem) {
  .flex__gallery li:nth-child(4n+1) {
    width: 25vw;
  }
}
.flex__gallery li:nth-child(4n+2) {
  width: 50vw;
}
@media (min-width: 48rem) {
  .flex__gallery li:nth-child(4n+2) {
    width: 30vw;
  }
}
.flex__gallery li:nth-child(4n+3) {
  width: 65vw;
}
@media (min-width: 48rem) {
  .flex__gallery li:nth-child(4n+3) {
    width: 45vw;
  }
}
.flex__gallery li:nth-child(4n+4) {
  width: 45vw;
}
@media (min-width: 48rem) {
  .flex__gallery li:nth-child(4n+4) {
    width: 25vw;
  }
}
.flex__gallery li > img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* --------------------------------- Footer --------------------------------- */
.site-info-inner {
  text-align: center !important;
}
.site-info-inner p {
  color: #fff;
}

.ast-footer-copyright a {
  color: var(--primary-color);
}

.footer-wrapper {
  position: relative;
}

@media (width < 768px) {
  .site-footer {
    padding-block-end: 1.875rem;
  }
}
.whatsapp-link {
  background-color: #60C637;
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 0.3125rem 0.625rem;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}
@media (width > 768px) {
  .whatsapp-link {
    background-color: transparent;
    bottom: 100px;
    right: 60px;
    padding: 0;
    flex-direction: column;
    width: max-content;
  }
}
.whatsapp-link img {
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
  width: 1.875rem;
}
@media (width > 768px) {
  .whatsapp-link img {
    width: 3.125rem;
  }
}
.whatsapp-link:hover {
  transform: translateY(-5px);
}
.whatsapp-link__number {
  background-color: #fff;
  border: 2px solid #60C637;
  border-radius: 1.5625rem;
  color: #60C637;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 0.3125em 0.9375em;
}