/* LoMásCerca V15: tasteful, single-play motion on the public homepage.
   Uses existing colours, imagery and markup; zero layout changes. */

/* Gloss is an overlay INSIDE the existing button, not a floating moving banner.
   Do not add overflow:hidden here: it would clip the existing guest notification badge. */
.area-public .public-nav .nav-publish,
.area-public .lmc-redesign .lmc-pathway .btn.btn-primary,
.area-public .lmc-redesign .business-promo .promo-actions .btn.btn-primary {
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.area-public .public-nav .nav-publish::before,
.area-public .lmc-redesign .lmc-pathway .btn.btn-primary::before,
.area-public .lmc-redesign .business-promo .promo-actions .btn.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(107deg,
    transparent 24%, rgba(255,255,255,.03) 32%,
    rgba(255,255,255,.38) 47%, rgba(255,255,255,.03) 61%,
    transparent 70%);
  background-size: 260% 100%;
  background-position: 130% 0;
  opacity: 0;
}
@keyframes lmc-v15-button-shine {
  from { background-position: 135% 0; opacity: 0; }
  10%  { opacity: .85; }
  88%  { opacity: .85; }
  to   { background-position: -145% 0; opacity: 0; }
}
/* V15 JS adds this class once on page load; never loops. */
.area-public .public-nav .nav-publish.lmc-v15-shine-once::before {animation: lmc-v15-button-shine 1.15s ease-out 1 both;}

@media (hover: hover) and (pointer: fine) {
  .area-public .public-nav .nav-publish:hover,
  .area-public .lmc-redesign .lmc-pathway .btn.btn-primary:hover,
  .area-public .lmc-redesign .business-promo .promo-actions .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 23px rgba(0,115,76,.2);
    filter: brightness(1.04);
  }
  /* A single gloss pass per hover, not an infinite animation. */
  .area-public .public-nav .nav-publish:hover::before,
  .area-public .lmc-redesign .lmc-pathway .btn.btn-primary:hover::before,
  .area-public .lmc-redesign .business-promo .promo-actions .btn.btn-primary:hover::before {
    animation: lmc-v15-button-shine 1.05s ease-out 1 both;
  }

  .area-public .lmc-redesign .lmc-pathway {
    transition: transform .24s ease, box-shadow .24s ease;
  }
  .area-public .lmc-redesign .lmc-pathway:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 34px rgba(2,66,45,.11);
  }
  .area-public .lmc-redesign .home-category-card,
  .area-public .lmc-redesign .home-company-card,
  .area-public .lmc-redesign .home-product-card {
    transition: transform .22s ease, box-shadow .22s ease;
  }
  .area-public .lmc-redesign .home-category-card:hover,
  .area-public .lmc-redesign .home-company-card:hover,
  .area-public .lmc-redesign .home-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 28px rgba(2,66,45,.11);
  }
  /* V6 cards already lift slightly; strengthen only the shadow, not the travel. */
  .area-public .lmc-redesign .lmc-tools-row > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 38px rgba(0,91,61,.14);
  }
  .area-public .lmc-redesign .lmc-tools-row > a:hover > i {filter: brightness(1.07);}
}

/* The three business feature cards enter the viewport once, in sequence.
   Without JavaScript they stay fully visible (no 'hidden' state). */
@keyframes lmc-v15-card-enter {
  from {opacity: .5; transform: translateY(13px)}
  to {opacity: 1; transform: translateY(0)}
}
.area-public .lmc-redesign .lmc-tools-row > a.lmc-v15-appear {
  animation: lmc-v15-card-enter .5s cubic-bezier(.22,1,.36,1) var(--lmc-v15-delay, 0ms) 1 both;
}

/* Keyboard users get a clear state, not an infinite attention animation. */
.area-public .public-nav .nav-publish:focus-visible,
.area-public .lmc-redesign .lmc-tools-row > a:focus-visible {
  outline: 3px solid #f4c534;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .area-public .public-nav .nav-publish,
  .area-public .lmc-redesign .lmc-pathway,
  .area-public .lmc-redesign .lmc-tools-row > a,
  .area-public .lmc-redesign .home-category-card,
  .area-public .lmc-redesign .home-company-card,
  .area-public .lmc-redesign .home-product-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .area-public .public-nav .nav-publish::before,
  .area-public .lmc-redesign .lmc-pathway .btn.btn-primary::before,
  .area-public .lmc-redesign .business-promo .promo-actions .btn.btn-primary::before {
    display: none !important;
    animation: none !important;
  }
}
