/* =========================================================
   Truequers · Estilos
   ========================================================= */
:root {
  --brand: #25D366;
  --brand-600: #128C4A;   /* verde oscuro: hover y texto sobre fondo claro */
  --brand-50: #E9FBF0;
  --teal: #0F766E;
  --teal-50: #E7F6F4;
  --ink: #1B1A1F;
  --text: #427AA8;
  --ink-2: #427AA8;
  --muted: #7C7986;
  --line: #ECE8E3;
  --bg: #FAF8F5;
  --card: #FFFFFF;
  --gold: #F5B301;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 26, 31, .05), 0 6px 20px rgba(27, 26, 31, .06);
  --shadow-lg: 0 20px 60px rgba(27, 26, 31, .18);
  --gutter: 16px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 500;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { margin: 40px 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section__head h2 { font-size: var(--fs-h2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 18px; font-weight: 700; font-size: 1rem;
  background: var(--ink); color: #fff; transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--brand { background: var(--brand); }
.btn--brand:hover { background: var(--brand-600); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: #fff; }
.btn--soft { background: var(--brand-50); color: var(--brand-600); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 22px; font-size: 1rem; }
.btn--sm { padding: 7px 12px; font-size: .85rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 245, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em; }
.logo__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #7BE8A6); color: #fff; font-size: 1.1rem;
}
.logo--sm { font-size: 1.1rem; }
.logo--sm .logo__mark { width: 28px; height: 28px; }
.search { position: relative; width: 100%; min-width: 0; }
.search input {
  width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; padding: 0 16px 0 44px; outline: none; transition: border .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.topbar__actions { display: flex; align-items: center; gap: 6px; }

/* Botón y menú de categorías */
.catnav { position: relative; }
.cat-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid #BFEFD2; background: var(--brand-50); color: var(--text);
  font-weight: 700; font-size: 1rem; transition: background .15s, border-color .15s;
}
.cat-btn:hover, .cat-btn[aria-expanded="true"] { background: #D6F7E3; border-color: var(--brand); }
.cat-btn__icon { color: var(--brand-600); }
.cat-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  width: min(720px, calc(100vw - 2 * var(--gutter)));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
  box-shadow: var(--shadow-lg); animation: pop .16s ease-out;
}
.cat-menu[hidden] { display: none; }
.cat-menu a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
  font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-menu a:hover, .cat-menu a:focus-visible { background: var(--brand-50); color: var(--text); outline: none; }
.cat-menu a.is-active { background: var(--brand-50); color: var(--brand-600); }
.cat-menu .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); font-size: 1rem; flex-shrink: 0; }
.btn--outline { background: #fff; color: var(--text); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.navlink--btn { background: none; border: 0; }

@media (max-width: 1100px) {
  .hide-tablet { display: none !important; }
}
/* Tablets: el buscador pasa a una segunda fila a todo el ancho para que los botones quepan en una línea */
@media (min-width: 761px) and (max-width: 960px) {
  .topbar__inner { row-gap: 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .topbar__actions { grid-column: 4; grid-row: 1; justify-self: end; }
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-weight: 800; border: 0;
}
.navlink { white-space: nowrap; font-weight: 600; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); position: relative; }
.navlink {
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-decoration-color .15s, color .15s;
}
.navlink:hover, .navlink:focus-visible { background: none; color: var(--text); text-decoration-color: var(--brand); }
.badge {
  position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 800;
  display: grid; place-items: center;
}

@media (max-width: 760px) {
  .topbar__inner { grid-template-columns: auto auto 1fr; gap: 8px 10px; padding: 10px var(--gutter); }
  .topbar__actions { justify-self: end; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .search input { height: 40px; }
  .hide-mobile { display: none !important; }
  .cat-btn { height: 40px; width: 40px; padding: 0; justify-content: center; }
  .cat-btn__label { display: none; }
  /* En móvil el menú ocupa todo el ancho bajo el encabezado */
  .cat-menu a { white-space: normal; line-height: 1.25; padding: 11px 12px; gap: 10px; font-size: 1rem; overflow: visible; } /* mismo espacio que en escritorio */
  .cat-menu { position: fixed; top: 112px; left: var(--gutter); right: var(--gutter); width: auto; grid-template-columns: 1fr 1fr; max-height: calc(100dvh - 130px); overflow-y: auto; }
  .topbar__actions .btn { padding: 8px 12px; font-size: .85rem; }
}
.show-xs { display: none; }
@media (max-width: 400px) {
  .hide-xs { display: none !important; }
  .show-xs { display: inline; }
  .topbar__inner { gap: 8px; }
  .topbar__actions { gap: 2px; }
  .topbar__actions .navlink { padding: 6px 6px; font-size: .85rem; }
  .topbar__actions .btn { padding: 7px 10px; font-size: .85rem; }
  .logo { font-size: 1.12rem; gap: 6px; }
  .logo__mark { width: 30px; height: 30px; border-radius: 9px; }
  .cat-btn { width: 36px; height: 36px; }
}

/* Botón flotante: solo posición; el estilo y tamaño vienen de .btn .btn--brand .btn--publish (igual a los demás) */
.fab { display: none; position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; }
.fab:active { transform: scale(.97); }
@media (max-width: 760px) { .fab { display: inline-flex; } }

/* ---------- Hero + contador ---------- */
.hero { padding: 36px 0 8px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 1.1rem; color: var(--ink-2); margin: 16px 0 24px; max-width: 520px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.counter {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #2A2440 0%, #17151F 60%);
  color: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow-lg);
}
.counter::after {
  content: ''; position: absolute; width: 280px; height: 280px; right: -80px; top: -100px;
  background: radial-gradient(circle, rgba(37, 211, 102, .45), transparent 65%); filter: blur(10px);
}
.counter__live { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A7F3C6; }
.counter__live i { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.counter__main { margin: 14px 0 22px; position: relative; z-index: 1; }
.counter__main .num { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.counter__main .lbl { color: #CFCBDA; font-weight: 600; margin-top: 6px; }
.counter__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.counter__cell { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; padding: 14px 16px; }
.counter__cell .num { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.counter__cell .lbl { color: #CFCBDA; font-size: .85rem; }
.counter__cell .ico { font-size: 1.1rem; margin-bottom: 4px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 20px; }
  .counter { padding: 22px; border-radius: 22px; }
}

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step b { display: block; margin: 6px 0 2px; }
.step .ico { font-size: 1.5rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Chips / categorías ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: .85rem;
}
.chip { transition: background .15s, border-color .15s; }
/* Seleccionado: verde, como el botón "Publicar gratis" (categorías y países) */
.chip.is-active, .chip.is-active:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--want { background: var(--teal-50); border-color: transparent; color: var(--teal); }
.chip--rm { background: var(--teal); color: #fff; border-color: transparent; }
.chip--rm button { background: none; border: 0; color: inherit; padding: 0 0 0 2px; font-weight: 800; }
.chip--suggest { border-style: dashed; color: var(--ink-2); }

/* ---------- Destacados IA ---------- */
.ai-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 800;
  padding: 5px 10px; border-radius: 999px; letter-spacing: .02em;
  background: linear-gradient(90deg, #EEE7FF, #E3F9EC); color: #5B21B6;
}
.featured {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin;
}
.featured { align-items: start; }
.featured > * { scroll-snap-align: start; }
.featured .card { margin-bottom: 0; }
.featured .card__media .visual { aspect-ratio: 1.1; }
@media (min-width: 1100px) { .featured { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
@media (max-width: 600px) { .featured { grid-auto-columns: 72%; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding: var(--gutter); } }

/* ---------- Tarjeta producto ---------- */
.card {
  display: block; background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; position: relative;
  break-inside: avoid; margin-bottom: 14px;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; overflow: hidden; }
.card__media .visual { aspect-ratio: var(--ratio, 1); }
.card__reason {
  position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .94);
  border-radius: 999px; font-size: .75rem; font-weight: 800; padding: 4px 10px; color: var(--text);
}
.card__fav {
  position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); border: 0; display: grid; place-items: center; font-size: 1rem;
}
.card__fav.is-on { color: var(--brand); }
.card__body { padding: 12px 14px 14px; }
.card__title { font-weight: 700; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { font-weight: 800; font-size: 1rem; margin-top: 4px; }
.card__price small { font-weight: 600; color: var(--muted); font-size: .75rem; margin-left: 4px; }
.card__wants { margin-top: 8px; font-size: .85rem; color: var(--teal); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__wants b { color: var(--ink-2); font-weight: 700; }
.card__meta { margin-top: 8px; font-size: .75rem; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }

/* Visual de producto (placeholder o foto real) */
.visual {
  position: relative; width: 100%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(var(--angle, 135deg), var(--g1), var(--g2));
}
.visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .45), transparent 45%),
              radial-gradient(circle at 80% 90%, rgba(0, 0, 0, .18), transparent 50%);
}
.visual span { position: relative; font-size: clamp(3.6rem, 12vw, 5.6rem); transform: rotate(var(--tilt, 0deg)); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25)); }
.visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ---------- Cascada infinita (masonry) ---------- */
.masonry { column-count: 5; column-gap: 14px; }
@media (max-width: 1200px) { .masonry { column-count: 4; } }
@media (max-width: 900px) { .masonry { column-count: 3; } }
@media (max-width: 600px) { .masonry { column-count: 2; column-gap: 10px; } .masonry .card { margin-bottom: 10px; } .card__body { padding: 10px 11px 12px; } .card__title { font-size: .85rem; } }
.feed-loader { display: flex; justify-content: center; padding: 28px 0 40px; color: var(--muted); font-weight: 600; gap: 10px; align-items: center; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* ---------- Página producto ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 20px; } }
.gallery__main { border-radius: 22px; overflow: hidden; }
.gallery__main .visual { aspect-ratio: 1.1; }
.gallery__main .visual span { font-size: clamp(6rem, 18vw, 11rem); }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: 0 0 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; }
.gallery__thumbs button.is-active { border-color: var(--ink); }
.gallery__thumbs .visual { height: 100%; }
.gallery__thumbs .visual span { font-size: 2rem; }
@media (min-width: 901px) { .pdp__info { position: sticky; top: 84px; } }
.pdp__info h1 { font-size: var(--fs-h1); font-weight: 800; }
.pdp__price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 4px; flex-wrap: wrap; }
.pdp__price strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #F1EEEA; color: var(--ink-2); }
.pdp__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 18px; }
.wants-box { background: var(--teal-50); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.wants-box h3 { font-size: 1rem; color: var(--teal); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.wants-box .chip--want { background: #fff; }
.owner {
  display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
}
.owner__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #EDE9FE; font-size: 1.3rem; flex-shrink: 0; }
.owner__name { font-weight: 700; }
.owner__lock { font-size: .85rem; color: var(--muted); }
.pdp__actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.pdp__desc { margin-top: 22px; color: var(--ink-2); white-space: pre-line; }
.pdp__desc h3 { color: var(--text); font-size: 1rem; margin-bottom: 6px; }

/* ---------- Preguntas y respuestas ---------- */
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.qa__form { display: flex; gap: 10px; margin: 14px 0 6px; }
.qa__form textarea { flex: 1; resize: vertical; min-height: 48px; }
@media (max-width: 600px) { .qa__form { flex-direction: column; } }
.qa__list { list-style: none; padding: 0; margin: 14px 0 0; }
.qa__item { padding: 14px 0; border-top: 1px solid var(--line); }
.qa__q { font-weight: 600; display: flex; gap: 8px; }
.qa__a { margin: 6px 0 0 22px; padding-left: 12px; border-left: 3px solid var(--teal-50); color: var(--ink-2); display: flex; gap: 8px; }
.qa__a.is-pending { color: var(--muted); font-style: italic; }
.qa__meta { font-size: .75rem; color: var(--muted); margin-left: 22px; margin-top: 4px; }
.qa__ownerreply { margin: 8px 0 0 22px; display: flex; gap: 8px; }
.qa__ownerreply input { flex: 1; }
/* Pregunta de una cuenta suspendida: en gris, con la etiqueta roja "Cuenta suspendida" */
.qa__item--suspended .qa__q, .qa__item--suspended .qa__a { opacity: .5; }
.qa__chip { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: #FEE2E2; color: #991B1B; font-size: .72rem; font-weight: 800; vertical-align: 1px; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 700; font-size: .85rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.input, input[type=text].input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: 11px 14px; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.input--money { position: relative; }
.input--money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input--money input { padding-left: 28px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field[hidden] { display: none; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .85rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.warn { background: #FFF7E6; color: #8A5300; border-radius: var(--radius-sm); padding: 10px 12px; font-size: .85rem; font-weight: 600; }
.error-text { color: #C2410C; font-size: .85rem; font-weight: 600; }

.publish { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; margin: 24px 0 40px; }
@media (max-width: 900px) { .publish { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 1.1rem; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.panel + .panel { margin-top: 16px; }
@media (min-width: 901px) { .publish__preview { position: sticky; top: 84px; } }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.photo, .photo-add { aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; }
.photo-add { border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; font-size: .85rem; background: var(--bg); cursor: pointer; }
.photo-add:hover { border-color: var(--brand); color: var(--brand); }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: #fff; }
.tag-input input { flex: 1; min-width: 140px; border: 0; outline: none; padding: 4px 6px; background: transparent; }
.tag-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.ai-hint { display: flex; gap: 10px; align-items: center; background: linear-gradient(90deg, #F4EFFF, #E9FBF0); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .85rem; margin-top: 8px; }
.ai-hint b { color: #5B21B6; }

/* ---------- Mis trueques ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 18px 0; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.is-active { color: var(--text); border-color: var(--brand); }
.offer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.offer__swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.offer__item { display: flex; gap: 10px; align-items: center; min-width: 0; }
.offer__item .visual { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; }
.offer__item .visual span { font-size: 1.8rem; }
.offer__item b { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer__arrow { font-size: 1.4rem; color: var(--brand); font-weight: 800; }
.offer__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.status { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.status--pending { background: #FFF7E6; color: #8A5300; }
.status--accepted { background: #DCFCE7; color: #166534; }
.status--rejected { background: #F3F4F6; color: #6B7280; }
.contact { margin-top: 14px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 4px; }
.contact b { color: #166534; }
.contact--locked { background: var(--bg); border-color: var(--line); color: var(--muted); }
@media (max-width: 600px) { .offer__swap { grid-template-columns: 1fr; } .offer__arrow { transform: rotate(90deg); justify-self: center; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.pick[hidden] { display: none; }
/* Cuenta suspendida: el motivo, en rojo claro, sobre el formulario de apelación */
.appeal__reason { display: grid; gap: 2px; margin: 18px 0 18px; padding: 12px 14px; border-radius: 12px; background: #FEE2E2; color: #991B1B; }
.appeal__reason .small { font-weight: 700; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(23, 21, 31, .55); animation: fade .2s; } /* sin desenfoque: solo un fondo oscuro */
.modal__dialog {
  position: relative; background: #fff; border-radius: 24px; width: min(460px, 100%);
  max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px 24px 24px; box-shadow: var(--shadow-lg);
  animation: pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
.modal__dialog.is-wide { width: min(620px, 100%); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); }
.modal h2 { font-size: 1.3rem; margin-bottom: 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 600px) {
  .modal { place-items: end center; padding: 0; }
  .modal__dialog { border-radius: 24px 24px 0 0; width: 100%; padding-bottom: calc(24px + env(safe-area-inset-bottom)); max-height: 92dvh; }
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; margin: 16px 0 18px; }
.auth-tabs button { border: 0; background: none; border-radius: 999px; padding: 9px; font-weight: 700; color: var(--muted); }
.auth-tabs button.is-active { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.social { display: grid; gap: 10px; }
.btn--google { background: #fff; color: #1F1F1F; border-color: #DADCE0; }
.btn--google:hover { background: #F8F9FA; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pick-list { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; margin-bottom: 14px; }
.pick { display: flex; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 8px; cursor: pointer; }
.pick input { display: none; }
.pick .visual { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; }
.pick .visual span { font-size: 1.5rem; }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .85rem; animation: pop .25s; display: flex; gap: 10px; align-items: center; }
.toast a { color: #86EFAC; text-decoration: underline; margin-left: auto; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 90px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 6px 0 0; }

/* ---------- Enlaces tipo botón ---------- */
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-600); font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 2px; justify-self: start; }
.link-btn--muted { color: var(--muted); font-weight: 600; font-size: .85rem; }
.link-btn:hover { color: var(--text); }

/* ---------- Avisos ---------- */
.banner { display: flex; gap: 12px; align-items: center; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-size: .85rem; }
.banner > div { flex: 1; }
.banner--danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.status--danger { background: #FEE2E2; color: #991B1B; }

/* ---------- Moderación ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 6px; }
.admin-stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; }
.admin-stats b { font-size: 1.5rem; font-weight: 800; }
.admin-stats span { font-size: .8rem; color: var(--muted); }
@media (max-width: 600px) { .admin-stats { grid-template-columns: 1fr 1fr; } }
.report-card__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.log-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.log-row:last-child { border-bottom: 0; }

/* ---------- Íconos (Lucide, public/icons.svg) ---------- */
.i {
  width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.i--fill { fill: currentColor; }
/* Imagen de producto sin foto: ícono blanco grande sobre el degradado */
.visual span { color: #fff; line-height: 0; }
.visual span .i { width: 1em; height: 1em; stroke-width: 1.5; vertical-align: 0; }
.logo__mark .i { width: 20px; height: 20px; stroke-width: 2.4; vertical-align: 0; }
.logo--sm .logo__mark .i { width: 16px; height: 16px; }
.cat-menu .ic { color: var(--brand-600); }
.cat-menu .ic .i { width: 17px; height: 17px; vertical-align: 0; }
.chip .i { color: var(--brand-600); }
.chip.is-active .i { color: #fff; }
.step .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.step .ico .i { width: 22px; height: 22px; vertical-align: 0; }
.counter__cell .ico { color: #86EFAC; }
.counter__cell .ico .i { width: 22px; height: 22px; }
.card__fav .i, .card__fav { line-height: 0; }
.card__fav .i { width: 18px; height: 18px; vertical-align: 0; }
.card__fav.is-on { color: #E11D48; }
.card__reason .i, .pill .i { width: 1.05em; height: 1.05em; }
.owner__avatar .i { width: 22px; height: 22px; vertical-align: 0; color: #6D28D9; }
.offer__arrow .i { width: 26px; height: 26px; vertical-align: 0; }
.qa__q .i, .qa__a .i { color: var(--muted); margin-top: .15em; vertical-align: 0; }
.modal__close .i { width: 18px; height: 18px; vertical-align: 0; }
.toast .i { color: #86EFAC; }
.ai-badge .i { width: 1em; height: 1em; }
.btn .i { width: 1.1em; height: 1.1em; }

/* Teléfonos muy angostos (≤ 380 px): un poco más compacto para que el encabezado no toque el borde */
@media (max-width: 380px) {
  .topbar__inner { gap: 6px; }
  .topbar__actions .navlink { padding: 6px 4px; }
  .topbar__actions .btn { padding: 7px 9px; }
}
/* Teléfonos de 401–480 px: solo menos espacio entre elementos (mismo tamaño de letra) */
@media (min-width: 401px) and (max-width: 480px) {
  .topbar__inner { column-gap: 6px; }
  .topbar__actions { gap: 2px; }
  .topbar__actions .navlink { padding: 8px 6px; }
  .topbar__actions .btn { padding: 8px 12px; }
}

/* ---------- Cerca de (comuna de referencia) ---------- */
.near-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 8px 14px; font-size: .85rem; color: var(--ink-2); white-space: nowrap;
}
.near-btn b { color: var(--text); }
.near-btn .i { color: var(--brand-600); }
.near-btn__change { color: var(--brand-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.near-btn:hover { border-color: var(--brand); }
@media (max-width: 600px) { .section__head { flex-wrap: wrap; } .near-btn { font-size: .85rem; padding: 7px 12px; } }
/* Coincidencias para mi publicación */
.matches { background: var(--brand-50); border: 1px solid #CDEFD9; border-radius: var(--radius); padding: 20px; }
@media (max-width: 600px) { .matches { padding: 16px 12px; } }
.matches { scroll-margin-top: 96px; }

/* Coincidencias elegidas por IA */
.card__ai { position: absolute; bottom: 10px; left: 10px; background: rgba(17, 24, 39, .78); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); letter-spacing: .02em; }
.card__reason--ai { box-shadow: inset 0 0 0 1.5px var(--brand); }
.ideas { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.idea { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: #fff; }
.idea__media { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: block; }
.idea__media > * { width: 100%; height: 100%; }
.idea__media img { object-fit: cover; }
.idea__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.idea__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea__reason { font-size: .75rem; font-weight: 700; color: var(--brand-600); }

/* ---------- Hero: cifras compactas ---------- */
.hero__grid:has(.hero__stats) { grid-template-columns: 1.2fr .8fr; align-items: end; }
.hero__stats { display: grid; gap: 14px; justify-self: end; min-width: 240px; }
.hero__stats > div { display: flex; flex-direction: column; border-left: 3px solid var(--brand); padding: 2px 0 2px 14px; }
.hero__stats b { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero__stats span { color: var(--ink-2); font-size: .9rem; font-weight: 600; }
@media (max-width: 900px) {
  .hero__grid:has(.hero__stats) { grid-template-columns: 1fr; }
  .hero__stats { justify-self: stretch; grid-template-columns: repeat(3, 1fr); gap: 10px; min-width: 0; }
  .hero__stats > div { padding-left: 10px; }
  .hero__stats b { font-size: 1.25rem; }
  .hero__stats span { font-size: .75rem; line-height: 1.25; }
}

/* ---------- Publicar: "¿Qué buscas a cambio?" ---------- */
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip--cat { cursor: pointer; color: var(--ink-2); }
/* hover: ver .chip:hover */
.chip--cat.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.any-offer { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 14px; cursor: pointer; }
.any-offer:has(input:checked) { border-style: solid; border-color: var(--brand); background: #ECFDF3; }
.any-offer input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.any-offer span { display: flex; flex-direction: column; gap: 2px; }
.any-offer small { color: var(--text); font-size: .85rem; }
.chip--rm .i, .chip--cat.is-on .i { color: #fff; }
.chip--rm button { opacity: .85; cursor: pointer; }
.chip--rm button:hover { opacity: 1; }
.card__reason { max-width: calc(100% - 64px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Fila de categorías: en pantallas medianas y grandes se ven todas (varias líneas); en teléfono se desliza */
@media (min-width: 640px) {
  .chips--scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
@media (max-width: 639px) {
  .chips--scroll { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
.chip--clear { border-style: dashed; color: var(--muted); }
.chips--scroll .chip.is-active { scroll-snap-align: center; }

/* Textos pequeños con más peso para que se lean mejor */
.small, small, .muted, .hint, .card__meta, .card__wants, .pdp__desc, .owner__lock, .crumbs,
.qa p, .error-text, .warn, .banner, .toast, .footer, .any-offer small { font-weight: 600; }
/* Páginas de cuenta (Mis trueques, Moderación): alineadas a la izquierda como el resto del sitio */
.page .offer, .page .report-card, .page .admin-stats, .page > .empty { max-width: 860px; }
.page > .empty { text-align: left; padding-left: 0; }
.page > .empty p { margin-top: 14px; }

/* Página de producto: bajo las fotos, preguntas y propuestas en dos columnas */
.pdp-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .pdp-bottom { grid-template-columns: 1fr; } }
.pdp-bottom .qa { margin: 0; }
.props { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.props__title { font-size: 1.3rem; }
.props__list { display: grid; gap: 10px; margin-top: 16px; }
.props__empty { padding: 18px 0 4px; color: var(--muted); font-weight: 600; }
.prop { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.prop--me { border-color: var(--brand); background: #F2FDF6; }
.prop__media { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: block; }
.prop__media .visual { height: 100%; }
.prop__media .visual span { font-size: 1.8rem; }
.prop__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prop__title { font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop__title:hover { text-decoration: underline; }
.prop__price { font-size: .85rem; font-weight: 700; }
.prop__price b { color: var(--brand-600); }
.prop__msg { font-size: .85rem; color: var(--text); font-style: italic; font-weight: 600; }
.prop .status { white-space: nowrap; align-self: start; }
@media (max-width: 420px) { .prop { grid-template-columns: 56px 1fr; } .prop .status { grid-column: 2; justify-self: start; } .prop__media { width: 56px; height: 56px; } }
/* Preguntas: el cuadro ocupa todo el ancho y el botón queda debajo, a la derecha (sin estirarse) */
.qa__form { flex-direction: column; align-items: stretch; }
.qa__form textarea { width: 100%; min-height: 72px; }
.qa__form .btn { align-self: flex-end; height: auto; }

/* Header con ilustración dibujada a mano */
.hero__grid:has(.hero__art) { grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
.hero__art { margin: 0; justify-self: end; width: 100%; max-width: 520px; }
.hero__art img { width: 100%; height: auto; }
.hero__grid:has(.hero__art) .hero__stats { justify-self: start; grid-template-columns: repeat(3, auto); gap: 28px; margin-top: 28px; min-width: 0; }
@media (max-width: 900px) {
  .hero__grid:has(.hero__art) { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 380px; order: -1; margin-bottom: -8px; }
  .hero__grid:has(.hero__art) .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ---------- Escena dibujada a mano: ocupa todo el ancho, detrás del header y las categorías ---------- */
.scene { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.scene:has(.cpick__menu:not([hidden])) { z-index: 25; } /* sin sesión: el menú de región/comuna sale de la portada y debe quedar sobre las tarjetas (bajo el encabezado, 40) */
.scene__art { position: absolute; inset: 0; z-index: -2; pointer-events: none; user-select: none; }
.scene__art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 82%; }
/* Sin velos ni fundidos: el dibujo se ve completo; solo un leve halo en los textos para que se lean */
.scene h1, .scene h2, .scene .hero__stats, .scene .section__head p { text-shadow: 0 0 10px #F6F1E8, 0 0 2px #F6F1E8; }
.scene .btn--ghost { background: rgba(255, 255, 255, .9); }
.scene .hero { padding: clamp(36px, 5vw, 72px) 0 clamp(150px, 18vw, 260px); }
.hero__copy { max-width: 620px; }
.hero__copy .hero__stats { justify-self: start; grid-template-columns: repeat(3, auto); gap: 28px; margin-top: 28px; min-width: 0; display: grid; }
.scene__foot { position: relative; padding-top: 4px; }
.scene__foot .section__head { margin-bottom: 14px; }
.scene .chip:not(.is-active) { background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px); }
@media (max-width: 760px) {
  /* En el teléfono: título → escena a todo el ancho (encuadre de la pareja y el puesto) → categorías */
  .scene { display: flex; flex-direction: column; }
  .scene .hero { order: 1; padding: 24px 0 4px; }
  .scene__art { position: relative; order: 2; inset: auto; z-index: 0; height: 360px; display: block; }
  .scene__art img { object-position: center; }
  .scene__foot { order: 3; margin-top: -150px; position: relative; z-index: 2; }
  .scene .hero { position: relative; z-index: 2; }
  .scene::before { display: none; }
  .hero__copy .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* Borde inferior de la escena con terminación curva */
.scene { border-bottom: 0; border-radius: 0 0 50% 50% / 0 0 90px 90px; padding-bottom: 70px; }
@media (max-width: 760px) { .scene { border-radius: 0 0 50% 50% / 0 0 36px 36px; padding-bottom: 34px; } }
.scene { border-bottom: 2px solid #E6DBC8; box-shadow: none; padding-bottom: 14px; }
@media (max-width: 760px) { .scene { padding-bottom: 8px; } }
/* La curva va solo en el dibujo de fondo: los chips de categorías nunca se recortan */
.scene { border-radius: 0; border-bottom: 0; overflow: visible; overflow-x: clip; }
.scene__art { overflow: hidden; border-radius: 0 0 50% 50% / 0 0 90px 90px; border-bottom: 2px solid #E6DBC8; }
@media (max-width: 760px) { .scene__art { border-radius: 0 0 50% 50% / 0 0 36px 36px; } }
/* Botón flotante "Publicar" también en escritorio */
.fab { display: inline-flex; text-decoration: none; transition: transform .15s, box-shadow .15s; }
@media (min-width: 761px) { .fab { right: 28px; bottom: 28px; } .fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 211, 102, .5); } }
/* Categorías: en el teléfono también se ven todas (varias líneas, sin deslizar) */
@media (max-width: 639px) {
  .chips--scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; gap: 6px; }
  .chips--scroll .chip { padding: 6px 11px; font-size: .85rem; }
}
/* Teléfono: el suelo de la plaza continúa detrás de todas las filas de categorías y termina en curva */
@media (max-width: 760px) {
  .scene__art { border-radius: 0; border-bottom: 0; }
  .scene__foot {
    padding-bottom: 18px;
    background: linear-gradient(180deg, transparent 150px, #F4ECDF 150px);
    border-radius: 0 0 50% 50% / 0 0 32px 32px; border-bottom: 2px solid #E6DBC8;
  }
  .scene { padding-bottom: 0; }
}


/* Pie de página: solo las categorías */
.footer__inner { display: block; padding: 24px var(--gutter) 96px; }
.footer__cats { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 639px) { .footer__cats .chip { padding: 6px 11px; font-size: .85rem; } }
/* Escena de bosque (más oscura): textos del header en blanco con sombra suave */
.scene h1, .scene h2 { color: #fff; text-shadow: 0 2px 0 rgba(30, 38, 34, .55), 0 0 18px rgba(30, 38, 34, .45); }
.scene h1 em { color: #7CF0A6; }
.scene .section__head p, .scene .section__head .muted { color: #F3FBF5; text-shadow: 0 1px 2px rgba(30, 38, 34, .8); }
/* Bosque: el suelo detrás de las categorías (teléfono) y el borde de la curva usan el verde del pasto */
.scene__art { border-bottom-color: #8DB066; }
@media (max-width: 760px) {
  .scene__foot { background: linear-gradient(180deg, transparent 150px, #A7C778 150px); border-bottom-color: #8DB066; }
}
@media (max-width: 760px) {
  /* El cielo del dibujo continúa detrás del título en el teléfono */
  .scene .hero { background: var(--hero-sky, #6FA8B1); /* cielo del hero activo (hero #1: #6FA8B1) */ padding-bottom: 20px; }
}

/* Borde inferior del dibujo: arco suave (segmento de una elipse muy ancha), sin esquinas,
   que termina a la mitad de la 2ª fila de categorías (--art-cut lo calcula fitScene) */
.scene__art { inset: 0 0 var(--art-cut, 0px) 0; border-radius: 0; border-bottom: 0; overflow: visible; filter: drop-shadow(0 2px 0 #8DB066); }
.scene__art img { clip-path: ellipse(160% 100% at 50% 0%); }
@media (max-width: 760px) {
  .scene__art { inset: auto; filter: none; }
  .scene__art img { clip-path: none; }
  .scene__foot { background: none; border-radius: 0; border-bottom: 0; }
  .scene__foot::before {
    content: ''; position: absolute; left: 0; right: 0; top: 150px; bottom: var(--foot-cut, 0px); z-index: -1;
    background: #A7C778; clip-path: ellipse(160% 100% at 50% 0%);
  }
}

/* Todos los botones "Publicar" con el mismo estilo que el botón flotante */
.btn--publish {
  background: var(--brand); color: #fff; border-color: transparent;
  font-weight: 800; letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .15s, box-shadow .15s;
}
.btn--publish:hover { background: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 211, 102, .5); }
.btn--publish:active { transform: scale(.97); }
.btn--publish:disabled { transform: none; box-shadow: none; opacity: .7; }
/* Sin sombras en textos ni en botones (en todo el sitio) */
body, body * { text-shadow: none !important; }
.btn, .btn:hover, .btn--publish, .btn--publish:hover, .fab, .fab:hover, button, .chip, .near-btn, .cat-btn, .showcase__btn, .card__fav { box-shadow: none !important; }
/* El botón flotante "Publicar" solo en el teléfono */
@media (min-width: 761px) { .fab { display: none !important; } }
/* Mientras se recargan los productos (al cambiar de categoría) la página no se acorta ni salta arriba */
#feedSection #feed { min-height: 100vh; }
/* Sin título ni selector de comuna: en el teléfono los chips solo se apoyan en el borde inferior del dibujo */
@media (max-width: 760px) {
  .scene__foot { margin-top: -44px; }
  .scene__foot::before { top: 44px; }
}
/* Esquinas de 4px en todo el sitio (botones, chips, tarjetas, campos, paneles y ventanas emergentes) */
*, *::before, *::after { border-radius: 4px !important; }
/* …salvo lo que debe ser un círculo (avatares, ruedita de carga, botones redondos de ícono, contador) */
.avatar, .owner__avatar, .spinner, .card__fav, .photo button, .modal__close, .badge, .counter__live i { border-radius: 50% !important; }
/* El dibujo del header usa su propio recorte en arco, sin esquinas */
.scene, .scene__art, .scene__art img, .scene__foot, .scene__foot::before { border-radius: 0 !important; }
/* Categorías y buscador: borde de 2px (también al pasar el mouse o al escribir), sin halo */
.search input, .cat-btn { border-width: 2px; }
.search input:hover { border-color: var(--brand); }
.search input:focus { border-color: var(--brand); box-shadow: none; }

/* ---------- Campos con línea inferior: sin recuadro, solo un borde de 2px abajo ---------- */
.input, input[type=text].input, textarea.input, select.input, .tag-input {
  border: 0 !important; border-bottom: 2px solid #D9D3CB !important; border-radius: 0 !important;
  background: transparent; box-shadow: none !important; padding-left: 2px; padding-right: 2px;
}
.input:hover, .tag-input:hover { border-bottom-color: #B9B1A6 !important; }
.input:focus, .tag-input:focus-within { border-bottom-color: var(--brand) !important; }
.input::placeholder { color: var(--muted); font-weight: 600; opacity: 1; }
.input--money span { left: 2px; }
.input--money input { padding-left: 16px; }
/* Selectores: título pequeño dentro, arriba a la izquierda */
.field--float { position: relative; }
.field--float .float-label { position: absolute; left: 2px; top: 2px; font-size: .75rem; font-weight: 700; color: var(--muted); pointer-events: none; z-index: 1; }
.field--float select.input { padding-top: 20px; padding-bottom: 11px; line-height: 24px; }
/* Todos los campos a lo ancho: uno por línea (Teléfono, Región, Comuna, Categoría, Estado…) */
.row2 { grid-template-columns: 1fr !important; gap: 0; }
.field .input, .field select, .field textarea, .field .input--money { width: 100%; }
/* Las casillas quedan alineadas a la izquierda con el resto del texto (sin el margen que agrega el navegador) */
.check input[type=checkbox], .check input[type=radio] { margin: 0; flex-shrink: 0; }

/* Selectores sin elegir: el título se ve como texto de ejemplo (gris), igual que en los otros campos */
select.input:invalid, select.input:disabled { color: var(--muted); font-weight: 600; }
select.input option { color: var(--text); }
.field--float:has(select:invalid) .float-label, .field--float:has(select:disabled) .float-label { display: none; }
.field--float:has(select:invalid) select.input, .field--float:has(select:disabled) select.input { padding-top: 11px; padding-bottom: 11px; }
/* El texto de ejemplo desaparece al entrar a escribir; si se deja vacío, vuelve a aparecer */
input:focus::placeholder, textarea:focus::placeholder { color: transparent !important; opacity: 0; }
/* Textos de ejemplo con el color de texto del sitio */
input::placeholder, textarea::placeholder, .input::placeholder { color: var(--text) !important; opacity: 1; }
select.input:invalid, select.input:disabled { color: var(--text); }
input:focus::placeholder, textarea:focus::placeholder { color: transparent !important; }
/* Más aire entre campos, el enlace "¿Olvidaste tu contraseña?" y el botón principal */
.field { margin-bottom: 24px; }
.field > .hint, .field > .link-btn { margin-top: 4px; }
#forgotBtn { justify-self: start; margin-top: 8px; }
#authForm button[type=submit] { margin-top: 12px; }
/* Botón cerrar de las ventanas: verde de la marca, ícono blanco centrado */
.modal__close {
  display: grid; place-items: center; padding: 0; line-height: 0; cursor: pointer;
  width: 36px; height: 36px; background: var(--brand); color: #fff; transition: background .15s, transform .15s;
}
.modal__close:hover { background: var(--brand-600); transform: scale(1.06); }
.modal__close .i { width: 18px; height: 18px; display: block; margin: 0; stroke-width: 2.4; }

/* Registro: Región y Comuna lado a lado */
.row2.row2--pair { grid-template-columns: 1fr 1fr !important; gap: 0 16px; }

/* Tarjetas: todas las etiquetas visibles, completas (se acomodan en varias líneas sin tapar el corazón) */
.card__reasons { position: absolute; left: 10px; top: 10px; right: 52px; display: flex; flex-wrap: wrap; gap: 5px; z-index: 1; pointer-events: none; }
.card__reasons .card__reason { position: static; max-width: none; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
/* Teléfono: las ventanas (Ingresar, Crear cuenta…) dejan 15px libres a cada lado */
@media (max-width: 600px) { .modal { padding: 0 15px; } }
/* Teléfono: las ventanas altas (como Crear cuenta) llegan hasta 15px del borde superior */
@media (max-width: 600px) { .modal__dialog { max-height: calc(100dvh - 15px); } }

/* Página de producto: las etiquetas sobre la foto principal (igual que en las tarjetas) */
.gallery__stage { position: relative; }
.gallery__reasons { top: 16px; left: 16px; right: 16px; }
.gallery__reasons .card__reason { font-size: .85rem; padding: 6px 12px; }
/* Caja aparte para "Acepta diferencia en dinero": mismo estilo que "Busca a cambio", solo con el título */
.wants-box--cash h3 { margin-bottom: 0; }
/* Botón "Guardado" de la página de producto: corazón rojo, igual que en las tarjetas */
.pdp__actions [data-fav] .i--fill { color: #E11D48; }
/* Precio de la página de producto más pequeño */
.pdp__price strong { font-size: 1.3rem; }
/* Caja del dueño en la página de producto: más espacio entre líneas */
.owner > div:last-child { display: grid; gap: 6px; }
.owner .small, .owner__lock { line-height: 1.4; }
/* Caja del dueño más alta */
.owner { padding: 22px 18px; }
.owner { gap: 20px; }
/* Datos de contacto desbloqueados: más espacio entre líneas */
.contact { gap: 12px; padding: 18px; line-height: 1.4; }
.contact .btn { justify-self: start; margin-top: 4px; }

/* Propuestas: la diferencia en dinero bajo el producto ofrecido, con el estilo de la caja de contacto */
.offer__swap { align-items: start; }
.offer__arrow { align-self: center; }
.offer__side { display: grid; gap: 10px; min-width: 0; }
.contact.contact--cash { margin-top: 0; padding: 12px 14px; }
/* Cajas de "Mis trueques" con el mismo estilo que las de la página de producto ("Busca a cambio") */
.contact, .contact.contact--cash {
  background: var(--teal-50); border: 0; border-radius: var(--radius); padding: 16px; gap: 10px; line-height: 1.4;
}
.contact > b { font-size: 1rem; font-weight: 700; color: var(--teal); display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.contact > span:not(.small) { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.contact .i { width: 18px; height: 18px; flex-shrink: 0; vertical-align: 0; }
.contact.contact--cash > b { margin-bottom: 0; }
.contact.contact--locked { background: var(--teal-50); color: var(--teal); font-weight: 700; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
/* Etiqueta "Tú" junto al nombre del dueño: más separada del nombre */
.owner__name .pill { margin-left: 10px; }

/* ---------- Calificaciones ---------- */
.contact.contact--rate { display: grid; gap: 10px; }
.contact--rate .btn { justify-self: start; }
.stars-input { display: flex; justify-content: center; gap: 6px; }
.stars-input .star { background: none; border: 0; padding: 2px; font-size: 2.6rem; line-height: 1; color: #D9D3CB; cursor: pointer; transition: transform .1s, color .1s; }
.stars-input .star.is-on { color: #F5A524; }
.stars-input .star:hover { transform: scale(1.1); }
.reviews { display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; }
.review { background: var(--teal-50); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; }
.review__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.review__stars { color: #F5A524; letter-spacing: 2px; font-size: 1rem; }
.review__text { margin: 0; color: var(--text); font-weight: 600; }
/* Etiquetas bajo el precio (estado, comuna, vistas, guardados, intercambiado): mismo tamaño que los chips de "Busca a cambio" */
.pdp__tags { gap: 8px; }
.pdp__tags .pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: .85rem; font-weight: 600; line-height: 1.5; border: 1px solid transparent; }
.pdp__tags .pill .i { width: 16px; height: 16px; vertical-align: 0; }
/* Etiquetas sobre la foto de la página de producto: mismo estilo que los chips de "Busca a cambio" */
.gallery__reasons { gap: 8px; }
.gallery__reasons .card__reason { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: .85rem; font-weight: 600; line-height: 1.5; background: #fff; color: var(--teal); border: 1px solid transparent; }
.gallery__reasons .card__reason .i { width: 16px; height: 16px; vertical-align: 0; }
.pdp__price strong { font-size: 1.3rem; }
/* Flechas verdes centradas con la foto de los productos (no con la caja de diferencia en dinero) */
@media (min-width: 601px) { .offer__arrow { align-self: start; height: 64px; display: grid; place-items: center; } }
@media (min-width: 601px) { .offer__arrow { margin-top: 3px; } }
/* Mis trueques: más espacio entre líneas (etiqueta, título y precio de cada producto; mensaje; estado) */
.offer__item > div:last-child { display: grid; gap: 4px; line-height: 1.3; }
.offer > p.small.muted { margin-top: 16px !important; line-height: 1.5; }
.offer__foot { margin-top: 16px; }
.offer > .contact { margin-top: 16px; }
/* Fila de producto con alto fijo: la foto y las flechas siempre comparten el mismo centro */
.offer__item { min-height: 72px; }
@media (min-width: 601px) { .offer__arrow { height: 72px; margin-top: 0; } }

/* Página de opiniones */
.reviews-summary { display: flex; align-items: center; gap: 16px; margin: 8px 0 24px; max-width: 860px; }
.reviews-summary__score { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.reviews-summary > div { display: grid; gap: 4px; }
.page .reviews { max-width: 860px; max-height: none; overflow: visible; gap: 12px; }
/* Teléfono: todas las ventanas empiezan a 15px del borde superior y llegan hasta abajo */
@media (max-width: 600px) {
  .modal { place-items: start center; padding: 15px 15px 0; }
  .modal__dialog { min-height: calc(100dvh - 15px); max-height: calc(100dvh - 15px); }
}
/* Botones de opción (radio) solo en verde: borde verde y punto verde, sin negro */
input[type=radio] {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; flex-shrink: 0; cursor: pointer;
  border: 2px solid #C9C4BC; border-radius: 50% !important; background: #fff; display: inline-grid; place-content: center;
  transition: border-color .15s;
}
input[type=radio]::before {
  content: ''; width: 10px; height: 10px; border-radius: 50% !important; background: var(--brand);
  transform: scale(0); transition: transform .12s ease-out;
}
input[type=radio]:checked { border-color: var(--brand); }
input[type=radio]:checked::before { transform: scale(1); }
input[type=radio]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Interés de categoría completa: ícono de la categoría y la nota "toda la categoría" */
.chip--want-cat { gap: 6px; }
.chip--want-cat .i { width: 16px; height: 16px; vertical-align: 0; }
.chip--want-cat small { font-size: .75rem; font-weight: 700; color: var(--muted); margin-left: 2px; padding: 1px 6px; border-radius: 4px; background: var(--teal-50); }
/* Mis trueques: solo dos tamaños de letra.
   1rem → nombres de productos y títulos de las cajas (Agregan…, Datos de contacto, La identidad…)
   .9rem → todo lo secundario (Te ofrecen / Por tu, precio, mensaje, estado, alias y hora, notas) */
.offer__item b, .offer .contact > b, .offer .contact--locked, .offer .contact > span:not(.small) { font-size: 1rem; }
.offer__item .small, .offer > p, .offer > p.small, .offer__foot .small, .offer__foot .status, .offer .contact .small, .offer .btn--sm { font-size: .85rem; }
.offer__item b { font-weight: 700; }

/* Datos de contacto desbloqueados: misma tarjeta que la del dueño en la página de producto (avatar a la izquierda) */
.owner--contact { margin: 4px 0 0; align-items: flex-start; }
.owner--contact > div:last-child { display: grid; gap: 6px; min-width: 0; }
.owner__lines { display: grid; gap: 6px; font-size: .85rem; }
.owner__lines span { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.owner__lines .i { width: 16px; height: 16px; flex-shrink: 0; }
.owner--contact .btn { justify-self: start; margin-top: 6px; }
/* Corazón de "guardados" bajo el precio: rojo, como en el resto del sitio */
.pdp__tags .pill .i--fill { color: #E11D48; }
/* Estrellas de calificación: amarillas en todo el sitio */
.i:has(> use[href$="#star"]) { color: #F5A524 !important; }
/* Mensajes de las propuestas en letra normal (sin cursiva) */
.prop__msg { font-style: normal; }
.qa__a.is-pending { font-style: normal; }

/* Datos de contacto: título en su propia caja y la persona en una tarjeta aparte, igual a la del dueño en la página de producto */
.offer > .owner--contact { margin: 16px 0 0; align-items: center; }
.owner--contact .owner__avatar { color: var(--text); font-weight: 600; font-size: 1.1rem; }
.owner__phone { font-size: .85rem; font-weight: 700; color: #166534; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.owner__phone a { color: inherit; }
.owner__phone .i { width: 16px; height: 16px; }
/* Mensaje de la propuesta, bajo el producto ofrecido */
.offer__msg { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
/* "Intercambiado" sobre la foto: mismo tamaño que las otras etiquetas, en verde */
.gallery__reasons .card__reason--done { background: #DCFCE7; color: #166534; }

/* Página de producto con trueque aceptado: la caja del dueño igual a la tarjeta de contacto */
.owner > div:last-child .owner__phone { margin-top: 0; }
.owner__wa { justify-self: start; margin-top: 4px; }
/* Pestañas: subrayado recto (sin esquinas redondeadas) */
.tabs button { border-radius: 0 !important; }

/* Página para calificar */
.rate-page { max-width: 640px; display: grid; gap: 16px; margin-top: 18px; }
.rate-page__trade { margin: 0; }
.rate-page .panel { padding: 24px; }
/* Estrellas para calificar, más pequeñas */
.stars-input .star { font-size: 1.9rem; }
.stars-input { gap: 4px; }

/* Contacto en una sola línea, separada por puntos (si no cabe, sigue en la línea de abajo) */
.owner__info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .85rem; line-height: 1.6; }
.owner__info > * { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.owner__info > * + *::before { content: '·'; margin: 0 8px; color: var(--muted); font-weight: 600; }
.owner__info .owner__strong { color: #166534; font-weight: 700; }
.owner__info .i { width: 16px; height: 16px; }
/* Tarjeta de contacto con el mismo estilo que la caja de arriba (fondo verde agua, sin borde) */
.offer > .owner--contact { background: var(--teal-50); border: 0; border-radius: var(--radius); padding: 16px; }
.offer > .owner--contact .owner__avatar { background: #fff; }
/* Sin puntos separadores entre los datos de contacto: solo espacio */
.owner__info > * + *::before { content: none; }
.owner__info { gap: 4px 18px; }

/* Enlaces a perfiles y página de perfil */
.user-link { color: inherit; text-decoration: none; font-weight: inherit; }
.user-link:hover { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.user-head { max-width: 860px; margin-top: 16px; }
.user-head > div:last-child { display: grid; gap: 6px; }
.user-head__name { font-size: var(--fs-h1); margin: 0; display: flex; align-items: center; gap: 10px; }
#userReviews .reviews { max-width: 860px; max-height: none; overflow: visible; gap: 12px; }

/* Aviso de identidad en caja propia (mismo estilo que "Acepta diferencia en dinero") */
.owner + .wants-box--cash { margin-top: 16px; }
.user-lock { max-width: 860px; margin-top: 16px; }

/* Calificar dentro de la tarjeta del trueque */
.rate-inline { display: grid; gap: 10px; margin-top: 4px; }
.rate-inline[hidden], [data-rate-open][hidden] { display: none; }
.rate-inline .stars-input { justify-content: flex-start; }
.rate-inline__label { min-height: 1.2em; margin: 0; }
.rate-inline textarea { width: 100%; }
.rate-inline .btn { justify-self: start; }

/* Tarjeta de contacto en Mis trueques: versión blanca, igual a la caja del dueño en la página de producto */
.offer > .owner--contact { background: #fff; border: 1px solid var(--line); padding: 22px 18px; }
.offer > .owner--contact .owner__avatar { background: #EDE9FE; }

/* Mis trueques: datos del usuario como en la página de producto; línea de 2px y debajo teléfono y email */
.owner__info--contact { border-top: 2px solid var(--line); padding-top: 12px; margin-top: 6px; }
.owner__info--contact { gap: 6px 20px; }
.owner__info--contact > * + *::before { content: none; }


/* Mensaje de la propuesta con el mismo peso que el resto de los textos pequeños */
.offer__msg, .prop__msg { font-weight: 600; }

.rate-inline__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Flechas del trueque con el mismo aire a ambos lados */
@media (min-width: 601px) { .offer__swap { column-gap: 40px; } }

/* Etiqueta elegida por Claude: degradado morado-verde como la insignia "Recomendado" */
.card__reasons .card__reason--ai, .gallery__reasons .card__reason--ai {
  background: linear-gradient(90deg, #EEE7FF, #E3F9EC); color: #5B21B6; box-shadow: none;
}
.card__reason--ai .i { color: #5B21B6; }

/* Precio de las tarjetas más pequeño */
.card .card__price { font-size: .85rem; }
.card .card__price small { font-size: .75rem; }

/* Título de las tarjetas del tamaño que tenía el precio */
.card .card__title { font-size: 1rem; }

/* Fotos: arrastrar y soltar */
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px; background: var(--bg); transition: border-color .15s, background .15s; }
.dropzone.is-over { border-color: var(--brand); background: #EAFBF0; }
.dropzone .photos:empty { display: none; }
.dropzone__hint { text-align: center; color: var(--muted); font-weight: 600; padding: 18px 8px; }
.dropzone .photos:not(:empty) + .dropzone__hint { padding: 12px 8px 2px; }
.dropzone .photo { cursor: grab; }
.dropzone .photo.is-dragging { opacity: .4; }
.dropzone .photo.is-target { outline: 3px solid var(--brand); outline-offset: 2px; }
.photo__cover { position: absolute; left: 6px; bottom: 6px; background: rgba(255, 255, 255, .94); color: var(--teal); font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 4px; }

/* Botón "Agregar foto": ícono y texto centrados, con más aire */
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; line-height: 1.25; }
.photo-add br { display: none; }
.photo-add .i { width: 22px; height: 22px; }

/* Mensaje vacío dentro de una grilla: ocupa todo el ancho, en una línea */
.grid-empty { column-span: all; grid-column: 1 / -1; width: 100%; max-width: none; margin: 0; }

/* "Intercambiado por …": enlace al producto recibido (se puede hacer clic aunque las etiquetas no reciban clics) */
.traded-link { pointer-events: auto; color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; margin-left: -2px; }
.traded-link:hover { color: #14532D; }

/* Teléfono · email: menos espacio y un punto separador */
.owner__info--contact { gap: 6px 0; }
.owner__info--contact > * + *::before { content: '·'; margin: 0 10px; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .owner__info--contact { flex-direction: column; align-items: flex-start; } .owner__info--contact > * + *::before { content: none; } }

/* Estado y fecha de la propuesta: sin punto, con más aire */
.offer__when { margin-left: 12px; }

/* Datos del usuario: nota, Ver opiniones y contacto con el mismo tamaño de letra */
.owner .small.muted, .owner .small.muted .link-btn, .owner__info--contact, .owner__info--contact a { font-size: .85rem; }

/* Punto entre teléfono y email con el mismo espacio que en la línea de la nota (" · ") */
.owner__info--contact > * + *::before { content: '·'; margin: 0 .3em; white-space: pre; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .owner__info--contact > * + *::before { content: none; } }

/* Línea de la nota (y "Ver opiniones") con más interlineado, para que no se vea apretada al bajar de línea en móvil */
.owner .small.muted { line-height: 1.8; }
.owner .small.muted .link-btn { white-space: nowrap; }

/* El punto queda dentro del enlace (que separa ícono y texto con 6px): se descuenta para que quede igual que " · " */
@media (min-width: 601px) { .owner__info--contact > * + *::before { margin: 0 calc(.28em - 6px) 0 .28em; } }

/* Caja del usuario en la página de producto igual a la de Mis trueques (iniciales) */
.owner .owner__avatar { color: var(--text); font-weight: 600; font-size: 1.1rem; }

/* "Ver opiniones" siempre en su propia línea, debajo de la nota (igual en todos los productos) */
.owner .owner__reviews { display: block; width: fit-content; }

/* Secciones con insignia ("Recomendado"): más aire entre insignia, título y productos */
.section__head .ai-badge + h2 { margin-top: 16px !important; }
.section__head:has(.ai-badge) { margin-bottom: 24px; }

/* Títulos con insignia del mismo tamaño que "Propuestas de trueque" */
.section__head:has(.ai-badge) h2 { font-size: 1.3rem; }

/* Insignia y etiqueta de IA con fondo liso (sin degradado) */
.ai-badge, .card__reasons .card__reason--ai, .gallery__reasons .card__reason--ai { background: #EEE7FF; }

/* Ningún título de sección más grande que "Propuestas de trueque" */
.section__head h2, .section h2 { font-size: 1.3rem; }

/* Nombre en la caja del usuario: subrayado de 2px, enlace a su perfil */
.owner__name .user-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor; }
.owner__name .user-link:hover { text-decoration-color: var(--brand); }

/* Foto de la tarjeta: sin esquinas redondeadas abajo (se une recta con el texto) */
.card__media, .card__media > .visual, .card__media > .visual img { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }

/* Escritorio: buscador más angosto y más aire entre Mis trueques, Publicar y el ícono de usuario */
@media (min-width: 761px) {
  .search { max-width: 520px; }
  .topbar__actions { gap: 22px; justify-self: end; }
}

/* Mis trueques más cerca del ícono del usuario */
@media (min-width: 761px) { .topbar__actions .avatar { margin-left: -12px; } }

/* Buscador aún más angosto en escritorio */
@media (min-width: 761px) { .search { max-width: 420px; } }
/* Entre 761 y 1100px el buscador va en su propia fila: ahí ocupa todo el ancho */
@media (min-width: 761px) and (max-width: 1100px) { .search { max-width: none; } }

/* Buscador más largo en escritorio */
@media (min-width: 1101px) { .search { max-width: 600px; } }

/* Número de estrellas después de las estrellas de cada opinión */
.review__num { margin-left: 8px; color: var(--text); font-weight: 700; font-size: 1rem; letter-spacing: 0; }

/* ===== Escala tipográfica única (todo el sitio usa solo estos tamaños) =====
   display: portada · h1: título de página · h2: sección · h3: subtítulo/tarjeta · h4 y p: texto · h5/small: secundario · xs: etiquetas */
:root {
  --fs-display: clamp(2rem, 4.5vw, 3rem);
  --fs-h1: clamp(1.6rem, 3vw, 2rem);
  --fs-h2: 1.3rem;
  --fs-h3: 1.1rem;
  --fs-h4: 1rem;
  --fs-p: 1rem;
  --fs-h5: .85rem;
  --fs-xs: .75rem;
}
body { font-size: var(--fs-p); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5, h6 { font-size: var(--fs-h5); }
p { font-size: inherit; }
.hero h1 { font-size: var(--fs-display); }
.pdp__info h1, .user-head__name { font-size: var(--fs-h1); }
.section__head h2, .section h2, .props__title, .modal h2 { font-size: var(--fs-h2); }
.panel h2, .card .card__title { font-size: var(--fs-h3); }
.wants-box h3, .contact.contact--locked, .owner__name { font-size: var(--fs-h4); }
.card .card__price { font-size: var(--fs-p); }
.small, small, .muted.small, .owner .small.muted, .owner__info--contact, .owner__info--contact a { font-size: var(--fs-h5); }
.card__reason, .pill, .status, .ai-badge, .badge, .photo__cover, .chip--want-cat small, .card .card__price small, .field--float .float-label { font-size: var(--fs-xs); }
.gallery__reasons .card__reason { font-size: var(--fs-h5); }

/* Enlace "Mis trueques" en el aviso de identidad: subrayado de 2px */
.lock-link { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lock-link:hover { color: var(--brand); }
.lock-link { white-space: nowrap; }

/* Nombres de usuario enlazados: subrayado de 1px siempre, igual en reposo y al pasar el mouse */
.user-link, .user-link:hover, .owner__name .user-link, .owner__name .user-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor; }

/* Enlaces de texto (usuarios y "Mis trueques"): subrayado verde de 2px, la palabra conserva su color (también al pasar el mouse) */
.user-link, .user-link:hover, .owner__name .user-link, .owner__name .user-link:hover, .lock-link, .lock-link:hover {
  color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--brand);
}

/* Etiqueta "Tú" alineada con el nombre (sobre la línea base del texto) */
.user-head__name, .owner__name { align-items: baseline; }
.user-head__name .pill, .owner__name .pill { position: relative; top: -.15em; }
/* Ajuste fino: centrada en la altura de las mayúsculas del nombre */
.user-head__name, .owner__name { align-items: center; }
.user-head__name .pill { top: .12em; }
.owner__name .pill { top: .08em; }
/* "Tú" sobre la línea base del nombre (alineada con la parte baja de las letras, no con la parte alta) */
.user-head__name, .owner__name { align-items: baseline; }
.user-head__name .pill, .owner__name .pill { top: 0; }

/* Estrellas: mismos íconos y tamaño en la nota del usuario y en las opiniones; vacías en gris */
.review__stars { display: inline-flex; align-items: center; gap: 2px; letter-spacing: 0; font-size: 1rem; }
.review__stars .i, .owner .small.muted .i:has(> use[href$="#star"]) { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.review__stars .i:not(.i--fill) { color: #D9D3CB !important; }
.review__num { font-size: 1rem; }
/* Línea de la nota del usuario con el mismo tamaño y color que el texto de las opiniones */
.owner .small.muted { font-size: 1rem; color: var(--text); font-weight: 600; }
.owner__info--contact, .owner__info--contact a { font-size: 1rem; }

/* Teléfono y email con el mismo peso que la línea de la nota (600) */
.owner__info--contact a, .owner__info .owner__strong { font-weight: 600; }

/* Separador gris un poco más largo que el texto de contacto */
.owner__info--contact { padding-right: 40px; max-width: 100%; box-sizing: border-box; }

/* Enlaces de texto en todo el sitio: color del texto, subrayado verde de 2px y, al pasar el mouse, el texto en verde */
.user-link, .owner__name .user-link, .lock-link, .traded-link, .link-btn, .link-btn--muted, .crumbs a, .review a, .legal a, .footer a:not(.btn):not(.chip) {
  color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--brand); transition: color .15s;
}
.user-link:hover, .owner__name .user-link:hover, .lock-link:hover, .traded-link:hover, .link-btn:hover, .link-btn--muted:hover, .crumbs a:hover, .review a:hover, .legal a:hover, .footer a:not(.btn):not(.chip):hover {
  color: var(--brand-600); text-decoration-color: var(--brand-600);
}

/* Corrección: el subrayado usa el mismo color que el texto; al pasar el mouse, texto y subrayado en verde */
.user-link, .owner__name .user-link, .lock-link, .traded-link, .link-btn, .link-btn--muted, .crumbs a, .review a, .legal a, .footer a:not(.btn):not(.chip) { text-decoration-color: currentColor; }
.user-link:hover, .owner__name .user-link:hover, .lock-link:hover, .traded-link:hover, .link-btn:hover, .link-btn--muted:hover, .crumbs a:hover, .review a:hover, .legal a:hover, .footer a:not(.btn):not(.chip):hover { color: var(--brand-600); text-decoration-color: var(--brand-600); }

/* "Mis trueques" del encabezado: subrayado de 2px del color del texto; al pasar el mouse, verde */
.navlink .navlink__text { margin-left: .35em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: currentColor; }
.navlink:hover .navlink__text { color: var(--brand-600); text-decoration-color: var(--brand-600); }

/* Al pasar el mouse sobre cualquier enlace de texto: solo el subrayado cambia a verde (el texto conserva su color) */
.user-link:hover, .owner__name .user-link:hover, .lock-link:hover, .traded-link:hover, .link-btn:hover, .link-btn--muted:hover, .crumbs a:hover, .review a:hover, .legal a:hover, .footer a:not(.btn):not(.chip):hover { color: inherit; text-decoration-color: var(--brand); }
.navlink:hover .navlink__text { color: inherit; text-decoration-color: var(--brand); }


/* Móvil angosto: "Mis trueques" con menos relleno para que quepa junto al ícono de usuario */
@media (max-width: 400px) { .topbar__actions { gap: 4px; } .topbar__actions .navlink { padding: 6px 6px; } .topbar__inner { gap: 8px 8px; } .logo { font-size: 1.2rem; } }
@media (max-width: 360px) { .logo__text { display: none; } }

/* Encabezado de la portada: de borde a borde, sin márgenes ni esquinas redondeadas */
.scene, .scene .hero, .scene__art, .scene__art img { border-radius: 0 !important; }
.scene { margin-left: 0; margin-right: 0; }
.scene { width: 100%; max-width: none; }

/* Portada: tres pasos numerados bajo el título */
.hero__steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__steps li { display: flex; align-items: center; gap: 10px; color: #fff; font-size: var(--fs-p); font-weight: 700; }
.hero__num { flex: none; width: 28px; height: 28px; border-radius: 50% !important; display: grid; place-items: center;
  background: #fff; color: var(--brand-600); font-size: var(--fs-h5); font-weight: 800; }
@media (max-width: 760px) { .hero__steps { flex-direction: column; gap: 10px; } }
.hero__steps { flex-direction: column; gap: 10px; }
.hero__steps li { text-shadow: 0 1px 0 rgba(30, 38, 34, .55), 0 0 14px rgba(30, 38, 34, .45); }
.hero__num { text-shadow: none; }

/* Menú de categorías: en todos los tamaños abre bajo el botón (la posición y el ancho los ajusta placeCatMenu) */
@media (max-width: 760px) {
  .cat-menu { position: absolute; top: calc(100% + 10px); right: auto; max-height: calc(100dvh - 140px); overflow-y: auto; }
}
.cat-menu { max-width: calc(100vw - 2 * var(--gutter)); }

/* Propuesta cerrada automáticamente (el producto se intercambió en otro trueque, o moderación): gris neutro con borde punteado */
.status--closed { background: transparent; color: #6B7280; border: 1px dashed #C9CDD3; }
.offer__when--alone { margin-left: 0; }

/* Trueques realizados: quién hizo la oferta */
.offer__who { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 4px 10px; border-radius: 4px;
  background: var(--teal-50); color: var(--teal); font-size: var(--fs-xs); font-weight: 800; }
.offer__item .offer__traded { justify-self: start; width: fit-content; margin-top: 6px; }

/* Aviso de identidad (perfil y producto): más interlineado cuando ocupa dos líneas */
.wants-box--cash h3:has(.lock-link), .user-lock h3 { line-height: 1.6; align-items: flex-start; }
.wants-box--cash h3:has(.lock-link) .i, .user-lock h3 .i { margin-top: .25em; }

/* Descripción: bajo las fotos en escritorio; en móvil, después de la información del producto */
.pdp__desc--info { display: none; }
@media (max-width: 900px) { .pdp__desc--gallery { display: none; } .pdp__desc--info { display: block; margin: 0 0 16px; } }

/* "Mis trueques" como botón, con el mismo estilo que el botón de Categorías */
.trades-btn { position: relative; text-decoration: none; white-space: nowrap; }
.trades-btn .i { color: var(--brand-600); width: 18px; height: 18px; }
.trades-btn .badge { position: absolute; top: -6px; right: -6px; }
.topbar__actions .avatar { margin-left: 0; }
@media (max-width: 760px) { .trades-btn { height: 40px; padding: 0 12px; font-size: .9rem; gap: 6px; } }
@media (max-width: 400px) { .trades-btn { height: 36px; padding: 0 10px; font-size: .85rem; } }
.cat-btn.trades-btn { width: auto; }
/* Espacio entre el botón Mis trueques y el círculo del usuario */
.topbar__actions .trades-btn + .avatar { margin-left: 10px; }
@media (min-width: 761px) { .topbar__actions .trades-btn + .avatar { margin-left: 4px; } }
@media (max-width: 400px) { .logo__text { display: none; } }

/* Mis trueques en móvil: las pestañas bajan a varias líneas (todas visibles, sin desplazar) */
@media (max-width: 760px) {
  .tabs { flex-wrap: wrap; overflow-x: visible; gap: 0 4px; }
  .tabs button { padding: 10px 10px; }
}
@media (max-width: 760px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .tabs button { text-align: left; white-space: normal; padding: 10px 6px; line-height: 1.3; }
}

/* Mis trueques en móvil: pestañas en una fila deslizable (slider) con desplazamiento suave */
@media (max-width: 760px) {
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; white-space: nowrap; text-align: center; padding: 10px 12px; scroll-snap-align: start; }
}
@media (max-width: 760px) { .tabs { cursor: grab; } .tabs.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; } }
@media (min-width: 761px) { .topbar__actions .trades-btn + .avatar { margin-left: -8px; } }

/* Ventanas: el título no queda debajo del botón cerrar; en teléfono las ventanas cortas no se estiran hasta abajo */
.modal__dialog > h2:first-of-type, .modal__dialog #modalTitle { padding-right: 46px; }
@media (max-width: 600px) {
  .modal__dialog { min-height: 0; height: auto; border-radius: 24px; }
  .modal__dialog:has(#authForm) { min-height: calc(100dvh - 15px); border-radius: 24px 24px 0 0; }
}
/* "elígelas" del mismo tamaño y peso que "Arrastra tus fotos aquí o" */
.dropzone__hint .link-btn { font-size: inherit; font-weight: inherit; }
/* "Arrastra tus fotos aquí o elígelas" del mismo tamaño que "Agregar foto" */
.dropzone__hint { font-size: var(--fs-h5); font-weight: 700; }
/* Panel Fotos: todos los textos en el color principal (como el título "Fotos") */
.dropzone__hint, .photo-add, .photo-add .i, .panel:has(#dropzone) .hint { color: var(--text); }
.photo-add:hover { color: var(--brand-600); }
.publish__intro { color: var(--text); font-weight: 600; }

/* Fotos: sin recuadro "Agregar foto"; el texto "Arrastra tus fotos aquí o elígelas" centrado en la zona */
.dropzone { display: grid; align-content: center; min-height: 150px; }
.dropzone__hint { text-align: center; }
.dropzone .photos:empty + .dropzone__hint { padding: 0 8px; }
/* Etiquetas de los selectores (Categoría, Estado, Región, Comuna) en el color principal */
.field--float .float-label { color: var(--text); }
/* Categorías elegidas al publicar ("Qué quieres a cambio"): mismo negro que los chips seleccionados del inicio */
.chip--cat.is-on, .chip--cat.is-on:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Contador de Mis trueques: círculo perfecto (mismo ancho y alto, también con 2 dígitos) */
.trades-btn .badge { width: 24px; min-width: 24px; height: 24px; padding: 0; line-height: 1; font-size: .72rem; }
/* Propuestas en el producto: con etiquetas largas ("Intercambiado por otra oferta") la etiqueta pasa bajo el texto en pantallas angostas */
@media (max-width: 560px) { .prop { grid-template-columns: 56px 1fr; } .prop .status { grid-column: 2; justify-self: start; } .prop__media { width: 56px; height: 56px; } }
/* ---------- Campana de notificaciones ---------- */
.cat-btn.notif-btn { position: relative; width: 44px; padding: 0; justify-content: center; }
.notif-btn .i { color: var(--brand-600); width: 20px; height: 20px; }
.notif-btn .badge { position: absolute; top: -6px; right: -6px; width: 24px; min-width: 24px; height: 24px; padding: 0; line-height: 1; font-size: .72rem; }
@media (min-width: 761px) { .topbar__actions .trades-btn + .notif-btn, .topbar__actions .notif-btn + .avatar { margin-left: -8px; } }
@media (max-width: 760px) { .cat-btn.notif-btn { width: 40px; height: 40px; } .topbar__actions .notif-btn + .avatar { margin-left: 4px; } }
@media (max-width: 400px) { .cat-btn.notif-btn { width: 36px; height: 36px; } .notif-btn .badge { width: 20px; min-width: 20px; height: 20px; top: -5px; right: -5px; font-size: .65rem; } }

.notif-panel { position: fixed; z-index: 60; max-height: min(560px, calc(100vh - 120px)); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.notif-panel__head { position: sticky; top: 0; z-index: 1; background: #fff; padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.notif-panel__head h2 { font-size: var(--fs-h4); margin: 0; }
.notif-list { list-style: none; margin: 0; padding: 6px; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif__link { position: relative; display: grid; gap: 4px; padding: 12px 34px 12px 12px; border-radius: 12px; color: var(--text); text-decoration: none; line-height: 1.4; }
a.notif__link:hover, a.notif__link:focus-visible { background: var(--brand-50); outline: none; }
.notif__text { font-weight: 600; }
.notif__text .i { color: var(--brand-600); margin-right: 4px; }
.notif__when { font-size: var(--fs-xs); color: var(--muted); }
.notif.is-unread .notif__link { background: var(--teal-50); }
.notif.is-unread a.notif__link:hover { background: var(--brand-50); }
.notif__dot { position: absolute; right: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--brand); }
.notif-empty { padding: 28px 22px; text-align: center; color: var(--muted); }
.notif-empty > .i { width: 32px; height: 32px; color: var(--brand-600); }
.notif-empty p { margin: 8px 0 0; }
.notif-empty .spinner { margin: 0 auto; }
/* Con la campana en el encabezado, el nombre junto al logo se oculta antes para que todo quepa */
@media (max-width: 480px) { .logo__text { display: none; } }
/* Etiqueta "Intercambiado por otra oferta" / "Publicación eliminada" bajo el producto que corresponde */
.offer__item .offer__tag { display: inline-block; justify-self: start; align-self: flex-start; width: max-content; margin-top: 6px; }
/* Pie de ofertas cerradas alineado a las columnas: la etiqueta queda bajo el producto que se intercambió */
.offer__cell { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; min-width: 0; }
.offer__cell:empty { display: none; }
@media (max-width: 600px) { .offer__cell-gap { display: none; } .offer__cell { margin-top: 2px; } }
.offer__cell .status, .offer__cell .small { font-size: .85rem; }
/* Mis trueques y la campana más juntos (6px) */
@media (min-width: 761px) { .topbar__actions .trades-btn + .notif-btn { margin-left: -16px; } }
/* Trueque al que se llegó con "Ver trueque": se destaca un momento */
.offer { transition: box-shadow .4s, border-color .4s; }
.offer.offer--focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50), var(--shadow); }
/* Estrellas para calificar: más pequeñas */
.stars-input .star { font-size: 1.4rem; padding: 1px; }
.stars-input { gap: 2px; }
/* Publicar gratis (encabezado) con el mismo grosor que Mis trueques y Categorías */
.btn--publish { font-weight: 700; } /* todos los "Publicar gratis": encabezado, sobre la imagen principal y flotante */
/* Logo, Categorías, buscador, Publicar gratis, Mis trueques y la campana: todos de la misma altura */
.topbar .logo__mark { width: 44px; height: 44px; border-radius: 12px; }
.topbar .logo__mark .i { width: 24px; height: 24px; }
.topbar .btn--publish { height: 44px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .topbar .logo__mark { width: 40px; height: 40px; border-radius: 11px; } .topbar .logo__mark .i { width: 22px; height: 22px; } }
@media (max-width: 400px) { .topbar .logo__mark { width: 36px; height: 36px; border-radius: 10px; } .topbar .logo__mark .i { width: 20px; height: 20px; } }
/* Punto de "sin leer": círculo perfecto */
.notif__dot { border-radius: 50% !important; }
/* Estrellas para calificar: mismo ícono y tamaño que la estrella del título (18px); gris sin elegir, dorada al elegir */
.stars-input .star { font-size: 0; padding: 3px; line-height: 0; color: #D9D3CB; }
.stars-input .star .i { width: 18px; height: 18px; color: inherit; fill: currentColor; vertical-align: 0; }
.stars-input .star.is-on { color: #F5A524; }
.stars-input .star:not(.is-on) .i { color: #D9D3CB !important; fill: #D9D3CB !important; }
.stars-input .star.is-on .i { color: #F5A524 !important; fill: #F5A524 !important; }
/* "precio referencial" en el color del título */
.pdp__price .muted { color: var(--text); }
/* ---------- Engranaje para administrar la publicación (arriba a la derecha de la foto) ---------- */
.manage { position: absolute; top: 14px; right: 14px; z-index: 3; }
.manage__btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
  border-radius: 50% !important; background: #fff; color: var(--text); box-shadow: 0 2px 10px rgba(27, 26, 31, .18); transition: transform .15s, box-shadow .15s; }
.manage__btn:hover, .manage__btn[aria-expanded="true"] { transform: rotate(30deg); box-shadow: 0 4px 14px rgba(27, 26, 31, .24); }
.manage__btn .i { width: 22px; height: 22px; vertical-align: 0; }
.manage__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.manage__menu[hidden] { display: none; }
.manage__menu a, .manage__menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: none;
  border-radius: 10px; color: var(--text); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.manage__menu a:hover, .manage__menu button:hover, .manage__menu a:focus-visible, .manage__menu button:focus-visible { background: var(--brand-50); outline: none; }
.manage__menu .i { width: 18px; height: 18px; color: var(--brand-600); vertical-align: 0; }
.manage__menu .manage__danger { color: #B42318; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 13px; }
.manage__menu .manage__danger .i { color: #B42318; }
.manage__menu .manage__danger:hover { background: #FEF3F2; }
.gallery__stage:has(.manage) .gallery__reasons { right: 72px; }
/* Etiqueta "Pausada" sobre la foto */
.card__reason--paused { background: #FFF7E6 !important; color: #8A5300 !important; }
.card__reason--paused .i { color: #8A5300; }
/* Botón rojo para confirmar una eliminación */
.btn--danger { background: #D92D20; color: #fff; border: 0; }
.btn--danger:hover { background: #B42318; }
.btn--danger .i { color: #fff; }
/* Etiquetas sobre la foto del producto: mismo estilo y tamaño que en las tarjetas (Mis publicaciones, inicio) */
.gallery__reasons .card__reason, .gallery__reasons .card__reason--done {
  font-size: 12px; font-weight: 800; padding: 4px 10px; background: rgba(255, 255, 255, .94); color: var(--text); }
.gallery__reasons .card__reason .i { width: 12.6px; height: 12.6px; color: inherit; }
.gallery__reasons .card__reason--done .traded-link { color: inherit; font-weight: 800; text-decoration-thickness: 1px; }
.gallery__reasons .card__reason--paused { background: #FFF7E6 !important; color: #8A5300 !important; }
.gallery__reasons .card__reason, .gallery__reasons .card__reason--done { line-height: 1.25; }
.gallery__reasons .card__reason--done .traded-link { line-height: inherit; }
.gallery__reasons .card__reason, .gallery__reasons .card__reason--done { border: 0; }
/* Etiquetas: nunca se cortan; si no caben, pasan a dos líneas (mismo estilo y tamaño de letra en todas partes) */
.card__reasons .card__reason, .gallery__reasons .card__reason { display: block; max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; }
.card__reasons .card__reason .traded-link { display: inline; }
/* ---------- Tarjetas de producto todas del mismo alto (inicio, Mis publicaciones, Guardados, perfiles) ----------
   Cuadrícula pareja: foto cuadrada, título y "Busca" siempre de 2 líneas, ubicación y fecha en 1 línea abajo */
.masonry { column-count: initial; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 1200px) { .masonry { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.masonry .card { margin-bottom: 0; display: flex; flex-direction: column; height: 100%; }
.masonry .card__media .visual { aspect-ratio: 1; }
.masonry .card__body { display: flex; flex-direction: column; flex: 1; }
.masonry .card__title { min-height: calc(2 * 1.3em); }
.masonry .card__wants { min-height: calc(2 * 1.45em); line-height: 1.45; }
.masonry .card__meta { margin-top: auto; padding-top: 8px; flex-wrap: nowrap; white-space: nowrap; }
.masonry .card__meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.masonry .card__meta > span:last-child { flex: none; }
/* 4 columnas como máximo, también en pantallas grandes */
@media (min-width: 1201px) { .masonry { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Producto de una publicación eliminada (en ofertas y propuestas): sin enlace, foto atenuada y nota gris */
.offer__item--gone, .prop--gone .prop__media, .prop--gone .prop__title { cursor: default; }
.offer__item--gone > .visual, .prop--gone .prop__media .visual { opacity: .45; filter: grayscale(.6); }
.offer__item--gone b, .prop--gone .prop__title { color: var(--muted); }
.gone-note { display: block; margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.gone-note .i { width: 14px; height: 14px; color: var(--muted); vertical-align: -2px; margin-right: 2px; }
/* Publicación eliminada o caducada: el precio también en gris */
.offer__item--gone .small, .prop--gone .prop__price, .prop--gone .prop__price b { color: var(--muted) !important; }
/* Pausada: en gris pero se puede abrir */
.offer__item--paused, .prop--gone a.prop__media, .prop--gone a.prop__title { cursor: pointer; }
/* Oferta con publicación pausada: en vez de "Aceptar trueque", un aviso */
.paused-hint { font-size: .85rem; font-weight: 700; color: #8A5300; background: #FFF7E6; padding: 8px 12px; text-decoration: none; }
a.paused-hint:hover { text-decoration: underline; }
.paused-hint--muted { color: var(--muted); background: var(--bg); }
/* Etiquetas sobre la foto en la página del producto: más grandes que en las tarjetas */
.gallery__reasons .card__reason, .gallery__reasons .card__reason--done { font-size: 15px; padding: 7px 14px; line-height: 1.3; }
.gallery__reasons .card__reason .i { width: 16px; height: 16px; vertical-align: -3px; }
.gallery__reasons { gap: 8px; }
/* "Reactivar" junto a "Publicación pausada" en una oferta */
.gone-note__action { margin-left: 10px; font-size: inherit; font-weight: 700; color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.gone-note__action:hover { text-decoration-color: var(--brand); }
.offer__item--paused .offer__item-title { display: block; color: inherit; text-decoration: none; }
.offer__item--paused > a { display: contents; }
.offer__item--gone .visual { opacity: .45; filter: grayscale(.6); }
/* "Reactivar": mismo tamaño, color y estilo que "Publicación pausada", separado con un punto */
.gone-note__sep { margin: 0 2px; }
.gone-note .gone-note__action { margin-left: 0; font: inherit; color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: currentColor; padding: 0; }
.gone-note .gone-note__action:hover { text-decoration-color: var(--brand); }
/* Pausada: no se puede abrir; solo "Reactivar" es clickeable */
.offer__item--paused, .prop--gone .prop__media, .prop--gone .prop__title { cursor: default; }
.offer__item--paused .gone-note__action { cursor: pointer; }
/* "Intercambiado por…" sobre la foto: mismo verde que la caja "Datos de contacto desbloqueados" */
.gallery__reasons .card__reason--done { background: var(--teal-50) !important; color: var(--teal) !important; font-weight: 700; }
.gallery__reasons .card__reason--done .i, .gallery__reasons .card__reason--done .traded-link { color: var(--teal) !important; }
.gallery__reasons .card__reason--done .traded-link { font-weight: 800; text-decoration-color: currentColor; }
.card__reason .traded-link { margin-left: 2px !important; }
/* El nombre del producto en "Intercambiado por…" con el mismo grosor que la caja de identidad */
.gallery__reasons .card__reason--done .traded-link { font-weight: 700 !important; }
/* "Intercambiado por…": mismo grosor que las demás etiquetas sobre la foto (800), con los colores verdes */
.gallery__reasons .card__reason--done, .gallery__reasons .card__reason--done .traded-link { font-weight: 800 !important; }
/* Ingresar y Crear cuenta: mismo alto que el resto del encabezado */
.topbar .btn--outline { height: 44px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .topbar .btn--outline { height: 40px; } }
@media (max-width: 400px) { .topbar .btn--outline { height: 36px; } }
/* Crear cuenta con el estilo del botón Categorías; Ingresar y Crear cuenta más juntos */
.cat-btn.register-btn { width: auto; padding: 0 16px; white-space: nowrap; cursor: pointer; }
.topbar__actions [data-auth="login"] + .register-btn { margin-left: -14px; }
@media (max-width: 760px) { .cat-btn.register-btn { height: 40px; padding: 0 12px; } .topbar__actions [data-auth="login"] + .register-btn { margin-left: 4px; } }
@media (max-width: 400px) { .cat-btn.register-btn { height: 36px; padding: 0 10px; font-size: .85rem; } }
/* Página del producto: todas las etiquetas del mismo tamaño (sobre la foto, datos y "Busca a cambio") */
.gallery__reasons .card__reason, .gallery__reasons .card__reason--done, .pdp .pill, .pdp .chip--want { font-size: 15px !important; line-height: 20px !important; padding: 7px 14px !important; border: 1px solid transparent; box-sizing: border-box; min-height: 36px; }
.pdp .pill, .pdp .chip--want { border-color: var(--line); }
.gallery__reasons .card__reason .i, .pdp .pill .i, .pdp .chip--want .i { width: 16px !important; height: 16px !important; }
/* Ingresar con el mismo tamaño de letra y relleno que Crear cuenta en todas las pantallas */
.topbar__actions .btn--outline[data-auth="login"] { font-size: 1rem; padding: 0 16px; }
/* "Ingresar" al pasar el mouse: igual que "Crear cuenta" (verde claro con borde verde) */
.topbar__actions .btn--outline[data-auth="login"] { border-width: 2px; } /* el mismo grosor de borde que "Crear cuenta" */
.topbar__actions .btn--outline[data-auth="login"]:hover { background: #D6F7E3; border-color: var(--brand); }
@media (max-width: 760px) { .topbar__actions .btn--outline[data-auth="login"] { font-size: 1rem; padding: 0 12px; } }
@media (max-width: 400px) { .topbar__actions .btn--outline[data-auth="login"] { font-size: .85rem; padding: 0 10px; } }
/* Teléfono: las ventanas (también ingresar/registrarse) se ajustan a su contenido y quedan centradas en vertical */
@media (max-width: 600px) {
  .modal { place-items: center; padding: 15px; }
  .modal__dialog, .modal__dialog:has(#authForm) { min-height: 0; height: auto; max-height: calc(100dvh - 30px); border-radius: 24px; padding-bottom: 24px; }
}

/* Selector de país (pie de página): cada país es su propio mercado en /cl, /ar, /es… */
.countries { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; }
.countries__label { color: var(--text); width: 100%; }
.countries__item { color: var(--ink-2, var(--text)); text-decoration: none; white-space: nowrap; }
.countries__item:hover { text-decoration: underline; }
.countries__item.is-active { font-weight: 700; color: var(--text); }

/* Publicación eliminada: el título no es un enlace, así que no se subraya al pasar el mouse */
.prop--gone span.prop__title:hover, .offer__item--gone b:hover { text-decoration: none; }

/* Mis trueques: tu publicación pausada se puede abrir (todo el bloque, como los demás productos); sigue en gris */
.offer__item--paused.offer__item--open { cursor: pointer; }
.offer__item--open:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 12px; }
/* Nota de producto no disponible, debajo del bloque (como el mensaje de la propuesta) */
.gone-note--below { margin-top: 0; font-size: .85rem; font-weight: 600; line-height: 1.5; } /* igual que el comentario de la propuesta, a la misma altura */

/* Propuestas de trueque: la etiqueta de estado (Pendiente, Intercambiado, Pausada…) va siempre debajo del perfil, en todos los tamaños */
.prop { grid-template-columns: 64px 1fr; }
.prop .status { grid-column: 2; justify-self: start; align-self: start; }
@media (max-width: 560px) { .prop { grid-template-columns: 56px 1fr; } }

/* Propuestas en la página de una publicación: mismas tarjetas que Mis trueques */
.props__list .offer--prop { margin-bottom: 0; }
.offer--me { border-color: var(--brand); background: #F2FDF6; } /* tu propia propuesta */

/* Propuestas en la página de una publicación: primero quién y cuándo, y la etiqueta de estado debajo */
.offer__foot--stack { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 20px; }
/* Mis trueques: el bloque "quién · cuándo / etiqueta" (el botón Aceptar queda a la derecha) */
div.offer__foot--stack { display: flex; }
.offer__chiprow { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .85rem; font-weight: 600; color: var(--muted); }
.offer__chiprow .gone-note__action { font: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }

/* Mis trueques: pie en dos columnas alineadas con los productos (la etiqueta de un producto no disponible va bajo ese producto) */
.offer__foot.offer__foot--cols { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 12px; align-items: start; }
@media (min-width: 601px) { .offer__foot.offer__foot--cols { column-gap: 40px; } }
.offer__arrow--ghost { visibility: hidden; height: 0 !important; margin: 0 !important; overflow: hidden; }
.offer__when--ghost { visibility: hidden; }
.offer__accept { justify-self: end; align-self: end; display: flex; gap: 8px; }
.offer__foot--cols > .offer__foot--stack:last-child:has(.offer__accept) { align-items: flex-end; }
@media (max-width: 600px) {
  .offer__foot.offer__foot--cols { grid-template-columns: 1fr; row-gap: 20px; }
  .offer__arrow--ghost, .offer__when--ghost { display: none; }
  .offer__foot--cols > .offer__foot--stack:empty { display: none; }
}
/* Etiqueta bajo un producto no disponible: misma separación (20px) que la etiqueta bajo quién y cuándo */
.offer__chiprow--item { margin-top: 10px; } /* + 10px de separación de la columna = 20px */

/* Pie de Mis trueques: fila 1 = quién y cuándo; fila 2 = etiqueta, con "Aceptar trueque" a la derecha y centrado en la misma fila */
.offer__foot.offer__foot--cols { row-gap: 20px; align-items: center; }
.offer__foot-who { grid-column: 1; grid-row: 1; }
.offer__foot-chip { grid-column: 1; grid-row: 2; justify-self: start; }
.offer__foot--cols .offer__arrow--ghost { grid-column: 2; grid-row: 1; }
.offer__foot--cols .offer__accept { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; }
.offer__foot--cols .offer__accept--alone { grid-row: 1; }
@media (max-width: 600px) {
  .offer__foot--cols .offer__foot-who, .offer__foot--cols .offer__foot-chip, .offer__foot--cols .offer__accept { grid-column: 1; grid-row: auto; }
  .offer__foot--cols .offer__accept { justify-self: start; }
}
/* El renglón "quién · cuándo" usa todo el ancho del pie (no se corta en columnas angostas) */
.offer__foot--cols .offer__foot-who { grid-column: 1 / -1; }
.offer__foot--cols .offer__accept--alone { grid-row: 2; }
/* "Pendiente" y "Aceptar trueque": alineados por abajo (la misma línea de base de la fila) */
.offer__foot--cols .offer__foot-chip, .offer__foot--cols .offer__accept { align-self: end; }

/* ===== Portada: texto a la izquierda e ilustración a la derecha (hero-trueque.svg) =====
   Las imágenes anteriores (hero-escena*.svg) siguen en /img por si se quiere volver a ellas. */
.scene--split { background: linear-gradient(180deg, #F3FBF6 0%, var(--bg) 100%); }
.scene--split .hero { padding: clamp(28px, 4vw, 56px) 0 clamp(8px, 2vw, 20px); }
.scene--split .hero__grid--split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(16px, 4vw, 48px); align-items: center; }
.scene--split h1, .scene--split h2 { color: var(--ink-2); text-shadow: none; }
.scene--split h1 em { color: var(--brand); }
.scene--split .hero__steps li { color: var(--ink-2); text-shadow: none; }
.scene--split .hero__art { margin: 0; justify-self: end; width: 100%; max-width: 560px; }
.scene--split .hero__art img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .scene--split .hero__grid--split { grid-template-columns: 1fr; }
  .scene--split .hero__art { order: 0; justify-self: center; max-width: 420px; margin-top: 4px; }
}
/* Portada dividida en el teléfono: sin el cielo ni el pasto del dibujo anterior, y las categorías debajo (sin superponerse) */
@media (max-width: 760px) {
  .scene--split .hero { background: none; padding: 20px 0 8px; }
  .scene--split .scene__foot { margin-top: 0; background: none; padding-top: 8px; }
  .scene--split .scene__foot::before { display: none; }
}

/* Logo con letra manuscrita (Covered By Your Grace, Google Fonts; tiene un solo grosor) */
.logo__text { font-family: 'Covered By Your Grace', cursive; font-weight: 400; letter-spacing: .02em; font-size: 2.15rem; line-height: 1; padding-top: 4px; }
@media (max-width: 760px) { .logo__text { font-size: 1.6rem; padding-top: 3px; } } /* logo más chico en teléfonos y pantallas angostas (bajo 480px solo se ve el ícono) */

/* ===== Portada a todo el ancho (escritorio): los brazos entran desde los bordes de la pantalla
   (hero-trueque-ancho.svg) y el título queda centrado entre ellos. En el teléfono sigue el texto arriba
   y la ilustración (hero-trueque.svg) debajo. ===== */
@media (min-width: 761px) {
  .scene--full .hero { position: relative; overflow: hidden; display: grid; align-items: center;
    min-height: clamp(460px, calc(100vw * 700 / 1440), 760px); padding: 0; }
  .scene--full .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; pointer-events: none; }
  .scene--full .hero__grid--split { position: relative; z-index: 1; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .scene--full .hero__copy { max-width: 600px; margin: 0 auto; padding: 0 12px 70px; }
  .scene--full .hero__cta { justify-content: center; }
  .scene--full .hero__art { display: none; }
}
/* Pantallas medianas: el título se achica y se angosta para caber entre los brazos */
/* (en todo escritorio: deja aire blanco entre el título y la zapatilla y la guitarra) */
@media (min-width: 761px) {
  .scene--full .hero__copy { max-width: 39vw; }
  .scene--full .hero h1 { font-size: clamp(1.8rem, 3.25vw, 3rem); }
}

/* Portada en el teléfono: el mismo diseño a todo el ancho y sin márgenes (hero-trueque-movil.svg, 400 × 760):
   arriba zapatilla y planta, al centro el título y el botón, abajo guitarra, cámara y el control */
@media (max-width: 760px) {
  .scene--full .hero { position: relative; overflow: hidden; padding: 0; min-height: calc(100vw * 760 / 400); }
  .scene--full .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; pointer-events: none; }
  .scene--full .hero__grid--split { position: relative; z-index: 1; grid-template-columns: 1fr; justify-items: center; text-align: center;
    padding-top: calc(100vw * 760 / 400 * .305); } /* centrado en el espacio libre entre la planta y la guitarra */
  .scene--full .hero__copy { max-width: 340px; margin: 0 auto; padding: 0; }
  .scene--full .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .scene--full .hero__cta { justify-content: center; }
  .scene--full .hero__art { display: none; }
}
/* Portada a todo el ancho: la imagen de fondo no ocupa una fila del grid (antes empujaba el título hacia abajo),
   y el título queda centrado en el espacio libre entre los brazos */
.scene--full .hero__bgpic { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
@media (min-width: 761px) { .scene--full .hero__copy { padding: 0 12px 8%; } } /* título más arriba en escritorio */

/* Formularios: el valor elegido o escrito con el mismo grosor que los textos de ayuda y los placeholders */
input, select, textarea, .input { font-weight: 600; }

/* Pie de página: países separados por viñetas */
.countries__sep { color: var(--text); opacity: .5; }

/* Pie de página: los países como chips, igual que las categorías; el país actual en negro */
.countries { gap: 8px; }
.countries__item.chip { color: var(--text); text-decoration: none; }
.countries__item.chip:hover { text-decoration: none; }
.countries__item.chip.is-active { color: #fff; font-weight: 600; }
.countries__label { margin-bottom: 2px; }
@media (max-width: 639px) { .countries .chip { padding: 6px 11px; } }

/* Pie de página con mucho más aire: lejos del contenido de la página, y entre categorías y países */
.footer { margin-top: 120px; }
.footer__inner { padding-top: 48px; }
.countries { margin-top: 96px; padding-top: 56px; }
@media (max-width: 760px) { .footer { margin-top: 80px; } .footer__inner { padding-top: 36px; } .countries { margin-top: 64px; padding-top: 40px; } }

/* Mis trueques: todas las etiquetas en la fila de abajo del pie (como "Pendiente"), en la columna de su producto, y todas del mismo tamaño */
.offer__foot-chip .offer__chiprow--item { margin-top: 0; }
.offer__foot--cols .offer__foot-chip--right { grid-column: 3; grid-row: 2; justify-self: start; align-self: end; }
.offer .offer__foot .status { font-size: .75rem; } /* mismo tamaño en Mis trueques y en la página de una publicación */
@media (max-width: 600px) { .offer__foot--cols .offer__foot-chip--right { grid-column: 1; grid-row: auto; } }

/* Propuesta que abre su trueque en Mis trueques */
.offer--goto { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.offer--goto:hover { border-color: var(--brand); box-shadow: var(--shadow); }

/* Etiqueta de cada producto: en escritorio en la fila del pie (columna de su producto); en el teléfono justo debajo de su producto */
.offer__chip-mobile { display: none; }
@media (max-width: 600px) {
  .offer__chip-mobile { display: block; }
  .offer__chip-desktop { display: none; }
  .offer__foot-chip:not(:has(.status:not(.offer__chip-desktop .status))) { display: none; }
}

/* Portada: más espacio en blanco entre la ilustración y las categorías */
.scene--full .scene__foot { padding-top: 64px; }
@media (max-width: 760px) { .scene--full .scene__foot { padding-top: 56px; } }

/* Mis trueques: en escritorio la etiqueta de un producto no disponible va justo debajo de ese producto */
.offer__side > .offer__chip-desktop { display: block; margin: 0 0 4px; } /* arriba alineada con "Agrega … de diferencia" */
.offer__side > .offer__chip-desktop .offer__chiprow--item { margin-top: 0; }
.offer .offer__side .status { font-size: .75rem; }
@media (max-width: 600px) { .offer__side > .offer__chip-desktop { display: none; } }

/* Etiquetas unificadas: mismo alto (26px) en tarjetas y propuestas, y un solo color por estado en todo el sitio
   Pendiente = crema/café · Pausada, eliminada y caducada = gris · Intercambiado = verde */
.card__reasons .card__reason { line-height: 18px; }
.card__reason--paused, .gallery__reasons .card__reason--paused { background: #F3F4F6 !important; color: #6B7280 !important; }
.card__reason--paused .i { color: inherit !important; }
.card__reason--done, .gallery__reasons .card__reason--done { background: #DCFCE7 !important; color: #166534 !important; }
.card__reason--done .i, .gallery__reasons .card__reason--done .i, .gallery__reasons .card__reason--done .traded-link { color: inherit !important; }
/* Ícono de las etiquetas sobre la foto del mismo tamaño que en las demás etiquetas (14px) */
.card__reasons .card__reason .i { width: 14px !important; height: 14px !important; }

/* "Recomendado por IA" (Mejores trueques para tu publicación): sin caja verde, como una sección normal del feed */
.matches { background: none; border: 0; border-radius: 0; padding: 0; }
@media (max-width: 600px) { .matches { padding: 0; } }

/* Publicación pausada (o caducada) en las tarjetas: en gris, como los productos no disponibles en Mis trueques */
div.card--locked, .card--locked:hover { transform: none; box-shadow: none; }
div.card--locked { cursor: default; }
.card--paused .card__media > .visual, .card--paused .card__media > img, .card--paused .card__media .visual img { filter: grayscale(1); opacity: .55; }
.card--paused .card__title, .card--paused .card__price, .card--paused .card__price small,
.card--paused .card__wants, .card--paused .card__wants b, .card--paused .card__meta { color: var(--muted) !important; }
/* Motivo de Claude sobre la foto del producto: morado, igual que en la tarjeta */
.gallery__reasons .card__reason--ai, .card__reasons .card__reason--ai { background: #EEE7FF !important; color: #5B21B6 !important; }
.gallery__reasons .card__reason--ai .i { color: #5B21B6 !important; }

/* Cascada: después de lo elegido por la IA, un título separa el resto */
.masonry > .feed-split { grid-column: 1 / -1; margin: 28px 0 4px; }
@media (max-width: 600px) { .masonry > .feed-split { margin: 20px 0 2px; } }
.masonry > .feed-split--ai { margin-top: 8px; }
.masonry > .feed-split--ai h2 { margin-top: 8px; }
/* Mismos espacios que el encabezado de "Mejores trueques para tu publicación": 16px insignia→título, 24px título→tarjetas */
.masonry > .feed-split { margin-bottom: 10px; }
.masonry > .feed-split--ai h2 { margin-top: 16px; }

/* Nunca desplazamiento horizontal de la página (Firefox lo mostraba en la página de producto) */
html { overflow-x: hidden; }
html, body { max-width: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
/* Tarjeta de contacto (Trueques realizados): en el teléfono el bloque se ajusta al ancho y el email puede cortarse */
.owner--contact .owner__info, .owner__info--contact { min-width: 0; flex: 1 1 auto; max-width: 100%; }
.owner__info--contact a, .owner__info--contact .owner__strong { overflow-wrap: anywhere; }
.owner__info--contact .owner__strong { white-space: normal; min-width: 0; max-width: 100%; }
.owner__info--contact .owner__strong .i { flex: none; }

/* Tableta (761–1000px): el encabezado no cabe completo; Categorías y Mi Truequers quedan solo con su ícono */
@media (min-width: 761px) and (max-width: 1000px) {
  .topbar .cat-btn__label, .topbar .trades-btn__label { display: none; }
  .topbar .catnav .cat-btn, .topbar .trades-btn { width: 44px; padding: 0; justify-content: center; }
}

/* Producto no disponible que sigue siendo enlace (p. ej. intercambiado): manito al pasar el mouse */
a.offer__item--gone, a.offer__item--gone *, .prop--gone a.prop__media, .prop--gone a.prop__title { cursor: pointer; }
/* "Pendiente" va bajo el producto: en escritorio "Aceptar trueque" queda a la derecha, en la misma fila que quién y cuándo */
@media (min-width: 601px) {
  .offer__foot--cols .offer__foot-who { grid-column: 1; }
  .offer__foot--cols .offer__accept--alone { grid-row: 1; align-self: center; }
}

/* Proponer trueque: etiqueta de por qué ese producto es buen trueque (los perfectos van primero) */
.pick__tag { display: block; width: fit-content; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 18px; background: #F3F4F6; color: #374151; }
.pick__tag .i { width: 14px; height: 14px; vertical-align: -3px; margin-right: 2px; }
.pick__tag--perfect { background: #DCFCE7; color: #166534; }
.pick.pick--done { cursor: default; background: #F9FAFB; }
.pick.pick--done > .visual, .pick.pick--done b { opacity: .7; }
.pick__tag--sent { background: #FEF3C7; color: #92400E; }

/* Portada: mientras Claude elige, la etiqueta muestra un spinner chico */
.ai-badge--wait { display: inline-flex; align-items: center; gap: 6px; }
.spinner.spinner--xs { width: 12px; height: 12px; border-width: 2px; border-color: #D8CCF5; border-top-color: #5B21B6; display: inline-block; }

/* Encabezado de la IA en la portada igual al de tu publicación: subtítulo pegado al título */
.feed-split--ai p { margin: 6px 0 0; }

/* Proponer trueque: producto ya ofrecido por esta publicación (gris, no se puede elegir) con "Esperando respuesta" arriba a la derecha */
.pick.pick--sent { position: relative; cursor: default; background: #F9FAFB; padding-right: 8px; }
.pick.pick--sent > .visual { opacity: .55; filter: grayscale(.5); }
.pick.pick--sent b, .pick.pick--sent .small { opacity: .6; }
.pick__sent { position: absolute; top: 8px; right: 8px; font-size: .75rem; line-height: 18px; padding: 2px 8px; }
.pick.pick--sent > div { padding-right: 150px; }
@media (max-width: 480px) { .pick.pick--sent > div { padding-right: 0; padding-top: 22px; } }

/* Ya ofrecido: se ve igual que los demás (sin gris), con "Esperando respuesta" debajo del producto */
.pick.pick--sent { background: var(--card); }
.pick.pick--sent > .visual, .pick.pick--sent b, .pick.pick--sent .small { opacity: 1; filter: none; }
.pick.pick--sent > div { padding: 0; }
.pick__sent { position: static; display: block; width: fit-content; margin-top: 4px; font-size: .75rem; line-height: 18px; padding: 2px 8px; }

/* Mismo peso que el resto del sitio (600): mensajes vacíos y respuestas/fechas de Preguntas y respuestas */
.empty, .qa__a, .qa__a span, .qa__meta { font-weight: 600; }

/* Mi Truequers: la primera pestaña alineada con el título y el contenido (sin sangría a la izquierda) */
.tabs button:first-child { padding-left: 0; }

/* Términos y condiciones / Política de privacidad */
.legal { max-width: 760px; margin: 32px 0 48px; font-size: 1rem; line-height: 1.65; }
.legal h1 { margin: 0 0 6px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--teal, #0F766E); text-decoration: underline; text-underline-offset: 3px; }
.legal__date { color: var(--muted); margin: 0 0 20px; }
.legal__other { margin-top: 32px; color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.footer__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.check a { text-decoration: underline; text-underline-offset: 2px; }

/* Soporte (#/soporte) */
.support-form { max-width: 760px; }
.support-form h2 { margin: 0 0 12px; }
.support-ticket { max-width: 760px; margin-bottom: 12px; }
.support-ticket__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.support-msg { padding: 10px 14px; border-radius: 8px; margin: 8px 0; background: #F6F1E8; }
.support-msg--admin { background: #E8F7EE; }
.support-reply { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.support-reply textarea { flex: 1; }

/* Soporte: "Enviado" en gris después de enviar */
.btn.is-sent, .btn.is-sent:hover { background: #D9D3CB !important; border-color: #D9D3CB !important; color: #fff !important; cursor: default; box-shadow: none !important; }

/* Bloque de producto que se abre al tocarlo (tu publicación pausada, o la oculta que lleva a Soporte) */
.offer__item--open { cursor: pointer; }

/* Chips de categorías y países: exactamente como el botón "Mi Truequers" (normal y al pasar el mouse).
   Seleccionado: verde lleno, como "Publicar gratis". (Los chips teal, de sugerencia y "Quitar filtros" mantienen su estilo) */
.chip:not(.chip--rm):not(.chip--want):not(.chip--suggest):not(.chip--clear) {
  background: var(--brand-50); border: 2px solid #BFEFD2; border-radius: 4px; color: #427AA8; font-weight: 700; font-size: .9rem;
}
.chip:not(.chip--rm):not(.chip--want):not(.chip--suggest):not(.chip--clear):hover { background: #D6F7E3; border-color: var(--brand); }
.chip:not(.chip--rm):not(.chip--want):not(.chip--suggest):not(.chip--clear).is-active,
.chip:not(.chip--rm):not(.chip--want):not(.chip--suggest):not(.chip--clear).is-active:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:not(.chip--rm):not(.chip--want):not(.chip--suggest):not(.chip--clear) .i { color: #128C4A; }
.chip:not(.chip--rm):not(.chip--want):not(.chip--suggest):not(.chip--clear).is-active .i { color: #fff; }

/* Filtro por lugar (región y comuna) bajo las categorías del inicio: botones con el estilo de los chips
   y un menú como el filtro de países del panel */
.place-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; position: relative; z-index: 20; transform: translateZ(0); } /* separado de las categorías; capa propia: Safari pintaba las tarjetas (columnas) encima del menú */
#feed { position: relative; z-index: 0; isolation: isolate; }
.place-filter .cpick { position: relative; }
.place-filter .cpick__btn { cursor: pointer; font-family: inherit; line-height: inherit; }
.place-filter .cpick__btn .i { width: 16px; height: 16px; }
.cpick__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.cpick__btn[aria-expanded="true"] .cpick__chev { transform: rotate(180deg); }
.place-filter .cpick__menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; width: max-content; max-width: min(400px, calc(100vw - 32px)); max-height: 340px; overflow-y: auto; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.place-filter .cpick__menu[hidden] { display: none; }
.cpick__opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); text-align: left; cursor: pointer; }
.cpick__opt:hover { background: var(--bg, #FAF8F5); }
.cpick__opt.is-on { color: var(--text); font-weight: 800; }
.cpick__opt svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Menú de región/comuna: mismo estilo que los menús del panel, con el gris del sitio (también la opción elegida) */
.place-filter .cpick__menu { min-width: 220px; }
.place-filter .cpick__opt { font-size: .88rem; font-weight: 600; color: var(--muted); }
.place-filter .cpick__opt.is-on { color: var(--muted); font-weight: 800; }

/* Menú de región/comuna y "No encontramos productos": en el color del texto del sitio (como los chips) */
.place-filter .cpick__opt, .place-filter .cpick__opt.is-on { color: var(--text); }
#feed .empty { color: var(--text); }

/* Pestañas de Mi Truequers: todas en el azul de los títulos; la elegida se distingue por la línea verde */
.tabs button, .tabs button:hover { color: var(--text); }

/* Soporte: la conversación con el esquema de preguntas y respuestas (la respuesta va pegada a su mensaje) */
.support-qa { margin: 6px 0 4px; }
.support-qa .qa__item:first-child { border-top: 0; padding-top: 6px; }
.support-qa__a { padding: 0 0 14px; }
.support-qa__a .qa__meta { margin-left: 37px; }

/* Soporte del sitio: número, tema, fecha y "Tú · fecha" también en el azul */
.support-ticket .muted, .support-ticket .qa__meta, .support-ticket .qa__q .i, .support-ticket .qa__a .i { color: var(--text); }

/* Menú de un <select> con el estilo del menú de región y comuna (en vez del menú del sistema) */
.spick { position: relative; }
.spick__menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 340px; overflow-y: auto; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.spick__menu[hidden] { display: none; }
.spick__menu .cpick__opt { border-radius: 4px; font-size: .88rem; font-weight: 600; color: var(--text); }
.spick__menu .cpick__opt.is-on { color: var(--text); font-weight: 800; }
.spick__menu .cpick__opt:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Página de la publicación: preguntas y propuestas sin gris, todo en el azul del sitio */
.pdp-bottom .muted, .pdp-bottom .offer__msg, .pdp-bottom .offer__when, .pdp-bottom .offer__when .user-link { color: var(--text); }

/* Página de la publicación: "Reportar publicación" y "Reportar usuario" lado a lado */
.report-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }

/* Preguntas y respuestas: "Esperando respuesta del dueño…", alias y fecha (y sus íconos) en el azul del sitio */
.qa__a.is-pending, .qa__meta, .qa__q .i, .qa__a .i { color: var(--text); }

/* Campo "¿A quién reportas?": solo con los temas de reporte (el atributo hidden debe ganarle al display de .field) */
.field[hidden] { display: none !important; }

/* Publicación eliminada (página que solo abren los moderadores): fotos en gris, como sus tarjetas */
.gallery--gone .gallery__main > .visual, .gallery--gone .gallery__main img, .gallery--gone .gallery__thumbs .visual, .gallery--gone .gallery__thumbs img { filter: grayscale(1); opacity: .55; }

/* Propuesta cuyo producto se eliminó: gris, sin fondo verde y sin enlace */
.offer--dead { background: #FAFAFA; border-color: var(--line); cursor: default; }
.offer--dead .offer__msg, .offer--dead .offer__when, .offer--dead .offer__when a { color: #6B7280 !important; }
