/* public/themes/modern-white/assets/css/pages/enterprise_setup.css
   Configuración de organización — Studium 360
   Reutiliza: cp-ent-rform-field, cp-ent-label, cp-ereg-benefit, cp-ent-page-title.
   Solo define lo nuevo: hero, cards numeradas, ring de progreso.
   ============================================================ */

/* ============================================================
   Wrapper
   ============================================================ */

.cp-ent-wrap--setup{
  max-width: 1060px;
  margin: 0 auto;
}

/* ============================================================
   Breadcrumb
   ============================================================ */

.cp-ent-subhead__crumb{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--muted);
}

.cp-ent-subhead__crumb a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.cp-ent-subhead__crumb a:hover{
  color: var(--primary);
  text-decoration: underline;
}

.cp-ent-subhead__crumb span[aria-hidden]{
  color: var(--border);
}

.cp-ent-subhead__crumb span:last-child{
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   Hero
   ============================================================ */

.cp-ent-setup-hero{
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: none; /* quitar el border del elemento en sí */
  position: relative;
}

.cp-ent-setup-hero::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  border-radius: 999px;
  background: var(--border);
}

.cp-ent-setup-hero__icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(12,121,223,.25);
}

.cp-ent-setup-hero__icon svg{
  width: 26px;
  height: 26px;
}

.cp-ent-page-title{
  margin: 0 0 6px;
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.15;
}

/* ============================================================
   Errores
   ============================================================ */

.cp-ent-setup-errors{
  margin-bottom: var(--space-4);
}

.cp-ent-form-errors__title{
  margin: 0 0 8px;
  font-weight: 700;
}

/* ============================================================
   Layout: formulario + aside sticky
   ============================================================ */

.cp-ent-setup-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--space-4);
  align-items: start;
}

/* ============================================================
   Formulario
   ============================================================ */

.cp-ent-setup-form{
  display: grid;
  gap: var(--space-4);
}

/* ---- Cards de sección ---- */

.cp-ent-setup-card{
  padding: 0;
  overflow: hidden;
}

.cp-ent-setup-card__head{
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.cp-ent-setup-card__icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--tone-info-border);
  margin-top: 1px;
}

.cp-ent-setup-card__icon svg{
  width: 17px;
  height: 17px;
}

.cp-ent-setup-card__title{
  margin: 0 0 3px;
  font-size: var(--text-lg);
  font-weight: 700;
}

.cp-ent-setup-card__help{
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---- Grid de campos ---- */

.cp-ent-setup-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
}

/* ---- Acciones del formulario ---- */

.cp-ent-rform-actions{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-3);
}

/* ============================================================
   Aside sticky
   ============================================================ */

.cp-ent-setup-aside{
  position: sticky;
  top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================================
   Ring de progreso
   ============================================================ */

.cp-ent-setup-progress{
  padding: var(--space-4);
}

.cp-ent-setup-progress .cp-kicker{
  margin-bottom: var(--space-3);
}

.cp-ent-setup-progress__ring{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.cp-ent-setup-progress__ring svg{
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}

.cp-ent-setup-progress__track{
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 7;
}

.cp-ent-setup-progress__fill{
  fill: none;
  stroke: var(--primary);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 213.628;
  transition: stroke-dashoffset .3s ease;
}

.cp-ent-setup-progress__label{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
}

.cp-ent-setup-progress__label strong{
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

.cp-ent-setup-progress__label span{
  font-size: 10px;
  color: var(--muted);
}

/* ---- Lista de campos con check ---- */

.cp-ent-setup-progress__fields{
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.cp-ent-setup-progress__field{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.cp-ent-setup-progress__field svg{
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: color .15s ease;
}

.cp-ent-setup-progress__field.is-done{
  color: var(--tone-success-text);
}

.cp-ent-setup-progress__field.is-done svg{
  color: var(--tone-success-text);
}

/* ============================================================
   Utilidades
   ============================================================ */

/* cp-ent-label, cp-ent-label__required, cp-ent-label__optional,
   cp-ent-rform-field, cp-ent-rform-field--full, cp-ent-rform-textarea,
   cp-ereg-benefit, cp-ereg-benefit__icon
   → ya definidos en enterprise_register.css / enterprise_request_form.css */

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 800px){
  .cp-ent-setup-layout{
    grid-template-columns: 1fr;
  }

  .cp-ent-setup-aside{
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cp-ent-setup-progress{
    flex: 1 1 280px;
  }
}

@media (max-width: 639px){
  .cp-ent-setup-hero{
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
  }

  .cp-ent-setup-grid{
    grid-template-columns: 1fr;
    padding: var(--space-3);
  }

  .cp-ent-rform-actions{
    flex-direction: column-reverse;
  }

  .cp-ent-rform-actions .btn{
    width: 100%;
    justify-content: center;
  }

  .cp-ent-setup-aside{
    flex-direction: column;
  }
}