/* public/themes/modern-white/assets/css/pages/enterprise_register.css
   Registro empresarial — Studium 360
   Vista bajo layout.php (interno). No usa clases lp-* (esas son del
   layout público y no tienen efecto aquí).
   ============================================================ */

.cp-ent-wrap--register{
  max-width: 980px;
  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:last-child{
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   Hero con acento de color
   ============================================================ */

.cp-ereg-hero{
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
}

.cp-ereg-hero::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 2px;
  border-radius: 999px;
  background: var(--border);
}

.cp-ereg-hero__icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;

  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(12,121,223,.28);
}

.cp-ereg-hero__icon svg{
  width: 28px;
  height: 28px;
}

.cp-ereg-hero__title{
  margin: 0 0 6px;
  font-size: var(--text-xl);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.cp-ereg-hero__subtitle{
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base, 1rem);
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

/* ============================================================
   Bloque de errores
   ============================================================ */

.cp-ereg-errors{
  margin-bottom: var(--space-5);
}

.cp-ereg-errors__title{
  margin: 0 0 10px;
  font-weight: 700;
}

/* ============================================================
   Layout: formulario + panel de beneficios
   ============================================================ */

.cp-ereg-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--space-4);
  align-items: start;
}

/* ============================================================
   Tarjeta del formulario
   ============================================================ */

.cp-ereg-form-card{
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.cp-ereg-form__fieldset{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);

  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.cp-ereg-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-ereg-field--full{
  grid-column: 1 / -1;
}

.cp-ereg-label{
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.cp-ereg-label__required{
  color: var(--tone-danger-text);
  margin-left: 2px;
}

.cp-ereg-label__optional{
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

/* ---- Input con icono dentro ---- */

.cp-ereg-input-wrap{
  position: relative;
}

.cp-ereg-input-icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  transition: color .15s ease;
}

.cp-ereg-input{
  padding: 13px 16px 13px 44px;
  border-radius: var(--radius-sm);
  border-color: var(--border);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cp-ereg-input:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(12,121,223,.14);
}

.cp-ereg-input-wrap:focus-within .cp-ereg-input-icon{
  color: var(--primary);
}

.cp-ereg-form__hint{
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

.cp-ereg-form__hint--inline{
  margin-top: 4px;
}

.cp-ereg-form__actions{
  display: flex;
  margin-top: var(--space-5);
  gap: var(--space-3);
}

.cp-ereg-form__actions .btn{
  border-radius: var(--radius-sm);
  padding: 12px 22px;
}

/* ============================================================
   Panel lateral de beneficios
   ============================================================ */

.cp-ereg-benefits{
  position: sticky;
  top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cp-ereg-benefit{
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.cp-ereg-benefit__icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;

  background: #fff;
  color: var(--primary);
  border: 1px solid var(--tone-info-border);
}

.cp-ereg-benefit__icon svg{
  width: 18px;
  height: 18px;
}

.cp-ereg-benefit strong{
  display: block;
  margin-bottom: 4px;
  font-size: var(--text-sm);
  color: var(--text);
}

.cp-ereg-benefit p{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================================================
   Texto solo para lectores de pantalla
   ============================================================ */

.cp-sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px){
  .cp-ereg-layout{
    grid-template-columns: 1fr;
  }

  .cp-ereg-benefits{
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cp-ereg-benefit{
    flex: 1 1 240px;
  }
}

@media (max-width: 639px){
  .cp-ereg-hero{
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
  }

  .cp-ereg-form-card{
    padding: var(--space-4);
  }

  .cp-ereg-form__fieldset{
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .cp-ereg-form__actions{
    flex-direction: column-reverse;
  }

  .cp-ereg-form__actions .btn{
    width: 100%;
    justify-content: center;
  }

  .cp-ereg-benefits{
    flex-direction: column;
  }
}