:root {
  --color-texto: #302e2b;
  --color-fondo-1: #f4f1eb;
  --color-fondo-2: #efe9e1;

  /* Nuevo color institucional */
  --color-acento: #5b3758;

  /* Hover */
  --color-acento-claro: #7a5074;

  /* Muy sutil */
  --color-acento-fondo: #f7f3f8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-v44-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-v44-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

/*Estilos para as ligazóns*/
a {
  color: #302e2b;
}

a:hover {
  color: var(--color-acento);
}

body {
  font-family: "Open Sans", sans-serif;
  color: #302e2b;
  font-size: 14px;
  line-height: 2;
}

/*Estilos texto*/
h1 {
  font-size: clamp(32px, 6vw, 56px); /*56px*/
  line-height: 2;
}

h2 {
  font-size: clamp(24px, 5vw, 36px); /*36px*/
  line-height: 1.2;
}

.titulos-aviso-legal {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: clamp(16px, 4vw, 20px); /*20px*/
  line-height: 2;
}

h4 {
  letter-spacing: 1.5px;
  color: var(--color-acento);
}

h5 {
  color: #6e6e6e;
}

li {
  margin-left: 1em;
}

/*Estilos para o bloque da cabeceira*/
header {
  padding: clamp(80px, 20vh, 200px) 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 90px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f4f1eb;
}

.logo-cabeceira {
  width: 100%;
  height: auto;
  max-width: 400px;
}

/*Estilos para Sobre nós*/
.about {
  padding: clamp(30px, 6vw, 75px);
  display: flex;
  flex-direction: row;
  background-color: #efe9e1;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.about h1 {
  position: relative;

  display: inline-block;

  margin-bottom: 0.8em;
}

.about h1::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -12px;

  width: 60px;

  height: 4px;

  border-radius: 10px;

  background: var(--color-acento);
}

.aboutTXT {
  width: 45%;
}

.logo-about {
  background: #fbf8fb;
  border-radius: 50%;
  width: 100%;
  height: auto;
  max-width: 300px;
}

/*Estilos para Que facemos*/
.facemos {
  padding: clamp(30px, 6vw, 75px);
  display: flex;
  flex-direction: row;
  background-color: #f4f1eb;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.facemosESQ {
  width: 34%;
}

.facemosDTA {
  width: 66%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /*rEVISAR ISTO PARA QUE NOS SE EXPANDA TANTO*/
}

.facemosBLOQUE {
  display: flex;
  flex-direction: row;

  gap: 25px;

  padding-left: 25px;

  border-left: 4px solid var(--color-acento);

  margin-bottom: 45px;
}

.facemosTXT {
  padding-left: 50px;
  padding-bottom: 30px;
}

/*Estilos para Actividades*/
.actividades {
  padding: clamp(30px, 6vw, 75px);
  background-color: #efe9e1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.actividades h4 {
  margin-top: 15px;
  line-height: normal;
}

.actividades h5 {
  margin-top: 6px;
}

.gridActividades {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.actividade1,
.actividade2,
.actividade3 {
  overflow: hidden; /*Para que non desborde cando se fai hover na foto*/
}

.foto-actividade {
  width: 100%;
  height: auto;
  max-width: 300px;

  object-fit: cover;

  filter: contrast(105%) brightness(92%);

  transition: all 0.4s ease;
}

.foto-actividade:hover,
.RRSS svg:hover {
  filter: grayscale(0%) contrast(100%);

  transform: scale(1.05);
}

/*Estilos para Quen somos*/
.somos {
  padding: clamp(30px, 6vw, 75px);
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f4f1eb;
  position: relative;
}

.persoas {
  padding-top: 45px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.somosESQ {
  width: 34%;
}

.persoa-padroa {
  height: 250px;
  object-fit: cover;

  border-radius: 50%;

  filter: contrast(102%) brightness(98%) saturate(0.92);

  transition: all 0.4s ease;
}

.persoa-padroa:hover {
  filter: brightness(100%);

  box-shadow: 0 0 0 4px #5b3758;

  transform: scale(1.05);
}

.somosDTA {
  width: 66%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.somosDTA > p {
  padding-bottom: 1em;
}

/*Patrón puntos*/
.contenedor-puntos {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: 0; /* No afecta el flujo ni márgenes */
}

.patron-puntos {
  position: absolute;
  top: -10px; /* Axustar para subir ou baixar sobre o borde borde */
  left: -50px;
  width: 20%;
  height: 80px; /* Altura de la zona con puntos */
  background-image: radial-gradient(#5b3758 2px, transparent 1.5px);
  background-size: 16px 16px; /* Separación entre puntos */
  pointer-events: none; /* Permite hacer clic a través del patrón */
  z-index: 10;
}

/*Estilos para Colabora*/
.colabora {
  padding: clamp(30px, 6vw, 75px);
  background-color: #efe9e1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.colabora a {
  font-weight: 700;

  text-decoration: none;

  border-bottom: 3px dotted transparent;

  padding-bottom: 2px;

  transition: 0.25s;
}

.colabora a:hover {
  color: var(--color-acento);
  border-bottom-color: var(--color-acento);
}

/*Estilos para Pé de páxina*/
footer {
  padding: clamp(30px, 6vw, 75px);
  background-color: #0a0a0a;
  color: white;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

footer h2 {
  position: relative;

  display: inline-block;

  margin-bottom: 0.8em;
}

footer h2::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -12px;

  width: 60px;

  height: 4px;

  border-radius: 10px;

  background: var(--color-acento);
}

.RRSS {
  justify-content: center;
  align-items: center;
}

.RRSS a {
  padding-right: 0.5em;
}

footer a {
  color: white;

  text-decoration: none;

  border-bottom: 3px dotted transparent;

  padding-bottom: 2px;

  transition: 0.25s;
}

footer a:hover {
  color: white;
  border-bottom-color: white;
}

/*Media queries*/
@media (max-width: 950px) {
  .somosDTA {
    width: 60%;
  }
}

@media (max-width: 900px) {
  .about,
  .facemos,
  .persoas {
    flex-direction: column;
    gap: 30px;
  }

  .facemosDTA {
    width: 100%;
  }

  .aboutTXT,
  .somosESQ,
  .somosDTA {
    width: 100%;
    text-align: center;
  }

  .about h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .gridActividades {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "actividade1 actividade2"
      "actividade3 actividade4";
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.6;
  }

  header img {
    width: 80%;
  }

  .about {
    padding: 40px 20px 50px;
    text-align: left;
  }

  .icona-about {
    display: none;
  }

  .facemos {
    padding: 40px 20px;
  }

  .facemosBLOQUE {
    gap: 30px;
  }

  .facemosTXT {
    padding-left: 0;
  }

  .gridActividades {
    grid-template-columns: 1fr;
    grid-template-areas:
      "actividade1"
      "actividade2"
      "actividade3";
  }

  .persoa-padroa {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .somosDTA {
    text-align: center;
  }

  footer {
    text-align: center;
  }

  footer h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
