@font-face {
    font-family: 'MontserratBold';
    src: url('Montserrat-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MontserratMedium';
    src: url('Montserrat-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'MontserratRegular';
    src: url('Montserrat-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'MontserratBoldItalic';
    src: url('Montserrat-ExtraBoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'MontserratItalic';
    src: url('Montserrat-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Crestwood';
    src: url('Crestwood.ttf') format('truetype');
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes desLogo {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translate(0);
    }
}

@keyframes aparecerDesdeAbajo {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animacion-deslizar-arriba {
  opacity: 0;
  transform: translateY(30px);
}

.animacion-aparecer{
  opacity: 0;
}

.animacion-activa {
  animation: aparecerDesdeAbajo 1s ease forwards;
}

nav a:nth-child(1) { animation-delay: 1s; }
        nav a:nth-child(2) { animation-delay: 1.2s; }
        nav a:nth-child(3) { animation-delay: 1.4s; }
        nav a:nth-child(4) { animation-delay: 1.6s; }
        nav a:nth-child(5) { animation-delay: 1.8s; }

html{
    scroll-behavior: smooth;
}

body{
    background-color: rgb(255, 244, 223);
}

header {
    position: fixed;
    width: 94%;
    background-color: #70A9EC;
    padding: 20px 30px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 20; 
}

nav {
    display: flex;
    overflow: visible;
    justify-content: space-between;
    align-items: center;
}

.compu{
    display: none;
}

/* Imagen de logotipo */
.logo {
    width: 125px;
    animation: desLogo 1s ease-out forwards;
    transition: transform 0.5s ease-in-out;
}

.nav-links {
    display: flex;
    gap: 15px;
    padding-right: 30px;
}

.nav-links a {
    opacity: 0;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-family: 'MontserratMedium';
    animation: fadeIn 0.5s ease-out forwards;
}

nav a:hover{
    color: #005ED2;
}

.espacio{
    width: 90%;
    height: 100px;
}

h1{
    font-family: 'MontserratBold';
    width: 100%;
    text-align: center;
    color: #003270;
}

#declaraciones {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  width: 90%;
  margin: auto;
}

.declaracion {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.declaracion.visible {
  opacity: 1;
  transform: translateX(0);
}


.declaracion img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.info-declaracion {
  flex: 1;
}

.info-declaracion h2 {
    font-family: 'MontserratItalic';
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #3F4B59;
}

.info-declaracion p {
  font-family: 'MontserratRegular';
  text-align: justify;
  margin: 0;
  line-height: 1.6;
  color: #555;
  font-size: 1rem;
}

@media (max-width: 768px) {
  /* Header */
  header {
    width: 92%;
    border-radius: 15px;
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  .logo {
    width: 75px;
  }

  .compu{
  display: none;
}

  h1 { font-size: 16px; }
  h2 { font-size: 22px; text-align: center; }
  h4 { font-size: 15px; width: 100%; }
  p { font-size: 13px; }

  .declaracion {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .declaracion img {
    margin-bottom: 1rem;
  }

  .info-declaracion h2 {
    font-size: 1.3rem;
  }

  .info-declaracion p {
    font-size: 0.95rem;
  }

}
