body {
  font-family: 'Roboto', sans-serif;
  background-image: url('../img_copae/7.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5);
  display: flex;
  min-height: 100vh; 
}

.header_section {
  background-color: #ffffff;
  font-family: "Poppins", sans-serif;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 0.5s forwards;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-item .nav-link {
  padding: 10px 15px;
  color: #000000;
  text-align: center;
  position: relative;
}

.navbar-nav .nav-item .nav-link::before {
  content: "";
  display: none;
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 30px;
  height: 4px;
  transform: translateX(-50%);
  background-color: #056e17;
  border-radius: 5px;
}

.navbar-nav .nav-item .nav-link:hover::before,
.navbar-nav .nav-item.active a::before {
  display: block;
}

.navbar-brand span {
  font-weight: bold;
  font-size: 24px;
  color: #000000;
}

.navbar-toggler {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggler .fa-bars {
  font-size: 24px; 
  color: #000; 
}

.btnriesgo {
  background-color: #f1f1f1;
  color: #000000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem; 
  transition: background-color 0.3s ease;
  border: 1px solid #b6b6b6;
}

.btnriesgo:hover {
  color: #ffffff;
  background-color: #36704f;
}

.main-content {
  width: 90%;
  max-width: 800px;
  margin: 100px auto 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 0.7s forwards;
}

.about_section {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  width: 90%;
  max-width: 800px;
}

.about_section h3 {
  text-transform: uppercase;
  font-weight: bold;
  color: #000000;
  text-align: center;
  position: relative;
  font-size: 1.8rem;
}

.about_section h3::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 100px;
  height: 7px;
  transform: translateX(-50%);
  background-color: #056e17;
  border-radius: 15px;
}

.about_section p {
  font-size: 1.125rem;
  text-align: justify;
  color: #333;
  line-height: 1.6;
}

.about-us {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  width: 90%;
  max-width: 800px;
}

.about-us h3 {
  text-transform: uppercase;
  font-weight: bold;
  color: #000000;
  text-align: center;
  position: relative;
  font-size: 1.8rem;
}

.about-us h3::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 100px;
  height: 7px;
  transform: translateX(-50%);
  background-color: #056e17;
  border-radius: 15px;
}

.about-us p {
  font-size: 1.125rem;
  text-align: justify;
  color: #333;
  line-height: 1.6;
}

.slider-frame {
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.slider-frame ul {
  display: flex;
  padding: 0;
  width: 500%;
  animation: slide 20s infinite alternate ease-out;
}

.slider-frame li {
  width: 100%;
  list-style: none;
}

.slider-frame img {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.card {
  width: 90%;
  max-width: 800px;
  margin: 50px auto; 
  border: 1px solid #000000;
  border-radius: 15px;
  text-align: center;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 1s forwards;
}

.card h3 {
  text-transform: uppercase;
  font-weight: bold;
  color: #000000;
  text-align: center;
  position: relative;
  font-size: 1.8rem;
}

.card h3::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 100px;
  height: 7px;
  transform: translateX(-50%);
  background-color: #056e17;
  border-radius: 15px;
}

.card p {
  font-size: 1.125rem;
  text-align: justify;
  color: #333;
  line-height: 1.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide {
  0%, 20% {margin-left: 0;}
  25%, 45% {margin-left: -100%;}
  50%, 70% {margin-left: -200%;}
  75%, 100% {margin-left: -300%;}
}

@media screen and (max-width: 768px) {
  .main-content, .about_section, .about-us, .card {
    width: 90%;
    padding: 15px;
  }

  .about_section h3, .about-us h2, .card h2 {
    font-size: 1.5rem; 
  }

  .about_section p, .about-us p, .card p {
    font-size: 1rem; 
  }

  .btnriesgo {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}

@media screen and (max-width: 600px) {
  .main-content, .about_section, .about-us, .card {
    margin: 20px auto;
    padding: 10px;
  }

  .btnriesgo {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .about_section p, .about-us p, .card p {
    font-size: 0.9rem; 
  }
}

@media screen and (max-width: 391px) {
  .main-content, .about_section, .about-us, .card {
    margin: 15px auto;
    padding: 8px;
  }

  .about_section h3, .about-us h2, .card h2 {
    font-size: 1.25rem;
  }

  .about_section p, .about-us p, .card p {
    font-size: 0.8rem; 
  }
}