#section-1 {
  height: auto;
  color: #fff3d1;
  background: transparent;
  font-family: "Roboto", sans-serif;
  border-bottom: 1px solid #3a240f;
  position: relative;
  z-index: 1;
}

#section-1 .content-slider {
  position: relative;
  width: 100%;
  height: 650px;
  margin-top: -20px;
}

#section-1 .content-slider input {
  display: none;
}

#section-1 .content-slider .slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#section-1 .content-slider .slider .banner {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  text-align: center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition: all 0.5s ease;
}

/* Banner principal con portada */
#section-1 .content-slider .slider #top-banner-1 {
  position: relative;
  background-image: url('../img/portada.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent !important;
}

/* Overlay azul simple */
#section-1 .content-slider .slider #top-banner-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.25) 0%,
    rgba(30, 58, 138, 0.15) 50%,
    rgba(59, 130, 246, 0.20) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Ocultar contenido del slide principal */
#section-1 .content-slider .slider #top-banner-1 .banner-inner-wrapper {
  display: none !important;
}

/* Otros banners */
#section-1 .content-slider .slider #top-banner-2 {
  background: url('../img/slide/slide2.jpg') no-repeat center center;
  background-size: cover;
}

#section-1 .content-slider .slider #top-banner-3 {
  background: url('../img/slide/slide3.jpg') no-repeat center center;
  background-size: cover;
}

#section-1 .content-slider .slider #top-banner-4 {
  background: url('../img/background.jpg') no-repeat center center;
  background-size: cover;
}

/* Contenido de los banners */
#section-1 .content-slider .slider .banner .banner-inner-wrapper {
  height: 0%;
  padding-top: 6em;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#section-1 .content-slider .slider .banner .banner-inner-wrapper h2 {
  padding-bottom: 0.3em;
  font-family: 'Kaushan Script', cursive;
  font-weight: 400;
  font-size: 2.5em;
  text-transform: none;
  color: #e2e8f0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

#section-1 .content-slider .slider .banner .banner-inner-wrapper h1 {
  font-size: 2.8em;
  line-height: 95%;
  color: #f1f5f9;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

#section-1 .content-slider .slider .banner .banner-inner-wrapper .line {
  display: block;
  width: 6em;
  height: 0.25em;
  margin: 2.5em auto;
  background: rgba(59, 130, 246, 0.6);
  border-radius: 2px;
}

#section-1 .content-slider .slider .banner .banner-inner-wrapper .learn-more-button {
  padding-bottom: 0em;
  z-index: 15 !important;
}

#section-1 .content-slider .slider .banner .banner-inner-wrapper .learn-more-button a {
  padding: 12px 30px;
  text-align: center;
  font-family: 'Inter', Montserrat, sans-serif;
  font-size: 0.95em;
  font-weight: 600;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(59, 130, 246, 0.3);
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

#section-1 .content-slider .slider .banner .banner-inner-wrapper .learn-more-button a:hover {
  background: rgba(59, 130, 246, 0.5);
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

/* Navegación */
#section-1 .content-slider nav {
  position: absolute;
  bottom: 0.5em;
  width: 100%;
  z-index: 15;
  text-align: center;
}

#section-1 .content-slider nav .controls {
  display: block;
  width: 70%;
  margin: 0 auto;
  color: #fff3d1;
}

#section-1 .content-slider nav .controls label {
  position: relative;
  display: inline-block;
  width: 20%;
  height: 3.1em;
  overflow: hidden;
  margin: 0 1em;
  padding-top: 1em;
  text-align: left;
  text-transform: uppercase;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
}

#section-1 .content-slider nav .controls label .progressbar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  z-index: 100;
}

#section-1 .content-slider nav .controls label .progressbar .progressbar-fill {
  position: absolute;
  width: 100%;
  height: 3px;
  margin-left: -100%;
  background: rgba(59, 130, 246, 0.8);
}

#section-1 .content-slider nav .controls label:hover {
  color: rgba(255, 255, 255, 1);
}

/* Estados activos */
#section-1 .content-slider #banner1:checked ~ .slider #top-banner-1,
#section-1 .content-slider #banner2:checked ~ .slider #top-banner-2,
#section-1 .content-slider #banner3:checked ~ .slider #top-banner-3,
#section-1 .content-slider #banner4:checked ~ .slider #top-banner-4 {
  opacity: 1;
  z-index: 5;
}

#section-1 .content-slider #banner1:checked ~ nav label:nth-of-type(1),
#section-1 .content-slider #banner2:checked ~ nav label:nth-of-type(2),
#section-1 .content-slider #banner3:checked ~ nav label:nth-of-type(3),
#section-1 .content-slider #banner4:checked ~ nav label:nth-of-type(4) {
  color: #fff3d1;
}

#section-1 .content-slider #banner1:checked ~ nav label:nth-of-type(1) .progressbar-fill,
#section-1 .content-slider #banner2:checked ~ nav label:nth-of-type(2) .progressbar-fill,
#section-1 .content-slider #banner3:checked ~ nav label:nth-of-type(3) .progressbar-fill,
#section-1 .content-slider #banner4:checked ~ nav label:nth-of-type(4) .progressbar-fill {
  animation: progressBarFill 5s linear;
}

/* Animación de progress bar */
@keyframes progressBarFill {
  from {
    margin-left: -100%;
  }
  to {
    margin-left: 0;
  }
}

/* Media Queries */
@media only screen and (max-width: 1680px) {
  #section-1 {
    height: 36em;
  }
  #section-1 .content-slider {
    height: 600px;
  }
}

@media only screen and (max-width: 1120px) {
  #section-1 {
    height: 33em;
  }
  #section-1 .content-slider {
    height: 570px;
  }
}

@media only screen and (max-width: 860px) {
  #section-1 {
    height: 29em;
  }
  #section-1 .content-slider {
    height: 520px;
  }
}

@media only screen and (max-width: 768px) {
  #section-1 .content-slider nav .controls {
    width: 80%;
  }
  
  #section-1 .content-slider nav .controls label {
    font-size: 0.9em;
  }
}

@media only screen and (max-width: 480px) {
  #section-1 {
    height: 26em;
  }
  #section-1 .content-slider {
    height: 475px;
  }
  
  #section-1 .content-slider nav .controls {
    width: 85%;
  }
  
  #section-1 .content-slider nav .controls label {
    font-size: 0.8em;
    margin: 0 0.5em;
  }
}