/* NFCQR PERÚ / Immersive video carousel / independent Astro module. */
.hero.hero-carousel {
  --hc-ink:#14100f;--hc-champagne:#e9c18c;--hc-white:#f9f6ef;
  min-height:710px;height:clamp(710px,calc(32.368vw + 150px),765px);
  overflow:hidden;position:relative;isolation:isolate;
  background:radial-gradient(circle at 75% 45%,#42352a 0%,#161310 58%,#090909 100%);
  color:var(--hc-white);
}
.hero-carousel-backdrop {
  position:absolute;z-index:-2;inset:-30px;
  background:
    linear-gradient(90deg,rgba(10,9,8,.9),rgba(22,17,14,.76) 44%,rgba(15,12,10,.67)),
    url("/media/r2/site/video/peru-poster-v1.webp") center 52%/cover no-repeat;
  filter:blur(25px) saturate(.82);transform:scale(1.045);
  pointer-events:none;
}
.hero-carousel-shade {
  position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:
    radial-gradient(ellipse at 79% 46%,rgba(231,169,85,.11),transparent 42%),
    linear-gradient(0deg,rgba(5,5,5,.31),transparent 34%),
    linear-gradient(90deg,rgba(8,7,6,.62),rgba(8,7,6,.03) 82%);
}
.hero-carousel .hero-carousel-shell.shell{
  width:min(1600px,calc(100% - clamp(52px,7vw,160px)));
  max-width:1600px;
  height:100%;
  display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.22fr);
  align-items:center;gap:clamp(40px,5.3vw,100px);
  padding-top:73px;padding-bottom:58px;
  position:relative;z-index:2;
}
.hero-carousel-copy{max-width:650px;min-width:0;align-self:center}
.hero-carousel-eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-size:clamp(11px,.75vw,12.5px);letter-spacing:.13em;
  line-height:1.25;font-weight:700;color:#e9c18c;
}
.hero-carousel-eyebrow::before{
  content:"";width:26px;height:1px;background:#e7bb7a;flex:none;
}
.hero-carousel-copy h1{
  font-family:"Rajdhani",sans-serif !important;
  max-width:660px;margin:19px 0 17px;
  font-size:clamp(2.35rem,3.15vw,3.75rem);
  font-weight:700;line-height:1.06;letter-spacing:-.026em;
  text-wrap:balance;
}
.hero-carousel-copy h1 span{display:block}
.hero-carousel-copy h1 em{
  display:block;margin-top:9px;font-style:normal;
  font-family:"Rajdhani",sans-serif;font-size:.9em;
  font-weight:600;line-height:1.1;letter-spacing:-.012em;color:#e9c18c;
}
.hero-carousel-body{
  max-width:525px;margin:0;
  color:rgba(253,250,244,.82);
  font:500 clamp(15px,.95vw,17.5px)/1.52 "Rajdhani",sans-serif;
  text-wrap:pretty;
}
.hero-carousel-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:27px}
.hero-carousel-actions .btn{
  min-height:45px;padding:12px 19px;
  font-size:15.5px;line-height:1.1;border-radius:10px;
}
.hero-carousel-actions .btn-glass{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.32)}
.hero-carousel-visual{
  width:100%;max-width:800px;justify-self:end;position:relative;min-width:0;
}
.hero-carousel-glow{
  position:absolute;inset:3%;border-radius:24px;
  background:radial-gradient(ellipse,rgba(211,150,61,.31),transparent 72%);
  filter:blur(30px);pointer-events:none;
}
.hero-carousel-frame{
  width:100%;aspect-ratio:16/9;
  max-height:440px;
  position:relative;isolation:isolate;overflow:hidden;
  border:1px solid rgba(240,208,163,.45);border-radius:18px;
  background:linear-gradient(145deg,#1f1c19,#0c0b0a);
  box-shadow:0 30px 90px rgba(0,0,0,.39),
    0 0 50px rgba(188,122,59,.12),
    inset 0 1px rgba(255,255,255,.15);
}
.hero-carousel-frame::before{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:linear-gradient(160deg,rgba(255,255,255,.12),transparent 28%,transparent 78%,rgba(234,172,91,.12));
  z-index:2;pointer-events:none;
}
.hero-carousel-video,.hero-carousel-image,.hero-carousel-poster{
  position:absolute;inset:0;width:100%;height:100%;display:block;
  object-fit:contain;object-position:center;
  background:#15120f;
}
.hero-carousel-frame.has-video-error{background:#281b15}
.hero-carousel-visual button{
  position:absolute;z-index:5;bottom:12px;
  border:1px solid rgba(255,255,255,.31);
  background:rgba(18,16,14,.72);color:#fff;
  backdrop-filter:blur(14px);border-radius:9px;
  padding:8px 12px;min-height:36px;
  font:600 13px "Rajdhani",sans-serif;cursor:pointer;
}
.hero-video-sound{right:14px}
.hero-video-play{left:14px}
.hero-carousel-visual button:hover{border-color:#edc88e;background:rgba(20,16,12,.9)}
.hero-carousel [hidden]{display:none !important}
.hero-carousel-footer.shell{
  width:min(1600px,calc(100% - clamp(52px,7vw,160px)));
  max-width:1600px;
  position:absolute;z-index:7;bottom:17px;left:50%;transform:translateX(-50%);
  display:flex;align-items:center;gap:15px;min-height:37px;
}
.hero-carousel-pagination{display:flex;align-items:center;gap:9px}
.hero-carousel-dot{
  display:block;width:25px;height:5px;border-radius:5px;
  background:rgba(255,255,255,.38);border:0;padding:0;
  cursor:pointer;transition:width .33s ease,background .33s ease;
}
.hero-carousel-dot[aria-current="true"]{width:46px;background:#e6bd7f}
.hero-carousel-dot:focus-visible,.hero-carousel-arrows button:focus-visible{
  outline:2px solid #e9c18c;outline-offset:4px;
}
.hero-carousel-count{font-size:13px;letter-spacing:.12em;font-weight:600;color:rgba(255,255,255,.77)}
.hero-carousel-arrows{margin-left:auto;display:flex;align-items:center;gap:9px}
.hero-carousel-arrows button{
  width:36px;height:36px;display:grid;place-items:center;
  border-radius:50%;color:#fff;
  border:1px solid rgba(238,219,189,.36);
  background:rgba(255,255,255,.07);cursor:pointer;
  font-size:19px;transition:background .22s,border-color .22s;
}
.hero-carousel-arrows button:hover{background:rgba(220,167,96,.22);border-color:#e9c18c}
@keyframes hero-text-enter{from{opacity:.68;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.hero-slide-enter{animation:hero-text-enter .52s cubic-bezier(.22,1,.36,1) both}
/* Editorial photo rails: background blur fills the frame while the primary image remains complete. */
.experiences .story-art,.materials .product-image{
  position:relative;isolation:isolate;overflow:hidden;
  background:#26201c;display:grid;place-items:center;
}
.experiences .story-art::before,.materials .product-image::before{
  content:"";display:block!important;position:absolute;z-index:-1;
  inset:-25px;width:auto;height:auto;
  border:0;border-radius:0;
  background-image:linear-gradient(rgba(18,13,9,.35),rgba(18,13,9,.43)),var(--scene-image,linear-gradient(140deg,#786047,#251c15));
  background-size:cover;background-position:center;
  filter:blur(23px) saturate(.83);transform:scale(1.06);pointer-events:none;
}
.experiences .story-art::after,.materials .product-image::after{
  display:none!important;
}
.experiences .story-art img,.materials .product-image img{
  position:relative;z-index:2;
  width:100%;height:100%;min-height:0;max-height:100%;
  object-fit:contain!important;object-position:center!important;
  padding:clamp(9px,1vw,16px);
  filter:none!important;
  background:transparent!important;
  transform:none!important;
  transition:filter .3s ease!important;
}
.experiences .story:hover .story-art img,.materials .product:hover .product-image img{
  transform:none!important;filter:brightness(1.06)!important;
}
.experiences .story-art{min-height:370px;height:100%}
.experiences .story-art img{height:100%;min-height:0!important}
.materials .product-image{height:420px}
.journey-photo{background:#211915}
.journey-photo img{
  display:block;width:100%;height:auto!important;aspect-ratio:16/9!important;
  object-fit:contain!important;transform:none!important;background:#211915;
}
@media(min-width:1900px){
 .hero.hero-carousel{height:765px;min-height:765px;}
}
@media(max-width:1180px){
 .hero.hero-carousel{min-height:705px;height:705px;}
 .hero-carousel .hero-carousel-shell.shell{gap:32px;grid-template-columns:minmax(0,.91fr) minmax(0,1.1fr)}
 .hero-carousel-copy h1{font-size:clamp(2.45rem,3.3vw,3.25rem)}
 .hero-carousel-body{font-size:16px}
 .hero-carousel-actions .btn{padding:11px 14px;font-size:14.5px}
 .experiences .story-art{min-height:330px}
}
@media(max-width:900px){
 .hero.hero-carousel{height:auto;min-height:0;}
 .hero-carousel .hero-carousel-shell.shell{
   grid-template-columns:1fr;gap:28px;
   width:calc(100% - 56px);
   padding-top:118px;padding-bottom:83px;
 }
 .hero-carousel-copy{max-width:690px}
 .hero-carousel-copy h1{font-size:clamp(2.5rem,5.5vw,3.45rem)}
 .hero-carousel-visual{max-width:720px;justify-self:center}
 .hero-carousel-footer.shell{width:calc(100% - 56px);bottom:17px}
 .experiences .story-art{min-height:310px}
 .materials .product-image{height:380px}
}
@media(max-width:660px){
 .hero-carousel .hero-carousel-shell.shell{
   width:calc(100% - 40px);
   padding-top:106px;padding-bottom:87px;gap:24px;
 }
 .hero-carousel-copy h1{font-size:clamp(2.15rem,9vw,2.8rem);line-height:1.06;margin:17px 0 13px}
 .hero-carousel-copy h1 em{font-size:.88em;margin-top:6px}
 .hero-carousel-eyebrow{font-size:11px;letter-spacing:.1em;line-height:1.45}
 .hero-carousel-body{font-size:16.3px;line-height:1.43}
 .hero-carousel-actions{margin-top:20px;gap:9px}
 .hero-carousel-actions .btn{width:100%;justify-content:center;font-size:15px;padding:11px 16px;min-height:44px}
 .hero-carousel-frame{border-radius:13px}
 .hero-carousel-visual{width:100%;max-width:420px}
 .hero-carousel-footer.shell{width:calc(100% - 40px);bottom:16px}
 .hero-carousel-count{font-size:12px}
 .hero-carousel-arrows button{width:35px;height:35px}
 .hero-carousel-visual button{font-size:12px;min-height:30px;bottom:6px;padding:5px 8px}
 .hero-video-play{left:7px}.hero-video-sound{right:7px}
 .experiences .story-art{height:268px;min-height:268px}
 .experiences .story-art img{padding:8px}
 .materials .product-image{height:365px}
 .journey-photo img{aspect-ratio:16/9!important}
}
@media(prefers-reduced-motion:reduce){
 .hero-slide-enter{animation:none!important}
 .hero-carousel-dot,.hero-carousel-frame,.hero-carousel-arrows button{transition:none!important}
 .hero-carousel-backdrop{transform:none!important}
}

/* Non-cropping banner for the plans section at all viewport sizes. */
.journey-photo{aspect-ratio:1672/940;}
.journey-photo img{
 display:block;width:100%;height:100% !important;aspect-ratio:1672/940 !important;
 object-fit:contain !important;object-position:center center !important;
 padding:0!important;background:#100d0b;transform:none!important;
}
@media(max-width:660px){
 .journey-photo{aspect-ratio:1672/940;}
 .journey-photo img{aspect-ratio:1672/940!important;height:100%!important;}
}

/* Plan imagery is never cropped; full-resolution graphic opens in a separate view. */
.journey-photo{position:relative;}
.journey-image-link{
 display:block;width:100%;height:100%;
 position:relative;text-decoration:none;outline-offset:4px;
}
.journey-image-zoom{
 position:absolute;right:15px;bottom:14px;
 color:#f7eddc;background:rgba(18,14,10,.88);
 border:1px solid rgba(238,190,114,.50);
 border-radius:8px;padding:8px 13px;font:700 15px Rajdhani,sans-serif;
 box-shadow:0 9px 22px rgba(0,0,0,.2);
}
.journey-image-link:hover .journey-image-zoom,
.journey-image-link:focus-visible .journey-image-zoom{
 background:#e8bf86;color:#13110e;
}
@media(max-width:660px){
 .journey-image-zoom{right:7px;bottom:7px;font-size:12px;padding:5px 8px;}
}
