.presupuesto-flow-page {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 14px 16px 30px;
}

.presupuesto-flow-page form.webform-submission-presupuesto-transporte-add-form {
  width: 100%;
  max-width: none;
  margin: 16px auto;
  padding: 28px;
  border-radius: 14px;
  background: #f5faf7;
  border: 1px solid #d8e8de;
}

.presupuesto-flow-page h1,
.presupuesto-flow-page h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin: 0 0 14px;
}

.presupuesto-flow-page h1.page-title,
.presupuesto-flow-page h2.page-title {
  text-align: center;
}

body.path-presupuesto-online #block-iotheme-page-title-block {
  margin: 14px auto 10px !important;
  max-width: 100%;
}

body.path-presupuesto-online #block-iotheme-page-title-block h1 {
  text-align: center !important;
  margin: 0;
  line-height: 1.15;
}

/* Keep explicit selectors requested from DevTools inspection. */
body.path-presupuesto-online div#block-iotheme-page-title h1,
body.path-presupuesto-online div#block-iotheme-page-title-block h1 {
  text-align: center;
  margin: 0;
}

body.path-presupuesto-online div#block-iotheme-page-title,
body.path-presupuesto-online div#block-iotheme-page-title-block {
  margin: 20px auto;
  margin-bottom: 0;
}

.presupuesto-flow-page input[type="text"],
.presupuesto-flow-page input[type="email"],
.presupuesto-flow-page input[type="tel"] {
  min-height: 56px;
  font-size: 1.12rem;
  padding: 12px 14px;
}

.presupuesto-flow-page textarea {
  min-height: 160px;
  font-size: 1.08rem;
}

.presupuesto-flow-cta {
  text-align: center;
  margin: 16px auto 6px;
}

.presupuesto-flow-cta__btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 12px;
  background: var(--principal);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 109, 60, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.presupuesto-flow-cta__btn:hover {
  transform: translateY(-1px);
  background: var(--principal);
  box-shadow: 0 12px 26px rgba(15, 109, 60, 0.34);
}

@media (min-width: 992px) {
  .presupuesto-flow-cta {
    margin: 8px auto 14px;
    padding: 18px;
    border: 1px solid var(--principal);
    background: var(--principal);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 109, 60, 0.24);
  }

  .presupuesto-flow-cta__btn {
    width: min(760px, 100%);
    padding: 18px 34px;
    font-size: 1.3rem;
    border-radius: 14px;
    background: #ffffff;
    color: #0f6d3c;
    box-shadow: 0 14px 30px rgba(3, 48, 25, 0.25);
  }

  .presupuesto-flow-cta__btn:hover {
    transform: translateY(-2px);
    background: #f4f7f5;
    color: #0c5b32;
    box-shadow: 0 18px 34px rgba(3, 48, 25, 0.3);
  }
}

.presupuesto-flow-page .presupuesto-flow-progress {
  margin-bottom: 20px;
}

.presupuesto-flow-page .presupuesto-flow-progress__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.presupuesto-flow-page .presupuesto-flow-progress__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #14412a;
}

.presupuesto-flow-page .presupuesto-flow-progress__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5a55;
}

.presupuesto-flow-page .presupuesto-flow-progress__bar {
  height: 8px;
  background: #d8e8de;
  border-radius: 999px;
  overflow: hidden;
}

.presupuesto-flow-page .presupuesto-flow-progress__value {
  display: block;
  height: 100%;
  width: 0;
  background: #0f6d3c;
  transition: width 220ms ease;
}

.presupuesto-flow-page .presupuesto-flow-hidden {
  display: none !important;
}

.presupuesto-flow-page input[type="hidden"] {
  display: none !important;
}

.presupuesto-flow-page .presupuesto-flow-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.presupuesto-flow-page div#edit-actions {
  display: flex;
}

.presupuesto-flow-page .presupuesto-flow-nav__btn {
  border: 0;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1.08rem;
  min-width: 130px;
  font-weight: 700;
  cursor: pointer;
}

.presupuesto-flow-page .presupuesto-flow-nav__btn--secondary {
  margin-right: auto;
}

.presupuesto-flow-page .presupuesto-flow-nav__btn--primary {
  margin-left: auto;
}

.presupuesto-flow-page .presupuesto-flow-nav__btn--primary {
  background: #0f6d3c;
  color: #fff;
}

.presupuesto-flow-page .form-actions input[type="submit"],
.presupuesto-flow-page .form-actions button.webform-button--submit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--principal);
  color: #fff;
  font-weight: 700;
}

.presupuesto-flow-page .presupuesto-flow-nav__btn--secondary {
  background: #e5ece8;
  color: #22312a;
}

.presupuesto-flow-page .presupuesto-flow-nav__btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.presupuesto-flow-page .js-form-item-tipo-servicio > label {
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
  color: #163d29;
}

.presupuesto-flow-page legend#edit-tipo-servicio--wrapper-legend {
  margin-bottom: 20px;
}

.presupuesto-flow-page .js-form-item-tipo-servicio .form-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.presupuesto-flow-page #edit-tipo-servicio {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 12px;
}

.presupuesto-flow-page #edit-tipo-servicio input[type="radio"] {
  display: none !important;
}

.presupuesto-flow-page #edit-tipo-servicio > .js-form-type-radio,
.presupuesto-flow-page #edit-tipo-servicio > .form-type-radio,
.presupuesto-flow-page #edit-tipo-servicio > div {
  flex: 1 1 240px;
  margin: 0 !important;
}

.presupuesto-flow-page .js-form-item-tipo-servicio .js-form-type-radio {
  margin: 0;
  position: relative;
}

.presupuesto-flow-page #edit-tipo-servicio label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #c4d8cb;
  background: #ffffff;
  color: #173425;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.presupuesto-flow-page .js-form-item-tipo-servicio .js-form-type-radio label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #c4d8cb;
  background: #ffffff;
  color: #173425;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.presupuesto-flow-page .js-form-item-tipo-servicio .js-form-type-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.presupuesto-flow-page .js-form-item-tipo-servicio .js-form-type-radio.is-active label,
.presupuesto-flow-page .js-form-item-tipo-servicio .js-form-type-radio input[type="radio"]:checked + label {
  border-color: #0f6d3c;
  background: #0f6d3c;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 109, 60, 0.2);
}

.presupuesto-flow-page .js-form-item-tipo-servicio .js-form-type-radio label:hover {
  border-color: #0f6d3c;
  background: #eff8f2;
}

.presupuesto-flow-page .js-form-item-tipo-servicio .js-form-type-radio.is-active label:hover {
  background: #0f6d3c;
}

.presupuesto-flow-page #edit-tipo-servicio .is-active label {
  border-color: #0f6d3c !important;
  background: #0f6d3c !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 109, 60, 0.2);
}

.presupuesto-flow-page .presupuesto-mapas-help {
  font-size: 1.06rem;
  line-height: 1.45;
}

body.path-presupuesto-online footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

body.path-presupuesto-online .region.region-footer {
  width: min(1260px, 100%) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

body.path-presupuesto-online .cardbanner .field--name-field-imagen {
  max-height: 300px;
  overflow: hidden;
}

body.path-presupuesto-online .cardbanner .field--name-field-imagen .field__item,
body.path-presupuesto-online .cardbanner .field--name-field-imagen picture {
  display: block;
  height: 100%;
}

body.path-presupuesto-online .cardbanner .field--name-field-imagen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

@media (min-width: 1400px) {
  body.path-presupuesto-online .cardbanner .field--name-field-imagen img {
    object-position: 0 -190px;
  }
}

@media (max-width: 767.98px) {
  body.path-presupuesto-online .cardbanner h3.text-align-center,
  body.path-presupuesto-online .cardbanner .field--name-field-cuerpo .field__item h3.text-align-center {
    display: none !important;
  }

  body.path-frontpage {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .presupuesto-flow-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    z-index: 90;
    text-align: center;
  }

  .presupuesto-flow-cta__btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1.06rem;
    box-shadow: 0 6px 16px rgba(15, 109, 60, 0.28);
  }

  body.path-frontpage #block-iotheme-whatsapp {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  body.path-presupuesto-online #block-iotheme-whatsapp {
    left: 10px;
    right: auto;
    bottom: 18px;
  }

  .presupuesto-flow-page {
    padding: 10px 10px 20px;
  }

  body.path-presupuesto-online #block-iotheme-page-title-block {
    margin: 10px auto 8px !important;
  }

  .presupuesto-flow-page form.webform-submission-presupuesto-transporte-add-form {
    margin: 12px auto;
    padding: 14px;
  }

  .presupuesto-flow-page .presupuesto-flow-progress__top {
    flex-direction: column;
  }
}

@media (min-width: 992px) {
  .presupuesto-flow-page #edit-tipo-servicio {
    flex-wrap: nowrap;
  }

  .presupuesto-flow-page .js-form-item-tipo-servicio .form-radios {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap !important;
  }

  .presupuesto-flow-page .js-form-item-tipo-servicio .form-radios .js-form-type-radio {
    display: inline-flex !important;
    align-items: center;
    flex: 1 1 0;
    margin: 0 !important;
  }

  .presupuesto-flow-page .js-form-item-tipo-servicio .form-radios .js-form-type-radio label {
    margin-bottom: 0 !important;
  }
}

