/**
 * stacciolla/footer — style.css
 * Footer fondo blanco, tipografía oscura sobre --fe-white.
 * Solo var(--fe-*). Cero valores hardcodeados.
 */

/* ============================================================
   FOOTER BASE
   ============================================================ */

.fe-ftr {
  background: var(--fe-white);
  border-top: 1px solid var(--fe-border);
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.fe-ftr__inner {
  max-width: var(--fe-container-max);
  margin: 0 auto;
  padding: 0 var(--fe-space-8);
}

/* ============================================================
   ZONA SUPERIOR — Brand identity + 4 columnas de links
   ============================================================ */

.fe-ftr__upper {
  position: relative;
  overflow: hidden;
  padding: 0 0 60px;
}

/* Watermark — grifo negro absoluto, opacity 0.04 sobre blanco */

.fe-ftr__brand-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
}

.fe-ftr__brand-watermark svg {
  height: 600px;
  width: auto;
  flex-shrink: 0;
  max-width: 100%;
}

.fe-ftr__brand-watermark svg path,
.fe-ftr__brand-watermark svg rect,
.fe-ftr__brand-watermark svg polygon,
.fe-ftr__brand-watermark svg circle {
  fill: var(--fe-black);
}

/* Brand identity centrada */

.fe-ftr__brand {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fe-space-4);
  padding: 80px 0 60px;
}

.fe-ftr__brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
}

.fe-ftr__brand-logo svg {
  height: 60px;
  width: auto;
}

.fe-ftr__brand-logo svg path,
.fe-ftr__brand-logo svg rect,
.fe-ftr__brand-logo svg text,
.fe-ftr__brand-logo svg polygon {
  fill: var(--fe-black);
}

/* Links grid */

.fe-ftr__grid-links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--fe-space-12);
  align-items: start;
}

.fe-ftr__col {
  display: flex;
  flex-direction: column;
}

/* Título de columna */
.fe-ftr__col-title {
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-xs);
  font-weight: var(--fe-weight-regular);
  letter-spacing: var(--fe-tracking-widest);
  text-transform: uppercase;
  color: var(--fe-warm-gray);
  margin: 0 0 var(--fe-space-6);
  line-height: 1;
}

/* Links de columna */
.fe-ftr__link {
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-sm);
  font-weight: var(--fe-weight-light);
  color: var(--fe-black);
  text-decoration: none;
  line-height: 2.4;
  display: block;
  transition: color var(--fe-transition-fast);
}

.fe-ftr__link:hover {
  color: var(--fe-gold);
}

/* ============================================================
   SEPARADORES
   ============================================================ */

/* Base — línea sólida --fe-border */
.fe-ftr__sep {
  border: none;
  border-top: 1px solid var(--fe-border);
  opacity: 1;
  margin: 0;
}

/* Gradiente — upper separator */
.fe-ftr__sep--gradient {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--fe-border), transparent);
  opacity: 1;
  margin: 0;
}

/* ============================================================
   ZONA INFERIOR — 3 columnas: CS · Newsletter · Social
   ============================================================ */

.fe-ftr__lower {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--fe-space-12);
  padding: 48px 0;
}

/* Título compartido zona inferior */
.fe-ftr__lower-title {
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-xs);
  font-weight: var(--fe-weight-regular);
  letter-spacing: var(--fe-tracking-widest);
  text-transform: uppercase;
  color: var(--fe-warm-gray);
  margin: 0 0 var(--fe-space-4);
  line-height: 1;
}

/* ── Customer Service ── */

.fe-ftr__cs {
  display: flex;
  flex-direction: column;
}

.fe-ftr__cs-hours {
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-sm);
  font-weight: var(--fe-weight-light);
  color: var(--fe-warm-gray);
  margin: 0 0 var(--fe-space-3);
  line-height: var(--fe-leading-normal);
}

.fe-ftr__cs-contact {
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-sm);
  font-weight: var(--fe-weight-light);
  color: var(--fe-black);
  text-decoration: none;
  line-height: 2;
  display: block;
  transition: color var(--fe-transition-fast);
}

.fe-ftr__cs-contact:hover {
  color: var(--fe-gold);
}

/* ── Newsletter ── */

.fe-ftr__newsletter {
  display: flex;
  flex-direction: column;
}

.fe-ftr__nl-text {
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-sm);
  font-weight: var(--fe-weight-light);
  color: var(--fe-warm-gray);
  margin: 0 0 var(--fe-space-4);
  line-height: var(--fe-leading-normal);
}

.fe-ftr__nl-form {
  display: flex;
  gap: 0;
  width: 100%;
}

.fe-ftr__nl-input {
  flex: 1;
  background: var(--fe-cream);
  border: 1px solid var(--fe-border);
  border-right: none;
  color: var(--fe-black);
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-sm);
  font-weight: var(--fe-weight-light);
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--fe-transition-fast);
  border-radius: var(--fe-radius) 0 0 var(--fe-radius);
}

.fe-ftr__nl-input::placeholder {
  color: var(--fe-warm-gray);
}

.fe-ftr__nl-input:focus {
  border-color: var(--fe-black);
}

.fe-ftr__nl-btn {
  background: var(--fe-black);
  border: 1px solid var(--fe-black);
  color: var(--fe-white);
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-xs);
  font-weight: var(--fe-weight-regular);
  letter-spacing: var(--fe-tracking-wide);
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: background var(--fe-transition-fast), color var(--fe-transition-fast), border-color var(--fe-transition-fast);
  border-radius: 0 var(--fe-radius) var(--fe-radius) 0;
  white-space: nowrap;
}

.fe-ftr__nl-btn:hover {
  background: var(--fe-gold);
  border-color: var(--fe-gold);
  color: var(--fe-black);
}

/* ── Newsletter response message ── */

.fe-newsletter-form__message {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.6875rem;           /* 11px */
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-top: 10px;
  padding: 6px 0;
  line-height: 1.5;
}

.fe-newsletter-form__message.success {
  color: var(--fe-success, #4a7c59);
}

.fe-newsletter-form__message.error {
  color: var(--fe-error, #b94a4a);
}

/* ── Social Media ── */

.fe-ftr__social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.fe-ftr__social-icons {
  display: flex;
  gap: var(--fe-space-4);
  align-items: center;
  flex-wrap: wrap;
}

.fe-ftr__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--fe-black);
  text-decoration: none;
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius);
  transition: background var(--fe-transition-fast), color var(--fe-transition-fast), border-color var(--fe-transition-fast);
}

.fe-ftr__social-link:hover {
  background: var(--fe-black);
  color: var(--fe-white);
  border-color: var(--fe-black);
}

/* ============================================================
   BOTTOM — Copyright + Ship To
   ============================================================ */

.fe-ftr__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--fe-space-8);
  padding: 28px 0 32px;
}

.fe-ftr__copyright {
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-xs);
  font-weight: var(--fe-weight-light);
  color: var(--fe-warm-gray);
  letter-spacing: 0.04em;
  margin: 0;
}

.fe-ftr__ship-to {
  font-family: var(--fe-font-body);
  font-size: var(--fe-size-xs);
  font-weight: var(--fe-weight-light);
  color: var(--fe-warm-gray);
  letter-spacing: 0.04em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--fe-space-2);
}

.fe-ftr__ship-to svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE — TABLET  ≤ 1024px
   ============================================================ */

@media (max-width: 1024px) {
  .fe-ftr__grid-links {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--fe-space-6);
  }

  /* Lower: Social | CS | Newsletter — una sola fila, columnas iguales */
  .fe-ftr__lower {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--fe-space-6);
  }

  .fe-ftr__social {
    flex: 0 0 auto;
    order: 1;
    align-items: flex-start;
    margin-right: var(--fe-space-8);
  }

  .fe-ftr__cs {
    flex: 1 1 0;
    order: 2;
  }

  .fe-ftr__newsletter {
    flex: 1 1 0;
    order: 3;
    min-width: 0;
  }

  .fe-ftr__nl-form {
    max-width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE  ≤ 768px
   ============================================================ */

@media (max-width: 768px) {
  .fe-ftr__inner {
    padding: 0 var(--fe-space-6);
  }

  .fe-ftr__upper {
    padding: 0 0 40px;
  }

  .fe-ftr__brand {
    padding: 60px 0 48px;
  }

  .fe-ftr__brand-watermark svg {
    height: 400px;
  }

  .fe-ftr__grid-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--fe-space-8);
  }

  .fe-ftr__lower {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 0;
    gap: var(--fe-space-8);
  }

  .fe-ftr__social {
    flex: none;
    order: 1;
    align-items: flex-start;
    margin-right: 0;
  }

  .fe-ftr__cs {
    flex: none;
    width: 100%;
    order: 2;
  }

  .fe-ftr__newsletter {
    flex: none;
    width: 100%;
    order: 3;
    min-width: 0;
  }

  .fe-ftr__bottom {
    flex-direction: column;
    gap: var(--fe-space-3);
    text-align: center;
    padding: 24px 0 28px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE  ≤ 480px
   ============================================================ */

@media (max-width: 480px) {
  .fe-ftr__inner {
    padding: 0 var(--fe-space-4);
  }

  .fe-ftr__upper {
    padding: 0 0 32px;
  }

  .fe-ftr__brand {
    padding: 48px 0 40px;
  }

  .fe-ftr__brand-watermark svg {
    height: 300px;
  }

  .fe-ftr__grid-links {
    grid-template-columns: 1fr 1fr;
    gap: var(--fe-space-6) var(--fe-space-4);
  }
}
