/* ============================================================
   FOOTER REUTILIZABLE — DistrOSList
   ============================================================ */

.footer-dl {
  width: 100%;
  background: transparent;
  padding: 60px 0 30px;
  color: var(--text-main, #e5e5e5);
  font-family: 'Ubuntu', sans-serif;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  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: 10px 0 0 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 1rem;
  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.95rem;
  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); }

/* ============================================================
   ACORDEÓN DEL FOOTER (details / summary)
   ============================================================ */

.footer-col,
.footer-col[open] {
  border: none;
}

.footer-col summary {
  list-style: none;
  cursor: default;
  outline: none;
}

.footer-col summary::-webkit-details-marker,
.footer-col summary::marker {
  display: none;
  content: '';
}

.footer-col summary h4 {
  margin: 0;
  padding: 0;
}

/* ============================================================
   ESCRITORIO: siempre abiertos, sin interacción
   ============================================================ */
@media (min-width: 601px) {
  .footer-col summary {
    pointer-events: none;
    cursor: default;
  }
  .footer-col[open] > ul { display: block; }
  .footer-col:not([open]) > ul { display: block; }
  /* Ocultar flecha del acordeón en escritorio */
  .footer-col summary::after { display: none !important; }
}

/* ============================================================
   MÓVIL: comportamiento acordeón
   ============================================================ */
@media (max-width: 600px) {
  .footer-dl {
    padding: 25px 0 60px;
  }
  .footer-inner {
    padding: 0 15px;
    gap: 14px;
  }

  .footer-brand {
    padding-bottom: 12px;
  }
  .footer-brand img { max-width: 100px; }
  .footer-brand p { font-size: 0.8rem; line-height: 1.5; }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }

  .footer-col summary {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px 0;
    pointer-events: auto;
    position: relative;
    transition: color 0.2s ease;
  }

  .footer-col summary::after {
    content: "▾";
    display: inline-block;
    margin-left: 6px;
    font-size: 1.3rem;
    color: var(--logo-blue, #008cff);
    transition: transform 0.25s ease;
  }

  .footer-col[open] summary::after {
    transform: rotate(180deg);
  }

  .footer-col summary h4 {
    text-align: center;
    font-size: 0.78rem;
    margin: 0;
    padding: 0 0 6px 0;
    border-bottom: 1px solid #2a2a2a;
    width: 100%;
    text-align: center;
  }
  .footer-col summary h4::before { display: none; }

  .footer-col[open] > ul {
    margin-top: 6px;
    padding-bottom: 6px;
    animation: footerAccordionIn 0.2s ease;
  }

  .footer-col ul li {
    margin-bottom: 6px;
  }
  .footer-col ul li a {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    padding: 2px 0;
  }

  .footer-bottom {
    font-size: 0.72rem;
    gap: 6px;
    padding-top: 12px;
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom .links {
    gap: 8px;
    justify-content: center;
  }
  .footer-bottom .links a { font-size: 0.72rem; }
}

@keyframes footerAccordionIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}