body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #ffffff;
  color:  #1b225f;
  overflow-x: hidden;
}

p {
  line-height: 1.5;
}

.navbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
  padding: 15px 0;
  width: 100%;
}

.logo {
  width: 22vw;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color:  #1b225f;
  text-decoration: none;
  font-size: 1.2vw;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;            
  width: 0;                  
  height: 0.5px;               
  background-color: #606060; 
  transition: width 0.4s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  margin-bottom: 3%;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #1b225f;
  border-radius: 2px;
}

/* DOCUMENTS SECTION */
.documents-section {
  padding: 4rem 2rem;
  background-color: #ffffff;
}
.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  justify-items: center;
}
.document-card {
  background-color: #1b225f;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(55, 46, 121, 0.1);
  padding: 1.5rem;
  border-left: 6px solid #46ba43;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  max-width: fit-content;
  min-height: 140px;
  cursor: pointer;
  overflow: hidden;
}
.document-card img {
  width: 30vw;
  height: auto;
}

.document-card-body {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 3%;
}

.document-card:hover .document-card-body {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(55, 46, 121, 0.25);
}

.document-title { 
  font-size: clamp(15px, 1.1vw, 19px); 
  font-weight: 600; 
  color: #ffffff; 
  margin-bottom: 0.4rem; }


.documents-grid p {
  font-size: clamp(13px, 1vw, 17px); /* 🔹 más chico, elegante y adaptable */
}
.documents-grid a {
  font-size: clamp(12px, 1vw, 16px); /* 🔹 más chico, elegante y adaptable */
}

.document-desc {
  font-size: 1rem;
  color:  #ffffff;
  margin-bottom: 1.3rem;
  flex-grow: 1;
}

.download-link {
  font-size: 1vw;
  color: #46ba43;
  text-decoration: none;
  border-bottom: 1px solid rgba(70, 186, 67, 0.4);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.download-link:hover {
  color:  #cbf3ca;
  border-color:  #cbf3ca;
}

.download-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.download-link:hover i {
  transform: translateY(-2px);
}

/* Animaciones fade */
.fade-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-item {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media screen and (max-width: 768px){

  body{
    overflow-x: hidden;
    width: 100%;
  }
  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    width: 100%;
  }
  .navbar {
    flex-direction: column;
    align-items: stretch;
    position: relative;
    margin-top: 3%;
    margin-bottom: 3%;
  }

  .nav-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: auto;
    z-index: 1;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    cursor: pointer;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #1b225f;
    border-radius: 2px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
  }

  .nav-links a {
    position: relative;
    color:  #1b225f;
    text-decoration: none;
    font-size: 5vw;
    transition: color 0.3s;
  }

  .nav-links.active {
    display: flex;
    margin-top: 3%;
  }
  
  .documents-section {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    margin-top: 15%;
    margin-bottom: 15%;
  }
  .documents-grid {
    grid-template-columns: 1fr;
    width: 100vw;
  }
  .document-card-body{
    padding: 2%;
  }
  .document-card {
    flex-direction: column;
    width: 95vw;
  }
  .document-card {
    padding: 0;
    width: 95vw;
    max-width: 95vw;
    min-height: 140px;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border-left-width: 5px;
    border-radius: 14px;
  }
  .document-card img{
    width: 100%;
    height: auto;
    display: block;
  }

  .documents-grid {
    width: 95vw;
    grid-template-columns: 1fr;
    padding: 0;
    gap: 1.8rem;
  }
}
