

/* --- Activación / alternancia de la página --------------------------- */
.datos-page__legacy {
  display: none !important;
}

.datos-page header nav > ul > li:nth-child(4),
.datos-page .copy {
  display: none;
}

.datos-page .datos-layout {
  padding: 40px 0;
  font-family: Inter, sans-serif;
}

/* --- Layout: encabezado, volver y pasos ------------------------------ */
.datos-layout__top {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
}

.datos-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 10px;
  color: #000;
  font-size: 16px;
  text-decoration: underline;
}

.datos-back i {
  color: #E9500E;
}

.datos-steps {
  grid-column: 2;
  display: flex;
  align-items: flex-start;
  gap: 83px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.datos-step {
  position: relative;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #F2F2F2;
  font-size: 12px;
  text-align: center;
}

.datos-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 68px;
  width: 83px;
  border-top: 2px solid #F2F2F2;
}

.datos-step--done,
.datos-step--active {
  color: #000;
}

.datos-step--done::after,
.datos-step--active::after {
  border-color: #E9500E !important;
}

.datos-step__circle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F2F2F2;
  color: #fff;
  font-size: 17px;
}

.datos-step--done .datos-step__circle,
.datos-step--active .datos-step__circle {
  background: #E9500E;
}

.datos-step b,
.datos-step small {
  line-height: 1.2;
}

/* --- Título y grilla principal ---------------------------------------- */
.datos-layout__title {
  margin: 40px 0 38px;
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.datos-layout__grid {
  display: grid;
  grid-template-columns: minmax(0, 679px) 360px;
  justify-content: center;
  align-items: start;
  gap: 40px;
}

/* --- Formulario --------------------------------------------------------- */
.datos-form h2 {
  margin: 0 0 28px;
  color: #000;
  font-family: Montserrat, Poppins, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.datos-form__fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 10px;
}

.datos-field {
  width: 100%;
  height: 41px;
  padding: 9px 16px;
  border: 1px solid #C6C6C6;
  border-radius: 15px;
  background-color: #fff;
  color: #828282;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  box-shadow: none;
}

.datos-field:disabled {
  background: #E9ECEF;
  opacity: 1;
}

/* Cada campo va envuelto en .field-tip (para validación/tooltips), así que la grilla
   se coloca sobre los hijos directos del contenedor, no sobre los .datos-field. */
.datos-form__fields > .field-tip {
  position: relative;
  display: flex;
  flex-direction: column;
}

.datos-form__fields > *:nth-child(1),
.datos-form__fields > *:nth-child(4) {
  grid-column: span 6;
}

.datos-form__fields > *:nth-child(2),
.datos-form__fields > *:nth-child(3),
.datos-form__fields > *:nth-child(8),
.datos-form__fields > *:nth-child(9) {
  grid-column: span 3;
}

.datos-form__fields > *:nth-child(5),
.datos-form__fields > *:nth-child(6),
.datos-form__fields > *:nth-child(7) {
  grid-column: span 2;
}

.datos-field:is(select) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 6px;
}

/* Flecha (solo visual) para el input de Nacionalidad, igual a los selects. */
.datos-field--arrow {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 6px;
}

.datos-form__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.datos-form__submit {
  min-width: 176px;
  min-height: 38px;
  padding: 10px 15px;
  border: 0;
  border-radius: 30px;
  background: #E9500E;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.datos-form__help {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding-bottom: 3px;
  border-bottom: 1px solid #000;
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.datos-form__help i {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #3DBB3D;
  color: #fff;
  font-size: 22px;
}

/* --- Resumen (aside) ---------------------------------------------------- */
.datos-summary {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.datos-summary__header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #E5E7EB;
}

.datos-summary__header h2 {
  margin: 0 0 12px;
  color: #E9500E;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.datos-summary__header p {
  display: grid;
  grid-template-columns: 30px 1fr;
  margin: 0 0 12px;
  color: #364153;
  font-size: 14px;
  align-items: center;
  gap: 4px;
}

.datos-summary__header p small {
  grid-column: 2;
  color: #99A1AF;
  font-size: 12px;
  line-height: 16px;
}

.datos-summary__header p strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.datos-summary__header > img {
  align-self: center;
  width: 90px;
  height: 116px;
  object-fit: cover;
  border-radius: 12px;
}

.datos-summary__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E5E7EB;
  border-radius: 50%;
  color: #E9500E;
}

.datos-summary__icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.datos-summary__detail {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 8px;
  color: #E9500E;
  font-size: 14px;
  font-weight: 700;
}

.datos-summary__detail img {
  width: 14px;
  height: 14px;
}

.datos-summary__prices {
  padding: 0 16px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  background: #FAFAFA;
}

.datos-summary__prices > p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px dashed #E5E7EB;
  color: #364153;
  font-size: 14px;
  line-height: 20px;
}

.datos-summary__prices > p strong,
.datos-summary__prices > p b,
.datos-summary__prices > p s {
  font-size: 14px;
  line-height: 20px;
}

.datos-summary__prices s {
  color: #99A1AF;
}

.datos-summary__prices .datos-summary__discount {
  color: #3DB37A;
}

.datos-summary__coupon {
  display: flex;
  gap: 5px;
  padding: 0 0 12px;
}

.datos-summary__coupon input {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 5px 12px;
  border: 1px solid #C6C6C6;
  border-radius: 15px;
  font-size: 11px;
}

.datos-summary__coupon button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px dashed #E9500E;
  border-radius: 20px;
  background: transparent;
  color: #E9500E;
  font-size: 11px;
  font-weight: 600;
}

.datos-summary__tax {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #FFF0E8;
  color: #E9500E;
  font-size: 12px;
  font-weight: 700;
}

.datos-summary__tax i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin: 0;
  font-size: 10px;
  line-height: 1;
}

.datos-summary__total {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  padding: 10px 24px;
  border-radius: 16px;
  background: #FFF0E8;
  text-align: center;
  text-transform: uppercase;
}

.datos-summary__total > span {
  color: #3A3A3A;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.96px;
}

.datos-summary__total > strong {
  color: #E9500E;
  font-family: Montserrat, Poppins, sans-serif;
  font-size: 48px;
  line-height: 52px;
  margin-bottom: 10px;
}

.datos-summary__total small {
  padding: 6px 12px;
  border-radius: 20px;
  background: #fff;
  color: #4A5565;
  font-size: 12px;
  text-transform: none;
}

.datos-summary__total small b {
  color: #F05A28;
}


.datos-summary__total > strong {
  font-weight: 800;
}

.datos-summary {
  width: 384px;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
}

.datos-summary__header {
  padding: 10px 24px 0;
}

.datos-summary__header h2 {
  font-family: Montserrat, Poppins, sans-serif;
  font-weight: 800;
}

.datos-summary__header p {
  font-size: 14px;
}

.datos-summary__detail {
  margin: 0;
  padding: 8px 24px;
  font-size: 14px;
}

.datos-summary__prices {
  margin: 0 16px;
}

.datos-summary__prices > p {
  font-size: 14px;
  line-height: 20px;
}

.datos-summary__coupon input {
  height: 28px;
  padding: 6px 12px;
}

.datos-summary__coupon button {
  padding: 6px 12px;
  line-height: 16px;
}

.datos-summary__tax {
  align-items: center;
  line-height: 16px;
}

.datos-summary__total {
  margin: 8px 16px 10px;
}

.datos-summary__total > strong {
  font-family: Montserrat, Poppins, sans-serif;
}

/* --- Responsive: tablet / mobile ---------------------------------------- */
@media only screen and (max-width: 991px) {
  .datos-layout__top {
    grid-template-columns: auto 1fr;
    gap: 20px;
    overflow-x: auto;
  }
  .datos-steps {
    grid-column: 2;
    transform: scale(0.82);
    transform-origin: right bottom;
  }
  .datos-layout__grid {
    grid-template-columns: 1fr;
  }
  .datos-summary {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 640px) {
  .datos-page .datos-layout {
    padding-top: 20px;
  }
  .datos-layout__top {
    display: block;
  }
  .datos-steps {
    width: max-content;
    margin: 16px auto 0;
    gap: 34px;
    transform: scale(0.72);
    transform-origin: center top;
  }
  .datos-step:not(:last-child)::after {
    width: 42px;
  }
  .datos-layout__title {
    margin-top: 10px;
    font-size: 26px;
  }
  .datos-form h2 {
    font-size: 18px;
  }
  .datos-form__fields {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .datos-form__fields > *:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }
  .datos-form__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .datos-form__help {
    align-self: center;
    justify-content: center;
  }

  .nuevo-form-page .mini-form__buttons {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
  }
}

@media only screen and (max-width: 768px) {
  .datos-summary {
    width: 100%;
  }
}
