/* First-person IG parcel: local WebP photos, upward lid and home-page preview. */
.ig-opening{position:fixed;inset:0;z-index:9999;background:#ede7dc;display:grid;place-items:center;overflow:hidden;animation:ig-safe-exit 300ms ease-out 8400ms forwards}
.ig-opening[hidden]{display:none}
.ig-opening::before{content:"";position:absolute;inset:-24px;background:linear-gradient(#ede7dc66,#ede7dc99),url('../imagenes/web/apertura-caja-cerrada.webp') center/cover no-repeat;filter:blur(18px);opacity:.65;pointer-events:none}
.ig-opening-stage{position:relative;z-index:1;width:min(100vw,177.684vh);aspect-ratio:1672/941;perspective:1800px;overflow:hidden}
.ig-opening-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.ig-opening-lid{clip-path:polygon(24% 14.5%,75.2% 14.5%,75.5% 67.4%,24.4% 67.4%);transform-origin:50% 14%;backface-visibility:hidden}
.ig-opening-backdrop{clip-path:polygon(0 0,100% 0,100% 14.3%,0 14.3%)}
.ig-opening.is-playing .ig-opening-closed{animation:ig-remove-closed 240ms var(--ease-out,ease-out) 400ms forwards}
.ig-opening.is-playing .ig-opening-lid{animation:ig-real-lid 1050ms var(--ease-io,ease-in-out) 300ms forwards}
.ig-opening.is-playing .ig-opening-backdrop{animation:ig-remove-closed 600ms var(--ease-out,ease-out) 850ms forwards}
.ig-opening.is-playing{animation:ig-safe-exit 350ms var(--ease-out,ease-out) 3500ms forwards}
.ig-opening-skip{position:absolute;z-index:10;right:24px;bottom:max(24px,env(safe-area-inset-bottom));background:#F8FAFCed;color:#0F2A47;border:1px solid #0F2A4726;border-radius:24px;min-height:44px;padding:12px 20px;font:600 14px Montserrat,Arial,sans-serif;cursor:pointer}
.ig-opening-skip:focus-visible{outline:3px solid #2563EB;outline-offset:4px}
.ig-opening-screen{position:fixed;z-index:2;inset:0;width:100vw;height:100vh;height:100dvh;background:var(--bg);overflow:hidden;transform-origin:0 0;opacity:0;pointer-events:none;will-change:transform,opacity}
.ig-opening-screen header{position:relative!important;top:auto!important}
.ig-opening-screen *{animation:none!important;transition:none!important}
.ig-opening-screen [data-r],.ig-opening-screen .in-1,.ig-opening-screen .in-2,.ig-opening-screen .in-3,.ig-opening-screen .in-4{opacity:1!important;transform:none!important}
.ig-opening-screen .shot{opacity:1!important;transform:none!important}.ig-opening-screen .swoosh path{stroke-dashoffset:0!important;opacity:1!important}
.ig-opening-overview .hero-utility{display:none}
.ig-opening-overview .hero{height:calc(100% - 76px)}
.ig-opening-overview .hero .w{min-height:0;height:100%;padding-top:24px;padding-bottom:24px;align-content:center}
.ig-opening-overview .shot{max-height:100%;align-self:center}
.ig-opening-overview .shot>img{max-height:50vh;object-fit:contain}
@keyframes ig-remove-closed{to{opacity:0}}
@keyframes ig-real-lid{0%{transform:rotateX(0deg);opacity:1}72%{opacity:1}100%{transform:rotateX(110deg) translateY(-8%);opacity:0}}
@keyframes ig-safe-exit{to{opacity:0;visibility:hidden;pointer-events:none}}
@media(max-width:600px){
 .ig-opening::before{background-image:linear-gradient(#ede7dc66,#ede7dc99),url('../imagenes/web/apertura-caja-cerrada-mobile.webp')}
 .ig-opening-skip{right:16px;bottom:max(22px,env(safe-area-inset-bottom))}
 .ig-opening-overview .hero .w{display:flex;flex-direction:column;justify-content:center;gap:18px;padding:16px 20px}
 .ig-opening-overview .hero .w>div:first-child{width:100%;flex:none}
 .ig-opening-overview .hero .kick{font-size:10px;margin-bottom:12px}
 .ig-opening-overview .hero h1{font-size:clamp(20px,6vw,30px);line-height:1.08;max-width:20ch}
 .ig-opening-overview .hero .swoosh{width:70%;margin:10px 0 12px}
 .ig-opening-overview .hero .lead,.ig-opening-overview .campaign-actions{display:none}
 .ig-opening-overview .shot{width:100%;max-width:440px;flex:none;margin:0!important}
 .ig-opening-overview .shot>img{height:auto;max-height:38vh;width:100%;object-fit:contain}
 .ig-opening-overview .photo-ticket{padding:12px 16px}
 .ig-opening-overview .photo-ticket strong{font-size:18px}
 .ig-opening-overview .ticket-label,.ig-opening-overview .ticket-bottom{display:none}
}
@media(max-width:600px) and (orientation:portrait){.ig-opening-stage{width:120vw;max-width:none;justify-self:center}}
@media(prefers-reduced-motion:reduce){.ig-opening{display:none!important}.ig-opening *{animation:none!important}}
/* Mobile miniature is a readable 300px-high home overview before it expands. */
@media(max-width:600px){
 .ig-opening-overview header{height:62px;min-height:62px;overflow:hidden}
 .ig-opening-overview header>.w{min-height:62px;height:62px}
 .ig-opening-overview .hero{height:238px}
 .ig-opening-overview .hero .w{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;align-content:center;gap:12px;padding:16px}
 .ig-opening-overview .hero .w>div:first-child{width:auto;min-width:0}
 .ig-opening-overview .hero .kick{font-size:8px;letter-spacing:.06em;line-height:1.4;margin-bottom:10px}
 .ig-opening-overview .hero h1{font-size:clamp(17px,5vw,24px);line-height:1.05;max-width:18ch}
 .ig-opening-overview .hero .swoosh{width:100%;margin:10px 0}
 .ig-opening-overview .shot{width:100%;align-self:center;min-width:0}
 .ig-opening-overview .shot>img{max-height:160px;aspect-ratio:3/2;object-fit:contain;border-radius:12px}
 .ig-opening-overview .photo-ticket{padding:8px 10px;border-radius:0 0 12px 12px}
 .ig-opening-overview .photo-ticket strong{font-size:11px;line-height:1.25}
}

@media(max-width:600px){.ig-opening-overview .hero .w{grid-template-areas:'copy photo';grid-template-rows:1fr}.ig-opening-overview .shot{max-height:none;height:auto}}
