
body {
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
  background-image: url('../imagenes/background.webp'); 
  background-repeat: no-repeat;  
  /* background-attachment: fixed;  hace que quede fija al hacer scroll (comentado para evitar lentitud )*/
  background-size: cover;        
  background-position: center;   
}

/* Link de inicio en logos */
.logo-link {
  text-decoration: none; 
  color: inherit;       

}

/* ===============================
   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: 1;
  transition: top 0.3s ease;
}

.navbar a {
  color: white;
  margin-right: 1.25rem;
  text-decoration: none;
  font-size: 0.8125rem;
}

.navbar a:hover {
  color: #ed3e13;
}

.navbar.scrolled {
  top: 0;
}

/* ===============================
   Logo flotante
================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: fixed;
  top: 1.25rem;
  left: 0;
  z-index: 49;
  transition: top 0.6s ease;

}

.logo-img {
  width: 7.3rem;
  height: auto;
  transition: all 0.3s ease;

}

.logo-img.scrolled {
  width: 5rem;
}

/* 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; 
}


/* ===============================
   Slider
================================ */
.slider {
  flex: 0 0 100vw;                    
  width: 100vw;
  position: relative;              
  overflow: hidden;                 
  margin-top: 8.5rem;               
  margin-bottom: 1rem;             
  aspect-ratio: auto;
  height: clamp(650px, 70vh, 850px); 
}

/* Contenedor de todos los slides (imágenes) */
.slider-container {
  display: flex;                               
  transition: transform 0.6s ease-in-out;   
  width: calc(100vw * 3);                      
  height: 100%;                               
}

/* Estilo para cada imagen dentro del slider */
.slider-container img {
  flex: 0 0 100vw;               
  width: 100vw;
  height: 100%;                  
  object-fit: cover;              
  display: block;
  flex-shrink: 0;                 
}

/* ===============================
   Texto sobrepuesto 
================================ */
.slider-text-overlay {
  position: absolute;                          
  top: 1.5rem;
  left: 2.5rem;
  color: #fff;
  z-index: 10;                                 
  max-width: 80%;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);   
}

/* Título principal dentro del slider */
.slider-heading {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

/* llamada a la acción dentro del slider */
.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 
================================ */
.slider-controls {
  position: absolute;          
  top: 50%;                    
  width: 100%;                
  display: flex;             
  justify-content: space-between; 
  align-items: center;         
  z-index: 5;                
}

/*  base (flechas) */
.slider-button {
  background-color: rgba(0, 0, 0, 0.603); 
  padding: 0.45rem;                   
  color: white;                     
  cursor: pointer;                      
  font-size: 1.1rem;                 
  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); 
}

/* ===============================
   Botón flotante dentro del slider
================================ */
.slider-button-float {
  position: absolute;                 
  bottom: 33%;                       
  right: 6.875rem;                   
  padding: 0.625rem 0.9375rem;        
  color: white;                      
  background-color: #00000065;      
  border-radius: 0.5rem;             
  font-weight: bold;                  
  z-index: 10;                        
  display: flex;                      
  align-items: center;               
  gap: 0.5rem;                       
  text-decoration: none;            
  transition: background-color 0.3s ease; 
}

.slider-button-float:hover {
  background-color: #ed3e13;         
}

/* ===============================
   dots de navegación
================================ */
.slider-indicators {
  position: absolute;               
  left: 50%;                         
  transform: translateX(-50%);        
  display: flex;                      
  gap: 0.5rem;                        

}

/* Estilo base para cada punto indicador */
.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;     
}

/* ===============================
   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: 8;            
}


.whatsapp-button:hover {
  background-color: #128c7e;              
}
/* ===============================
   Botón 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;                   

}


.scroll-to-top.show {
  opacity: 1;                               
  pointer-events: auto;                    
  transform: scale(1);                    
}


.scroll-to-top:hover {
  background-color: #ed3e13;             
}

/* ===============================
   Mini chat flotante (WhatsApp)
================================ */
.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: 8;                              
  max-width: 230px;                        
  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;                         
}

/* Triángulo inferior simulando la punta del globo de chat */
.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; 
}

/*Muestra el mini chat (con 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*/
/* ========== */

/* ===============================
   Ajuste en pantallas grandes 
 200×800, 1024×800, 2048×1536
================================ */
@media screen and (max-width: 1536px) {
  .slider {
    height: clamp(390px, 57vh, 650px); 
    
  }
}
@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;
  }
}
/* ===============================
   Diseño responsivo para pantallas ≥ 908px 
================================ */
@media (min-width: 908px) {

  /* Contenedor de flechas de navegación del slider */
  .slider-controls {
    top: 0;                                 
    height: 100%;                           
    pointer-events: none;                   
    justify-content: space-between;        
    padding: 0;                          
  }

  /* Botone del slider */
  .slider-button {
    height: 100%;                           
    width: 3rem;                          
    border-radius: 0;                      
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;                  
    font-size: 1.5rem;                      
    margin: 0;                              
    
    
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.856),
      transparent
    );
    transition: background 0.3s ease;
  }

  /* Botón derecho con degradado invertido (de derecha a izquierda) */
  .slider-button:last-child {
    background: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.5),
      transparent
    );
  }

  /* Efecto hover para ambos botones */
  .slider-button:hover {
    background: rgba(0, 0, 0, 0.7);     
  }
}
/* ===============================
   Responsivo: Estilos para móviles (≤ 768px)
================================ */
@media screen and (max-width: 768px) {

.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 {

    margin-left: -3.4rem;
    margin-top: -0.2rem;
    font-size: 1rem
  }
  /* ===============================
     Slider
  =============================== */

  .slider {
    margin-top: 8rem;
    height: clamp(250px, 56vh, 400px); 
  }
 .slider-controls {
    display: none;
  }
  .slider-text-overlay {
    color: #ffffff; 
  }

  /* ===============================
     Menú móvil desplegable
  =============================== */

/* 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: 35;
  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; 
  }

  /* ===============================
     Botón "Ver proyectos" flotante dentro del slider
  =============================== */
  .slider-button-float {
    bottom: 3%;                          
    padding: 0.375rem 0.625rem;         
    font-size: 0.875rem;               
    gap: 0.25rem;                        
  }

  /* ===============================
     Flechas de navegación del slider
  =============================== */
  .slider-button {
    background-color: rgba(0, 0, 0, 0.603);
    padding: 0.4rem;               
    font-size: 1rem;               
    border-radius: 0.25rem;       
    color: white;
    cursor: pointer;
    margin: 0 0.75rem;
    transition: outline 0.3s ease, background-color 0.3s ease;
  }
  .slider-controls {
    display: none;
  }
  /* ===============================
     Footer
  =============================== */
  .footer {
    font-size: 0.75rem;          
    padding-bottom: 5rem;         
  }

}
