/* ===============================
   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;   */
  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;
}

.navbar a {
  color: white;
  margin-right: 1.25rem;
  text-decoration: none;
  font-size: 0.8125rem;
  z-index: 1000;
}

.navbar a:hover {
  color: #ed3e13;
}

.navbar.scrolled {
  top: 0;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* ===============================
   Logo flotante
================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: fixed;
  top: 1.25rem;
  left: 0;
  z-index: 1000;
  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 */
}

/*  */


/* Boton de galeria "cotizar" */
  .boton-cotizar {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #ed3f13;
    /* background-color: rgba(0, 128, 0, 0.7); verde semi-transparente */
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .boton-cotizar:hover {

    background-color: rgba(0, 128, 0, 0.9);
  }

  .relative {
    position: relative;
  }
/* ===============================
   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: 900;
}

.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: 900;
}

.scroll-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.scroll-to-top:hover {
  background-color: #e45d1e;
}
/* haer qe el fondo no scrolee en el ligth modal */
body.no-scroll {
  overflow: hidden;
}

/* ===============================
   Modal 
================================ */
#lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000; 
  transition: transform 0.3s ease;
  cursor: zoom-in;
  user-select: none;  
}


/* 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: 900;
  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;
}

/* Animación de entrada desde abajo */
.reveal {
  opacity: 0;
  transform: translateY(30px);
transition: opacity 0.8s ease, transform 0.6s ease;
  transition-delay: 0s; /* Esto se sobreescribe en JS */

}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ========== */
/* Responsivos*/
/* ========== */
@media screen and (max-width: 960px) {
  .logo-img {
    margin-top: 1.9rem;
    width: 5.4rem;
    z-index: 1100;
  }

  .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;
  }
}
@media screen and (max-width: 768px) {
.logo{
  z-index: 1100;
}
.logo-img {
    margin-top: 2.3rem;
    width: 4.5rem;
    z-index: 1100;
  }
.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; 
  }
}

