:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #1f2a44;
  --ink-2: #4a5470;
  --muted: #7d8499;
  --line: #ece6dc;
  --accent: #ff5a36;
  --accent-ink: #d9401f;
  --accent-soft: #ffe9e0;
  --ok: #1f9d6b;
  --ok-soft: #e3f6ee;
  --warn: #b7791f;
  --warn-soft: #fdf3dc;
  --err: #d23b3b;
  --err-soft: #fde8e8;
  --wa: #1fa855;
  --star: #f5a623;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 42, 68, .05), 0 6px 24px rgba(31, 42, 68, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif; overflow-x: hidden; }
h1, h2, h3, .logo, .big-price, .pc-price { font-family: "Bricolage Grotesque", Inter, sans-serif; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 22px; margin: 36px 0 14px; }
h3 { font-size: 17px; margin: 18px 0 10px; }
.h-reset { margin-top: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code { background: #f3eee6; padding: 2px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; color: var(--ink); }
.center { text-align: center; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.ok-text { color: var(--ok); }
.dim { opacity: .6; }

/* ---- Barra superior ---- */
.topbar { background: rgba(250, 247, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-size: 22px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 16px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav > a { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.nav > a.btn { color: #fff; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; width: 250px; display: flex; flex-direction: column; gap: 2px; }
.menu-pop a { color: var(--ink); padding: 7px 8px; border-radius: 8px; }
.menu-pop a:hover { background: var(--bg); text-decoration: none; }
.demo-bar { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 13px; padding: 8px 16px; }

/* ---- Botones ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; font: 600 14px Inter, sans-serif; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: transform .08s, background .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); text-decoration: none; color: #fff; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.danger { color: var(--err); }
.btn.danger:hover { border-color: var(--err); color: var(--err); }
.btn.wa { background: var(--wa); border-color: var(--wa); }
.btn.wa:hover { background: #178a45; border-color: #178a45; }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.btn.lg { padding: 13px 24px; font-size: 15px; }
.btn.block { width: 100%; margin-top: 8px; }

/* ---- Tarjetas y avisos ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 24px; }
.alert { padding: 12px 16px; border-radius: 12px; margin: 16px 0; font-size: 14px; background: var(--ok-soft); color: #13704b; }
.alert.err { background: var(--err-soft); color: var(--err); }
.alert.info { background: var(--warn-soft); color: #8a5a12; }
.empty { text-align: center; padding: 40px 24px; }
.page-title { font-size: 32px; margin: 32px 0 18px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.back { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--ink-2); }
.crumbs { margin: 20px 0 14px; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: #f1ece4; color: var(--ink-2); }
.tag-premium { background: var(--accent-soft); color: var(--accent-ink); }
.count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #e3dccf; }
.save { background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0 6px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---- Avatares ---- */
.av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e9e3d9; flex-shrink: 0; vertical-align: middle; }
.av.xs { width: 22px; height: 22px; }
.av.sm { width: 34px; height: 34px; }
.av.lg { width: 72px; height: 72px; border: 4px solid #fff; }
.av.xl { width: 120px; height: 120px; border: 5px solid #fff; box-shadow: var(--shadow); }

/* ---- Portada tienda ---- */
.shop-hero { padding: 48px 0 8px; text-align: center; }
.shop-hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin: 0 auto 14px; max-width: 820px; }
.shop-hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 620px; margin: 0 auto; }
.shop-hero .search { max-width: 680px; margin: 26px auto 16px; }
.shop-hero .chips { justify-content: center; }
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { flex: 1; }
.search.big input { padding: 14px 20px; border-radius: 999px; font-size: 16px; box-shadow: var(--shadow); }
.shop-layout { display: grid; grid-template-columns: 1fr 290px; gap: 28px; align-items: start; }
.shop-main { min-width: 0; }
.shop-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.side-box h3 { margin-top: 0; }
.creator-strip { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.creator-row { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 12px; color: var(--ink); }
.creator-row:hover { background: var(--bg); text-decoration: none; }
.creator-row .grow { display: flex; flex-direction: column; line-height: 1.3; }
.creator-row .grow .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.sell-box { background: linear-gradient(140deg, #fff 30%, var(--accent-soft)); }

/* ---- Tarjetas de producto ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product-grid.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 24px; }
.product-grid.featured { grid-template-columns: repeat(3, 1fr); }
.product-grid.featured .big { grid-column: span 2; grid-row: span 2; }
.product-grid.featured .big h3 { font-size: 22px; }
.product-card { position: relative; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 10px 30px rgba(31, 42, 68, .12); }
.pc-cover { aspect-ratio: 4 / 3; background: #f1ece4; overflow: hidden; }
.product-grid.featured .big .pc-cover { aspect-ratio: auto; flex: 1; min-height: 260px; }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #ffd5c4, #ffe9b8 55%, #d8e6ff); }
.placeholder span { font: 800 22px "Bricolage Grotesque", sans-serif; color: rgba(31, 42, 68, .55); letter-spacing: .05em; text-align: center; padding: 0 10px; }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ribbon.new { background: var(--ok); }
.ribbon.pack { background: #6b4fd8; }
.ribbon.static { position: static; display: inline-block; margin-bottom: 8px; }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.pc-body h3 { font-size: 16px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-author { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.pc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; gap: 8px; }
.pc-price { font-size: 19px; font-weight: 800; }
.pc-price s { font-family: Inter, sans-serif; font-weight: 400; margin-left: 4px; }

/* ---- Página de producto ---- */
.product-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.product-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.product-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #f1ece4; box-shadow: var(--shadow); }
.product-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-cover.placeholder span { font-size: 40px; }
.product-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.product-title { font-size: 26px; margin: 0 0 8px; }
.buy-box .big-price { margin: 12px 0 4px; }
.buy-box .pc-meta { margin: 8px 0; font-size: 13px; }
.buy-form .email-field { margin-top: 8px; }
.coupon { margin-top: 10px; }
.coupon summary { cursor: pointer; color: var(--ink-2); }
.coupon .inline-form { margin-top: 8px; flex-wrap: nowrap; }
.trust { list-style: none; padding: 12px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.buy-box .share .btn { width: 100%; }
.includes { padding-left: 0; list-style: none; display: grid; gap: 6px; }
.preview-img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.preview-pdf { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.preview-block h3 { margin-top: 0; }
.unlocked { border-color: var(--ok); }
.author-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.pack-hint { display: block; color: var(--ink); background: linear-gradient(140deg, #fff 40%, #efeaff); }
.pack-hint:hover { text-decoration: none; border-color: #6b4fd8; }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review p { margin: 6px 0 0; color: var(--ink-2); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { display: none; }
.star-input label { font-size: 30px; color: #e3dccf; cursor: pointer; flex-direction: row; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.pack-items { display: flex; flex-direction: column; gap: 8px; }
.pack-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); }
.pack-item:hover { text-decoration: none; border-color: var(--ink-2); }
.pack-item .grow { display: flex; flex-direction: column; }
.pi-cover, .li-cover { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f1ece4; }
.li-cover { width: 40px; height: 40px; display: inline-block; vertical-align: middle; }
.pi-cover img, .li-cover img { width: 100%; height: 100%; object-fit: cover; }
.pi-cover.placeholder span, .li-cover.placeholder span { font-size: 12px; }

/* ---- Creadores ---- */
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.creator-card { overflow: hidden; color: var(--ink); transition: transform .15s; display: block; }
.creator-card:hover { transform: translateY(-3px); text-decoration: none; }
.cc-cover { height: 86px; background: linear-gradient(120deg, #ffd5c4, #ffe9b8 60%, #d8e6ff); background-size: cover; background-position: center; }
.creator-card .av.lg { margin: -36px 0 0 16px; }
.cc-body { padding: 6px 16px 18px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cc-body p { margin: 2px 0; min-height: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 13px; }
.chip:hover { text-decoration: none; border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sortbar { display: flex; gap: 14px; flex-wrap: wrap; margin: -8px 0 18px; color: var(--muted); }
.sortbar a { color: var(--ink-2); }
.sortbar a.on { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---- Perfil del creador ---- */
.profile-cover { height: 240px; background: linear-gradient(120deg, #ffd5c4, #ffe9b8 55%, #d8e6ff); background-size: cover; background-position: center; }
.profile { display: grid; grid-template-columns: auto 1fr 300px; gap: 24px; align-items: start; margin-top: -60px; }
.profile-info { padding-top: 70px; min-width: 0; }
.profile-info h1 { font-size: 34px; margin: 0 0 4px; }
.headline { font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.bio { color: var(--ink-2); max-width: 600px; }
.stats { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.profile .row-actions .share { margin-top: 0; }
.sub-box { margin-top: 70px; position: sticky; top: 84px; }
.sub-box .strong { margin: 0 0 6px; }
.big-price { font-size: 34px; font-weight: 800; margin: 4px 0 8px; }
.big-price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.big-price s { font: 400 15px Inter, sans-serif; }
.big-price.sm { font-size: 22px; margin: 0; }
.perks { padding-left: 18px; margin: 10px 0 12px; color: var(--ink-2); font-size: 14px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 28px 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--accent); }
.studio-tabs { margin-top: 10px; }

/* ---- Publicaciones (muro) ---- */
.feed { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.post { padding: 20px; margin-bottom: 18px; }
.feed .post, .feed-grid .post { margin-bottom: 0; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head .badge { margin-left: auto; }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.badge-open { background: var(--ok-soft); color: var(--ok); }
.post-title { font-size: 20px; margin: 14px 0 8px; }
.post-title a { color: var(--ink); }
.post-img { width: 100%; border-radius: 12px; margin: 6px 0 10px; display: block; max-height: 560px; object-fit: cover; }
.post-body { color: var(--ink-2); overflow-wrap: anywhere; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 16px; border-radius: 12px; background: var(--bg); border: 1px dashed #d8cfc2; color: var(--ink); font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.file-chip:hover { border-color: var(--accent); text-decoration: none; }
.locked { margin-top: 8px; border-radius: 14px; padding: 26px 20px; text-align: center; background: repeating-linear-gradient(135deg, #f6f1ea, #f6f1ea 12px, #f1ebe2 12px, #f1ebe2 24px); }
.locked-icon { font-size: 28px; }
.locked p { margin: 6px 0 14px; }
.locked-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* ---- Currículum ---- */
.cv { padding: 40px; margin-top: 14px; }
.cv-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.cv-actions .row-actions .share { margin-top: 0; }
.cv-head { display: flex; gap: 24px; align-items: center; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.cv-head h1 { font-size: 34px; margin: 0 0 4px; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); margin-top: 8px; }
.cv section { margin-top: 24px; }
.cv h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin: 0 0 12px; }
.cv-item { margin-bottom: 14px; }
.cv-item-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cv-item p { margin: 4px 0 0; color: var(--ink-2); }
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tags .tag { font-size: 13px; padding: 4px 12px; }
.cv-edit h3 { margin-bottom: 8px; }
.cv-row { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.cv-row summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.cv-row summary::-webkit-details-marker { display: none; }
.cv-row > form { padding: 0 12px 12px; }
.cv-add summary { list-style: none; display: inline-flex; margin-top: 4px; }
.cv-add summary::-webkit-details-marker { display: none; }
.cv-add[open] summary { display: none; }

/* ---- Formularios ---- */
.form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.form h3 { margin: 10px 0 0; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
label.inline { flex-direction: row; align-items: center; gap: 6px; display: inline-flex; font-weight: 400; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=file] { padding: 9px; background: var(--bg); border-style: dashed; }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prefix { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding-left: 12px; }
.prefix span { color: var(--muted); white-space: nowrap; font-weight: 400; }
.prefix.suffix { padding-left: 0; padding-right: 12px; }
.prefix input { border: 0; box-shadow: none !important; min-width: 0; }
.prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.access { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.access.three { grid-template-columns: repeat(3, 1fr); }
.access legend { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.choice { flex-direction: row; align-items: flex-start; gap: 10px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 4px; }
.choice small { display: block; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.premium-opts { background: var(--bg); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.premium-opts p { margin: 0; }
.switch { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.radio-list { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pick { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.pick legend { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.pick-item { flex-direction: row; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; font-weight: 400; }
.pick-item:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.narrow-form { max-width: 720px; }
.auth { max-width: 460px; padding: 48px 16px; }
.auth h1 { margin-top: 0; }
.steps-list { padding-left: 20px; color: var(--ink-2); }
.steps-list li { margin-bottom: 6px; }
.profile-edit { position: relative; margin-bottom: 40px; }
.cover-preview { height: 140px; border-radius: 12px; background: linear-gradient(120deg, #ffd5c4, #ffe9b8 55%, #d8e6ff); background-size: cover; background-position: center; }
.profile-edit .av { position: absolute; left: 20px; bottom: -40px; width: 96px; height: 96px; }
.demo-tag { display: inline-block; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: 11px; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; }
.legal h2 { font-size: 18px; margin-top: 24px; }

/* ---- Estudio y admin ---- */
.studio-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
.share-card .share { margin-top: 10px; }
.share-link { font: 700 20px "Bricolage Grotesque", sans-serif; overflow-wrap: anywhere; }
.qr-row { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.qr { background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--line); flex-shrink: 0; min-width: 112px; min-height: 112px; }
.qr-row p { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; }
.checklist .done { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { padding: 18px; }
.kpi span { color: var(--muted); font-size: 13px; display: block; }
.kpi strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 26px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; display: table; margin-bottom: 24px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 12px 14px; background: #fcfaf7; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.struck td { opacity: .55; }
.t-title { display: flex; align-items: center; gap: 10px; }
.status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f1ece4; color: var(--ink-2); white-space: nowrap; }
.s-approved, .s-paid, .s-closed { background: var(--ok-soft); color: var(--ok); }
.s-pending, .s-in_process, .s-open { background: var(--warn-soft); color: var(--warn); }
.s-rejected, .s-cancelled, .s-refunded { background: var(--err-soft); color: var(--err); }
.earn-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.withdraw { display: flex; gap: 8px; margin: 14px 0 6px; }
.withdraw input { max-width: 180px; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
.list-item form { margin: 0; }
.list-item .li-cover { width: 54px; height: 54px; }
.wd-head { display: flex; justify-content: space-between; gap: 12px; }
.payout { background: var(--bg); border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-size: 14px; }
.wd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wd-actions input { flex: 1; min-width: 180px; padding: 7px 12px; }
.inline-form { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin: 0; align-items: center; }
.inline-form input { width: auto; flex: 1; min-width: 140px; padding: 7px 12px; }

.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 26px 0; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); }

/* ---- Móvil ---- */
@media (max-width: 1000px) {
  .shop-layout, .product-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; margin-top: 0; order: -1; }
  .shop-side .sell-box { display: none; }
  .creator-strip { flex-direction: row; overflow-x: auto; gap: 14px; scrollbar-width: none; padding-bottom: 4px; }
  .creator-strip .creator-row { flex-direction: column; text-align: center; padding: 4px; width: 76px; flex-shrink: 0; gap: 4px; }
  .creator-strip .creator-row .av { width: 60px; height: 60px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
  .creator-strip .creator-row .grow strong { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 72px; }
  .creator-strip .creator-row .grow .small, .creator-strip .rank { display: none; }
  .shop-side .side-box { padding: 14px; }
  .shop-side .side-box h3 { display: none; }
  .shop-side .side-box > a.small { display: none; }
  .creator-strip { margin-bottom: 0; }
  .product-side { position: static; }
  .studio-top { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .profile, .earn-grid { grid-template-columns: 1fr; }
  .profile { margin-top: -60px; gap: 8px; }
  .profile-info { padding-top: 0; }
  .sub-box { margin-top: 10px; position: static; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .profile-cover { height: 160px; }
  .product-grid.featured { grid-template-columns: 1fr 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid2, .access, .access.three { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .hide-sm { display: none; }
  .nav > a:not(.btn):nth-child(2) { display: none; }
  .logo { font-size: 19px; }
  .shop-hero { padding-top: 28px; text-align: left; }
  .shop-hero .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { white-space: nowrap; }
  .lead { font-size: 16px; }
  .shop-hero h1 { font-size: 30px; }
  .search.big .btn { padding: 10px 16px; }
  .search.big input { padding: 12px 16px; font-size: 15px; }
  .shop-hero .search { margin: 18px 0 12px; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .pad { padding: 18px; }
  .cv { padding: 22px; }
  .cv-head { flex-direction: column; align-items: flex-start; }
  .feed-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid.wide { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-grid.featured .big { grid-column: span 2; grid-row: auto; }
  .product-grid.featured .big .pc-cover { aspect-ratio: 4 / 3; min-height: 0; }
  .pc-body { padding: 10px; }
  .pc-body h3 { font-size: 14px; }
  .pc-price { font-size: 16px; }
  .pc-foot .btn { display: none; }
  .preview-pdf { height: 380px; }
  .kpi strong { font-size: 20px; }
  .withdraw { flex-direction: column; }
  .withdraw input { max-width: none; }
}

/* ---- Impresión (currículum en PDF) ---- */
@media print {
  .topbar, .foot, .no-print, .demo-bar, .alert { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .wrap.narrow { max-width: none; padding: 0; }
  .cv { box-shadow: none; border: 0; padding: 0; margin: 0; }
  .cv a { color: var(--ink); }
  .av.xl { width: 90px; height: 90px; box-shadow: none; }
  .cv-item { break-inside: avoid; }
}
