
body {
  font-family: Arial, sans-serif;
  color: #222;
  background-color: #fff;
  margin: 0;
}

/* BARRA */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 40px;
  background-color: #000;
  color: #fff;
}

.logo img {
  height: 70px;
}

.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: 58%;
  justify-content: right;
  display: flex;
  align-items: center; 
  transform: translateY(-50%); 
  z-index: 10; 
  color: white; 
}

.linea-roja {
  width: 5px;
  height: 80px; 
  background-color: darkred;
  margin-right: 15px; 
}

.eventos-title {
  font-size: 1.25em; 
  font-weight: lighter;
  margin: 0;
}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slides-container {
  position: relative;
  height: 100%;
}

.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(40%);
}

.slide-caption {
  position: absolute;
  bottom: 30%;
  top: 45%;
  text-align: left ;
  color: white;
  font-size: 2.5em;
  font-weight: bold;
  text-shadow: 2px 2px 10px #000;
  max-width: 780px;
  word-wrap: break-word;
  justify-content: right;
  left: 58%;
}

/* BOTON */
.btn-ubicaciones {
  margin-top: 60px; 
  padding: 10px 20px; 
  background-color: white; 
  color: black; 
  border: none; 
  font-size: 0.5em; 
  cursor: pointer; 
  border-radius: 5px; 
  transition: background-color 0.3s ease; 
}

.btn-ubicaciones:hover {
  background-color: darkred; 
  color: white;
}


/* 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%; }
}

.before-footer {
  background-color: rgb(49, 49, 49);
  color: white;
  text-align: left;
  padding: 20px 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  margin-top: 50px;
}

.before-footer a {
  color: white;
  text-decoration: none;
}

.before-footer hr {
  border: none;
  border-top: 2px solid #fff;
  margin: 20px 0;
}

.agent-social a {
  margin-right: 15px;
  color: white;
  font-size: 1.5em;
}

/* FOOTER */
.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  background-color: #111;
  color: white;
  padding: 20px;
  text-align: center;
}


/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .advisory-section {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
  }

  .advisory-text {
    width: 90%;
    margin: 0 auto;
    margin-top: 20px;
  }

  .image-container {
    width: 220px;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .image-container img {
    position: static !important;
    width: 100%;
    height: auto;
  }

  .slide-caption {
    font-size: 1.8em;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 90%;
  }

  .eventos-container {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    flex-direction: column;
  }
}

@media (min-width: 1025px) {
  .nav-links .icon-link {
    margin-left: 8px;
    margin-right: 8px;
    padding: 0;
  }

  .nav-links .icon-link i {
    margin: 0;
    font-size: 18px;
    vertical-align: middle;
  }
  .nav-links .first-icon {
    margin-left: 40px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
  }

  .logo img {
    height: 60px;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
  }

  .contenedor-imagenes2 {
    flex-direction: column;
    gap: 20px;
  }

  .btn-ubicaciones {
    font-size: 0.9em;
    padding: 12px 24px;
  }

  .story-bar {
    bottom: 10px;
    gap: 10px;
    padding: 0 10px;
  }

  .advisory-text h2 {
    font-size: 24px;
  }

  .advisory-text p {
    font-size: 16px;
  }

  .red-line1 {
    width: 50px;
  }

  .sub-title {
    font-size: 10px;
  }

  .slide-caption {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    font-size: 1.2em;
    text-align: center;
    z-index: 3;
  }

  .eventos-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    gap: 10px;
  }

  .linea-roja {
    width: 3px;
    height: 40px;
    margin: 0;
  }

  .eventos-title {
    font-size: 1em;
  }

  .advisory-section {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
  }

  .image-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    margin-top: 20px;
  }

  .image,
  .image-top,
  .image-bottom,
  .logo-center {
    position: static !important;
    width: 60px;
    height: 60px;
    object-fit: cover;
  }

  .advisory-text {
    width: 90%;
    margin: 0;
    text-align: justify;
  }
}

@media (max-width: 480px) {
  .slide-caption {
    font-size: 1.2em;
    top: 40%;
  }

  .btn-ubicaciones {
    font-size: 0.8em;
  }

  .eventos-title {
    font-size: 1em;
  }

  .advisory-text p {
    font-size: 14px;
  }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

