/* Versión 1 G*/
  :root {
    --bf-green: #4CAF50;
    --bf-green-dark: #388E3C;
    --bf-green-soft: #E8F5E9;
    --bf-orange: #FF9800;
    --bf-orange-dark: #E65100;
    --bf-red: #F44336;
    --bf-red-soft: #FFEBEE;
    --bf-bg: #F0F4F0;
    --bf-card: #FFFFFF;
    --bf-field: #F7F8F6;
    --bf-border: #DDDDDD;
    --bf-text: #212121;
    --bf-muted: #616161;
    --bf-gray: #757575;
    --bf-radius-lg: 22px;
    --bf-radius-md: 12px;
    --bf-shadow: 0 8px 30px rgba(39, 70, 44, 0.09);
  }

  .bf-form-shell,
  .bf-form-shell * {
    box-sizing: border-box;
  }

  .bf-form-shell {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 18px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--bf-text);
    background: var(--bf-bg);
    border-radius: 28px;
  }

  .bf-header {
    text-align: center;
    margin-bottom: 26px;
  }

  .bf-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bf-green-soft);
    color: var(--bf-green-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
  }

  .bf-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    font-weight: 950;
    color: var(--bf-green);
    letter-spacing: -1.4px;
    text-transform: uppercase;
  }

  .bf-header p {
    margin: 10px auto 0;
    max-width: 620px;
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--bf-muted);
  }

  .bf-step-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 0 auto 16px;
    max-width: 920px;
  }

  .bf-step-count {
    color: var(--bf-green-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }

  .bf-step-helper {
    color: var(--bf-gray);
    font-size: 0.78rem;
    text-align: right;
  }

  .bf-progress-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 auto 8px;
    max-width: 920px;
  }

  .bf-progress-step {
    height: 6px;
    border-radius: 999px;
    background: var(--bf-border);
    overflow: hidden;
  }

  .bf-progress-step::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: var(--bf-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
  }

  .bf-progress-step.is-active::before {
    transform: scaleX(1);
  }

  .bf-progress-label {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 auto 22px;
    max-width: 920px;
    font-size: 0.72rem;
    color: var(--bf-gray);
  }

  .bf-progress-label span:nth-child(2) { text-align: center; }
  .bf-progress-label span:nth-child(3) { text-align: right; }


.bf-slider-window {
  width: 100%;
  overflow: hidden; /* Crucial para el carrusel */
  position: relative;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* Animación de altura */
  will-change: height;
}

.bf-slider-track {
  display: flex; /* Cambio de block a flex */
  width: 300%; /* 3 slides = 300% */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: flex-start;
}

.bf-slide {
  flex: 0 0 33.333333%; /* Cada slide ocupa exactamente 1/3 del track */
  width: 33.333333%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Evita interactuar con slides ocultos */
}

.bf-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Feedback de validación */
.bf-field.has-error input, 
.bf-field.has-error select, 
.bf-field.has-error textarea {
  border-color: var(--bf-red) !important;
  background-color: var(--bf-red-soft) !important;
}

  .bf-card {
    background: var(--bf-card);
    border-radius: var(--bf-radius-lg);
    padding: 38px 40px;
    box-shadow: var(--bf-shadow);
    border: 1px solid rgba(76, 175, 80, 0.08);
  }

  .bf-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    color: var(--bf-green-dark);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
  }

  .bf-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bf-green-soft);
  }

  .bf-intro-copy {
    margin: -10px 0 24px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--bf-muted);
  }

  .bf-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .bf-field {
    margin-bottom: 22px;
  }

  .bf-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 750;
    color: var(--bf-muted);
    line-height: 1.35;
  }

  .bf-req {
    color: var(--bf-red);
    margin-left: 2px;
  }

  .bf-help {
    display: inline;
    color: var(--bf-gray);
    font-size: 0.74rem;
    font-weight: 400;
  }

  .bf-field input[type="text"],
  .bf-field input[type="email"],
  .bf-field input[type="tel"],
  .bf-field input[type="url"],
  .bf-field select,
  .bf-field textarea {
    width: 100%;
    min-height: 56px;
    padding: 13px 16px;
    border: 1.7px solid var(--bf-border);
    border-radius: var(--bf-radius-md);
    background: var(--bf-field);
    color: var(--bf-text);
    font-family: inherit;
    font-size: 0.96rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
  }

  .bf-field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--bf-gray) 50%), linear-gradient(135deg, var(--bf-gray) 50%, transparent 50%);
    background-position: calc(100% - 24px) 50%, calc(100% - 16px) 50%;
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    padding-right: 42px;
  }

  .bf-field textarea {
    min-height: 150px;
    resize: vertical;
  }

  .bf-field input:focus,
  .bf-field select:focus,
  .bf-field textarea:focus {
    border-color: var(--bf-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
  }

  .bf-note {
    margin-top: 7px;
    color: var(--bf-gray);
    font-size: 0.76rem;
    line-height: 1.45;
    font-style: italic;
  }

  .bf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--bf-orange);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
  }

  .bf-radio-group,
  .bf-check-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 6px;
  }

  .bf-radio-group.is-inline {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .bf-option,
  .bf-location-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--bf-border);
    border-radius: var(--bf-radius-md);
    background: var(--bf-field);
    color: var(--bf-text);
    font-size: 0.9rem;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
  }

  .bf-option:hover,
  .bf-location-option:hover {
    border-color: var(--bf-green);
    background: var(--bf-green-soft);
  }

  .bf-option input,
  .bf-location-option input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    accent-color: var(--bf-green);
    cursor: pointer;
  }

  .bf-option.is-selected,
  .bf-location-option.is-selected {
    border-color: var(--bf-green);
    background: var(--bf-green-soft);
  }

  .bf-option.is-danger.is-selected {
    border-color: var(--bf-red);
    background: var(--bf-red-soft);
  }

  .bf-alert {
    display: none;
    margin-top: 11px;
    padding: 14px 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .bf-alert.is-warning {
    background: #FFF3E0;
    border: 1.5px solid #FFB300;
    color: var(--bf-orange-dark);
  }

  .bf-alert.is-info {
    background: var(--bf-green-soft);
    border: 1.5px solid var(--bf-green);
    color: var(--bf-green-dark);
  }

  .bf-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
  }

  .bf-location-option {
    min-height: 130px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 16px 10px;
  }

  .bf-location-icon {
    font-size: 1.45rem;
    line-height: 1;
  }

  .bf-city {
    display: block;
    color: var(--bf-text);
    font-size: 0.86rem;
    font-weight: 900;
  }

  .bf-state {
    display: block;
    color: var(--bf-gray);
    font-size: 0.73rem;
  }

  .bf-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    max-width: 920px;
    margin: 18px auto 0;
  }

  .bf-nav-left { justify-self: start; }
  .bf-nav-center { justify-self: center; }
  .bf-nav-right { justify-self: end; }

  .bf-arrow-btn,
  .bf-submit-btn {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.12s ease, opacity 0.2s ease;
  }

  .bf-arrow-btn {
    width: auto;
    min-width: 124px;
    height: 48px;
    padding: 0 18px;
    background: #fff;
    color: var(--bf-green-dark);
    box-shadow: 0 8px 20px rgba(39, 70, 44, 0.10);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .bf-arrow-btn:hover:not(:disabled),
  .bf-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .bf-arrow-btn:disabled,
  .bf-submit-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
  }

  .bf-submit-btn {
    display: none;
    min-width: 290px;
    padding: 14px 26px;
    background: var(--bf-green);
    color: #fff;
    font-size: 0.98rem;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.18);
  }

  .bf-submit-btn:hover:not(:disabled) {
    background: var(--bf-green-dark);
  }

  .bf-nav-hint {
    color: var(--bf-gray);
    font-size: 0.78rem;
    text-align: center;
  }

  .bf-result-banner {
    display: none;
    max-width: 920px;
    margin: 18px auto 0;
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    line-height: 1.5;
  }

  .bf-result-banner h3 {
    margin: 0 0 8px;
    font-size: 1.16rem;
  }

  .bf-result-banner p {
    margin: 0;
    font-size: 0.88rem;
  }

  .bf-result-banner.is-success {
    background: var(--bf-green-soft);
    border: 2px solid var(--bf-green);
    color: var(--bf-green-dark);
  }

  .bf-result-banner.is-danger {
    background: var(--bf-red-soft);
    border: 2px solid var(--bf-red);
    color: #B71C1C;
  }

  .bf-result-banner.is-wait {
    background: #FFF3E0;
    border: 2px solid var(--bf-orange);
    color: #BF360C;
  }

  .bf-hidden {
    display: none !important;
  }

  @media (max-width: 760px) {
    .bf-form-shell {
      padding: 24px 12px;
      border-radius: 18px;
    }

    .bf-card {
      padding: 26px 18px;
      min-height: auto;
    }

    .bf-row-2,
    .bf-location-grid {
      grid-template-columns: 1fr;
    }

    .bf-progress-label {
      font-size: 0.66rem;
    }

    .bf-radio-group.is-inline {
      flex-direction: column;
    }

    .bf-step-head {
      flex-direction: column;
      align-items: flex-start;
    }

    .bf-step-helper {
      text-align: left;
    }

    .bf-nav {
      grid-template-columns: 1fr;
    }

    .bf-nav-left,
    .bf-nav-center,
    .bf-nav-right {
      width: 100%;
      justify-self: stretch;
    }

    .bf-arrow-btn {
      width: 100%;
    }

    .bf-submit-btn {
      min-width: 100%;
      width: 100%;
    }

    .bf-nav-center {
      width: 100%;
    }
  }
