:root {
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --text: #1f1c17;
  --muted: #6d6459;
  --line: rgba(31, 28, 23, 0.08);
  --brand: #114b5f;
  --brand-strong: #0a3644;
  --accent: #d97d54;
  --accent-soft: #fff0e6;
  --success: #1f7a4d;
  --shadow: 0 18px 50px rgba(17, 75, 95, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 125, 84, 0.18), transparent 28%),
    linear-gradient(180deg, #f9f4ea 0%, #f1ede3 55%, #ece7db 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

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

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 38px;
}

.topbar-brand {
  display: flex;
  align-items: center;
}

.topbar-logo {
  width: 380px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1672 / 941;
  visibility: hidden;
}

.business-brand-ready .topbar-logo {
  visibility: visible;
}

.app-shell:has(.page--home) .topbar-logo {
  width: min(52vw, 520px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 2vw + 1rem, 3rem);
  line-height: 1;
}

.page {
  display: grid;
  gap: 18px;
}

.compact-header-view .topbar {
  margin-bottom: 16px;
}

.compact-header-view .topbar-logo {
  width: 380px;
}

.compact-header-view .nav-controls {
  margin-bottom: 12px;
}


/* ESTRUCTURA ACTUAL - usado por MINIAPP-ESTRUCTURA */
.section-card,
.info-card,
.modal-card {
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* DUDOSO - utilidad heredada conservada por ahora */
.hero-card,
.detail-card {
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ESTRUCTURA ACTUAL - usado por MINIAPP-ESTRUCTURA */
.section-card {
  padding: 24px;
}

.hero-card,
.detail-card {
  padding: 24px;
}

.hero-card {
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(217, 125, 84, 0.2), transparent 70%);
  pointer-events: none;
}

/* DUDOSO - utilidad heredada conservada por ahora */
.hero-layout,
.two-column {
  display: grid;
  gap: 18px;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
}

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

.stack {
  display: grid;
  gap: 16px;
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.primary-button,
.secondary-button,
.ghost-button {
  padding: 12px 18px;
  font-weight: 700;
}

a.primary-button,
a.secondary-button,
a.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--button-primary-bg, var(--brand));
  color: var(--button-primary-text, #fff);
}

.primary-button:hover {
  background: var(--button-primary-bg-hover, var(--brand-strong));
}

.secondary-button {
  background: var(--button-secondary-bg, #ebf6f9);
  color: var(--button-secondary-text, var(--brand));
  border: 1px solid var(--button-secondary-border, rgba(17, 75, 95, 0.16));
}

.secondary-button:hover {
  background: var(--button-secondary-bg-hover, var(--button-secondary-bg, #ebf6f9));
}

.ghost-button {
  background: var(--button-secondary-bg, transparent);
  color: var(--button-secondary-text, var(--brand));
  border: 1px solid var(--button-secondary-border, rgba(17, 75, 95, 0.16));
}

.ghost-button:hover {
  background: var(--button-secondary-bg-hover, var(--button-secondary-bg, transparent));
}

.icon-button {
  width: 38px;
  height: 38px;
  background: var(--button-secondary-bg, #f0eee7);
  color: var(--button-secondary-text, var(--muted));
  border: 1px solid var(--button-secondary-border, transparent);
}

.icon-button:hover {
  background: var(--button-secondary-bg-hover, var(--button-secondary-bg, #f0eee7));
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  gap: 20px;
}

.home-primary-panel,
.home-secondary-panel {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.home-action-list,
.home-info-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.home-action-title {
  margin: 22px 0 0;
  text-align: center;
}

.home-operations-notice {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: none;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.home-operations-notice span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.home-operations-title {
  width: min(100%, 590px);
  margin: 0 auto;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
}

.home-operations-notice--normal {
  border-color: var(--line);
  background: #fff;
}

.home-operations-notice--agile {
  border-color: rgba(44, 123, 74, 0.34);
  background: rgba(224, 244, 232, 0.9);
}

.home-operations-notice--agile span {
  color: #23633a;
}

.home-operations-notice--moderate {
  border-color: rgba(185, 109, 26, 0.36);
  background: rgba(255, 235, 188, 0.86);
}

.home-operations-notice--moderate span {
  color: #8a4f12;
}

.home-operations-notice--demand {
  border-color: rgba(158, 47, 31, 0.42);
  background: rgba(250, 219, 211, 0.9);
}

.home-operations-notice--demand span {
  color: #9e2f1f;
}

.home-operations-notice--paused {
  border-color: rgba(158, 47, 31, 0.45);
  background: rgba(158, 47, 31, 0.12);
}

.home-family-demand {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.home-family-demand-item {
  display: grid;
  gap: 3px;
  min-width: 116px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  align-content: center;
  text-align: center;
  font-weight: 800;
}

.home-family-demand-item strong {
  color: var(--text);
  font-size: 0.92rem;
}

.home-family-demand-item span {
  font-size: 0.86rem;
}

.home-family-demand--agile {
  border-color: rgba(44, 123, 74, 0.34);
  background: rgba(224, 244, 232, 0.9);
}

.home-family-demand--agile span {
  color: #23633a;
}

.home-family-demand--moderate {
  border-color: rgba(185, 109, 26, 0.36);
  background: rgba(255, 235, 188, 0.86);
}

.home-family-demand--moderate span {
  color: #8a4f12;
}

.home-family-demand--full {
  border-color: rgba(158, 47, 31, 0.42);
  background: rgba(250, 219, 211, 0.9);
}

.home-family-demand--full span {
  color: #9e2f1f;
}

.home-demand-choice {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(158, 47, 31, 0.34);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 244, 0.96);
  text-align: center;
}

.home-demand-choice strong {
  color: var(--text);
  font-size: 1.2rem;
}

.home-demand-choice p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.home-demand-choice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.home-demand-primary-action {
  flex: 0 1 auto;
}

.home-demand-secondary-actions,
.home-demand-choice-actions--secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.home-demand-choice-actions .primary-button,
.home-demand-choice-actions .secondary-button {
  width: auto;
  min-width: 190px;
  padding-inline: 18px;
  justify-content: center;
}

.home-action-button {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  border: 1px solid var(--button-secondary-border, rgba(17, 75, 95, 0.14));
  border-radius: var(--radius-md);
  background: var(--button-secondary-bg, #fff);
  color: var(--button-secondary-text, var(--text));
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 75, 95, 0.28);
  box-shadow: 0 14px 34px rgba(17, 75, 95, 0.1);
  background: var(--button-secondary-bg-hover, var(--button-secondary-bg, #fff));
}

.home-action-button--primary {
  background: var(--button-primary-bg, var(--brand));
  color: var(--button-primary-text, #fff);
  border-color: transparent;
}

.home-action-button--primary:hover {
  background: var(--button-primary-bg-hover, var(--brand-strong));
}

.home-info-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
}

.home-info-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-info-card p {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.local-gallery-view {
  display: grid;
  gap: 18px;
}

.local-gallery-view h2 {
  margin-bottom: 0;
}

.local-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.local-gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: 0 12px 30px rgba(36, 26, 20, 0.1);
}
.local-gallery-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.local-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.local-gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 13, 9, 0.78);
}

.local-gallery-viewer-image {
  max-width: min(980px, 100%);
  max-height: min(82vh, 760px);
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  object-fit: contain;
}

.local-gallery-viewer-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 247, 237, 0.5);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  color: var(--brand-strong);
  font-weight: 900;
  cursor: pointer;
}
.local-gallery-viewer-arrow {
  position: fixed;
  top: 50%;
  z-index: 41;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 247, 237, 0.5);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.9);
  color: var(--brand-strong);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.local-gallery-viewer-arrow--prev {
  left: 18px;
}

.local-gallery-viewer-arrow--next {
  right: 18px;
}

.local-gallery-viewer-counter {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 41;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  color: var(--brand-strong);
  font-size: 0.92rem;
  font-weight: 900;
  transform: translateX(-50%);
}
/* ESTRUCTURA ACTUAL - usado por MINIAPP-ESTRUCTURA */
.info-card {
  padding: 18px;
}

.list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
}

.nav-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.nav-controls:empty {
  display: none;
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 21, 24, 0.42);
}

.modal-card {
  position: relative;
  width: min(680px, calc(100% - 24px));
  margin: 8vh auto 0;
  padding: 24px;
  z-index: 1;
}

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

.payments-visual {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fff9f3, #edf6f8);
  border: 1px dashed rgba(17, 75, 95, 0.18);
}

.payments-visual h3 {
  margin-bottom: 10px;
}

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

.payments-method-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(17, 75, 95, 0.14);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.payments-method-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

@media (max-width: 860px) {
  /* ESTRUCTURA ACTUAL - usado por MINIAPP-ESTRUCTURA */
  .home-split {
    grid-template-columns: 1fr;
  }

  .hero-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  /* ESTRUCTURA ACTUAL - usado por MINIAPP-ESTRUCTURA */
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-logo {
    width: 200px;
  }
}

@media (max-width: 540px) {
  /* ESTRUCTURA ACTUAL - usado por MINIAPP-ESTRUCTURA */
  .app-shell {
    width: min(var(--max-width), calc(100% - 16px));
    padding-top: 14px;
  }

  .section-card,
  .modal-card {
    padding: 18px;
  }

  .info-card {
    padding: 16px;
  }

  .button-row > * {
    width: 100%;
    justify-content: center;
  }

  .hero-card,
  .detail-card {
    padding: 18px;
  }
}

/* Ajustes mobile compactos para home modular */
@media (max-width: 600px) {
  /* ESTRUCTURA ACTUAL - usado por MINIAPP-ESTRUCTURA */
  .page {
    gap: 12px;
  }

  .section-card,
  .modal-card {
    padding: 14px;
  }

  /* DUDOSO - utilidad heredada conservada por ahora */
  .hero-card,
  .detail-card {
    padding: 14px;
  }

  .home-split {
    gap: 12px;
  }

  .home-primary-panel,
  .home-secondary-panel {
    padding: 14px;
  }

  .page--home h2,
  .home-primary-panel h2 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .home-action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .home-action-button {
    min-height: 62px;
    padding: 12px 10px;
    font-size: 0.94rem;
    line-height: 1.22;
    text-align: center;
    justify-content: center;
  }

  .home-info-list {
    gap: 10px;
    margin-top: 0;
  }

  .home-info-card {
    padding: 14px;
  }

  .home-info-card strong {
    margin-bottom: 6px;
    font-size: 0.74rem;
  }

  .home-info-card p {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .home-secondary-panel .secondary-button,
  .home-secondary-panel .primary-button {
    width: 100%;
    min-height: 46px;
    padding: 13px 15px;
  }
  .local-gallery-grid {
    grid-template-columns: 1fr;
  }

  .local-gallery-item img {
    min-height: 130px;
    aspect-ratio: 4 / 3;
  }
  .local-gallery-viewer {
    padding: 14px;
  }

  .local-gallery-viewer-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .local-gallery-viewer-arrow--prev {
    left: 10px;
  }

  .local-gallery-viewer-arrow--next {
    right: 10px;
  }

  .local-gallery-viewer-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
}

/* Ajustes finos mobile para home modular */
@media (max-width: 600px) {
  .topbar {
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .brand-lockup {
    align-items: center;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .brand-mark {
    width: 108px;
    max-width: 38vw;
  }

  .brand-copy {
    align-items: center;
  }

  .brand-name {
    font-size: 1.1rem;
    line-height: 1.18;
  }

  .brand-tagline {
    font-size: 0.95rem;
  }
}

/* Ajustes solo para Home mobile */
@media (max-width: 600px) {
  .app-shell:has(.page--home) .topbar {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 4px;
  }

  .app-shell:has(.page--home) .topbar-brand {
    width: 100%;
    justify-content: center;
  }

  .app-shell:has(.page--home) .topbar-logo {
    width: min(88vw, 320px);
    max-width: 88vw;
  }

  .app-shell:has(.page--home) .page--home {
    gap: 10px;
  }

  .app-shell:has(.page--home) .home-split {
    gap: 10px;
  }

  .app-shell:has(.page--home) .home-primary-panel {
    padding: 16px 14px;
  }

  .app-shell:has(.page--home) .home-primary-panel h2 {
    font-size: 1.38rem;
    line-height: 1.12;
    margin-bottom: 2px;
  }

  .app-shell:has(.page--home) .home-action-list {
    gap: 9px;
    margin-top: 10px;
  }

  .app-shell:has(.page--home) .home-action-button {
    min-height: 68px;
    padding: 12px 10px;
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .app-shell:has(.page--home) .home-secondary-panel {
    padding: 10px 12px;
  }

  .app-shell:has(.page--home) .home-info-list {
    gap: 8px;
    margin-top: 0;
  }

  .app-shell:has(.page--home) .home-info-card {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .app-shell:has(.page--home) .home-info-card strong {
    margin-bottom: 4px;
    font-size: 0.7rem;
  }

  .app-shell:has(.page--home) .home-info-card p {
    font-size: 0.9rem;
    line-height: 1.28;
  }

  .app-shell:has(.page--home) .home-secondary-panel .secondary-button,
  .app-shell:has(.page--home) .home-secondary-panel .primary-button {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

/* Reequilibrio vertical solo para Home mobile */
@media (max-width: 600px) {
  .app-shell:has(.page--home) {
    padding-bottom: 20px;
  }

  .app-shell:has(.page--home) .topbar {
    margin-bottom: 8px;
  }

  .app-shell:has(.page--home) .page--home {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100dvh - 118px);
  }

  .app-shell:has(.page--home) .home-split {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    gap: 14px;
  }

  .app-shell:has(.page--home) .home-primary-panel {
    padding: 16px 14px 14px;
  }

  .app-shell:has(.page--home) .home-primary-panel h2 {
    margin-bottom: 4px;
  }

  .app-shell:has(.page--home) .home-action-list {
    margin-top: 12px;
  }

  .app-shell:has(.page--home) .home-secondary-panel {
    margin-top: auto;
    padding: 12px;
  }
}

/* Corrección Home mobile: quitar hueco excesivo */
@media (max-width: 600px) {
  .app-shell:has(.page--home) {
    padding-bottom: 18px;
  }

  .app-shell:has(.page--home) .page--home {
    display: grid;
    gap: 12px;
    min-height: auto;
  }

  .app-shell:has(.page--home) .home-split {
    display: grid;
    gap: 12px;
    flex: initial;
  }

  .app-shell:has(.page--home) .home-primary-panel {
    padding: 16px 14px;
  }

  .app-shell:has(.page--home) .home-secondary-panel {
    margin-top: 0;
    padding: 10px 12px;
  }
}

/* Ajuste fino Home mobile: dar más cuerpo al bloque inferior */
@media (max-width: 600px) {
  .app-shell:has(.page--home) .home-split {
    gap: 14px;
  }

  .app-shell:has(.page--home) .home-secondary-panel {
    padding: 14px 12px 16px;
  }

  .app-shell:has(.page--home) .home-info-list {
    gap: 10px;
  }

  .app-shell:has(.page--home) .home-info-card {
    padding: 14px 14px 16px;
    border-radius: 16px;
  }

  .app-shell:has(.page--home) .home-info-card p {
    font-size: 0.94rem;
    line-height: 1.32;
  }

  .app-shell:has(.page--home) .home-info-card:first-child p + p {
    margin-top: 8px;
  }

  .app-shell:has(.page--home) .home-secondary-panel .secondary-button,
  .app-shell:has(.page--home) .home-secondary-panel .primary-button {
    min-height: 44px;
    padding: 11px 12px;
  }
}
/* L'ATRE Home mobile: composicion proporcional de pantalla */
@media (max-width: 600px) {
  .home-family-demand {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, max-content));
    justify-content: center;
    gap: 8px;
  }

  .home-family-demand-item {
    min-width: 0;
    padding: 8px 10px;
  }

  .home-demand-choice {
    padding: 12px;
  }

  .home-demand-choice-actions,
  .home-demand-secondary-actions,
  .home-demand-choice-actions--secondary {
    display: grid;
    grid-template-columns: minmax(0, max-content);
    justify-content: center;
  }

  .home-demand-choice-actions .primary-button,
  .home-demand-choice-actions .secondary-button {
    width: auto;
    min-width: min(260px, 100%);
    max-width: 100%;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) {
    width: calc(100% - 16px);
    min-height: auto;
    display: block;
    padding-top: 4px;
    padding-bottom: 10px;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .topbar {
    gap: 0;
    margin-bottom: 4px;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .topbar-brand {
    width: 100%;
    justify-content: center;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .topbar-logo {
    width: min(74vw, 264px);
    max-width: 74vw;
    margin-inline: auto;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .page--home {
    display: block;
    min-height: auto;
    gap: 0;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-split {
    display: grid;
    gap: 20px;
    min-height: auto;
    flex: initial;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-primary-panel,
  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-secondary-panel {
    width: 100%;
    margin: 0;
    border-radius: 18px;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-primary-panel {
    padding: 15px 14px 16px;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-primary-panel h2 {
    font-size: 1.34rem;
    line-height: 1.12;
    margin-bottom: 0;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-operations-notice {
    gap: 3px;
    margin-top: 12px;
    padding: 11px 12px;
    line-height: 1.2;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-operations-notice span {
    font-size: 0.94rem;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 11px;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-action-button {
    min-height: 62px;
    padding: 11px 10px;
    font-size: 0.95rem;
    line-height: 1.18;
    text-align: center;
    justify-content: center;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-secondary-panel {
    padding: 14px 13px 15px;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-info-list {
    gap: 9px;
    margin-top: 0;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-info-card {
    padding: 13px 14px 14px;
    border-radius: 15px;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-info-card strong {
    margin-bottom: 5px;
    font-size: 0.72rem;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-info-card p {
    font-size: 0.94rem;
    line-height: 1.3;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-info-card:first-child p + p {
    margin-top: 6px;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-secondary-panel .secondary-button,
  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-secondary-panel .primary-button {
    min-height: 44px;
    padding: 10px 12px;
  }
}

/* L'ATRE Home mobile: ocultar borde del fondo propio del logo */
@media (max-width: 600px) {
  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .topbar {
    width: 100%;
    background: #f4f1e4;
  }
}
/* L'ATRE: logo compacto y centrado en la galería Conocé el local */
.app-shell:has(.local-gallery-view) .topbar {
  justify-content: center;
  margin-bottom: 10px;
}

.app-shell:has(.local-gallery-view) .topbar-brand {
  width: 100%;
  justify-content: center;
}

.app-shell:has(.local-gallery-view) .topbar-logo {
  width: min(32vw, 280px);
  margin-inline: auto;
}

@media (max-width: 600px) {
  .app-shell:has(.local-gallery-view) .topbar-logo {
    width: min(58vw, 190px);
    max-width: 58vw;
  }

  .app-shell:has(.local-gallery-view) .topbar {
    margin-bottom: 8px;
  }
}

/* LATRE: texto verde unificado en cartel de demora de home */
.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice > strong,
.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice > span {
  color: #23633a !important;
  font-weight: 850 !important;
}

/* L'ATRE: cartel general de estado del local unificado en home */
.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice {
  display: grid !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 2px !important;
  width: max-content !important;
  min-width: 180px !important;
  max-width: min(260px, calc(100% - 24px)) !important;
  margin: 12px auto 0 !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(44, 123, 74, 0.34) !important;
  border-radius: 14px !important;
  background: rgba(224, 244, 232, 0.92) !important;
  text-align: center !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  box-shadow: none !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice > strong,
.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice > span {
  display: block !important;
  color: #23633a !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice > strong {
  font-size: 0.76rem !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice > span {
  font-size: 0.82rem !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--agile {
  border-color: rgba(44, 123, 74, 0.34) !important;
  background: rgba(224, 244, 232, 0.92) !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--agile > strong,
.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--agile > span {
  color: #23633a !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--moderate {
  border-color: rgba(185, 109, 26, 0.38) !important;
  background: rgba(255, 235, 188, 0.9) !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--moderate > strong,
.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--moderate > span {
  color: #8a4f12 !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--demand,
.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--paused {
  border-color: rgba(158, 47, 31, 0.44) !important;
  background: rgba(250, 219, 211, 0.92) !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--demand > strong,
.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--demand > span,
.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--paused > strong,
.app-shell:has(.topbar-logo[src*="logo-latre.png"]) .home-operations-notice--paused > span {
  color: #9e2f1f !important;
}

/* L'ATRE: presencia mayor solo para el cartel de demora en Home */
.app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-operations-title {
  display: block !important;
  width: min(100%, 590px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-align: left !important;
  box-shadow: none !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-operations-notice {
  min-width: 230px !important;
  max-width: min(340px, calc(100% - 24px)) !important;
  padding: 12px 18px !important;
  line-height: 1.2 !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-operations-notice > strong {
  font-size: 0.9rem !important;
}

.app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-operations-notice > span {
  font-size: 1rem !important;
}

/* L'ATRE Home mobile: vista inicial completa sin scroll */
@media (max-width: 600px) {
  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) {
    width: calc(100% - 12px) !important;
    padding-top: 2px !important;
    padding-bottom: 4px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .topbar {
    margin-bottom: 2px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .topbar-logo {
    width: min(70vw, 252px) !important;
    max-width: 70vw !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-split {
    gap: 9px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-primary-panel,
  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-secondary-panel {
    border-radius: 16px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-primary-panel {
    padding: 16px 12px 17px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-operations-title {
    font-size: 0.78rem !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-operations-notice {
    min-width: 220px !important;
    max-width: min(310px, calc(100% - 24px)) !important;
    margin-top: 8px !important;
    padding: 10px 16px !important;
    border-radius: 14px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-operations-notice > strong {
    font-size: 0.86rem !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-operations-notice > span {
    font-size: 0.94rem !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-family-demand {
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-family-demand-item {
    min-width: 126px !important;
    min-height: 48px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    gap: 2px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-family-demand-item strong {
    font-size: 0.84rem !important;
    line-height: 1.08 !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-family-demand-item span {
    font-size: 0.78rem !important;
    line-height: 1.08 !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-primary-panel h2 {
    font-size: 1.3rem !important;
    line-height: 1.08 !important;
    margin: 14px 0 0 !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-action-list {
    gap: 10px !important;
    margin-top: 10px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-action-button {
    min-height: 58px !important;
    padding: 10px 10px !important;
    border-radius: 16px !important;
    font-size: 0.94rem !important;
    line-height: 1.16 !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-secondary-panel {
    padding: 12px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-info-list {
    gap: 8px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-info-card {
    padding: 12px 13px !important;
    border-radius: 14px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-info-card strong {
    margin-bottom: 4px !important;
    font-size: 0.7rem !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-info-card p {
    font-size: 0.92rem !important;
    line-height: 1.26 !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-info-card:first-child p + p {
    margin-top: 5px !important;
  }

  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-secondary-panel .secondary-button,
  .app-shell:has(.topbar-logo[src*="logo-latre.png"]):has(.page--home) .home-secondary-panel .primary-button {
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
  }
}
