/**
 * Footer Builder público.
 *
 * Esta capa solo contiene estructura y comportamiento base.
 * El aspecto visual debe provenir de la configuración del Footer Builder.
 */

.sytec-footer-builder {
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background: #0b78bc;
  background-image: none !important;
}

.sytec-footer-device--mobile {
  display: none;
}

/* =========================================================
 * FILAS
 * ======================================================= */

.sytec-footer-row {
  width: 100%;
  padding-block: var(--sytec-footer-row-padding, 0);
  color: var(--sytec-footer-row-text, inherit);
  background-color: var(--sytec-footer-row-background, transparent);
  border-top:
    var(--sytec-footer-row-border-width, 1px)
    var(--sytec-footer-row-border-style, solid)
    var(--sytec-footer-row-border, transparent);
  background-image: none !important;
}

.sytec-footer-row a {
  color: var(--sytec-footer-row-link, inherit);
}

/* =========================================================
 * CONTENIDO DE FILA
 * ======================================================= */

.sytec-footer-row__inner {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: var(
    --sytec-footer-row-columns,
    minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)
  );
  gap: var(--sytec-footer-row-gap, 20px);
  align-items: var(--sytec-footer-row-align-items, start);
}

.sytec-footer-row__inner.sytec-container {
  width: 100%;
}

.sytec-footer-row__inner:not(.sytec-container) {
  width: 100%;
  max-width: none;
  padding-inline: var(
    --sytec-footer-row-padding-inline,
    clamp(20px, 4vw, 64px)
  );
}

/* =========================================================
 * ZONAS
 * ======================================================= */

.sytec-footer-zone {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: var(--sytec-footer-zone-gap, var(--sytec-footer-row-gap, 20px));
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: var(--sytec-footer-zone-align-items, center);
}

.sytec-footer-zone--left {
  grid-column: 1;
}

.sytec-footer-zone--center {
  grid-column: 2;
}

.sytec-footer-zone--right {
  grid-column: 3;
}

.sytec-footer-zone--align-start {
  justify-content: flex-start;
  text-align: left;
}

.sytec-footer-zone--align-center {
  justify-content: center;
  text-align: center;
}

.sytec-footer-zone--align-end {
  justify-content: flex-end;
  text-align: right;
}

/* =========================================================
 * COMPONENTES
 * ======================================================= */

.sytec-footer-component {
  min-width: 0;
  max-width: 100%;
}

.sytec-footer-row--main .sytec-footer-zone {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
}

.sytec-footer-row--main .sytec-footer-zone--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.sytec-footer-zone__group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.montecatini-footer-heading {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.montecatini-footer-payment-title {
  display: block;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
}

.montecatini-footer-payment-copy {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

/* Logo / imágenes */

.sytec-footer-logo,
.sytec-footer-image img,
.sytec-footer-payment-methods img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.sytec-footer-row--main .sytec-footer-logo {
  max-height: 82px !important;
  margin: 0 0 6px;
  object-fit: contain;
  object-position: left center;
}

.sytec-footer-row--main .sytec-footer-text {
  max-width: 270px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.65;
}

.sytec-footer-site-title {
  color: inherit;
  font-size: var(--sytec-footer-site-title-size, 1.35rem);
  font-weight: var(--sytec-footer-site-title-weight, 700);
  text-decoration: none;
}

/* =========================================================
 * MENÚ / CATEGORÍAS
 * ======================================================= */

.sytec-footer-menu,
.sytec-footer-categories {
  display: flex;
  margin: 0;
  padding: 0;
  gap: var(--sytec-footer-menu-gap, 10px);
  list-style: none;
}

.sytec-footer-menu--vertical,
.sytec-footer-categories--vertical {
  flex-direction: column;
}

.sytec-footer-menu--horizontal,
.sytec-footer-categories--horizontal {
  flex-flow: row wrap;
}

.sytec-footer-menu li,
.sytec-footer-categories li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.sytec-footer-menu a,
.sytec-footer-categories a {
  color: inherit;
  text-decoration: none;
}

.sytec-footer-builder .sytec-footer-row--main .sytec-footer-navigation .sytec-footer-menu a {
  display: inline-block;
  padding: 2px 0 !important;
  color: #fff !important;
  font-size: 0.92rem;
  line-height: 1.45;
  transition: opacity 160ms ease, color 160ms ease;
}

.sytec-footer-builder .sytec-footer-row--main .sytec-footer-navigation .sytec-footer-menu {
  gap: 5px !important;
}

.sytec-footer-builder .sytec-footer-row--main .sytec-footer-navigation .sytec-footer-menu a:is(:hover, :focus-visible) {
  color: #bfe8ff !important;
  opacity: 0.92;
}

.sytec-footer-menu ul {
  margin: 0;
  padding-left: 1rem;
  list-style: none;
}

/* =========================================================
 * BOTÓN
 * ======================================================= */

.sytec-footer-button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: var(--sytec-footer-button-gap, 8px);
  padding: var(--sytec-footer-button-padding, 0.7em 1.1em);
  border:
    var(--sytec-footer-button-border-width, 1px)
    var(--sytec-footer-button-border-style, solid)
    var(--sytec-footer-button-border-color, currentColor);
  border-radius: var(
    --sytec-footer-button-radius,
    var(--sytec-border-radius, 6px)
  );
  color: var(--sytec-footer-button-color, inherit);
  background: var(--sytec-footer-button-background, transparent);
  text-decoration: none;
}

.sytec-footer-button--primary {
  color: var(--sytec-footer-button-primary-color, #fff);
  background: var(
    --sytec-footer-button-primary-background,
    var(--sytec-primary, #2563eb)
  );
  border-color: var(
    --sytec-footer-button-primary-border,
    var(--sytec-primary, #2563eb)
  );
}

.sytec-footer-button--link {
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
}

/* =========================================================
 * REDES / CONTACTO / PAGOS
 * ======================================================= */

.sytec-footer-social,
.sytec-footer-contact,
.sytec-footer-payment-methods {
  display: flex;
  min-width: 0;
  gap: var(--sytec-social-gap, 10px);
  align-items: center;
  flex-wrap: wrap;
}

.sytec-footer-social a {
  display: inline-grid;
  width: calc(var(--sytec-social-size, 18px) + 14px);
  height: calc(var(--sytec-social-size, 18px) + 14px);
  place-items: center;
  border:
    var(--sytec-footer-social-border-width, 1px)
    solid
    var(--sytec-footer-social-border-color, currentColor);
  border-radius: var(--sytec-footer-social-radius, 50%);
  color: inherit;
  background: var(--sytec-footer-social-background, transparent);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.sytec-footer-social a:is(:hover, :focus-visible) {
  color: #0b78bc;
  background: #fff;
}

.sytec-footer-social .sytec-social-icon {
  width: var(--sytec-social-size, 18px);
  height: var(--sytec-social-size, 18px);
}

.sytec-footer-contact {
  width: 100%;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

a.sytec-footer-contact:is(:hover, :focus-visible) {
  color: #fff;
  opacity: 0.9;
}

.sytec-footer-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sytec-footer-hours p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

.sytec-footer-row--top {
  text-align: center;
}

.sytec-footer-row--top .sytec-footer-row__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sytec-footer-row--top .sytec-footer-zone {
  max-width: 920px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.sytec-footer-row--top .sytec-footer-payment-methods {
  justify-content: center;
}

.sytec-footer-row--top .sytec-footer-payment-methods img {
  width: min(100%, 760px);
  max-height: 58px;
  object-fit: contain;
}

.sytec-footer-payment-methods img {
  max-height: var(--sytec-footer-payment-height, 42px);
}

/* =========================================================
 * COPYRIGHT
 * ======================================================= */

.sytec-footer-copyright {
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  line-height: 1.5;
}

.sytec-footer-copyright--left {
  text-align: left;
}

.sytec-footer-copyright--center {
  text-align: center;
}

.sytec-footer-copyright--right {
  text-align: right;
}

/* =========================================================
 * UTILIDADES
 * ======================================================= */

.sytec-footer-separator {
  display: inline-block;
}

.sytec-footer-spacer {
  display: block;
}

/* =========================================================
 * RESPONSIVE
 * ======================================================= */

@media (max-width: 767px) {
  .sytec-footer-device--desktop {
    display: none;
  }

  .sytec-footer-device--mobile {
    display: block;
  }

  .sytec-footer-row--stack .sytec-footer-row__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .sytec-footer-row--stack .sytec-footer-zone {
    grid-column: 1;
  }

  .sytec-footer-zone {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .sytec-footer-row--center-mobile .sytec-footer-zone {
    justify-content: center;
    text-align: center;
  }

  .sytec-footer-row--main .sytec-footer-row__inner,
  .sytec-footer-row--main .sytec-footer-zone--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .sytec-footer-row--main .sytec-footer-zone,
  .sytec-footer-zone__group {
    align-items: center;
    text-align: center;
  }

  .sytec-footer-row--main .sytec-footer-logo {
    object-position: center;
  }

  .sytec-footer-row--main .sytec-footer-text {
    max-width: 34rem;
  }

  .sytec-footer-contact {
    width: auto;
    justify-content: center;
  }

  .sytec-footer-row--top .sytec-footer-payment-methods img {
    max-height: 46px;
  }

  .sytec-footer-copyright {
    text-align: center !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .sytec-footer-row--main .sytec-footer-row__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sytec-footer-row--main .sytec-footer-zone--left {
    grid-column: 1;
  }

  .sytec-footer-row--main .sytec-footer-zone--center {
    grid-column: 2;
  }

  .sytec-footer-row--main .sytec-footer-zone--right {
    grid-column: 1 / -1;
  }
}
