/*
 * WordPress port additions (unlayered). The original site got these behaviours from React/Motion;
 * here they are plain CSS states toggled by the theme's vanilla JS.
 */

:root {
  /* Poppins is loaded from Google Fonts (inc/enqueue.php); base.css resolves --font-sans from it. */
  --font-poppins: "Poppins";
}

/* Logged-in editors: keep the sticky header below the admin bar. */
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Hamburger ↔ X: top/bottom bars rotate into an X, the middle one fades out. */
.nav-burger span {
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.1, 1),
    opacity 0.3s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Elements toggled by JS with the `hidden` attribute (base.css sets their display in a layer). */
.mnav[hidden],
.faq__answer[hidden],
.contacto__sent[hidden],
.contacto__fields-wrap[hidden],
.lp-alt[hidden],
.lp-k[hidden],
.recorrido__shots[hidden] {
  display: none;
}

/* Outgoing copy of a crossfading text (popped out of the layout while it fades). */
.pf-swap-out {
  position: absolute;
  pointer-events: none;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .nav-burger span {
    transition: none;
  }
}

/* FAQ chevron rotates 180° when its answer opens. */
.faq__chevron {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.contacto__form-error[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .faq__chevron {
    transition: none;
  }
}
