.containersteps-locales {
    height: 4600px;
    width: 100%;
    margin: 0;
}
.sticky-section-texts-locales { width: 100%; }
.steps-container-locales{ width: 100%; }

@media (min-width: 840px) {
    .containersteps-locales { height: 2000px; }
}
@media (max-width: 1024px) {
    .mayusculas { color: var(--neutro2); font-size: 35px; }
}

@media (max-width: 768px) {
    .containersteps-locales { height: auto !important; margin-bottom: 15%; }
    .sticky-section-locales { position: relative; }
}

.sticky-section-locales {
    margin-top: 20px;
    position: sticky;
    top: 130px;
    background-color: #ffffff;
    height: auto;
    z-index: 10;
    align-content: center;
    width: 80%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sticky-section-locales {
        flex-direction: row;
        display: flex;
        justify-content: space-evenly;
        align-items: flex-start;
        width: 90%;
        margin-top: 5%;
        margin-bottom: 5%;
    }
    .sticky-section-texts-locales{ width:50%; }
    .steps-container-locales{ width:60%; }
    .btn_presp{ width: 80%; }
}

@media (min-width: 840px) {
    .sticky-section-texts-locales { width: 30%; }
}

.section-title-locales {
    margin: 0;
    color: #000000;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
}

@media (max-width: 640px) {
    .section-title-locales { margin-top: 30px; font-size: 35px; font-weight: 800;}
    .mayusculas {
        font-weight: 800;
    }
    .sticky-section-texts-locales { margin-bottom: 50px; }
}

.section-description-locales { color: #000000; font-size: 16px; margin-bottom: 20px; }

.budget-button-locales {
    display: inline-block;
    padding-left: 1.25rem; padding-right: 1.25rem;
    padding-top: 0.625rem; padding-bottom: 0.625rem;
    background-color: var(--color1); color: var(--neutro1);
    text-decoration: none; border-radius: 0.375rem;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.budget-button-locales:hover { background-color: var(--color1); color: var(--neutro1); }

/* ====== Layout por defecto (tablet/desktop) ====== */
.steps-container-locales {
    display: grid;
    grid-template-columns: 20px auto;
    gap: 20px;
    margin-right: 0;
}

@media (min-width: 640px) {
    .steps-container-locales { margin-right: 20px; gap: 40px; }
}

.progress-bar-containersteps-locales {
    position: relative;
    width: 20px;
    background: var(--color2);
    border-radius: 10px;
}
.progress-bar {
    position: absolute;
    width: 100%;
    height: 0;
    background: var(--color1);
    border-radius: 20px;
    transition: height 0.1s linear;
    top: 0;
}

.steps-locales { display: flex; flex-direction: column; }

.list-title-locales { margin-bottom: 10px; }
.list-title-heading-locales { margin: 0; color: #000; font-size: 30px; font-weight: bold; margin-bottom: 10px; }

.btn_presp{ width: 70%; margin-top: 20px; }
@media (max-width: 640px) { .list-title-heading-locales { font-size: 25px; } }
@media (min-width: 1440px) { .btn_presp{ width: 50%; } }

.step {
    padding: 30px 0px;
    font-size: 16px;
    color: #00000044;
    gap: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: row;
    transition: all 0.4s ease-in;
}

.step .list-text-locales h4,
.step .list-text-locales p { color: #00000044 !important; }
.step .list-text-locales h4{ font-size: 14px; font-weight: 600; }
.step .list-text-locales p { font-size: 14px; font-weight: 300; }

.step.active .list-number-locales p { color: var(--color1) !important; opacity: 1; }
.step.active .list-text-locales p { color: #000 !important; font-size: 14px; font-weight: 300; }
.step.active .list-text-locales h4{ color: #000 !important; font-size: 14px; font-weight: 600; }

.list-text-locales h4,
.list-text-locales p,
.list-number-locales p { text-align: left !important; margin: 0 !important; }

.list-text-description-locales { margin-top: 8px; }
.list-text-title-locales, .list-text-description-locales { transition: all 0.4s ease-in; }

.list-number-text-locales {
    color: var(--color1) !important;
    font-size: 35px;
    font-weight: 700;
    opacity: 0.4;
}

.mayusculas{ color: var(--neutro2); }
@media (min-width: 1024px) { .mayusculas{ font-size: 40px; } }
@media (min-width: 1440px) {
    .section-title-locales{ font-size: 40px; }
    .mayusculas{ font-size: 50px; }
}
.sticky-section-texts-locales h4{ margin-top: 0px; line-height: 1; }

@media (max-width: 425px){
    .sticky-section-locales { width: 85%; }
    .step.active .list-text-locales h4 { color: #000 !important; font-size: 1.2rem; font-weight: 800; }
    .step.active .list-text-locales p { color: #000 !important; font-size: 1rem; font-weight: 0; }
    .budget-button-locales{
        display: none;
    }
}
.budget-button-locales:hover{ background-color: var(--color2); color: var(--color1); }

/* =====================================================
   =====    CAMBIO DE LAYOUT SOLO EN MÓVIL     =========
   Pone el título/botón junto a la barra (no arriba)
   ===================================================== */
@media (max-width: 640px) {

  /* El wrapper se vuelve el referente de la barra */
  .sticky-section-locales{    /* referencia para posicionar la barra */
    padding-left: 40px;        /* hueco para la barra (20) + separación (20) */
    margin-top: 8rem;
    margin-bottom: 8rem;
  }

  /* Movemos la barra fuera del flujo y la estiramos
     para que arranque arriba, al lado del título */
  .progress-bar-containersteps-locales{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;                 /* ocupa toda la altura del bloque */
    width: 20px;
    background: var(--color2);
    border-radius: 10px;
    display: block;            /* asegura que se pinte en iOS Safari */
    z-index: 1;
  }

  /* El contenedor de pasos deja de reservar la columna de 20px
     (ya no necesitamos grid 20px + auto porque la barra está absoluta) */
  .steps-container-locales{
    display: block;
    margin-right: 0;
  }

  /* Los pasos siguen igual, a la derecha de la barra */
  .steps-locales{
    display: flex;
    flex-direction: column;
  }

  /* Opcional: un poco de aire bajo el bloque de título */
  .sticky-section-texts-locales{
    margin-bottom: 16px;
  }
}
