@import url('../../B2B/configs/font-faces.css');

:root {
  --ico-dark-blue: #0B4460;
  --ico-blanco: #FFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Avenir Next LT Pro', sans-serif;
  background: #f5f7fa;
}

a {
  text-decoration: none;
}

.ico-footer {
  width: 100%;
  background: var(--ico-dark-blue);
  color: var(--ico-blanco);
}

.ico-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 18px;
}

.ico-footer__top {
  display: flex;
  align-items: flex-start;
}

.ico-footer__brand {
  width: 380px;
  flex-shrink: 0;
}

.ico-footer__logo-link {
  display: inline-block;
}

.ico-footer__logo {
  width: 178px;
  height: 75px;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
}

.ico-footer__description {
  margin-top: 16px;
  color: var(--ico-blanco);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.ico-footer__contact-title {
  margin-top: 16px;
  color: var(--ico-blanco);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

.ico-footer__contact-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ico-footer__contact-list a {
  color: var(--ico-blanco);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.ico-footer__socials {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ico-footer__social-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #fff;
}

.ico-footer__social-btn img {
  width: 36px;
  height: 36px;
}

.ico-footer__nav {
  margin-left: 100px;
  display: flex;
  align-items: flex-start;
  margin-top: 12px;
}

.ico-footer__group {
  width: 140px;
}

.ico-footer__group--legal {
  margin-left: 76px;
}

.ico-footer__group--help {
  margin-left: 80px;
}

.ico-footer__group summary {
  list-style: none;
  cursor: default;
}

.ico-footer__group summary::-webkit-details-marker {
  display: none;
}

.ico-footer__group summary span {
  color: var(--ico-blanco);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.ico-footer__chevron {
  display: none;
}

.ico-footer__group ul {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

/* Mobile Chevron State */
.ico-footer__chevron {
  display: none;
}

.ico-footer__group ul a {
  color: var(--ico-blanco);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.ico-footer__ldr-link {
  margin-top: 16px;
  display: inline-block;
}

.ico-footer__ldr {
  width: 120px;
  height: 78px;
  object-fit: contain;
}

.ico-footer__bottom {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18.385px 0 17.615px 0.5px;
  border-top: 1px solid var(--ico-blanco);
  background: var(--ico-dark-blue);
}

.ico-footer__copyright {
  color: var(--ico-blanco);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.ico-footer__payments {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ico-footer__payment-card,
.ico-footer__payment-secure {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.ico-footer__payment-card {
  width: 44px;
  height: 31.059px;
}

.ico-footer__payment-secure {
  width: 65px;
  height: 32px;
}

.ico-footer__payment-card img,
.ico-footer__payment-secure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 1280px) {
  .ico-footer {
    min-width: 1280px;
  }

  .ico-footer__inner {
    min-height: 397px;
  }
}

@media (max-width: 1024px) {
  .ico-footer__inner {
    padding: 24px 24px 32px;
  }

  .ico-footer__top {
    display: flex;
    flex-direction: column;
  }

  .ico-footer__left {
    display: contents;
  }

  .ico-footer__brand {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .ico-footer__logo {
    margin: 0;
  }

  .ico-footer__description {
    margin-top: 16px;
  }

  .ico-footer__contact-title {
    margin-top: 16px;
  }

  .ico-footer__contact-list {
    margin-top: 19px;
    max-width: 100%;
    justify-content: flex-start;
    row-gap: 10px;
    column-gap: 16px;
  }

  .ico-footer__contact-list a {
    display: inline-block;
  }

  .ico-footer__nav {
    order: 2;
    margin-top: 32px;
    margin-left: 0;
    display: block;
    text-align: left;
  }

  .ico-footer__group {
    width: 100%;
  }

  .ico-footer__group+.ico-footer__group {
    margin-top: 16px;
  }

  .ico-footer__group--legal,
  .ico-footer__group--help {
    margin-left: 0;
  }

  .ico-footer__group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 16px;
  }

  .ico-footer__group summary span {
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
  }

  .ico-footer__chevron {
    display: block;
    width: 16px;
    height: 16px;
    color: #fff;
    transition: transform 0.2s ease;
  }

  .ico-footer__group[open] .ico-footer__chevron {
    transform: rotate(180deg);
  }

  .ico-footer__group ul {
    margin: 18px 0px;
    text-align: left;
  }

  .ico-footer__group--help .ico-footer__ldr-link {
    margin-top: 12px;
    display: block;
    text-align: left;
  }

  .ico-footer__nav>.ico-footer__ldr-link {
    margin-top: 32px;
    display: block;
    text-align: left;
  }

  .ico-footer__ldr {
    width: 150px;
    height: 80px;
    border: 1px solid #C7C7C7;
    object-fit: cover;
  }

  .ico-footer__socials {
    order: 3;
    margin-top: 32px;
    justify-content: flex-start;
  }

  .ico-footer__bottom {
    margin-top: 24px;
    padding: 16px 0 0;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .ico-footer__copyright {
    text-align: center;
    font-size: 14px;
    line-height: 150%;
  }
}
/* =========================================================
   FIX ICO Foods B2C - Alineación footer WordPress
   Mantiene los títulos Productos / Legal / Ayuda alineados
   como la maquetación desktop.
========================================================= */
@media (min-width: 1025px) {
  .ico-footer.ico-footer-home .ico-footer__top {
    display: flex !important;
    align-items: flex-start !important;
  }

  .ico-footer.ico-footer-home .ico-footer__left {
    display: block !important;
  }

  .ico-footer.ico-footer-home .ico-footer__brand {
    width: 380px !important;
    flex-shrink: 0 !important;
  }

  .ico-footer.ico-footer-home .ico-footer__nav {
    margin-left: 100px !important;
    margin-top: 12px !important;
    display: flex !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group {
    width: 140px !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group--products {
    margin-left: 0 !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group--legal {
    margin-left: 76px !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group--help {
    margin-left: 80px !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group summary {
    display: block !important;
    list-style: none !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group summary span {
    display: inline-block !important;
    width: auto !important;
    text-align: left !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group ul {
    margin-top: 20px !important;
    padding-left: 0 !important;
    text-align: left !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group li,
  .ico-footer.ico-footer-home .ico-footer__group a {
    text-align: left !important;
  }

  .ico-footer.ico-footer-home .ico-footer__ldr-link {
    margin-top: 16px !important;
    display: inline-block !important;
    text-align: left !important;
  }
}


/* =========================================================
   FIX ICO Foods B2C - Footer desktop alineado como maqueta
   Columnas Productos / Legal / Ayuda con grilla exacta.
========================================================= */
@media (min-width: 1025px) {
  .ico-footer.ico-footer-home .ico-footer__top {
    display: grid !important;
    grid-template-columns: 380px 1fr !important;
    column-gap: 140px !important;
    align-items: start !important;
  }

  .ico-footer.ico-footer-home .ico-footer__left {
    width: 380px !important;
    min-width: 380px !important;
    display: block !important;
  }

  .ico-footer.ico-footer-home .ico-footer__brand {
    width: 380px !important;
    flex: 0 0 380px !important;
  }

  .ico-footer.ico-footer-home .ico-footer__nav {
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 150px 150px 150px !important;
    column-gap: 78px !important;
    align-items: start !important;
    justify-content: start !important;
    text-align: left !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group,
  .ico-footer.ico-footer-home .ico-footer__group--products,
  .ico-footer.ico-footer-home .ico-footer__group--legal,
  .ico-footer.ico-footer-home .ico-footer__group--help {
    width: 150px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: start !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group summary {
    display: block !important;
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.2 !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group summary span {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.2 !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group ul {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    text-align: left !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group li,
  .ico-footer.ico-footer-home .ico-footer__group li a,
  .ico-footer.ico-footer-home .ico-footer__group a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
  }

  .ico-footer.ico-footer-home .ico-footer__group--help .ico-footer__ldr-link {
    margin-top: 14px !important;
    display: inline-block !important;
    text-align: left !important;
  }
}
