/* One Portal atmosphere across checkout, private screens and their dialogs.
   The selected scene is decorative. Inputs and purchased artwork stay clear. */
:is(.portal-cinematic-site,.portal-app,.portal-standalone){
 --portal-surface-image:var(--portal-world-image,var(--portal-app-image,url('/images/encuentro-enigmatico-film-v3.webp')));
 --portal-surface-line:#91bfa16e;
 --portal-surface-ink:#f3f8f2;
 --portal-surface-muted:#cbdcd5;
 --portal-surface-fill:#0a222b;
}
/* Scene-topped cards: the image fades before the working area. */
body.portal-cinematic-site :is(.direct-order,.checkout fieldset,.checkout-confirmation,.checkout-summary,.info-notice,.support-grid>article,.payment-method,.photo-delivery,.photo-disclosure,.availability,.legal-copy,.support-faq details),
body.portal-app :is(.panel,.access-card,.admin-lock-card,.receipt-summary,.receipt-billing,.participant-directory,.participant-book,.admin-install-card),
.portal-standalone main{
 background-color:var(--portal-surface-fill);
 background-image:linear-gradient(100deg,#081e2af2 8%,#0b2835e8 44%,#0a25277d),linear-gradient(0deg,#0a222b 1%,#0a222b05 85%),var(--portal-surface-image);
 background-size:100% 310px,100% 310px,auto 310px;
 background-position:top left,top right,top right;
 background-repeat:no-repeat;
 color:var(--portal-surface-ink);
 border:1px solid var(--portal-surface-line);
 border-top-color:#b5d780a6;
 border-radius:20px 20px 20px 6px;
 box-shadow:inset 0 1px 0 #d3f9e00d,0 18px 42px #02111842;
}
body.portal-cinematic-site.commerce-page .portal-world-backdrop{
 background-image:linear-gradient(115deg,#08222ead,#102d2cb8 58%,#28442b80),var(--portal-world-image);
}
body.portal-app .portal-app-backdrop{
 background-image:linear-gradient(115deg,#08222ec9,#102d2cba 58%,#28442b99),var(--portal-app-image);
}
body.portal-cinematic-site .checkout{background:transparent;padding-top:32px}
body.portal-cinematic-site .legal-copy{margin-block:24px 48px;padding:28px clamp(22px,4vw,48px);max-width:min(1000px,calc(100% - 32px))}
body.portal-cinematic-site .support-faq details{padding:18px 22px;margin:14px 0}
body.portal-cinematic-site .support-faq summary{cursor:pointer;font-size:1rem;line-height:1.6;font-weight:700}
body.portal-cinematic-site .portal-checkout-masthead{
 position:relative;isolation:isolate;min-height:340px;padding:36px clamp(24px,4vw,52px);margin-bottom:28px;
 background:linear-gradient(90deg,#071c2bec 4%,#0b2438da 42%,#12333017 85%),var(--portal-surface-image) 85% 32%/cover no-repeat;
 border:1px solid #a8ca8e77;border-radius:24px 24px 24px 6px;box-shadow:0 24px 60px #03152255;
}
body.portal-cinematic-site .portal-checkout-copy{max-width:640px}
body.portal-cinematic-site .portal-checkout-logo{width:70px;height:70px;object-fit:contain;display:block;border-radius:10px;margin:22px 0 18px}
body.portal-cinematic-site .portal-checkout-masthead h1{font-size:clamp(36px,4.4vw,62px);line-height:1.08;margin:16px 0 20px;max-width:620px;text-shadow:0 3px 18px #02131e}
body.portal-cinematic-site .portal-checkout-masthead .checkout-intro{font-size:1rem;line-height:1.75;color:#e0eae4;max-width:530px;margin:0}
body.portal-cinematic-site .portal-checkout-masthead .breadcrumbs{margin:0;color:#d7e4d8;flex-wrap:wrap;font-size:.875rem}
body.portal-cinematic-site .portal-checkout-masthead .eyebrow{margin:0;color:#cef084}
body.portal-cinematic-site .checkout fieldset{padding:28px;margin-bottom:30px;min-inline-size:0}
body.portal-cinematic-site .checkout legend{padding:10px 17px;border:1px solid #93b9a47d;border-left:3px solid #c0ed59;border-radius:4px 14px 14px 4px;background:#0b2731;color:#e6f2dd;font-size:1rem;line-height:1.5;font-weight:700;max-width:100%}
body.portal-cinematic-site .checkout-fields{gap:24px}
body.portal-cinematic-site .direct-order{padding:28px;gap:28px}
body.portal-cinematic-site .direct-order .direct-art{padding:8px;background:#061820;border:1px solid #9bb68573;border-radius:12px;box-shadow:0 10px 25px #020c1780}
body.portal-cinematic-site .direct-order .checkout-thumbnail{border-radius:6px}
body.portal-cinematic-site .direct-order .direct-total{padding-top:16px;border-top:1px solid #b8d39744}
body.portal-cinematic-site :is(.privacy-notice,.check-row){background:#091e28eb;border-color:#779b805e;color:#dae7e0}
body.portal-cinematic-site .checkout .check-row{padding:16px;border:1px solid #779b805e;border-radius:12px;margin:12px 0}
body.portal-cinematic-site .checkout .check-row input{flex-shrink:0;accent-color:#c0ed59}
body.portal-cinematic-site .checkout .check-row:has(input:checked){border-color:#c0ed59a1;background:#142f29}
body.portal-cinematic-site .checkout-confirmation{padding:32px;scroll-margin-top:28px}
body.portal-cinematic-site .checkout-confirmation:focus{outline:2px solid #c0ed59;outline-offset:4px}
body.portal-cinematic-site .checkout-confirmation #customer-summary{border-color:#9fc49266;background:#0a202bec;border-radius:12px}
/* Solid fields keep the scene out of names, passwords, totals and addresses. */
body.portal-cinematic-site .checkout :is(input:not([type=checkbox]):not([type=radio]),textarea,select),
body.portal-cinematic-site .address-select-trigger,
body.portal-app :is(.field,.admin-lock-card,.admin-access-settings,.accounting-main,.image-framer,[data-slot=dialog-content],[data-slot=alert-dialog-content]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){
 background-color:#081d28;color:#f5faf5;border:1px solid #739384;border-radius:10px;min-height:48px;font-size:1rem;line-height:1.5;box-shadow:inset 0 2px 5px #03101966;
}
body.portal-cinematic-site .checkout input::placeholder,body.portal-app input::placeholder,body.portal-app textarea::placeholder{color:#adbfba;opacity:1}
body.portal-cinematic-site .checkout :is(input,textarea,select):focus-visible,
body.portal-cinematic-site .address-select-trigger:focus-visible,
body.portal-app :is(input,textarea,select,button,a):focus-visible{outline:2px solid #c0ed59;outline-offset:3px}
body.portal-cinematic-site .checkout :is(input,select,textarea)[aria-invalid=true],body.portal-cinematic-site .address-select-trigger[aria-invalid=true]{border-color:#f7ae8e}
body.portal-cinematic-site .checkout :is(input,select,textarea):disabled,body.portal-app :is(input,select,textarea):disabled{opacity:.65}
body.portal-cinematic-site .checkout select option,body.portal-app select option{background:#0b2530;color:#f3f8f2}
body.portal-cinematic-site .address-select-caption{background:#081d28;color:#d1e3d6;border-radius:5px}
body.portal-cinematic-site .address-select-menu{
 background:linear-gradient(115deg,#061d2bf5,#102d29ed),var(--portal-surface-image) right top/cover no-repeat;
 border:1px solid #a7c585;border-radius:12px;box-shadow:0 18px 44px #010b16bb;
}
body.portal-cinematic-site .address-select-menu button{font-size:1rem;color:#eef6ed;min-height:48px}
body.portal-cinematic-site .address-select-menu button:is(:hover,[aria-selected=true],.is-focused){background:#b9e18b;color:#09252b}
/* Every owned modal carries the same full logo and scene. */
body.portal-cinematic-site dialog,
body.portal-app :is(dialog,[data-slot=dialog-content],[data-slot=alert-dialog-content],[data-slot=sheet-content],[data-slot=drawer-content],.admin-document){
 background-color:#09232d;
 background-image:linear-gradient(105deg,#071d2bf5 4%,#0a2734df 47%,#112f2875),linear-gradient(0deg,#09232d 0%,#09232d00 95%),var(--portal-surface-image);
 background-size:100% 330px,100% 330px,auto 330px;background-position:top left,top right,top right;background-repeat:no-repeat;
 color:#f3f8f2;border:1px solid #a6cc879c;border-top:2px solid #bddc86;border-radius:22px 22px 22px 6px;
 box-shadow:0 30px 100px #000b,inset 0 1px 0 #d4f8cc1a;
}
body.portal-app :is([data-slot=dialog-content],[data-slot=alert-dialog-content]){max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
body.portal-cinematic-site dialog::backdrop,body.portal-app dialog::backdrop{background:#03131cce;backdrop-filter:blur(7px)}
body.portal-app :is([data-slot=dialog-overlay],[data-slot=alert-dialog-overlay]){background:#03131cce;backdrop-filter:blur(7px)}
.portal-dialog-brand{padding:0 44px 18px 0;margin-bottom:8px;border-bottom:1px solid #a0bd894d}
body.portal-app .portal-dialog-brand .portal-brand{gap:12px;font-size:.75rem;letter-spacing:.1em}
body.portal-app .portal-dialog-brand .portal-brand img{width:54px;height:54px;border-radius:8px;object-fit:contain}
body.portal-app .portal-dialog-brand .portal-brand b{font-size:1rem}
body.portal-cinematic-site .portal-dialog-brand .portal-document-brand{display:flex;align-items:center;gap:14px;margin:0!important}
body.portal-cinematic-site .portal-dialog-brand .portal-document-brand img{width:54px;height:54px;margin:0!important}
body.portal-cinematic-site .portal-dialog-brand .portal-document-brand p{font-size:.875rem!important;letter-spacing:.08em!important;max-width:220px}
body.portal-cinematic-site .privacy-dialog{padding:28px}
body.portal-cinematic-site :is(.close-dialog,.portal-info-dialog header button){min-width:44px;min-height:44px;border:1px solid #9ac28677;background:#09232dec;color:#e0f4cc;border-radius:10px}
body.portal-cinematic-site #image-dialog{padding:22px}
body.portal-cinematic-site #image-dialog::before{content:'EL PORTAL ENIGMÁTICO';display:flex;align-items:center;min-height:58px;padding:0 48px 0 70px;margin-bottom:18px;background:url('/images/logo-portal.webp') left center/54px 54px no-repeat;color:#c0ed59;font-size:.875rem;font-weight:700;letter-spacing:.08em}
body.portal-cinematic-site #image-dialog>img{display:block;max-width:100%;height:auto;margin:auto;object-fit:contain}
body.portal-cinematic-site .portal-info-dialog header{background:linear-gradient(90deg,#0a2330e8,#102b2770);border-color:#8db57d55;padding-left:86px;min-height:94px;position:relative}
body.portal-cinematic-site .portal-info-dialog header::before{content:'';width:52px;height:52px;position:absolute;left:20px;top:22px;background:url('/images/logo-portal.webp') center/contain no-repeat;pointer-events:none}
body.portal-app :is([data-slot=dialog-description],[data-slot=alert-dialog-description],.hint,.panel-heading p){color:var(--portal-surface-muted)}
body.portal-app :is([data-slot=dialog-title],[data-slot=alert-dialog-title]){font-size:1.35rem;line-height:1.4;overflow-wrap:anywhere}
body.portal-app :is([data-slot=dialog-footer],[data-slot=alert-dialog-footer]){border-top:1px solid #97bc8052;padding-top:18px;flex-wrap:wrap}
body.portal-app :is([data-slot=dialog-footer],[data-slot=alert-dialog-footer]) button{white-space:normal;height:auto;min-height:44px}
body.portal-app .admin-document{border-radius:0}
body.portal-app .admin-document>div{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
body.portal-app .admin-document .portal-brand img{width:48px;height:48px}
body.portal-app .admin-document .portal-brand b{font-size:1rem}
body.portal-app .panel-heading{padding-bottom:18px;border-bottom:1px solid #a7c98a4f}
body.portal-app .section-number{display:grid;place-items:center;flex-shrink:0;width:38px;min-height:38px;padding:0;border:1px solid #98b98688;border-radius:8px;background:#09222dd9;color:#d9eeac}
body.portal-app .receipt-welcome{padding:32px 24px;border:1px solid #95b88170;border-radius:20px;background:linear-gradient(90deg,#0a2333ed,#0a2734cf,#143527a6),var(--portal-surface-image) 82% 35%/cover no-repeat;margin-bottom:24px}
body.portal-app .admin-lock-card>.portal-brand,body.portal-app .access-card>.portal-brand{padding-bottom:22px;border-bottom:1px solid #a0bd8966}
body.portal-app .result-actions{flex-wrap:wrap}
body.portal-app .result-actions button{white-space:normal;height:auto;min-height:44px}
@media(max-width:650px){
 body.portal-cinematic-site .checkout{padding-top:20px}
 body.portal-cinematic-site .portal-checkout-masthead{padding:24px 20px;min-height:0;background-position:center,76% top;background-image:linear-gradient(90deg,#071c2be8,#0b2438c9 65%,#12333075),var(--portal-surface-image)}
 body.portal-cinematic-site .portal-checkout-masthead h1{font-size:clamp(34px,8.5vw,48px)}
 body.portal-cinematic-site .portal-checkout-logo{width:60px;height:60px}
 body.portal-cinematic-site .checkout fieldset{padding:22px 16px;border-radius:16px 16px 16px 5px}
 body.portal-cinematic-site .checkout legend{padding:8px 12px;font-size:.9375rem}
 body.portal-cinematic-site .direct-order{padding:20px 16px;gap:16px;grid-template-columns:minmax(76px,100px) minmax(0,1fr)}
 body.portal-cinematic-site .checkout-confirmation{padding:24px 18px}
 body.portal-cinematic-site .privacy-dialog{padding:22px 20px}
 body.portal-cinematic-site .portal-info-dialog header{padding-left:78px;padding-right:16px}
 body.portal-cinematic-site .portal-info-dialog h2{font-size:1.2rem}
 body.portal-app :is(.access-card,.admin-lock-card){width:auto;max-width:calc(100% - 24px);margin-left:auto;margin-right:auto}
 body.portal-app .receipt-welcome{padding:26px 18px}
 body.portal-app .portal-dialog-brand{padding-right:32px}
}
@media print{
 body.portal-app :is(.panel,.access-card,.admin-lock-card,.receipt-summary,.receipt-billing,.receipt-welcome,.participant-directory,.participant-book,.admin-install-card),
 .portal-standalone main{background:white!important;background-image:none!important;box-shadow:none!important;color:black!important;border-color:#aaa!important}
 .portal-dialog-brand{display:none}
 body.portal-app .section-number{background:white;color:black;border-color:#aaa}
}
