:root {
  --primary-color: rgb(185, 15, 15);
  --secondary-color: rgb(209, 206, 209);
  --text-color: #fdfffe;
  --text-color-dark: #fcf9f9;
  --background-nav-hover: #9fa59f7c;
  --background-menu-mobile: rgba(197, 191, 191, 0.808);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --font-family: Arial, Helvetica, sans-serif;
  --font-size-base: 1rem;
  --line-height-h2: 2;
  --transition-duration: 0.3s;
  --animation-duration: 6000ms;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  text-decoration: none;
}
html {
  height: 100%;
  width: 100%;
}
body {
  background: var(--primary-color);
  max-width: 100vw;
}
i {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-duration);
  &:hover {
    color: var(--secondary-color);
  }
}
p {
  color: var(--text-color);
}

h2 {
  color: var(--text-color-dark);
  text-shadow: 2px 2px 4px #000000;
  line-height: var(--line-height-h2);
}
a { 
  color: var(--text-color);
}
/* barra navegadora*/
.nav {
  width: 100%;
  display: flex;
  background-color: rgba(68, 71, 70, 0);
  align-items: center;
  text-align: left;
  padding: 0.3125rem; /* 5px */
  z-index: 9;
  position: fixed;
  transition: background-color var(--transition-duration);
  &:hover {
    background-color: var(--background-nav-hover);
  }
}
.nav img {
  padding: 0.5rem; /* 8px */
}
.nav > .nav-header {
  flex: 0.95;
  padding-left: 1rem;
  align-items: left;
}
.nav > .nav-list {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
}
.nav > .nav-list > li {
  list-style-type: none;
}
.nav > .nav-list > li a {
  text-decoration: none;
  color: rgb(243, 242, 242);
  cursor: pointer;
  transition: color var(--transition-duration);
  &:hover {
    color: #928f8f;
  }
  &:focus {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
  }
}
.nav > #nav-check {
  display: none;
}
@media (max-width: 900px) {
  .nav {
    padding: 0.5rem; /* 8px */
  }
  .nav > .nav-btn {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0;
    padding-top: 0.3rem;
  }
  .nav > .nav-btn > label {
    display: inline-block;
    width: 3.125rem; /* 50px */
    height: 3.125rem; /* 50px */
    padding: 0.25rem; /* 4px */
    cursor: pointer;
    initial-value: false;
  }
  .nav > .nav-btn > label > span {
    display: block;
    width: 1.5625rem; /* 25px */
    height: 0.625rem; /* 10px */
    border-top: 3px solid var(--text-color);
  }
  .nav > .nav-list {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.625rem; /* 10px */
    background-color: var(--background-menu-mobile);
    max-height: 0;
    transition: max-height var(--transition-duration) ease-in;
    top: 3.6875rem; /* 59px */
    left: 0;
    overflow: hidden;
    overflow-y: auto;
  }
  .nav > .nav-list > li {
    width: 100%;
    margin-top: 0.3125rem; /* 5px */
    text-align: center;
    font-weight: bold;
    &:hover {
      color: #bcbebc;
    }
  }
  .nav > #nav-check:checked ~ .nav-list {
    max-height: 6.25rem; /* 100px */
  }
  .nav > #nav-check:checked + .nav-btn > label {
    initial-value: true;
  }
  .nav > .nav-list > li a {
    color: rgb(70, 69, 69);
    &:focus {
      outline: 2px solid var(--text-color);
      outline-offset: 2px;
    }
  }
}
/*---------*/

.caja {
  height: 100vh;
  text-align: center;
  display: flex;
  gap: 0.5rem;
  text-decoration: none;
  background: rgb(185, 15, 15);
}

.flex-grid {
  display: flex;
  max-width: 100vw ;
  height: auto;
  justify-content: center;
  align-items: center;
  background: rgb(185, 15, 15);
  padding-top: 70px;
}

.col {
  flex: 3;
  padding: 7px;
}
.col img{
 width: 100%;
}

/*---------*/
.menu-section {
  background-image: url(imagenes/logos-img/paper9.png);
  background-color: rgba(185, 15, 15, 0.6);
  background-blend-mode:multiply;
  width: 50%;
  height: auto;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: space-between;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 40px;
  transition: all 0.3s ease-in;
}

.menu-section img {
  animation: anim-fade-in 5000ms;
  max-width: 150px;
  margin-bottom: 10px;
}


/* Estilos para carousel*/
.mySlides {display:none;}

.carousel-container {
	background-color: rgba(206, 198, 198, 0.377);
  width: 100vw; /* Ancho del carrusel */
	height: auto;
  overflow: hidden; /* Oculta lo que se sale del contenedor */
	display: flex;
	align-items: center;
	justify-content: center;
  background-color: rgb(160, 15, 46);
}


.carousel-container img {
  width: auto;
  height: 100%;
  object-fit: contain; /* Asegura que la imagen cubra el área */
  display: block;
	margin: auto;
}

/*----*/

.box {
width: auto;
height: 100vh;
background-image:url(imagenes/caruosel-img/AAA_8468.jpg) ;
background-size: cover;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
text-align: center;
align-items: center;
justify-content: center;
justify-content: space-between;
}
.box1 {
  width: 50%;
  height: 100vh;
  background-color: #3a393981;
  margin-left: auto;
  margin-right: auto;
}

.boton-empezar {
  text-decoration: none;
  font-size: 20px;
  color: rgb(253, 251, 251);
  align-self: center;
  padding: 7px;
  transition: all 0.4s;
  background-color: rgb(185, 15, 15);
  border: 0.15rem solid #fff; /* 5px */
  box-shadow: 0.1875rem 0.1875rem 0.3125rem var(--shadow-color); /* 3px 3px 5px */
  margin-bottom: 10px;

  &:hover {
    background-color: rgb(78, 143, 81);
  }
}

@keyframes anim-fade-in {
  from {
    opacity: 0.0;
  }
  to {
    opacity: 1;
  }
}

/* flecha */
.ir-arriba {
  display: none;
  background-repeat: no-repeat;
  cursor: pointer;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
}

/* Estilos de la galería */
.galeria {
    width: 95%;
    list-style: none;
    margin: auto;
    box-sizing: border-box;
    display: flex; /* Usa Flexbox para alinear los elementos */
    flex-wrap: wrap; /* Permite que los elementos pasen a la siguiente línea */
    justify-content: space-around; /* Distribuye el espacio entre los elementos */
    align-items: center;
    justify-content: center;
    padding-top: 3.75rem; /* 60px */
}

.galeria li {
    margin: 0.625rem; /* 10px */
}

.galeria img {
    width: clamp(18.75rem, 25vw, 25rem); /* 300px to 400px */
    aspect-ratio: 4 / 3; /* Mantener proporción */
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin distorsionarse */
    border: 0.3125rem solid #fff; /* 5px */
    box-shadow: 0.1875rem 0.1875rem 0.3125rem var(--shadow-color); /* 3px 3px 5px */
}

.galeria2 img {
    border: 0.3125rem solid #fff; /* 5px */
    box-shadow: 0.1875rem 0.1875rem 0.3125rem var(--shadow-color); /* 3px 3px 5px */
}


/*--------*/

@media (max-width: 900px) {
.caja {
  flex-direction: column;
  height: 100vh;
  background-color: rgb(14, 13, 13);
}
.carousel-container {
  height: 100%;
}
.carousel-container img{
height: 100%;
}

.menu-section {
  height: 50%;
  width: 100%;
  text-decoration: none;
  padding: 20px;
}
.menu-section img {
  animation: anim-fade-in 5000ms;
  max-width: 100px;
  margin-left:  auto;
  margin-right: auto;
}

.flex-grid {
    display: block;
    .col {
      width: 100%;
      margin: 0 0 10px 0;
    }
  }
  .galeria img {
    width: 300px; /* Ancho fijo para las imágenes */
    height: 220px; /* Alto fijo para las imágenes */
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin distorsionarse */
    border: 5px solid #fff;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  }
}

/*-----*/

/* Media queries adicionales */
@media (max-width: 768px) {
  .galeria img {
    width: clamp(15rem, 80vw, 18.75rem); /* 240px to 300px */
  }
  .menu-section {
    padding: 1.25rem; /* 20px */
  }
  .box1 {
    width: 80%;
    height: 100vh;
  }
}

@media (min-width: 1024px) {
  .galeria img {
    width: clamp(25rem, 20vw, 31.25rem); /* 400px to 500px */
  }
  .menu-section {
    width: clamp(50%, 40vw, 60%);
  }
}

/* Media query para impresión */
@media print {
  .nav {
    display: none;
  }
  .galeria img {
    max-width: 100%;
    border: none;
    box-shadow: none;
  }
  .box {
    background: none;
    color: black;
  }
  .boton-empezar {
    display: none;
  }
}

/* Estilos para el contenedor del aviso*/
#imageContainer {
  text-align: center; 
  position: absolute;
  z-index: 9999;
  width: 80%;
  top: 45%;
  left: 70%;
  transform: translate(-50%, -50%)
}

/* Estilos para la imagen */
#myImage {
  display: none;
  max-width: 45%; /* Ajustar la imagen al ancho del contenedor */
  max-height: 45%; /* Ajustar la imagen al alto del contenedor */
}
