.navbar{
  top: 0; 
  z-index: 50;
  background: rgb(255, 174, 0);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(255, 174, 0);
}

.perfil {
  padding: 20px;
  text-align: left;   
  max-width: 100%;     
  box-sizing: border-box;
}

.perfil img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff7b00;
  max-width: 100%;     
}

.nombre {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  word-wrap: break-word; 
}

.bio {
  font-size: 14px;
  color: #555;
  margin: 5px 0 20px;
  text-align: left;
  word-break: break-word;
}

.historias {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;               
  gap: 10px;
  margin: 10px 0 20px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.historia {
  flex: 1 1 60px;       
  max-width: 70px;      
  aspect-ratio: 1/1;     
  border-radius: 50%;
  border: 2px solid #d6249f;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.historia img {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  object-fit: cover;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  color: white;
  text-align: center;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal img {
  max-width: 90vw; 
  max-height: 90vh;    
  object-fit: contain;  
  border-radius: 10px;
}

/* Barra de progreso */
.progress {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 4px;
  display: flex;
  gap: 5px;
}

.progress-bar {
  flex: 1;
  background: rgba(255,255,255,0.3);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: white;
}

/* La X */
.close-historia {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 1100;
}

.close-historia:hover {
  color: #bbb;
}

.nav {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  background: transparent;
}

.nav button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  color: #555;
}

.nav button.active {
  color: #0095f6;
  border-bottom: 2px solid #0095f6;
  padding-bottom: 5px;
}

.contenido {
  padding: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); 
  gap: 8px;
}

.grid img,
.grid video {
  width: 100%;         
  height: 200px;       
  object-fit: cover;   
  border-radius: 10px; 
}

.grid video {
  aspect-ratio: 16/9; 
}

@media (max-width: 480px) {
  .grid img,
  .grid video {         
    height: 100px;        
  }
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img, .lightbox video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}
