/* /d/?c=<code> : friend page of a shared design. Mobile first (375 px is the design size), cream / green / gold like /disena/ and /tienda/. Light only, no horizontal scroll. */
:root { --paper: #fbf8f1; --card: #fff; --ink: #14161a; --ink-2: #555a52; --line: #e6dfcf; --green: #1f6f5c; --gold: #f2b23a; --r: 12px;
  --display: "Gabarito", "Avenir Next", system-ui, sans-serif; --body: "Figtree", "Segoe UI", system-ui, sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--body); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gd-top { display: flex; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; border-bottom: 1px solid var(--line); }
.gd-logo img { height: 28px; width: auto; }
.gd-main { max-width: 520px; margin: 0 auto; padding: 20px 16px calc(40px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.gd-boot { text-align: center; color: var(--ink-2); padding: 60px 0; }
h1 { font: 900 clamp(28px, 8vw, 38px)/1.08 var(--display); margin: 0; color: var(--green); text-wrap: balance; }
h2 { font: 800 22px/1.2 var(--display); margin: 0; }
p { margin: 0; overflow-wrap: anywhere; }
.gd-sub { font-size: 14.5px; color: var(--ink-2); }
.gd-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(20,22,26,.35); }
.gd-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f3efe4; }
.gd-title { padding: 10px 14px; font-weight: 700; text-align: center; border-top: 1px solid var(--line); }
.gd-actions { display: grid; gap: 10px; }
.gd-btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 18px; border-radius: var(--r); font: 700 17px/1.2 var(--body); text-decoration: none; cursor: pointer; border: 2px solid var(--ink); }
.gd-btn-primary { background: var(--gold); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.gd-btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.gd-btn-ghost { background: var(--card); color: var(--ink); }
.gd-btn[disabled] { opacity: .6; }
.gd-form { background: var(--green); color: #fff; border-radius: 16px; padding: 18px 16px; display: grid; gap: 10px; }
.gd-form h2 { color: #fff; }
.gd-form .gd-sub { color: #dcebe5; }
.gd-form label.gd-l { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.gd-form input[type="text"], .gd-form input[type="email"], .gd-form select { min-height: 48px; border-radius: 8px; border: 2px solid transparent; padding: 8px 12px; font: 16px var(--body); background: #fff; color: var(--ink); width: 100%; }
.gd-form input:focus, .gd-form select:focus, .gd-form textarea:focus { border-color: var(--gold); outline: none; }
.gd-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #dcebe5; }
.gd-consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--gold); flex: 0 0 auto; }
.gd-consent a { color: #fff; }
.gd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gd-status { min-height: 1.3em; font-weight: 600; }
.gd-status.is-err { color: #ffd38a; }
.gd-invalid { outline: 3px solid #ffd38a !important; outline-offset: 2px; }
.gd-done { background: #fff; color: var(--ink); border-radius: 14px; padding: 20px; display: grid; gap: 6px; }
.gd-done b { font: 900 24px/1.15 var(--display); color: var(--green); }
.gd-foot { text-align: center; font-size: 14px; color: var(--ink-2); }
.gd-link { display: inline-block; background: none; border: 0; padding: 12px 8px; min-height: 44px; font: 600 14px var(--body); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gd-center { text-align: center; padding-top: 24px; display: grid; gap: 14px; }
@media (prefers-reduced-motion: reduce) { .gd-btn { transition: none; } }
.gd-form[hidden] { display: none; }

/* the design must not push the actions below the fold on a phone: cap the image and keep the buttons pinned to the bottom while scrolling */
.gd-card img { aspect-ratio: auto; max-height: 44svh; object-fit: contain; }
.gd-actions { position: sticky; bottom: 0; z-index: 2; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 75%, transparent); }
[hidden] { display: none !important; }

/* designs are social: heart bar, share row, owner box, comments */
.gd-social { display: flex; align-items: center; gap: 8px; }
.gd-like, .gd-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; }
.gd-like[aria-pressed="true"] { background: #ffe9e6; }
.gd-heart { font-size: 20px; line-height: 1; transition: transform .15s ease; }
.gd-like:active .gd-heart { transform: scale(1.3); }
.gd-chip:last-child { margin-left: auto; }
.gd-sec { display: grid; gap: 10px; }
.gd-share { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gd-sh { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; }
.gd-note { font-size: 13.5px; color: var(--ink-2); }
.gd-big { font: 900 22px/1.15 var(--display); color: #fff; }
.gd-link-s { padding: 8px 8px 8px 0; min-height: 36px; font-size: 13.5px; }
.gd-clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gd-c { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.gd-c-h { font-size: 13.5px; color: var(--ink-2); }
.gd-c-h b { color: var(--ink); }
.gd-c-b { margin-top: 2px; white-space: pre-wrap; }
.gd-c-a { display: flex; gap: 12px; }
.gd-cform { display: grid; gap: 8px; }
.gd-cform input, .gd-cform textarea, .gd-form textarea { width: 100%; border-radius: 8px; border: 2px solid var(--line); padding: 8px 12px; font: 16px var(--body); background: #fff; color: var(--ink); }
.gd-cform textarea { resize: vertical; min-height: 84px; }
.gd-cform input:focus, .gd-cform textarea:focus { border-color: var(--gold); outline: none; }
.gd-cform-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gd-cform-r .gd-btn { width: auto; min-width: 140px; }
@media (prefers-reduced-motion: reduce) { .gd-heart { transition: none; } }
:not(.gd-form) > .gd-status.is-err { color: #b42318; }
.cq-cuenta { margin-left: auto; color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; background: #fbf8f1; border: 1.5px solid var(--green); text-decoration: none; box-sizing: border-box; }
.cq-cuenta svg { display: block; }
.cq-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.cq-cuenta:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gd-buyalt { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; }

/* ---- social-sharing layer: creator line, social proof, share sheet, first-share prompt ---- */
.gd-by { margin-top: -6px; }
.gd-by .gd-by-a, .gd-by { font-weight: 700; font-size: 15px; color: var(--green); }
.gd-by .gd-by-a { padding: 8px 0; min-height: 36px; display: inline-flex; align-items: center; }
.gd-proof { text-align: center; font: 700 15px/1.3 var(--body); color: var(--ink-2); }
.gd-lock { overflow: hidden; }
.gd-layer { position: fixed; inset: 0; z-index: 50; background: rgba(20,22,26,.55); display: flex; align-items: flex-end; justify-content: center; overscroll-behavior: contain; }
.gd-panel { background: var(--paper); width: 100%; max-width: 520px; max-height: 92svh; overflow-y: auto; border-radius: 20px 20px 0 0; border: 2px solid var(--ink); border-bottom: 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); outline: none; overscroll-behavior: contain; }
@media (min-width: 560px) { .gd-layer { align-items: center; } .gd-panel { border-radius: 20px; border-bottom: 2px solid var(--ink); } }
.gd-sheet, .gd-pform { display: grid; gap: 12px; }
.gd-phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gd-x { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); font: 700 18px/1 var(--body); cursor: pointer; }
.gd-cap { width: 100%; resize: none; border-radius: 10px; border: 2px solid var(--line); padding: 10px 12px; font: 16px/1.4 var(--body); background: #fff; color: var(--ink); }
.gd-caprow { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; }
.gd-targets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gd-t { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 74px; padding: 6px 2px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; font: 700 12.5px/1.15 var(--body); text-align: center; }
.gd-t[disabled] { opacity: .55; }
.gd-t:active { background: #fff6dc; }
.gd-ti { font-size: 24px; line-height: 1; font-family: var(--display); }
.gd-steps { margin: 0; padding: 10px 12px 10px 32px; background: #fff6dc; border: 2px solid var(--ink); border-radius: var(--r); font-size: 14.5px; display: grid; gap: 2px; }
.gd-qrbox { display: grid; justify-items: center; gap: 4px; }
.gd-qr { width: 160px; height: 160px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; image-rendering: pixelated; }
.gd-pl { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.gd-pform input[type="text"] { min-height: 48px; border-radius: 8px; border: 2px solid var(--line); padding: 8px 12px; font: 16px var(--body); background: #fff; color: var(--ink); width: 100%; }
.gd-pform input[type="text"]:focus { border-color: var(--gold); outline: none; }
.gd-handle { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.gd-handle:focus-within { border-color: var(--gold); }
.gd-pre { display: flex; align-items: center; padding: 0 0 0 12px; color: var(--ink-2); font: 600 15px var(--body); white-space: nowrap; }
.gd-pform .gd-handle input[type="text"] { border: 0; min-width: 0; flex: 1; padding-left: 2px; }
.gd-hstat { min-height: 1.3em; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.gd-hstat.is-ok { color: var(--green); }
.gd-hstat.is-bad { color: #b42318; }
.gd-pform .gd-status.is-err { color: #b42318; }

/* extra zones of a multi-zone garment (Espalda, Mangas, Costados) */
.gd-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.gd-zones[hidden] { display: none; }
.gd-zones-note { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.gd-zone { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: center; }
.gd-zone img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; background: #f3efe4; }
.gd-zone figcaption { padding: 6px; font-size: 13px; font-weight: 700; }
