/* --- ESTILOS Carrusel Home --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    /*overflow: hidden;*/
    /*font-family: 'Arial', sans-serif;*/
}

/* Contenedor principal */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    touch-action: pan-y; /* Permite scroll vertical nativo pero no interfiere con el swipe horizontal */
}

/* --- LOGO EN LA ESQUINA SUPERIOR IZQUIERDA --- */
        .logo-container {
            position: absolute;
            top: 30px;
            left: 30px;
            z-index: 20; /* Por encima de las capas oscuras y flechas */
            display: flex;
            align-items: center;
        }

        .logo-container img {
            height: 50px; /* Ajusta la altura de tu logo aquí */
            width: auto;
            display: block;
            /* Opcional: filtro de sombra para que resalte sobre fondos claros u oscuros */
            filter: drop-shadow(1px 1px 4px rgba(0, 0, 0, 0.5)); 
        }

/* Estilos de cada slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Capa oscura superpuesta opcional para mejorar legibilidad del texto */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Slide activo visible */
.slide.active {
    opacity: 1;
}

/* Contenedor de texto y botón */
.slide-content {
    color: #fff;
    padding: 20px;
    max-width: 800px;
    z-index: 2; /* Por encima de la capa oscura */
}

.slide-content h1 {
    font-size: 5rem;
    font-weight: normal;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

.slide-content p {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

/* Estilo del botón */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FF7E00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #A65200;
    color: #fff;
}

/* Flechas de navegación */
button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

button.prev { left: 20px; }
button.next { right: 20px; }

/*button.prev:hover, button.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}*/

/* --- MEDIA QUERY PARA DISPOSITIVOS MÓVILES --- */
@media (max-width: 768px) {
    .logo-container {
                top: 20px;
                left: 20px;
            }

            .logo-container img {
                height: 35px; /* Logo más compacto en pantallas pequeñas */
            }
    .slide-content {
        padding: 15px;
    }

    .slide-content h1 {
        font-size: 3.5rem; /* Texto más pequeño en móviles */
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 1.3rem; /* Párrafo más compacto */
        margin-bottom: 25px;
    }

    .btn {
        padding: 10px 24px; /* Botón ligeramente más pequeño */
        font-size: 0.95rem;
    }

    button.prev, button.next {
        font-size: 1.5rem; /* Flechas más pequeñas */
        padding: 10px 14px;
    }

    button.prev { left: 10px; } /* Menos margen lateral */
    button.next { right: 10px; }
}

/* Menú de hamburguesa */

/* --- Estilos Generales y Contenedor --- */
.menu-navegacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 15px 20px;
  color: white;
  position: relative;
}

/* Ocultar el checkbox por completo */
#menu-toggle {
  display: none;
}

/* --- Diseño del Botón de Hamburguesa --- */
.navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

/* Sobreescribir background-color de style.css */
.navbar-custom .navbar-toggle:hover, .navbar-custom .navbar-toggle:focus {
    background-color: transparent;
}

/* Las tres líneas horizontales */
.navbar-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #FF7E00;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* --- Lista de Enlaces en Móvil --- */
.menu-enlaces {
  list-style: none;
  display: flex;
  flex-direction: column;
  background-color: #444;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 0; /* Oculto por defecto mediante altura cero */
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  text-align: center;
}

.menu-enlaces li a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #555;
}

.menu-enlaces li a:hover {
  background-color: #FF7E00;
}

/* --- El Truco de CSS: Mostrar Menú al dar Clic --- */
/* Cuando el checkbox está seleccionado, despliega la lista */
#menu-toggle:checked ~ .menu-enlaces {
  max-height: 300px; /* Altura suficiente para mostrar los enlaces */
}

/* --- Animación de las líneas (Opcional, crea una 'X') --- */
#menu-toggle:checked ~ .navbar-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

#menu-toggle:checked ~ .navbar-toggle span:nth-child(2) {
  opacity: 0; /* Desaparece la línea del medio */
}

#menu-toggle:checked ~ .navbar-toggle span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Pantallas Grandes (Computadoras) --- */
@media (min-width: 768px) {
  .navbar-toggle {
    display: none; /* Oculta el botón de hamburguesa */
  }

  .menu-enlaces {
    position: static;
    display: flex;
    flex-direction: row; /* Enlaces uno al lado del otro */
    justify-content: flex-end; /* 2. Alinea el contenido horizontalmente a la derecha */
    max-height: none;
    background-color: transparent;
    width: auto;
    padding-top: 15px;
  }

  .menu-enlaces li a {
    padding: 0 15px;
    border-bottom: none;
    color: #000;
  }
  
  .menu-enlaces li a:hover {
    background-color: transparent;
    color: #FF7E00; /* Cambio de color sutil al pasar el mouse */
  } 
}

/* Galería Interactiva */

/* Contenedor principal de la galería */
.galeria-contenedor { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 20px; 
  text-align: center;
}

.galeria-contenedor2 { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 20px; 
  text-align: center;
  padding-top: 20px;
}

/* Estilo de cada miniatura */
.miniatura { 
  position: relative; 
  width: 30%; 
  height: 200px; 
  cursor: pointer; 
  overflow: hidden;0
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

.miniatura img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.3s ease; 
}

/* Capa de texto oculta por defecto */
.overlay-texto { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0, 0, 0, 0.7); 
  color: white; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  opacity: 0; 
  transition: opacity 0.3s ease; 
  padding: 10px; 
  text-align: center; 
}

/* Efecto Hover: muestra el texto y agranda la imagen */
.miniatura:hover .overlay-texto { opacity: 1; }
.miniatura:hover img { transform: scale(1.05); }

/* Párrafo debajo de la galería */
#descripcion-galeria { 
    font-size: 1.5rem; 
    color: #333; 
    margin-top: 30px; 
    /*font-weight: bold;*/ 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    text-align: center;
}

@media (max-width: 768px) {
  #descripcion-galeria {
    display: none;
  }
  .miniatura { 
    width: 350px;
  }
}


/* About Us */
.h1about{
  color: white;
  padding-top: 20px;
}

#about {
  display: table;
  width: 100%;
  height: 100%;
  padding: 150px 0;
  text-align: center;
  color: #fff;
  background: url(../img/aboutSlide2.jpg) no-repeat center center fixed;
  background-color: #000;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}
