:root {
  --blue: #39ADDE;
  --yellow: #FAEB4E;
  --orange: #F7A923;
  --white: #ffffff;
  --black: #191919;
}

.orange {
  color: var(--orange);
}

.blue {
  color: var(--blue);
}

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

h1, h2, h3 {
  font-family: "Nunito", sans-serif;
  color: var(--black);
}

p {
  font-family: "Nunito Sans", sans-serif;
  color: var(--black);
}

/* Menú */

nav {
  background: #fff;
  width: 100%;
  height: 10vh;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -10px 17px rgb(0, 0, 0);
  z-index: 10;
}

nav .title {
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

nav a {
  font-family: "Nunito", sans-serif;
}

nav .brand {
  height: 100%;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
  /*espacio entre elementos*/
}

nav .brand .logo {
  height: 55%;
}

nav #menu {
  position: absolute;
  z-index: 10;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  top: 10vh;
  left: -100%;
  transition: all 0.5s;
  padding: 40px;
  gap: 14px;
  flex-direction: column;
}

nav .social {
  align-items: center;
  gap: 30px;
}

nav #socialWeb {
  display: none;
}

nav #menu p {
  height: 32px;
}

nav #socialMobile {
  margin-top: 30px;
  height: 32px;
}

nav #socialMobile img {
  height: 100%;
}

nav #burger {
  display: inline;
}

nav #menu p {
  color: #fff;
  font-size: 22px;
}

.menuLink {
  cursor: pointer;
}

/* Cabecera */

header {
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  padding: 100px 0;
  gap: 20px;
  position: relative;
}

header .title {
  flex-direction: column;
  justify-content: center;
}

header .title h1 {
  font-family: 'Atma';
  font-size: 60px;
  color: var(--blue);
  text-transform: uppercase;
  line-height: 65px;
}

header .title h2 {
  font-family: "Nunito Sans", sans-serif;
  line-height: 55px;
  font-size: 40px;
}

header .title h3 {
  font-size: 20px;
  color: #808080;
  margin-top: 10px;
  font-family: "Nunito Sans", sans-serif;
}

header .welcome {
  padding: 100px;
  background-image: url(../img/blobs/blob1.gif);
  background-size: 400px 400px;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

header .welcome img {
  margin: auto;
  width: 200px;
  height: auto;
  transform: scale(2);
}

header .ayuntamiento {
  position: absolute;
  bottom: 40px;
  right: 120px;
  width: 150px;
}

/* Nosotros */

#us {
  background-color: var(--black);
  padding-top: 60px;
}

#us h1 {
  color: var(--white);
  text-align: center;
  font-size: 50px;
  margin-bottom: 50px;
}

#us .container {
  width: 80%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  justify-content: center;
}

#us .container .logotipo {
  text-align: center;
}

#us .container .logotipo h1 {
  color: var(--white);
  font-size: 50px;
  margin: 0;
}

#us .container img {
  width: 66%;
}

#us .container .logotipo video {
  width: 40%;
  margin-bottom: 20px;
}

#us .container .video video {
  width: 100%;
}

#us .blob-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 100px 0;
}

#us .blob-us {
  position: relative;
}

#us .blob-us:nth-child(1) {
  width: 21%;
  min-width: 220px;
}

#us .blob-us:nth-child(1) img {
  transform: rotate(201deg);
}

#us .blob-us:nth-child(3)  {
  width: 21%;
  min-width: 220px;
}

#us .blob-us:nth-child(3) img  {
  transform: rotate(75deg);
}

#us .blob-us:nth-child(2) {
  width: 25%;
  min-width: 270px;
}

#us .blob-us:nth-child(2) img {
  transform: rotate(90deg);
}


#us .blob-us .text {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2vw;
}

#us .blob-us img {
  width: 100%;
}

/* Eventos */

#events #events-title {
  font-family: 'Atma';
  font-size: 80px;
  text-transform: uppercase;
  line-height: 40px;
  text-align: left;
  padding-top: 20px;
  color: var(--white);
  background: var(--black);
  padding-left: 10%;
}

#events .container {
  width: 80%;
  margin: 40px auto auto auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  justify-content: center;
  gap: 10%;
}

#events .container .event {
  position: relative;
  margin: auto;
  min-height: 400px;
}

#events .event img {
  display: block;
  margin: auto;
  max-width: 400px;
  width: 100%;
  height: initial;
}

#events .container .text {
  font-size: 18px;
  height: 100%;
  min-height: 500px;
  background-image: url('../img/blobs/blob2.webp');
  background-size: 350px 350px;
  background-repeat: no-repeat;
  background-position: center;
  flex-direction: column;
  justify-content: center;
}

/* Nuestros valores */

.values {
  background-image: url('../img/wave-1.svg');
  width: 100%;
  margin-top: 90px;
  position: relative;
  background-repeat: no-repeat;
  background-position: bottom;
}

.values .wrapper {
  width: 80%;
  margin: auto;
  padding-bottom: 80px;
}

.items-container {
  flex-wrap: wrap;
  justify-content: center;
}

.values h1 {
  font-size: 50px;
  color: var(--orange);
  padding-bottom: 20px;
}

.values .item {
  text-align: center;
  padding: 30px 0;
  color: var(--black);
  font-weight: 800;
  width: 33%;
  min-width: 230px;
}

.values .item .image {
  margin: auto;
  border-radius: 100%;
  background: var(--white);
  width: 60%;
  margin-bottom: 15px;
  border: 4px solid var(--orange);
}

.values .item p {
  font-size: 22px;
}

.values .item .image img {
  width: 100%;
}

/* VIDEO */

#news {
  background: var(--black);
  position: relative;
}

#news-title {
  color: var(--white);
  padding-bottom: 0;
  padding-top: 50px;
  font-size: 50px;
  margin: auto;
  padding-left: 10%;
  background: var(--orange);
}

#news .wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  width: 80%;
  margin: auto;
  z-index: 1;
  /* min-height: 740px; */
  gap: 40px;
}

#news .wrapper .title h1 {
  font-size: 50px;
  color: var(--orange);
}

#news .wrapper .title h1 span {
  color: var(--white);
}

#news .wrapper .title .social {
  display: flex;
  justify-content: space-evenly;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

#news .wrapper .title .social .item {
  background: var(--yellow);
  padding: 20px;
  border-radius: 100%;
}

#news .wrapper .title .social .item img {
  width: 40px;
  height: 40px;
}

#news .wrapper #twitter {
  background: var(--white);
  margin: 20px 0 0 0;
  z-index: 1;
  border-radius: 12px;
  min-height: 495px;
}

#news .wave-2 {
  /* background-image: url('../img/wave-2.svg'); */
  width: 100%;
  position: absolute;
  bottom: 0;
  z-index: 0;
}

#news .wave-2 img {
  width: 100%;
}

/* CONTACTO */

#contact {
  color: #fff;
  font-family: "Nunito", sans-serif;
  background-image: url('../img/contacto.png');
  background-position: bottom right;
  background-size: contain;
  background-repeat: no-repeat;
}

#contact h1 {
  font-family: 'Atma';
  font-size: 70px;
  text-transform: uppercase;
}

#contact .wrapper {
  width: 80%;
  margin: auto;
  margin-bottom: 70px;
}

#contact .container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#contact .container h1 {
  font-size: 50px;
  padding-bottom: 20px;
}

#contact .container p {
  padding-bottom: 20px;
  font-size: 20px;
}

#contact .container .text {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
}

#contact .container .text .location-title {
  font-size: calc(20px + 1vw);
}

#contact .container .text .location-center,
#contact .container .text .location-street {
  font-size: 17px;
}

#contact .container iframe {
  width: 100%;
}

footer {
  padding: 20px 0;
  text-align: center;
  box-shadow: 0px 16px 20px rgb(0 0 0);
}

footer p,
footer a {
  font-family: "Nunito Sans", sans-serif;
  font-size: 12px;
}

footer .politics {
  color: #000;
  text-decoration: underline;
  font-weight: bold;
}

footer .copyright {
  margin-top: 10px;
  opacity: 0.7;
}

.showMenu {
  display: flex;
  left: 0px !important;
}

#cookies {
  width: 100%;
  text-align: center;
  position: fixed;
  bottom: 0;
  background: #383838c2;
  color: var(--white);
  padding: 20px;
  font-family: "Nunito Sans", sans-serif;
  z-index: 10;
}

#cookies div {
  display: flex;
  justify-content: center;
  gap: 20px;
}

#cookies p {
  margin: 10px;
  color: var(--white);
}

#cookies a {
  text-decoration: underline;
  color: var(--white);
}

.cookiesSection {
  width: 80%;
  margin: auto;
  padding: 60px 0;
}

.cookiesSection h1,
.cookiesSection h2 {
  font-family: "Nunito", sans-serif;
}

.cookiesSection h1 {
  font-size: 40px;
  margin-bottom: 30px;
}

.cookiesSection p {
  margin: 12px;
  font-family: "Nunito Sans", sans-serif;
}

.cookiesSection img {
  display: block;
  margin: 70px auto 0 auto;
  width: 20%;
  min-width: 100px;
}

.reveal {
  transform: translateY(150px);
  opacity: 0;
  transition: 1s all ease;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

@media all and (min-width: 768px) {
  nav #menu p {
    height: initial;
  }

  nav #socialWeb {
    display: flex;
  }

  nav #socialMobile {
    display: none;
  }

  nav .title {
    font-size: 20px;
  }

  nav #menu p {
    font-size: 14px;
    color: #000;
  }

  nav .social,
  nav #menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3vw;
  }

  nav #menu {
    position: static;
    background-color: white;
    transition: none;
    width: auto;
    height: auto;
    padding: 0;
  }

  nav #socialMobile img {
    height: 16px;
  }

  nav .social img {
    width: 16px;
    height: 16px;
  }

  nav #burger {
    display: none;
  }
}

@media all and (max-width: 925px) {
  #contact h1 {
    margin-top: 50px;
  }
}

@media all and (max-width: 750px) {
  #us .container img {
    margin-bottom: 50px;
  }
}

@media all and (max-width: 700px) {
  #us .blob-us .text {
    font-size: 12px;
  }

  #twitter {
    display: none;
  }
}

@media all and (max-width: 816px) {
  header .ayuntamiento {
    right: 30px;
  }

  #us .container .logotipo {
    margin-bottom: 50px;
  }

  #us .container .logotipo h1 {
    font-size: 30px;
  }
}
@media all and (max-width: 1085px) {
  #contact .container {
    gap: 20px;
  }
}



/* Global classes */

.flex {
  display: flex;
}