/* --- Reset rápido solo dentro del contenedor --- */
.multistep-form__container {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  align-items: center;

}

  @media(max-width:920px) {
    .multistep-form__container { 
      flex-direction: column;
    }
}
.multistep-form__container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.multistep-form__container form,
.pre-form {
  max-width: 700px;
  color: #f4f4f4;
}
.multistep-form__container .pre-form p{
  font-style: normal;
  color: #fff;
  padding-bottom: 1rem;
}
@media (min-width:1280px) {
  .multistep-form__container form {
  max-width: 930px;
  }
}
/* Ocultar todos los steps menos el activo */
.multistep-form__container fieldset,
.multistep-form__container form {
  display: none;
  border: none;
}

.multistep-form__container fieldset.active,
.multistep-form__container form.active
 {
  display: block;
}

/* animaciones */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Títulos */
.multistep-form__container h2, 
.multistep-form__container h3  {
  font-weight: 500;
  margin-bottom: 1.5rem;
}
/* Inputs */
.multistep-form__container input,
.multistep-form__container select,
.multistep-form__container textarea {
  width: 100%;
  padding:22px 30px!important;
  margin-bottom: 1rem;
  border: none;
  border-radius: 15px !important;
  background: #3A3A3A !important;
  color:  #F8EBEB8C !important;
  font-size: 1rem;
}
.multistep-form__container input::placeholder,
.multistep-form__container textarea::placeholder,
.multistep-form__container select,
 .multistep-form__container input[type=text] {
  color: #F8EBEB8C !important;
  text-align: center;
  font-size: 1rem;
  font-style: italic;
  opacity: 1 !important;
}
.multistep-form__container textarea {
  min-height: 155px;
}
@media (min-width: 1440px) {
  .multistep-form__container input::placeholder,
  .multistep-form__container input[type=text],
  .multistep-form__container textarea::placeholder,
  .multistep-form__container select,
  .multistep-form__container .custom-option,
  .multistep-form__container  .custom-optgroup,
   .custom-select__trigger span  {
    font-size: 1.5rem;
  }
  .multistep-form__container textarea {
    min-height: 230px;
  }

}
/* Grupos en fila */
.multistep-form__container .form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
      position: relative;
}
.multistep-form__container .form-group input {
  flex: 1;
}
.multistep-form__container .form-group select {
  flex: 0.2;
}
.multistep-form__container .form-group select.comuna {
     flex: 1;
}
/* Checkboxes */
.multistep-form__container label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ddd;
}
.multistep-form__container input[type="checkbox"] {
  margin-top: 0.3rem;
}
/* Botones */
.multistep-form__container .nav-arrow,
.multistep-form__container .btn-download {
  padding: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
}
.nav-arrow::after {
  border-left: 1px solid var(--dark-color);
  border-top: 1px solid var(--dark-color);
  content: "";
  display: block;
  height: 12px;
  position: relative;
  transform: rotate(-45deg);
  width: 12px;
  right: -3px;
  transition: 0.2s;
}
.multistep-form__container .nav-arrow.next::after {
  right: 3px;
  transform: rotate(135deg);
}
.multistep-form__container .nav-arrow.next:hover::after,
.multistep-form__container .nav-arrow.prev:hover::after{
  filter: invert(1);
}

.multistep-form__container .btn-download {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-family: SourceSansPro, sans-serif;
  font-weight: 300;
  border-radius: 16px;
  gap: 8px;
}

/* Navegación */
.multistep-form__container .form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
/* Acciones (descargas/subidas) */
.multistep-form__container .form-actions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}
.multistep-form__container .form-actions input[type=file] {
  flex: 1;
}
/* Textos largos */
.multistep-form__container fieldset p {
  font-size: 20px;
  color: #F8EBEB8C;
  margin 1rem 0;
  font-style: italic;
}
.logosimbolo-form {
  padding-bottom: 30px;
}
/* Ocultar el icono nativo */
.multistep-form__container input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  color: red;
}
/* Contenedor relativo para posicionar el icono */
.multistep-form__container input[type="date"] {
  position: relative;
  flex: 0.5;
}
/* Ícono personalizado como fondo  */
.multistep-form__container input[type="date"]::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v2h18V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm13 8H4v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  pointer-events: none; /* el click sigue funcionando en el input */
}
.multistep-form__container label.btn-upload {
  color: var(--dark-color);
}
.multistep-form__container label.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 16px;
  background: var(--primary-color);
  padding: 1rem;
  flex: 1;
  margin-bottom: 0 !important;;
}

.multistep-form__container .one-item label.btn-upload {
  max-width: fit-content;
}
.multistep-form__container label.btn-upload span {
  color: var(--dark-color);
  font-size: 1.5rem !important;
}
/* Esconde el input real */
.btn-upload input[type="file"] {
  display: none;
}
/* Texto con puntos suspensivos */
.btn-upload .btn-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1; /* 🔑 se ajusta al espacio disponible */
}
.multistep-form__container input[type="checkbox"] {
  flex: 0;
}
.ver-categorias {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.title-bienvenida {
  margin: 0 auto;
  max-width:  595px;
  padding: 10px;
  gap: 40px;
  text-align: center;
}
.bienvenida-section { 
  display: none;
}

.category-item , .title-bienvenida, .bienvenida-section.active {
  display: flex;
  flex-direction: column;
  align-items: center;
} 
.title-bienvenida * {
  font-size: 22px;
  color: #fff;
  text-align: center;
}
.category-item {
  gap: 15px;
  max-width: 135px;
}
.category-item .category-icon {
  background: #242424;
  border-radius: 50px;
  padding: 12px;
} 
.category-item .category-icon img {
  object-fit: cover;
}
.bienvenida-section {
  min-height: 70vh;
  gap: 6rem;
  width: 100%;
}
.section-hidden { 
  display: none !important;
}

/* ---------- Progress Bar Loader ---------- */
.progress-wrap {
  position: fixed;
  inset: auto 0 0 0;   /* bottom full width */
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  z-index: 99999;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}



.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00E5A8, #7C3AED, #00E5A8);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  transition: width 220ms ease;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
/* Hide helper class */
.progress-wrap.is-hidden {
  display: none;
}



/* Contenedor del calendario *//* Contenedor popup */

/* Oculta el calendario por defecto */
.calendar-popup {
  display: none; 
  /* Otras propiedades de estilo para el popup, como position, z-index, etc. */
  position: absolute;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* Muestra el calendario cuando tiene la clase 'is-visible' */
.calendar-popup.is-visible {
  display: block; 
}

/* Día seleccionado */
#calendar.vc [data-vc-day].vc-selected {
  background: var(--primary-color);
  color: #fff;
}

.calendar-popup [data-vc-theme=dark].vc, .calendar-popup [data-vc-theme=light].vc {
          background-color: var(--dark-color);
            padding: 10px;
}

.calendar-popup [data-vc-theme=dark] .vc-date[data-vc-date-selected] .vc-date__btn,
.calendar-popup [data-vc-theme=light] .vc-date[data-vc-date-selected] .vc-date__btn {
      background-color: var(--primary-color);
  }

.calendar-popup [data-vc-theme=dark] .vc-date[data-vc-date-holiday] .vc-date__btn, 
.calendar-popup [data-vc-theme=light] .vc-date[data-vc-date-holiday] .vc-date__btn,
.calendar-popup [data-vc-theme=dark] .vc-date[data-vc-date-weekend] .vc-date__btn,
.calendar-popup [data-vc-theme=light] .vc-date[data-vc-date-weekend] .vc-date__btn,
.calendar-popup [data-vc-theme=dark] .vc-week__day[data-vc-week-day-off], 
.calendar-popup [data-vc-theme=light] .vc-week__day[data-vc-week-day-off],
.calendar-popup [data-vc-theme=dark] .vc-date[data-vc-date-today] .vc-date__btn,
.calendar-popup [data-vc-theme=light] .vc-date[data-vc-date-today] .vc-date__btn

 {
      color: var(--primary-color);
  } 
.calendar-popup [data-vc-theme=dark] .vc-date__btn,
.calendar-popup [data-vc-theme=light] .vc-date__btn,
.calendar-popup [data-vc-theme=light] .vc-date[data-vc-date-weekend][data-vc-date-month=next] .vc-date__btn,
.calendar-popup [data-vc-theme=dark] .vc-date[data-vc-date-weekend][data-vc-date-month=next] .vc-date__btn,
.calendar-popup [data-vc-theme=dark] .vc-date[data-vc-date-weekend][data-vc-date-month=prev] .vc-date__btn,
.calendar-popup [data-vc-theme=light] .vc-date[data-vc-date-weekend][data-vc-date-month=prev] .vc-date__btn,
.calendar-popup [data-vc-theme=dark] .vc-months__month,
.calendar-popup [data-vc-theme=light] .vc-months__month,
.calendar-popup  [data-vc-theme=dark] .vc-years__year,
.calendar-popup  [data-vc-theme=light] .vc-years__year
   {
   background-color: var(--dark-color);
      color: var(--light-color);
}

.calendar-popup [data-vc-theme=light] .vc-month,
.calendar-popup [data-vc-theme=light] .vc-year {
  color: var(--light-color);
}
.calendar-popup .vc-header__content {
    display: flex;
    gap: 8px;
}
.calendar-popup [data-vc-theme=light] .vc-arrow:before {
    filter: invert(1);
}


.field-error {
  border: 2px solid red !important;
  animation: errorBlink 0.6s ease;
}

@keyframes errorBlink {
  0%   { box-shadow: 0 0 4px red; }
  50%  { box-shadow: 0 0 12px red; }
  100% { box-shadow: 0 0 4px red; }
}



.error-message {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #fff;

    font-style: italic;
  border-radius: 4px;
  font-size: 0.9rem;
 width: fit-content;
      background: #0000006b;
}
.error-message p {
    color: #fff;
}
.error-message ul {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
    color: #fff;
  font-style: italic;
}

/*
@media (min-width: 1080px) {
  .error-message {
    position: absolute;
    top: 28%;
     left: 64%; 
  }
}


@media (min-width: 1280px) {
  .error-message {
    left: 50%;
  }
}

*/

@media (max-width: 1080px) {
  .multistep-form__container .form-group {
    flex-direction: column;
  } 
}

.calendar-popup optgroup option, .calendar-popup optgroup {
  text-align: left;
}

.custom-select {
  position: relative;
  flex: 1.2;
  cursor: pointer;
  font-family: inherit;
}

.custom-select__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  background: #3a3a3a; 
  border: none;
  border-radius: 15px !important;
}

.custom-select.open .custom-options {
  display: block;
}
.custom-select__trigger span {
    font-style: italic;
   color: #F8EBEB8C !important;
} 
.arrow {
  width: 8px;
  height: 8px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  transition: transform 0.3s;
}

.custom-select.open .arrow {
  transform: rotate(135deg);
}

.custom-options {
  display: none;
  
  position: absolute;
  background: #3a3a3a;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  z-index: 99;
}

.custom-optgroup {
  padding: 8px 12px;
  font-weight: bold;
  font-size: 0.9rem;
}

.custom-option {
  padding: 10px 12px;
  transition: background 0.2s;
}

.custom-option:hover {
  background: var(--light-color);
  color: var(--dark-color);
}

/* 🔹 Quitar flechas en Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 🔹 Quitar flechas en Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


