/* Komfy footer — port del handoff (dark + amarillo)
   Scope-eado bajo `.kf` para no afectar otros bloques.
   Tokens (--komfy-*) ya declarados en header.css. */

.kf {
  background: var(--komfy-carbon, #1C1C1C);
  color: #d8d3c9;
  margin-top: 80px;
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
}

/* Inset lateral del footer = match con el header.
   Header: .kh-wrap margin 20px + .kh-main padding 24px = 44px effective.
   Mobile (≤820px): 12px + 10px = 22px. */
:root {
  --kf-inset-x: 44px;
}
@media (max-width: 820px) {
  :root { --kf-inset-x: 22px; }
}
@media (max-width: 480px) {
  :root { --kf-inset-x: 16px; }
}

.kf a { text-decoration: none; }

/* ============ Promesas ============ */
.kf-promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  /* Centra cada ítem en su celda → la franja queda balanceada
     (sin esto los ítems se pegan al inicio de cada cuarto y la fila
     queda corrida a la izquierda). */
  justify-items: center;
  padding: 36px var(--kf-inset-x);
  border-bottom: 1px solid #2e2e2e;
}
.kf-promise-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #f0eadf;
}
.kf-promise-item svg {
  color: var(--komfy-yellow, #F5C518);
  flex-shrink: 0;
}
.kf-promise-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  line-height: 1.2;
}
.kf-promise-text {
  font-size: 13px;
  color: #a8a298;
  margin-top: 2px;
  line-height: 1.3;
}

/* ============ Newsletter ============ */
.kf-newsletter {
  background: #161616;
  padding: 56px 0;
  border-bottom: 1px solid #2e2e2e;
}
.kf-newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 0 var(--kf-inset-x);
}
.kf-news-title {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.kf-news-title .komfy-underline {
  display: inline-block;
  border-bottom: 4px solid var(--komfy-yellow, #F5C518);
  padding-bottom: 2px;
}
.kf-news-text {
  color: #a8a298;
  margin-top: 12px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.5;
}
.kf-news-form {
  display: flex;
  gap: 8px;
  margin: 0;
}
.kf-news-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  border-radius: 999px;
  background: #fff;
  border: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--komfy-carbon, #1C1C1C);
  min-width: 0;
}
.kf-news-form input[type="email"]:focus {
  outline: 2px solid var(--komfy-yellow, #F5C518);
}
.kf-news-form .kf-btn-yellow {
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--komfy-yellow, #F5C518);
  color: var(--komfy-carbon, #1C1C1C);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
}
.kf-news-form .kf-btn-yellow:hover { background: #ffd84d; }
.kf-news-alert {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(245, 197, 24, 0.12);
  color: var(--komfy-yellow, #F5C518);
  border-radius: 8px;
  font-size: 13.5px;
}

/* ============ Brand + Cols ============
   Layout 3-track:
     - kf-brand    → izquierda (alineado al borde izq del menu)
     - kf-mid-cols → centro    (Navegación + Información, centrados)
     - kf-pago     → derecha   (alineado al borde der del menu)
   La grid es `1fr auto 1fr` así el bloque central queda centrado al viewport. */
.kf-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
  padding: 64px var(--kf-inset-x) 32px;
}
.kf-brand { justify-self: start; max-width: 360px; }
.kf-mid-cols {
  justify-self: center;
  display: flex;
  gap: 64px;
}
.kf-pago { justify-self: end; max-width: 320px; }
.kf-brand-logo {
  display: inline-block;
  height: 40px;
}
.kf-brand-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.kf-brand-logo svg { height: 40px; width: auto; }
.kf-brand-text {
  color: #a8a298;
  font-size: 14px;
  max-width: 320px;
  margin: 18px 0;
  line-height: 1.5;
}
.kf-contact {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kf-contact-item {
  font-size: 13px;
  color: #d8d3c9;
  line-height: 1.4;
}
.kf-contact-item a { color: #d8d3c9; }
.kf-contact-item a:hover { color: var(--komfy-yellow, #F5C518); }
.kf-contact-label {
  display: inline-block;
  min-width: 80px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--komfy-yellow, #F5C518);
}
.kf-social {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.kf-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #3a3a3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d8d3c9;
  transition: background .15s, color .15s, border-color .15s;
}
.kf-social a:hover {
  background: var(--komfy-yellow, #F5C518);
  color: var(--komfy-carbon, #1C1C1C);
  border-color: var(--komfy-yellow, #F5C518);
}

.kf-col { min-width: 140px; }
.kf-col-title {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
  width: 100%;
  cursor: default;
}
.kf-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kf-col a, .kf-col li {
  font-size: 14px;
  color: #a8a298;
  line-height: 1.4;
}
.kf-col a:hover { color: #fff; }

/* Logos de Tiendanube (componente payment-shipping-logos) en columna oscura.
   Los logos vienen con sus colores reales — los mostramos sobre una pill
   blanca para que tengan contraste sobre el fondo dark. */
.kf-col .kf-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}
.kf-col .kf-logos-row:last-child { margin-bottom: 0; }
.kf-col .kf-logos-row img {
  max-height: 28px;
  width: auto;
  background: #fff;
  padding: 3px 5px;
  border-radius: 4px;
  display: inline-block;
}

/* ============ Bottom ============ */
.kf-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px var(--kf-inset-x);
  border-top: 1px solid #2e2e2e;
  font-size: 12.5px;
  color: #888;
  gap: 24px;
}
.kf-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-self: start;
}
.kf-bottom-legal { color: #888; }
.kf-bottom-legal a { color: #d8d3c9; text-decoration: underline; }
.kf-bottom-legal a:hover { color: var(--komfy-yellow, #F5C518); }
.kf-bottom-center { justify-self: center; }
.kf-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

/* AFIP / fiscal */
.kf-afip {
  display: inline-flex;
  align-items: center;
}
.kf-afip img { max-height: 52px; width: auto; }
.kf-afip-placeholder {
  width: 38px;
  height: 52px;
  background: var(--komfy-blue, #0047BB);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

/* Powered by Tiendanube */
.kf-tn { font-size: 11px; color: #888; }
.kf-tn a { color: #d8d3c9; }
.kf-tn a:hover { color: var(--komfy-yellow, #F5C518); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .kf-promise { grid-template-columns: repeat(2, 1fr); }
  .kf-newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
  .kf-news-title { font-size: 32px; }
  /* Tablet: brand / (nav+info) / pago en una sola columna apilados */
  .kf-main { grid-template-columns: 1fr; gap: 40px; }
  .kf-brand, .kf-mid-cols, .kf-pago {
    justify-self: stretch;
    max-width: none;
  }
  .kf-mid-cols { gap: 32px; }
}

@media (max-width: 640px) {
  .kf { margin-top: 56px; }
  .kf-promise {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 28px var(--kf-inset-x);
  }
  .kf-newsletter { padding: 40px 0; }
  .kf-news-title { font-size: 28px; }
  .kf-main { padding: 40px var(--kf-inset-x) 24px; }
  .kf-mid-cols {
    flex-direction: column;
    gap: 0;
  }

  /* Acordeón mobile en columnas */
  .kf-col {
    border-bottom: 1px solid #2e2e2e;
  }
  .kf-col-title {
    padding: 16px 0;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .kf-col-title::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: #fff;
    transition: transform .2s;
  }
  .kf-col.is-open .kf-col-title::after { transform: rotate(45deg); }
  .kf-col ul,
  .kf-col .kf-logos-row {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s;
  }
  .kf-col.is-open ul,
  .kf-col.is-open .kf-logos-row {
    max-height: 800px;
    padding-bottom: 16px;
  }

  .kf-news-form { flex-direction: column; }
  .kf-news-form .kf-btn-yellow { width: 100%; }

  .kf-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px var(--kf-inset-x);
    text-align: center;
  }
  .kf-bottom-left,
  .kf-bottom-center,
  .kf-bottom-right {
    justify-self: center;
  }
}
