/* @file ajuntament-prefooter.css */

#ajuntament--prefooter {
  font-family: "Source Sans 3", sans-serif;
  border-top: 1px solid #E5E5E5;
  padding: 24px 0;
  background-color: #FFF;
}

@media screen and (min-width: 768px) {
  #ajuntament--prefooter {
    padding: 32px 0 36px;
  }
}

/* --- ESTRUCTURA DE 3 COLUMNAS (FLEXBOX) --- */
/* Sustituimos column-count para evitar el hueco enorme en Chrome */
#ajuntament--prefooter .prefooter-flex {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (min-width: 768px) {
  #ajuntament--prefooter .prefooter-flex {
    flex-direction: row;
    justify-content: flex-start; /* Alineación a la izquierda */
    gap: 5%; /* Espacio controlado entre columnas */
  }

  #ajuntament--prefooter .col-pre {
    flex: 0 0 30%; /* Ancho fijo para cada columna */
    max-width: 30%;
    margin-bottom: 0;
  }
}

/* --- TÍTULOS --- */
#ajuntament--prefooter h2 {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: #000;
  margin-bottom: 10px;
}

@media screen and (min-width: 768px) {
  #ajuntament--prefooter h2 {
    font-size: 16px;
    line-height: 22px;
  }
}

#ajuntament--prefooter h2:after {
  content: ":";
}

/* Quitamos los dos puntos en el bloque de redes sociales */
#ajuntament--prefooter .group-v h2:after {
  content: none;
}

/* --- LISTAS Y ENLACES --- */
#ajuntament--prefooter .llistat {
  list-style: none;
  padding: 0;
  margin: 0;
}

#ajuntament--prefooter .llistat li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}

/* --- CORRECCIÓN SUBRAYADO ICONOS (Flechas) --- */
#ajuntament--prefooter .link-destacat {
  font-size: 14px;
/*   text-decoration: none;  */
text-decoration: underline;
  color: #696973;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
}

#ajuntament--prefooter .link-destacat:hover {
  color: #000;
  text-decoration: underline; /* El texto se subraya en hover */
  text-decoration-thickness: 1px;
}

/* El icono NO se subraya */
#ajuntament--prefooter .link-destacat span[class^="icobcn-fletxa"] {
  display: inline-block;
  text-decoration: none !important; 
  font-size: 9px;
  margin-right: 4px;
}
#ajuntament--prefooter .link-destacat span[class^="icobcn-fletxa"]:hover {
  display: inline-block;
  text-decoration: none !important; 
  font-size: 9px;
  margin-right: 4px;
}

/* --- REDES SOCIALES (Estilo original recuperado) --- */
#ajuntament--prefooter .group-v .llistat {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 10px;
}

#ajuntament--prefooter .group-v .llistat li {
  margin-bottom: 0;
}

#ajuntament--prefooter .group-v .llistat a:not(.btn-prefooter) {
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #696973; /* Color original */
  border-radius: 50%;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none !important;
}

#ajuntament--prefooter .group-v .llistat a:not(.btn-prefooter):hover {
  background-color: #E5E5E5; /* Efecto hover original */
  color: #000;
}

#ajuntament--prefooter .group-v .llistat a span:not(.sr-only) {
  font-size: 22px;
  color: inherit;
}

/* --- BOTÓN SUSCRÍBETE --- */
#ajuntament--prefooter .btn-prefooter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #000 !important;
  border: 2px solid #87878F;
  border-radius: 30px;
  padding: 8px 16px;
  text-decoration: none !important;
  transition: border 0.3s, background-color 0.3s;
}

#ajuntament--prefooter .btn-prefooter:hover {
  border-color: #E5E5E5;
  background-color: #E5E5E5;
}

/* --- TEXTOS GENERALES --- */
#ajuntament--prefooter p {
  font-size: 14px;
  color: #696973;
  margin-bottom: 10px;
}

#ajuntament--prefooter p a {
  text-decoration: underline;
  color: inherit;
}

/* --- ACCESIBILIDAD --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.tamanoDestacatcIcons{
	padding-top: 7px;
	font-size: 10px;
}