.customize-studio{margin-top:30px;padding:clamp(22px,3vw,38px);border:1px solid var(--border);border-radius:26px;background:linear-gradient(145deg,var(--card),color-mix(in srgb,var(--card) 87%,var(--gold) 13%));color:var(--text)}
.studio-heading{display:block;margin:0 0 28px}
.studio-heading .eyebrow{margin-bottom:8px}
.studio-heading h2{margin:0;font:700 clamp(36px,5vw,58px)/.98 Oswald,"Arial Narrow",sans-serif;letter-spacing:.01em;text-transform:uppercase}
.studio-heading>p:last-child{margin:10px 0 0;color:var(--muted);font-size:16px}
.studio-layout{display:grid;grid-template-columns:minmax(270px,.78fr) minmax(0,1.22fr);gap:clamp(22px,4vw,48px);align-items:start}
.studio-preview{position:sticky;top:22px;min-width:0;padding:22px;border:1px solid var(--border);border-radius:20px;background:color-mix(in srgb,var(--card) 90%,var(--gold) 10%)}
.studio-beer-card .eyebrow{font-size:10px;letter-spacing:.13em}
.studio-beer-card h3{margin:3px 0 0;font:700 clamp(27px,3vw,38px)/1 Oswald,"Arial Narrow",sans-serif;text-transform:uppercase;overflow-wrap:anywhere}
.studio-recipe-style{margin:5px 0 12px;color:var(--muted);font-size:14px}
.studio-beer-card .recipe-meta{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 16px}
.studio-beer-card .recipe-meta span{padding:5px 8px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:11px}
.studio-label-frame{display:grid;place-items:center;min-height:180px;margin:0;padding:12px;border-radius:15px;background:rgba(0,0,0,.08);overflow:hidden}
.studio-official-label{display:block;width:auto;height:auto;max-width:min(100%,250px);max-height:250px;min-width:0;min-height:0;object-fit:contain;object-position:center}
.studio-label-frame>.beer-art{width:100%;height:190px;min-height:0}.studio-label-frame>.beer-art img{width:auto;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center}.studio-bottle-mockup{position:relative;isolation:isolate;display:grid;place-items:center;width:min(100%,290px);height:290px;margin:0 auto;overflow:visible}.studio-bottle-cutout{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center;mix-blend-mode:multiply}.studio-applied-label{position:absolute;top:54%;left:50%;z-index:2;display:grid;place-items:center;width:36%;height:24%;overflow:hidden;transform:translate(-50%,-50%) perspective(500px) rotateY(-8deg);border:1px solid rgba(255,255,255,.24);border-radius:8px 8px 10px 10px;background-color:var(--label-bg,#d86a39);box-shadow:0 5px 11px rgba(0,0,0,.35),inset 0 0 12px rgba(0,0,0,.18)}.studio-applied-label img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center}.studio-applied-label:after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.27),transparent 17%,transparent 82%,rgba(0,0,0,.24)),linear-gradient(0deg,rgba(0,0,0,.08),transparent 15%,transparent 85%,rgba(255,255,255,.13))}.studio-label-frame>.studio-bottle-mockup+small{margin-top:0}
.studio-label-frame>small{margin-top:7px;color:var(--muted);font-size:11px}
.studio-dedication-preview{margin-top:14px;padding:14px 16px;border:1px dashed var(--gold);border-radius:14px;background:color-mix(in srgb,var(--card) 91%,var(--gold) 9%)}
.studio-preview-label{display:block;color:var(--gold);font-size:10px;font-weight:900;letter-spacing:.13em}
.studio-dedication-preview p{min-height:26px;margin:7px 0 0;font:600 18px/1.3 Oswald,"Arial Narrow",sans-serif;overflow-wrap:anywhere}
.studio-dedication-preview p.is-empty{color:var(--muted);font:400 14px/1.4 Inter,Arial,sans-serif}
.studio-preview-note{margin:11px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.studio-form{display:flex;flex-direction:column;gap:16px;min-width:0}
.studio-moment{min-width:0;padding:22px;border:1px solid var(--border);border-radius:18px;background:color-mix(in srgb,var(--card) 95%,transparent)}
.studio-moment-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:20px}
.studio-moment-heading>span{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:50%;background:rgba(205,160,52,.16);color:var(--gold);font:700 16px Oswald,"Arial Narrow",sans-serif}
.studio-moment-heading h3{margin:0;font:700 clamp(20px,2.4vw,27px)/1.12 Oswald,"Arial Narrow",sans-serif;text-transform:uppercase}
.studio-moment-heading p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.occasion-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 18px;padding:0;border:0}
.studio-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.occasion-choice{position:relative;display:block;min-width:0;cursor:pointer}
.occasion-choice input{position:absolute;width:1px;height:1px;opacity:0}
.occasion-choice span{display:flex;align-items:center;gap:9px;min-height:48px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:rgba(150,150,150,.04);color:var(--text);font-size:16px;transition:border-color .18s,background .18s,transform .18s}
.occasion-choice b{font-size:12px;font-weight:700}
.occasion-choice input:checked+span{border-color:var(--gold);background:rgba(205,160,52,.12);box-shadow:inset 0 0 0 1px var(--gold)}
.occasion-choice input:focus-visible+span{outline:3px solid var(--gold);outline-offset:2px}
.occasion-choice:hover span{transform:translateY(-1px)}
.studio-field{display:grid;gap:7px;color:var(--text);font-size:13px;font-weight:700}
.studio-field input,.studio-field select{width:100%;min-width:0;background:var(--bg);color:var(--text);border-color:var(--border)}
.studio-field small{color:var(--muted);font-size:11px;font-weight:400;line-height:1.45}
.studio-date-notice{display:none;margin:10px 0 0;padding:11px 13px;border:1px solid transparent;border-radius:11px;font-size:12px;line-height:1.5}
.studio-date-notice.is-warning{display:block;border-color:rgba(217,164,65,.45);background:rgba(217,164,65,.12);color:var(--text)}
.studio-count{justify-self:end}
.studio-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.studio-privacy{margin:14px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.studio-order-preview{margin-top:17px;padding:16px;border-radius:14px;background:rgba(150,150,150,.06);border:1px solid var(--border)}
.studio-order-preview-title{display:grid;gap:4px;padding-bottom:11px;border-bottom:1px solid var(--border)}
.studio-order-preview-title span{color:var(--gold);font-size:10px;font-weight:900;letter-spacing:.13em}
.studio-order-preview-title strong{font:700 22px/1.1 Oswald,"Arial Narrow",sans-serif;text-transform:uppercase}
.studio-order-preview-title small{color:var(--muted);font-size:12px}
.studio-price-lines{display:grid;grid-template-columns:1fr 1fr;gap:3px 15px;padding:10px 0}
.studio-price-lines p{display:flex;justify-content:space-between;gap:10px;margin:0;padding:4px 0;font-size:12px}
.studio-price-lines p span{color:var(--muted)}
.studio-price-lines p strong{text-align:right}
.studio-price-lines p:nth-child(n+4){font-weight:800}
.studio-production-estimate{color:var(--muted);font-size:11px;line-height:1.5}
.studio-submit{display:flex;justify-content:center;align-items:center;gap:16px;width:100%;margin-top:10px;background:#7E2828;color:#fff!important;border-radius:999px;padding:17px 22px;transition:transform .18s,opacity .18s}
.studio-submit:hover:not(:disabled){transform:translateY(-2px)}
.studio-submit:disabled{cursor:wait;opacity:.72}
.studio-submit-notice{min-height:0;margin:12px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.studio-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:studio-spin .7s linear infinite}
@keyframes studio-spin{to{transform:rotate(360deg)}}
.studio-order-preview-title,.studio-price-lines,.studio-moment{overflow-wrap:anywhere}
@media(max-width:820px){.studio-layout{grid-template-columns:minmax(0,1fr);gap:18px}.studio-preview{position:relative;top:auto}.studio-label-frame{min-height:150px}.studio-official-label{max-width:min(100%,215px);max-height:215px}.studio-label-frame>.beer-art{height:165px}.studio-bottle-mockup{width:min(100%,260px);height:260px}.studio-applied-label{width:36%;height:24%}}
@media(max-width:520px){.customize-studio{padding:18px 13px;border-radius:19px}.studio-heading{margin-bottom:20px}.studio-preview,.studio-moment{padding:16px;border-radius:15px}.occasion-picker,.studio-details-grid{grid-template-columns:1fr 1fr;gap:7px}.occasion-choice span{min-height:45px;padding:8px}.occasion-choice b{font-size:11px}.studio-moment-heading{gap:10px}.studio-moment-heading>span{flex-basis:32px;height:32px}.studio-price-lines{grid-template-columns:1fr}.studio-price-lines p{font-size:12px}.studio-submit{padding:16px 14px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.occasion-choice span,.studio-submit,.studio-spinner{animation:none;transition:none}}
/* Center the complete artwork within its frame without cropping portrait labels. */
.studio-label-frame{display:grid;place-items:center;overflow:visible}
.studio-label-frame>.beer-art{display:grid;place-items:center;box-sizing:border-box}
.studio-label-frame>.beer-art img{display:block;width:auto!important;height:100%!important;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;object-position:50% 50%}
.studio-bottle-mockup{width:min(100%,290px);height:290px;flex:0 0 auto}
.studio-applied-label{width:36%;height:24%;top:54%;left:50%}
.studio-label-frame>.studio-bottle-mockup+small{max-width:100%;margin:0;text-align:center}
@media(max-width:820px){.studio-label-frame{min-height:290px}.studio-bottle-mockup{width:min(100%,260px);height:260px}}
/* Use the supplied full bottle-and-label mockups, centered at their natural ratio. */
.studio-label-frame{display:grid;place-items:center;gap:7px;min-height:0;padding:0;overflow:hidden;border-radius:14px;background:#fff}
.studio-product-preview{display:block;width:min(100%,380px);height:auto;max-height:360px;margin:0 auto;object-fit:contain;object-position:50% 50%}
.studio-label-frame>small{max-width:100%;margin:0 0 8px;color:#51433d;text-align:center}
@media(max-width:820px){.studio-label-frame{min-height:0}.studio-product-preview{width:min(100%,360px);max-height:340px}}
/* Mirror the typed dedication inside the blank, printed dedication box. */
.studio-product-preview-wrap{position:relative;width:min(100%,380px);margin:0 auto;line-height:0}
.studio-product-preview{width:100%;max-height:none}
.studio-product-dedication{position:absolute;left:69%;top:66.7%;display:flex;align-items:center;justify-content:center;width:11.6%;height:5.8%;overflow:hidden;color:#211713;text-align:center;font:italic 700 clamp(5px,1.65vw,8px)/1.05 cursive;overflow-wrap:anywhere;line-height:1.05}
.studio-product-dedication.has-message:after{content:"";align-self:center;width:1px;height:1em;margin-left:1px;background:#211713;animation:studio-label-caret 1s steps(2,start) infinite}
@keyframes studio-label-caret{to{visibility:hidden}}
@media(max-width:820px){.studio-product-preview-wrap{width:min(100%,360px)}}
/* Close-up of the printed dedication area replaces the separate text-only card. */
.studio-product-zoom{width:min(100%,380px);margin:2px auto 8px;padding:12px;border:1px solid #33231d;border-radius:14px;background:#fffaf5;box-sizing:border-box}
.studio-product-zoom h4{margin:0 0 9px;color:#34251f;font:500 13px/1.2 Arial,sans-serif;letter-spacing:.01em}
.studio-product-zoom-window{position:relative;width:100%;aspect-ratio:2.35/1;overflow:hidden;border:1px solid rgba(49,30,21,.18);border-radius:5px;background:#f4e8dc;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.studio-product-zoom-image{position:absolute;top:-500%;left:-209%;display:block;width:350%;max-width:none;height:auto;min-width:0;min-height:0;pointer-events:none;user-select:none}
.studio-product-zoom-dedication{position:absolute;left:24%;top:17%;display:flex;align-items:center;justify-content:center;width:51%;height:75%;overflow:hidden;color:#201611;text-align:center;font:italic 900 clamp(13px,4.1vw,23px)/1.02 "Brush Script MT","Segoe Print",cursive;overflow-wrap:anywhere;transform:rotate(-1deg)}
.studio-product-zoom-dedication.has-message:after{content:"";width:1.5px;height:1em;margin-left:2px;background:#201611;animation:studio-label-caret 1s steps(2,start) infinite}
@media(max-width:820px){.studio-product-zoom{width:min(100%,360px)}.studio-product-zoom-dedication{font-size:clamp(13px,5vw,21px)}}
/* Home-inspired bottle and dedication composition for the personalization preview. */
.studio-layout{grid-template-columns:minmax(0,1fr);gap:22px}
.studio-preview{position:relative;top:auto;min-width:0}
.studio-label-frame{display:block;min-height:0;margin:0;padding:0;overflow:visible;border-radius:0;background:transparent}
.studio-product-composition{display:grid;grid-template-columns:minmax(260px,.82fr) minmax(0,1.18fr);gap:clamp(24px,5vw,64px);align-items:center;width:min(100%,1050px);margin:8px auto 0}
.studio-product-bottle{display:grid;place-items:center;min-width:0}
.studio-product-preview-wrap{position:relative;width:min(100%,430px);margin:0 auto;line-height:0}
.studio-product-preview{display:block;width:100%;height:auto;max-height:500px;margin:0 auto;object-fit:contain;object-position:center;mix-blend-mode:multiply}
.studio-product-zoom{width:100%;max-width:560px;margin:0 auto;padding:clamp(20px,3vw,34px);border:1.5px solid #33231d;border-radius:18px;background:#fffaf5;box-shadow:0 12px 32px rgba(52,34,25,.12);box-sizing:border-box}
.studio-product-zoom h4{margin:0 0 16px;color:#34251f;font:500 clamp(18px,2vw,25px)/1.2 Arial,sans-serif;letter-spacing:0}
.studio-product-zoom-window{position:relative;width:100%;aspect-ratio:4/1;overflow:hidden;border:2px solid #33231d;border-radius:5px;background:#f4e8dc;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.studio-product-zoom-image{position:absolute;top:-500%;left:-209%;display:block;width:350%;max-width:none;height:auto;min-width:0;min-height:0;pointer-events:none;user-select:none}
.studio-product-zoom-dedication{left:24%;top:17%;width:51%;height:75%;font:italic 900 clamp(18px,3.4vw,34px)/1.02 "Brush Script MT","Segoe Print",cursive}
.studio-preview-note{margin-top:16px}
@media(max-width:820px){
  .studio-product-composition{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:18px}
  .studio-product-preview-wrap{width:min(100%,360px)}
  .studio-product-preview{max-height:430px}
  .studio-product-zoom{padding:20px}
  .studio-product-zoom-dedication{font-size:clamp(16px,3.5vw,24px)}
}
@media(max-width:560px){
  .studio-product-composition{grid-template-columns:minmax(0,1fr);gap:14px;width:min(100%,430px)}
  .studio-product-preview-wrap{width:min(100%,290px)}
  .studio-product-preview{max-height:390px}
  .studio-product-zoom{padding:18px}
  .studio-product-zoom h4{margin-bottom:12px}
  .studio-product-zoom-dedication{font-size:clamp(17px,5.5vw,24px)}
}

/* The close-up is a clean writable label area, as on the Home mockup. */
.studio-product-zoom-field{display:grid;place-items:center;width:100%;min-height:108px;padding:12px 18px;border:2px solid #33231d;border-radius:5px;background:#fffaf5;box-sizing:border-box}
.studio-product-zoom-dedication{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;width:100%;min-height:1.15em;overflow-wrap:anywhere;color:#201611;text-align:center;font:italic 900 clamp(24px,3.6vw,38px)/1.05 "Brush Script MT","Segoe Print",cursive;transform:rotate(-1deg)}
.studio-product-zoom-dedication:empty:before{content:"Tu mensaje aparecerá aquí";color:#9a8b84;font:400 15px/1.3 Arial,sans-serif;letter-spacing:0;transform:none}
.studio-product-zoom-dedication.has-message:after{flex:0 0 1.5px;width:1.5px;height:1em;margin-left:3px;background:#201611;animation:studio-label-caret 1s steps(2,start) infinite}
@media(max-width:820px){.studio-product-zoom-field{min-height:94px}.studio-product-zoom-dedication{font-size:clamp(21px,4.5vw,32px)}}
@media(max-width:560px){.studio-product-zoom-field{min-height:84px;padding:10px}.studio-product-zoom-dedication{font-size:clamp(20px,6vw,28px)}}
/* Crop the bottle preview around its attached label, like the Home close-up. */
.studio-product-composition{grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:clamp(22px,3.5vw,48px);width:min(100%,1080px)}
.studio-product-bottle{position:relative;display:block;align-self:stretch;min-height:0;height:clamp(450px,42vw,540px);overflow:hidden}
.studio-product-preview-wrap{position:absolute;left:-146%;top:-74%;width:300%;max-width:none;margin:0}
.studio-product-preview{display:block;width:100%;height:auto;max-height:none;mix-blend-mode:multiply}
.studio-product-dedication{font-size:clamp(10px,1vw,14px);line-height:1.05}
@media(max-width:820px){
  .studio-product-bottle{height:clamp(380px,55vw,470px)}
  .studio-product-preview-wrap{left:-146%;top:-82%;width:300%}
}
@media(max-width:560px){
  .studio-product-bottle{height:390px}
  .studio-product-preview-wrap{left:-146%;top:-92%;width:300%}
  .studio-product-dedication{font-size:clamp(9px,2.6vw,12px)}
}
/* Live dedication preview: keep the actual bottle beside the writing step. */
@media(min-width:821px){
  .studio-layout{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:clamp(20px,3vw,42px);align-items:start}
  .studio-preview{position:sticky;top:20px;padding:18px}
}
.studio-label-frame{display:grid;place-items:center;min-height:0;margin:0;padding:0;overflow:hidden;border-radius:14px;background:transparent}
.studio-product-composition{display:block;width:100%;max-width:560px;margin:0 auto}
.studio-product-bottle{position:relative;display:block;width:100%;height:auto;min-height:0;overflow:visible}
.studio-product-preview-wrap{position:relative;left:auto;top:auto;width:min(100%,520px);max-width:100%;margin:0 auto;line-height:0}
.studio-product-preview{display:block;width:100%;height:auto;max-height:none;margin:0 auto;object-fit:contain;object-position:center;mix-blend-mode:multiply}
.studio-product-dedication{left:65.4%;top:63.8%;width:13.1%;height:4.1%;padding:0 1px;box-sizing:border-box;overflow:hidden;color:#201611;text-align:center;font-family:"Segoe Print","Bradley Hand","Comic Sans MS",cursive;font-size:8px;font-style:italic;font-weight:700;line-height:1.05;overflow-wrap:anywhere;transform:rotate(-1deg)}
.studio-product-dedication:empty:before{content:""}
.studio-product-dedication.has-message:after{content:"";flex:0 0 1px;width:1px;height:1em;margin-left:1px;background:#201611;animation:studio-label-caret 1s steps(2,start) infinite}
@media(max-width:820px){
  .studio-layout{grid-template-columns:minmax(0,1fr);gap:16px}
  .studio-preview{position:relative;top:auto;padding:18px}
  .studio-product-composition{max-width:480px}
  .studio-product-preview-wrap{width:min(100%,440px)}
  .studio-product-dedication{font-size:7px}
}
@media(max-width:560px){
  .studio-preview{padding:14px}
  .studio-product-composition{max-width:390px}
  .studio-product-preview-wrap{width:min(100%,360px)}
  .studio-product-dedication{font-size:6px}
}
/* Close-up label source: keep the live dedication readable inside the printed dashed box. */
.studio-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(18px,2.7vw,36px);align-items:start}
@media(min-width:821px){.studio-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}.studio-preview{position:sticky;top:18px}}
.studio-preview{min-width:0}
.studio-label-frame{display:grid;place-items:center;min-height:0;padding:0;overflow:visible;border:0;border-radius:0;background:transparent}
.studio-product-composition{display:block;width:100%;max-width:560px;margin:0 auto}
.studio-product-bottle{display:block;width:100%;height:auto;min-height:0;overflow:visible}
.studio-product-preview-wrap{position:relative;left:auto;top:auto;width:min(100%,520px);max-width:100%;margin:0 auto;line-height:0}
.studio-product-preview{display:block;width:100%;height:auto;max-height:none;margin:0 auto;object-fit:contain;object-position:center;mix-blend-mode:multiply}
.studio-product-dedication{position:absolute;left:65.4%;top:63.8%;display:flex;align-items:center;justify-content:center;width:13.1%;height:4.1%;padding:0 1px;box-sizing:border-box;overflow:hidden;color:#201611;text-align:center;font-family:"Segoe Print","Bradley Hand","Comic Sans MS",cursive;font-size:8px;font-style:italic;font-weight:700;line-height:1.04;white-space:pre-wrap;overflow-wrap:anywhere;transform:rotate(-1deg)}
.studio-product-preview-wrap.is-label-detail .studio-product-dedication{left:29%;top:64%;width:40%;height:15%;padding:2px 5px;font-size:clamp(14px,2.2vw,28px);line-height:1.02;transform:rotate(-.6deg)}
.studio-product-dedication:empty:before{content:""}
.studio-product-dedication.has-message:after{content:"";flex:0 0 1.5px;width:1.5px;height:1em;margin-left:2px;background:#201611;animation:studio-label-caret 1s steps(2,start) infinite}
.studio-product-zoom{display:none!important}
@media(max-width:820px){.studio-layout{grid-template-columns:minmax(0,1fr);gap:16px}.studio-preview{position:relative;top:auto;padding:16px}.studio-product-composition{max-width:520px}.studio-product-preview-wrap{width:min(100%,500px)}.studio-product-preview-wrap.is-label-detail .studio-product-dedication{font-size:clamp(14px,3vw,25px)}}
@media(max-width:560px){.studio-preview{padding:14px}.studio-product-composition{max-width:440px}.studio-product-preview-wrap{width:min(100%,420px)}.studio-product-preview-wrap.is-label-detail .studio-product-dedication{font-size:clamp(13px,4vw,22px)}}
/* Keep the bottle photo at its original brightness in dark theme. */
[data-rb-theme="dark"] .studio-product-preview{mix-blend-mode:normal}

/* Doble o nada: its provided close-up already frames the message box. */
.studio-product-preview-wrap.is-doble-o-nada .studio-product-dedication{left:29.5%;top:56.5%;width:42%;height:23%;padding:2px 5px;font-size:clamp(14px,2.2vw,28px);line-height:1.02;transform:rotate(-.2deg)}
