html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #222;
  background-color: #fff;
  margin: 0;
  overflow-x: hidden;
}

.wrapper{
  min-height: 100vh;        /* hace que el div ocupe al menos toda la ventana */
  width: 100%;
  overflow-x: hidden;       /* evita scroll horizontal */
  display: flex;
  flex-direction: column;   /* opcional: para layout vertical */
}

.top-bar{
  display: flex;
  background-color: #161616; /* negro */
}

.container {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* BARRA GRIS */
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #161616; /* negro */
  color: #fff;
  font-size: 0.9rem;
}

.top-bar p {
  margin: 0;
}
/* ICONOS */
.social-icons {
  display: flex;
  gap: 10px; /* espacio entre cada icono */
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1px;
}

.top-bar .social-icons a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

/* BARRA */
.navbar {
  display: flex;
  background-color: #000;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #fff;
}

.logo img {
  height: 60px;
  margin: 5px;
}

.nav-links a {
  color: white;
  margin-left: 40px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* LINEA ROJA */
.eventos-container {
  position: absolute;
  top: 30%; 
  left: 250px;
  display: flex;
  align-items: center; 
  transform: translateY(-50%); 
  z-index: 10; 
  color: white;
  margin: 5px;
}

.linea-roja {
  width: 5px;
  height: 80px; 
  background-color: darkred;
  margin-right: 15px; 
}

#titulo {
  font-size: 1.5rem;
}

.eventos-title {
  font-size: 1.25em; 
  font-weight: lighter;
  margin: 0;
}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}
/* FOTOS PRINCIPALES */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);/* FOTOS PRINCIPALES */
}

.slide-caption {
  position: absolute;
  bottom: 30%;
  top: 45%;
  color: white;
  font-size: 2.5em;
  font-weight: bold;
  text-shadow: 2px 2px 10px #000;
  max-width: 700px;
  word-wrap: break-word;
  left: 250px;
}

/* HISTORIA CON BARRAS */
.story-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  display: flex;
  gap: 15px;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  justify-content: center;
  transform:  translateX(-50%);
}

.story-bar .progress {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.story-bar .progress::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background-color: darkred;
  animation: none;
}

.story-bar .progress.active::before {
  animation: fillBar 4s linear forwards;
}


@keyframes fillBar {
  from { width: 0%; }
  to { width: 100%; }
}

