.cajas-bloque__titulo {
  margin: 0;
  color: #474747;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
}

.cajas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  margin: 2.5rem auto 0;
  padding: 0;
  list-style: none;
}

.cajas:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc((200% - 28px) / 3);
}

.cajas:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
  width: calc((100% - 56px) / 3);
}

.caja {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
  padding: 40px 25px 28px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #474747;
  text-align: center;
}

.caja:hover {
  border-color: #53d3de;
}

.caja__imagen {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 30px;
}

.caja__titulo {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
  text-transform: uppercase;
}

.caja__texto {
  flex: 1;
  margin: 0 0 28px;
  line-height: 1.6;
}

.caja__enlace {
  display: inline-block;
  margin-top: auto;
  padding: 8px 18px 10px;
  border: 1px solid #53d3de;
  background: #53d3de;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.caja:hover .caja__enlace,
.caja__enlace:hover {
  border-color: #53d3de;
  background: #fff;
  color: #474747;
}

@media (max-width: 800px) {
  .cajas,
  .cajas:has(> :nth-child(2):last-child),
  .cajas:has(> :only-child) {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.noticias-bloque {
  box-sizing: border-box;
  margin-top: 3rem;
  margin-bottom: -2.5rem;
  padding: 3rem 0;
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}

.noticias {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  margin: 2.5rem 0 0;
  padding: 0;
}

.noticias > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc((100% - 28px) / 2);
  justify-self: center;
}

.noticia {
  box-sizing: border-box;
  padding: 28px 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #474747;
}

.noticia:hover {
  border-color: #53d3de;
}

.noticia__fecha {
  margin: 0 0 8px;
  color: #1d8b94;
  font-size: 0.9rem;
}

.noticia__nombre {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
}

.noticia__cuerpo::after {
  content: "";
  display: block;
  clear: both;
}

.noticia__imagen {
  float: left;
  width: 42%;
  max-width: 180px;
  height: auto;
  margin: 0 16px 10px 0;
  border: 1px solid #d7d7d7;
}

.noticia__texto {
  line-height: 1.6;
}

.noticia__texto p {
  margin: 0 0 12px;
}

@media (max-width: 800px) {
  .noticias {
    grid-template-columns: 1fr;
  }

  .noticias > :last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
}

.pie__contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 80px;
  padding: 42px 16px;
  background: #f4f4f4;
  color: #474747;
}

.pie__dato {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pie__icono {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #53d3de;
}

.pie__dato p {
  margin: 0;
  line-height: 1.2;
}

.pie__dato strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.pie__dato a {
  color: inherit;
  text-decoration: none;
}

.pie__legal {
  padding: 20px 0;
  background: #161616;
  color: #9fa7af;
  font-size: 0.95rem;
}

.pie__legal p {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.pie__legal a {
  color: inherit;
  text-decoration: none;
}

.legal h2 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.15rem;
}

.legal p,
.legal li {
  line-height: 1.7;
}

.legal ul {
  margin: 0.4rem 0 0 1.2rem;
  list-style: disc;
}

.menu {
  border-bottom: 2px solid;
  border-color: #1d8b94;
}

.menu__escritorio > a,
.menu__escritorio > .group > a {
  border-bottom: 2px solid transparent;
}

.menu__escritorio .is-actual {
  background-color: #1d8b94;
  border-bottom-color: #fff;
}

.menu__desplegable {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.menu__desplegable::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.menu__boton {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.menu__lineas,
.menu__lineas::before,
.menu__lineas::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

.menu__lineas {
  position: relative;
}

.menu__lineas::before,
.menu__lineas::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu__lineas::before {
  top: -7px;
}

.menu__lineas::after {
  top: 7px;
}

.menu__velo,
.menu__panel {
  visibility: hidden;
}

.menu__velo {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
}

.menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(320px, 86vw);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  color: #474747;
  transform: translateX(100%);
}

.menu.is-abierto {
  z-index: 60;
}

.menu.is-abierto .menu__velo,
.menu.is-abierto .menu__panel {
  visibility: visible;
}

.menu.is-abierto .menu__velo {
  opacity: 1;
}

.menu.is-abierto .menu__panel {
  transform: none;
}

body.menu-abierto {
  overflow: hidden;
}

.menu__cerrar {
  align-self: flex-end;
  margin: 8px 12px 4px;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: #474747;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.menu__enlace,
.menu__subenlace {
  display: block;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #474747;
  text-decoration: none;
}

.menu__enlace {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu__enlace.menu__desplegable {
  display: flex;
  align-items: center;
}

.menu__subenlace {
  padding-left: 40px;
  text-transform: none;
}

.menu__enlace:hover,
.menu__subenlace:hover {
  background: #f4f4f4;
  color: #1d8b94;
}

@media (max-width: 800px) {
  .menu__boton {
    display: flex;
  }

  .menu__escritorio {
    display: none;
  }

  .menu__barra {
    min-height: 64px;
  }
}

.pagina-404 {
  margin: 4rem 0;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  color: #474747;
}

.ficha::after {
  content: "";
  display: block;
  clear: both;
}

.ficha__imagen {
  max-width: 250px;
  height: auto;
  padding: 5px;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.ficha__imagen--izquierda {
  float: left;
  margin: 7px 26px 10px 0;
}

.ficha__imagen--derecha {
  float: right;
  margin: 7px 0 10px 26px;
}

.ficha__texto {
  line-height: 1.7;
}

.ficha__texto p {
  margin: 0 0 1rem;
}

@media (max-width: 800px) {
  .ficha__imagen--izquierda,
  .ficha__imagen--derecha {
    float: none;
    display: block;
    margin: 0 0 16px;
  }
}

.nosotros::after {
  content: "";
  display: block;
  clear: both;
}

.nosotros__imagen {
  float: left;
  max-width: 250px;
  height: auto;
  margin: 0 15px 10px 0;
  padding: 5px;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.nosotros__texto {
  line-height: 1.7;
}

.nosotros__texto p {
  margin: 0 0 1rem;
}

@media (max-width: 800px) {
  .nosotros__imagen {
    float: none;
    display: block;
    margin: 0 0 16px;
  }
}

.aviso-privacidad {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(22, 22, 22, 0.45);
}

.aviso-privacidad[hidden] {
  display: none;
}

.aviso-privacidad__caja {
  width: min(36rem, 100%);
  margin-bottom: 0.5rem;
  padding: 1.25rem 1.4rem;
  background: #fff;
  color: #474747;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.aviso-privacidad__caja h2 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.aviso-privacidad__caja p {
  margin: 0 0 0.8rem;
  line-height: 1.6;
}

.aviso-privacidad__caja a {
  color: #1d8b94;
}

.aviso-privacidad__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.aviso-privacidad button {
  border: 1px solid #1d8b94;
  padding: 0.55rem 1.1rem;
  background: #1d8b94;
  color: #fff;
  cursor: pointer;
}

.aviso-privacidad__rechazar {
  background: #fff;
  color: #1d8b94;
}

.pie__legal button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
