* {
  box-sizing: border-box;

}

:root {
  --color-rojoprincial: #b60000;
  --color-rojo-oscurohover: #900000;
  --color-negrofondooscuro: #1a1a1a;
  --color-gris-oscurotransparecia: rgba(40, 40, 40, 0.85);
  --color-blancofondo-ytextoclaro: #ffffff;
  --color-gris-claro-fondosuave: #f2f2f2;
  --color-gris-claro-texto: #cac5c5;
  --color-textogeneral: #333333;
  --color-negrotransparente: rgba(0, 0, 0, 0.4);
  --color-rojo-oscurohovertrasnparente: #90000050;
  --color-gris-claro-trasparente: hsla(0, 62%, 92%, 0.315);
  --color-textopaginador: #646262;
  --color-grisoccuro-border: #383636;
  --color-grisoccuro: #292727;
  --anchogeneral: 1140px;
}


body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
}

header {
  position: relative;
  width: 90%;
  margin: 20px auto;
  aspect-ratio: 16 / 6;
  background-image: url("img/portada.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  overflow: hidden;

}

.menu.logo {
  position: absolute;
  top: 15px;
  right: 20px;
}

.menu.logo ul {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.menu.logo li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.menu.logo li img:hover {
  opacity: 0.7;
}

.navegador {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--color-gris-oscurotransparecia);
  text-align: center;
}

.navegador ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.navegador li {
  margin: 0 15px;
}

.navegador a {
  color: var(--color-blancofondo-ytextoclaro);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.4em;
  padding: 8px 12px;
  transition: background 0.3s ease;
}

.navegador a:hover {
  background: var(--color-rojo-oscurohovertrasnparente);
}



main {
  display: grid;
  grid-template-rows: auto auto auto auto;
}

.negrita {
  font-weight: bold;
}

#mainprincipal {
  display: grid;
  grid-template-columns: 2fr 1fr;
  width: var(--anchogeneral);
  margin: auto;
  gap: 15px;
}

#mainprincipal>div>div:nth-child(2) {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.tarjetaprincipal img {
  margin-top: 30px;
  width: 100%;
}

.tarjetaprincipal h3 {
  font-size: 1.8em;
  margin-top: 10px;
  color: var(--color-negrofondooscuro);
}

.tarjetaprincipal p {
  color: var(--color-gris-claro-texto);
  margin: 0px;
}

.tarjeta {
  display: grid;
  grid: template columns 1fr 1fr;
  gap: 20px;
}

.tarjeta img {
  width: 100%;
}

.tarjeta h3 {
  font-size: 1.8em;
  margin-top: 10px;
  color: var(--color-negrofondooscuro);
}

.tarjeta p {
  color: var(--color-gris-claro-texto);
  margin: 0px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.tarjeta h3:hover,
.tarjetaprincipal h3:hover {
  color: var(--color-rojoprincial);
}

.tarjeta,
.tarjetaprincipal {
  margin-bottom: 60px;
}

#mainprincipal img:hover {
  filter: opacity(70%);
}



#mainprincipal>aside {
  background-color: var(--color-gris-claro-fondosuave);
  padding: 15px;
  margin-top: 30px;
  height: auto;
}

#mainprincipal>aside img {
  width: 100%;
  height: 280px;
  margin-bottom: 70px;
}

#mainpaginador ul {
  padding: 0px;
  margin: 0px;
  list-style: none;
  text-align: center;
  margin: auto;
}

#mainpaginador ul li {
  display: inline-block
}

#mainpaginador ul li a {
  display: inline-block;
  background-color: var(--color-gris-claro-texto);
  color: var(--color-textopaginador);
  padding: 15px;
  border-radius: 3px;
  margin-left: 5px;
  text-decoration: none;
}

#mainpaginador a.seleccionado {
  background-color: var(--color-rojoprincial);
  color: var(--color-blancofondo-ytextoclaro);
}

#mainpaginador a:hover {
  background-color: var(--color-rojoprincial);
  color: var(--color-blancofondo-ytextoclaro);
}

#mainyoutube {
  background-color: var(--color-grisoccuro);
  color: var(--color-blancofondo-ytextoclaro);
  margin-top: 80px;
}

#mainyoutube iframe {
  width: 100%;
}

#mainyoutube>div {
  width: var(--anchogeneral);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding-top: 30px;
  padding-bottom: 20px;
  gap: 20px;

}

#mainyoutube>div>div:first-child {
  margin-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: center;
  font-size: 0.8em;
}

#mainyoutube>div>div:first-child iframe {
  height: 100px;
}

#mainyoutube>div>div:first-child h3 {
  margin: 4px;
  height: 50px;
}

#mainyoutube>div>div:last-child {
  text-align: center;
}

#mainyoutube>div>div:last-child h2 {
  font-weight: 100;
  font-size: 2em;
}

#mainyoutube>div>div:last-child iframe {
  height: 400px;
}


#maingaleria {
  width: var(--anchogeneral);
  margin: auto;
  margin-top: 80px;
}

#maingaleria>div {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}


#maingaleria>div img {
  width: 100%;
}

#maingaleria>div h3 {
  background-color: var(--color-rojoprincial);
  text-align: center;
  padding: 15px;
  font-size: 1em;
}


footer {
  background-color: var(--color-grisoccuro);
  color: var(--color-gris-claro-texto);
  gap: 30px;
}

footer>div:first-child {
  width: var(--anchogeneral);
  margin: auto;
}

footer>div:first-child {
  padding-top: 50px;
  background-image: url("https://bukaneros.org/wp-content/themes/bukaneros/images/footer.png");
  background-repeat: no-repeat;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 100px;
  line-height: 32px;
}

footer>div:first-child>div:last-child>div {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

footer>div:first-child>div:last-child>div ul {
  list-style: none;
  margin: 0px;
  padding: 0px;
}


footer>div:first-child>div:last-child>div ul li {
  border-bottom: 1px solid var(--color-grisoccuro-border);
  margin-left: auto;
}

footer>div:first-child>div:last-child>div ul li a {
  color: var(--grisclaro3);
  text-decoration: none;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  text-transform: uppercase;
  font-size: 0.8em;
  margin-left: 30px;
}


footer>div:last-child {
  background-color: var(--color-negrofondooscuro);
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid var(--color-gris-claro-texto);
}

footer>div:last-child>p {
  display: block;
  width: var(--anchogeneral);
  margin: auto;
  color: var(--color-gris-claro-texto);
}