/* NFCQR PERÚ — gold luminous cards.
 * Replicates the verified reference interaction without importing its CSS/JS.
 * Scope: only this Astro project. All tones derive from editable brand variables.
 */
:where(.story,.product,.plan-card) {
 --nfc-halo-edge:var(--gold,#c99a52);
 --nfc-halo-light:var(--gold-light,#f1d7a7);
 position:relative;
 isolation:isolate;
 overflow:hidden;
 backface-visibility:hidden;
 transition:
   transform .32s cubic-bezier(.2,.7,.2,1),
   border-color .32s ease,
   box-shadow .32s ease;
}
/* Border shimmer is masked to a 1.5px ring; content and images remain uncovered. */
:where(.story,.product,.plan-card)::before,
.plan-card.featured::before {
 content:"";
 position:absolute;
 z-index:5;
 display:block;
 inset:0;
 border-radius:inherit;
 padding:1.5px;
 pointer-events:none;
 background:linear-gradient(
  110deg,
  transparent 6%,
  color-mix(in srgb,var(--nfc-halo-edge) 30%,transparent) 27%,
  var(--nfc-halo-edge) 45%,
  var(--nfc-halo-light) 61%,
  transparent 90%
 );
 background-size:230% 100%;
 background-position:100% 0;
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;
 mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 mask-composite:exclude;
 opacity:.58;
 animation:nfcqr-border-breathe 8s ease-in-out infinite alternate;
}
/* Diagonal passing highlight, beneath text but above photographs. */
:where(.story,.product,.plan-card)::after {
 content:"";
 display:block;
 position:absolute;
 z-index:2;
 top:-30%;
 left:-90%;
 width:56%;
 height:160%;
 transform:skewX(-23deg);
 border:0;
 background:linear-gradient(
  90deg,
  transparent,
  color-mix(in srgb,var(--nfc-halo-light) 10%,transparent) 45%,
  color-mix(in srgb,var(--nfc-halo-edge) 15%,transparent) 60%,
  transparent
 );
 opacity:0;
 pointer-events:none;
 transition:left .85s cubic-bezier(.17,.67,.15,1),opacity .35s ease;
}
/* Override the earlier plan-card::after { display:none } declaration. */
.story::after,.product::after,.plan-card::after {display:block;}
:where(.story,.product,.plan-card)>* {position:relative;z-index:3;}
/* Keep optional product images fully visible and all CTA links clickable. */
:where(.story,.product,.plan-card) :is(a,button):focus-visible {
 outline:2px solid var(--nfc-halo-edge);
 outline-offset:3px;
}
.story::before{opacity:.37;}
.product::before{opacity:.61;}
.plan-card.featured::before{opacity:.79;}
@keyframes nfcqr-border-breathe {
 0%{background-position:100% 0;opacity:.36;}
 100%{background-position:0% 0;opacity:.75;}
}
/* Only hover-capable pointers receive the reference lift / sweep. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 .js-motion :is(.story,.product,.plan-card)[data-reveal].in-view:is(:hover,:focus-within),
 :is(.story,.product,.plan-card):is(:hover,:focus-within) {
   transform:translate3d(0,-3px,0);
   border-color:color-mix(in srgb,var(--nfc-halo-edge) 50%,transparent);
 }
 :is(.story,.product,.plan-card):is(:hover,:focus-within)::before,
 .plan-card.featured:is(:hover,:focus-within)::before {
   opacity:1;
   animation-duration:2.6s;
 }
 :is(.story,.product,.plan-card):is(:hover,:focus-within)::after {
   left:140%;
   opacity:1;
 }
 .story:is(:hover,:focus-within) {
   box-shadow:
     0 18px 52px rgba(93,66,34,.14),
     0 0 27px rgba(201,152,78,.11),
     inset 0 0 32px rgba(201,152,78,.04);
 }
 .product:is(:hover,:focus-within) {
   box-shadow:
     0 18px 52px rgba(0,0,0,.25),
     0 0 27px rgba(224,177,100,.18),
     inset 0 0 32px rgba(224,177,100,.055);
 }
 .plan-card:is(:hover,:focus-within) {
   box-shadow:
     0 18px 52px rgba(74,50,21,.16),
     0 0 27px rgba(201,152,78,.12),
     inset 0 0 32px rgba(201,152,78,.05);
 }
 .plan-card.featured:is(:hover,:focus-within) {
   box-shadow:
     0 21px 55px rgba(23,14,6,.27),
     0 0 30px rgba(234,182,100,.22),
     inset 0 0 34px rgba(234,182,100,.075);
 }
}
/* The original 0.68s scroll-entry still plays, but cannot freeze hover transforms. */
@media (prefers-reduced-motion:no-preference) {
 :is(.story,.product,.plan-card).premium-entered {
   animation-fill-mode:backwards;
 }
}
/* Touch devices have the luminous border, but no cursor-triggered movement. */
@media (hover:none), (pointer:coarse) {
 :is(.story,.product,.plan-card)::before,
 .plan-card.featured::before {
   animation:none;
   background-position:50% 0;
   opacity:.42;
 }
 :is(.story,.product,.plan-card)::after{display:none;}
 :is(.story,.product,.plan-card):is(:hover,:focus-within){transform:none;}
}
/* Never force motion on users who request a static experience. */
@media (prefers-reduced-motion:reduce) {
 :is(.story,.product,.plan-card),
 :is(.story,.product,.plan-card)::before,
 :is(.story,.product,.plan-card)::after{
   animation:none!important;
   transition:none!important;
 }
 :is(.story,.product,.plan-card)::before{
   background-position:50% 0!important;
   opacity:.48!important;
 }
 :is(.story,.product,.plan-card)::after{display:none!important;}
 :is(.story,.product,.plan-card):is(:hover,:focus-within){transform:none!important;}
}
