/* The landing of «Tarjeta de lealtad» (revialocal.app/loyalty, 20 Oct 2026): version B's dark, cinematic look with
   version A's sections. Built by apps/legal/landing/loyalty.mjs; loyalty.js only adds the glass bar and the fade-ins.
   Every animation stops with «reduce motion». */
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Google Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:#F4F1EA;background:#12100E;font-size:16px;line-height:1.5;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{margin:0;font-weight:400;text-wrap:balance}
.in{max-width:1180px;margin:0 auto;padding-left:max(40px,env(safe-area-inset-left));padding-right:max(40px,env(safe-area-inset-right))}
.narrow{max-width:760px}
.skip{position:absolute;left:-999px;top:0}
.skip:focus{left:12px;top:12px;background:#FBBC04;color:#171B1A;padding:8px 12px;z-index:60}
:focus-visible{outline:3px solid #FBBC04;outline-offset:3px;border-radius:6px}
.ov{display:inline-block;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:#FBBC04;font-weight:500}
h1,h2{font-family:'Instrument Serif',Georgia,serif;color:#FFFFFF;letter-spacing:-.01em}
h1 em,h2 em{font-style:italic;color:#FBBC04}
.sub{font-size:18px;color:rgba(244,241,234,.8);max-width:46ch;margin:14px 0 0}
.fine{font-size:13px;color:rgba(244,241,234,.55);margin:16px 0 0}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:50px;padding:0 24px;font-weight:500;font-size:16px;background:#FBBC04;color:#171B1A;border-radius:15px;white-space:nowrap;box-shadow:0 10px 26px -12px rgba(251,188,4,.7);transition:transform .18s ease,box-shadow .18s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 16px 32px -12px rgba(251,188,4,.75)}
.btn.big{height:58px;padding:0 30px;font-size:17px;border-radius:17px}
.btn.sm{height:42px;padding:0 16px;font-size:15px;border-radius:12px;box-shadow:none}
.ar{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* Top bar: transparent over the photo, glass once the page scrolls */
.top{position:fixed;left:0;right:0;top:0;z-index:40;transition:background .25s ease,box-shadow .25s ease}
.top.scrolled{background:rgba(18,16,14,.72);backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);box-shadow:0 1px 0 rgba(244,241,234,.08)}
.nav{display:flex;align-items:center;gap:18px;height:72px}
.brand img{height:30px;width:auto;filter:brightness(0) invert(1)}
.nav .sp{flex:1}
.lang{display:flex;gap:4px;font-size:13px;letter-spacing:.04em;color:rgba(244,241,234,.7)}
.lang a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;border-radius:10px}
.lang a:hover{background:rgba(244,241,234,.1)}
.lang a[aria-current]{color:#171B1A;background:#F4F1EA;font-weight:500}

/* Hero: the real photo, full bleed, the words over its dark edge */
.hero{position:relative;min-height:100vh;min-height:min(100svh,940px);display:flex;align-items:flex-end;overflow:hidden}
@supports not (min-height:min(1px,2px)){.hero{min-height:760px}}
.hero-photo{position:absolute;inset:0}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:60% 45%}
.hero-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,16,14,.92) 0%,rgba(18,16,14,.72) 34%,rgba(18,16,14,.1) 62%,rgba(18,16,14,0) 100%),linear-gradient(180deg,rgba(18,16,14,.55) 0%,rgba(18,16,14,0) 22%,rgba(18,16,14,0) 70%,rgba(18,16,14,.95) 100%)}
.hero-copy{position:relative;z-index:1;width:100%;padding-top:140px;padding-bottom:64px}
.hero h1{font-size:76px;line-height:.98;max-width:12ch;margin:16px 0 20px}
.hero .lead{font-size:20px;line-height:1.5;color:rgba(244,241,234,.9);max-width:38ch;margin:0 0 26px}
.hero .note{margin:16px 0 0;font-size:14.5px;color:rgba(244,241,234,.78)}
.hero .caption{margin:28px 0 0;font-size:12.5px;color:rgba(244,241,234,.55)}

/* Sections */
.sec{padding:96px 0 0}
.sec h2{font-size:54px;line-height:1.02;margin:10px 0 0;max-width:20ch}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:36px}
.pair figure{margin:0;display:flex;flex-direction:column;gap:12px}
.pair img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:24px}
.pair img.paper{filter:saturate(.72)}
.pair figcaption{font-size:16px;line-height:1.4;color:rgba(244,241,234,.75)}
.pair figcaption b{display:block;font-weight:500;color:#FFFFFF;font-size:18px}
.ic{width:24px;height:24px;flex:none;fill:none;stroke:#FBBC04;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.why{list-style:none;margin:32px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 40px}
.why li{display:flex;gap:16px}
.why li .ic{margin-top:4px}
.why b{display:block;font-weight:500;font-size:19px;color:#FFFFFF;margin-bottom:4px}
.why span span,.why li>span{color:rgba(244,241,234,.75)}
.rail{list-style:none;margin:32px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.rail li{display:flex;flex-direction:column;gap:6px;position:relative}
.rail img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:22px;margin-bottom:10px;background:#F2F2F5}
.rail img.screen{object-position:top}
.rail .n{position:absolute;left:14px;top:14px;width:34px;height:34px;border-radius:50%;background:#FBBC04;color:#171B1A;display:flex;align-items:center;justify-content:center;font-weight:500}
.rail b{font-weight:500;font-size:19px;color:#FFFFFF}
.rail span:not(.n){color:rgba(244,241,234,.72)}
.split{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:56px;align-items:center}
.split.rev>.shot{order:2}
.shot{position:relative}
.shot>img:first-child{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:26px}
.shot .crop{position:absolute;left:-28px;right:-28px;bottom:9%;width:calc(100% + 56px);height:auto;border-radius:22px;box-shadow:0 30px 60px -24px rgba(0,0,0,.85)}
.list{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-direction:column}
.list li{padding:18px 0;border-top:1px solid rgba(244,241,234,.14);display:flex;flex-direction:column;gap:4px}
.list li:last-child{border-bottom:1px solid rgba(244,241,234,.14)}
.list b{font-weight:500;font-size:18px;color:#FFFFFF}
.list span{color:rgba(244,241,234,.75)}
.composer{margin-top:24px;border:1px solid rgba(244,241,234,.16);background:rgba(255,255,255,.05);border-radius:22px;padding:18px;display:flex;flex-direction:column;gap:12px;max-width:480px}
.composer .cl{font-size:13px;color:rgba(244,241,234,.6);font-weight:500}
.composer p{margin:0;border:1px solid rgba(244,241,234,.16);border-radius:14px;padding:12px 14px;font-size:16px;color:#FFFFFF}
.composer .cr{display:flex;align-items:center;gap:12px}
.composer .cr span{flex:1;font-size:13px;color:rgba(244,241,234,.6)}
.composer .cr b{display:inline-flex;align-items:center;height:40px;padding:0 16px;border-radius:12px;background:#FBBC04;color:#171B1A;font-size:14.5px;font-weight:500}
.checks{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.checks li{display:flex;gap:10px;align-items:flex-start;color:rgba(244,241,234,.88)}
.ck{width:20px;height:20px;flex:none;margin-top:2px;fill:none;stroke:#FBBC04;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.grid{list-style:none;margin:32px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.grid li{background:rgba(255,255,255,.05);border:1px solid rgba(244,241,234,.1);border-radius:20px;padding:20px 18px;display:flex;flex-direction:column;gap:8px}
.grid b{font-weight:500;font-size:16.5px;color:#FFFFFF;line-height:1.25}
.grid span{font-size:14px;line-height:1.4;color:rgba(244,241,234,.68)}
.row{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.row li{display:flex;flex-direction:column;gap:10px}
.row img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:20px}
.row span{font-size:15px;color:rgba(244,241,234,.85)}
.price .card{margin-top:28px;border:1px solid rgba(244,241,234,.18);border-radius:26px;padding:30px;display:flex;flex-direction:column;gap:6px;background:rgba(255,255,255,.04)}
.amount{margin:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.amount b{font-size:56px;font-weight:500;letter-spacing:-.02em;color:#FBBC04;line-height:1}
.amount span{color:rgba(244,241,234,.72)}
.price .btn{margin-top:22px;align-self:flex-start}
.faq details{border-top:1px solid rgba(244,241,234,.14);padding:18px 0}
.faq details:first-of-type{margin-top:24px}
.faq details:last-of-type{border-bottom:1px solid rgba(244,241,234,.14)}
.faq summary{cursor:pointer;font-weight:500;font-size:18px;list-style:none;display:flex;justify-content:space-between;gap:16px;color:#FFFFFF}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';font-size:24px;line-height:1;color:rgba(244,241,234,.6);transition:transform .25s ease}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq p{margin:10px 0 0;color:rgba(244,241,234,.78)}
.final{padding:120px 0 40px;text-align:center}
.final h2{font-family:'Instrument Serif',Georgia,serif;font-size:72px;line-height:1;margin:0 auto 14px}
.final p{color:rgba(244,241,234,.75);margin:0 0 28px;font-size:18px}
.foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;padding-top:40px;padding-bottom:44px;font-size:14px;color:rgba(244,241,234,.6);border-top:1px solid rgba(244,241,234,.08);margin-top:60px}
.foot img{height:24px;width:auto;filter:brightness(0) invert(1);opacity:.85}
.foot nav{display:flex;flex-wrap:wrap;gap:18px}
.foot a:hover{color:#FFFFFF}
.foot .co{margin-left:auto}

/* Things appear as they come into view */
.js [data-reveal]{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.8,.2,1)}
.js [data-reveal].seen{opacity:1;transform:none}

@media (max-width:1000px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero h1{font-size:60px}
}
@media (max-width:820px){
  .in{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
  .nav{height:62px;gap:10px}
  .brand img{height:24px}
  .lang a{min-width:32px;height:32px}
  .nav .btn.sm{height:40px;padding:0 13px;font-size:14px}
  /* On a phone the photo fills the screen and the words sit on its dark bottom. */
  .hero{min-height:auto;display:block}
  .hero-photo{position:relative;inset:auto;height:78svh;min-height:520px;max-height:720px}
  .hero-photo::after{background:linear-gradient(180deg,rgba(18,16,14,.55) 0%,rgba(18,16,14,0) 20%,rgba(18,16,14,0) 55%,rgba(18,16,14,1) 100%)}
  .hero-copy{margin-top:-190px;padding-top:0;padding-bottom:36px}
  .hero h1{font-size:44px;line-height:1.02;margin:12px 0 14px}
  .hero .lead{font-size:16.5px;margin-bottom:20px}
  .hero .btn.big{width:100%}
  .hero .note{text-align:center}
  .sec{padding-top:64px}
  .sec h2{font-size:38px}
  .sub{font-size:16px}
  .pair{gap:10px;margin-top:22px}
  .pair img{border-radius:16px}
  .pair figcaption{font-size:14px}
  .pair figcaption b{font-size:16px}
  .why{grid-template-columns:1fr;gap:20px}
  .rail{grid-template-columns:repeat(3,78%);overflow-x:auto;margin-left:-18px;margin-right:-18px;padding:0 18px 6px;scroll-padding-inline:18px;scroll-snap-type:x mandatory;scrollbar-width:none}
  .rail::-webkit-scrollbar{display:none}
  .rail li{scroll-snap-align:start}
  .split,.split.rev{grid-template-columns:1fr;gap:28px}
  .split.rev>.shot{order:0}
  .shot .crop{left:-8px;right:-8px;width:calc(100% + 16px);border-radius:16px}
  .grid{gap:10px}
  .grid li{padding:16px 14px}
  .row{gap:10px}
  .amount b{font-size:46px}
  .price .btn{align-self:stretch}
  .final{padding-top:84px}
  .final h2{font-size:48px}
  .foot .co{margin-left:0}
}
@media (max-width:370px){
  .nav .lang{display:none}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .js [data-reveal]{opacity:1;transform:none}
}
