*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --swiper-navigation-color: #e34600;
  --swiper-pagination-color: #e34600;
  --swiper-pagination-bottom: 1px;
}

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  font-family: "Metropolis", sans-serif;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
/* NAVBAR styles */
.button {
  display: inline-block;
  border: none;
  color: #ebe9cf;
  margin: 17.5px 1px;
  text-align: center;
  text-decoration: solid;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-family: "Metropolis", sans-serif;
  font-size: 10px;
  font-weight: lighter;
  font-style: normal;
  cursor: pointer;
  background-color: #1e1e19;
}

button,
a {
  text-decoration: none;
  color: #ebe9ce;
}

.button:hover,
button a:hover {
  color: #e34600;
  font-weight: lighter;
}

button img {
  margin-right: 2px;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 25px;
  height: 100px;
  background-color: #1e1e19;
  color: #ebe9ce;
  border-bottom: 0.5px solid #3e3e34;
  font-family: "Metropolis", sans-serif;
  font-size: 11px;
  font-weight: lighter;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: #ebe9cf;
  margin: auto;
}
.logo {
  width: 33%;
  text-align: center;
}

.logo-img {
  width: 90px;
  height: 70px;
  transition: opacity 0.5s;
}

.logo-img:hover {
  opacity: 0.8;
}

.soloicon {
  width: 33%;
  color: #ebe9ce;
  margin: auto 0;
}

.direccion {
  text-align: end;
  width: 33%;
  margin: auto 0;
}

span {
  font-weight: lighter;
}

.direccion i {
  margin-right: 10px;
}

#first-menu {
  width: 100%;
  padding: 1px;
  text-align: center;
  background-color: #1e1e19;
  position: -webkit-sticky;
  position: sticky;
  top: 0px;
  z-index: 1000;
}

#second-menu {
  width: 100%;
  padding: 1px;
  text-align: center;
  background-color: #13130d;
  position: -webkit-sticky;
  position: sticky;
  top: 0px;
  z-index: 1000;
}

.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown a {
  transition: color 0.2s linear;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #000;
  width: 180px;
  overflow: auto;
  border-top: 1px solid #949380;
  cursor: pointer;
  line-height: 1.8;
}

.dropleft {
  right: 0px;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content:active,
a:hover {
  color: #a58443;
}
.dropdown-content a {
  display: block;
  color: #949380;
  padding: 15px 10px;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Metropolis", sans-serif;
  font-size: 10px;
  font-weight: lighter;
  font-style: normal;
}
.dropdown-content a:hover {
  color: #a58443;
}

/* Menu para pantallas pequeñas */

#drawer {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 156px;
  height: auto;
  background-color: #1e1e19;
  font-family: "Metropolis", sans-serif;
  font-size: 11px;
  font-weight: lighter;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: #ebe9cf;
  z-index: 1000;
  padding: 5px;
  box-sizing: border-box;
}
nav.list-drawer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  float: left;
  width: 150px;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-family: "Metropolis", sans-serif;
  font-size: 10px;
  font-weight: lighter;
  font-style: normal;
  cursor: pointer;
  background-color: #1e1e19;
}

nav.list-drawer ul ul {
  height: 0;
  overflow: hidden;
  transition: 0.4s;
}

nav.list-drawer ul li ul li {
  background-color: #1e1e19;
  height: 46px;
}

nav.list-drawer ul li:hover ul {
  height: auto;
}

nav.list-drawer ul a {
  display: block;
  box-sizing: border-box;
  padding: 10px;
  font-family: "Metropolis", sans-serif;
  text-decoration: none;
}

#toggle-menu-btn {
  display: none;
  background-color: #13130d;
  color: #ebe9ce;
  padding: 10px;
  border: 2px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Media query para mostrar el botón y el drawer en pantallas más pequeñas */
@media screen and (max-width: 700px) {
  #first-menu {
    display: none;
  }

  #toggle-menu-btn {
    display: block;
  }

  #drawer.show {
    display: block;
  }

  .dropdown-content:not(:hover) {
    display: none;
  }

  #drawer .dropdown-content {
    top: -5px;
    left: 120px;
    z-index: 1;
  }
}

/* CONTENT SECTION styles */

h1 {
  text-align: center;
  text-transform: uppercase;
  font-family: "Metropolis", sans-serif;
}

h1.title {
  text-align: left;
}

.submenu {
  width: 100%;
  top: 0;
  margin: 0 auto;
}

nav {
  text-align: center;
  margin: 0;
  padding: 0;
}

nav.submenu ul {
  list-style: none;
  display: inline-block;
  border-bottom: 1px solid black;
  margin: 0;
  padding: 0;
}

nav.submenu ul li {
  float: left;
}

nav.submenu ul li a {
  display: block;
  color: #000;
  padding: 15px;
  font-family: "Metropolis", sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}

nav.submenu ul li a:hover {
  background-color: #e34600;
  color: #fff;
}

.submenu hr {
  width: 60%;
}

@media (max-width: 634px) {
  .submenu {
    width: 100%;
  }

  nav.submenu li {
    width: 50%;
    text-align: left;
  }
  nav.submenu ul li a {
    display: block;
    color: #000;
    padding: 10px;
    font-size: 14px;
  }
}

section span,
section span a {
  color: #e34600;
  font-weight: bold;
}
section span a:hover {
  color: #a58443;
}

#el-origen {
  width: 100%;
  height: auto;
  padding: 0 2em 2em 2em;
  margin: 0 auto;
  background-image: url("../public/img/05_V02_PINTADERA_Y_SALPICADURA.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: center;
  font-family: "Metropolis", sans-serif;
  text-align: center;
  color: #1e1e19;
}
div.origen-info {
  width: 80%;
  text-align: center;
  margin: 0 auto;
  margin-top: -18%;
  line-height: 1.5;
}

.origen-img {
  width: 100%;
}

div.origen-img img {
  width: 100%;
  text-align: center;
}

div.inner-link {
  text-align: center;
  padding-top: 15px;
}

div.inner-link a {
  background-color: #e34600;
  border-radius: 25px;
  color: #fff;
  padding: 15px 25px;
  transition: color 0.5s ease;
  cursor: pointer;
}
div.inner-link a:hover {
  color: #e34600;
  background-color: #fff;
  border: 2px solid #e34600;
}

#guardianes {
  background-color: #fceadf;
  width: 100%;
  padding: 2em;
  height: auto;
  margin: 0 auto;
  text-align: center;
  font-family: "Metropolis", sans-serif;
  color: #1e1e19;
}

.guardian {
  height: auto;
  padding: 0;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 68%;
  gap: 20px;
  padding-top: 40px;
  margin: 0 auto;
}

div.inner-link-card {
  position: relative;
  bottom: 100px;
  z-index: 1;
  text-align: center;
  font-size: 12px;
}

div.inner-link-card a {
  background-color: #fff;
  border-radius: 25px;
  color: #e34600;
  padding: 10px 15px;
  transition: color 0.5s ease;
  cursor: pointer;
}
div.inner-link-card a:hover {
  color: #fff;
  background-color: #e34600;
  border: 2px solid #fff;
}

@media (max-width: 768px) {
  #el-origen {
    background-size: cover;
  }

  .origen-info {
    width: 100%;
  }

  div.guardian p {
    width: 100%;
  }

  .cards {
    width: 100%;
    margin: 0 auto;
    gap: 2px;
    padding-top: 10px;
  }
}

.flip-card {
  background-color: transparent;
  width: 300px;
  height: 400px;
  perspective: 1000px;
  border-radius: 10px;
  margin: 5px auto;
}

.flip-card-inner {
  width: 300px;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: transparent;
}

.flip-card-back {
  background-color: transparent;
  transform: rotateY(180deg);
}

div#actualidad {
  width: 100%;
  height: auto;
  padding: 2em;
  margin: 0 auto;
  text-align: center;
  font-family: "Metropolis", sans-serif;
  color: #1e1e19;
}

div#actualidad2 {
  display: none;
  width: 100%;
  height: auto;
  padding: 2em;
  margin: 0 auto;
  text-align: center;
  font-family: "Metropolis", sans-serif;
  color: #1e1e19;
}

div#noticia {
  width: 100%;
  height: auto;
  padding: 2em;
  margin: 0 auto;
  text-align: center;
  font-family: "Metropolis", sans-serif;
  color: #1e1e19;
}

div#actualidad > div {
  margin: 15px;
}

div#noticias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

div.portada {
  width: 90%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  font-family: "Metropolis", sans-serif;
  color: #000;
  margin: 5px 0 15px 0;
}

div.portada:hover {
  box-shadow: 2px 2px 4px 5px rgba(152, 147, 143, 0.3);
}

div.noticia {
  width: 33%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  font-family: "Metropolis", sans-serif;
  color: #000;
  margin: 5px 0 15px 0;
}

div.noticia > div.texto {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
}

div.noticia a {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  font-family: "Metropolis", sans-serif;
  color: #000;
  transition: box-shadow 0.3s ease-in;
}

div.noticia:hover {
  box-shadow: 2px 2px 4px 5px rgba(152, 147, 143, 0.3);
}

div#archivo {
  width: 100%;
  margin: 0 auto;
}

div.archivo {
  width: 90%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  gap: 20px;
  height: auto;
  margin: 0 auto;
  text-align: center;
  font-family: "Metropolis", sans-serif;
  color: #1e1e19;
  padding-bottom: 20px;
}

div.noticia2 {
  width: 45%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  font-family: "Metropolis", sans-serif;
  margin-bottom: 10px;
  padding-bottom: 5px;
  box-shadow: 2px 2px 4px rgba(152, 147, 143, 0.5);
}

div.noticia3 {
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  font-family: "Metropolis", sans-serif;
  margin-bottom: 10px;
}

div#cuerpo-noticia {
  margin-left: 25px;
}

div.noticia3 div#cuerpo-noticia a {
  color: #e34600;
}

div.noticia3 div#cuerpo-noticia a:hover {
  color: #ffffff;
  background-color: #e34600;
  padding: 2px 4px;
}

.texto {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
}

div.img-noticia {
  width: 45%;
  height: auto;
  padding-top: 18px;
}

div.img-noticia img {
  width: 100%;
  height: auto;
}

div.info-noticia {
  height: auto;
  width: 45%;
  text-align: left;
  line-height: 1.2;
  margin: 5px;
}

div.info-noticia h3 {
  text-align: left;
}

/* div.info-noticia a {
  color: #e34600;
  font-weight: 700;
} */

div.leer {
  padding: 5px 0;
}

div.leer a {
  font-size: 14px;
  font-weight: lighter;
  transition: padding 0.3s ease;
  color: #e34600;
  padding: 5px 8px;
  border-radius: 15px;
  background-color: #e7e6e2;
  float: right;
  cursor: pointer;
}

div.leer a:hover {
  background-color: #e34600;
  color: white;
}

#galeria {
  width: 100%;
  padding: 2em;
  height: auto;
  margin: 0 auto;
  text-align: center;
  font-family: "Metropolis", sans-serif;
  color: #1e1e19;
}
#galeria2 {
  width: 100%;
  padding: 2em;
  height: auto;
  margin: 0 auto;
  text-align: center;
  font-family: "Metropolis", sans-serif;
  color: #1e1e19;
}

div#galeria div#videos {
  margin: 0 auto 10px;
  width: 100%;
  height: auto;
}

.swiper {
  width: 700px;
  height: 350px;
}

div.swiper-news {
  width: 100%;
  height: auto;
}

div#galeria2 div#videos2 {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
  border: #000;
}

div#galeria div.video {
  width: 33%;
  height: auto;
  font-family: "Metropolis", sans-serif;
  color: #000;
  padding: 5px;
  margin: 5px 0 15px 0;
}

div#galeria2 div.video2 {
  width: 45%;
  height: auto;
  font-family: "Metropolis", sans-serif;
  color: #000;
  margin: 5px;
}

div#galeria div.portadav {
  width: 90%;
  height: auto;
  display: flex;
  justify-content: center;
  overflow: hidden;
  font-family: "Metropolis", sans-serif;
  color: #000;
  margin: 5px 0 15px 0;
}

div.portadav div.onevideo {
  width: 60%;
  height: auto;
  text-align: center;
  line-height: 1.2;
  margin: 5px;
}

div#actualidad > div > a,
div#actualidad2 > div > a,
div#galeria > div > a {
  background-color: #e34600;
  padding: 15px;
  border-radius: 25px;
  transition: 0.5s ease;
  -webkit-transition: 0.5s ease;
  color: white;
}

.vermas {
  padding-top: 15px;
}

div#actualidad > div > a:hover,
div#actualidad2 > div > a:hover,
div#galeria > div > a:hover {
  background-color: #ffffff;
  border: 2px solid #e34600;
  color: #e34600;
}

#hazte-guardian {
  background-color: #fceadf;
  width: 100%;
  height: auto;
  padding: 2em;
  margin: 0 auto;
  text-align: center;
  font-family: "Metropolis", sans-serif;
  color: #1e1e19;
}

#hazte-guardian a h1 {
  color: #fff;
  background-color: #e34600;
  width: 60%;
  margin: 15px auto;
  padding: 15px 25px;
  border-radius: 25px;
  transition: color 0.5s ease;
}
#hazte-guardian a h1:hover {
  color: #e34600;
  border: 2px solid #e34600;
  padding: 13px 25px;
  background-color: white;
}

.socio {
  width: 60%;
  text-align: center;
  margin-bottom: 15px;
}

.hazte {
  display: flex;
  align-items: center;
  flex-direction: column;
  height: auto;
  width: auto;
  margin: 0 auto;
}

details.detail {
  background: #fff;
  background-image: url("../public/icon/chevron-right.svg");
  background-repeat: no-repeat;
  background-position-x: 97%;
  background-position-y: center;
  padding: 1rem;
  margin: 0.5rem;
  border-radius: 25px;
  color: #1e1e19;
  text-align: left;

  width: 60%;
  line-height: 1.5;
}

details[open] {
  background-image: url("../public/icon/chevron-down.svg");
  background-position-y: 10px;
}

summary {
  list-style: none;
  font-family: "Metropolis", sans-serif;
}

summary.title {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.5;
  cursor: pointer;
}

ul.detList li {
  line-height: 2;
}

@media (max-width: 1200px) {
  div#videos2 div.video2 iframe {
    width: 400px;
    height: 210px;
  }
}

@media (max-width: 768px) {
  div.portada {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    padding-left: 5px;
  }
  div#actualidad {
    display: none;
  }
  div#actualidad2 {
    display: block;
  }

  div.noticia {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    padding-left: 5px;
  }

  div.noticia2 {
    display: flex;
    margin: 0 auto;
    width: 90%;
  }

  div.noticia3 {
    display: flex;
    margin: 0 auto;
    width: 90%;
  }

  div#galeria div#videos {
    display: block;
    width: 100%;
  }

  div#videos div.video {
    width: 100%;
    margin: 0 auto;
    height: auto;
    padding-left: 5px;
  }

  div#videos div.swiper {
    width: 100%;
    height: 230px;
  }

  iframe {
    width: 300px;
    height: 190px;
  }

  div#videos div.portadav {
    width: 100%;
    margin: 0 auto;
    height: auto;
    padding-left: 5px;
  }

  div.portadav div.onevideo {
    width: 96%;
  }

  div#galeria2 div#videos2 {
    display: block;
    width: 100%;
  }

  div#videos2 div.video2 {
    width: 100%;
    margin: 0 auto;
    height: auto;
    padding-left: 5px;
  }

  div#videos div.video2 iframe {
    width: 300px;
    height: 190px;
  }

  div.portadav div.onevideo iframe {
    width: 300px;
    height: 190px;
  }
}

@media (max-width: 768px) {
  div.noticia {
    margin: 0 auto;
    width: 100%;
  }

  div.noticia2 {
    width: 90%;
  }

  div.img-noticia,
  div.info-noticia {
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  details.detail {
    width: 100%;
  }
  #hazte-guardian {
    padding: 0.5em;
  }

  #hazte-guardian a h1 {
    width: 100%;
  }

  ul.detList li {
    line-height: 0;
  }
}

/* Footer styles */

footer {
  background-color: #13130d;
  color: #949380;
  width: 100%;
  height: auto;
  margin: 0 auto;
  text-align: center;
  padding-top: 64px;
}

footer img.logo-footer {
  width: 400px;
  height: auto;
  transition: opacity 0.5s ease;
}

footer img.logo-footer:hover {
  opacity: 0.8;
}

footer hr {
  border: none;
  border-left: 1px solid hsla(200, 10%, 50%, 100);
  height: 50px;
  width: 1px;
  margin: 5px auto;
}

div.socialmedia {
  width: 100%;
  margin: 34px auto;
}

div.socialmedia i {
  padding: 10px;
}

div.footermenu {
  width: 100%;
  height: auto;
  margin: 34px auto;
}
div.footermenu ul {
  width: auto;
  padding: 0;
}

div.footermenu ul li {
  display: inline-block;
  list-style: none;
  width: auto;
  height: 0.8em;
  border-left: 1px dotted #ddd;
}

div.footermenu ul li.mapa {
  border: none;
}

div.footermenu ul li a {
  float: left;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  padding: 0 15px;
}

div.copyrigth {
  width: 100%;
  height: auto;
  margin: 10px auto 0 auto;
  padding: 34px 0;
  border-top: 1px solid #3e3e34;
  background-color: #1e1e19;
  font-family: "Metropilis", sans-serif;
  font-weight: 100;
  text-align: center;
}

#btn-scroll {
  display: none;
  padding: 0.6em;
  background: #f7f6ec;
  color: #000;
  border: 1px solid #3e3e34;
  border-radius: 55%;
  cursor: pointer;
  position: fixed;
  bottom: 5em;
  right: 3em;
  z-index: 0;
  text-align: center;
  transition: color 0.3s ease, border-color 0.3s ease,
    background-color 0.3s ease;
}

#btn-scroll:hover {
  border-color: #e34600;
  color: white;
  background-color: #e34600;
}

@media (max-width: 600px) {
  footer {
    padding: 20px;
  }
  footer img.logo-footer {
    width: 50%;
    height: auto;
  }
  footer hr {
    height: 2em;
  }
}
