/* ============================================================
   FOOTER REUTILIZABLE — DistrOSList
   ============================================================ */
.footer-dl {
  width: 100%;
  background: transparent; /* Totalmente transparente */
  margin-top: 40px;
  padding: 50px 0 30px; /* Padding lateral 0 para que ocupe todo el ancho */
  color: var(--text-main, #e5e5e5);
  font-family: 'Ubuntu', sans-serif;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1400px; /* Mantiene el contenido alineado con el resto de la página */
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* --- Marca / Logo --- */
.footer-brand {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand img {
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 12px #545454);
}
.footer-brand p {
  color: var(--text-muted, #9ca9bd);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}
.footer-brand p em { color: #c8d2e0; }
.footer-brand a {
  color: var(--logo-red, #ca0f24);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-brand a:hover { color: var(--accent-red-light, #ff4d63); }

/* --- Columnas de enlaces --- */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  text-align: left;
}
.footer-col h4 {
  color: var(--logo-white, #ffffff);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-bottom: 0px;
  border-bottom: 1px solid #545454;
  text-align: left;
}
.footer-col h4::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--logo-blue, #008cff);
  border-radius: 2px;
}
.footer-col:nth-child(2) h4::before { background: var(--logo-red, #ca0f24); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--logo-red, #ca0f24); }

/* --- Copyright y enlaces legales --- */
.footer-bottom {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: #cfd6e0;
  text-align: left;
}
.footer-copyright-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-copyright-text a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer-copyright-text img {
  height: 20px;
  width: auto;
  display: block;
  margin-left: 6px;
}
.footer-bottom .links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom .links a {
  color: #a1a1a1;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom .links a:hover { color: var(--logo-red, #ca0f24); }

/* ============================================================
   RESPONSIVE (TABLET Y MÓVIL)
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .footer-dl { padding: 40px 0 30px; }
  .footer-inner { padding: 0 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom .links { justify-content: center; }
  .footer-col h4 { font-size: 0.8rem; }
  .footer-col ul li a { font-size: 0.8rem; }
}

/* Móvil */
@media (max-width: 600px) {
  .footer-dl { padding: 30px 0 20px; }
  .footer-inner { padding: 0 15px; }
  .footer-cols { 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    text-align: center; 
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { max-width: 120px; }
  .footer-brand p { font-size: 0.85rem; }
  
  .footer-col h4 { 
    font-size: 0.8rem; 
    text-align: center; 
    margin-bottom: 4px;
    padding-bottom: 2px;
  }
  .footer-col h4::before { display: none; }
  
  /* La columna 3 ("Árboles y Listas") ocupa todo el ancho */
  .footer-col:nth-child(3) { grid-column: span 2; }

  .footer-col ul li a { 
    display: block; 
    text-align: center; 
    font-size: 0.90rem; 
    padding: 0 auto;
  }
  .footer-col ul li a:hover { color: var(--logo-red, #ca0f24); }      
  .footer-bottom { font-size: 0.8rem; gap: 5px; }
  .footer-bottom .links { gap: 7px; justify-content: center;}
  .footer-bottom .links a { font-size: 0.8rem;}
}