/* Button feedback only: leave navigation, text links and image cards unchanged. */
body.bcx-home-header :is(
  .wp-block-button__link,
  .bcx-hero-cta,
  .bcx-destination-cta,
  .bcx-hub-footer > a,
  .bcx-more,
  .bc-contacto .ff-btn-submit,
  .bcx-arrow,
  .bcx-dialog-close,
  .bcx-mini-controls button,
  .bcx-mini-arrows button,
  .bcx-destination-controls button,
  .bcx-hero-controls button,
  .bcx-story-lightbox button
) {
  text-decoration: none !important;
  translate: 0 0;
  /* Independent translate never replaces the entrance animation's transform. */
  transition: translate 220ms cubic-bezier(.2,.7,.3,1),
    box-shadow 220ms ease, background-color 220ms ease,
    border-color 220ms ease, color 220ms ease !important;
}

body.bcx-home-header :is(
  .wp-block-button__link,
  .bcx-hero-cta,
  .bcx-destination-cta,
  .bcx-hub-footer > a,
  .bcx-more
):is(:hover, :focus, :active) {
  text-decoration: none !important;
  filter: none;
}

@media (hover: hover) and (pointer: fine) {
  body.bcx-home-header :is(
    .wp-block-button__link,
    .bcx-hero-cta,
    .bcx-destination-cta,
    .bcx-hub-footer > a,
    .bcx-more,
    .bc-contacto .ff-btn-submit,
    .bcx-arrow,
    .bcx-dialog-close,
    .bcx-mini-controls button,
    .bcx-mini-arrows button,
    .bcx-destination-controls button,
    .bcx-hero-controls button,
    .bcx-story-lightbox button
  ):hover:not(:disabled):not([aria-disabled="true"]) {
    translate: 0 -2px;
    box-shadow: 0 5px 14px rgb(9 36 25 / 18%);
  }

  /* The yellow CTAs receive a small light change instead of an underline. */
  body.bcx-home-header #inicio .wp-block-buttons:last-child .wp-block-button__link:hover,
  body.bcx-home-header #nosotros .wp-block-button__link:hover,
  body.bcx-home-header .bcx-stay-panel .wp-block-button__link:hover,
  body.bcx-home-header .bcx-hero-cta:hover {
    background: #ffdf63 !important;
    filter: none !important;
  }

  /* Only the three edition/date links, not other links in the introduction. */
  body.bcx-home-header #inicio .wp-block-buttons:has(.wp-block-button + .wp-block-button) .wp-block-button__link:hover {
    background: #f5cd36 !important;
    border-color: #edc33a;
    color: #183e31 !important;
    filter: none !important;
  }

  body.bcx-home-header #inicio .wp-block-buttons:has(.wp-block-button + .wp-block-button) .wp-block-button__link:hover .bcx-edition-departure {
    border-top-color: rgb(24 62 49 / 22%);
    color: #294b36;
  }
}

/* A pressed button settles back; existing keyboard focus rings remain intact. */
body.bcx-home-header :is(
  .wp-block-button__link,
  .bcx-hero-cta,
  .bcx-destination-cta,
  .bcx-hub-footer > a,
  .bcx-more,
  .bc-contacto .ff-btn-submit,
  .bcx-arrow,
  .bcx-dialog-close,
  .bcx-mini-controls button,
  .bcx-mini-arrows button,
  .bcx-destination-controls button,
  .bcx-hero-controls button,
  .bcx-story-lightbox button
):active {
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  body.bcx-home-header :is(
    .wp-block-button__link,
    .bcx-hero-cta,
    .bcx-destination-cta,
    .bcx-hub-footer > a,
    .bcx-more,
    .bc-contacto .ff-btn-submit,
    .bcx-arrow,
    .bcx-dialog-close,
    .bcx-mini-controls button,
    .bcx-mini-arrows button,
    .bcx-destination-controls button,
    .bcx-hero-controls button,
    .bcx-story-lightbox button
  ) {
    translate: none !important;
    transition: none !important;
  }
}
