/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Plus_Jakarta_Sans","arguments":[{"subsets":["latin"],"variable":"--font-ui","display":"swap"}],"variableName":"jakarta"} ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/6fe53d21e6e7ebd8-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/8ebc6e9dde468c4a-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/9e7b0a821b9dfcb4-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/636a5ac981f94f8b-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Plus Jakarta Sans Fallback';src: local("Arial");ascent-override: 98.88%;descent-override: 21.15%;line-gap-override: 0.00%;size-adjust: 104.98%
}.__className_646807 {font-family: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback';font-style: normal
}.__variable_646807 {--font-ui: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback'
}

/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Hallmark · genre: modern-minimal · theme: custom (navy + orange brand, preserved)
 * type: Plus Jakarta Sans (original, kept by request)
 * refinements: radius scale · defined --accent · card hover · unified prices
 */
:root {
  --navy: #061a43;
  --navy-2: #09265d;
  --orange: #ff5a12;
  --violet: #4f46e5;
  --ink: #111827;
  --muted: #667085;
  --soft: #eef3fb;
  --line: #dde5f0;
  --paper: #f7f9fd;
  --panel: #ffffff;
  --success: #0a7a5a;
  --success-soft: #d9f8e9;
  --shadow: 0 18px 48px rgba(6, 26, 67, 0.1);
  --soft-shadow: 0 10px 28px rgba(6, 26, 67, 0.08);

  /* Accent: previously referenced but never defined (latent hover bug) */
  --accent: var(--orange);
  --accent-ink: #ffffff;

  /* Intentional radius scale (was a flat 8px everywhere) */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

/* Tighter tracking on big headings + tabular figures on prices
   (font stays Plus Jakarta Sans). */
.category-panel-head h1,
.article-info h1 {
  letter-spacing: -0.018em;
}

.listing-price,
.article-price {
  font-feature-settings: "tnum" 1;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui), "Avenir Next", "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 90, 18, 0.28);
  outline-offset: 2px;
}

.app-shell {
  background: var(--paper);
  min-height: 100dvh;
  overflow-x: hidden;
}

.topbar {
  align-items: center;
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 22px;
  min-height: 96px;
  padding: 16px 54px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  transition: box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
  z-index: 8;
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: transparent;
  box-shadow: 0 8px 28px rgba(6, 26, 67, 0.1);
}

/* Mobile-only top header (logo + account menu). Hidden on desktop. */
.mobile-topbar {
  display: none;
}

.brand {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0;
}

.brand img {
  display: block;
  height: auto;
  width: 206px;
}

.top-search,
.mobile-search,
.location-pill,
.signin-pill,
.host-button,
.icon-ghost,
.nav-button,
.category-tile,
.filter-strip button,
.listing-footer button,
.primary-button,
.danger-button,
.drawer-actions button,
.reservation-card button,
.message-form button,
.link-button {
  align-items: center;
  border-radius: var(--radius-sm);
  display: inline-flex;
  gap: 10px;
  min-height: 44px;
}

.top-search {
  background: white;
  border: 1px solid var(--line);
  flex: 1 1 auto;
  margin-left: 22px;
  max-width: 800px;
  min-height: 60px;
  overflow: hidden;
  padding: 0 0 0 22px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.top-search:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(6, 26, 67, 0.1);
}

.top-search:focus-within svg:first-child {
  color: var(--navy);
}

.top-search svg,
.mobile-search svg {
  color: var(--muted);
  flex: 0 0 auto;
}

.top-search input,
.mobile-search input,
.message-form input,
.panel-form input,
.panel-form textarea,
.panel-form select {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.top-search button,
.mobile-search button {
  background: var(--navy);
  border: 0;
  color: white;
  height: 60px;
  justify-content: center;
  margin-left: auto;
  transition: background 160ms ease;
  width: 64px;
}

.top-search button:hover,
.mobile-search button:hover {
  background: var(--navy-2);
}

.signin-pill {
  border-radius: 50%;
  justify-content: center;
  padding: 0;
  transition: transform 140ms ease, box-shadow 140ms ease;
  width: 54px;
}

.signin-pill:hover {
  box-shadow: 0 6px 16px rgba(6, 26, 67, 0.16);
  transform: translateY(-1px);
}

.login-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.login-button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.location-pill {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
  padding: 0 18px;
  transition: border-color 140ms ease, background 140ms ease;
  white-space: nowrap;
}

.location-pill:hover {
  background: #f3f7ff;
  border-color: var(--navy);
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-left: auto;
}

.icon-ghost {
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  justify-content: center;
  padding: 0;
  position: relative;
  transition: background 140ms ease, color 140ms ease;
  width: 44px;
}

.icon-ghost:hover {
  background: #eef2fb;
  color: var(--navy-2);
}

.icon-ghost span {
  align-items: center;
  background: var(--orange);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 22px;
}

.user-avatar,
.seller-avatar {
  align-items: center;
  background: #e9eef8;
  border-radius: 50%;
  color: var(--violet);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  justify-content: center;
}

.user-avatar {
  height: 48px;
  width: 48px;
}

.host-button {
  background: var(--navy);
  border: 0;
  color: white;
  font-weight: 900;
  padding: 0 24px 0 10px;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}

.host-button-plus {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.host-button.secondary .host-button-plus {
  background: #eef2fb;
}

.host-button:hover {
  background: var(--navy-2);
  box-shadow: 0 8px 20px rgba(6, 26, 67, 0.22);
  transform: translateY(-1px);
}

.host-button.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
}

.host-button.secondary:hover {
  background: #f3f7ff;
  box-shadow: none;
}

.nav-list {
  display: none;
}

.workspace {
  margin: 0 auto;
  max-width: 1760px;
  padding: 32px 64px 44px;
}

.feed-page {
  display: grid;
  grid-gap: 22px;
  gap: 22px;
}

.mobile-market-head {
  display: none;
}

.category-panel {
  align-items: stretch;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 54%, #f1f6ff 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  grid-gap: 32px;
  gap: 32px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(640px, 1.6fr);
  padding: 34px 42px;
}

.category-panel-head {
  align-content: center;
  display: grid;
  grid-gap: 22px;
  gap: 22px;
}

.category-panel-head p,
.section-header p,
.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.category-panel-head h1 {
  color: var(--navy);
  font-size: clamp(2.2rem, 3.2vw, 3.45rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  max-width: 520px;
}

.category-panel-head h1 span {
  color: var(--orange);
}

.category-panel-head small {
  color: var(--muted);
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 360px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions button {
  align-items: center;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
}

.hero-actions button + button {
  background: white;
  color: var(--navy);
}

.category-row {
  display: grid;
  grid-gap: 24px;
  gap: 24px;
  grid-template-columns: repeat(5, minmax(116px, 1fr));
}

.category-tile {
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  color: var(--navy);
  display: grid;
  font-weight: 900;
  grid-gap: 12px;
  gap: 12px;
  justify-items: center;
  min-height: 116px;
  padding: 18px 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-tile:not(.active):hover {
  border-color: rgba(255, 90, 18, 0.4);
  box-shadow: 0 14px 32px rgba(6, 26, 67, 0.12);
  transform: translateY(-3px);
}

.category-tile > span:first-child {
  align-items: center;
  background: white;
  border: 1px solid rgba(6, 26, 67, 0.08);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(6, 26, 67, 0.08);
  color: var(--navy);
  display: inline-flex;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.category-tile.active {
  background: var(--navy);
  color: white;
}

.category-tile.active > span:first-child {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.filter-strip {
  display: none;
}

.properties-panel {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  position: relative;
}

.properties-toolbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.properties-toolbar h2 {
  align-items: center;
  color: var(--navy);
  display: inline-flex;
  font-size: 1.25rem;
  gap: 10px;
  letter-spacing: 0;
  margin: 0;
}

.properties-toolbar h2::before {
  background: var(--orange);
  border-radius: 50%;
  box-shadow:
    8px 0 0 rgba(255, 90, 18, 0.28),
    0 8px 0 rgba(255, 90, 18, 0.28);
  content: "";
  height: 8px;
  width: 8px;
}

.property-controls {
  align-items: center;
  display: flex;
  gap: 10px;
}

.view-toggle {
  display: flex;
  gap: 8px;
}

.view-toggle button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.view-toggle button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--navy);
  font-weight: 900;
  justify-content: center;
  padding: 8px 10px;
}

.link-button.compact {
  min-height: 36px;
}

.listing-grid {
  display: grid;
  grid-gap: 28px;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listing-card,
.auth-card,
.account-card,
.reservation-card,
.message-pane,
.thread-list,
.drawer,
.empty-state,
.panel-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
}

.listing-card {
  cursor: pointer;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  overflow: hidden;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.listing-card:hover {
  border-color: rgba(255, 90, 18, 0.4);
  box-shadow: 0 22px 48px rgba(6, 26, 67, 0.16);
  transform: translateY(-4px);
}

.listing-media {
  align-items: center;
  aspect-ratio: 16 / 12.1875;
  background: #eef2f7;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.listing-media img,
.drawer-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.listing-media img {
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.listing-card:hover .photo-mosaic--1 .photo-mosaic-cell img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .listing-card:hover .photo-mosaic--1 .photo-mosaic-cell img {
    transform: none;
  }
}

/* Mosaico de fotos en la tarjeta del feed (layout segun cantidad). */
.photo-mosaic {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  height: 100%;
  width: 100%;
}

.photo-mosaic--1 {
  grid-template-columns: 1fr;
}

.photo-mosaic--2 {
  grid-template-columns: 1fr 1fr;
}

.photo-mosaic--3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.photo-mosaic--3 .photo-mosaic-cell:first-child {
  grid-row: 1 / 3;
}

.photo-mosaic--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.photo-mosaic-cell {
  background: #eef2f7;
  border: none;
  cursor: pointer;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.photo-mosaic-cell img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-mosaic-more {
  align-items: center;
  background: rgba(8, 15, 30, 0.55);
  color: white;
  display: flex;
  font-size: 1.6rem;
  font-weight: 900;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.listing-category {
  align-items: center;
  background: var(--navy);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 5px;
  left: 12px;
  padding: 6px 10px;
  position: absolute;
  top: 12px;
  z-index: 1;
}

/* Aviso publico de bajo stock ("punto de quiebre") sobre la imagen. */
.stock-badge {
  background: var(--orange);
  border-radius: 999px;
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 6px 10px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
}

.stock-note {
  align-self: flex-start;
  background: var(--orange-soft);
  border-radius: 999px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
}

.inv-input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 36px;
  padding: 0 8px;
  width: 72px;
}

.inventory-table td {
  vertical-align: middle;
}

.inv-actions {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.inv-edit-row td {
  background: #f8fbff;
}

.inv-edit {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 6px 2px 12px;
}

.inv-edit label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  grid-gap: 8px;
  gap: 8px;
}

.inv-edit input,
.inv-edit textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
}

.inv-edit textarea {
  min-height: 90px;
  resize: vertical;
}

.listing-category svg {
  flex: 0 0 auto;
}

.service-card .listing-category {
  background: #0b4f6c;
}

.vehicle-card .listing-category {
  background: #172033;
}

.property-card .listing-category,
.terrain-card .listing-category {
  background: #0a3b1f;
}

.favorite-button {
  align-items: center;
  background: white;
  border: 1px solid rgba(6, 26, 67, 0.08);
  border-radius: 50%;
  bottom: 10px;
  color: var(--navy);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 10px;
  width: 42px;
  z-index: 1;
}

.listing-body {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-rows: auto auto auto auto 1fr;
  min-width: 0;
  padding: 14px;
}

.seller-row {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  gap: 10px;
  min-width: 0;
}

.card-top-seller {
  display: flex;
  grid-column: 1 / -1;
  padding: 14px;
}

.listing-body > .seller-row {
  display: none;
}

.seller-row strong {
  color: var(--navy);
  flex: 1 1 auto;
  font-size: 0.88rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-row small {
  background: #a5a8b1;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 5px;
  width: 5px;
}

.seller-store-link {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}

.seller-store-link strong {
  text-decoration: underline;
  -webkit-text-decoration-color: transparent;
          text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, -webkit-text-decoration-color 160ms ease;
  transition: color 160ms ease, text-decoration-color 160ms ease;
  transition: color 160ms ease, text-decoration-color 160ms ease, -webkit-text-decoration-color 160ms ease;
}

.seller-store-link:hover strong,
.seller-store-link:focus-visible strong {
  color: var(--accent);
  -webkit-text-decoration-color: currentColor;
          text-decoration-color: currentColor;
}

.card-top-seller.seller-store-link {
  padding: 14px;
}

.seller-location {
  align-items: center;
  display: inline-flex;
  flex: 0 1 auto;
  gap: 6px;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 96px;
}

.seller-location svg {
  flex: 0 0 auto;
}

.seller-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-avatar {
  font-size: 0.74rem;
  height: 30px;
  width: 30px;
}

.listing-title-row {
  align-items: start;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.listing-title-row h2,
.reservation-card h2 {
  color: var(--ink);
  font-size: 1.1rem;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
  min-width: 0;
}

.listing-title-row h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.verified-mark {
  color: var(--navy);
  display: inline-flex;
}

.verified-mark svg {
  fill: var(--navy);
}

.listing-price {
  color: var(--navy);
  display: block;
  font-size: 1.32rem;
  font-weight: 900;
}

.listing-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.listing-insight {
  align-items: center;
  background: var(--soft);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  gap: 5px;
  max-width: 100%;
  min-height: 24px;
  padding: 0 8px;
}

.listing-insight svg,
.listing-insight small {
  display: none;
}

.listing-insight strong {
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card .listing-insight {
  background: var(--success-soft);
  color: var(--success);
}

.listing-description {
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-footer {
  align-items: end;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  padding-top: 8px;
}

.listing-footer button {
  border: 1px solid var(--line);
  font-weight: 900;
  justify-content: center;
  min-width: 0;
  padding: 0 12px;
  white-space: nowrap;
}

.chat-card-button {
  background: white;
  color: var(--navy);
}

.reserve-card-button {
  background: var(--orange);
  border-color: var(--orange) !important;
  color: white;
}

.form-page {
  max-width: 760px;
}

.section-header {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-header.compact {
  align-items: start;
}

.section-header h1,
.account-card h1,
.auth-card h1,
.thread-list h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.panel-form {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 18px;
}

.panel-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  grid-gap: 8px;
  gap: 8px;
}

.panel-form input,
.panel-form textarea,
.panel-form select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 11px 12px;
}

.panel-form textarea {
  min-height: 120px;
  resize: vertical;
}

.dynamic-fields {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 14px;
}

.dynamic-fields header {
  align-items: center;
  color: var(--navy);
  display: flex;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.file-drop {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
}

.primary-button,
.danger-button,
.reservation-card button,
.drawer-actions button {
  border: 0;
  justify-content: center;
  min-height: 44px;
  padding: 12px 14px;
}

.primary-button {
  background: var(--navy);
  color: white;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.danger-button {
  background: #fee4e2;
  color: #9b1c14;
}

.auth-wrap {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
}

.auth-card,
.account-card {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  max-width: 520px;
  padding: 24px;
  width: 100%;
}

.account-profile {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  margin: 0 auto;
  max-width: 760px;
  width: 100%;
}

.account-profile .account-card {
  max-width: none;
}

.profile-premium-menu {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  padding: 24px;
}

.profile-premium-menu.premium {
  background: linear-gradient(135deg, #fffaf1 0%, #ffffff 58%, #f1f6ff 100%);
  border-color: #f4c56b;
}

.profile-premium-menu h2 {
  color: var(--navy);
  font-size: 1.55rem;
  margin: 10px 0 6px;
}

.profile-premium-menu p {
  color: var(--muted);
  margin: 0;
}

.profile-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-error {
  color: #b42318;
  margin: 0;
}

.chat-layout {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 180px);
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.thread-list h1 {
  font-size: 2.2rem;
}

.thread {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.thread.active {
  border-color: var(--navy);
}

.thread span,
.bubble span,
.account-card p,
.empty-state p,
.reservation-card p {
  color: var(--muted);
}

.message-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 540px;
  overflow: hidden;
}

.message-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  padding: 14px;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 16px;
}

.bubble {
  align-self: start;
  background: #eef3fb;
  border-radius: 8px;
  max-width: min(520px, 80%);
  padding: 10px 12px;
}

.bubble.mine {
  align-self: end;
  background: #d9f8e9;
}

.bubble p {
  margin: 0 0 4px;
}

.message-form {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 1fr 44px;
  padding: 12px;
}

.message-form input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 0 12px;
}

.message-form button,
.icon-button {
  background: var(--navy);
  border: 0;
  color: white;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.reservation-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.reservation-card {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.reservation-card button {
  background: var(--success-soft);
  color: var(--success);
}

.reservation-actions {
  align-items: end;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  justify-items: end;
  min-width: min(420px, 100%);
}

.review-form {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: 132px minmax(160px, 1fr) auto;
  width: min(520px, 100%);
}

.review-form input,
.review-form select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 10px;
}

.review-form button {
  background: var(--navy);
  color: white;
  min-height: 42px;
  white-space: nowrap;
}

.check-pill {
  align-items: center;
  color: var(--success);
  display: inline-flex;
  gap: 6px;
}

.drawer-backdrop {
  background: rgba(6, 26, 67, 0.34);
  inset: 0;
  position: fixed;
  z-index: 10;
}

.drawer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  margin-left: auto;
  max-width: 460px;
  overflow: auto;
  padding: 18px;
  width: 100%;
}

.drawer-media {
  align-items: center;
  aspect-ratio: 1;
  background: #e9eef8;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.drawer h1 {
  color: var(--navy);
  font-size: 2.1rem;
  line-height: 1;
  margin: 0;
}

.drawer-price {
  color: var(--violet);
  font-size: 1.6rem;
}

.drawer-location {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
}

.detail-attributes {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-attributes span {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.detail-attributes small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-attributes strong {
  overflow-wrap: anywhere;
}

.drawer-actions {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
}

.drawer-actions button:first-child {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
}

.empty-state {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  justify-items: center;
  padding: 54px 18px;
  text-align: center;
}

.empty-state h2 {
  color: var(--navy);
  margin: 0;
}

.seller-dashboard {
  display: grid;
  grid-gap: 22px;
  gap: 22px;
}

.seller-metrics {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.seller-panel,
.seller-empty-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.metric-card {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-height: 104px;
  padding: 18px;
  align-content: start;
}

.metric-card-top {
  align-items: center;
  display: flex;
  gap: 8px;
}

.metric-card-top small {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.86rem;
}

.metric-card-period {
  background: var(--soft);
  border-radius: var(--radius-pill);
  color: var(--navy);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  text-transform: uppercase;
}

.metric-card-icon {
  align-items: center;
  background: var(--soft);
  border-radius: 10px;
  color: var(--navy);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin-left: auto;
  width: 34px;
}

.metric-card strong {
  color: var(--navy);
  display: block;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-card-trend {
  align-items: center;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 4px;
}

.metric-card-trend.up {
  color: var(--success);
}

.metric-card-trend.down {
  color: #c0392b;
}

.seller-grid {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seller-panel {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.seller-panel > header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.seller-panel h2 {
  color: var(--navy);
  font-size: 1.15rem;
  margin: 0;
}

.seller-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.seller-row-card,
.review-card {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.seller-row-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.seller-row-card strong,
.review-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-row-card span,
.review-card p,
.seller-empty-panel p {
  color: var(--muted);
  margin: 0;
}

.rating-pill,
.stars {
  align-items: center;
  color: var(--orange);
  display: inline-flex;
  gap: 4px;
  font-weight: 900;
}

.seller-empty-panel {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  justify-items: start;
  max-width: 620px;
  padding: 24px;
}

.seller-empty-panel h2 {
  color: var(--navy);
  margin: 0;
}

.seller-header-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

/* ---- Dashboard premium ---- */
.dash-hero {
  align-items: center;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #123a86 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  overflow: hidden;
  padding: 26px 28px;
  position: relative;
}

.dash-hero::after {
  background: radial-gradient(circle at center, rgba(255, 90, 18, 0.45), transparent 70%);
  border-radius: 50%;
  content: "";
  height: 280px;
  position: absolute;
  right: -90px;
  top: -120px;
  width: 280px;
}

.dash-hero-text {
  position: relative;
  z-index: 1;
}

.dash-hero-eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.dash-hero h1 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.dash-hero h1 span {
  color: var(--orange);
}

.dash-hero-sub {
  color: rgba(255, 255, 255, 0.82);
  margin: 8px 0 0;
  max-width: 46ch;
}

.dash-hero .seller-header-actions {
  position: relative;
  z-index: 1;
}

.dash-hero .plan-pill {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.dash-charts {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.dash-chart-card {
  min-height: 240px;
}

.dash-chart-headline {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.dash-chart-headline strong {
  color: var(--navy);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Bar chart */
.dash-bars {
  align-items: end;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 130px;
  margin-top: auto;
}

.dash-bar-col {
  align-items: center;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-rows: 1fr auto;
  height: 100%;
}

.dash-bar-track {
  align-items: end;
  display: flex;
  height: 100%;
  width: 100%;
}

.dash-bar-fill {
  background: var(--soft);
  border-radius: 8px 8px 4px 4px;
  width: 100%;
  transition: height 240ms ease;
}

.dash-bar-fill.peak {
  background: linear-gradient(180deg, var(--orange), #ff7d44);
}

.dash-bar-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

/* Ranking de mas vendidos */
.dash-rank {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.dash-rank-row {
  align-items: center;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 90px auto;
}

.dash-rank-name {
  color: var(--navy);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-rank-track {
  background: var(--soft);
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
}

.dash-rank-fill {
  background: linear-gradient(90deg, var(--orange), #ff7d44);
  border-radius: var(--radius-pill);
  height: 100%;
}

.dash-rank-row b {
  color: var(--navy);
}

/* Donut */
.dash-donut {
  align-items: center;
  display: flex;
  gap: 16px;
}

.dash-donut-svg {
  flex: 0 0 auto;
  height: 128px;
  width: 128px;
  transform: rotate(-90deg);
}

.dash-donut-bg {
  fill: transparent;
  stroke: var(--soft);
  stroke-width: 6;
}

.dash-donut-total {
  fill: var(--navy);
  font-size: 7px;
  font-weight: 900;
  text-anchor: middle;
  transform: rotate(90deg);
  transform-origin: center;
}

.dash-donut-cap {
  fill: var(--muted);
  font-size: 3.2px;
  font-weight: 800;
  text-anchor: middle;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: center;
}

.dash-legend {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.dash-legend li {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-weight: 700;
  gap: 8px;
}

.dash-legend b {
  color: var(--muted);
  margin-left: auto;
}

.dash-legend-dot {
  border-radius: 3px;
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
}

/* Tabla de pedidos */
.dash-orders {
  padding-bottom: 8px;
}

.dash-table-wrap {
  overflow-x: auto;
}

.dash-table {
  border-collapse: collapse;
  width: 100%;
}

.dash-table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0 14px 12px;
  text-align: left;
  text-transform: uppercase;
}

.dash-table td {
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  padding: 14px;
  white-space: nowrap;
}

.dash-table tbody tr:hover {
  background: #f8fbff;
}

.dash-cell-id {
  color: var(--muted);
  font-weight: 800;
}

.dash-cell-amount {
  font-feature-settings: "tnum" 1;
  font-weight: 900;
}

.dash-cell-date {
  color: var(--muted);
}

.order-status {
  border-radius: var(--radius-pill);
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 5px 11px;
}

.order-status.ok {
  background: var(--success-soft);
  color: var(--success);
}

.order-status.warn {
  background: rgba(246, 161, 73, 0.16);
  color: #a85b06;
}

.order-status.info {
  background: #e6ecfb;
  color: var(--violet);
}

.order-status.muted {
  background: var(--soft);
  color: var(--muted);
}

/* Enganche a premium (panel free) */
.seller-enganche {
  align-items: center;
  background: linear-gradient(120deg, #fff 0%, #fff 55%, rgba(255, 90, 18, 0.08) 100%);
  border: 1px solid rgba(255, 90, 18, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 24px 26px;
}

.seller-enganche-text {
  min-width: 0;
}

.seller-enganche-tag {
  align-items: center;
  background: rgba(255, 90, 18, 0.14);
  border-radius: var(--radius-pill);
  color: var(--orange);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 5px;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  text-transform: uppercase;
}

.seller-enganche h2 {
  color: var(--navy);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 10px 0 6px;
}

.seller-enganche p {
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

.seller-enganche .primary-button {
  flex: 0 0 auto;
}

.plan-pill,
.section-meta {
  align-items: center;
  background: #edf5ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 6px;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.plan-pill.premium {
  background: rgba(246, 161, 73, 0.14);
  border-color: rgba(246, 161, 73, 0.28);
  color: #a85b06;
}

.seller-upgrade-panel {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.seller-empty-panel.compact {
  max-width: none;
}

.storefront-header h1,
.storefront-section h2 {
  color: var(--navy);
}

.seller-avatar.large {
  height: 52px;
  width: 52px;
}

.storefront-item span,
.storefront-item b,
.storefront-header p,
.seller-row-meta span {
  color: var(--muted);
}

.seller-row-meta {
  align-items: end;
  display: grid;
  justify-items: end;
}

.catalog-row {
  align-items: center;
}

.storefront-drawer {
  max-width: 760px;
}

.storefront-header {
  align-items: center;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
}

.storefront-header h1 {
  font-size: 2rem;
  margin: 6px 0 4px;
}

.storefront-header p {
  margin: 0;
}

.storefront-metrics {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storefront-section {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.storefront-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.storefront-item {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding: 10px;
  text-align: left;
}

.storefront-item-media {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  width: 72px;
}

.storefront-item-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.storefront-item:hover {
  border-color: rgba(6, 26, 67, 0.22);
  box-shadow: 0 12px 28px rgba(6, 26, 67, 0.08);
}

@media (max-width: 1320px) {
  .topbar {
    padding-inline: 28px;
  }

  .brand img {
    width: 178px;
  }

  .signin-pill {
    max-width: 150px;
    overflow: hidden;
  }

  .storefront-metrics {
    grid-template-columns: 1fr;
  }

  .category-panel {
    grid-template-columns: 1fr;
  }

  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .topbar {
    display: contents;
  }

  .topbar > .brand,
  .topbar > .top-search,
  .topbar > .location-pill,
  .topbar > .topbar-actions {
    display: none;
  }

  .mobile-topbar {
    align-items: center;
    /* Sin backdrop-filter a proposito: un filtro en el ancestro haria que el
       bottom-sheet del menu (position: fixed) se contenga dentro del header en
       vez del viewport, quedando cortado arriba. Fondo solido en su lugar. */
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 68px;
    padding: 10px 16px calc(10px + env(safe-area-inset-top));
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    transition: box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
    z-index: 8;
  }

  .mobile-topbar.scrolled {
    border-bottom-color: transparent;
    box-shadow: 0 8px 24px rgba(6, 26, 67, 0.1);
  }

  .mobile-topbar .mobile-brand img {
    width: 150px;
  }

  .app-shell {
    padding-bottom: 86px;
  }

  .workspace {
    padding: 24px 24px 36px;
  }

  .mobile-market-head {
    display: grid;
    grid-gap: 18px;
    gap: 18px;
  }

  .mobile-head-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .mobile-brand img {
    width: 174px;
  }

  .mobile-head-actions {
    align-items: center;
    display: flex;
    gap: 12px;
  }

  .mobile-search {
    background: white;
    border: 0;
    border-radius: 999px;
    box-shadow: var(--soft-shadow);
    min-height: 72px;
    overflow: hidden;
    padding-left: 20px;
  }

  .mobile-search button {
    align-items: center;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 58px;
    justify-content: center;
    margin-right: 7px;
    padding: 0;
    width: 58px;
  }

  .category-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    gap: 18px;
    padding: 0;
  }

  .category-panel-head {
    display: none;
  }

  .filter-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 2px 4px;
  }

  .filter-strip button {
    background: white;
    border: 1px solid var(--line);
    color: var(--navy);
    flex: 0 0 auto;
    font-weight: 900;
    padding: 0 14px;
  }

  .properties-toolbar {
    display: none;
  }

  .listing-grid {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-card {
    border-radius: 18px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
  }

  .listing-media {
    aspect-ratio: 16 / 12.1875;
    height: auto;
    min-height: 0;
  }

  .favorite-button {
    bottom: auto;
    box-shadow: 0 10px 24px rgba(6, 26, 67, 0.12);
    height: 48px;
    right: 16px;
    top: 16px;
    width: 48px;
  }

  .listing-category {
    font-size: 0.86rem;
    left: 16px;
    padding: 8px 13px;
    top: 16px;
  }

  .listing-body {
    gap: 12px;
    grid-template-rows: auto auto auto auto auto;
    padding: 16px;
  }

  .listing-body > .seller-row {
    display: none;
  }

  .listing-title-row h2 {
    font-size: 1.28rem;
    line-height: 1.12;
  }

  .listing-price {
    font-size: 1.55rem;
    line-height: 1;
  }

  .listing-description {
    display: -webkit-box;
  }

  .listing-footer {
    border-top: 1px solid var(--line);
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    padding-top: 14px;
  }

  .listing-footer button {
    min-height: 50px;
  }

  .nav-list {
    align-items: end;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -12px 32px rgba(6, 26, 67, 0.08);
    display: grid;
    grid-gap: 4px;
    gap: 4px;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    /* Debajo de .mobile-topbar (z-8) para que el bottom-sheet del menu de cuenta,
       atrapado en el stacking context del header, se pinte por encima de esta barra. */
    z-index: 7;
  }

  .nav-button {
    background: transparent;
    border: 0;
    color: var(--navy);
    display: grid;
    font-size: 0.78rem;
    font-weight: 900;
    grid-gap: 4px;
    gap: 4px;
    justify-items: center;
    min-height: 58px;
    padding: 4px;
  }

  .nav-button svg {
    height: 26px;
    width: 26px;
  }

  .nav-button.active {
    color: var(--navy);
  }

  .nav-button.active svg {
    background: var(--navy);
    border-radius: 50%;
    color: white;
    height: 54px;
    margin-top: -28px;
    padding: 13px;
    width: 54px;
  }

  /* Central raised action button (Publicar) */
  .nav-button-fab {
    color: var(--orange);
  }

  .nav-button-fab svg {
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(247, 127, 0, 0.4);
    color: white;
    height: 60px;
    margin-top: -34px;
    padding: 15px;
    width: 60px;
  }

  .nav-button-fab.active {
    color: var(--orange);
  }

  .nav-button-fab.active svg {
    background: var(--orange);
    height: 60px;
    margin-top: -34px;
    padding: 15px;
    width: 60px;
  }

  .chat-layout,
  .form-grid,
  .seller-grid {
    grid-template-columns: 1fr;
  }

  .seller-metrics,
  .dash-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-item {
    grid-template-columns: 1fr;
  }

  .review-form {
    grid-template-columns: 1fr;
  }

  .message-pane {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .workspace {
    padding: 24px 16px 30px;
  }

  .seller-metrics,
  .dash-charts {
    grid-template-columns: 1fr;
  }

  .dash-hero {
    padding: 22px 20px;
  }

  .dash-hero h1 {
    font-size: 1.55rem;
  }

  .mobile-brand img {
    width: 142px;
  }

  .mobile-search {
    min-height: 64px;
  }

  .mobile-search button {
    height: 52px;
    margin-right: 6px;
    width: 52px;
  }

  .listing-grid {
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-card {
    border-radius: 18px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    overflow: hidden;
  }

  .card-top-seller {
    padding: 16px 18px;
  }

  .listing-media {
    aspect-ratio: 1 / 1.2;
    height: auto;
    min-height: 0;
  }

  .favorite-button {
    bottom: auto;
    box-shadow: 0 10px 24px rgba(6, 26, 67, 0.12);
    height: 56px;
    right: 18px;
    top: 18px;
    width: 56px;
  }

  .listing-category {
    font-size: 0.92rem;
    left: 18px;
    padding: 8px 14px;
    top: 18px;
  }

  .listing-body {
    gap: 14px;
    padding: 20px 20px 22px;
  }

  .listing-body > .seller-row {
    display: none;
  }

  .card-top-seller {
    font-size: 0.98rem;
    gap: 10px;
  }

  .card-top-seller strong {
    font-size: 1rem;
  }

  .seller-avatar {
    height: 36px;
    width: 36px;
  }

  .listing-title-row h2 {
    font-size: 1.72rem;
    line-height: 1.08;
    -webkit-line-clamp: 2;
  }

  .verified-mark {
    display: none;
  }

  .listing-price {
    font-size: 2.35rem;
    line-height: 1;
  }

  .listing-description {
    display: -webkit-box;
    font-size: 1.08rem;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .listing-footer {
    border-top: 1px solid var(--line);
    gap: 12px;
    padding-top: 16px;
  }

  .listing-footer button {
    border-radius: 8px;
    font-size: 1rem;
    min-height: 56px;
    padding: 0 12px;
  }

  .listing-footer button svg {
    display: inline;
  }

  .reservation-card,
  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .reservation-actions {
    justify-items: stretch;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .workspace {
    padding-inline: 12px;
  }

  .listing-card {
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-media {
    min-height: 0;
  }

  .listing-body {
    padding: 18px;
  }

  .listing-insights {
    gap: 6px;
  }

  .listing-title-row h2 {
    font-size: 1.5rem;
  }

  .listing-price {
    font-size: 2rem;
  }

  .listing-description {
    font-size: 1rem;
  }

  .listing-footer button {
    min-height: 52px;
  }
}

/* Menu contextual del navbar */
.topbar-menu {
  position: relative;
}

.topbar-menu-trigger {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  min-height: 56px;
  padding: 4px 14px 4px 6px;
  position: relative;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.topbar-menu-trigger:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 16px rgba(6, 26, 67, 0.12);
}

.topbar-menu-trigger > svg {
  color: var(--muted);
}

.topbar-menu-icon {
  align-items: center;
  background: #e9eef8;
  border-radius: 50%;
  color: var(--violet);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.topbar-menu-dot {
  align-items: center;
  background: var(--orange);
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 4px;
  position: absolute;
  right: 6px;
  top: 0;
}

.user-menu-backdrop {
  display: none;
}

.user-menu-pop {
  animation: user-menu-in 0.16s ease-out;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(6, 26, 67, 0.18);
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 264px;
  z-index: 30;
}

@keyframes user-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* On mobile the account menu becomes a full-width bottom sheet. */
@media (max-width: 1020px) {
  .user-menu-pop {
    animation: user-menu-sheet-in 0.2s ease-out;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    bottom: 0;
    box-shadow: 0 -18px 44px rgba(6, 26, 67, 0.22);
    gap: 8px;
    left: 0;
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    top: auto;
    width: auto;
    z-index: 40;
  }

  .user-menu-backdrop {
    animation: user-menu-fade-in 0.2s ease-out;
    background: rgba(6, 26, 67, 0.4);
    border: 0;
    bottom: 0;
    cursor: pointer;
    display: block;
    left: 0;
    padding: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 39;
  }

  .user-menu-item {
    min-height: 52px;
  }

  /* Apartados vive en la barra inferior en movil; no duplicarlo en el menu. */
  .user-menu-item.desktop-only {
    display: none;
  }
}

@keyframes user-menu-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes user-menu-sheet-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  padding: 8px 8px 14px;
}

.user-menu-head .user-avatar {
  height: 44px;
  width: 44px;
}

.user-menu-head div {
  display: grid;
  min-width: 0;
}

.user-menu-head strong {
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-head small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-list {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.user-menu-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--navy);
  display: flex;
  font-weight: 700;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
  text-decoration: none;
  transition: background 130ms ease, color 130ms ease;
  width: 100%;
}

.user-menu-item:hover {
  background: #f3f7ff;
}

.user-menu-item svg {
  color: var(--muted);
}

.user-menu-item.danger {
  color: #c0322b;
  margin-top: 4px;
}

.user-menu-item.danger:hover {
  background: #fdeceb;
}

.user-menu-item.danger svg {
  color: #c0322b;
}

.user-menu-auth {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 4px 4px 12px;
}

.user-menu-auth button {
  justify-content: center;
  width: 100%;
}

.user-menu-trailing {
  color: var(--muted);
  margin-left: auto;
}

.user-menu-badge {
  align-items: center;
  background: var(--orange);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  margin-left: auto;
  min-width: 20px;
  padding: 0 6px;
}

.user-menu-item.publish {
  background: var(--navy);
  color: white;
  font-weight: 900;
  justify-content: center;
  margin-top: 6px;
}

.user-menu-item.publish:hover {
  background: var(--navy-2);
}

.user-menu-item.publish svg {
  color: white;
}

/* Auth modal (baja desde arriba) */
.auth-modal-backdrop {
  background: rgba(6, 26, 67, 0.34);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 0 16px;
  position: fixed;
  z-index: 60;
}

.auth-modal-sheet {
  align-self: flex-start;
  animation: auth-slide-down 0.22s ease-out;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
  border-top: 0;
  box-shadow: 0 20px 50px rgba(6, 26, 67, 0.22);
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  max-width: 460px;
  padding: 24px;
  width: 100%;
}

@keyframes auth-slide-down {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-modal-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.auth-modal-head h1 {
  color: var(--navy);
  font-size: 1.8rem;
  margin: 0;
}

/* Detalle de producto (pagina completa, responsive) */
.article-detail {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
}

.article-back {
  align-items: center;
  align-self: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
}

.article-detail-grid {
  align-items: start;
  display: grid;
  grid-gap: 28px;
  gap: 28px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.article-gallery {
  position: -webkit-sticky;
  position: sticky;
  top: 24px;
}

.article-gallery-empty {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #e9eef8;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}

/* Carrusel reutilizable (detalle + lightbox). */
.image-carousel {
  height: 100%;
  width: 100%;
}

.image-carousel-main {
  height: 100%;
  position: relative;
  width: 100%;
}

.image-carousel-img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-carousel--clickable .image-carousel-img {
  cursor: zoom-in;
}

.image-carousel-arrow {
  align-items: center;
  background: rgba(8, 15, 30, 0.55);
  border: none;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 160ms ease;
  width: 38px;
  z-index: 2;
}

.image-carousel-arrow:hover {
  background: rgba(8, 15, 30, 0.8);
}

.image-carousel-arrow--prev {
  left: 10px;
}

.image-carousel-arrow--next {
  right: 10px;
}

.image-carousel-dots {
  bottom: 12px;
  display: flex;
  gap: 7px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.image-carousel-dot {
  background: rgba(255, 255, 255, 0.55);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  height: 8px;
  padding: 0;
  transition: background 160ms ease, width 160ms ease;
  width: 8px;
}

.image-carousel-dot.active {
  background: white;
  width: 20px;
}

/* Visor a pantalla completa (lightbox). */
.image-lightbox {
  align-items: center;
  background: rgba(6, 10, 20, 0.92);
  display: flex;
  inset: 0;
  justify-content: center;
  overscroll-behavior: contain;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  position: fixed;
  z-index: 70;
}

.image-lightbox-stage {
  height: min(90vh, 900px);
  max-width: 1100px;
  width: 92vw;
}

/* La imagen se ajusta a su tamaño real y queda centrada; el negro alrededor
   pertenece al contenedor (no a la imagen), por lo que tocarlo cierra el visor.
   overflow: hidden recorta la imagen ampliada al viewport. */
.image-carousel--lightbox {
  overflow: hidden;
}

.image-carousel--lightbox .image-carousel-main {
  align-items: center;
  display: flex;
  justify-content: center;
}

.image-carousel--lightbox .image-carousel-img {
  height: auto;
  max-height: 100%;
  max-width: 100%;
  width: auto;
}

/* Miniaturas debajo de la imagen principal (detalle). */
.image-carousel--with-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: auto;
}

.image-carousel--with-thumbs .image-carousel-main {
  aspect-ratio: 4 / 3;
  background: #e9eef8;
  border: 1px solid var(--line);
  border-radius: 14px;
  height: auto;
  overflow: hidden;
}

.image-carousel-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.image-carousel-thumb {
  background: #e9eef8;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 68px;
  overflow: hidden;
  padding: 0;
  transition: border-color 160ms ease, opacity 160ms ease;
  width: 68px;
}

.image-carousel-thumb:not(.active) {
  opacity: 0.65;
}

.image-carousel-thumb:hover {
  opacity: 1;
}

.image-carousel-thumb.active {
  border-color: var(--orange);
  opacity: 1;
}

.image-carousel-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Zoom: clic sobre la imagen para ampliar hacia ese punto (funciona igual en
   desktop y movil, sin scroll). Otro clic vuelve al tamaño normal. */
.image-carousel--zoomable .image-carousel-img {
  cursor: zoom-in;
  transition: transform 220ms ease;
}

.image-carousel--zoomed .image-carousel-img {
  cursor: zoom-out;
  transform: scale(2.4);
}

.image-lightbox-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  z-index: 3;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.article-info {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  min-width: 0;
}

.article-info h1 {
  color: var(--navy);
  font-size: 2.3rem;
  line-height: 1.05;
  margin: 0;
}

.article-price {
  color: var(--navy);
  font-size: 1.9rem;
}

.article-location {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
}

.article-section {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.article-section h2 {
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0;
}

.article-section p {
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}

.article-actions {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.article-actions button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
}

.article-actions button:first-child {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
}

@media (max-width: 860px) {
  .article-detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-gallery {
    position: static;
  }

  .article-gallery-empty,
  .article-detail-grid .image-carousel--with-thumbs .image-carousel-main {
    aspect-ratio: 16 / 10;
  }

  .article-info h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 430px) {
  .article-actions {
    grid-template-columns: 1fr;
  }
}

/* En movil el modal de cuenta (login/registro) sube desde abajo como bottom-sheet,
   al alcance del pulgar — igual que el menu de cuenta. */
@media (max-width: 1020px) {
  .auth-modal-backdrop {
    padding: 0;
  }

  .auth-modal-sheet {
    align-self: flex-end;
    animation: auth-slide-up 0.24s ease-out;
    border: 0;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    max-width: none;
    overflow-y: auto;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  }
}

@keyframes auth-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Hallmark refinements — hero · accents · cards · detail
   Plus Jakarta Sans kept; navy + orange brand, used intentionally
   ============================================================ */

:root {
  --orange-2: #e44d0c;
  --orange-soft: rgba(255, 90, 18, 0.1);
  --orange-line: rgba(255, 90, 18, 0.42);
}

/* --- Hero --- */
.category-panel {
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(255, 90, 18, 0.09) 0%, rgba(255, 90, 18, 0) 44%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 54%, #f1f6ff 100%);
  position: relative;
}

/* Eyebrow ("MARKETPLACE LOCAL") gets an orange marker line */
.category-panel-head p {
  align-items: center;
  color: var(--orange);
  display: inline-flex;
  gap: 12px;
}

.category-panel-head p::before {
  background: var(--orange);
  border-radius: 999px;
  content: "";
  height: 3px;
  width: 28px;
}

.hero-actions button {
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.hero-actions button:first-child:hover {
  background: var(--navy-2);
  box-shadow: 0 12px 28px rgba(6, 26, 67, 0.22);
  transform: translateY(-1px);
}

.hero-actions button + button:hover {
  border-color: var(--navy);
}

/* Category tiles — soft per-category gradient + colored icon (no longer plain white) */
.category-tile:not(.active)[data-cat="all"] {
  background: linear-gradient(165deg, #e9eefb 0%, #ffffff 72%);
}
.category-tile:not(.active)[data-cat="product"] {
  background: linear-gradient(165deg, #e8f1ff 0%, #ffffff 72%);
}
.category-tile:not(.active)[data-cat="service"] {
  background: linear-gradient(165deg, #e2f2f7 0%, #ffffff 72%);
}
.category-tile:not(.active)[data-cat="vehicle"] {
  background: linear-gradient(165deg, #ebedf6 0%, #ffffff 72%);
}
.category-tile:not(.active)[data-cat="property"] {
  background: linear-gradient(165deg, #e5f5eb 0%, #ffffff 72%);
}

.category-tile:not(.active)[data-cat="all"] > span:first-child {
  color: var(--navy);
}
.category-tile:not(.active)[data-cat="product"] > span:first-child {
  color: #1f5fae;
}
.category-tile:not(.active)[data-cat="service"] > span:first-child {
  color: #0b6f8f;
}
.category-tile:not(.active)[data-cat="vehicle"] > span:first-child {
  color: #3b4660;
}
.category-tile:not(.active)[data-cat="property"] > span:first-child {
  color: #1a7a44;
}

/* Active category tile pops more */
.category-tile.active {
  background: linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 100%);
  box-shadow: 0 16px 34px rgba(6, 26, 67, 0.26);
}

/* Mobile category nav — clean icon-chip scroller.
   Placed after the desktop polish rules above so it wins the cascade
   (same/greater specificity + later source order). */
@media (max-width: 1020px) {
  /* El gradiente del panel se define mas abajo en el fuente (regla
     .category-panel sin media query), por eso gana a la transparencia del
     bloque movil anterior. Lo anulamos aqui, despues de esa regla. */
  .category-panel {
    background: none;
    border: 0;
  }

  .category-row {
    display: flex;
    gap: 0;
    padding: 4px 0 10px;
    width: 100%;
  }

  .category-panel .category-row .category-tile,
  .category-panel .category-row .category-tile:not(.active),
  .category-panel .category-row .category-tile.active {
    align-content: start;
    background: transparent;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
    flex: 1 1;
    gap: 8px;
    min-height: 0;
    min-width: 0;
    padding: 6px 4px;
    transform: none;
  }

  .category-panel .category-row .category-tile > span:first-child {
    background: transparent;
    border: none;
    box-shadow: none;
    height: 60px;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
    width: 60px;
  }

  .category-panel .category-row .category-tile > span:last-child {
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-panel .category-row .category-tile.active > span:first-child {
    background: linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 100%);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(6, 26, 67, 0.3);
    color: white;
    transform: translateY(-2px);
  }

  .category-panel .category-row .category-tile.active > span:last-child {
    color: var(--navy);
    font-weight: 900;
  }
}

/* --- Cards --- */
.listing-category {
  box-shadow: 0 6px 16px rgba(6, 26, 67, 0.22);
}

.favorite-button {
  transition: transform 140ms ease, color 140ms ease, border-color 140ms ease;
}

.favorite-button:hover {
  border-color: var(--orange-line);
  color: var(--orange);
  transform: scale(1.08);
}

.favorite-button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.favorite-action.active {
  border-color: var(--orange-line);
  color: var(--orange);
}

.chat-card-button:hover {
  border-color: var(--navy);
}

@keyframes heart-pop {
  0%   { transform: scale(1); }
  20%  { transform: scale(0.75); }
  50%  { transform: scale(1.35); }
  75%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes heart-burst {
  0%   { box-shadow: 0 0 0 0 var(--orange); opacity: 0.7; }
  100% { box-shadow: 0 0 0 14px transparent; opacity: 0; }
}

.heart-icon-wrap {
  display: inline-flex;
  position: relative;
}

.heart-icon-wrap--active::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: heart-burst 0.45s ease-out forwards;
  pointer-events: none;
}

.heart-icon-wrap--active svg {
  animation: heart-pop 0.45s cubic-bezier(0.17, 0.89, 0.32, 1.49) forwards;
}

.reserve-card-button:hover {
  background: var(--orange-2);
  border-color: var(--orange-2) !important;
}

/* --- Detail --- */
.article-detail {
  gap: 22px;
}

.article-info .eyebrow {
  align-items: center;
  color: var(--orange);
  display: inline-flex;
  gap: 8px;
}

.article-price {
  font-size: 2.2rem;
}

.detail-attributes span {
  border-radius: var(--radius-sm);
  transition: background 140ms ease, border-color 140ms ease;
}

.detail-attributes span:hover {
  background: var(--orange-soft);
  border-color: var(--orange-line);
}

/* "Apartar" is the primary conversion action → orange, matching the cards */
.article-actions .primary-button {
  background: var(--orange);
}

.article-actions .primary-button:hover:not(:disabled) {
  background: var(--orange-2);
}

.article-actions button:first-child:hover {
  border-color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  .category-tile:not(.active):hover,
  .favorite-button:hover,
  .hero-actions button:first-child:hover {
    transform: none;
  }
}

/* ============================================================
   Perfil público unificado (free básico / premium catálogo)
   ============================================================ */

.profile-page {
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
}


.profile-view {
  display: grid;
  grid-gap: 22px;
  gap: 22px;
}

.profile-hero {
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  display: flex;
  gap: 22px;
  padding: 18px;
}

.profile-hero-photo {
  align-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 200px;
}

.profile-hero-initial {
  color: rgba(255, 255, 255, 0.92);
  font-size: 4.4rem;
  font-weight: 900;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.profile-photo-edit {
  align-items: center;
  background: rgba(15, 23, 42, 0.62);
  border: none;
  border-radius: 999px;
  bottom: 12px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
  left: 50%;
  padding: 8px 14px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.cover-picker {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  bottom: 52px;
  box-shadow: 0 18px 40px rgba(6, 26, 67, 0.22);
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  left: 50%;
  padding: 12px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 5;
}

.cover-swatch {
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  height: 34px;
  width: 34px;
}

.cover-swatch.active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px white inset;
}

.profile-hero-img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cover-upload {
  align-items: center;
  background: var(--navy);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: center;
  padding: 12px;
  white-space: nowrap;
}

.profile-hero-info {
  align-self: center;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
}

.profile-hero-info h1 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.018em;
  line-height: 1.05;
  margin: 0;
}

.profile-hero-handle {
  color: var(--muted);
  font-weight: 800;
}

.profile-bio {
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}

.profile-bio.muted {
  color: var(--muted);
  font-style: italic;
}

.profile-stats {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}

.profile-stats strong {
  color: var(--navy);
  font-size: 1.05rem;
  margin-right: 4px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.profile-follow,
.profile-message {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 7px;
  padding: 10px 20px;
  text-decoration: none;
}

.profile-follow {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: white;
}

.profile-follow.following {
  background: transparent;
  color: var(--navy);
}

.profile-message {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.profile-message:hover {
  border-color: rgba(255, 90, 18, 0.4);
}

.profile-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-filter {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 16px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.profile-filter:hover {
  border-color: rgba(255, 90, 18, 0.4);
}

.profile-filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.profile-filter.add {
  align-items: center;
  border-style: dashed;
  color: var(--navy);
  display: inline-flex;
  gap: 6px;
}

.profile-section {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.profile-section-head {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.profile-section-head h2 {
  color: var(--navy);
  font-size: 1.3rem;
  margin: 0;
}

.profile-section-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.profile-grid {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-card:hover {
  border-color: rgba(255, 90, 18, 0.4);
  box-shadow: 0 22px 48px rgba(6, 26, 67, 0.16);
  transform: translateY(-4px);
}

.profile-card-media {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #eef2f7;
  color: var(--navy);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.profile-card-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.profile-card-media .listing-category {
  left: 10px;
  position: absolute;
  top: 10px;
}

.profile-card:hover .profile-card-media img {
  transform: scale(1.05);
}

.profile-card-body {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px 14px;
}

.profile-card-body strong {
  color: var(--ink);
  display: -webkit-box;
  font-size: 0.96rem;
  line-height: 1.2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-card-price {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
}

.profile-cap-hint {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 14px 0 0;
  text-align: center;
}

.profile-empty {
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  justify-items: center;
  padding: 40px 20px;
}

.account-edit {
  gap: 12px;
}

.account-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-hero {
    flex-direction: column;
    text-align: center;
  }

  .profile-hero-photo {
    aspect-ratio: 16 / 10;
    width: 100%;
  }

  .profile-hero-info {
    justify-items: center;
  }

  .profile-stats,
  .profile-actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card:hover {
    transform: none;
  }

  .profile-card:hover .profile-card-media img {
    transform: none;
  }
}

/* ============================================================
   Feed infinito — centinela, estado de carga y skeletons
   ============================================================ */

.feed-sentinel {
  height: 1px;
  width: 100%;
}

.feed-status {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  padding: 26px 0 8px;
  text-align: center;
}

.feed-status.muted {
  color: var(--muted);
  font-weight: 700;
}

.feed-spinner {
  animation: feed-spin 0.9s linear infinite;
  color: var(--orange);
}

@keyframes feed-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Stale-while-revalidate: al cambiar de filtro mantenemos los resultados previos
   atenuados (sin vaciar el grid) y mostramos un spinner encima mientras llega la
   pagina nueva. Evita el parpadeo a blanco/skeletons y se siente instantaneo. */
.listing-grid.is-refreshing {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.feed-refresh-overlay {
  align-items: flex-start;
  display: flex;
  inset: 0;
  justify-content: center;
  padding-top: 120px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

/* Barra de progreso de navegacion global (estilo NProgress). Crece rapido y se
   queda "esperando" cerca del final mientras la ruta carga; al terminar salta a
   100% y se desvanece. Driven por useLinkStatus via <NavProgressBar />. */
.nav-progress {
  background: linear-gradient(90deg, var(--orange) 0%, #ff8a4c 100%);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(255, 90, 18, 0.55);
  height: 3px;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 0;
  z-index: 200;
  animation: nav-progress-grow 9s cubic-bezier(0.12, 0.72, 0.34, 0.96) forwards;
}

.nav-progress.done {
  animation: none;
  opacity: 0;
  transition: width 130ms ease, opacity 220ms ease 130ms;
  width: 100%;
}

@keyframes nav-progress-grow {
  0% {
    width: 0;
  }
  25% {
    width: 42%;
  }
  55% {
    width: 68%;
  }
  100% {
    width: 90%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-progress {
    animation-duration: 0.01ms;
    width: 90%;
  }
}

/* Skeletons mientras carga la primera pagina */
.listing-skeleton {
  cursor: default;
  pointer-events: none;
}

.listing-skeleton .skeleton-media {
  aspect-ratio: 16 / 11;
  display: block;
  width: 100%;
}

.skeleton-body {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 18px;
}

.skeleton-line {
  border-radius: 8px;
  display: block;
  height: 14px;
}

.skeleton-line.lg {
  height: 20px;
  width: 80%;
}

.skeleton-line.md {
  width: 55%;
}

.skeleton-line.sm {
  width: 38%;
}

.skeleton-media,
.skeleton-line {
  background: linear-gradient(
    100deg,
    rgba(6, 26, 67, 0.06) 30%,
    rgba(6, 26, 67, 0.12) 50%,
    rgba(6, 26, 67, 0.06) 70%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-spinner,
  .skeleton-media,
  .skeleton-line {
    animation: none;
  }
}

/* ============================================================
   Favoritos — board con carpetas y drag-and-drop
   ============================================================ */

.favorites-board {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 28px;
  margin-top: 48px;
}

.favorites-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.favorites-head h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 0;
}

.folder-create-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.folder-create-button:hover {
  border-color: var(--navy);
  box-shadow: var(--soft-shadow);
}

.folder-create {
  align-items: center;
  display: flex;
  gap: 8px;
}

.folder-create input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  min-height: 44px;
  outline: 0;
  padding: 0 16px;
}

.folder-create input:focus {
  border-color: var(--navy);
}

.folder-create button {
  align-items: center;
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.folder-create button[aria-label="Cancelar"] {
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
}

.favorites-empty {
  align-items: center;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  justify-items: center;
  padding: 32px 20px;
  text-align: center;
}

.favorites-grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.fav-folder {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-rows: auto 1fr;
  padding: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.fav-folder.over {
  background: var(--orange-soft);
  border-color: var(--orange-line);
  box-shadow: 0 12px 30px rgba(255, 90, 18, 0.16);
}

.fav-folder-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding-bottom: 10px;
}

.fav-folder-name {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  flex: 1 1;
  font-size: 1rem;
  font-weight: 900;
  gap: 6px;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.fav-folder-name svg {
  color: var(--muted);
  flex: 0 0 auto;
  opacity: 0;
  transition: opacity 140ms ease;
}

.fav-folder-head:hover .fav-folder-name svg {
  opacity: 1;
}

.fav-folder-rename {
  flex: 1 1;
}

.fav-folder-rename input {
  background: white;
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  outline: 0;
  padding: 6px 8px;
  width: 100%;
}

.fav-folder-count {
  background: #eef2fb;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  min-width: 22px;
  padding: 2px 8px;
  text-align: center;
}

.fav-folder-delete {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.fav-folder-delete:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.fav-folder-items {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-height: 60px;
}

.fav-folder-hint {
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  justify-content: center;
  min-height: 60px;
  padding: 10px;
  text-align: center;
}

.favorite-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: -webkit-grab;
  cursor: grab;
  display: flex;
  gap: 10px;
  padding: 8px;
  position: relative;
  touch-action: manipulation;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.favorite-card:hover {
  border-color: var(--navy);
  box-shadow: var(--soft-shadow);
}

.favorite-card.dragging {
  opacity: 0.4;
}

.favorite-card.overlay {
  box-shadow: 0 20px 44px rgba(6, 26, 67, 0.28);
  cursor: -webkit-grabbing;
  cursor: grabbing;
  width: 240px;
}

.favorite-card-media {
  align-items: center;
  background: #eef2fb;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 48px;
}

.favorite-card-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.favorite-card-body {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}

.favorite-card-body strong {
  color: var(--navy);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-card-price {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 900;
}

.favorite-card-remove {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  margin-left: auto;
  width: 26px;
}

.favorite-card-remove:hover {
  border-color: var(--orange-line);
  color: var(--orange);
}

.reservations-header {
  margin-top: 8px;
}

@media (max-width: 620px) {
  .favorites-grid {
    grid-template-columns: 1fr;
  }
}

/* Selector de carpeta al guardar un favorito (si hay 2+ carpetas) */
.folder-picker-backdrop {
  align-items: center;
  background: rgba(6, 26, 67, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 0 16px;
  position: fixed;
  z-index: 60;
}

.folder-picker {
  animation: user-menu-in 0.18s ease-out;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px rgba(6, 26, 67, 0.3);
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  max-width: 420px;
  padding: 22px;
  width: 100%;
}

.folder-picker-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.folder-picker-head h2 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-picker-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
}

.folder-picker-item {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease;
}

.folder-picker-item:hover {
  background: var(--orange-soft);
  border-color: var(--orange-line);
}

.folder-picker-item svg {
  color: var(--muted);
  flex: 0 0 auto;
}

@media (max-width: 1020px) {
  .folder-picker-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .folder-picker {
    animation: auth-slide-up 0.24s ease-out;
    border: 0;
    border-radius: 20px 20px 0 0;
    max-width: none;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .folder-picker-list {
    max-height: 60vh;
  }
}

/* === Pedidos / apartado (proceso de compra) ============================== */
.order-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.order-tab {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 16px;
}

.order-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.order-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.order-row {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
  text-align: left;
  width: 100%;
}

.order-row strong {
  color: var(--navy);
  display: block;
}

.order-row small {
  color: #6b7794;
}

.order-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 16px;
}

.order-card-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.order-card-head h2 {
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0;
}

.order-chip {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 5px 11px;
  text-transform: uppercase;
}

.order-chip--pending {
  background: #fff3e0;
  color: #c25e00;
}

.order-chip--approved {
  background: #e6f0ff;
  color: #1d5fd0;
}

.order-chip--shipped {
  background: #e8eafc;
  color: #4730c2;
}

.order-chip--delivered {
  background: var(--success-soft);
  color: var(--success);
}

.order-chip--cancelled {
  background: #f1f3f7;
  color: #6b7794;
}

.order-party {
  align-items: center;
  background: #f7f9fc;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.order-party-avatar {
  align-items: center;
  background: var(--navy);
  border-radius: 999px;
  color: white;
  display: flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.order-party strong {
  color: var(--navy);
  display: block;
}

.order-party small {
  color: #6b7794;
  display: block;
  font-size: 0.78rem;
}

.order-party-role {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-party-hint {
  color: #6b7794;
  font-size: 0.85rem;
  margin: 0;
}

.order-contact {
  background: #f7f9fc;
  border-radius: 10px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 12px;
}

.order-contact span {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-weight: 600;
  gap: 8px;
}

.order-contact em {
  color: #6b7794;
}

.order-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-ghost {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #b4232a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
}

.order-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-confirm input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.1rem;
  letter-spacing: 4px;
  min-height: 44px;
  padding: 0 14px;
  width: 180px;
}

/* Popup timeline + modal de apartar */
.order-backdrop,
.apartar-backdrop {
  align-items: center;
  background: rgba(6, 26, 67, 0.34);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 0 16px;
  position: fixed;
  z-index: 60;
}

.order-modal,
.apartar-modal {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(6, 26, 67, 0.22);
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  max-width: 460px;
  padding: 24px;
  position: relative;
  width: 100%;
}

.order-close,
.apartar-close {
  align-items: center;
  background: #f1f3f7;
  border: none;
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
}

.order-title,
.apartar-title {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 0;
}

.order-steps {
  display: grid;
  grid-gap: 0;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-step {
  align-items: center;
  color: #8a93a8;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 26px 1fr auto;
  padding: 8px 0;
  position: relative;
}

.order-step:not(:last-child) .order-dot::after {
  background: var(--line);
  content: "";
  height: 22px;
  left: 50%;
  position: absolute;
  top: 26px;
  transform: translateX(-50%);
  width: 2px;
}

.order-dot {
  align-items: center;
  background: #f1f3f7;
  border-radius: 999px;
  color: white;
  display: flex;
  height: 26px;
  justify-content: center;
  position: relative;
  width: 26px;
}

.order-step.done {
  color: var(--navy);
}

.order-step.done .order-dot {
  background: var(--success);
}

.order-step.done:not(:last-child) .order-dot::after {
  background: var(--success);
}

.order-step-label {
  font-weight: 700;
}

.order-step-time {
  font-size: 0.82rem;
}

.order-code-box {
  background: var(--orange-soft);
  border: 1px dashed var(--orange-line);
  border-radius: 14px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  justify-items: center;
  padding: 16px;
  text-align: center;
}

.order-code {
  color: var(--orange);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 8px;
}

.order-code-box span {
  color: #6b7794;
  font-size: 0.85rem;
}

.order-cancelled {
  color: #b4232a;
  font-weight: 700;
}

.order-cancel-btn {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #b4232a;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
}

.order-reviewed {
  align-items: center;
  color: var(--success);
  display: flex;
  font-weight: 700;
  gap: 6px;
}

.apartar-product {
  align-items: center;
  background: #f7f9fc;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  padding: 12px;
}

.apartar-thumb {
  align-items: center;
  background: #e9eef8;
  border-radius: 10px;
  display: flex;
  flex: 0 0 auto;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
}

.apartar-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.apartar-product strong {
  color: var(--navy);
  display: block;
}

.apartar-price {
  color: var(--orange);
  font-weight: 800;
}

.apartar-form {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.apartar-form label {
  color: var(--navy);
  display: grid;
  font-weight: 700;
  grid-gap: 6px;
  gap: 6px;
}

.apartar-form input,
.apartar-form textarea,
.apartar-form select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.apartar-hint {
  align-items: center;
  color: #6b7794;
  display: flex;
  font-size: 0.85rem;
  gap: 6px;
}

.apartar-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.apartar-cancel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0 16px;
}

.account-contact-eyebrow {
  margin-top: 4px;
}

.account-contact-hint {
  color: #6b7794;
  font-size: 0.85rem;
  margin: -4px 0 0;
}

@media (max-width: 1020px) {
  .order-backdrop,
  .apartar-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .order-modal,
  .apartar-modal {
    animation: auth-slide-up 0.24s ease-out;
    border: 0;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    max-width: none;
    overflow-y: auto;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .order-confirm input {
    width: 100%;
  }
}

/* === Repartidores / modo delivery ====================================== */
.mode-backdrop {
  align-items: center;
  background: rgba(6, 26, 67, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 80;
}

.mode-sheet {
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(6, 26, 67, 0.22);
  max-width: 440px;
  padding: 24px;
  width: 100%;
}

.mode-sheet h2 {
  color: var(--navy);
  margin: 0 0 4px;
}

.mode-sheet p {
  color: #6b7794;
  margin: 0 0 16px;
}

.mode-options {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.mode-option {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  justify-items: center;
  padding: 18px 12px;
  text-align: center;
}

.mode-option:hover {
  border-color: var(--orange);
}

.mode-option strong {
  color: var(--navy);
}

.mode-option span {
  color: #6b7794;
  font-size: 0.8rem;
}

/* App de repartidor */
.courier-app {
  background: #0b1530;
  color: white;
  min-height: 100dvh;
}

.courier-topbar {
  align-items: center;
  background: #0b1530;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
}

.courier-brand {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
}

.courier-switch {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 6px;
  padding: 8px 14px;
}

.courier-body {
  margin: 0 auto;
  max-width: 640px;
  padding: 16px;
}

.courier-shift {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 16px;
}

.courier-shift strong {
  display: block;
}

.courier-shift span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.courier-shift-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  padding: 10px 16px;
}

.courier-shift-btn.on {
  background: var(--orange);
}

.courier-section-head {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 12px;
}

.courier-packages {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.courier-package {
  background: white;
  border-radius: 14px;
  color: var(--navy);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 16px;
}

.courier-dest {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.courier-dest span {
  align-items: center;
  display: flex;
  gap: 6px;
}

.courier-dest em {
  color: #6b7794;
}

.courier-confirm {
  display: flex;
  gap: 8px;
}

.courier-confirm input {
  border: 1px solid var(--line);
  border-radius: 10px;
  flex: 1 1;
  letter-spacing: 4px;
  min-height: 44px;
  padding: 0 12px;
}

.courier-empty {
  color: rgba(255, 255, 255, 0.7);
  padding: 24px 0;
  text-align: center;
}

/* Flota + mapa (panel premium) */
.fleet-add {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.fleet-add input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex: 1 1;
  min-height: 44px;
  padding: 0 12px;
}

.order-ship {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-ship-assign {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  gap: 6px;
  padding: 0 10px;
}

.order-ship-assign select {
  border: none;
  min-height: 42px;
  outline: none;
}

.order-courier-tag {
  align-items: center;
  color: var(--navy);
  display: inline-flex;
  font-weight: 700;
  gap: 6px;
}

.fleet-map {
  border-radius: 14px;
  height: 360px;
  overflow: hidden;
  width: 100%;
  z-index: 0;
}

/* Flota: detalle de paquetes por repartidor (click) */
.fleet-name {
  align-items: center;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 6px;
  padding: 0;
}

.fleet-caret {
  transition: transform 160ms ease;
}

.fleet-caret.open {
  transform: rotate(180deg);
}

.fleet-detail-row td {
  background: #f7f9fc;
}

.fleet-packages {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.fleet-packages li {
  align-items: center;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fleet-packages span {
  color: #6b7794;
}

.fleet-pkg-addr {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.order-qty {
  color: var(--orange);
  font-weight: 800;
}

/* === Envío / totales / reconfirmación ================================== */
.order-chip--repriced {
  background: #fff3e0;
  color: #c25e00;
}

.apartar-summary,
.order-totals {
  background: #f7f9fc;
  border-radius: 10px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 10px 12px;
}

.apartar-summary > div,
.apartar-total {
  display: flex;
  justify-content: space-between;
}

.apartar-total {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 6px;
}

.apartar-total strong:last-child {
  color: var(--orange);
}

.order-totals {
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 14px;
  font-size: 0.85rem;
}

.order-totals strong {
  color: var(--orange);
  margin-left: auto;
}

/* Popup bloqueante de reconfirmación de envío */
.reconfirm-backdrop {
  align-items: center;
  background: rgba(6, 26, 67, 0.62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 90;
}

.reconfirm-card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(6, 26, 67, 0.3);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  max-width: 420px;
  padding: 26px;
  text-align: center;
  width: 100%;
}

.reconfirm-icon {
  align-items: center;
  background: #fff3e0;
  border-radius: 999px;
  color: #c25e00;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  justify-self: center;
  width: 56px;
}

.reconfirm-card h2 {
  color: var(--navy);
  margin: 0;
}

.reconfirm-card p {
  color: #6b7794;
  margin: 0;
}

.reconfirm-rows {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  text-align: left;
}

.reconfirm-rows > div {
  display: flex;
  justify-content: space-between;
}

.reconfirm-old {
  color: #9aa3b5;
  text-decoration: line-through;
}

.reconfirm-total {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 8px;
}

.reconfirm-total strong:last-child {
  color: var(--orange);
}

.reconfirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.reconfirm-actions button {
  flex: 1 1;
}

.courier-amounts {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 4px;
  padding-top: 10px;
}

.courier-amounts span {
  color: #6b7794;
  font-size: 0.85rem;
}

.courier-amounts strong {
  color: var(--orange);
  margin-left: auto;
}

/* --- Variantes (talla/color) + categorias del catalogo ------------------- */
.variant-editor {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.variant-head {
  color: #6b7794;
  display: grid;
  font-size: 0.78rem;
  font-weight: 700;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: 1fr 1.4fr 40px;
}

.variant-row {
  align-items: center;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: 1fr 1.4fr auto;
}

.variant-row input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
}

.variant-remove {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #6b7794;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.order-variant {
  background: #f2f5fb;
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 10px;
}

.profile-catalog-group {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.profile-catalog-group + .profile-catalog-group {
  margin-top: 20px;
}

.profile-catalog-cat {
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 1rem;
  padding-bottom: 6px;
}

/* Mismo pill que .section-meta (productos); solo lo hace clickable. */
.category-count {
  cursor: pointer;
}

.inventory-total {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--navy);
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin: 0;
  padding-top: 12px;
}

.inventory-total strong {
  color: var(--orange);
}

.category-count:hover {
  border-color: var(--navy);
}

.category-add {
  display: flex;
  gap: 8px;
  margin: 4px 0 12px;
}

.category-add input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex: 1 1;
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

.category-add .primary-button {
  white-space: nowrap;
}

.category-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
}

.category-item span {
  flex: 1 1;
  font-weight: 700;
}

.category-item input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 1 1;
  font: inherit;
  min-height: 36px;
  padding: 6px 8px;
}

.category-icon-btn {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #6b7794;
  cursor: pointer;
  display: flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.category-icon-btn:hover {
  background: #f2f5fb;
  color: var(--navy);
}

.category-icon-btn.danger:hover {
  color: #d33;
}

