/* ===============================
   Fuente principal y scroll
================================ */
body {
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
  background-image: url('../imagenes/background.webp'); 
  background-repeat: no-repeat;   /* evita repeticiones */
  background-attachment: fixed;  /* hace que quede fija al hacer scroll */
  background-size: cover;        /* cubre toda la pantalla */
  background-position: center;   /* centrada */
}

/* ===============================
   Ocultar visualmente pero accesible
================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ===============================
   Menú de navegación superior
================================ */
.navbar {
  position: fixed;
  top: 5rem;
  left: 0;
  width: 100%;
  background-color: #000;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1000;
  transition: top 0.3s ease;
  height: 3.5rem;
}

.navbar a {
  color: white;
  margin-right: 1.25rem;
  text-decoration: none;
  font-size: 0.8125rem;
}

.navbar a:hover {
  color: #ed3e13;
}

.navbar.scrolled {
  top: 0 !important;
}

/* ===============================
   Logo flotante
================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: fixed;
  top: 1.25rem;
  left: 0;
  z-index: 1001;
  transition: top 0.6s ease;

}

.logo-img {
  width: 7.3rem;
  height: auto;
  transition: all 0.3s ease;

}

.logo-img.scrolled {
  width: 5rem;
  /* transform: scale(0.8); */
}

/* para el imagen de style texto */
.logo-texto {
  margin-top: -2.5rem; 
}
.logo-texto.oculto {
  display: none;
}

/* para el texto "Muebles"*/
.logo-muebles {
  color: black;
  font-weight: 600;
  margin-top: -1.5rem;
  font-size: 2rem;
  user-select: none;
  /* transition: opacity 0.3s ease; */
  opacity: 1; 
}

.logo-muebles.scrolled {
  opacity: 0;
  pointer-events: none; /* para evitar que sea interactuable cuando está oculto */
}

/* ===============================
   Slider principal
================================ */
.slider {
  margin-top: 8.5rem;
  width: 100vw;
  aspect-ratio: auto; 
  max-height: 300px;    
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}/* Reemplazo del slider-container para efecto fade */
#slider-container {
  position: relative;
  width: 100%;
  height: 500px; /* ajusta según quieras que se vea en PC */
  overflow: hidden;
}

#slider-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 60%;
  object-fit: cover; /* asegura que ocupe bien el espacio sin deformarse */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#slider-container img.active {
  opacity: 1;
  z-index: 1;
}

/* slider texto */
.slider-text-overlay {
  position: absolute;
  top: 1.5rem;
  left: 2.5rem;
  color: rgb(255, 255, 255);
  z-index: 10;
  max-width: 80%;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.slider-heading {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.slider-subtext {
  display: inline-block;
  background-color: rgba(236, 98, 18, 0.801);
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff; 
  text-decoration: none;
}


/* ===============================
   Flechas de navegación del slider
================================ */
.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.slider-button {
  background-color: rgba(0, 0, 0, 0.603);
  padding: 0.25rem;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 0.3125rem;
  margin: 0 1rem;
  transition: outline 0.3s ease, background-color 0.3s ease;
}

.slider-button.clicked {
  outline: 2px solid #ffffffd0;
  background-color: rgba(0, 0, 0, 0.295);
}


/* ===============================
   Indicadores del slider
================================ */
.slider-indicators {
  position: absolute;
  /* bottom: 52%; */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;

}

.slider-indicators span {
  width: 0.75rem;
  height: 0.75rem;
  background-color: rgba(82, 79, 79, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-indicators span.active {
  background-color: #000;
}
/* Redes oficiales */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  background-color: #000; 
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
  background-color: #eb5c09;
  transform: scale(1.1);
}

/* ===============================
   Botón flotante de WhatsApp
================================ */
.whatsapp-button {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background-color: #25d366;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  color: white;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.whatsapp-button:hover {
  background-color: #128c7e;
}

/* Boton deslizante */
.scroll-to-top {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem; 
  right: auto;   
  width: 3rem;
  height: 3rem;
  background-color: #000;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.scroll-to-top:hover {
  background-color: #e45d1e;
}

/* minichat  */
.mini-chat {
  position: fixed;
  bottom: 6rem;
  right: 1.25rem;
  background-color: #25d366;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 260px;
  width: auto;
  line-height: 1.4;
  white-space: normal;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  visibility: hidden;
}

/* Burbuja tipo triángulo */
.mini-chat::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #25d366 transparent transparent transparent;
}

/* Animación de entrada */
.mini-chat.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Animación de salida */
.mini-chat.hide {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
}
/* Responsivos */
@media screen and (max-width: 960px) {
  .logo-img {
    margin-top: 1.9rem;
    width: 5.4rem;
  }

  .logo-texto {
    margin-top: -1.2rem;
    margin-left: -3.5rem;
    transform: scale(0.5);
  }

  .logo-muebles {
    margin-left: -3.4rem;
    margin-top: -0.7rem;
    font-size: 1rem;
  }
  .slider{
    margin-top: 8rem;
    height: 850px;
  }
  .slider-controls {
    display: none;
  }
}
@media screen and (max-width: 800px) {
.slider-text-overlay{
color: #ffffff;
}
  .slider-controls {
    display: none;
  }
/* logos */
.logo-img {
    margin-top: 2.3rem;
    width: 4.5rem;
  }
.logo-img.scrolled{
  width: 4.5rem;
  margin-top: 0rem;
}
/* Del Png Style */
.logo-texto{
  margin-top: -0.7rem;
  margin-left: -3.5rem;
  transform: scale(0.5);
  /* transform-origin: left; */
  
}
/* del texto "Muebles" */
.logo-muebles {
  /* color: rgb(255, 255, 255); */
    margin-left: -3.4rem;
    margin-top: -0.2rem;
    font-size: 1rem
  }

/* menu */
.navbar {
  position: fixed;
  top: 5rem;
  right: 0; 
  height: 3rem;
  width: auto; 
  background-color: #000;
  padding: 1rem;
  display: flex;
  flex-direction: column; 
  align-items: flex-end; 
  z-index: 1000;
  transition: top 0.3s ease;
}
.navbar a {
  color: white;
  margin: 0.5rem 0;
  text-decoration: none;
  font-size: 0.8125rem;
}

.navbar a:hover {
  color: #ed3e13;
}
  .footer {
    font-size: 0.75rem; 
    padding-bottom: 5rem; 
  }
}
