:root {
  --ink: #17312b;
  --muted: #66756f;
  --brand: #0f6b57;
  --brand-dark: #084b3d;
  --brand-soft: #dcece5;
  --accent: #f7b733;
  --accent-soft: #fff0c8;
  --cream: #f6f3eb;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #e4e8e3;
  --danger: #c54a45;
  --shadow-sm: 0 8px 24px rgba(23, 49, 43, 0.07);
  --shadow-md: 0 18px 50px rgba(23, 49, 43, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  font-family: "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow-x: hidden;
  overflow-y: auto;
}

body.auth-required {
  overflow: hidden;
}

/* Acceso obligatorio al abrir la aplicación */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  overflow: auto;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(20, 184, 166, .34), transparent 28%),
    radial-gradient(circle at 88% 88%, rgba(37, 99, 255, .42), transparent 34%),
    linear-gradient(145deg, #061c43 0%, #082d69 52%, #075f8f 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility .28s ease;
}

.auth-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-gate-glow { position: absolute; border-radius: 999px; filter: blur(12px); pointer-events: none; }
.auth-gate-glow-one { top: -80px; right: 7%; width: 260px; height: 260px; background: rgba(24, 188, 172, .18); }
.auth-gate-glow-two { bottom: -100px; left: 5%; width: 340px; height: 340px; background: rgba(39, 105, 255, .2); }
.auth-gate-panel {
  position: relative;
  width: min(1040px, 100%);
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: clamp(26px, 4vw, 42px);
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: 0 34px 90px rgba(0, 13, 42, .42);
  backdrop-filter: blur(20px);
}
.auth-gate-brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.auth-gate-brand img { width: min(290px, 52vw); max-height: 120px; padding: 10px 16px; border-radius: 20px; background: rgba(255,255,255,.97); object-fit: contain; }
.auth-gate-brand > span { max-width: 280px; color: #cfe3ff; font-size: .82rem; font-weight: 600; line-height: 1.5; text-align: right; }
.auth-gate-copy { max-width: 760px; margin-top: clamp(34px, 6vw, 68px); }
.auth-gate-kicker { display: inline-flex; padding: 8px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #8ff4e4; background: rgba(9, 96, 105, .34); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-gate h1 { max-width: 720px; margin: 18px 0 16px; font-family: Poppins, sans-serif; font-size: clamp(2.2rem, 6vw, 5rem); line-height: .99; letter-spacing: -.055em; }
.auth-gate-copy > p { max-width: 660px; margin: 0; color: #d7e8ff; font-size: clamp(.95rem, 1.8vw, 1.08rem); line-height: 1.7; }
.auth-gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.auth-gate-actions button { min-height: 54px; padding: 0 22px; border-radius: 15px; cursor: pointer; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.auth-gate-actions button:hover { transform: translateY(-2px); }
.auth-gate-primary { border: 0; color: #082c5e; background: #fff; box-shadow: 0 14px 32px rgba(0, 14, 45, .25); }
.auth-gate-primary span { margin-left: 14px; font-size: 1.2rem; }
.auth-gate-secondary { border: 1px solid rgba(255,255,255,.36); color: #fff; background: rgba(255,255,255,.08); }
.auth-gate-benefits { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 30px; color: #d9e9ff; font-size: .82rem; font-weight: 600; }
.auth-gate-benefits span { display: inline-flex; align-items: center; gap: 8px; }
.auth-gate-benefits i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #062c5e; background: #7de7d6; font-style: normal; font-weight: 900; }
.auth-gate-security { display: flex; align-items: center; gap: 8px; margin: 36px 0 0; color: #bcd3ef; font-size: .74rem; line-height: 1.5; }
.auth-gate-security span { color: #59e0bc; }
.auth-dialog { z-index: 2200; }
.auth-dialog::backdrop { background: rgba(2, 12, 35, .72); backdrop-filter: blur(5px); }

@media (max-width: 640px) {
  .auth-gate { align-items: start; padding-inline: 12px; }
  .auth-gate-panel { margin-block: 8px; padding: 24px 20px 26px; border-radius: 26px; }
  .auth-gate-brand { align-items: flex-start; flex-direction: column; }
  .auth-gate-brand img { width: min(260px, 82vw); }
  .auth-gate-brand > span { max-width: 100%; text-align: left; }
  .auth-gate-copy { margin-top: 34px; }
  .auth-gate h1 { font-size: clamp(2.15rem, 12vw, 3.25rem); }
  .auth-gate-actions { flex-direction: column; }
  .auth-gate-actions button { width: 100%; }
  .auth-gate-benefits { display: grid; }
  .auth-gate-security { margin-top: 28px; }
}

@media (min-width: 641px) and (max-height: 820px) {
  .auth-gate { padding-block: 12px; }
  .auth-gate-panel { padding: 26px 48px 24px; }
  .auth-gate-brand img { width: 230px; max-height: 92px; }
  .auth-gate-copy { margin-top: 28px; }
  .auth-gate h1 { max-width: 650px; margin-block: 12px; font-size: clamp(2.5rem, 5.5vw, 4.1rem); }
  .auth-gate-copy > p { line-height: 1.55; }
  .auth-gate-actions { margin-top: 20px; }
  .auth-gate-actions button { min-height: 48px; }
  .auth-gate-benefits { margin-top: 20px; }
  .auth-gate-security { margin-top: 20px; }
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(247, 183, 51, 0.55);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  top: 60px;
  left: -120px;
  background: var(--accent);
}

.ambient-two {
  top: 380px;
  right: -160px;
  background: #58b895;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px max(24px, calc((100vw - var(--max-width)) / 2));
  background: rgba(246, 243, 235, 0.88);
  border-bottom: 1px solid rgba(23, 49, 43, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--brand);
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  fill: currentColor;
}

.brand-mark .brand-mark-accent {
  fill: var(--accent);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: "Manrope", sans-serif;
  font-style: normal;
  letter-spacing: -0.045em;
}

.brand-copy strong,
.brand-copy em {
  font-size: 1.35rem;
  font-style: normal;
}

.brand-copy strong {
  font-weight: 800;
}

.brand-copy em {
  color: var(--brand);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-switcher {
  display: grid;
  padding: 4px;
  gap: 4px;
  background: rgba(227, 230, 222, 0.82);
  border: 1px solid rgba(23, 49, 43, 0.08);
  border-radius: 16px;
  grid-template-columns: 1fr 1fr;
}

.app-switcher button {
  display: flex;
  min-width: 176px;
  padding: 8px 12px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
}

.app-switcher button:hover {
  color: var(--ink);
}

.app-switcher button.is-active {
  color: var(--brand-dark);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(23, 49, 43, 0.08);
}

.app-switcher button[data-app-mode="directory"].is-active {
  color: #8c351f;
}

.switcher-icon {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--brand);
  border-radius: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  place-items: center;
}

[data-app-mode="directory"] .switcher-icon {
  background: #c55732;
}

.app-switcher button > span:last-child {
  display: flex;
  flex-direction: column;
}

.app-switcher strong {
  font-size: 0.76rem;
  line-height: 1.1;
}

.app-switcher small {
  margin-top: 2px;
  font-size: 0.65rem;
}

.location-chip,
.icon-button,
.avatar-button {
  border: 0;
  cursor: pointer;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.location-chip svg {
  width: 17px;
  fill: var(--brand);
}

.icon-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 50%;
  place-items: center;
}

.icon-button:hover {
  background: rgba(15, 107, 87, 0.08);
}

.icon-button svg {
  width: 22px;
  fill: var(--ink);
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border: 2px solid var(--cream);
  border-radius: 50%;
}

.avatar-button {
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--brand);
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 800;
  place-items: center;
}

.app-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 110px;
}

.view {
  display: none;
  animation: view-in 0.3s ease both;
}

.view.is-active {
  display: block;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  display: grid;
  min-height: 270px;
  padding: 46px 48px;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(247, 183, 51, 0.28), transparent 30%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 50%);
  content: "";
}

.hero-copy {
  z-index: 2;
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #d7eee5;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #7fe6a9;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(127, 230, 169, 0.12);
}

.hero h1,
.page-intro h1,
.profile-hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  line-height: 0.98;
}

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

.hero p {
  max-width: 560px;
  margin: 20px 0 0;
  color: #dce9e5;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
}

.hero-illustration {
  position: relative;
  min-height: 200px;
  align-self: end;
}

.sun {
  position: absolute;
  top: 16px;
  right: 58px;
  width: 88px;
  height: 88px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(247, 183, 51, 0.09), 0 0 0 42px rgba(247, 183, 51, 0.05);
}

.hill {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 390px;
  height: 220px;
  border-radius: 60% 50% 0 0;
  transform: rotate(-7deg);
}

.hill-back {
  right: 40px;
  bottom: -105px;
  background: #1b806b;
}

.hill-front {
  background: #0b5949;
}

.hero-bubble {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 42px;
  color: var(--brand-dark);
  background: var(--paper);
  border-radius: 14px 14px 14px 4px;
  box-shadow: var(--shadow-sm);
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  place-items: center;
}

.bubble-one { top: 24px; left: 20px; }
.bubble-two { top: 92px; right: 26px; color: var(--brand); }
.bubble-three { bottom: 18px; left: 96px; width: 36px; height: 32px; color: var(--accent); font-size: 0.8rem; }

.search-box {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(800px, calc(100% - 48px));
  min-height: 68px;
  margin: -28px auto 0;
  padding: 0 20px;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid rgba(23, 49, 43, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  cursor: text;
  text-align: left;
}

.search-box:hover {
  transform: translateY(-2px);
}

.search-box svg,
.search-input-wrap svg {
  width: 23px;
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-width: 2;
}

.search-box span {
  flex: 1;
  font-size: 1rem;
}

.search-box kbd {
  padding: 6px 9px;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.75rem;
}

.category-section,
.feed-section {
  padding-top: 54px;
}

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

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.dialog-header h2,
.profile-card h2,
.search-results-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.text-button {
  padding: 6px 0;
  color: var(--brand);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-weight: 700;
}

.category-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(6, 1fr);
}

.category-card {
  display: flex;
  min-width: 0;
  min-height: 118px;
  padding: 15px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: 0.2s ease;
}

.category-card:hover {
  border-color: rgba(15, 107, 87, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.category-card .category-icon {
  display: grid;
  width: 42px;
  height: 42px;
  background: var(--icon-bg, var(--brand-soft));
  border-radius: 14px;
  font-size: 1.2rem;
  place-items: center;
}

.category-card strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-note {
  display: grid;
  margin-top: 34px;
  padding: 20px 22px;
  align-items: center;
  gap: 15px;
  background: #fff8e8;
  border: 1px solid #f1dfb0;
  border-radius: var(--radius-md);
  grid-template-columns: auto 1fr auto;
}

.community-note-icon {
  display: grid;
  width: 42px;
  height: 42px;
  color: #9d6a00;
  background: var(--accent-soft);
  border-radius: 14px;
  place-items: center;
}

.community-note-icon svg,
.privacy-hint svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.community-note p {
  margin: 3px 0 0;
  color: #756744;
  font-size: 0.88rem;
}

.community-note > button {
  padding: 5px 8px;
  color: #756744;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.35rem;
}

.feed-filter {
  display: flex;
  padding: 4px;
  background: #e9e8e1;
  border-radius: 12px;
}

.feed-filter button {
  padding: 8px 12px;
  background: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.feed-filter button.is-active {
  color: var(--brand-dark);
  background: var(--white);
  box-shadow: 0 3px 10px rgba(23, 49, 43, 0.08);
}

.feed-layout {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 310px;
}

.feed {
  display: grid;
  gap: 14px;
}

.post-card {
  position: relative;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: 0.2s ease;
}

.post-card:hover {
  border-color: rgba(15, 107, 87, 0.25);
  box-shadow: var(--shadow-sm);
}

.post-card.is-resolved {
  border-left: 4px solid var(--brand);
}

.post-topline,
.post-author,
.post-actions,
.post-action-group,
.answer-author {
  display: flex;
  align-items: center;
}

.post-topline {
  justify-content: space-between;
  gap: 16px;
}

.post-author {
  min-width: 0;
  gap: 11px;
}

.author-avatar,
.answer-avatar {
  display: grid;
  flex: 0 0 auto;
  color: var(--avatar-ink, var(--brand-dark));
  background: var(--avatar-bg, var(--brand-soft));
  border-radius: 13px;
  font-weight: 800;
  place-items: center;
}

.author-avatar {
  width: 42px;
  height: 42px;
  font-size: 0.72rem;
}

.post-author-info {
  min-width: 0;
}

.post-author-info strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

.verified-dot {
  display: inline-grid;
  width: 16px;
  height: 16px;
  color: var(--white);
  background: var(--brand);
  border-radius: 50%;
  font-size: 0.62rem;
  place-items: center;
}

.post-author-info small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-status {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 6px 9px;
  align-items: center;
  gap: 5px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.post-status.open {
  color: #7a5704;
  background: var(--accent-soft);
}

.post-category {
  display: inline-block;
  margin-top: 18px;
  color: var(--brand);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 7px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.post-card h3 button {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.post-card h3 button:hover {
  color: var(--brand);
}

.post-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-answer-preview {
  display: grid;
  margin-top: 17px;
  padding: 14px 15px;
  gap: 10px;
  background: #f1f4ef;
  border-radius: 13px;
  grid-template-columns: auto 1fr;
}

.answer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 0.62rem;
}

.post-answer-preview p {
  margin: 0;
  color: #50625c;
  font-size: 0.82rem;
  line-height: 1.5;
}

.post-answer-preview strong {
  color: var(--ink);
}

.post-actions {
  margin-top: 18px;
  padding-top: 15px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.post-action-group {
  gap: 5px;
}

.post-actions button {
  display: inline-flex;
  padding: 7px 9px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.post-actions button:hover,
.post-actions button.is-active {
  color: var(--brand);
  background: rgba(15, 107, 87, 0.08);
}

.post-actions button.is-active svg {
  fill: currentColor;
}

.post-actions svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.community-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.sidebar-card,
.profile-card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.welcome-card {
  color: var(--white);
  background: var(--brand);
  border: 0;
}

.mini-mark {
  display: grid;
  width: 44px;
  height: 40px;
  color: var(--brand-dark);
  background: var(--accent);
  border-radius: 13px 13px 13px 4px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  place-items: center;
}

.sidebar-card h3 {
  margin: 17px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.welcome-card p {
  margin: 0 0 18px;
  color: #d6e8e2;
  font-size: 0.88rem;
  line-height: 1.55;
}

.primary-button,
.secondary-button {
  min-height: 43px;
  padding: 0 17px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  color: var(--white);
  background: var(--brand);
  border: 1px solid var(--brand);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.welcome-card .primary-button {
  width: 100%;
  color: var(--brand-dark);
  background: var(--accent);
  border-color: var(--accent);
}

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

.secondary-button:hover {
  background: var(--cream);
}

.stats-card .section-kicker {
  margin-bottom: 14px;
}

.stat-row {
  display: flex;
  padding: 10px 0;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.stat-row:last-child {
  border: 0;
}

.stat-row strong {
  color: var(--brand);
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
}

.stat-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.rules-card h3 {
  margin-top: 0;
}

.rules-card ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 11px;
  list-style: none;
}

.rules-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.rules-card li span {
  display: grid;
  width: 22px;
  height: 22px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
  font-weight: 800;
  place-items: center;
}

.page-intro {
  max-width: 740px;
  margin: 24px 0 32px;
}

.page-intro h1,
.profile-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.page-intro p,
.profile-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.search-input-wrap {
  display: flex;
  min-height: 58px;
  padding: 0 18px;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.search-input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 87, 0.1);
}

.search-input-wrap input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
}

.explore-categories {
  display: flex;
  margin: 22px 0 35px;
  padding-bottom: 6px;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.explore-categories::-webkit-scrollbar { display: none; }

.filter-chip,
.popular-searches button,
.topic-pills span {
  padding: 9px 13px;
  white-space: nowrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.is-active {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.search-results-heading {
  display: flex;
  margin-bottom: 16px;
  align-items: baseline;
  justify-content: space-between;
}

.search-results-heading span {
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-feed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-state {
  padding: 52px 24px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed #cfd7d1;
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state .empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--brand-soft);
  border-radius: 18px;
  font-size: 1.4rem;
  place-items: center;
}

.empty-state h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

.empty-state p {
  margin: 0;
}

.profile-hero {
  display: grid;
  margin: 20px 0 18px;
  padding: 35px;
  align-items: center;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  grid-template-columns: auto 1fr auto;
}

.profile-avatar {
  display: grid;
  width: 86px;
  height: 86px;
  color: var(--white);
  background: var(--brand);
  border: 6px solid var(--brand-soft);
  border-radius: 28px;
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  place-items: center;
}

.verified-label {
  display: inline-flex;
  margin-bottom: 8px;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.verified-label span {
  display: grid;
  width: 17px;
  height: 17px;
  color: var(--white);
  background: var(--brand);
  border-radius: 50%;
  font-size: 0.65rem;
  place-items: center;
}

.profile-stats {
  display: grid;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--brand-dark);
  border-radius: var(--radius-md);
  grid-template-columns: repeat(3, 1fr);
}

.profile-stats div {
  display: flex;
  padding: 22px;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-stats div:last-child { border: 0; }

.profile-stats strong {
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 1.7rem;
}

.profile-stats span {
  color: #d6e8e2;
  font-size: 0.78rem;
}

.profile-grid {
  display: grid;
  align-items: start;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.profile-card h2 {
  margin: 12px 0;
}

.profile-card p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  background: var(--line);
  border-radius: 10px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #52a98f);
  border-radius: inherit;
}

.topic-pills {
  display: flex;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pills span {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 0;
}

.settings-card {
  grid-column: 1 / -1;
  padding: 8px;
}

.settings-card button {
  display: grid;
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  grid-template-columns: auto 1fr auto;
}

.settings-card button:last-child { border: 0; }

.community-help-shortcut { width: 100%; margin-top: 10px; }
.community-help-view { padding-bottom: 56px; }
.community-help-hero {
  display: grid;
  margin-bottom: 30px;
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
  background: linear-gradient(135deg, #083f35 0%, #08745f 62%, #11a487 100%);
  border-radius: 30px;
  box-shadow: 0 22px 50px rgba(8, 63, 53, 0.2);
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: 30px;
  align-items: center;
}
.community-help-hero .section-kicker { color: #bff7e8; }
.community-help-hero h1 { max-width: 740px; margin: 8px 0 14px; font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 0.98; letter-spacing: -0.05em; }
.community-help-hero > div > p { max-width: 720px; margin: 0; color: rgba(255,255,255,.84); font-size: 1.05rem; line-height: 1.65; }
.community-help-rules { display: flex; margin-top: 22px; flex-wrap: wrap; gap: 9px; }
.community-help-rules span { padding: 8px 11px; color: #eafff9; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .78rem; font-weight: 750; }
.neighbor-score-card { display: flex; min-height: 160px; padding: 24px; align-items: center; gap: 18px; color: var(--ink); background: rgba(255,255,255,.95); border-radius: 24px; box-shadow: 0 14px 32px rgba(0,0,0,.12); }
.neighbor-score-card > div { min-width: 0; }
.neighbor-score-card small { display: block; color: var(--muted); font-weight: 700; }
.neighbor-score-card strong { display: block; margin: 4px 0; color: #064f42; font-size: 1.08rem; }
.neighbor-score-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.neighbor-badge { display: grid; width: 66px; height: 66px; flex: 0 0 66px; color: #fff; background: linear-gradient(145deg, #0b8c72, #063d34); border: 5px solid #d9fff4; border-radius: 50%; place-items: center; font-size: 1.2rem; font-weight: 900; box-shadow: 0 8px 20px rgba(8,117,95,.2); }
.neighbor-badge-excellent { color: #16324b; background: linear-gradient(145deg, #e7fbff, #69d7e9); border-color: #eaffff; }
.neighbor-badge-featured { color: #583f00; background: linear-gradient(145deg, #fff4b8, #f3b938); border-color: #fff9dd; }
.community-review-toolbar { display: flex; margin: 0 0 16px; align-items: end; justify-content: space-between; gap: 16px; }
.community-review-toolbar h2 { margin: 4px 0 0; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.community-review-list { display: grid; gap: 18px; }
.community-review-loading { padding: 44px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; text-align: center; }
.community-review-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 28px rgba(19,55,46,.07); }
.community-review-card > header { display: grid; padding: 22px 24px; align-items: center; grid-template-columns: auto 1fr auto; gap: 16px; }
.community-business-symbol { display: grid; width: 54px; height: 54px; color: #075e4e; background: #e2f5ef; border-radius: 17px; place-items: center; font-size: 1.5rem; }
.community-review-card header span { color: var(--brand); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.community-review-card h3 { margin: 3px 0; font-size: 1.3rem; }
.community-review-card header p { margin: 0; color: var(--muted); font-size: .88rem; }
.community-review-card header em { padding: 7px 11px; color: #805500; background: #fff0c9; border-radius: 999px; font-size: .75rem; font-style: normal; font-weight: 800; }
.community-review-card.is-resolved header em { color: #075e4e; background: #dcf5ed; }
.community-review-meta { display: flex; padding: 0 24px 14px 94px; gap: 16px; color: var(--muted); font-size: .75rem; }
.community-signal-summary { display: grid; padding: 13px 24px; background: #f4f8f6; border-block: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); gap: 10px; }
.community-signal-summary span { color: var(--muted); font-size: .78rem; text-align: center; }
.community-signal-summary strong { display: block; color: var(--ink); font-size: 1.1rem; }
.community-evidence-form { display: grid; padding: 22px 24px 24px; gap: 16px; }
.community-evidence-form fieldset { display: flex; margin: 0; padding: 0; flex-wrap: wrap; gap: 9px; border: 0; }
.community-evidence-form legend { width: 100%; margin-bottom: 8px; font-weight: 800; }
.community-evidence-form fieldset label { cursor: pointer; }
.community-evidence-form fieldset input { position: absolute; opacity: 0; pointer-events: none; }
.community-evidence-form fieldset span { display: block; padding: 10px 13px; color: var(--muted); background: #f5f7f6; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; font-weight: 750; }
.community-evidence-form fieldset input:checked + span { color: #075e4e; background: #e1f5ef; border-color: #62b7a2; box-shadow: 0 0 0 2px rgba(11,139,113,.1); }
.community-evidence-form > label, .community-evidence-fields label { display: grid; gap: 7px; font-size: .82rem; font-weight: 750; }
.community-evidence-form textarea, .community-evidence-form input { width: 100%; padding: 12px 13px; color: var(--ink); background: #fff; border: 1px solid #ccd9d5; border-radius: 12px; font: inherit; }
.community-evidence-form textarea:focus, .community-evidence-form input:focus { outline: 3px solid rgba(11,139,113,.14); border-color: #0b8b71; }
.community-evidence-form small { color: var(--muted); font-weight: 500; }
.community-evidence-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.community-evidence-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.community-evidence-actions small { max-width: 560px; line-height: 1.45; }
.community-evidence-status { margin: 0; color: #075e4e; font-size: .82rem; font-weight: 750; }
.community-evidence-status.is-error { color: #b22f22; }
.community-review-signin { display: flex; padding: 18px 24px 24px; align-items: center; gap: 12px; background: #f7faf9; }
.community-review-signin span { flex: 1; color: var(--muted); font-size: .83rem; }
.community-resolution { margin: 0 24px 24px; padding: 17px; color: #18443a; background: #e9f7f2; border-radius: 15px; }
.community-resolution p { margin: 5px 0 0; color: #49675f; }
.community-resolution span { display: inline-block; margin-top: 10px; padding: 6px 9px; color: #075e4e; background: #fff; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.community-resolved-heading { margin: 30px 0 0; }
.community-resolved-heading h2 { margin: 3px 0 0; }
.neighbor-levels { display: grid; margin-top: 34px; padding: 28px; background: #fff8e8; border: 1px solid #f0dfbd; border-radius: 24px; grid-template-columns: .8fr 1.2fr; gap: 28px; }
.neighbor-levels h2 { margin: 4px 0 8px; }
.neighbor-levels p { margin: 0; color: var(--muted); line-height: 1.55; }
.neighbor-levels ol { display: grid; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.neighbor-levels li { display: grid; padding: 16px; background: #fff; border: 1px solid #eadbbd; border-radius: 17px; gap: 3px; }
.neighbor-levels li > span { display: grid; width: 36px; height: 36px; margin-bottom: 8px; color: #fff; background: #08705d; border-radius: 50%; place-items: center; font-size: .72rem; font-weight: 900; }
.neighbor-levels li small { color: var(--muted); }

.settings-card button:hover { background: var(--cream); }
.settings-card button em { color: var(--muted); font-style: normal; font-size: 0.8rem; }

.floating-create {
  position: fixed;
  z-index: 19;
  right: 28px;
  bottom: 28px;
  display: flex;
  min-height: 52px;
  padding: 0 20px;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: var(--brand);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(8, 75, 61, 0.28);
  cursor: pointer;
  font-weight: 800;
}

.floating-create:hover { background: var(--brand-dark); transform: translateY(-2px); }
.floating-create span { font-size: 1.4rem; font-weight: 400; }

.bottom-nav {
  display: none;
}

.app-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(88vh, 820px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(16, 43, 36, 0.3);
}

.app-dialog::backdrop {
  background: rgba(8, 30, 25, 0.62);
  backdrop-filter: blur(6px);
}

.dialog-header {
  display: flex;
  padding: 24px 26px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: var(--cream);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.4rem;
  place-items: center;
}

.dialog-body {
  max-height: 60vh;
  padding: 22px 26px;
  overflow-y: auto;
}

.dialog-body > label,
.form-row label {
  display: grid;
  margin-bottom: 18px;
  gap: 8px;
}

.post-type-fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.post-type-fieldset legend {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.dialog-body label > span {
  font-size: 0.82rem;
  font-weight: 800;
}

.dialog-body input:not([type="radio"]),
.dialog-body textarea,
.dialog-body select {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
}

.dialog-body input:focus,
.dialog-body textarea:focus,
.dialog-body select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 87, 0.1);
}

.dialog-body textarea { resize: vertical; }

.dialog-body label > small {
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.type-selector {
  display: grid;
  padding: 4px;
  background: var(--cream);
  border-radius: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.type-selector input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-selector label {
  padding: 10px 8px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.type-selector input:checked + label {
  color: var(--brand-dark);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(23, 49, 43, 0.09);
}

.form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.privacy-hint {
  display: grid;
  padding: 13px;
  align-items: start;
  gap: 10px;
  color: #756744;
  background: #fff8e8;
  border-radius: 11px;
  grid-template-columns: auto 1fr;
}

.privacy-hint p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.45;
}

.dialog-actions {
  display: flex;
  padding: 17px 26px 23px;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.search-dialog {
  align-self: start;
  margin-top: 8vh;
}

.dialog-search {
  flex: 1;
  min-height: 48px;
  box-shadow: none;
}

.popular-searches {
  display: flex;
  margin: 12px 0 22px;
  flex-wrap: wrap;
  gap: 8px;
}

.popular-searches button {
  cursor: pointer;
}

.search-dialog .compact-feed {
  grid-template-columns: 1fr;
}

.notification-list {
  display: grid;
  gap: 3px;
}

.notification-list article {
  display: grid;
  padding: 14px 0;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto 1fr;
}

.notification-list article:last-child { border: 0; }

.notification-icon {
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 13px;
  font-weight: 800;
  place-items: center;
}

.notification-icon.useful { color: #9d6a00; background: var(--accent-soft); }
.notification-list p { margin: 3px 0; color: var(--muted); font-size: 0.83rem; }
.notification-list small { color: #98a39f; }

.post-dialog .dialog-header {
  align-items: flex-start;
}

.post-detail-content {
  padding: 0 26px 26px;
}

.post-detail-content .post-card {
  padding: 22px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.answers-title {
  display: flex;
  margin: 10px 0 14px;
  align-items: baseline;
  justify-content: space-between;
}

.answers-title h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
}

.answers-title span { color: var(--muted); font-size: 0.75rem; }

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

.answer-card {
  padding: 15px;
  background: #f1f4ef;
  border-radius: 14px;
}

.answer-author {
  gap: 9px;
}

.answer-author small { display: block; color: var(--muted); }
.answer-card p { margin: 12px 0 0; color: #465a53; font-size: 0.88rem; line-height: 1.55; }

.reply-form {
  display: grid;
  margin-top: 16px;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.reply-form input {
  min-width: 0;
  padding: 12px 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.v53-reply-panel{margin:18px 0;padding:18px;border:1px solid #c8e5d9;border-radius:18px;background:#f2fbf7}.v53-reply-panel h3{margin:0 0 4px}.v53-reply-panel p{margin:0;color:#527168}.v53-reply-panel small{color:#527168}.v53-reply-panel .reply-form{grid-template-columns:minmax(0,1fr) auto;align-items:end}.v53-reply-panel textarea{width:100%;min-width:0;min-height:80px;padding:12px 13px;resize:vertical;border:1px solid #a8cbbb;border-radius:11px;font:inherit;background:#fff;color:#14372d}.v53-reply-panel textarea:focus{outline:3px solid #83d8b7;outline-offset:2px}.v53-reply-panel .primary-button{min-height:48px}@media(max-width:650px){.v53-reply-panel .reply-form{grid-template-columns:1fr}.v53-reply-panel .primary-button{width:100%}}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  padding: 12px 17px;
  color: var(--white);
  background: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Directorio comercial: Apaxco Sabe */

.directory-shell,
.directory-bottom-nav {
  display: none;
}

body[data-app-mode="directory"] .directory-shell {
  display: block;
  animation: view-in 0.35s ease both;
}

body[data-app-mode="directory"] [data-community-view],
body[data-app-mode="directory"] .floating-create,
body[data-app-mode="directory"] .bottom-nav {
  display: none !important;
}

body[data-app-mode="directory"] .brand-mark {
  color: #b84929;
}

body[data-app-mode="directory"] .brand-copy em {
  color: #b84929;
}

.directory-hero {
  position: relative;
  display: grid;
  min-height: 440px;
  padding: 54px;
  overflow: hidden;
  background: #f1e8d7;
  border: 1px solid #e6d9c4;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  isolation: isolate;
}

.directory-hero::before {
  position: absolute;
  z-index: -1;
  top: -120px;
  left: -80px;
  width: 440px;
  height: 440px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  content: "";
}

.directory-hero-copy {
  z-index: 2;
  align-self: center;
}

.directory-badges {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.directory-eyebrow,
.creator-plan-button {
  display: inline-flex;
  min-height: 34px;
  padding: 0 12px;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.directory-eyebrow {
  color: #8c351f;
  background: #f5d8c8;
}

.creator-plan-button {
  color: #5a554a;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid #d9cdbb;
  cursor: pointer;
}

.creator-plan-button:hover {
  color: #8c351f;
  border-color: #c98f75;
}

.directory-hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.directory-hero h1 span {
  color: #b84929;
}

.directory-hero-copy > p {
  max-width: 590px;
  margin: 20px 0 25px;
  color: #625e55;
  font-size: 1.05rem;
  line-height: 1.6;
}

.directory-search {
  display: grid;
  min-height: 66px;
  padding: 7px 7px 7px 18px;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid #ded3c2;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(91, 66, 46, 0.12);
  grid-template-columns: auto 1fr auto;
}

.directory-search:focus-within {
  border-color: #c55732;
  box-shadow: 0 0 0 3px rgba(197, 87, 50, 0.12), 0 14px 34px rgba(91, 66, 46, 0.12);
}

.directory-search svg {
  width: 24px;
  fill: none;
  stroke: #b84929;
  stroke-linecap: round;
  stroke-width: 2;
}

.directory-search input {
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 0.98rem;
}

.directory-search > button,
.directory-primary-button {
  min-height: 50px;
  padding: 0 20px;
  color: var(--white);
  background: #b84929;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
}

.directory-search > button:hover,
.directory-primary-button:hover {
  background: #8c351f;
}

.popular-business-searches {
  display: flex;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #756f64;
  font-size: 0.74rem;
}

.popular-business-searches button {
  padding: 5px 8px;
  color: #635f56;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #aea697;
  cursor: pointer;
  font-size: 0.74rem;
}

.directory-hero-visual {
  position: relative;
  min-height: 330px;
  margin-left: 40px;
  overflow: hidden;
  background: #d8decf;
  border: 10px solid rgba(255, 255, 255, 0.7);
  border-radius: 48% 48% 44% 42%;
  box-shadow: 0 20px 50px rgba(92, 73, 52, 0.16);
  transform: rotate(2deg);
}

.directory-map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(#aeb9a3 1px, transparent 1px), linear-gradient(90deg, #aeb9a3 1px, transparent 1px);
  background-size: 34px 34px;
}

.map-road {
  position: absolute;
  height: 30px;
  background: #f7f1e7;
  border: 2px solid #c8c2b7;
  transform-origin: center;
}

.road-one { top: 125px; left: -40px; width: 480px; transform: rotate(-18deg); }
.road-two { top: 20px; left: 160px; width: 370px; transform: rotate(67deg); }

.map-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  border-radius: 50% 50% 50% 10%;
  place-items: center;
  transform: rotate(-45deg);
}

.map-pin > span { transform: rotate(45deg); }
.pin-main { top: 90px; left: 48%; width: 66px; height: 66px; color: var(--white); background: #b84929; box-shadow: 0 12px 25px rgba(140, 53, 31, 0.26); font-size: 1.55rem; }
.pin-small { width: 25px; height: 25px; color: var(--white); background: var(--brand); font-size: 0.5rem; }
.pin-a { top: 58px; left: 28%; }
.pin-b { right: 18%; bottom: 94px; }

.floating-business-card {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 20px;
  display: flex;
  padding: 14px 16px;
  align-items: center;
  gap: 11px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
}

.floating-business-card > span {
  display: grid;
  width: 40px;
  height: 40px;
  background: #f8e5d9;
  border-radius: 12px;
  place-items: center;
}

.floating-business-card div { display: flex; flex-direction: column; }
.floating-business-card strong { font-size: 0.84rem; }
.floating-business-card small { margin-top: 2px; color: var(--muted); }

.directory-categories-section,
.business-discovery {
  padding-top: 58px;
}

.directory-kicker,
.directory-link {
  color: #a13f24;
}

.business-category-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(6, 1fr);
}

.business-category-card {
  display: flex;
  min-height: 128px;
  padding: 18px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s ease;
}

.business-category-card:hover,
.business-category-card.is-active {
  border-color: rgba(184, 73, 41, 0.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.business-category-card.is-active { background: #fff7f2; }

.business-category-icon {
  display: grid;
  width: 46px;
  height: 46px;
  background: var(--category-bg, #f5ded2);
  border-radius: 15px;
  font-size: 1.25rem;
  place-items: center;
}

.business-category-card strong { font-size: 0.88rem; }
.business-category-card small { color: var(--muted); font-size: 0.68rem; }
.business-category-card > span:last-child { display: flex; flex-direction: column; gap: 3px; }

.business-results-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.business-results-heading h2,
.business-owner-cta h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
}

.business-results-heading > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.business-search-insight {
  display: none;
  margin: -8px 0 18px;
  padding: 13px 15px;
  align-items: flex-start;
  gap: 11px;
  color: #294d68;
  background: linear-gradient(90deg, #eef6ff, #edfbf8);
  border: 1px solid #cfe4ef;
  border-radius: 15px;
}

.business-search-insight.is-visible { display: flex; }
.business-search-insight > span { display: grid; flex: 0 0 32px; height: 32px; place-items: center; color: #fff; background: #0b8e78; border-radius: 10px; font-weight: 900; }
.business-search-insight strong { display: block; margin-bottom: 3px; font-size: .82rem; }
.business-search-insight p { margin: 0; color: #597083; font-size: .75rem; line-height: 1.5; }

.business-discovery-layout {
  display: grid;
  align-items: start;
  gap: 22px;
  grid-template-columns: 360px minmax(0, 1fr);
}

.mini-map-card {
  position: sticky;
  top: 98px;
  padding: 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.mini-map-surface {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #dce3d6;
  border-radius: 17px;
  background-image: linear-gradient(rgba(153, 166, 146, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(153, 166, 146, 0.22) 1px, transparent 1px);
  background-size: 30px 30px;
}

.mini-road {
  position: absolute;
  height: 34px;
  background: #f9f5ed;
  border: 2px solid #cfd0c9;
}

.mini-road-a { top: 145px; left: -60px; width: 500px; transform: rotate(-25deg); }
.mini-road-b { top: 20px; left: 155px; width: 400px; transform: rotate(72deg); }

.mini-map-label {
  position: absolute;
  z-index: 2;
  padding: 4px 7px;
  color: #59625a;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 700;
}

.label-centro { top: 75px; left: 54px; }
.label-santa { right: 36px; bottom: 50px; }

.mini-business-pin {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 39px;
  height: 39px;
  color: var(--white);
  background: #b84929;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 50% 50% 50% 10%;
  box-shadow: 0 8px 16px rgba(105, 54, 36, 0.22);
  cursor: pointer;
  font-weight: 800;
  place-items: center;
  transform: rotate(-45deg);
}

.mini-business-pin > span { transform: rotate(45deg); }
.pin-1 { top: 94px; left: 155px; }
.pin-2 { top: 196px; right: 54px; }
.pin-3 { bottom: 42px; left: 66px; }

.mini-map-card > p {
  display: flex;
  margin: 10px 5px 2px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.7rem;
}

.mini-map-card > p span { width: 7px; height: 7px; background: #b84929; border-radius: 50%; }

.business-results {
  display: grid;
  gap: 14px;
}

.business-card {
  display: grid;
  padding: 20px;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: 0.2s ease;
  grid-template-columns: 120px minmax(0, 1fr);
}

.business-card:hover {
  border-color: rgba(184, 73, 41, 0.3);
  box-shadow: var(--shadow-sm);
}

.business-card-visual {
  position: relative;
  display: grid;
  min-height: 120px;
  overflow: hidden;
  background: var(--business-bg, #f5ded2);
  border-radius: 17px;
  font-size: 2.4rem;
  place-items: center;
}

.business-card-visual::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  content: "";
}

.business-open-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  color: #175b47;
  background: rgba(240, 255, 247, 0.92);
  border-radius: 7px;
  font-size: 0.62rem;
  font-weight: 800;
}

.business-open-badge.closed { color: #8c351f; background: #fff1ec; }

.business-card-main { min-width: 0; }
.business-card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.business-card-topline h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.14rem; letter-spacing: -0.03em; }
.business-card-topline h3 button { padding: 0; background: none; border: 0; cursor: pointer; text-align: left; }
.business-card-topline h3 button:hover { color: #a13f24; }
.business-rating { flex: 0 0 auto; color: #8c5b00; font-size: 0.75rem; font-weight: 800; }
.business-meta { margin: 5px 0 10px; color: var(--muted); font-size: 0.77rem; }
.business-description { margin: 0; color: #5e6a66; font-size: 0.84rem; line-height: 1.5; }
.business-match { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.business-match span { color: #0b6a5b; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.business-match strong { padding: 5px 8px; color: #144f68; background: #e9f6ff; border: 1px solid #cce4f2; border-radius: 8px; font-size: .7rem; }

.business-tags {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.business-tags span {
  padding: 5px 8px;
  color: #6e5b50;
  background: #f3eee8;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 700;
}

.business-card-actions {
  display: flex;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.business-card-actions button {
  min-height: 35px;
  padding: 0 11px;
  color: #6b554b;
  background: transparent;
  border: 1px solid #ded3ca;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.business-card-actions button.primary-contact {
  color: var(--white);
  background: #b84929;
  border-color: #b84929;
}

.business-card-actions button:hover { border-color: #b84929; }
.location-capture-button { width: 100%; padding: 12px 14px; color: #075d50; background: #e9f8f5; border: 1px dashed #85cabb; border-radius: 12px; cursor: pointer; font-weight: 800; text-align: center; }
.location-capture-button:hover { background: #dff4ef; border-style: solid; }

.business-owner-cta {
  display: grid;
  margin-top: 58px;
  padding: 38px 42px;
  align-items: center;
  gap: 30px;
  color: var(--white);
  background: #213a34;
  border-radius: 28px;
  grid-template-columns: 1fr auto;
}

.business-owner-cta .directory-kicker { color: #f5b596; }
.business-owner-cta p { max-width: 680px; margin: 10px 0 0; color: #cfddd8; line-height: 1.55; }

.business-dialog .dialog-header { background: #fff8f3; }
.business-detail-hero { display: grid; padding: 24px 26px 18px; gap: 18px; grid-template-columns: 84px 1fr; }
.business-detail-icon { display: grid; width: 84px; height: 84px; background: var(--business-bg, #f5ded2); border-radius: 22px; font-size: 2.2rem; place-items: center; }
.business-detail-hero h2 { margin: 5px 0; font-family: "Manrope", sans-serif; letter-spacing: -0.04em; }
.business-detail-hero p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.business-detail-body { padding: 0 26px 26px; }
.business-info-grid { display: grid; margin-bottom: 22px; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.business-info-grid div { padding: 13px; background: #f4f2ec; border-radius: 12px; }
.business-info-grid span { display: block; color: var(--muted); font-size: 0.68rem; }
.business-info-grid strong { display: block; margin-top: 4px; font-size: 0.8rem; }
.catalog-title { display: flex; align-items: baseline; justify-content: space-between; }
.catalog-title h3 { margin: 0; font-family: "Manrope", sans-serif; }
.catalog-title span { color: var(--muted); font-size: 0.72rem; }
.catalog-list { display: grid; margin-top: 12px; gap: 9px; }
.catalog-item { display: grid; padding: 12px 14px; align-items: center; gap: 10px; background: #fffaf6; border: 1px solid #eadfd6; border-radius: 12px; grid-template-columns: 1fr auto; }
.catalog-item div { display: flex; flex-direction: column; }
.catalog-item small { margin-top: 2px; color: var(--muted); }
.catalog-item strong:last-child { color: #a13f24; }
.business-detail-actions { display: flex; margin-top: 18px; gap: 10px; }
.business-detail-actions button { flex: 1; }

.planning-header { background: #fff8f3; }
.planning-intro { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.planning-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.planning-grid article { padding: 15px; background: #f4f2ec; border-radius: 14px; }
.planning-grid article > span { color: #b84929; font-family: "Manrope", sans-serif; font-size: 0.72rem; font-weight: 800; }
.planning-grid article strong { display: block; margin-top: 6px; }
.planning-grid article p { margin: 5px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.planning-chat-link { display: grid; margin-top: 16px; padding: 15px; align-items: center; gap: 12px; color: var(--white); background: #b84929; border-radius: 14px; text-decoration: none; grid-template-columns: auto 1fr; }
.planning-chat-link > span { display: grid; width: 38px; height: 38px; background: rgba(255,255,255,.16); border-radius: 11px; place-items: center; }
.planning-chat-link div { display: flex; flex-direction: column; }
.planning-chat-link small { margin-top: 2px; color: #f8d7ca; }
.planning-chat-link:hover { background: #8c351f; }

/* Identidad oficial de Apaxco Sabe */

.brand-copy,
.hero h1,
.page-intro h1,
.profile-hero h1,
.section-heading h2,
.dialog-header h2,
.profile-card h2,
.search-results-heading h2,
.directory-hero h1,
.business-results-heading h2,
.business-owner-cta h2,
.business-card-topline h3,
.catalog-title h3 {
  font-family: "Poppins", sans-serif;
}

.directory-brand-logo {
  display: none;
  width: 188px;
  height: 55px;
  object-fit: contain;
  object-position: left center;
}

body[data-app-mode="directory"] .directory-brand-logo { display: block; }
body[data-app-mode="directory"] .brand-mark,
body[data-app-mode="directory"] .brand-copy { display: none; }

.directory-hero-logo {
  width: min(315px, 72%);
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(4, 27, 67, 0.16);
}

body[data-app-mode="directory"] .app-switcher button[data-app-mode="directory"].is-active {
  color: #0F2D5B;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 255, 0.15), 0 4px 12px rgba(15, 45, 91, 0.1);
}

body[data-app-mode="directory"] .switcher-icon,
.directory-search > button,
.directory-primary-button,
.mini-business-pin,
.business-card-actions button.primary-contact {
  background: #0B5ED7;
}

.directory-search > button:hover,
.directory-primary-button:hover,
.business-card-actions button.primary-contact:hover {
  background: #0F2D5B;
}

.directory-hero {
  color: #fff;
  background: linear-gradient(135deg, #0F2D5B 0%, #0B5ED7 58%, #2563FF 100%);
  border-color: transparent;
}

.directory-hero::before {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.24), transparent 66%);
}

.directory-hero h1 span { color: #43E1D1; }
.directory-hero-copy > p { color: #DBEAFE; }
.directory-eyebrow { color: #fff; background: rgba(20, 184, 166, 0.26); }
.creator-plan-button { color: #E9F7FF; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.creator-plan-button:hover { color: #fff; border-color: #14B8A6; }
.directory-search { border-color: rgba(255,255,255,.28); box-shadow: 0 18px 42px rgba(0, 18, 53, .28); }
.directory-search:focus-within { border-color: #14B8A6; box-shadow: 0 0 0 3px rgba(20,184,166,.22), 0 18px 42px rgba(0,18,53,.28); }
.directory-search svg { stroke: #0B5ED7; }
.popular-business-searches { color: #D8E8FF; }
.popular-business-searches button { color: #fff; border-color: rgba(255,255,255,.5); }
.directory-hero-visual { background: #EAF2FF; border-color: rgba(255,255,255,.9); }
.pin-main { background: #0B5ED7; box-shadow: 0 12px 25px rgba(11,94,215,.28); }
.pin-small { background: #14B8A6; }

.directory-filter-row {
  display: flex;
  margin-top: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-filter-row button {
  min-height: 35px;
  padding: 0 12px;
  color: #EAF2FF;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
}

.directory-filter-row button.is-active,
.directory-filter-row button:hover {
  color: #0F2D5B;
  background: #fff;
}

.directory-kicker,
.directory-link { color: #0B5ED7; }
.business-category-card:hover,
.business-category-card.is-active { border-color: rgba(37,99,255,.4); }
.business-category-card.is-active { background: #F2F7FF; }
.mini-map-surface { background-color: #EAF2FF; }
.business-card:hover { border-color: rgba(37,99,255,.3); }
.business-card-topline h3 button:hover { color: #0B5ED7; }
.business-verified {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #087968;
  background: #DDF8F4;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
}
.business-card-actions button:hover { border-color: #2563FF; }
.business-open-badge { color: #087968; background: #DDF8F4; }
.business-open-badge.closed { color: #6B7280; background: #E5E7EB; }
.business-owner-cta { background: #0F2D5B; }
.business-owner-cta .directory-kicker { color: #43E1D1; }
.business-dialog .dialog-header,
.planning-header { background: #F2F7FF; }
.catalog-item { background: #F7FAFF; border-color: #DCE7F7; }
.catalog-item strong:last-child { color: #0B5ED7; }
.catalog-item { width: 100%; color: inherit; text-align: left; cursor: pointer; }
.catalog-item:hover { border-color: #9DC0FF; box-shadow: 0 8px 22px rgba(15,45,91,.08); transform: translateY(-1px); }
.dialog-header:has(.dialog-back) { grid-template-columns: auto 1fr auto; }
.dialog-back { display: grid; width: 42px; height: 42px; padding: 0; color: #0F2D5B; background: #EEF4FF; border: 1px solid #D8E5FA; border-radius: 13px; cursor: pointer; font-size: 1.2rem; place-items: center; }
.dialog-back:hover { color: #0B5ED7; background: #E3EDFF; }
.product-detail { display: grid; padding: 0 26px 28px; gap: 24px; grid-template-columns: minmax(220px, .9fr) 1.1fr; }
.product-detail-visual { display: grid; min-height: 320px; overflow: hidden; background: radial-gradient(circle at 35% 25%, #fff 0 8%, transparent 9%), linear-gradient(145deg, var(--business-bg, #E7EEFF), #fff); border: 1px solid #DCE7F7; border-radius: 24px; place-items: center; }
.product-detail-visual span { display: grid; width: 132px; height: 132px; background: rgba(255,255,255,.88); border-radius: 38px; box-shadow: 0 22px 50px rgba(15,45,91,.15); font-size: 4.4rem; place-items: center; transform: rotate(-4deg); }
.product-detail-copy { display: flex; padding: 16px 0; flex-direction: column; align-items: flex-start; justify-content: center; }
.product-detail-copy h2 { margin: 14px 0 2px; font-family: "Poppins", sans-serif; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.045em; }
.product-detail-copy > p { margin: 18px 0; color: #52627A; line-height: 1.7; }
.product-price { color: #0B5ED7; font-family: "Poppins", sans-serif; font-size: 1.35rem; }
.product-contact-button { width: 100%; margin-top: 24px; }
.form-status { min-height: 20px; margin: 8px 0 0; color: #087968; font-size: .78rem; font-weight: 700; }
.form-status.is-error { color: #B42318; }
.privacy-copy { margin: 0; padding: 12px 14px; color: #52627A; background: #F2F7FF; border-radius: 12px; font-size: .78rem; line-height: 1.55; }
.privacy-panel { display: grid; gap: 10px; }
.privacy-panel article { padding: 15px; background: #F7FAFF; border: 1px solid #DCE7F7; border-radius: 14px; }
.privacy-panel article strong { color: #0F2D5B; font-family: "Poppins", sans-serif; }
.privacy-panel article p { margin: 5px 0 0; color: #52627A; line-height: 1.55; }
.panel-section-note { margin: 0 0 16px; padding: 12px 14px; color: #0F2D5B; background: #EAF2FF; border-left: 4px solid #0B5ED7; border-radius: 9px; font-size: .8rem; }
.status-indicator { display: inline-flex; padding: 5px 9px; align-items: center; gap: 6px; color: #087968; background: #DDF8F4; border-radius: 999px; font-size: .7rem; font-style: normal; font-weight: 800; }
.status-indicator::before { width: 7px; height: 7px; background: #14B8A6; border-radius: 50%; content: ""; }
.inline-panel-action { min-height: 34px; margin-left: 10px; padding-inline: 12px; vertical-align: middle; }
button:disabled { cursor: wait; opacity: .58; }
.planning-grid article > span { color: #0B5ED7; }
.planning-chat-link { background: #0B5ED7; }
.planning-chat-link small { color: #D8E8FF; }
.planning-chat-link:hover { background: #0F2D5B; }
.planning-actions { display: grid; margin-top: 16px; gap: 9px; grid-template-columns: 1fr 1fr; }

/* Pantalla de bienvenida: se muestra una vez por navegador */

.splash-screen {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #E9F6FF 0%, #fff 38%, #0B5ED7 38.2%, #0F2D5B 100%);
  place-items: center;
  transition: opacity .35s ease, visibility .35s ease;
}

.splash-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-sky { position: absolute; top: -18vw; left: -5vw; width: 70vw; height: 50vw; background: radial-gradient(circle at 50% 70%, rgba(37,99,255,.25), transparent 60%); }
.splash-content { position: relative; z-index: 3; display: flex; width: min(560px, calc(100% - 32px)); min-height: min-content; padding: clamp(18px, 3vh, 32px); flex-direction: column; align-items: center; text-align: center; }
.splash-content img { width: min(340px, 78%); max-height: 150px; padding: 12px 18px; background: rgba(255,255,255,.96); border-radius: 22px; box-shadow: 0 22px 60px rgba(0,25,74,.2); object-fit: contain; }
.splash-content h1 { max-width: 540px; margin: clamp(18px, 3vh, 28px) 0 8px; font-family: "Poppins", sans-serif; font-size: clamp(1.9rem, 4vh, 3rem); letter-spacing: -.05em; line-height: 1.04; }
.splash-content p { max-width: 480px; margin: 0; color: #D8E8FF; line-height: 1.55; }
.splash-content button { display: inline-flex; min-height: 50px; margin-top: clamp(18px, 3vh, 26px); padding: 0 24px; align-items: center; gap: 14px; color: #0F2D5B; background: #fff; border: 0; border-radius: 14px; cursor: pointer; font-weight: 800; }
.splash-content button:hover { color: #0B5ED7; transform: translateY(-2px); }
.splash-content button span { font-size: 1.25rem; }
.splash-waves span { position: absolute; right: -20%; bottom: -18%; width: 140%; height: 32%; background: rgba(20,184,166,.72); border-radius: 48% 52% 0 0; transform: rotate(-4deg); }
.splash-waves span:nth-child(2) { bottom: -22%; background: rgba(37,99,255,.78); transform: rotate(3deg); }
.splash-waves span:nth-child(3) { bottom: -27%; background: #0F2D5B; transform: rotate(-1deg); }

@media (max-height: 720px) and (min-width: 621px) {
  .splash-content { padding-block: 16px; }
  .splash-content img { width: min(280px, 68%); max-height: 112px; padding: 8px 14px; }
  .splash-content h1 { max-width: 500px; margin-top: 14px; font-size: clamp(1.75rem, 4.8vh, 2.35rem); }
  .splash-content p { font-size: .92rem; }
  .splash-content button { min-height: 46px; margin-top: 14px; }
}

/* Paneles demostrativos de comerciante y administración */

.operations-dialog { width: min(1080px, calc(100% - 30px)); }
.operations-layout { display: grid; min-height: 560px; grid-template-columns: 210px 1fr; }
.operations-sidebar { display: flex; padding: 24px 15px; flex-direction: column; gap: 6px; color: #fff; background: #0F2D5B; }
.operations-sidebar img { width: 145px; margin: 0 auto 22px; padding: 8px; background: #fff; border-radius: 12px; }
.operations-sidebar button { min-height: 42px; padding: 0 12px; color: #D8E8FF; background: transparent; border: 0; border-radius: 9px; cursor: pointer; text-align: left; }
.operations-sidebar button.is-active { color: #fff; background: #0B5ED7; }
.operations-main { padding: 28px; overflow: auto; }
.operations-main > h2 { margin: 0 0 20px; font-family: "Poppins", sans-serif; letter-spacing: -.04em; }
.operations-main > h3 { margin: 24px 0 12px; font-family: "Poppins", sans-serif; }
.managed-business-card { display: grid; padding: 15px; align-items: center; gap: 13px; background: #F7FAFF; border: 1px solid #DCE7F7; border-radius: 16px; grid-template-columns: auto 1fr auto auto; }
.managed-business-card div { display: flex; flex-direction: column; }
.managed-business-card small { margin-top: 3px; color: var(--muted); }
.verification-chip { padding: 6px 9px; color: #087968; background: #DDF8F4; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.operations-metrics { display: grid; margin-top: 16px; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.operations-metrics article { display: grid; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; grid-template-columns: auto 1fr; }
.operations-metrics article > span { grid-row: 1 / 3; margin-right: 10px; color: #0B5ED7; font-size: 1.3rem; }
.operations-metrics strong { font-size: 1.35rem; }
.operations-metrics small { color: var(--muted); }
.managed-products,
.admin-business-list { display: grid; gap: 8px; }
.managed-products article,
.admin-business-list article { display: grid; padding: 11px 13px; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.managed-products article { grid-template-columns: auto 1fr auto auto; }
.managed-products article > span,
.admin-business-icon { display: grid; width: 40px; height: 40px; background: var(--business-bg, #EAF2FF); border-radius: 10px; place-items: center; }
.managed-products article div,
.admin-business-list article div { display: flex; flex-direction: column; }
.managed-products small,
.admin-business-list small { color: var(--muted); }
.managed-products em,
.admin-business-list em { padding: 5px 8px; color: #087968; background: #DDF8F4; border-radius: 999px; font-size: .66rem; font-style: normal; font-weight: 800; }
.managed-products button,
.admin-business-list button { color: #0B5ED7; background: transparent; border: 0; cursor: pointer; font-weight: 700; }
.admin-summary { display: flex; margin-bottom: 14px; gap: 7px; }
.admin-summary span { padding: 7px 10px; color: #53657A; background: #EDF2F8; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.admin-summary span:first-child { color: #0B5ED7; background: #E7EEFF; }
.admin-business-list article { grid-template-columns: auto 1fr auto auto; }
.admin-business-list em.pending { color: #8A5900; background: #FFF1CC; }

@media (max-width: 1040px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .feed-layout { grid-template-columns: minmax(0, 1fr) 285px; }
  .app-switcher button { min-width: 150px; }
  .business-category-grid { grid-template-columns: repeat(3, 1fr); }
  .directory-hero { grid-template-columns: minmax(0, 1fr) 320px; padding: 44px; }
  .directory-hero-visual { margin-left: 22px; }
  .business-discovery-layout { grid-template-columns: 310px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .topbar { padding-inline: 18px; flex-wrap: wrap; row-gap: 7px; }
  .app-switcher { order: 3; width: 100%; }
  .app-switcher button { min-width: 0; justify-content: center; }
  .app-shell { width: min(100% - 32px, var(--max-width)); padding-top: 20px; }
  .hero { padding: 38px 34px; grid-template-columns: 1fr 200px; }
  .hero h1 { font-size: clamp(2.3rem, 8vw, 3.7rem); }
  .feed-layout { grid-template-columns: 1fr; }
  .community-sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .rules-card { grid-column: 1 / -1; }
  .compact-feed { grid-template-columns: 1fr; }
  .floating-create { display: none; }
  .bottom-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    align-items: end;
    background: rgba(255, 253, 248, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 25px rgba(23, 49, 43, 0.07);
    backdrop-filter: blur(18px);
    grid-template-columns: repeat(6, 1fr);
  }
  .bottom-nav > button {
    display: flex;
    height: 51px;
    padding: 3px 2px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #7c8a85;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 0.59rem;
    font-weight: 700;
  }
  .bottom-nav button svg { width: 22px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.8; }
  .bottom-nav button.is-active { color: var(--brand); }
  .bottom-nav .create-nav { position: relative; overflow: visible; }
  .bottom-nav .create-nav > span {
    position: absolute;
    top: -27px;
    display: grid;
    width: 53px;
    height: 53px;
    color: var(--white);
    background: var(--brand);
    border: 5px solid var(--paper);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(8, 75, 61, 0.25);
    font-size: 1.7rem;
    font-weight: 400;
    place-items: center;
  }
  .bottom-nav .create-nav small { position: absolute; bottom: 2px; font-size: 0.65rem; }
  .community-help-hero { grid-template-columns: 1fr; }
  .community-evidence-fields, .neighbor-levels { grid-template-columns: 1fr; }
  .neighbor-levels ol { grid-template-columns: repeat(3, 1fr); }
  .toast { bottom: 92px; }
  .directory-hero { min-height: auto; padding: 38px 34px; grid-template-columns: 1fr; }
  .directory-hero-visual { width: 100%; min-height: 260px; margin: 34px 0 0; }
  .directory-hero h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
  .business-discovery-layout { grid-template-columns: 1fr; }
  .mini-map-card { position: static; }
  .mini-map-surface { height: 260px; }
  body[data-app-mode="directory"] .directory-bottom-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 20px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 25px rgba(23, 49, 43, 0.07);
    backdrop-filter: blur(18px);
    grid-template-columns: repeat(4, 1fr);
  }
  .directory-bottom-nav button {
    display: flex;
    padding: 4px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #7c746e;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .directory-bottom-nav button.is-active { color: #b84929; }
  .directory-bottom-nav span { font-size: 1.25rem; }
  .directory-bottom-nav small { font-size: 0.65rem; font-weight: 700; }
  .directory-brand-logo { width: 168px; height: 48px; }
  .operations-layout { grid-template-columns: 1fr; }
  .operations-sidebar { padding: 12px; flex-direction: row; overflow-x: auto; }
  .operations-sidebar img { width: 110px; margin: 0 8px 0 0; }
  .operations-sidebar button { flex: 0 0 auto; }
}

@media (max-width: 620px) {
  .topbar { min-height: 66px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong, .brand-copy em { font-size: 1.12rem; }
  .brand-copy { max-width: 165px; flex-wrap: wrap; gap: 0 4px; line-height: 1; }
  .app-switcher { border-radius: 13px; }
  .app-switcher button { padding: 7px 8px; }
  .app-switcher small { display: none; }
  .switcher-icon { width: 27px; height: 27px; border-radius: 8px; }
  .location-chip span { display: none; }
  .location-chip { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .app-shell { width: calc(100% - 24px); padding-bottom: 100px; }
  .hero { min-height: 340px; padding: 30px 24px; grid-template-columns: 1fr; }
  .hero-copy { align-self: start; }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 3.5rem); }
  .hero p { max-width: 88%; font-size: 0.95rem; }
  .hero-illustration { position: absolute; right: 0; bottom: -6px; width: 58%; min-height: 160px; }
  .sun { width: 68px; height: 68px; }
  .hill { width: 290px; }
  .bubble-one { left: 0; }
  .search-box { width: calc(100% - 24px); min-height: 60px; padding-inline: 15px; }
  .search-box span { font-size: 0.88rem; }
  .search-box kbd { display: none; }
  .category-section, .feed-section { padding-top: 42px; }
  .category-grid {
    display: flex;
    margin-right: -12px;
    padding: 0 12px 8px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-card { flex: 0 0 118px; min-height: 110px; scroll-snap-align: start; }
  .community-note { padding: 16px; align-items: start; }
  .community-note p { line-height: 1.45; }
  .feed-heading { align-items: flex-start; flex-direction: column; }
  .feed-filter { width: 100%; }
  .feed-filter button { flex: 1; }
  .post-card { padding: 18px; }
  .post-actions { align-items: flex-end; }
  .post-actions button { flex-direction: column; gap: 2px; font-size: 0.66rem; }
  .post-action-group { gap: 0; }
  .community-sidebar { grid-template-columns: 1fr; }
  .rules-card { grid-column: auto; }
  .profile-hero { padding: 24px; grid-template-columns: auto 1fr; }
  .profile-hero .secondary-button { grid-column: 1 / -1; width: 100%; }
  .profile-avatar { width: 65px; height: 65px; border-radius: 22px; }
  .profile-hero h1 { font-size: 1.65rem; }
  .profile-hero p { font-size: 0.8rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .settings-card { grid-column: auto; }
  .profile-stats div { padding: 18px 8px; }
  .profile-stats strong { font-size: 1.35rem; }
  .profile-stats span { font-size: 0.69rem; }
  .app-dialog { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .dialog-header { padding: 21px 20px 15px; }
  .dialog-body { max-height: 61vh; padding: 20px; }
  .dialog-actions { padding: 15px 20px calc(18px + env(safe-area-inset-bottom)); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .post-detail-content { padding: 0 20px 24px; }
  .reply-form { grid-template-columns: 1fr; }
  .search-dialog { align-self: end; margin-top: auto; }
  .directory-hero { padding: 28px 22px; border-radius: 24px; }
  .directory-badges { align-items: flex-start; flex-direction: column; }
  .directory-hero h1 { font-size: clamp(2.4rem, 13vw, 3.5rem); }
  .directory-hero-copy > p { font-size: 0.92rem; }
  .directory-search { min-height: 58px; padding-left: 14px; }
  .directory-search > button { min-height: 44px; padding-inline: 14px; font-size: 0.78rem; }
  .popular-business-searches { align-items: flex-start; }
  .popular-business-searches > span { width: 100%; }
  .directory-hero-visual { min-height: 230px; border-width: 7px; border-radius: 36px; }
  .directory-categories-section, .business-discovery { padding-top: 43px; }
  .business-category-grid {
    display: flex;
    margin-right: -12px;
    padding: 0 12px 8px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .business-category-grid::-webkit-scrollbar { display: none; }
  .business-category-card { flex: 0 0 132px; min-height: 118px; scroll-snap-align: start; }
  .business-results-heading { align-items: flex-start; flex-direction: column; }
  .mini-map-card { display: none; }
  .business-card { padding: 16px; gap: 13px; grid-template-columns: 82px minmax(0, 1fr); }
  .business-card-visual { min-height: 96px; }
  .business-card-topline { flex-direction: column; gap: 4px; }
  .business-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .business-card-actions { grid-column: 1 / -1; }
  .business-card-actions button { flex: 1; }
  .business-owner-cta { padding: 28px 24px; grid-template-columns: 1fr; }
  .directory-primary-button { width: 100%; }
  .business-detail-hero { grid-template-columns: 68px 1fr; padding-inline: 20px; }
  .business-detail-icon { width: 68px; height: 68px; border-radius: 18px; }
  .business-detail-body { padding-inline: 20px; }
  .business-info-grid { grid-template-columns: 1fr; }
  .business-detail-actions { flex-direction: column; }
  .product-detail { padding-inline: 20px; grid-template-columns: 1fr; }
  .product-detail-visual { min-height: 220px; }
  .product-detail-copy { padding-top: 0; }
  .planning-grid { grid-template-columns: 1fr; }
  .planning-actions { grid-template-columns: 1fr; }
  .directory-brand-logo { width: 150px; height: 42px; }
  .directory-hero-logo { width: 88%; }
  .directory-filter-row button { flex: 1; padding-inline: 8px; }
  .splash-content { padding: 28px 14px; }
  .splash-content img { width: 92%; padding: 12px; border-radius: 18px; }
  .splash-content h1 { margin-top: 26px; font-size: 2.25rem; }
  .operations-dialog { width: 100%; }
  .operations-main { padding: 20px; }
  .operations-sidebar img { display: none; }
  .operations-metrics { grid-template-columns: 1fr; }
  .managed-business-card { grid-template-columns: auto 1fr; }
  .managed-business-card .verification-chip,
  .managed-business-card .secondary-button { grid-column: auto; }
  .managed-products article { grid-template-columns: auto 1fr auto; }
  .managed-products article button { grid-column: 2 / -1; justify-self: start; }
  .admin-summary { overflow-x: auto; }
  .admin-business-list article { grid-template-columns: auto 1fr auto; }
  .admin-business-list article > button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Estado, instalación y gestión conectada */
.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #dbe8e4;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #31544c;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}
.connection-status i { width: 8px; height: 8px; border-radius: 50%; background: #18a779; box-shadow: 0 0 0 4px #dff7ef; }
.connection-status.is-offline { color: #8a3b31; border-color: #f1d1cc; }
.connection-status.is-offline i { background: #dc5b4e; box-shadow: 0 0 0 4px #fde9e6; }
.connection-status.has-pending i { background: #e0a82e; box-shadow: 0 0 0 4px #fff3cf; animation: pulse 1.5s infinite; }
.saved-businesses { margin-top: 34px; }
.saved-businesses .business-results { display: grid; gap: 16px; }
.settings-card button.is-ready { background: linear-gradient(90deg,#eaf5ff,#e4fbf7); color: #075d50; }
.settings-card button.is-installed { opacity: .65; }
.admin-security-note { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #fff7df; color: #72560d; font-size: .82rem; line-height: 1.5; }
.admin-business-list button:disabled { opacity: .55; cursor: wait; }
.admin-source-link { display: inline-flex; margin-top: 6px; color: #075fcf; font-size: .72rem; font-weight: 750; text-decoration: none; }
.admin-source-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .connection-status { position: fixed; top: calc(72px + env(safe-area-inset-top)); right: 12px; z-index: 30; box-shadow: 0 8px 24px rgba(8,43,38,.12); }
  .admin-business-list article > button { display: inline-flex; grid-column: 2 / -1; justify-self: start; }
}

/* Cuentas y permisos */
.account-card { grid-column: 1 / -1; background: linear-gradient(135deg,#f2f8ff,#ecfbf8); border-color: #cfe7e2; }
.account-card > p { max-width: 660px; }
.account-card > .primary-button { margin-top: 16px; width: fit-content; }
.account-summary { display: flex; align-items: center; gap: 14px; margin: 12px 0 18px; }
.account-summary > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: #0b8e78; color: white; font-family: Poppins,sans-serif; font-weight: 800; }
.account-summary h2,.account-summary p { margin: 0; }
.account-summary p { color: #61716d; font-size: .86rem; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-dialog { width: min(560px,calc(100% - 24px)); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; margin: 0 24px; border-radius: 14px; background: #edf3f1; }
.auth-tabs button { padding: 11px; border: 0; border-radius: 10px; background: transparent; color: #5c6d68; font-weight: 700; cursor: pointer; }
.auth-tabs button.is-active { background: white; color: #075d50; box-shadow: 0 4px 14px rgba(12,58,49,.09); }
.auth-form { display: none; gap: 14px; }
.auth-form.is-active { display: grid; }
.auth-form label > span,.account-type-fieldset legend { display: block; margin-bottom: 6px; color: #203c35; font-weight: 700; font-size: .84rem; }
.auth-form input:not([type="radio"]) { width: 100%; padding: 12px 14px; border: 1px solid #cfddd9; border-radius: 12px; font: inherit; }
.auth-form small { display: block; margin-top: 5px; color: #6b7d78; }
.account-type-fieldset { display: grid; gap: 9px; padding: 14px; border: 1px solid #d7e4e0; border-radius: 14px; }
.account-type-fieldset label { display: flex; align-items: center; gap: 9px; color: #334e47; }
.auth-submit { width: 100%; justify-content: center; }
.auth-privacy { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #e3ebe8; color: #687873; font-size: .76rem; line-height: 1.5; }

@media (max-width: 560px) {
  .account-actions { flex-direction: column; }
  .account-actions button { width: 100%; justify-content: center; }
  .auth-tabs { margin-inline: 16px; }
  .community-help-hero { padding: 25px 20px; border-radius: 22px; }
  .community-help-hero h1 { font-size: 2.35rem; }
  .neighbor-score-card { padding: 18px; }
  .community-review-toolbar { align-items: stretch; flex-direction: column; }
  .community-review-card > header { padding: 18px; grid-template-columns: auto 1fr; }
  .community-review-card header em { grid-column: 1 / -1; width: max-content; }
  .community-review-meta { padding: 0 18px 12px; flex-wrap: wrap; }
  .community-signal-summary { padding-inline: 12px; }
  .community-evidence-form { padding: 18px; }
  .community-evidence-actions, .community-review-signin { align-items: stretch; flex-direction: column; }
  .community-evidence-actions button, .community-review-signin button { width: 100%; }
  .neighbor-levels { padding: 20px; }
  .neighbor-levels ol { grid-template-columns: 1fr; }
}

/* V36 · rendimiento percibido y renderizado progresivo */
.business-card {
  content-visibility: auto;
  contain-intrinsic-size: 380px;
}
.business-skeleton-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.business-skeleton {
  display: block;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(105deg, #edf3f1 20%, #f8fbfa 38%, #edf3f1 56%);
  background-size: 220% 100%;
  border: 1px solid #e3ebe8;
  border-radius: 22px;
  animation: business-skeleton-pulse 1.25s ease-in-out infinite;
}
@keyframes business-skeleton-pulse { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (max-width: 720px) {
  .business-skeleton-grid { grid-template-columns: 1fr; }
  .business-skeleton:nth-child(n + 4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .business-skeleton { animation: none; }
}
