/**
 * HispaDrive footer — layout 4 columnas (tema hijo).
 */

#footer.footer-container,
#footer.footer-container #footer-main,
#footer.footer-container #footer-main.hispadrive-footer,
#footer.footer-container #footer-primary,
#footer.footer-container #footer-secondary,
#footer.footer-container #footer-tertiary,
#footer.footer-container #footer-bottom,
#footer.footer-container .wide_container_box,
#footer.footer-container .hispadrive-footer-bottom {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

#footer.footer-container {
  border-top: 3px solid var(--color-accent) !important;
  margin-top: 0;
  background: #ffffff !important;
}

#footer #footer-secondary,
#footer #footer-tertiary {
  display: none !important;
}

.hispadrive-footer__container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  box-sizing: border-box;
}

#footer.footer-container #footer-main.hispadrive-footer .hispadrive-footer__grid {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr !important;
  gap: 48px !important;
  align-items: start !important;
}

.hispadrive-footer__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hispadrive-footer__col--brand {
  gap: 20px;
}

.hispadrive-footer__col--contact {
  gap: 12px;
}

.hispadrive-footer__col--info {
  gap: 10px;
}

.hispadrive-footer__col--pay {
  gap: 28px;
}

.hispadrive-logo-link--footer {
  display: inline-block;
  line-height: 0;
}

.hispadrive-logo--footer {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.hispadrive-footer__desc {
  margin: 0;
  max-width: 300px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--color-text);
}

.hispadrive-footer__heading {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hispadrive-footer__col--brand .hispadrive-footer__heading {
  color: var(--color-accent-text);
}

.hispadrive-footer__contact-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hispadrive-footer__phone {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-cta) !important;
  text-decoration: none;
}

.hispadrive-footer__phone:hover,
.hispadrive-footer__phone:focus-visible {
  text-decoration: underline;
}

.hispadrive-footer__email {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text) !important;
  text-decoration: none;
}

.hispadrive-footer__email:hover,
.hispadrive-footer__email:focus-visible {
  color: var(--color-cta) !important;
}

.hispadrive-footer__address {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.hispadrive-footer__address-line {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-text);
}

.hispadrive-footer__seals {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hispadrive-footer__seals .sttext_block,
.hispadrive-footer__seals .steasy_element_item,
.hispadrive-footer__seals .sttext_item_content {
  margin: 0;
  padding: 0;
}

.hispadrive-footer__seals img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.hispadrive-footer__linklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hispadrive-footer__linklist li {
  margin: 0;
  padding: 0;
}

.hispadrive-footer__linklist a,
.hispadrive-footer__linklist .dropdown_list_item {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text) !important;
  text-decoration: none;
}

.hispadrive-footer__linklist.bullet li::before,
.hispadrive-footer__linklist li::before,
.hispadrive-footer__linklist a::before,
.hispadrive-footer__linklist .dropdown_list_item::before,
.hispadrive-footer__linklist a::after,
.hispadrive-footer__linklist .icon-0,
.hispadrive-footer__linklist i,
.hispadrive-footer__linklist .linklist_icon {
  display: none !important;
  content: none !important;
}

.hispadrive-footer__linklist a:hover,
.hispadrive-footer__linklist a:focus-visible {
  color: var(--color-cta) !important;
}

.hispadrive-footer__col--pay .footer_block,
.hispadrive-footer__col--pay .easycontent {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.hispadrive-footer__col--pay .title_block,
.hispadrive-footer__col--pay .sttext_item_header .title_block {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  text-align: left;
}

.hispadrive-footer__col--pay .title_block_inner {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hispadrive-footer__col--pay .title_flex_left,
.hispadrive-footer__col--pay .title_flex_right {
  display: none;
}

.hispadrive-footer__col--pay .footer_block_content {
  padding: 0;
  margin: 0;
}

.hispadrive-footer__col--pay .sttext_item_image {
  margin: 0 0 8px;
}

.hispadrive-footer__col--pay .sttext_item_image_inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #ececf3;
  border-radius: 10px;
  box-sizing: border-box;
  background: #fff;
}

#footer.footer-container #footer-main.hispadrive-footer .hispadrive-footer__col--pay .sttext_item_image img {
  display: block !important;
  height: auto !important;
  max-height: 24px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.hispadrive-footer__col--pay .steasy_element_block > .row:nth-of-type(2) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.hispadrive-footer__col--pay .steasy_element_block > .row:nth-of-type(4),
.hispadrive-footer__col--pay .steasy_element_block > .row:nth-of-type(5) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.hispadrive-footer__col--pay .sttext_block[class*='col-lg-'] {
  flex: 1 1 auto;
  max-width: none;
  width: auto;
  padding: 0;
}

.hispadrive-footer-bottom {
  border-top: 1px solid #ececf3;
  background: #ffffff !important;
}

.hispadrive-footer-bottom__container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.hispadrive-footer-bottom__copyright,
.hispadrive-footer-bottom__top {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-muted);
}

.hispadrive-footer-bottom__top {
  text-decoration: none;
}

.hispadrive-footer-bottom__top:hover,
.hispadrive-footer-bottom__top:focus-visible {
  color: var(--color-cta);
  text-decoration: underline;
}

#footer-bottom #footer_bottom_left,
#footer-bottom #footer_bottom_right,
#footer-bottom .st_payment_icon {
  display: none !important;
}

@media (min-width: 992px) {
  #rightbar .to_top_wrap.rightbar_wrap {
    display: none !important;
  }
}

@media (max-width: 991px) {
  /* Barra flotante Panda «Arriba» + FAB contacto (#rightbar_6) — no superponer al footer */
  #rightbar,
  #leftbar {
    display: none !important;
  }

  .hispadrive-footer__container {
    padding: 48px 20px 32px;
  }

  #footer.footer-container #footer-main.hispadrive-footer .hispadrive-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .hispadrive-footer__col {
    align-items: center;
    text-align: center;
    width: 100%;
    grid-column: auto !important;
  }

  .hispadrive-footer__col + .hispadrive-footer__col {
    border-top: 1px solid #ececf3;
    padding-top: 32px;
  }

  .hispadrive-logo-link--footer {
    margin-left: auto;
    margin-right: auto;
  }

  .hispadrive-footer__desc {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hispadrive-footer__heading {
    width: 100%;
    text-align: center;
  }

  .hispadrive-footer__seals {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
  }

  .hispadrive-footer__seals > *,
  .hispadrive-footer__seals .sttext_block,
  .hispadrive-footer__seals .steasy_element_item {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }

  .hispadrive-footer__seals img {
    height: 56px;
  }

  .hispadrive-footer__contact-body {
    align-items: center;
    width: 100%;
  }

  .hispadrive-footer__address {
    align-items: center;
  }

  .hispadrive-footer__linklist {
    align-items: center;
    gap: 4px;
    width: 100%;
  }

  .hispadrive-footer__linklist a,
  .hispadrive-footer__linklist .dropdown_list_item {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .hispadrive-footer__col--pay .footer_block,
  .hispadrive-footer__col--pay .footer_block_content,
  .hispadrive-footer__col--pay .steasy_element_block,
  .hispadrive-footer__col--pay .steasy_column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .hispadrive-footer__col--pay .title_block,
  .hispadrive-footer__col--pay .sttext_item_header .title_block {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
    text-align: center;
  }

  .hispadrive-footer__col--pay .title_block_inner {
    flex: 0 1 auto;
    width: 100%;
    text-align: center;
  }

  .hispadrive-footer__col--pay .steasy_element_block > .row,
  .hispadrive-footer__col--pay .steasy_column > .row {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-template-columns: unset;
  }

  .hispadrive-footer__col--pay .steasy_element_block .sttext_block[class*='col-'] {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hispadrive-footer__col--pay .steasy_element_item,
  .hispadrive-footer__col--pay .sttext_item_image,
  .hispadrive-footer__col--pay .sttext_item_image_inner {
    margin-left: auto;
    margin-right: auto;
  }

  .hispadrive-footer-bottom__container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
}
