/* Functional cinematic layer. Keep scroll transforms separate from hover. */
html{scroll-padding-top:180px}
#photo-grid .photo-card{animation:none}
#photo-grid .motion-card{filter:none;clip-path:none;transition:none}
#photo-grid .photo-open{transition:transform .55s cubic-bezier(.22,1,.36,1);background:#101616}
#photo-grid .photo-open img,#photo-grid .photo-open:hover img{transition:none;filter:none;transform:none;will-change:auto}
.motion-intro .neural-scene,.cover>img.motion-cover{animation:none;transition:none}
.neural-node:focus-visible{outline:1px solid #e0d4b5;outline-offset:12px;border-radius:50%}
.gallery-page .photo-actions button{background:linear-gradient(145deg,#1c272bbd,#060c0e91)!important;color:#f6f4ed!important;border-color:#ffffff45!important;box-shadow:inset 0 1px #ffffff38,0 8px 25px #0004}
.gallery-page .photo-actions button[aria-pressed=true],#lightbox .outline[aria-pressed=true]{background:linear-gradient(145deg,#d6c8a866,#56767855)!important;color:#fff5dd!important;border-color:#dcc9a9aa!important}
.gallery-page .pin-grid>div{color:#f5f0e8;background:#ffffff08;border:1px solid #ffffff20;border-radius:18px}.gallery-page .pin-grid small{color:#bac2bf}
.gallery-page .qr-card{background:white;border-radius:18px;padding:12px;width:264px;max-width:100%;margin:24px auto}.qr-card img{display:block;width:100%;height:auto}
.gallery-page .guest-action-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.gallery-qr-button{margin-left:auto;border-radius:999px!important;white-space:nowrap}.gallery-qr-button>span{font-size:24px}
.gallery-page .editor-toolbar{color:#abb4ae}.gallery-page .video-placeholder{background:#0a1011;color:#bdc5bc}.gallery-page .video-info h3{color:#eee9df}
.viewer-stage{position:relative;flex:1;min-height:0;width:100%;overflow:hidden;touch-action:pinch-zoom;isolation:isolate}
.viewer-stage .viewer-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-select:none;will-change:transform,opacity}
#lightbox .lightbox-controls{min-height:48px}#viewer-counter{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
#lightbox .actions button[aria-pressed=true]{border-color:#c8b586!important}
.guest-viewer-stage{touch-action:pinch-zoom}#guest-large,.guest-slide-incoming{width:100%;height:100%;object-fit:contain}
.guest-page .guest-like{border:1px solid #ffffff3b;background:linear-gradient(145deg,#ffffff16,#ffffff06);color:#f2ede4;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-radius:999px}
.guest-page .guest-like[aria-pressed=true]{color:#ffe0cb;background:linear-gradient(145deg,#aa8a6755,#3b60604a);border-color:#d2b58e99}
.guest-page .guest-video-box{background:#ffffff05;border-color:#ffffff20;color:#e5e4dc}
.guest-page .guest-video-box p{color:#b4bcb7}
.guest-page .guest-card{animation:none}
.guest-page .guest-card-meta{color:#b8bfb8}.guest-page .guest-card-meta strong{color:#eeeee5}
body:not(.portfolio-page){--paper:#080c0d;--white:#f1eee5;--ink:#e9e8df;--muted:#a6afab;--line:#ffffff22;background:#080c0d;color:#e9e8df}
body:not(.portfolio-page) .primary{color:#0d1415;background:#e3e5dc;border-color:#e3e5dc;border-radius:999px}
body:not(.portfolio-page) .primary:hover{background:#fffaf0}
body:not(.portfolio-page) .card-photo{background:#12191a}
body:not(.portfolio-page) .badge{background:#152020bd;color:#f5f0e7;border:1px solid #ffffff30;backdrop-filter:blur(12px);border-radius:999px}
body:not(.portfolio-page) .error{color:#ffada6}
body:not(.portfolio-page) #toast{background:#223233;color:#fff;border:1px solid #ffffff22;border-radius:16px;box-shadow:0 16px 50px #0006}
body:not(.portfolio-page) dialog:not(:has(#lightbox)){background:#0b1214;color:#f1eee5;border-color:#ffffff28;border-radius:24px}
body:not(.portfolio-page) input,body:not(.portfolio-page) select{background:#ffffff07;color:#f0eee7;border-color:#ffffff27;color-scheme:dark}
body:not(.portfolio-page) select option{background:#121b1c;color:#eee}
body:not(.portfolio-page) .outline{border-radius:999px}
@media(max-width:700px){html{scroll-padding-top:160px}.gallery-page .guest-action-row{gap:12px}.gallery-qr-button{margin:0;width:100%;min-height:44px}.gallery-page .guest-upload-cta,.gallery-page .whatsapp-share{flex:1 1 200px}.viewer-stage{min-height:80px}#photo-grid .photo-open img{transform:none!important}.photo-actions button{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}#photo-grid .photo-card{transform:none!important;opacity:1!important;visibility:visible!important}#photo-grid .photo-open,#photo-grid .photo-open img{transform:none!important;transition:none!important}.neural-scene{transform:none!important}.viewer-stage .viewer-slide{will-change:auto}}
/* Simple icons, generous invisible touch targets. */
.selection-icon{display:inline-block;width:23px;height:23px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.gallery-page .photo-actions button,.gallery-page .photo-actions button[aria-pressed=true]{width:44px;height:44px;padding:10px;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:white!important;animation:none!important;filter:drop-shadow(0 1px 3px #000b)}
.gallery-page .photo-actions button:before,.gallery-page .photo-actions button:after{display:none}
.photo-actions .selection-icon{width:24px;height:24px;stroke-width:1.65}
.photo-actions button[aria-pressed=true] .heart-icon,.guest-like[aria-pressed=true] .heart-icon{fill:currentColor}
.photo-actions button[aria-pressed=true] .frame-icon rect{fill:currentColor;fill-opacity:.3;stroke-width:2.2}
.gallery-page .photo-actions button:hover{transform:scale(1.08)!important;box-shadow:none!important}
#lightbox #light-album,#lightbox #light-frame,#lightbox #light-album[aria-pressed=true],#lightbox #light-frame[aria-pressed=true]{border:0!important;background:none!important;border-radius:0;box-shadow:none!important;backdrop-filter:none;-webkit-backdrop-filter:none;gap:8px}
#lightbox #light-album:before,#lightbox #light-frame:before{display:none}
#lightbox #light-album[aria-pressed=true] .heart-icon{fill:currentColor}
#lightbox #light-frame[aria-pressed=true] .frame-icon rect{fill:currentColor;fill-opacity:.24;stroke-width:2}
.gallery-page .tabs button{display:inline-flex;align-items:center;gap:7px}.gallery-page .tabs .selection-icon{width:19px;height:19px}
.guest-page .guest-like,.guest-page .guest-like[aria-pressed=true],.guest-viewer-meta .guest-like{border:0;background:none;box-shadow:none;border-radius:0;backdrop-filter:none;-webkit-backdrop-filter:none;min-width:44px;min-height:44px;gap:8px;color:#f0eee6}
.guest-page .guest-like:before,.guest-page .guest-like:after{display:none}
.guest-page .guest-like .heart-icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5}
.guest-page .guest-like[aria-pressed=true] .heart-icon{fill:currentColor}
.guest-heart-icon{display:inline-block;width:23px;height:23px;vertical-align:middle;flex:none}.guest-page .guest-like .guest-like-count{font:12px var(--sans);margin:0}.winner-meta .guest-heart-icon,.guest-top-grid .guest-heart-icon{width:18px;height:18px;margin-right:5px}
@media(max-width:700px){.neural-node:nth-child(2),.neural-node:nth-child(4){left:19%}.neural-node:nth-child(3),.neural-node:nth-child(5){left:81%}}
[hidden]{display:none!important}
.guest-page .guest-photo-card{animation:none}.guest-page .guest-photo-card .photo-open img{display:block;width:100%;height:auto}.guest-page .guest-photo-card .photo-open{min-height:80px;background:#111819}
/* Four explicit paths: studio story, professional photos, guest photo/video uploads. */
.neural-navigation .neural-node{width:52px;height:52px}
.neural-navigation .neural-node:nth-child(1){left:50%;top:50%}
.neural-navigation .neural-node:nth-child(2){left:18%;top:32%}
.neural-navigation .neural-node:nth-child(3){left:82%;top:32%}
.neural-navigation .neural-node:nth-child(4){left:50%;top:77%}
.neural-navigation .neural-node span{opacity:.92;transform:translate(-50%,0);pointer-events:auto;min-height:36px;display:flex;align-items:center;justify-content:center}
.neural-navigation .neural-node:disabled{cursor:not-allowed;opacity:.38}
.neural-navigation .neural-node:disabled:before,.neural-navigation .neural-node:disabled i,.neural-navigation .neural-node:disabled i:after{animation:none;box-shadow:none}
.neural-navigation .neural-node:disabled:hover{filter:none}
.neural-navigation .neural-node:disabled:hover i{transform:none;background:#aeb9b1}
.neural-navigation .neural-node[aria-busy=true] span{color:#c4d5db}
.participation-copy h2{font-size:clamp(34px,5vw,52px);line-height:1.08;max-width:11em}
.participation-copy>p:not(.eyebrow){color:#bbc5c8;line-height:1.7}
.participation-copy strong{font-weight:500;color:#f2f1e9}
.participation-copy .participation-invitation{font:italic 26px/1.3 var(--serif);color:#eee9de}
.participation-copy .actions{margin:30px 0 24px}
.participation-copy .hint{font-size:12px}
.guest-page>header{height:auto;min-height:82px;gap:24px;padding-top:16px;padding-bottom:16px;align-items:center}
.guest-navigation{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.guest-navigation .guest-nav-button{min-height:44px;padding:10px 15px;border:1px solid #ffffff26;border-radius:999px;background:linear-gradient(145deg,#ffffff10,#ffffff03);font:12px/1.2 var(--sans);color:#e7edec;white-space:nowrap;box-shadow:inset 0 1px #ffffff12;transition:background .2s,border-color .2s}
.guest-navigation .guest-nav-button:hover{background:#ffffff16;border-color:#ffffff50}
.guest-navigation .guest-nav-button:disabled{opacity:.38;cursor:not-allowed;background:#ffffff04;border-color:#ffffff15}
.guest-navigation .guest-nav-button:focus-visible{outline:2px solid #c3d3d8;outline-offset:3px}
#guest-upload-area,#guest-photos-section,#guest-photo-box,#guest-video-box{scroll-margin-top:150px}
.guest-contribution-copy{max-width:650px;color:#b7c1c4;line-height:1.8;margin:0 0 30px}
.guest-contribution-copy strong{font-weight:500;color:#f0eee5}
.guest-page .guest-upload-box:focus-within,.guest-page .guest-video-box:focus-within{outline:2px solid #c3d3d8;outline-offset:5px}

/* Salida clara y discreta para modales y visores inmersivos. */
#modal>.close,dialog:has(#lightbox) .close{display:inline-flex;align-items:center;justify-content:center;gap:8px;top:max(14px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));width:auto;height:42px;padding:0 16px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.055));color:#f6f3ea;font:500 11px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;box-shadow:inset 0 1px rgba(255,255,255,.25),0 12px 35px rgba(0,0,0,.32);backdrop-filter:blur(20px) saturate(1.3);-webkit-backdrop-filter:blur(20px) saturate(1.3)}
#modal>.close span:first-child{font-size:17px;line-height:1}.close:focus-visible{outline:2px solid #f1eadb;outline-offset:3px}.close:hover{background:rgba(255,255,255,.2)}
body:not(.viewer-open) #modal{padding-top:72px}

/* Profundidad tridimensional de la bienvenida, conservada durante la navegación. */
.neural-intro{--tilt-x:0deg;--tilt-y:0deg;perspective:1200px}
.neural-network{transform:rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(20px);transition:transform 1.1s cubic-bezier(.16,1,.3,1)}
.neural-nodes{transform:rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(38px);transition:transform 1.1s cubic-bezier(.16,1,.3,1)}
@media(max-width:640px){#modal>.close,dialog:has(#lightbox) .close{height:40px;padding:0 13px;font-size:10px}}

/* La Galería Magno ocupa el lienzo completo; sus controles flotan sin reducir la fotografía. */
#lightbox.professional-viewer{position:relative;width:100vw;height:100dvh;padding:0}
#lightbox.professional-viewer .viewer-stage{flex:none;width:100vw;height:100dvh}
#lightbox.professional-viewer .lightbox-controls{position:absolute;z-index:5;left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));margin:0;pointer-events:none}
#lightbox.professional-viewer .lightbox-controls>*{pointer-events:auto}
#lightbox.professional-viewer #viewer-counter{padding:10px 16px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(6,9,10,.58);color:#e8e5dc;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
#lightbox.professional-viewer #viewer-actions:empty{display:none}
@media(max-width:700px){
 .neural-navigation .neural-node:nth-child(1){left:50%;top:51%}
 .neural-navigation .neural-node:nth-child(2){left:20%;top:32%}
 .neural-navigation .neural-node:nth-child(3){left:80%;top:32%}
 .neural-navigation .neural-node:nth-child(4){left:50%;top:77%}
 .neural-navigation .neural-node span{font-size:9px;min-width:94px;min-height:36px}
 .guest-page>header{display:flex;flex-wrap:wrap;gap:12px;padding:12px 18px 15px;min-height:0}
 .guest-page>header .brand-logo img{height:34px;width:auto}
 .guest-navigation{flex:1 0 100%;justify-content:flex-start;gap:6px}
 .guest-navigation .guest-nav-button{flex:1 0 calc(50% - 6px);padding:10px 8px;font-size:11px}
 #guest-upload-area,#guest-photos-section,#guest-photo-box,#guest-video-box{scroll-margin-top:190px}
 .participation-copy .actions{align-items:stretch;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){.guest-navigation .guest-nav-button{transition:none}}

/* Podio del concurso: tres posiciones claras y una acción directa. */
.guest-award-copy{max-width:680px}.guest-award-copy h2{margin-bottom:.45rem}.guest-award-copy p:last-child{max-width:58ch;color:rgba(255,255,255,.72)}
.guest-winner-card>button,.podium-card>button{position:relative;overflow:hidden;cursor:pointer}
.ranking-open{position:absolute;left:50%;bottom:18px;z-index:4;translate:-50% 0;min-width:max-content;padding:10px 16px;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(8,11,14,.58);color:#fff;font:600 11px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;box-shadow:0 10px 32px rgba(0,0,0,.3);backdrop-filter:blur(18px) saturate(135%);-webkit-backdrop-filter:blur(18px) saturate(135%);transition:transform .35s cubic-bezier(.22,1,.36,1),background .35s ease}
.guest-winner-card>button:hover .ranking-open,.podium-card>button:hover .ranking-open{transform:translateY(-4px);background:rgba(255,255,255,.18)}
.guest-runner-up .guest-top-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.podium-card>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.podium-card>div>div{display:grid;gap:4px}.podium-card small,.winner-meta small{display:block;color:rgba(255,255,255,.58)}
.guest-top-grid article>button>.podium-number{display:grid;place-items:center;position:absolute;top:14px;left:14px;z-index:5;width:38px;height:38px;border:1px solid rgba(255,255,255,.38);border-radius:50%;background:rgba(8,11,14,.68);color:#fff;font:600 15px var(--sans);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.guest-top-grid article>button>.ranking-open{position:absolute;left:50%;top:auto;bottom:18px;z-index:4;translate:-50% 0;display:block;width:auto;height:auto;min-width:max-content;padding:10px 16px;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(8,11,14,.58);color:#fff;font:600 11px/1 var(--sans)}
.podium-empty{min-height:230px;border:1px dashed rgba(255,255,255,.18);background:rgba(255,255,255,.025)}.podium-placeholder{min-height:230px;display:grid!important;place-content:center;justify-items:center!important;gap:8px!important;color:rgba(255,255,255,.55)}.podium-placeholder .podium-number{position:static;width:46px;height:46px}.podium-placeholder b{color:rgba(255,255,255,.82)}
.guest-winner-card>button:focus-visible,.podium-card>button:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(max-width:640px){.guest-runner-up .guest-top-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.guest-top-grid article>button>.ranking-open{bottom:10px;padding:9px 11px;font-size:9px;letter-spacing:.06em}.guest-top-grid article>button>.podium-number{top:9px;left:9px;width:32px;height:32px}.podium-empty,.podium-placeholder{min-height:180px}}

/* El visor de invitados se descarta como una tarjeta de iPhone: arrastrando hacia abajo. */
#guest-viewer{transform-origin:50% 100%;overscroll-behavior:none}
#guest-viewer #guest-close{position:absolute;z-index:12;top:max(8px,env(safe-area-inset-top));left:50%;right:auto;width:170px;height:40px;padding:5px 14px;translate:-50% 0;display:grid;place-items:center;gap:4px;border:0;border-radius:0;background:transparent;color:rgba(255,255,255,.58);box-shadow:none;font:500 8px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;touch-action:none}
#guest-viewer .viewer-drag-handle{display:block;width:44px;height:5px;border-radius:999px;background:rgba(255,255,255,.64);box-shadow:0 0 18px rgba(255,255,255,.14)}
#guest-viewer .viewer-close-label{display:block;opacity:.72}
#guest-viewer #guest-close:focus-visible{outline:1px solid rgba(255,255,255,.72);outline-offset:2px;border-radius:12px}

/* Entrada negra y estrellas interactivas: núcleo blanco, halo suave y sin órbitas. */
.neural-navigation{background:#000!important}
.neural-navigation:before{background:radial-gradient(circle at var(--mouse-x) var(--mouse-y),rgba(255,255,255,.075),transparent 17%),linear-gradient(180deg,#000 0,#030303 52%,#000 100%)!important}
.neural-navigation .neural-scene{opacity:.48;filter:grayscale(1) saturate(0) contrast(1.24) brightness(.48);mix-blend-mode:screen}
.neural-navigation .neural-beam{background:linear-gradient(105deg,transparent 26%,rgba(255,255,255,.025) 40%,rgba(255,255,255,.11) 50%,rgba(255,255,255,.025) 60%,transparent 74%);opacity:.62}
.neural-navigation .neural-network polyline{stroke:#fff;opacity:.11;stroke-dasharray:1.5 3}
.neural-navigation.is-ready .neural-heading{opacity:1!important}
.neural-navigation .neural-heading h1,.neural-navigation .neural-heading span{color:#fff!important;text-shadow:0 0 26px rgba(255,255,255,.34)}
.neural-navigation .neural-heading span{font-style:normal;font-weight:500;letter-spacing:.2em;text-transform:uppercase}
.neural-navigation .neural-node{transform-style:flat;perspective:none}
.neural-navigation .neural-node:before{width:150px;height:150px;border:0;background:radial-gradient(circle,rgba(255,255,255,.34) 0,rgba(255,255,255,.14) 6%,rgba(255,255,255,.045) 24%,transparent 67%);filter:blur(9px);box-shadow:none;transform:scale(.72);animation:magnoStarHalo 4.6s cubic-bezier(.45,0,.55,1) infinite}
.neural-navigation .neural-node i{position:relative;width:8px;height:8px;border:0;background:#fff;border-radius:50%;box-shadow:0 0 5px #fff,0 0 16px rgba(255,255,255,.92),0 0 44px rgba(255,255,255,.58),0 0 90px rgba(255,255,255,.22);animation:magnoStarBreathe 4.6s cubic-bezier(.45,0,.55,1) infinite}
.neural-navigation .neural-core i{width:11px;height:11px}
.neural-navigation .neural-node i:before,.neural-navigation .neural-node i:after{display:none!important}
.neural-navigation .neural-node:nth-child(2) i,.neural-navigation .neural-node:nth-child(2):before{animation-delay:-1.1s}
.neural-navigation .neural-node:nth-child(3) i,.neural-navigation .neural-node:nth-child(3):before{animation-delay:-2.2s}
.neural-navigation .neural-node:nth-child(4) i,.neural-navigation .neural-node:nth-child(4):before{animation-delay:-3.3s}
.neural-navigation .neural-node:hover i,.neural-navigation .neural-node:focus-visible i{transform:scale(1.6);background:#fff;box-shadow:0 0 8px #fff,0 0 24px #fff,0 0 70px rgba(255,255,255,.7),0 0 130px rgba(255,255,255,.3)}
.neural-navigation .neural-node span{transform:translate(-50%,5px);text-shadow:0 2px 16px #000,0 0 18px rgba(255,255,255,.26);transition:transform .6s cubic-bezier(.16,1,.3,1),color .4s ease}
.neural-navigation .neural-node:hover span,.neural-navigation .neural-node:focus-visible span{transform:translate(-50%,0);color:#fff}
@keyframes magnoStarHalo{0%,100%{opacity:.28;transform:scale(.66)}50%{opacity:.9;transform:scale(1.1)}}
@keyframes magnoStarBreathe{0%,100%{filter:brightness(.88);transform:scale(.88)}50%{filter:brightness(1.35);transform:scale(1.18)}}
@media(prefers-reduced-motion:reduce){.neural-navigation .neural-node:before,.neural-navigation .neural-node i{animation:none}}

/* Descarga múltiple independiente de álbum y cuadro QR. */
.batch-controls{display:flex;align-items:center;justify-content:flex-end;gap:18px;padding:18px 0 34px}.batch-controls.is-active{position:sticky;z-index:18;top:174px;padding:12px 16px;margin:0 0 30px;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(5,6,6,.78);box-shadow:0 18px 55px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.09);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.batch-download-bar{display:flex;align-items:center;justify-content:flex-end;gap:16px}.batch-download-bar span{display:grid;gap:2px;color:rgba(244,241,234,.72);font-size:12px}.batch-download-bar strong{color:#fff;font:400 22px var(--serif)}.batch-download-bar small{max-width:390px;color:rgba(244,241,234,.5);font-size:10px;line-height:1.35}
.batch-mode .photo-card{position:relative}.batch-mode .photo-open{cursor:pointer}.batch-mode .photo-open img{transition:transform .45s cubic-bezier(.16,1,.3,1),filter .35s,opacity .35s}.batch-check{position:absolute;z-index:6;top:10px;right:10px;display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.72);border-radius:50%;background:rgba(0,0,0,.48);color:#070707;box-shadow:0 5px 18px rgba(0,0,0,.34);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.batch-check span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:14px}.batch-check[aria-pressed=true] span{background:#fff}.batch-selected .photo-open img{transform:scale(.975);filter:brightness(.72)}.batch-selected .photo-open:after{content:'';position:absolute;inset:0;border:2px solid rgba(255,255,255,.92);pointer-events:none}
@media(max-width:640px){.batch-controls{padding:14px 10px 26px;justify-content:stretch}.batch-controls.is-active{top:132px;display:grid;margin-left:0;margin-right:0}.batch-controls>.outline{width:100%}.batch-download-bar{justify-content:space-between}.batch-download-bar .primary{padding:11px 13px;font-size:9px}.batch-check{top:7px;right:7px;width:30px;height:30px}.batch-check span{width:21px;height:21px}}

/* Minimal download actions shared by the couple and guest experiences. */
.viewer-download,.media-download{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;width:max-content;min-height:2.25rem;padding:.42rem .15rem;color:rgba(248,246,239,.82);font:500 .68rem/1 var(--sans);letter-spacing:.13em;text-transform:uppercase;text-decoration:none;background:transparent;border:0;border-bottom:1px solid rgba(248,246,239,.28);transition:color .22s ease,border-color .22s ease,transform .22s cubic-bezier(.22,1,.36,1)}
.viewer-download svg,.media-download svg{width:1.05rem;height:1.05rem;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;flex:none}
.viewer-download:hover,.viewer-download:focus-visible,.media-download:hover,.media-download:focus-visible{color:#fff;border-color:rgba(248,246,239,.8);transform:translateY(-1px)}
.viewer-download:focus-visible,.media-download:focus-visible{outline:1px solid rgba(255,255,255,.6);outline-offset:5px}
.media-actions{display:flex;align-items:center;justify-content:flex-end;gap:1rem;flex-wrap:wrap}
.guest-viewer-actions{display:flex;align-items:center;justify-content:flex-end;gap:1rem}
.guest-viewer-meta .viewer-download{color:rgba(255,255,255,.84)}
@media(max-width:600px){.viewer-download,.media-download{font-size:.62rem;letter-spacing:.1em}.guest-viewer-meta{gap:.75rem}.guest-viewer-actions{gap:.7rem}.media-actions{justify-content:flex-start}}

/* La cabecera pública continúa el lienzo negro de la presentación. */
body.gallery-page>header,body.guest-page>header{background:#000!important;color:#fff;border-bottom-color:rgba(255,255,255,.12);box-shadow:0 12px 42px rgba(0,0,0,.28);backdrop-filter:blur(20px) saturate(1.15);-webkit-backdrop-filter:blur(20px) saturate(1.15)}
body.gallery-page>header .brand-logo img,body.guest-page>header .brand-logo img{filter:grayscale(1) invert(1);opacity:.94}
body.gallery-page>header nav,body.gallery-page>header nav a,body.gallery-page>header nav button,body.guest-page>header nav,body.guest-page>header nav button{color:#fff}
body.gallery-page>header nav a:hover,body.gallery-page>header nav button:hover{border-color:rgba(255,255,255,.78)}

/* Carga profesional: un destino grande y toda la página acepta fotografías. */
.professional-upload-panel{display:grid;grid-template-columns:minmax(230px,.62fr) minmax(360px,1.38fr);gap:clamp(24px,4vw,72px);align-items:stretch;margin:0 0 28px;padding:clamp(24px,3.2vw,52px);border:1px solid rgba(255,255,255,.14);background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.018));box-shadow:inset 0 1px rgba(255,255,255,.075)}
.professional-upload-copy{align-self:center;max-width:460px}.professional-upload-copy .eyebrow{margin-bottom:14px;color:rgba(239,229,205,.68)}.professional-upload-copy h3{margin:0 0 14px;color:#f5f1e8;font-size:clamp(30px,3.5vw,52px);letter-spacing:-.025em}.professional-upload-copy>p:last-child{margin:0;color:rgba(241,239,232,.58);line-height:1.75}.professional-upload-copy strong{color:#f4efe4;font-weight:500}
.gallery-page .professional-dropzone{min-height:220px;margin:0!important;padding:30px!important;align-items:center!important;justify-content:center;text-align:center;border:1px dashed rgba(255,255,255,.34);background:radial-gradient(circle at 50% 35%,rgba(255,255,255,.08),rgba(255,255,255,.025) 58%,transparent);transition:border-color .3s ease,background .3s ease,transform .45s cubic-bezier(.16,1,.3,1),box-shadow .35s ease}
.gallery-page .professional-dropzone:hover,.gallery-page .professional-dropzone.drag{border-color:rgba(255,255,255,.78);background:radial-gradient(circle at 50% 35%,rgba(255,255,255,.17),rgba(255,255,255,.04) 62%,transparent);transform:translateY(-2px);box-shadow:0 20px 55px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.12)}
.professional-dropzone .professional-upload-icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:8px;border:1px solid rgba(255,255,255,.42);border-radius:50%;color:#fff;font:300 28px/1 var(--sans);transition:transform .45s cubic-bezier(.16,1,.3,1),background .3s ease}.professional-dropzone:hover .professional-upload-icon,.professional-dropzone.drag .professional-upload-icon{transform:scale(1.08) rotate(90deg);background:rgba(255,255,255,.1)}
.gallery-page .professional-dropzone strong{font:400 clamp(24px,2.5vw,36px)/1.1 var(--serif);text-transform:none;letter-spacing:-.02em}.gallery-page .professional-dropzone>span:not(.professional-upload-icon){color:rgba(242,239,232,.68);font-size:12px}.professional-dropzone small{color:rgba(242,239,232,.42);font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.professional-drop-overlay{position:fixed;z-index:10000;inset:0;display:grid;place-items:center;padding:28px;background:rgba(0,0,0,.88);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s ease,visibility .28s ease;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.professional-drop-overlay.is-visible{opacity:1;visibility:visible}.professional-drop-overlay>div{display:grid;place-items:center;gap:16px;width:min(680px,92vw);min-height:360px;padding:42px;border:1px dashed rgba(255,255,255,.66);background:radial-gradient(circle,rgba(255,255,255,.11),transparent 65%);text-align:center}.professional-drop-overlay span{display:grid;place-items:center;width:78px;height:78px;border:1px solid rgba(255,255,255,.58);border-radius:50%;color:#fff;font-size:38px}.professional-drop-overlay strong{max-width:18ch;color:#fff;font:400 clamp(32px,5vw,64px)/1.02 var(--serif)}.professional-drop-overlay small{color:rgba(255,255,255,.58);letter-spacing:.16em;text-transform:uppercase}
@media(max-width:820px){.professional-upload-panel{grid-template-columns:1fr;padding:24px 18px}.gallery-page .professional-dropzone{min-height:190px}.professional-upload-copy{padding:4px 4px 0}.professional-drop-overlay>div{min-height:280px}}

/* Paleta final Magno: negro neutro, grafito y marfil; sin matices azules. */
body:not(.portfolio-page){--paper:#050505;--white:#f3f0e8;--ink:#ece9e1;--muted:#aaa79f;--line:rgba(255,255,255,.14);background:#050505;color:#ece9e1}
body.gallery-page,body.guest-page{background:#050505}
body:not(.portfolio-page) .card-photo,#photo-grid .photo-open,.guest-page .guest-photo-card .photo-open{background:#10100f}
body:not(.portfolio-page) .badge{background:rgba(15,15,14,.78);color:#f5f1e8}
body:not(.portfolio-page) #toast{background:#171715;color:#fff;border-color:rgba(255,255,255,.16)}
body:not(.portfolio-page) dialog:not(:has(#lightbox)){background:#0d0d0c;color:#f2efe7;border-color:rgba(255,255,255,.18)}
body:not(.portfolio-page) input,body:not(.portfolio-page) select{background:rgba(255,255,255,.055);color:#f2efe7;border-color:rgba(255,255,255,.18)}
body:not(.portfolio-page) select option{background:#121211;color:#f2efe7}
.gallery-page .video-placeholder{background:#0d0d0c;color:#c1bdb4}
.gallery-page .pin-grid small,.gallery-page .editor-toolbar,.guest-page .guest-video-box p,.guest-page .guest-card-meta,.participation-copy>p:not(.eyebrow),.guest-contribution-copy{color:#b9b5ad}
.neural-navigation .neural-node:disabled:hover i{background:#b9b5ad}
.neural-navigation .neural-node[aria-busy=true] span{color:#d8d4cb}
.guest-navigation .guest-nav-button{color:#ede9e0}
.guest-navigation .guest-nav-button:focus-visible,.guest-page .guest-upload-box:focus-within,.guest-page .guest-video-box:focus-within{outline-color:#ddd7ca}
#lightbox.professional-viewer #viewer-counter,.ranking-open,.guest-top-grid article>button>.ranking-open,.guest-top-grid article>button>.podium-number{background:rgba(7,7,7,.68)}
body.gallery-page>header,body.guest-page>header{background:#000!important;box-shadow:0 12px 42px rgba(0,0,0,.34)}

/* Galería inmersiva: controles compactos y contenido visual continuo. */
.gallery-page .editorial-content{padding:clamp(42px,5vw,76px) clamp(8px,1.35vw,24px) 120px}
.gallery-page .collection-heading,.gallery-page .batch-controls,.gallery-page .admin-selection-panel,.gallery-page .selection-bar,.gallery-page .selection-help,.gallery-page .editor-toolbar,.gallery-page .compact-upload-status{margin-left:clamp(4px,2.7vw,46px);margin-right:clamp(4px,2.7vw,46px)}
.collection-heading-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:14px;flex-wrap:wrap;text-align:right}
.collection-heading-actions>p{margin:0}
.compact-upload{min-height:38px;padding:8px 14px;border-color:rgba(255,255,255,.2)!important;border-radius:999px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.025))!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.compact-upload-status:empty{display:none}.compact-upload-status{min-height:0;margin-top:-14px;margin-bottom:24px}
.gallery-page #photo-grid{column-gap:clamp(5px,.7vw,12px)}
.gallery-page #photo-grid .photo-card{margin-bottom:clamp(6px,.75vw,13px)}

/* Herramientas editoriales: iconos discretos dentro de cada fotografía. */
.gallery-page #photo-grid .photo-card{position:relative}
.gallery-page .photo-editor-icons{position:absolute;z-index:8;right:7px;bottom:7px;display:flex;align-items:center;gap:2px;margin:0;padding:3px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(4,4,4,.54);box-shadow:0 8px 24px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.09);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);opacity:.34;transition:opacity .22s ease,transform .35s cubic-bezier(.16,1,.3,1)}
.gallery-page .photo-card:hover .photo-editor-icons,.gallery-page .photo-card:focus-within .photo-editor-icons{opacity:1;transform:translateY(-1px)}
.gallery-page .photo-tool{display:grid;place-items:center;width:30px;height:30px;padding:7px;border:0;border-radius:50%;color:rgba(255,255,255,.86);background:transparent;box-shadow:none;text-decoration:none;transition:color .2s ease,background .2s ease,transform .25s cubic-bezier(.16,1,.3,1)}
.gallery-page .photo-tool svg{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.gallery-page .photo-tool:hover,.gallery-page .photo-tool:focus-visible{color:#fff;background:rgba(255,255,255,.13);transform:scale(1.08)}
.gallery-page .photo-tool.danger:hover,.gallery-page .photo-tool.danger:focus-visible{color:#ffd8d0;background:rgba(126,37,27,.24)}
.gallery-page .photo-tool:disabled{opacity:.32;transform:none}
@media(pointer:coarse){.gallery-page .photo-editor-icons{opacity:.78}.gallery-page .photo-tool{width:34px;height:34px;padding:8px}}

/* Los videos se exploran como imágenes; los detalles aparecen solo al abrirlos. */
.video-gallery,.guest-videos .video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,.8vw,14px)}
.video-tile{position:relative;min-width:0;overflow:hidden;background:#080808;animation:photoIn .6s cubic-bezier(.16,1,.3,1) both;animation-delay:var(--delay)}
.video-tile-open{display:block;width:100%;padding:0;color:#fff;text-align:left;background:#080808;overflow:hidden}
.video-tile .video-frame{display:block;position:relative;width:100%;aspect-ratio:16/10;overflow:hidden;background:#0b0b0a}
.video-tile .video-frame video{position:absolute;z-index:1;inset:0;width:100%;height:100%;object-fit:cover;background:#090909;pointer-events:none;transform:scale(1.008);transition:transform .8s cubic-bezier(.16,1,.3,1),filter .45s ease}
.video-tile-open:hover video{transform:scale(1.04);filter:brightness(.8)}
.video-tile .video-placeholder{z-index:0}
.video-tile .video-play{position:absolute;z-index:4;left:50%;top:50%;display:grid;place-items:center;width:52px;height:52px;padding-left:3px;border:1px solid rgba(255,255,255,.38);border-radius:50%;translate:-50% -50%;color:#fff;font-size:14px;background:linear-gradient(145deg,rgba(255,255,255,.17),rgba(255,255,255,.045));box-shadow:inset 0 1px rgba(255,255,255,.25),0 12px 38px rgba(0,0,0,.32);backdrop-filter:blur(18px) saturate(1.25);-webkit-backdrop-filter:blur(18px) saturate(1.25);transition:transform .5s cubic-bezier(.16,1,.3,1),background .35s}
.video-tile-open:hover .video-play{transform:scale(1.1);background:rgba(255,255,255,.22)}
.video-origin{position:absolute;z-index:4;left:14px;bottom:12px;color:rgba(255,255,255,.78);font:500 8px/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;text-shadow:0 2px 14px #000}
.video-tile-tools{position:absolute;z-index:6;right:10px;top:8px;display:flex;gap:12px;padding:5px 9px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(5,5,5,.58);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);opacity:.28;transition:opacity .25s ease}
.video-tile:hover .video-tile-tools,.video-tile:focus-within .video-tile-tools{opacity:1}.video-tile-tools .quiet{padding:2px;font-size:9px;letter-spacing:.08em;text-transform:uppercase}.video-tile-tools .danger{color:#f0c5be}

body.viewer-open{overflow:hidden}
dialog:has(#video-lightbox),#guest-video-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#020202;color:#f5f2ea;overflow:hidden}
dialog:has(#video-lightbox)::backdrop,#guest-video-viewer::backdrop{background:#020202;backdrop-filter:none}
dialog:has(#video-lightbox) #modal-content{height:100%}
#video-lightbox,.guest-video-player{display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%;height:100%;padding:max(64px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#020202}
#video-lightbox>video,.guest-video-player>video{display:block;width:100%;height:100%;min-height:0;object-fit:contain;background:#020202}
.video-viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:58px;padding:10px clamp(6px,2vw,28px);color:rgba(245,242,234,.62);font-size:10px;letter-spacing:.16em;text-transform:uppercase}
.video-viewer-close{display:inline-flex;align-items:center;gap:8px;top:max(13px,env(safe-area-inset-top));right:max(15px,env(safe-area-inset-right));width:auto;height:40px;padding:0 14px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font:500 10px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}

@media(max-width:900px){.video-gallery,.guest-videos .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.video-tile-tools{opacity:.82}}
@media(max-width:640px){.gallery-page .editorial-content{padding:38px 5px 85px}.gallery-page .collection-heading{margin-left:5px;margin-right:5px;padding-left:5px;padding-right:5px}.collection-heading-actions{width:100%;align-items:center;justify-content:space-between;text-align:left}.gallery-page #photo-grid{column-gap:5px}.gallery-page #photo-grid .photo-card{margin-bottom:5px}.video-gallery,.guest-videos .video-grid{gap:5px}.video-tile .video-frame{aspect-ratio:4/5}.video-tile .video-play{width:44px;height:44px}.video-origin{left:9px;bottom:9px}.video-tile-tools{right:6px;top:6px;gap:8px;padding:4px 7px}.video-viewer-bar{min-height:54px;padding-left:4px;padding-right:4px}.guest-videos{margin-left:-1.5vw;margin-right:-1.5vw}}
@media(prefers-reduced-motion:reduce){.video-tile,.video-tile .video-frame video,.video-tile .video-play{animation:none!important;transition:none!important}}

/* Acceso persistente: instala Magno Gallery y recuerda la última galería. */
.guest-save-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(24px,5vw,70px);margin:26px 0 56px;padding:clamp(24px,3vw,38px);overflow:hidden;border:1px solid rgba(255,255,255,.16);background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.018));box-shadow:inset 0 1px rgba(255,255,255,.13),0 24px 70px rgba(0,0,0,.2);backdrop-filter:blur(22px) saturate(1.12);-webkit-backdrop-filter:blur(22px) saturate(1.12)}
.guest-save-card:before{content:'';position:absolute;inset:-80% 40% 10% -20%;pointer-events:none;background:radial-gradient(circle,rgba(190,226,215,.12),transparent 62%)}
.guest-save-card>div,.guest-install-button{position:relative;z-index:1}.guest-save-card .eyebrow{margin-bottom:11px;color:rgba(244,240,231,.48)}.guest-save-card h2{margin:0 0 8px;color:#f5f2ea;font-size:clamp(27px,3vw,40px)}.guest-save-card p:last-child{max-width:48ch;margin:0;color:rgba(244,240,231,.6)}.guest-save-actions{display:grid;gap:10px;min-width:245px}
.guest-install-button{display:flex;align-items:center;justify-content:space-between;gap:24px;min-width:245px;min-height:58px;padding:0 20px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.07);color:#f7f4ec;font:500 12px/1.1 var(--sans);letter-spacing:.04em;box-shadow:inset 0 1px rgba(255,255,255,.16);transition:transform .5s cubic-bezier(.16,1,.3,1),background .35s,border-color .35s}
.guest-install-button i{font:400 18px/1 var(--sans)}.guest-install-button:hover,.guest-install-button:focus-visible{transform:translateY(-3px);border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.13)}.guest-install-button.installed{color:#dceade;border-color:rgba(190,226,197,.3)}.guest-qr-button svg{width:19px;height:19px;fill:currentColor}
#guest-install-help{width:min(530px,calc(100vw - 28px));padding:clamp(32px,7vw,55px);border:1px solid rgba(255,255,255,.2);border-radius:24px;background:linear-gradient(145deg,rgba(18,22,21,.98),rgba(3,5,5,.98));color:#f5f2ea;box-shadow:0 35px 100px rgba(0,0,0,.65)}
#guest-install-help::backdrop{background:rgba(0,0,0,.76);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}#guest-install-help .close{top:16px;right:18px;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.16);border-radius:50%;color:#f5f2ea;background:rgba(255,255,255,.06);font:300 22px/1 var(--sans)}
#guest-install-help h2{font-size:clamp(34px,6vw,52px);margin:0 0 28px}#guest-install-help ol{display:grid;gap:15px;margin:0;padding:0 0 0 24px;color:rgba(245,242,234,.82)}#guest-install-help li{padding-left:7px}.guest-install-note{margin:30px 0 0;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);color:rgba(245,242,234,.5);font-size:13px}
.guest-qr-share{width:min(620px,calc(100vw - 24px));padding:clamp(28px,5vw,48px);border:1px solid rgba(255,255,255,.2);border-radius:24px;background:linear-gradient(145deg,rgba(18,18,17,.98),rgba(3,3,3,.99));color:#f5f2ea;box-shadow:0 35px 110px rgba(0,0,0,.72)}.guest-qr-share::backdrop{background:rgba(0,0,0,.8);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}.guest-qr-share>.close{top:16px;right:18px;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.16);border-radius:50%;color:#f5f2ea;background:rgba(255,255,255,.06);font:300 22px/1 var(--sans)}.guest-qr-copy{text-align:center}.guest-qr-copy h2{margin:0 0 8px;font-size:clamp(34px,6vw,52px)}.guest-qr-copy>p:last-child{margin:0;color:rgba(245,242,234,.55)}.guest-qr-frame{display:grid;place-items:center;width:min(330px,74vw);aspect-ratio:1;margin:28px auto;padding:18px;border-radius:24px;background:#fff;box-shadow:0 18px 60px rgba(0,0,0,.36)}.guest-qr-frame img{display:block;width:100%;height:100%;object-fit:contain}.guest-qr-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.guest-qr-actions .guest-install-button{min-width:0;text-decoration:none}
.remembered-gallery{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 18px;margin:0 0 22px;padding:18px 20px;border:1px solid rgba(255,255,255,.19);border-radius:17px;background:linear-gradient(135deg,rgba(255,255,255,.11),rgba(255,255,255,.025));color:#f6f2e9;box-shadow:inset 0 1px rgba(255,255,255,.16);transition:transform .45s cubic-bezier(.16,1,.3,1),background .3s}
.remembered-gallery:hover,.remembered-gallery:focus-visible{transform:translateY(-3px);background:rgba(255,255,255,.13)}.remembered-gallery span{grid-column:1;font:500 9px/1 var(--sans);letter-spacing:.2em;color:rgba(246,242,233,.53)}.remembered-gallery strong{grid-column:1;font:400 clamp(18px,2.2vw,24px)/1.2 var(--serif);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remembered-gallery i{grid-column:2;grid-row:1/3;align-self:center;font:400 19px/1 var(--sans)}
.remembered-gallery-divider{display:flex!important;align-items:center;gap:12px;margin:0 0 18px!important;color:rgba(255,255,255,.36)!important;font-size:10px!important;letter-spacing:.08em;text-transform:uppercase}.remembered-gallery-divider:before,.remembered-gallery-divider:after{content:'';height:1px;flex:1;background:rgba(255,255,255,.12)}
@media(max-width:640px){.guest-save-card{grid-template-columns:1fr;margin:20px 0 45px;padding:25px 20px}.guest-save-actions,.guest-install-button{width:100%;min-width:0}.guest-qr-share{padding:28px 18px}.guest-qr-actions{grid-template-columns:1fr}.remembered-gallery{padding:16px 17px}}

/* Galería de invitados clara — marfil editorial y Liquid Glass luminoso. */
body.guest-page{
 --paper:#f7f6f2;--white:#171714;--ink:#171714;--muted:#706d66;--line:rgba(24,23,20,.13);
 background:#f7f6f2;color:#171714;color-scheme:light;
}
body.guest-page #guest-content{
 background:
  radial-gradient(circle at 82% 3%,rgba(255,255,255,.98),transparent 28%),
  radial-gradient(circle at 12% 31%,rgba(216,210,198,.28),transparent 34%),
  linear-gradient(180deg,#fbfaf7 0,#f3f1eb 58%,#faf9f5 100%);
}
body.guest-page>header{
 background:rgba(251,250,247,.78)!important;color:#171714;
 border-bottom-color:rgba(23,23,20,.1);box-shadow:0 13px 42px rgba(45,40,30,.08);
 backdrop-filter:blur(25px) saturate(1.3);-webkit-backdrop-filter:blur(25px) saturate(1.3);
}
body.guest-page>header .brand-logo img{filter:none;opacity:.9}
body.guest-page>header nav,body.guest-page>header nav button{color:#1b1a17}
.guest-page .guest-navigation .guest-nav-button{
 color:#1b1a17;border-color:rgba(25,24,20,.13);
 background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(255,255,255,.4));
 box-shadow:inset 0 1px rgba(255,255,255,.98),0 8px 28px rgba(45,39,28,.065);
 backdrop-filter:blur(20px) saturate(1.25);-webkit-backdrop-filter:blur(20px) saturate(1.25);
}
.guest-page .guest-navigation .guest-nav-button:hover{background:rgba(255,255,255,.94);border-color:rgba(25,24,20,.25)}
.guest-page .guest-navigation .guest-nav-button:disabled{color:#8d8980;background:rgba(255,255,255,.34);border-color:rgba(25,24,20,.08);opacity:.62}
.guest-page .guest-navigation .guest-nav-button:focus-visible{outline-color:#3d3932}

.guest-page .eyebrow{color:#817a6e}
.guest-page .guest-collection>h1,.guest-page .guest-ranking h2,.guest-page .guest-all-heading h2,.guest-page .guest-videos>h2{color:#151512}
.guest-page .guest-intro,.guest-page .guest-contribution-copy,.guest-page .hint,.guest-page .guest-identity,.guest-page .guest-card-meta small,.guest-page .guest-video-box p{color:#706d66}
.guest-page .guest-identity strong,.guest-page .guest-card-meta strong{color:#171714}
.guest-page .guest-identity .quiet{color:#4e4a43;border-bottom:1px solid rgba(23,23,20,.25)}
.guest-page .guest-all-heading{border-color:rgba(23,23,20,.13)}

.guest-page .guest-whatsapp{
 color:#183024;border:1px solid rgba(31,67,50,.16);border-radius:20px;
 background:linear-gradient(135deg,rgba(238,247,241,.88),rgba(255,255,255,.52));
 box-shadow:inset 0 1px rgba(255,255,255,.96),0 18px 52px rgba(35,64,49,.09);
 backdrop-filter:blur(24px) saturate(1.2);-webkit-backdrop-filter:blur(24px) saturate(1.2);
}
.guest-page .guest-whatsapp:hover{border-color:rgba(31,67,50,.27);box-shadow:inset 0 1px #fff,0 23px 60px rgba(35,64,49,.13)}
.guest-page .guest-whatsapp span{color:#637d6e}.guest-page .guest-whatsapp strong,.guest-page .guest-whatsapp i{color:#183024}

.guest-page .guest-save-card,.guest-page .guest-name-card{
 color:#171714;border-color:rgba(24,23,20,.12);
 background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(255,255,255,.43));
 box-shadow:inset 0 1px rgba(255,255,255,.98),0 25px 72px rgba(48,42,31,.08);
 backdrop-filter:blur(26px) saturate(1.2);-webkit-backdrop-filter:blur(26px) saturate(1.2);
}
.guest-page .guest-save-card:before{background:radial-gradient(circle,rgba(177,195,184,.24),transparent 63%)}
.guest-page .guest-save-card .eyebrow{color:#8b857a}.guest-page .guest-save-card h2{color:#171714}.guest-page .guest-save-card p:last-child{color:#706d66}
.guest-page .guest-install-button{
 color:#1b1a17;border-color:rgba(24,23,20,.14);
 background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.38));
 box-shadow:inset 0 1px #fff,0 9px 28px rgba(45,39,28,.07);
 backdrop-filter:blur(20px) saturate(1.25);-webkit-backdrop-filter:blur(20px) saturate(1.25);
}
.guest-page .guest-install-button:hover,.guest-page .guest-install-button:focus-visible{color:#0f0f0d;border-color:rgba(24,23,20,.27);background:rgba(255,255,255,.96)}
.guest-page .guest-install-button.installed{color:#355747;border-color:rgba(53,87,71,.25)}

.guest-page .guest-name-card input{
 color:#171714;border-color:rgba(24,23,20,.15);background:rgba(255,255,255,.78);color-scheme:light;
 box-shadow:inset 0 1px rgba(255,255,255,.95);
}
.guest-page .guest-name-card input::placeholder{color:#aaa69d}.guest-page .guest-name-card p{color:#77736b}
.guest-page .guest-name-card .primary{color:#f7f5ef;background:#171714;border-color:#171714;box-shadow:0 10px 27px rgba(22,21,18,.14)}
.guest-page .guest-name-card .primary:hover{color:#fff;background:#000}

.guest-page .guest-upload-box,.guest-page .guest-video-box{
 color:#171714;border-color:rgba(24,23,20,.13);
 background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(236,232,223,.58));
 box-shadow:inset 0 1px rgba(255,255,255,.98),0 20px 58px rgba(45,39,28,.09);
 backdrop-filter:blur(24px) saturate(1.2);-webkit-backdrop-filter:blur(24px) saturate(1.2);
}
.guest-page .guest-upload-box span,.guest-page .guest-video-box span{color:#8b7451}
.guest-page .guest-upload-box small,.guest-page .guest-video-box small{color:#706d66}
.guest-page .guest-upload-box i,.guest-page .guest-video-box i{color:#292722;border-color:rgba(24,23,20,.25);background:rgba(255,255,255,.38)}
.guest-page .guest-upload-box:focus-within,.guest-page .guest-video-box:focus-within{outline-color:#514d46}
.guest-page .guest-video-box.disabled{background:rgba(234,231,224,.58);box-shadow:inset 0 1px rgba(255,255,255,.8);opacity:.62}
.guest-page #guest-status{color:#5c5952}.guest-page progress{accent-color:#1d1d19}

.guest-page .guest-ranking{
 color:#171714;border-color:rgba(24,23,20,.11);
 background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(239,235,226,.62));
 box-shadow:inset 0 1px rgba(255,255,255,.98),0 30px 80px rgba(45,39,28,.07);
 backdrop-filter:blur(22px) saturate(1.12);-webkit-backdrop-filter:blur(22px) saturate(1.12);
}
.guest-page .guest-award-copy{border-color:rgba(23,23,20,.12)}
.guest-page .guest-award-copy>p:last-child,.guest-page .winner-meta>p:not(.eyebrow){color:#716e67}
.guest-page .guest-winner-card{border-color:rgba(23,23,20,.15);background:transparent}
.guest-page .guest-winner-card>button,.guest-page .guest-top-grid article>button,.guest-page .guest-photo-card .photo-open{background:#e7e3da}
.guest-page .winner-meta h3{color:#171714}.guest-page .winner-meta>strong{color:#5d4e35;border-color:rgba(115,94,55,.35)}
.guest-page .winner-meta>strong span{color:#853b36}.guest-page .guest-runner-up>.eyebrow{border-color:rgba(23,23,20,.13)}
.guest-page .podium-card small,.guest-page .winner-meta small{color:#77736b}
.guest-page .podium-empty{border-color:rgba(23,23,20,.14);background:rgba(255,255,255,.25)}
.guest-page .podium-placeholder{color:#77736b}.guest-page .podium-placeholder b{color:#2c2a25}
.guest-page .guest-like,.guest-page .guest-like[aria-pressed=true]{color:#4a4741}
.guest-page .guest-like[aria-pressed=true]{color:#8b3934}.guest-page .guest-like:hover{color:#11110f}
.guest-page .outline{color:#24231f;border-color:rgba(23,23,20,.2);background:rgba(255,255,255,.52);box-shadow:inset 0 1px #fff}
.guest-page .outline:hover{background:rgba(255,255,255,.9)}

.guest-page #guest-install-help,.guest-page .guest-qr-share{
 color:#171714;border-color:rgba(24,23,20,.13);
 background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(241,238,231,.96));
 box-shadow:0 35px 110px rgba(38,34,27,.24);
 backdrop-filter:blur(28px) saturate(1.2);-webkit-backdrop-filter:blur(28px) saturate(1.2);
}
.guest-page #guest-install-help::backdrop,.guest-page .guest-qr-share::backdrop{background:rgba(31,30,27,.34);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.guest-page #guest-install-help .close,.guest-page .guest-qr-share>.close{color:#171714;border-color:rgba(24,23,20,.14);background:rgba(255,255,255,.58)}
.guest-page #guest-install-help ol{color:#4f4c46}.guest-page .guest-install-note{color:#77736b;border-color:rgba(23,23,20,.12)}
.guest-page .guest-qr-copy>p:last-child{color:#706d66}.guest-page .guest-qr-frame{border:1px solid rgba(23,23,20,.1);box-shadow:0 18px 58px rgba(45,39,28,.13)}
.guest-page .remembered-gallery{color:#171714;border-color:rgba(24,23,20,.13);background:rgba(255,255,255,.54);box-shadow:inset 0 1px #fff}
.guest-page .remembered-gallery:hover,.guest-page .remembered-gallery:focus-visible{background:rgba(255,255,255,.92)}
.guest-page .remembered-gallery span{color:#7d786e}.guest-page .remembered-gallery-divider{color:#8b867d!important}.guest-page .remembered-gallery-divider:before,.guest-page .remembered-gallery-divider:after{background:rgba(23,23,20,.12)}

/* El visor permanece negro para concentrar la mirada en la fotografía y el video. */
.guest-page #guest-viewer,.guest-page #guest-video-viewer{color:#f5f1e9;background:#020202}
.guest-page #guest-viewer .guest-like{color:#f0eee6}.guest-page #guest-viewer .guest-like[aria-pressed=true]{color:#ffd8d0}
@media(max-width:640px){
 body.guest-page>header{padding-top:max(12px,env(safe-area-inset-top));background:rgba(251,250,247,.86)!important}
 .guest-page .guest-save-card{border-radius:20px}.guest-page .guest-whatsapp{border-radius:18px}
}

/* Liquid Glass luminoso — controles legibles sobre el lienzo blanco. */
.guest-page{
 --guest-glass-fill:linear-gradient(145deg,rgba(255,255,255,.9),rgba(246,246,242,.52) 48%,rgba(225,228,223,.4));
 --guest-glass-edge:rgba(255,255,255,.94);
 --guest-glass-outline:rgba(35,34,30,.16);
 --guest-glass-shadow:0 15px 34px rgba(45,42,34,.13),0 3px 9px rgba(45,42,34,.07),inset 0 2px 1px rgba(255,255,255,.98),inset 0 -1px 1px rgba(36,35,31,.1);
}
.guest-page .guest-navigation .guest-nav-button,
.guest-page .guest-install-button,
.guest-page .guest-whatsapp,
.guest-page .outline,
.guest-page .guest-name-card .primary{
 position:relative;isolation:isolate;overflow:hidden;transform:translateZ(0);
 border:1px solid var(--guest-glass-edge);outline:1px solid var(--guest-glass-outline);outline-offset:-1px;
 background:var(--guest-glass-fill);box-shadow:var(--guest-glass-shadow);
 backdrop-filter:blur(28px) saturate(1.55) contrast(1.03);-webkit-backdrop-filter:blur(28px) saturate(1.55) contrast(1.03);
 transition:transform .48s cubic-bezier(.16,1,.3,1),box-shadow .4s ease,background .4s ease,outline-color .35s ease,color .3s ease;
}
.guest-page .guest-navigation .guest-nav-button:before,
.guest-page .guest-install-button:before,
.guest-page .guest-whatsapp:before,
.guest-page .outline:before,
.guest-page .guest-name-card .primary:before{
 content:'';position:absolute;z-index:-1;inset:1px;border-radius:inherit;pointer-events:none;
 background:linear-gradient(180deg,rgba(255,255,255,.92) 0,rgba(255,255,255,.3) 28%,transparent 54%,rgba(153,159,150,.07) 100%);
 box-shadow:inset 0 1px rgba(255,255,255,.86);
}
.guest-page .guest-navigation .guest-nav-button:after,
.guest-page .guest-install-button:after,
.guest-page .guest-whatsapp:after,
.guest-page .outline:after,
.guest-page .guest-name-card .primary:after{
 content:'';position:absolute;z-index:-1;inset:-80% -28%;pointer-events:none;opacity:.46;
 background:radial-gradient(circle at 25% 50%,rgba(255,255,255,.98),transparent 24%),radial-gradient(circle at 72% 54%,rgba(192,207,199,.34),transparent 28%);
 transform:translateX(-22%) rotate(-8deg);transition:transform .85s cubic-bezier(.16,1,.3,1),opacity .4s ease;
}
.guest-page .guest-navigation .guest-nav-button:hover,
.guest-page .guest-install-button:hover,
.guest-page .guest-whatsapp:hover,
.guest-page .outline:hover,
.guest-page .guest-name-card .primary:hover{
 transform:translateY(-3px) scale(1.012);outline-color:rgba(35,34,30,.25);
 background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(248,248,244,.7) 52%,rgba(222,226,220,.48));
 box-shadow:0 21px 42px rgba(45,42,34,.16),0 5px 12px rgba(45,42,34,.08),inset 0 2px 1px #fff,inset 0 -1px 1px rgba(36,35,31,.12);
}
.guest-page .guest-navigation .guest-nav-button:hover:after,
.guest-page .guest-install-button:hover:after,
.guest-page .guest-whatsapp:hover:after,
.guest-page .outline:hover:after,
.guest-page .guest-name-card .primary:hover:after{opacity:.78;transform:translateX(18%) rotate(-8deg)}
.guest-page .guest-navigation .guest-nav-button:active,
.guest-page .guest-install-button:active,
.guest-page .guest-whatsapp:active,
.guest-page .outline:active,
.guest-page .guest-name-card .primary:active{transform:translateY(0) scale(.982);box-shadow:0 7px 18px rgba(45,42,34,.12),inset 0 2px 5px rgba(37,36,32,.12),inset 0 1px #fff;transition-duration:.12s}
.guest-page .guest-navigation .guest-nav-button:focus-visible,
.guest-page .guest-install-button:focus-visible,
.guest-page .guest-whatsapp:focus-visible,
.guest-page .outline:focus-visible,
.guest-page .guest-name-card .primary:focus-visible{outline:2px solid rgba(25,24,21,.7);outline-offset:3px}

.guest-page .guest-navigation .guest-nav-button{min-height:48px;padding-inline:20px;color:#1b1a17;font-weight:520}
.guest-page .guest-navigation .guest-nav-button:disabled{
 color:#8d8980;opacity:.56;transform:none;outline-color:rgba(35,34,30,.08);box-shadow:inset 0 1px rgba(255,255,255,.9),0 6px 17px rgba(45,42,34,.055);
}
.guest-page .guest-navigation .guest-nav-button:disabled:after{display:none}
.guest-page .guest-install-button{min-height:62px;padding-inline:22px;color:#171714;font-weight:600}
.guest-page .guest-install-button i,.guest-page .guest-install-button svg{filter:drop-shadow(0 1px 1px rgba(255,255,255,.9))}

.guest-page .guest-whatsapp{
 border-color:rgba(255,255,255,.92);outline-color:rgba(39,81,60,.2);
 background:linear-gradient(135deg,rgba(237,249,242,.95),rgba(255,255,255,.69) 49%,rgba(197,221,208,.5));
 box-shadow:0 20px 46px rgba(39,81,60,.14),0 4px 10px rgba(39,81,60,.07),inset 0 2px 1px rgba(255,255,255,.98),inset 0 -1px 1px rgba(39,81,60,.11);
}
.guest-page .guest-whatsapp:before{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.28) 42%,transparent 68%)}
.guest-page .guest-whatsapp:hover{outline-color:rgba(39,81,60,.33);background:linear-gradient(135deg,rgba(235,250,241,.99),rgba(255,255,255,.83) 50%,rgba(190,220,203,.58));box-shadow:0 25px 54px rgba(39,81,60,.17),inset 0 2px 1px #fff,inset 0 -1px 1px rgba(39,81,60,.12)}

.guest-page .guest-name-card .primary{
 color:#fff;border-color:rgba(255,255,255,.5);outline-color:rgba(15,15,13,.58);
 background:linear-gradient(145deg,rgba(42,42,38,.96),rgba(13,13,12,.91) 58%,rgba(55,57,52,.9));
 box-shadow:0 14px 30px rgba(20,20,18,.22),inset 0 1px 1px rgba(255,255,255,.28),inset 0 -1px rgba(0,0,0,.48);
}
.guest-page .guest-name-card .primary:before{background:linear-gradient(180deg,rgba(255,255,255,.25),rgba(255,255,255,.055) 34%,transparent 62%)}
.guest-page .guest-name-card .primary:after{background:radial-gradient(circle at 24% 50%,rgba(255,255,255,.42),transparent 24%),radial-gradient(circle at 78% 50%,rgba(181,197,187,.23),transparent 29%)}
.guest-page .guest-name-card .primary:hover{color:#fff;background:linear-gradient(145deg,rgba(53,53,48,.98),rgba(8,8,7,.94) 58%,rgba(60,63,57,.94));box-shadow:0 19px 38px rgba(20,20,18,.28),inset 0 1px 1px rgba(255,255,255,.34)}

.guest-page .guest-upload-box,.guest-page .guest-video-box{
 border:1px solid rgba(255,255,255,.9);outline:1px solid rgba(35,34,30,.17);outline-offset:-1px;border-radius:24px;
 box-shadow:0 22px 52px rgba(45,42,34,.13),0 4px 12px rgba(45,42,34,.07),inset 0 2px 1px rgba(255,255,255,.98),inset 0 -1px 1px rgba(36,35,31,.09);
}
.guest-page .guest-upload-box i,.guest-page .guest-video-box i{
 border:1px solid rgba(255,255,255,.94);outline:1px solid rgba(35,34,30,.2);outline-offset:-1px;
 background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(225,228,222,.53));
 box-shadow:0 10px 26px rgba(45,42,34,.13),inset 0 2px 1px #fff,inset 0 -1px rgba(35,34,30,.11);
 backdrop-filter:blur(20px) saturate(1.45);-webkit-backdrop-filter:blur(20px) saturate(1.45);
}
@media(max-width:640px){
 .guest-page .guest-navigation .guest-nav-button{min-height:46px;padding-inline:10px}
 .guest-page .guest-install-button{min-height:58px}
 .guest-page .guest-upload-box,.guest-page .guest-video-box{border-radius:20px}
}
@media(prefers-reduced-motion:reduce){
 .guest-page .guest-navigation .guest-nav-button,.guest-page .guest-install-button,.guest-page .guest-whatsapp,.guest-page .outline,.guest-page .guest-name-card .primary{transition:none}
 .guest-page .guest-navigation .guest-nav-button:after,.guest-page .guest-install-button:after,.guest-page .guest-whatsapp:after,.guest-page .outline:after,.guest-page .guest-name-card .primary:after{transition:none}
}

/* La invitación abre con la portada real de la galería. */
.guest-cover{
 position:relative;isolation:isolate;width:100%;height:min(76svh,880px);min-height:520px;overflow:hidden;
 background:linear-gradient(145deg,#e8e5dd,#f8f7f3);color:#fff;
}
.guest-cover[hidden]{display:none}
.guest-cover>img{
 position:absolute;z-index:-2;inset:-3%;width:106%;height:106%;object-fit:cover;opacity:0;
 filter:saturate(.88) contrast(1.03);transform:scale(1.055);will-change:transform,opacity;
 transition:opacity 1.05s ease,transform 2.1s cubic-bezier(.16,1,.3,1);
}
.guest-cover.is-ready>img{opacity:1;transform:scale(1.015)}
.guest-cover:before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(5,5,4,.05) 0,rgba(5,5,4,.08) 35%,rgba(5,5,4,.72) 100%),linear-gradient(90deg,rgba(5,5,4,.26),transparent 58%)}
.guest-cover:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 1px rgba(255,255,255,.28),inset 0 -80px 130px rgba(4,4,3,.2)}
.guest-cover-copy{position:absolute;z-index:2;left:clamp(24px,5vw,86px);right:clamp(24px,5vw,86px);bottom:clamp(64px,9vh,108px);max-width:min(920px,78vw);text-shadow:0 3px 26px rgba(0,0,0,.42)}
.guest-cover-copy .eyebrow{margin-bottom:17px;color:rgba(255,255,255,.78)}
.guest-cover-copy h1{margin:0 0 15px;color:#fff;font-size:clamp(56px,8.7vw,138px);line-height:.91;letter-spacing:-.052em}
.guest-cover-copy>p:last-child{max-width:650px;margin:0;color:rgba(255,255,255,.86);font:italic clamp(18px,2.1vw,29px)/1.34 var(--serif)}
.guest-cover-scroll{position:absolute;z-index:3;right:clamp(24px,5vw,86px);bottom:clamp(28px,4.5vh,52px);display:flex;align-items:center;gap:12px;color:rgba(255,255,255,.88);font:500 10px/1 var(--sans);letter-spacing:.22em;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.guest-cover-scroll span{display:inline-block;animation:guestCoverArrow 2.8s cubic-bezier(.45,0,.55,1) infinite}
.guest-cover.is-ready .guest-cover-copy{animation:guestCoverCopy 1.15s .12s cubic-bezier(.16,1,.3,1) both}
@keyframes guestCoverCopy{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes guestCoverArrow{0%,100%{transform:translateY(-2px);opacity:.62}50%{transform:translateY(5px);opacity:1}}
@media(max-width:640px){
 .guest-cover{height:68svh;min-height:500px}
 .guest-cover-copy{left:22px;right:22px;bottom:78px;max-width:none}
 .guest-cover-copy h1{font-size:clamp(49px,15vw,72px)}
 .guest-cover-copy>p:last-child{font-size:18px}
 .guest-cover-scroll{right:22px;bottom:29px}
}
@media(prefers-reduced-motion:reduce){.guest-cover>img,.guest-cover-copy,.guest-cover-scroll span{animation:none!important;transition:none!important}.guest-cover.is-ready>img{opacity:1;transform:scale(1.015)}}
