/*
 * Componentes de las páginas públicas de los negocios. La landing los usa para sus ejemplos y la Fase 3
 * los reutiliza en las páginas reales. El negocio elige un acento de la paleta curada (.biz--accent-*);
 * no hay estilos libres.
 */
.biz {
  --biz-accent: #333648;
  --biz-ink: #1B1D2A;
  --biz-muted: #5E6070;
  --biz-line: #E6E5EC;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow: hidden;
  padding: 18px 16px;
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  color: var(--biz-ink);
  background: #FCFBFA;
}

.biz p {
  margin: 0;
}

.biz--accent-amaranto { --biz-accent: #8A2E1E; }
.biz--accent-pino { --biz-accent: #1F4D3A; }
.biz--accent-mar { --biz-accent: #1D5C7A; }
.biz--accent-bugambilia { --biz-accent: #9B1F5E; }
.biz--accent-canela { --biz-accent: #7A4B12; }

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

.biz__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--biz-accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

.biz__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.biz__meta {
  font-size: 12.5px;
  color: var(--biz-muted);
}

.biz__cover {
  flex: none;
  height: 76px;
  margin: -18px -16px 0;
  background: var(--biz-accent);
}

.biz__head--cover {
  flex-direction: column;
  align-items: start;
  gap: 6px;
}

.biz__head--cover .biz__avatar {
  width: 58px;
  height: 58px;
  margin-top: -40px;
  border: 3px solid #FCFBFA;
  font-size: 17px;
}

.biz__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #23633A;
}

.biz__buttons {
  display: grid;
  gap: 8px;
}

.biz__button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--biz-line);
  border-radius: 10px;
  background: #FFFFFF;
  font-weight: 600;
}

.biz__button--main {
  justify-content: center;
  border-color: transparent;
  background: var(--biz-accent);
  color: #FFFFFF;
}

.biz-menu__tabs {
  display: flex;
  gap: 6px;
}

.biz-menu__tabs span {
  padding: 5px 11px;
  border-radius: 99px;
  background: #EFEEF3;
  font-size: 12px;
  font-weight: 600;
}

.biz-menu__tabs .is-on {
  background: var(--biz-accent);
  color: #FFFFFF;
}

.biz-menu__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.biz-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--biz-line);
}

.biz-item__name {
  font-weight: 650;
}

.biz-item__desc {
  font-size: 12px;
  color: var(--biz-muted);
}

.biz-item__price {
  font-weight: 700;
  white-space: nowrap;
}

.biz-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--biz-accent) 12%, #FFFFFF);
  color: var(--biz-accent);
  font-size: 11px;
  font-weight: 650;
}

.biz-tag--new {
  background: var(--biz-accent);
  color: #FFFFFF;
}

.biz__promo {
  padding: 10px 12px;
  border: 1.5px dashed var(--biz-accent);
  border-radius: 10px;
  font-size: 12.5px;
}

.biz__promo strong {
  display: block;
  color: var(--biz-accent);
}

.biz__note {
  margin-top: auto !important;
  font-size: 11px;
  color: var(--biz-muted);
}

/* Galería tipo álbum */
.biz-album {
  display: grid;
  gap: 12px;
}

.biz-album__cover {
  position: relative;
  height: 118px;
}

.biz-album__cover span {
  position: absolute;
  inset: 8px 22px 8px 22px;
  border-radius: 10px;
  border: 3px solid #FFFFFF;
  box-shadow: 0 6px 14px -8px rgba(20, 26, 74, 0.6);
}

.biz-album__cover span:nth-child(1) { background: #F1D08A; transform: rotate(-7deg); }
.biz-album__cover span:nth-child(2) { background: #B9D3B0; transform: rotate(4deg); }
.biz-album__cover span:nth-child(3) { background: #E8B7C9; }

.biz-album__cover p {
  position: absolute;
  left: 34px;
  bottom: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11.5px;
}

.biz-album__cover strong {
  display: block;
  font-size: 13px;
}

.biz-album__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.biz-album__grid figure {
  display: flex;
  align-items: end;
  aspect-ratio: 1;
  margin: 0;
  padding: 5px;
  border-radius: 8px;
  background: var(--tile);
}

.biz-album__grid figcaption {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  line-height: 1.3;
}

.tile-1 { --tile: #E8B7C9; }
.tile-2 { --tile: #F1D08A; }
.tile-3 { --tile: #B9D3B0; }
.tile-4 { --tile: #F0A35E; }
.tile-5 { --tile: #C9B8E6; }
.tile-6 { --tile: #E57C8E; }

/* Promociones */
.biz-promos {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.biz-promo {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--biz-line);
  border-radius: 10px;
  background: #FFFFFF;
}

.biz-promo.is-ended {
  opacity: 0.55;
}

.biz-promo__state {
  justify-self: start;
  padding: 1px 7px;
  border-radius: 4px;
  background: #EFEEF3;
  font-size: 11px;
  font-weight: 700;
}

.biz-promo__state.is-live {
  background: #DDF3E6;
  color: #1D6B3F;
}

.biz-promo .biz__button {
  margin-top: 6px;
}

/* Página comercial (vista ancha) */
.biz--wide {
  gap: 0;
  padding: 0;
  font-size: 12px;
}

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

.biz-site__logo {
  font-size: 14px;
  font-weight: 800;
  color: var(--biz-accent);
}

.biz-site__cta {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--biz-accent);
  color: #FFFFFF;
  font-weight: 600;
}

.biz-site__hero {
  padding: 20px 16px;
  background: color-mix(in srgb, var(--biz-accent) 9%, #FFFFFF);
}

.biz-site__kicker {
  font-weight: 650;
  color: var(--biz-accent);
}

.biz-site__title {
  max-width: 30ch;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.biz-site__services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 16px;
}

.biz-site__services > div,
.biz-site__form {
  padding: 10px;
  border: 1px solid var(--biz-line);
  border-radius: 8px;
  background: #FFFFFF;
}

.biz-site__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}

.biz-site__place {
  display: grid;
  align-content: start;
  gap: 6px;
}

.biz-site__place p {
  display: flex;
  align-items: center;
  gap: 6px;
}

.biz-site__form {
  display: grid;
  gap: 6px;
}

.biz-site__field {
  padding: 6px 8px;
  border: 1px solid #DCDBE4;
  border-radius: 6px;
  color: #8A8C99;
}

@media (max-width: 600px) {
  .biz-site__services,
  .biz-site__bottom {
    grid-template-columns: 1fr;
  }
}

/* Vista del panel (estadísticas) */
.dash {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-indigo);
  background: #FFFFFF;
}

.dash p {
  margin: 0;
}

.dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash__period {
  padding: 2px 8px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  font-size: 12px;
  color: var(--c-piedra-ink);
}

.dash__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.dash__kpis div {
  padding: 8px 10px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}

.dash__kpis dt {
  font-size: 11px;
  color: var(--c-piedra-ink);
}

.dash__kpis dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  font-stretch: 112%;
}

.dash__chart {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 88px;
  border-bottom: 2px solid var(--c-indigo);
}

.dash__chart span {
  flex: 1;
  background: #C9CBE0;
}

.dash__chart span:last-child {
  background: var(--c-rosa);
}

.dash__chart .h3 { height: 30%; }
.dash__chart .h4 { height: 40%; }
.dash__chart .h5 { height: 50%; }
.dash__chart .h6 { height: 60%; }
.dash__chart .h7 { height: 70%; }
.dash__chart .h8 { height: 80%; }
.dash__chart .h9 { height: 90%; }
.dash__chart .h10 { height: 100%; }

.dash__top-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash__top-links li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #ECEBF1;
}

/* Marcos de dispositivo */
.phone {
  width: min(300px, 76vw);
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 46px;
  background: #0A0D27;
  box-shadow: var(--shadow-object);
}

.phone__screen {
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #FCFBFA;
}

.browser {
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: var(--shadow-object);
}

.browser__bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  background: #E9E8F0;
}

.browser__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C4C3D0;
}

.browser__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

@media (max-width: 600px) {
  .browser__screen {
    aspect-ratio: auto;
    max-height: 440px;
  }
}
