/* ============================================================
   BASE GENERAL
============================================================ */
.invmulti {
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  font-family: "Poppins", sans-serif;
  color: #333;
}

.invmulti .hidden { display: none !important; }

/* ============================================================
   TITULOS Y SUBTITULOS
============================================================ */
.invmulti h3 {
  font-size: 22px;
  font-weight: 700;
  color: #FF671B;         
  margin: 0 0 26px 0;
}

.invmulti h4 {
  font-size: 19px;
  font-weight: 700;
  color: #FF671B;         
  margin: 36px 0 14px;
}

.invmulti h5 {
  font-size: 16px;
  font-weight: 600;
  color: #5B7590;         
  margin: 28px 0 10px;
}

.section-block {
  margin-top: 36px !important;
}

/* ============================================================
   LAYOUT PRINCIPAL (SIDEBAR + FORM)
============================================================ */
.invmulti__container {
  display: flex;
  gap: 50px;
}

/* ============================================================
   SIDEBAR (TIMELINE)
============================================================ */
.invmulti__sidebar {
  width: 250px;
  padding-right: 20px;
  border-right: 1px solid #E4EDF7;
}

@media(max-width: 768px) {
  .invmulti__sidebar {
    display: none !important;
  }
}

.invmulti__sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.invmulti__sidebar ul::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #D9E4F2;
}

.invmulti__sidebar li {
  position: relative;
  padding-left: 54px;
  margin-bottom: 36px;
  font-size: 14px;
  font-weight: 600;
  color: #5B7590;
  cursor: pointer;
  transition: all .2s ease;
}

.invmulti__sidebar li span {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;     
  border: 1px solid #5B7590;
  color: #5B7590;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invmulti__sidebar li.active {
  color: #FF671B;
}

.invmulti__sidebar li.active span {
  background: #FF671B;
  color: #fff;
  border-color: #FF671B;
}

/* ============================================================
   FORMULARIO
============================================================ */
.invmulti__content {
  flex: 1;
}

/* ============================================================
   GRID (ESPACIADOS REALISTAS)
============================================================ */
.invmulti .grid {
  display: grid;
  column-gap: 18px;
  row-gap: 22px;
  margin-bottom: 30px;
}

.invmulti .grid.two { grid-template-columns: repeat(2, 1fr); }
.invmulti .grid.three { grid-template-columns: repeat(3, 1fr); }
.invmulti .grid.four { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   LABELS + INPUTS
============================================================ */
.invmulti label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.invmulti input,
.invmulti select,
.invmulti textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #5B7590 !important;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: all .25s ease;
  margin-top: 4px;
}

.invmulti input:focus,
.invmulti select:focus,
.invmulti textarea:focus {
  border-color: #FF671B !important;
  box-shadow: 0 0 0 2px rgba(255, 103, 27, .18);
  outline: none;
}

/* ============================================================
   RADIO BUTTON REDONDO (PERFECTO)
============================================================ */
.invmulti input[type=radio] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #5B7590;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all .22s ease;
}

.invmulti input[type=radio]:checked {
  border-color: #FF671B;
  background: #FF671B;
}

.invmulti input[type=radio]::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: .2s ease;
}

.invmulti input[type=radio]:checked::after {
  opacity: 1;
}

/* ============================================================
   CHIPS + RADIOS PROFESIONALES (Método usado en W3Schools)
============================================================ */

/* CONTENEDOR DE CHIPS */
.invmulti .chips {
  display: flex;
  gap: 12px;
}

@media(max-width:768px) {
  .invmulti .chips {
    flex-wrap: wrap;
  }
}

/* CHIP */
.invmulti .chip {
  position: relative;
  padding: 14px 22px 14px 50px;  /* <-- espacio para el radio */
  border: 1.8px solid #5B7590;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #5B7590;
  transition: all .25s ease;
  min-width: 140px;
}

/* INPUT REAL (ACCESIBLE PERO OCULTO) */
.invmulti .chip input[type=radio] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* RADIO: CÍRCULO EXTERNO */
.invmulti .chip::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #5B7590;
  border-radius: 50%;
  background: #fff;
  transition: border-color .25s ease;
}

/* RADIO: PUNTO INTERNO */
.invmulti .chip::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  background: #FF671B;
  border-radius: 50%;
  transition: transform .22s ease;
}

/* SI EL RADIO ESTÁ CHECKED → CAMBIA EL CHIP */
.invmulti .chip:has(input:checked) {
  border-color: #FF671B;
  background: #FFF7F3;
  color: #FF671B;
}

/* SI ESTÁ CHECKED → CÍRCULO EXTERNO EN NARANJA */
.invmulti .chip:has(input:checked)::before {
  border-color: #FF671B;
}

/* SI ESTÁ CHECKED → APARECE EL PUNTO INTERNO */
.invmulti .chip:has(input:checked)::after {
  transform: translateY(-50%) scale(1);
}

/* TEXTO */
.invmulti .chip span {
  font-size: 15px;
}


/* ============================================================
   RANGE SLIDERS
============================================================ */
.range-wrapper {
  position: relative;
  margin-top: 8px;
}

.range-wrapper input[type=range] {
  width: 100%;
  height: 6px;
  appearance: none;
  background: #5B7590;
  border-radius: 3px;
  outline: none;
}

.range-wrapper input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #FF671B;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .2s ease;
}

.range-wrapper output {
  display: block;
  font-weight: 700;
  color: #FF671B;
  margin-top: 8px;
}

/* ============================================================
   BOTONES
============================================================ */
.invmulti .btn {
  background: #FF671B;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: .2s ease;
}

.invmulti .btn:hover {
  background: #E45E00;
}

.invmulti .nav {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   NPS
============================================================ */
.nps-scale {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.nps-item {
  width: 42px;
  height: 42px;
  border: 2px solid #d3dbe2;
  border-radius: 50%;
  color: #5B7590;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.nps-item input { display: none; }

.nps-item:hover {
  border-color: #FF671B;
  color: #FF671B;
}

.nps-item:has(input:checked) {
  background: #FF671B;
  color: #fff;
  border-color: #FF671B;
}

.nps-labels {
  margin-top: 10px;
  font-size: 12px;
  color: #5B7590;
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .invmulti__container { flex-direction: column; }

  .invmulti__sidebar {
    width: 100%;
    padding-bottom: 16px;
    display: flex;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid #E4EDF7;
  }

  .invmulti__sidebar li {
    padding-left: 0;
    margin-bottom: 0;
    text-align: center;
    flex-direction: column;
  }

  .invmulti__sidebar li span {
    margin-bottom: 5px;
  }

  .invmulti .grid.two,
  .invmulti .grid.three,
  .invmulti .grid.four {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CHECKBOX PROFESIONAL SOLO PARA .conyuge_misma_direccion
============================================================ */

.invmulti .conyuge_misma_direccion {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    color: #5B7590;
    background: #fff;
    transition: all .25s ease;
    position: relative;
    width: auto;
}

/* input escondido pero accesible */
.invmulti .conyuge_misma_direccion input[type=checkbox] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

/* Caja del checkbox */
.invmulti .conyuge_misma_direccion::before {
    content: "";
    width: 22px;
    height: 22px;
    border: 2px solid #5B7590;
    border-radius: 5px;
    display: block;
    transition: .25s ease;
    background: #fff;
}

/* Icono de check */
.invmulti .conyuge_misma_direccion::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 6px;
    border-left: 3px solid transparent;
    border-bottom: 3px solid transparent;
    transform: rotate(-45deg) scale(0.2);
    top: 50%;
    left: 22px;
    transform-origin: center;
    margin-top: -3px;
    opacity: 0;
    transition: all .25s ease;
}

/* Cuando está marcado → estilos activos */
.invmulti .conyuge_misma_direccion:has(input:checked) {
    border-color: #FF671B;
    background: #FFF7F3;
    color: #FF671B;
}

/* Caja marcada */
.invmulti .conyuge_misma_direccion:has(input:checked)::before {
    border-color: #FF671B;
    background: #FF671B;
}

/* Check visible */
.invmulti .conyuge_misma_direccion:has(input:checked)::after {
    border-left-color: #fff;
    border-bottom-color: #fff;
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

/* Texto */
.invmulti .conyuge_misma_direccion span {
    font-size: 15px;
}
/* ============================================================
   SIDEBAR MOBILE — SOLO ICONOS EN FILA (FUNCIONAL)
============================================================ */
@media (max-width: 768px) {

  .invmulti__sidebar {
    width: 100%;
    padding: 16px 0 20px 0;
    border-right: none;
    border-bottom: 1px solid #E4EDF7;
  }

  /* UL en fila horizontal */
  .invmulti__sidebar ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 0;
  }

  /* Quitar la línea vertical */
  .invmulti__sidebar ul::before {
    display: none !important;
  }

  /* Cada LI será solo un botón redondeado */
  .invmulti__sidebar li {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Ocultar texto sin ocultar el span */
    color: transparent !important;
  }

  /* Evitamos que el texto se vea aunque haga hover */
  .invmulti__sidebar li * {
    color: transparent !important;
  }

  /* El círculo (ESTE SÍ SE VE) */
  .invmulti__sidebar li span {
    color: transparent !important; /* ocultamos el número de texto */
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid #5B7590;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;

    /* PERO EL NÚMERO SÍ APARECE */
    position: relative;
  }

  /* Mostramos el número usando ::after */
  .invmulti__sidebar li span::after {
    content: attr(data-step);  
    color: #5B7590 !important;
    font-size: 16px;
    font-weight: 700;
  }

  /* Activo */
  .invmulti__sidebar li.active span {
    background: #FF671B;
    border-color: #FF671B;
  }

  .invmulti__sidebar li.active span::after {
    color: #fff !important;
  }
}
