/* Presentación para Configuración del negocio. Los formularios, IDs y acciones viven en el HTML/JS existente. */
body:has(#business-settings-page) {
  min-height: 100vh;
  background: #f4f7fc;
  color: #101b38;
}

#business-settings-page {
  max-width: 1480px;
}


.business-mobile-actions { display: none; }

.business-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 21px;
}
.business-page-heading > div > p {
  margin: 0 0 5px;
  color: #08966b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.business-page-heading h1 {
  margin: 0;
  color: #101a36;
  font-size: clamp(27px, 2.4vw, 36px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.business-page-heading span {
  display: block;
  margin-top: 7px;
  color: #71809a;
  font-size: 13px;
}
.business-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  color: #33425e;
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(28, 47, 83, .04);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

/* Plan actual y capacidad real recibida desde el mismo snapshot del workspace. */
.business-plan-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, .95fr) minmax(0, 2.4fr);
  align-items: center;
  gap: 22px;
  overflow: hidden;
  margin-bottom: 19px;
  padding: 20px 22px;
  color: #fff;
  background: radial-gradient(ellipse at 93% 5%, rgba(40, 106, 255, .62), transparent 35%),
    linear-gradient(118deg, #0e1d43 0%, #111a3e 57%, #101b55 100%);
  border: 1px solid rgba(117, 150, 226, .24);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(19, 38, 84, .13);
}
.business-plan-overview::after {
  position: absolute;
  right: -50px;
  bottom: -135px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(95, 146, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 27px rgba(95, 146, 255, .035), 0 0 0 55px rgba(95, 146, 255, .025);
  content: "";
  pointer-events: none;
}
.business-plan-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}
.business-plan-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffbb3e;
  background: rgba(255, 183, 55, .12);
  border: 1px solid rgba(255, 194, 82, .25);
  border-radius: 15px;
}
.business-plan-copy p,
.business-plan-copy h2,
.business-plan-copy span { margin: 0; }
.business-plan-copy p {
  color: #ffd77d;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.business-plan-copy h2 {
  margin-top: 2px;
  color: #fff;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.business-plan-copy span {
  display: block;
  margin-top: 4px;
  color: #c2cee7;
  font-size: 11px;
}
.business-upgrade-link {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(216, 229, 255, .2);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.business-upgrade-link:hover { background: rgba(255, 255, 255, .16); }
.business-plan-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.business-plan-metric {
  min-width: 0;
  min-height: 92px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(216, 229, 255, .15);
  border-radius: 14px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .055);
}
.business-plan-metric > i { display: block; width: 18px; height: 18px; margin-bottom: 8px; color: #75bdff; }
.business-plan-metric > span {
  display: block;
  overflow: hidden;
  color: #bbc8e2;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.business-plan-metric strong { display: block; margin-top: 3px; color: #fff; font-size: 22px; font-weight: 850; line-height: 1.05; white-space: nowrap; }
.business-plan-metric small { color: #aab8d5; font-size: 12px; font-weight: 650; }
.business-plan-metric small span { font: inherit; }
.metric-payments > i { color: #55e5ad; }
.metric-businesses > i { color: #ffc94d; }
.metric-team > i { color: #75bdff; }
.metric-advisors > i { color: #ef8bec; }
.business-plan-metric[hidden] { display: none !important; }

/* Directorio principal y panel lateral de asesores/equipo. */
.business-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 17px;
}
.business-sections > section {
  min-width: 0;
  padding: 23px;
  background: #fff;
  border-color: #e5ebf4;
  border-radius: 21px;
  box-shadow: 0 9px 28px rgba(32, 56, 100, .055);
}
.business-directory-panel { grid-column: 1 / -1; }
.business-advisors-panel > div:first-child,
#team-section > div:first-child { margin-bottom: 17px; }
.business-sections h2 { color: #14213e; letter-spacing: -.03em; }
.business-sections p { line-height: 1.5; }
#btn-nuevo-negocio,#btn-nuevo-asesor,#team-section > div:first-child > button {
  min-height: 46px;
  border-radius: 13px;
}
#btn-nuevo-negocio { background-image: linear-gradient(135deg, #2167f3, #3987ff); box-shadow: 0 8px 20px rgba(33, 103, 243, .18); }
#btn-nuevo-asesor { background-image: linear-gradient(135deg, #ff9f18, #ffb323); box-shadow: 0 8px 18px rgba(255, 159, 24, .2); }
#team-section > div:first-child > button { background-image: linear-gradient(135deg, #5840ed, #6248f4); box-shadow: 0 8px 18px rgba(91, 67, 238, .2); }
#negocios-list { align-items: stretch; gap: 14px; }
#negocios-list > [data-id] {
  min-width: 0;
  padding: 22px;
  background: #fff;
  border-color: #e5ebf4;
  border-radius: 19px;
  box-shadow: 0 8px 24px rgba(32, 56, 100, .055);
  transition: transform .2s ease, box-shadow .2s ease;
}
#negocios-list > [data-id]:hover { transform: translateY(-2px); box-shadow: 0 15px 32px rgba(32, 56, 100, .09); }
#negocios-list > [data-id] > div:first-of-type { padding-bottom: 16px; }
#negocios-list > [data-id] h3 { color: #101b38; overflow-wrap: anywhere; }
#negocios-list > [data-id] .space-y-6 { position: relative; z-index: 1; }
#negocios-list > [data-id] .space-y-6 > div:nth-child(2) {
  padding: 16px;
  background: #f7f9fd;
  border-color: #e9eef6;
  border-radius: 16px;
}
#negocios-list > [data-id] .space-y-6 > div:nth-child(2) > p:first-child { color: #172644; }
#negocios-list > [data-id] .space-y-6 > div:nth-child(3) { padding-top: 14px; }
#negocios-list > [data-id] .space-y-6 > div:nth-child(3) > div:nth-child(2) {
  min-height: 66px;
  padding: 14px;
  background: #fafbfe;
  border: 1px dashed #dfe6f0;
  border-radius: 14px;
}
#negocios-list > [data-id] button { min-height: 40px; }
#negocios-list > [data-id] .btn-shopify,
#negocios-list > [data-id] button:disabled {
  min-height: 43px;
  border-radius: 12px;
}
#negocios-list > [data-id] .btn-shopify { background: #101b38; }
#asesores-list { align-items: stretch; gap: 11px; }
#asesores-list > div {
  min-width: 0;
  padding: 18px 14px;
  border-color: #e6ecf4;
  border-radius: 17px;
  box-shadow: 0 6px 19px rgba(32, 56, 100, .045);
}
#asesores-list > div > div:first-of-type { width: 54px; height: 54px; }
#asesores-list > div h3 { overflow-wrap: anywhere; }
#asesores-list > div > div:last-child > span,
#asesores-list > div > div:last-child > button { min-height: 41px; display: flex; align-items: center; justify-content: center; }
#team-section { min-width: 0; }
#team-section > div:nth-child(2) { overflow-x: auto; border-color: #e7edf5; border-radius: 15px; }
#team-section table { min-width: 580px; border-collapse: separate; border-spacing: 0; }
#team-section thead { background: #f5f8fd; }
#team-section th { color: #74819a; letter-spacing: .07em; }
#team-section td { background: #fff; }
#team-section tbody tr:hover td { background: #fbfcff; }

body:has(#business-settings-page) input,
body:has(#business-settings-page) select,
body:has(#business-settings-page) textarea { border-color: #dfe6f0; border-radius: 12px; }
body:has(#business-settings-page) input:focus,
body:has(#business-settings-page) select:focus,
body:has(#business-settings-page) textarea:focus { border-color: #2167f3; box-shadow: 0 0 0 3px rgba(33, 103, 243, .1); }
body:has(#business-settings-page) .modal-overlay { z-index: 300; }

/* Configurar instrucciones: misma estructura y campos; cambia la composición visual. */
.business-instructions-heading {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin: 0 0 22px;
}
.business-instructions-back {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #33425e;
  background: #f7f9fd;
  border: 1px solid #e2e9f3;
  border-radius: 14px;
}
.business-instructions-heading h3 { margin: 0; color: #101a36; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.1; letter-spacing: -.04em; }
.business-instructions-heading p { max-width: 700px; margin: 5px 0 0; color: #71809a; font-size: 13px; line-height: 1.5; }
#modal-negocio .modal-content {
  width: min(1220px, calc(100vw - 40px));
  max-width: 1220px;
  max-height: min(94vh, 1000px);
  padding: 28px 30px 20px;
  border: 1px solid #e5ebf4;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(20, 35, 70, .22);
}
#form-negocio {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  align-items: start;
  column-gap: 23px;
  row-gap: 14px;
}
#form-negocio > div:nth-of-type(1) {
  grid-column: 1;
  padding: 15px;
  background: #f8faff;
  border-color: #e6ecf4;
  border-radius: 15px;
}
#form-negocio > div:nth-of-type(1) > div:first-child { min-width: 0; }
#color-picker-container { flex-wrap: wrap; justify-content: space-between; gap: 11px; }
#modal-negocio #color-picker-container [data-color] {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #dfe6f0, 0 5px 12px rgba(25, 42, 75, .1);
}
#modal-negocio #color-picker-container [data-color].ring-4 { box-shadow: 0 0 0 4px rgba(33, 103, 243, .27); }
#form-negocio > div:nth-of-type(2) { grid-column: 1; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#form-negocio > div:nth-of-type(3) { grid-column: 1; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 0; padding-top: 3px; }
#form-negocio > div:nth-of-type(4) {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: stretch;
  min-width: 0;
  padding: 17px;
  background: #f7f8ff;
  border-color: #e4e7fb;
  border-radius: 16px;
}
#form-negocio > div:nth-of-type(4) > div:first-child { align-items: center; }
#form-negocio > div:nth-of-type(4) > div:first-child > div:first-child label { color: #15223f; font-size: 12px; }
#form-negocio > div:nth-of-type(4) > div:first-child > div:first-child p { color: #7c879d; font-size: 11px; }
#form-negocio > div:nth-of-type(4) > div:first-child > div:last-child { gap: 9px; }
#form-negocio > div:nth-of-type(4) > div:first-child button { min-height: 48px; border-radius: 12px; font-size: 12px; }
#form-negocio > div:nth-of-type(4) textarea { min-height: 320px; height: calc(100% - 76px); line-height: 1.6; resize: vertical; }
#form-negocio > div:nth-of-type(5) { grid-column: 1; margin-top: 0; }
#form-negocio > div:nth-of-type(6) {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 0;
  padding-top: 14px;
}
#form-negocio > div:nth-of-type(6) button { min-height: 50px; max-width: 280px; border-radius: 13px; }
#form-negocio > div:nth-of-type(6) button[type="submit"] {
  background-image: linear-gradient(135deg, #2167f3, #3987ff);
  box-shadow: 0 9px 22px rgba(33, 103, 243, .22);
}
#modal-negocio #n-desc { background: #fff; }
#modal-producto .modal-content,#modal-confirm .modal-content,#modal-simulador .modal-content { border-radius: 24px; }

@media (min-width: 1280px) {
  body:has(#business-settings-page) > nav .max-w-\[1300px\] { max-width: none; padding: 20px 15px 18px; }
  body:has(#business-settings-page) > nav > div > div { height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  body:has(#business-settings-page) > nav > div > div > a:first-child { min-height: 52px; margin-bottom: 27px; }
  body:has(#business-settings-page) #desktop-nav { display: flex !important; width: 100%; flex-direction: column; align-items: stretch; gap: 7px; }
  body:has(#business-settings-page) #desktop-account-nav { display: flex !important; width: 100%; flex-direction: column; gap: 7px; margin: auto 0 0; padding: 17px 3px 0; border-top: 1px solid #e5ebf4; }
  body:has(#business-settings-page) #desktop-nav a.is-current { color: #08744f; background: #e8f9f1; }
  body:has(#business-settings-page) > main { display: block; width: calc(100% - 248px); max-width: none; margin-left: 248px; padding: 27px clamp(25px, 3vw, 54px); }
  .business-plan-overview { grid-template-columns: minmax(230px, .82fr) minmax(0, 2.7fr); }
  .business-plan-heading { grid-template-columns: 48px minmax(0, 1fr); }
  .business-plan-copy { grid-column: 2; }
  .business-upgrade-link { grid-column: 2; }
  .business-sections { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .business-directory-panel { grid-column: 1 / span 8; grid-row: 1 / span 2; }
  .business-advisors-panel { grid-column: 9 / span 4; grid-row: 1; }
  #team-section { grid-column: 9 / span 4; grid-row: 2; }
  #team-section[style*="display: none"] { display: none !important; }
  .business-sections:has(#team-section[style*="display: none"]) .business-directory-panel { grid-row: auto; }
  .business-advisors-panel #asesores-list { grid-template-columns: minmax(0, 1fr); }
  #negocios-list { grid-template-columns: minmax(0, 1fr); }
  #modal-negocio .modal-content { padding: 29px 34px 21px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  body:has(#business-settings-page) > nav .max-w-\[1300px\] { max-width: none; padding: 20px 15px 18px; }
  body:has(#business-settings-page) > nav > div > div { height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  body:has(#business-settings-page) > nav > div > div > a:first-child { min-height: 52px; margin-bottom: 27px; }
  body:has(#business-settings-page) #desktop-nav { display: flex !important; width: 100%; flex-direction: column; align-items: stretch; gap: 7px; }
  body:has(#business-settings-page) #desktop-account-nav { display: flex !important; width: 100%; flex-direction: column; gap: 7px; margin: auto 0 0; padding: 17px 3px 0; border-top: 1px solid #e5ebf4; }
  body:has(#business-settings-page) #desktop-nav a.is-current { color: #08744f; background: #e8f9f1; }
  body:has(#business-settings-page) > main { display: block; width: calc(100% - 248px); max-width: none; margin-left: 248px; padding: 25px; }
  .business-sections { grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr); }
  .business-directory-panel { grid-column: 1 / -1; }
  .business-advisors-panel,#team-section { grid-column: auto; }
  #negocios-list { grid-template-columns: minmax(0, 1fr); }
  .business-plan-overview { grid-template-columns: minmax(0, 1fr); }
  .business-plan-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  body:has(#business-settings-page) > nav { position: sticky; top: 0; height: 66px; border: 0; border-bottom: 1px solid #e8edf4; background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); }
  body:has(#business-settings-page) > nav > div { max-width: none; padding: 0 15px; }
  body:has(#business-settings-page) > nav > div > div { height: 66px; align-items: center; }
  body:has(#business-settings-page) #desktop-nav,body:has(#business-settings-page) #desktop-account-nav { display: none !important; }
  .business-mobile-actions { display: flex; align-items: center; gap: 8px; }
  .business-mobile-actions a,.business-mobile-actions button { display: grid; width: 40px; height: 40px; place-items: center; color: #30405b; background: #fff; border: 1px solid #e7ecf3; border-radius: 12px; }
  body:has(#business-settings-page) > main { width: 100%; max-width: none; margin: 0; padding: 20px 15px 30px; }
  .business-page-heading { align-items: flex-start; }
  .business-back-link { display: none; }
  .business-plan-overview { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 19px; border-radius: 20px; }
  .business-plan-heading { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .business-plan-icon { width: 44px; height: 44px; }
  .business-plan-copy { grid-column: 2; }
  .business-upgrade-link { grid-column: 3; grid-row: 1; }
  .business-plan-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .business-plan-metric { min-height: 84px; }
  .business-sections { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .business-directory-panel,.business-advisors-panel,#team-section { grid-column: auto; grid-row: auto; }
  .business-sections > section { padding: 19px; border-radius: 19px; }
  #negocios-list { grid-template-columns: minmax(0, 1fr); }
  #asesores-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #modal-negocio { padding: 10px !important; overflow-y: auto; align-items: flex-start; }
  #modal-negocio .modal-content { width: min(820px, 100%); max-height: none; margin: 0 auto; padding: 22px 20px 12px; border-radius: 23px; }
  #form-negocio { display: flex; flex-direction: column; gap: 14px; }
  #form-negocio > div { width: 100%; }
  #form-negocio > div:nth-of-type(1) { display: block; padding: 14px; }
  #form-negocio > div:nth-of-type(1) > div:first-child { margin-bottom: 8px; }
  #color-picker-container { flex-wrap: nowrap; justify-content: flex-start; gap: 13px; overflow-x: auto; }
  #form-negocio > div:nth-of-type(2),#form-negocio > div:nth-of-type(3) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #form-negocio > div:nth-of-type(4) { padding: 15px; }
  #form-negocio > div:nth-of-type(4) textarea { min-height: 210px; height: auto; }
  #form-negocio > div:nth-of-type(6) { position: sticky; bottom: -12px; z-index: 4; display: flex; justify-content: stretch; gap: 10px; margin: 0 -20px; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid #e8edf5; box-shadow: 0 -8px 20px rgba(23,42,78,.05); }
  #form-negocio > div:nth-of-type(6) button { min-height: 49px; max-width: none; padding: 11px 13px; }
  #form-negocio > div:nth-of-type(6) button[type="submit"] { flex: 1.25; }
}

@media (max-width: 600px) {
  body:has(#business-settings-page) > main { padding: 16px 12px 27px; }
  .business-page-heading { margin-bottom: 15px; }
  .business-page-heading h1 { font-size: 25px; }
  .business-page-heading span { font-size: 11px; line-height: 1.5; }
  .business-plan-overview { gap: 14px; margin-bottom: 14px; padding: 16px; }
  .business-plan-heading { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .business-plan-icon { width: 40px; height: 40px; border-radius: 13px; }
  .business-plan-copy h2 { font-size: 20px; }
  .business-plan-copy span { font-size: 10px; }
  .business-upgrade-link { grid-column: 2; justify-self: start; margin-top: 0; padding: 7px 9px; }
  .business-plan-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .business-plan-metric { min-height: 77px; padding: 10px; border-radius: 12px; }
  .business-plan-metric > i { width: 16px; height: 16px; margin-bottom: 5px; }
  .business-plan-metric > span { font-size: 7px; }
  .business-plan-metric strong { font-size: 19px; }
  .business-plan-metric small { font-size: 10px; }
  .business-sections { gap: 12px; }
  .business-sections > section { padding: 16px; border-radius: 18px; }
  .business-sections h2 { font-size: 19px; }
  .business-directory-panel > div:first-child,
  .business-advisors-panel > div:first-child,
  #team-section > div:first-child { margin-bottom: 16px; }
  #btn-nuevo-negocio,#btn-nuevo-asesor,#team-section > div:first-child > button { width: 100%; min-height: 47px; }
  #negocios-list > [data-id] { padding: 19px 16px; border-radius: 18px; }
  #negocios-list > [data-id] > div:first-of-type { gap: 12px; }
  #negocios-list > [data-id] h3 { font-size: 23px; }
  #negocios-list > [data-id] .space-y-6 { gap: 15px; }
  #negocios-list > [data-id] .space-y-6 > div:nth-child(2) { padding: 13px; }
  #negocios-list > [data-id] .space-y-6 > div:nth-child(3) { padding-top: 12px; }
  #asesores-list { grid-template-columns: minmax(0, 1fr); }
  #asesores-list > div { min-height: 126px; display: grid; grid-template-columns: 55px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px; text-align: left; }
  #asesores-list > div > div:first-of-type { grid-row: 1 / span 2; margin: 0; }
  #asesores-list > div h3 { justify-self: start; margin: 0; font-size: 17px; }
  #asesores-list > div > p { grid-column: 2; justify-self: start; margin: -5px 0 0; }
  #asesores-list > div > div:last-child { grid-column: 3; grid-row: 1 / span 2; width: min(145px, 34vw); margin: 0; }
  #asesores-list > div > div:last-child > span,#asesores-list > div > div:last-child > button { min-height: 43px; padding: 8px; font-size: 8px; }
  #team-section > div:nth-child(2) { margin: 0 -5px; }
  #team-section table { min-width: 570px; }
  #modal-negocio { padding: 8px !important; }
  #modal-negocio .modal-content { padding: 19px 16px 10px; border-radius: 21px; }
  .business-instructions-heading { gap: 12px; margin-bottom: 17px; }
  .business-instructions-back { flex-basis: 43px; width: 43px; height: 43px; border-radius: 13px; }
  .business-instructions-heading h3 { font-size: 23px; }
  .business-instructions-heading p { max-width: 350px; font-size: 11px; }
  #form-negocio > div:nth-of-type(1) { padding: 13px; }
  #modal-negocio #color-picker-container [data-color] { width: 42px; height: 42px; }
  #form-negocio > div:nth-of-type(4) > div:first-child { align-items: stretch; }
  #form-negocio > div:nth-of-type(4) > div:first-child > div:last-child { width: 100%; }
  #form-negocio > div:nth-of-type(4) > div:first-child button { flex: 1; min-height: 47px; padding: 9px 7px; font-size: 10px; }
  #form-negocio > div:nth-of-type(4) textarea { min-height: 220px; font-size: 13px; }
  #form-negocio > div:nth-of-type(6) { margin: 0 -16px; padding: 11px 16px max(11px, env(safe-area-inset-bottom)); }
  #form-negocio > div:nth-of-type(6) button { min-height: 47px; padding: 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  body:has(#business-settings-page) *,body:has(#business-settings-page) *::before,body:has(#business-settings-page) *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* En escritorio, el directorio va primero y los paneles de IA/equipo debajo a todo el ancho. */
@media (min-width: 1024px) {
  .business-sections { grid-template-columns:minmax(0,1fr); align-items:start; }
  .business-sections > .business-directory-panel,
  .business-sections > .business-advisors-panel,
  .business-sections > #team-section { grid-column:1 / -1; grid-row:auto; }
  .business-advisors-panel #asesores-list { grid-template-columns:repeat(auto-fit,minmax(225px,1fr)); }
  .business-advisors-panel #asesores-list > div { min-height:215px; }
  #team-section > div:nth-child(2) { width:100%; }
}
