.fondo-contendores {
    background: linear-gradient(to bottom, #ffffff 0%, #0d3c66 100%);
    padding: 50px 0;
}

.about-us-header {
    height: 80vh; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.header-image {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -2;
    filter: brightness(0.4) saturate(1.2)  blur(1px); 
    transform: scale(1.02);

}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 32, 56, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: -1;
    clip-path: polygon(100% 0, 100% 100%, 45% 100%, 58% 0)

}

.header-content1 {
    text-align: center;
    color: #fff;
    z-index: 1;
}

.header-title {
    color: #fff;
    position: relative;
    display: inline-block;
    margin: 0;
    opacity: 0; 
    transform: translateY(50px); 
    transition: transform 0.8s ease, opacity 0.8s ease;
    font-weight: bold;
    z-index: 2;
}

.header-title.visible {
    opacity: 1; 
    transform: translateY(0); 
}

.header-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background-color: #BCA500; 
    transition: width 0.4s ease;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.header-title:hover::after {
    width: 100%; 
}

.header-description {
    font-size: 16px;
    color: #BCA500;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0; 
    transform: translateY(-20px); 
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.header-description.visible {
    opacity: 1;
    transform: translateY(0);
}

.header-decorative-image {
  position: absolute;
  bottom: 5px;    
  right: 100px;    
  width: 50vh;     
  z-index: 3;
}

.ingenieria-intro {
    text-align: center; 
    max-width: 800px; 
    margin: 70px auto; 
}

.ingenieria-intro h2 {
    font-size: 35px;
    font-weight: bold;
    color: #BCA500;
    margin-bottom: 15px;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
}

.cursor {
    font-weight: bold;
    font-size: 2rem;
    display: inline-block;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.cursor-hidden {
    opacity: 0;
}


.ingenieria-intro .intro-text {
    font-size: 20px;
    line-height: 1.6;
    color: #002C59;
}

.intro-text {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.intro-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.arrow-container {
    display: flex;
    justify-content: center; 
    margin-top: 15px;
}

.arrow-wrapper {
    display: inline-block;
}

.toggle-arrow {
    font-size: 2rem;
    color: #002246;
    cursor: pointer;
    text-align: center;
    margin: 0 auto 0;
    transition: transform 0.3s ease-in-out;
}

.arrow-rotate {
    transform: rotate(180deg);
}

.extra-content {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-size: 1.3rem;
    padding: 20px; 
    max-width: 800px;
    margin: 0 auto;
    color: #002C59; 
    text-align: center;
}

.extra-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.extra-content.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.ingenieria-proyectos-cards-section {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

.ingenieria-proyectos-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
}

.ingenieria-proyectos-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ingenieria-proyectos-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.ingenieria-proyectos-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #BCA500;
    margin-bottom: 10px;
}

.ingenieria-proyectos-card-description {
    font-size: 1rem;
    color: #002246;
    margin-bottom: 15px;
}

.ingenieria-proyectos-btn-card {
    display: inline-block;
    padding: 8px 20px;
    background-color: #002246;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.ingenieria-proyectos-btn-card:hover {
    background: linear-gradient(90deg, #002C59, #0061c2);
}

.card-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card-visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
  .about-us-header {
    height: auto;
    padding: 60px 20px;
    flex-direction: column;
    text-align: center;
  }

  .header-image {
    top: 0;
    height: 100%;
    filter: brightness(0.5) saturate(1.1);
  }

  .header-overlay {
    clip-path: none;
    padding: 40px 20px;
    background: rgba(8, 32, 56, 0.7);
  }

  .header-title {
    font-size: 1.8rem;
  }

  .header-description {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .header-decorative-image {
    position: relative;
    width: 70vw;
    right: 0;
    bottom: 0;
    margin-top: 20px;
  }

  .ingenieria-intro {
    margin: 40px 20px;
  }

  .ingenieria-intro h2 {
    font-size: 1.6rem;
    text-align: center;
    white-space: normal;
  }

  .ingenieria-intro .intro-text {
    font-size: 1rem;
    text-align: justify;
  }

  .arrow-container {
    margin-top: 10px;
  }

  .toggle-arrow {
    font-size: 1.5rem;
  }

  .extra-content {
    font-size: 1rem;
    padding: 15px;
  }

  .ingenieria-proyectos-cards-section {
    padding: 30px 15px;
  }

  .ingenieria-proyectos-card {
    width: 100%;
    max-width: 350px;
  }

  .ingenieria-proyectos-card-title {
    font-size: 1.3rem;
  }

  .ingenieria-proyectos-card-description {
    font-size: 0.95rem;
  }

  .ingenieria-proyectos-btn-card {
    width: 100%;
    padding: 10px 0;
    font-size: 0.95rem;
  }
}


