/*******************Principal de tarjetas*******************/
.cards-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.card {
    display: flex;
    width: 420px;
    height: 644px;
    flex-direction: column;
    align-items: center;
    gap: 273px;
    flex-shrink: 0;
    border-radius: var(--Corner-Small, 8px);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    transition: all 1.0s ease;
}

.card-figure svg {
    width: 448px;
    height: 280px;
    flex-shrink: 0;
    opacity: 0.90;
    /* width: 100%;
    height: 100%; */
    color: #A4C732;
    transition: color 1.0s ease;
}
.card:hover .card-figure svg {
    color: #4F9EBE;
}

.title-card {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 40px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.card-button {
    flex-shrink: 0;
    border-radius: var(--Corner-Full, 1000px);
    z-index: 1;
    text-align: center;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    width: 280.638px;
    height: 60px;
    background: #121238;
    font-size: 20px;
    color: #FFF;
    transition: width 1.0s, height 1.0s, background-color 1.0s ease, color 1.0s ease, font-size 1.0s ease;
}

.card:hover .card-button {
    width: 308.7px;
    height: 66px;
    background: #FFF;
    color: #06052D;
    font-size: 24px;
}

/*******************Fondos de las tarjetas prinicipales********************/
#nuestros-servicios-card {
    background: url("../../../photos/nuestros-servicios.png") lightgray 50% / cover no-repeat;
}

#nuestros-servicios-title {
    display: flex;
    width: 200px;
    height: 80px;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    left: 120px;
    top: 56px;
}

#nosotros-card {
    background: url("../../../photos/nosotros.png") lightgray 50% / cover no-repeat;
}

#nosotros-title {
    display: flex;
    width: 235.2px;
    height: 48px;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    left: 105.891px;
    top: 77px;
}

#investigacion-card {
    background: url("../../../photos/investigacion.png") lightgray 50% / cover no-repeat;
}

#investigacion-title {
    display: flex;
    width: 280px;
    height: 48px;
    justify-content: center;
    position: absolute;
    left: 80px;
    top: 88px;
}

/* iPhone SE (375px) */
@media (max-width: 390px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .card {
    width: 90%;
    height: auto;
    gap: 40px;
    padding: 24px 0;
  }

  .card-figure svg {
    width: 100%;
    height: auto;
  }

  .title-card {
    font-size: 24px;
  }

  .card-button {
    width: 220px;
    height: 50px;
    font-size: 16px;
  }

  .card:hover .card-button {
    width: 240px;
    height: 55px;
    font-size: 18px;
  }

  #nuestros-servicios-title,
  #nosotros-title,
  #investigacion-title {
    position: static;
    width: 100%;
    text-align: center;
    margin-top: 16px;
  }
}

@media (max-width: 450px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0 16px;
  }

  .card {
    width: 100%;
    height: auto;
    gap: 40px;
    padding: 24px 0;
  }

  .card-figure svg {
    width: 100%;
  }

  .title-card {
    font-size: 24px;
    text-align: center;
  }

  .card-button {
    width: 100%;
    max-width: 240px;
    height: 50px;
    font-size: 16px;
  }

  .card:hover .card-button {
    width: 100%;
    max-width: 260px;
    height: 55px;
    font-size: 18px;
  }

  #nuestros-servicios-title,
  #nosotros-title,
  #investigacion-title {
    text-align: center;
    margin-top: 16px;
    left: 0 !important;
  }

  .card-figure{
    width: 103%;
    margin-top: -8.5%
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (min-height: 512px) and (max-height: 1366px){
    .cards-container {
        flex-wrap: wrap;
        gap: 35px;
        padding: 0 16px;
      }
    
    .card {
        flex: 0 0 auto;
        margin-right: 0px;
        width: 230px;
        height: 380px;
        gap: 120px;
    }
    .card-button{
        width: 210.638px;
        height: 52px;
        font-size: 14px;
    }

    .title-card{
        font-size: 28px;
    }
    .card-figure svg {
        height: 153px;
    }

    #nuestros-servicios-title {
        left: -4px;
        top: 30px;
    }

    #nosotros-title{
        left: -4px;
        top: 30px;
    }

    #investigacion-title {
        left: -18px;
        top: 35px;
    }

}