@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/fraunces-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/fraunces-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #F6EFE6;
  --card: #FFFFFF;
  --ink: #5A4033;
  --ink-2: #5A4033;
  --muted: #7A6558;
  --line: #E4D6C6;
  --accent: #4F6F55;
  --accent-dark: #3B5541;
  --accent-soft: #E4ECE1;
  --gold: #A7B89A;
  --gold-light: #C9D6BF;
  --display: 'Fraunces', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); }
#view { padding: calc(env(safe-area-inset-top) + 28px) 20px calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 22px; }
#view.flush { padding-top: 0; padding-left: 0; padding-right: 0; }

#demo-banner { background: var(--gold); color: var(--ink); text-align: center; font-size: 12px; font-weight: 700; padding: 6px; letter-spacing: .5px; }

/* Tab bar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(72px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line); display: flex; justify-content: space-around; z-index: 10; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #7A6558; min-width: 56px; padding-top: 10px; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--accent); font-weight: 700; }

/* Type */
.brand { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
h1 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 0; }
h2 { font-family: var(--display); font-size: 20px; font-weight: 700; margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.eyebrow { font-size: 12px; letter-spacing: 1.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }

/* Layout helpers */
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-s { display: flex; flex-direction: column; gap: 4px; }

/* Controls */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; height: 50px; }
.search input { border: none; outline: none; background: transparent; font-size: 16px; flex-grow: 1; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; color: var(--ink); cursor: pointer; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; border: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--card); }
.btn.small { min-height: 40px; font-size: 14px; border-radius: 999px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 auto; }
.linkbtn { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; padding: 8px 0; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn.on { color: var(--accent); }
.iconbtn.on svg { fill: currentColor; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent); }
select.pill { appearance: none; background: transparent; border: 1px solid var(--ink); border-radius: 999px; padding: 0 14px; height: 40px; font-size: 14px; font-weight: 700; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.card:hover { color: var(--ink); border-color: #D6C3AD; }
.photo { background: #B9855A center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--bg); font-family: var(--display); font-weight: 700; }
.card .photo { height: 160px; font-size: 44px; }
.card-body { padding: 14px 16px; }
.listrow { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; color: var(--ink); }
.listrow:hover { color: var(--ink); border-color: #D6C3AD; }
.listrow .photo { width: 68px; height: 68px; border-radius: 14px; flex-shrink: 0; font-size: 24px; }
.listrow .stack-s { flex-grow: 1; min-width: 0; }
.name { font-size: 16px; font-weight: 700; }
.badge { font-size: 11px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); border-radius: 8px; padding: 4px 8px; white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.rating svg { width: 16px; height: 16px; fill: var(--accent); }

.dark { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.dark .eyebrow { color: var(--gold-light); }
.dark .title { font-family: var(--display); font-size: 19px; font-weight: 500; line-height: 1.3; }
.dark a { color: var(--gold-light); font-weight: 700; font-size: 14px; }

.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 700; flex-shrink: 0; }
.avatar.big { width: 88px; height: 88px; font-family: var(--display); font-size: 36px; }

/* Ficha */
.hero { height: 260px; position: relative; font-size: 64px; }
.hero .iconbtn { position: absolute; top: calc(env(safe-area-inset-top) + 16px); border: none; }
.hero .back { left: 16px; }
.hero .save { right: 16px; }
.sheet { margin-top: -24px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px 20px 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.seal { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent-dark); letter-spacing: .5px; text-transform: uppercase; }
.seal svg { width: 16px; height: 16px; }
.desc { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }

.review { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.review p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); white-space: pre-line; }
.stars { color: var(--accent); letter-spacing: 1px; font-size: 14px; }
.star-input { display: flex; gap: 4px; }
.star-input button { background: none; border: none; font-size: 32px; line-height: 1; color: #D6C3AD; cursor: pointer; padding: 2px; min-width: 44px; min-height: 44px; }
.star-input button.on { color: var(--accent); }

/* Perfil */
.stats { display: flex; gap: 10px; }
.stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 0; }
.stat b { font-size: 20px; }
.stat span { font-size: 12px; color: var(--muted); }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; border: none; padding: 12px 0; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }

/* Artículo */
.article p, .article li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.article p { margin: 0 0 14px; white-space: pre-line; }
.article h2 { font-size: 21px; margin: 22px 0 10px; }
.article ul { margin: 0 0 16px; padding-left: 20px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent); }
.article strong { color: var(--ink); }
.article a { text-decoration: underline; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink); margin: 0; font-weight: 500; }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); font-size: 15px; background: var(--card); border: 1px dashed var(--line); border-radius: 16px; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }

#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 20; max-width: 90vw; text-align: center; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Eventos */
.datebadge { width: 60px; height: 64px; border-radius: 14px; background: var(--ink); color: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.datebadge b { font-family: var(--display); font-size: 24px; line-height: 1; }
.datebadge span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-light); margin-top: 3px; }
.btn svg { width: 18px; height: 18px; }

/* ───────── Comunidad ───────── */
.seg { display: flex; background: #EDE3D6; border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; padding: 9px 0; border-radius: 9px; background: transparent; border: none; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 700; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.post .head { display: flex; align-items: center; gap: 10px; }
.post .who { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; color: var(--ink); }
.post .who b { font-size: 14px; }
.post .who span { font-size: 12px; color: var(--muted); }
.post .body { color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.post .txt { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.post .img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; background: #EDE3D6; }
.post .acts { display: flex; align-items: center; gap: 14px; border-top: 1px solid #F0E6DA; padding-top: 6px; }
.act { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; font-size: 13px; color: var(--muted); padding: 8px 0; cursor: pointer; min-height: 40px; }
.act svg { width: 18px; height: 18px; }
.act.on { color: var(--accent); font-weight: 700; }
.act.on svg.fillon { fill: currentColor; }
.tq, .tc { font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tq { background: var(--accent-soft); color: var(--accent-dark); }
.tc { background: #EFE3D6; color: #6A4A38; }
.ok { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); }
.av { border-radius: 50%; background: var(--gold) center / cover no-repeat; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink); flex-shrink: 0; overflow: hidden; }
.linkchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: #F6EFE6; color: var(--accent-dark); overflow-wrap: anywhere; }
.answer { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.answer.best { border-color: #8FB08A; background: #F5F9F3; }
.replybar { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; bottom: calc(72px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); padding: 10px 14px; display: flex; gap: 10px; align-items: flex-end; z-index: 9; box-sizing: border-box; }
.replybar textarea { flex-grow: 1; min-height: 44px; max-height: 120px; border-radius: 22px; border: 1px solid var(--line); padding: 11px 16px; font-size: 15px; background: var(--bg); resize: none; }
.replybar button { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.replybar button svg { width: 18px; height: 18px; }
.info { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.info div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.info svg { width: 18px; height: 18px; flex-shrink: 0; }
.addphoto { min-height: 86px; border-radius: 14px; border: 1.5px dashed #CDBBA6; background: transparent; color: var(--muted); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; position: relative; overflow: hidden; }
.preview { position: relative; }
.preview img { width: 100%; border-radius: 14px; max-height: 320px; object-fit: cover; }
.preview button { position: absolute; top: 8px; right: 8px; }
/* Hoja de opciones y ventanas */
.overlay { position: fixed; inset: 0; background: rgba(58, 40, 32, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.overlay.center { align-items: center; padding: 16px; }
.sheet2 { background: var(--card); width: 100%; max-width: 480px; border-radius: 24px 24px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 2px; max-height: 85vh; overflow: auto; }
.sheet2 .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; margin-bottom: 10px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 13px 0; background: none; border: none; border-bottom: 1px solid #F0E6DA; text-align: left; color: var(--ink); cursor: pointer; width: 100%; }
.opt:last-child { border-bottom: none; }
.opt svg { width: 22px; height: 22px; flex-shrink: 0; }
.opt b { font-size: 15px; display: block; }
.opt small { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.opt.danger { color: #9A3B2A; }
.modal { background: var(--bg); border-radius: 26px; padding: 24px 20px 20px; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.norma { display: flex; gap: 12px; align-items: flex-start; }
.norma > span { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.norma svg { width: 17px; height: 17px; }
.norma b { font-size: 14px; display: block; }
.norma small { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.gate { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 10px; }
.more { align-self: center; }
.ok svg, .linkchip svg { width: 16px; height: 16px; flex-shrink: 0; }
.addphoto svg { width: 22px; height: 22px; }
[hidden] { display: none !important; }

/* v11 · historias y hashtags */
.th { font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; background: var(--ink); color: #F6EFE6; }
.ptitle { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 19px; line-height: 1.25; color: var(--ink); }
.hashtag { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.hashtag:active { background: var(--gold-light); }
.destacada { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--ink); color: #F6EFE6; text-decoration: none; }
.destacada img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.destacada .dbody { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.destacada .eyebrow { color: var(--gold-light); }
.destacada .dtitle { font-family: 'Fraunces', Georgia, serif; font-size: 21px; line-height: 1.2; }
.destacada .dtxt { font-size: 14px; line-height: 1.45; color: #E8DCCD; }
.destacada .dmas { font-size: 13px; font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.destacada.vacia { padding: 16px; gap: 6px; background: var(--accent-soft); color: var(--ink); border: 1px dashed var(--gold); }
.destacada.vacia .eyebrow { color: var(--accent-dark); }
.destacada.vacia b { font-size: 16px; }
.seg button { padding-left: 2px; padding-right: 2px; }
.destacada .dtitle, .destacada .dbody .row span:not(.dmas) { color: #F6EFE6; }
.destacada.vacia b { color: var(--ink); }
.review.tuyo { margin-top: 8px; gap: 4px; background: var(--accent-soft); border: 1px dashed var(--gold); color: var(--ink); }
.review.tuyo b { font-size: 15px; }
.review.tuyo .muted { font-size: 14px; line-height: 1.45; }

/* v13 · cultura */
.covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.obra { display: flex; flex-direction: column; gap: 4px; color: var(--ink); min-width: 0; }
.obra:hover { color: var(--ink); }
.obra b { font-size: 14px; line-height: 1.3; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.obra span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(90, 64, 51, .15); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--card); }
.cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; color: #F6EFE6; font-family: 'Fraunces', Georgia, serif; font-size: 16px; line-height: 1.2; }
.cover.mini { width: 76px; flex-shrink: 0; border-radius: 10px; }
.cover.mini .ph { font-size: 11px; padding: 6px; }
.cover.big { width: 180px; margin: 0 auto; border-radius: 14px; }
.cover.big .ph { font-size: 20px; }
.obra-det { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.reco { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--ink); color: #F6EFE6; }
.reco:hover { color: #F6EFE6; }
.reco .eyebrow { color: var(--gold-light); }
.reco .rtitle { font-family: 'Fraunces', Georgia, serif; font-size: 18px; line-height: 1.2; }
.reco .rmeta { font-size: 12px; color: #E8DCCD; }
.reco .rdesc { font-size: 13px; line-height: 1.4; color: #E8DCCD; }
.review .photo.av { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; font-size: 20px; }

/* v14 · menú, avisos */
.topbar { display: flex; align-items: center; gap: 10px; }
.topbar .brand { flex-grow: 1; font-size: 24px; }
.iconbtn.bell { position: relative; }
.nbadge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; border-radius: 10px; background: #B5523B; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--bg); }
.overlay.top { align-items: flex-start; padding: calc(env(safe-area-inset-top) + 12px) 12px 12px; }
.drop { width: 100%; max-width: 456px; max-height: calc(100vh - 24px); overflow-y: auto; background: var(--card); border-radius: 22px; padding: 12px; box-shadow: 0 14px 40px rgba(58, 40, 32, .3); animation: bajar .18s ease-out; }
@keyframes bajar { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--bg); color: var(--ink); }
.tile:hover { color: var(--ink); background: var(--accent-soft); }
.tile i { font-style: normal; font-size: 22px; line-height: 1; margin-bottom: 4px; }
.tile b { font-size: 15px; }
.tile small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.minis { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 2px 4px; }
.minis a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
.minis a svg { width: 16px; height: 16px; }
.aviso { display: flex; gap: 12px; padding: 10px 8px; border-radius: 14px; color: var(--ink); align-items: flex-start; }
.aviso:hover { color: var(--ink); background: var(--bg); }
.aviso.new { background: var(--accent-soft); }
.aviso .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aviso p { margin: 0; font-size: 14px; line-height: 1.4; }
.aviso small { font-size: 12px; color: var(--muted); }

/* v15 · seguir */
.aviso { align-items: center; }
.aviso-a { display: flex; gap: 12px; align-items: flex-start; flex-grow: 1; color: var(--ink); min-width: 0; }
.aviso-a:hover { color: var(--ink); }
.aviso .btn.small { flex-shrink: 0; }
.listrow .btn.small, .aviso .btn.small { white-space: nowrap; flex-shrink: 0; }

/* v16 · fichas gestionadas, instalar */
.galhero { overflow: hidden; background: var(--ink); }
.galtrack { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.galtrack::-webkit-scrollbar { display: none; }
.galtrack img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.galdots { position: absolute; bottom: 36px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.galdots i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .5; }
.galdots i.on { opacity: 1; }
.gestionada { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.nov { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.nov small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.replyb { margin: 2px 0 0 4px; border-left: 3px solid var(--gold); padding: 4px 0 4px 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.galedit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gi { position: relative; aspect-ratio: 1; border-radius: 12px; background: #A08169 center / cover no-repeat; }
.gi.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--card); border: 2px dashed var(--gold); color: var(--accent); font-size: 22px; font-weight: 700; cursor: pointer; text-align: center; }
.gi.add span { font-size: 12px; }
div.gi.add { font-size: 13px; color: var(--muted); }
.gb { position: absolute; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(58, 40, 32, .75); color: #fff; font-size: 13px; cursor: pointer; }
.gb.x { right: 6px; } .gb.star { left: 6px; }
.portada { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px; }
.brandtag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #EFE3D6; color: #6A4A38; white-space: nowrap; }
.brandtag:hover { color: #6A4A38; background: #E6D6C5; }
.installbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 456px; z-index: 20; background: var(--ink); color: #F6EFE6; border-radius: 18px; padding: 12px 12px 12px 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.installbar b { font-size: 14px; display: block; } .installbar small { font-size: 12px; color: #E8DCCD; display: block; }
.installbar .btn.small { background: #F6EFE6; color: var(--ink); border-color: #F6EFE6; flex-shrink: 0; }
.ib-x { background: none; border: none; color: #F6EFE6; opacity: .7; font-size: 16px; cursor: pointer; padding: 6px; }
.paso { display: flex; gap: 12px; align-items: center; font-size: 15px; padding: 8px 0; }
.paso i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #F6EFE6; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.minis button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
#f-nov textarea, .resp-wrap textarea { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; resize: vertical; }

/* v17 · buscador */
.persona { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.persona .btn.small { flex-shrink: 0; white-space: nowrap; }
.tagmini { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); white-space: nowrap; }
.resb { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.resb:hover { color: var(--ink); border-color: #D6C3AD; }
.resb mark { background: #F2E2B8; color: inherit; border-radius: 3px; padding: 0 2px; }
.tipob { font-size: 10px; font-weight: 700; letter-spacing: .4px; padding: 3px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-dark); white-space: nowrap; }

/* v18 · mi tip del día, solidaridad */
.tipdia { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 20px; background: var(--accent-soft); border: 1px solid #DCCFB8; color: var(--ink); }
.tipdia .eyebrow { color: var(--accent-dark); }
.tipdia b { font-size: 17px; line-height: 1.3; }
.tipdia span:not(.eyebrow) { font-size: 15px; line-height: 1.5; }
.tipdia a { font-size: 14px; font-weight: 700; margin-top: 2px; }
.okreg { flex-shrink: 0; align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #E3EDE2; color: #3F6147; white-space: nowrap; }

/* v19 · Historia negra */
.refcard { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--ink); color: #F6EFE6; }
.refcard:hover { color: #F6EFE6; }
.refcard .eyebrow { color: var(--gold-light); }
.refcard blockquote { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 19px; line-height: 1.35; color: #F6EFE6; }
.refcard b { font-size: 15px; color: #F6EFE6; }
.refcard small { font-size: 12px; color: #E8DCCD; }
.refcard .refmas { font-size: 13px; font-weight: 700; color: var(--gold-light); }
.refav { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--gold-light); color: var(--ink); font: 700 20px 'Fraunces', Georgia, serif; }
.refav.big { width: 84px; height: 84px; font-size: 36px; }
.refquote { margin: 0; padding: 18px 20px; border-radius: 20px; background: var(--accent-soft); border-left: 4px solid var(--gold); display: flex; flex-direction: column; gap: 10px; }
.refquote blockquote { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 20px; line-height: 1.4; color: var(--ink); }
.refquote figcaption { font-size: 12px; line-height: 1.45; color: var(--muted); }
.refquote details { font-size: 13px; color: var(--muted); }
.refquote details summary { cursor: pointer; font-weight: 700; }
.refquote details p { margin: 6px 0 0; font-style: italic; line-height: 1.45; }

/* v21 · Mi Corona y página del proyecto */
.brandbox { flex-grow: 1; display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brandbox .brand { font-size: 24px; }
.brandsub { font-size: 11px; letter-spacing: .2px; color: var(--muted); }
.proyectocard { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg); color: var(--ink); font-size: 13px; line-height: 1.45; }
.proyectocard:hover { color: var(--ink); background: var(--accent-soft); }
.proyectocard span { color: var(--accent); font-weight: 700; white-space: nowrap; }
.proyhero { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: 22px; background: var(--ink); color: #F6EFE6; }
.proyhero .eyebrow { color: var(--gold-light); }
.proyhero h1 { margin: 0; color: #F6EFE6; font-size: 30px; line-height: 1.15; }
.proyhero p { margin: 0; color: #E8DCCD; line-height: 1.5; }
.area { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.area i { font-style: normal; font-size: 22px; line-height: 1.2; }
.area div { display: flex; flex-direction: column; gap: 2px; }
.area span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.libro { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.libro:hover { color: var(--ink); border-color: #D6C3AD; }
.proyquote { margin: 4px 0 0; padding: 14px 16px; border-left: 4px solid var(--gold); background: var(--accent-soft); border-radius: 12px; font-family: 'Fraunces', Georgia, serif; font-size: 18px; line-height: 1.4; color: var(--ink); }
